blob: b64e8343876cacda072b03e5d00950b773ae769b [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy89effd22009-11-24 20:56:45 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.5.8.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristycd4c5312009-11-22 01:19:08 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy18304f92009-11-22 15:48:26 +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"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
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
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# 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
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 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
cristy18304f92009-11-22 15:48:26 +0000531
532
533# Check that we are running under the correct shell.
cristy3ed852e2009-09-05 21:47:34 +0000534SHELL=${CONFIG_SHELL-/bin/sh}
535
cristy18304f92009-11-22 15:48:26 +0000536case 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
cristy3ed852e2009-09-05 21:47:34 +0000681lt_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.
689# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690# 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'
cristy89effd22009-11-24 20:56:45 +0000708PACKAGE_VERSION='6.5.8'
709PACKAGE_STRING='ImageMagick 6.5.8'
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=
cristy3ed852e2009-09-05 21:47:34 +0000752ac_subst_vars='ltdl_LTLIBOBJS
753ltdl_LIBOBJS
754am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
757MAGICK_LIBS
758MAGICK_LDFLAGS
759MAGICK_PCFLAGS
760MAGICK_CPPFLAGS
761MAGICK_CXXFLAGS
762MAGICK_CFLAGS
763MAGICK_DEP_LIBS
764MAGICK_LTDLDEPS
765MAGICK_LIBLTDL
766OSX_GCOV_LDFLAG
767DELEGATES
768MAGICKCORE_PATH
769PERL_SUPPORTS_DESTDIR
770WITH_PERL_DYNAMIC_FALSE
771WITH_PERL_DYNAMIC_TRUE
772WITH_PERL_STATIC_FALSE
773WITH_PERL_STATIC_TRUE
774WITH_PERL_FALSE
775WITH_PERL_TRUE
776GSVersion
777GSPSDevice
778GSPDFDevice
779GSMonoDevice
780GSEPSDevice
781GSColorDevice
782GSCMYKDevice
783GSAlphaDevice
784XPSVersion
785XPSCMYKDevice
786XPSColorDevice
787XPSMonoDevice
788PCLVersion
789PCLCMYKDevice
790PCLColorDevice
791PCLMonoDevice
792ZIP_DELEGATE_FALSE
793ZIP_DELEGATE_TRUE
794ZIP
795P7ZIP_DELEGATE_FALSE
796P7ZIP_DELEGATE_TRUE
797P7ZIP
798RPM_DELEGATE_FALSE
799RPM_DELEGATE_TRUE
800RPM
801PERL
802TAR
803ShowImageDelegate
804type_include_files
805ghostscript_font_dir
806windows_font_dir
807PrintDelegate
808ZipDelegate
809XPSDelegate
810WWWDecodeDelegate
811WMFDecodeDelegate
812TXTDelegate
813SCANDecodeDelegate
814RMDelegate
815RLEEncodeDelegate
816PSDelegate
817POVDelegate
818PGPDecodeDelegate
819PCLDelegate
820MVDelegate
821MPEGEncodeDelegate
822MPEGDecodeDelegate
823MANDelegate
824LaunchDelegate
825LZWEncodeDelegate
826LZWDecodeDelegate
827LPRDelegate
828LPDelegate
829ILBMEncodeDelegate
830ILBMDecodeDelegate
831HTMLDecodeDelegate
832HPGLDecodeDelegate
833HDRDecodeDelegate
834GnuplotDecodeDelegate
835MogrifyDelegate
836DisplayDelegate
837ConvertDelegate
838FIGDecodeDelegate
839EditorDelegate
840EchoDelegate
841DVIDecodeDelegate
842GVCDecodeDelegate
843DNGDecodeDelegate
844CatDelegate
845CGMDecodeDelegate
846BrowseDelegate
847BZIPDelegate
848BlenderDecodeDelegate
849AVIDecodeDelegate
850AutotraceDecodeDelegate
851SHARE_CONFIGURE_PATH
852SHARE_PATH
853DOCUMENTATION_PATH
854FILTER_PATH
855CODER_PATH
856CONFIGURE_PATH
857LIBRARY_PATH
858EXECUTABLE_PATH
859PERLMAINCC
860XML_LIBS
861XML_DELEGATE_FALSE
862XML_DELEGATE_TRUE
863xml2_config
864WMF_LIBS_DEPS
865WMF_LIBS
866WMF_DELEGATE_FALSE
867WMF_DELEGATE_TRUE
868TIFF_LIBS
869TIFF_DELEGATE_FALSE
870TIFF_DELEGATE_TRUE
871CAIRO_DELEGATE_FALSE
872CAIRO_DELEGATE_TRUE
873RSVG_DELEGATE_FALSE
874RSVG_DELEGATE_TRUE
875CAIRO_SVG_LIBS
876CAIRO_SVG_CFLAGS
877RSVG_LIBS
878RSVG_CFLAGS
879PNG_LIBS
880PNG_DELEGATE_FALSE
881PNG_DELEGATE_TRUE
882OPENEXR_DELEGATE_FALSE
883OPENEXR_DELEGATE_TRUE
884OPENEXR_LIBS
885OPENEXR_CFLAGS
886LQR_DELEGATE_FALSE
887LQR_DELEGATE_TRUE
888LQR_LIBS
889LQR_CFLAGS
890LCMS_LIBS
891LCMS_DELEGATE_FALSE
892LCMS_DELEGATE_TRUE
893JP2_LIBS
894JP2_DELEGATE_FALSE
895JP2_DELEGATE_TRUE
896JPEG_LIBS
897JPEG_DELEGATE_FALSE
898JPEG_DELEGATE_TRUE
899JBIG_LIBS
900JBIG_DELEGATE_FALSE
901JBIG_DELEGATE_TRUE
902GVC_DELEGATE_FALSE
903GVC_DELEGATE_TRUE
904GVC_LIBS
905GVC_CFLAGS
906GS_LIBS
907GS_DELEGATE_FALSE
908GS_DELEGATE_TRUE
909FREETYPE_LIBS
910FREETYPE_DELEGATE_FALSE
911FREETYPE_DELEGATE_TRUE
912freetype_config
913FONTCONFIG_DELEGATE_FALSE
914FONTCONFIG_DELEGATE_TRUE
915FONTCONFIG_LIBS
916FONTCONFIG_CFLAGS
917FPX_LIBS
918FPX_DELEGATE_FALSE
919FPX_DELEGATE_TRUE
920FFTW_LIBS
921FFTW_DELEGATE_FALSE
922FFTW_DELEGATE_TRUE
923DJVU_LIBS
924DJVU_DELEGATE_FALSE
925DJVU_DELEGATE_TRUE
926DPS_LIBS
927DPS_DELEGATE_FALSE
928DPS_DELEGATE_TRUE
929AUTOTRACE_DELEGATE_FALSE
930AUTOTRACE_DELEGATE_TRUE
931AUTOTRACE_LIBS
932AUTOTRACE_CFLAGS
933LIB_DL
934ZLIB_LIBS
935ZLIB_DELEGATE_FALSE
936ZLIB_DELEGATE_TRUE
937XEXT_LIBS
938X11_LIBS
939X11_DELEGATE_FALSE
940X11_DELEGATE_TRUE
941X_EXTRA_LIBS
942X_LIBS
943X_PRE_LIBS
944X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000945XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000946BZLIB_LIBS
947BZLIB_DELEGATE_FALSE
948BZLIB_DELEGATE_TRUE
949MATH_LIBS
950CCMALLOCDelegate
951UMEM_LIBS
952HasUMEM_FALSE
953HasUMEM_TRUE
954THREAD_LIBS
955GOMP_LIBS
956WITH_MAGICK_PLUS_PLUS_FALSE
957WITH_MAGICK_PLUS_PLUS_TRUE
958OPENMP_CXXFLAGS
959POW_LIB
960LIBOBJS
961UINTPTR_T
962UINTMAX_T
963UINT64_T
964INT64_T
965UINT32_T
966INT32_T
967UINT16_T
968INT16_T
969UINT8_T
970INT8_T
971LIBRARY_EXTRA_CPPFLAGS
972MODULE_EXTRA_CPPFLAGS
973LIBSTDCLDFLAGS
974PERL_MAKE_OPTIONS
975QUANTUM_DEPTH
976MAINT
977MAINTAINER_MODE_FALSE
978MAINTAINER_MODE_TRUE
979MAGICK_HDRI
980DLLDFLAGS
981WITH_LTDL_FALSE
982WITH_LTDL_TRUE
983WITH_MODULES_FALSE
984WITH_MODULES_TRUE
985LTCXXLIBOPTS
986LTDLOPEN
987LT_CONFIG_H
988CONVENIENCE_LTDL_FALSE
989CONVENIENCE_LTDL_TRUE
990INSTALL_LTDL_FALSE
991INSTALL_LTDL_TRUE
992ARGZ_H
993sys_symbol_underscore
994LIBADD_DL
995LT_DLPREOPEN
996LIBADD_DLD_LINK
997LIBADD_SHL_LOAD
998LIBADD_DLOPEN
999LT_DLLOADERS
1000INCLTDL
1001LTDLINCL
1002LTDLDEPS
1003LIBLTDL
1004LIBTOOL_DEPS
1005CXXCPP
1006OTOOL64
1007OTOOL
1008LIPO
1009NMEDIT
1010DSYMUTIL
cristy18304f92009-11-22 15:48:26 +00001011lt_ECHO
cristy3ed852e2009-09-05 21:47:34 +00001012AR
1013NM
1014ac_ct_DUMPBIN
1015DUMPBIN
1016LIBTOOL
1017OBJDUMP
1018DLLTOOL
1019AS
1020LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001021CL_LIBS
1022CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001023OPENMP_CFLAGS
1024PTHREAD_CFLAGS
1025PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001026PTHREAD_CC
1027acx_pthread_config
1028WinPathScript
1029USING_CL_FALSE
1030USING_CL_TRUE
1031CYGWIN_BUILD_FALSE
1032CYGWIN_BUILD_TRUE
1033WIN32_NATIVE_BUILD_FALSE
1034WIN32_NATIVE_BUILD_TRUE
1035WINGDI32_DELEGATE_FALSE
1036WINGDI32_DELEGATE_TRUE
1037GDI32_LIBS
1038PKG_CONFIG
1039LN_S
1040am__fastdepCXX_FALSE
1041am__fastdepCXX_TRUE
1042CXXDEPMODE
1043ac_ct_CXX
1044CXXFLAGS
1045CXX
1046RANLIB
1047LD
1048FGREP
1049EGREP
1050GREP
1051SED
1052CPP
1053am__fastdepCC_FALSE
1054am__fastdepCC_TRUE
1055CCDEPMODE
1056AMDEPBACKSLASH
1057AMDEP_FALSE
1058AMDEP_TRUE
1059am__quote
1060am__include
1061DEPDIR
1062OBJEXT
1063EXEEXT
1064ac_ct_CC
1065CPPFLAGS
1066LDFLAGS
1067CFLAGS
1068CC
1069DIRSEP
1070MAGICK_FILTER_MODULE_PATH
1071MAGICK_CONFIGURE_BUILD_PATH
1072MAGICK_CONFIGURE_SRC_PATH
1073MAGICK_CODER_MODULE_PATH
1074MAN_DIR
1075INFO_DIR
1076PERSISTINCLUDE_DIR
1077INCLUDE_DIR
1078LIB_DIR
1079LOCALSTATE_DIR
1080SHAREDSTATE_DIR
1081SYSCONF_DIR
1082DATA_DIR
1083LIBEXEC_DIR
1084SBIN_DIR
1085BIN_DIR
1086EXEC_PREFIX_DIR
1087PREFIX_DIR
1088CONFIG_STATUS_DEPENDENCIES
1089MAGICK_LIB_VERSION_NUMBER
1090MAGICK_LIB_VERSION_TEXT
1091MAGICK_LIB_VERSION
1092AM_BACKSLASH
1093AM_DEFAULT_VERBOSITY
1094am__untar
1095am__tar
1096AMTAR
1097am__leading_dot
1098SET_MAKE
1099AWK
1100mkdir_p
1101MKDIR_P
1102INSTALL_STRIP_PROGRAM
1103STRIP
1104install_sh
1105MAKEINFO
1106AUTOHEADER
1107AUTOMAKE
1108AUTOCONF
1109ACLOCAL
1110VERSION
1111PACKAGE
1112CYGPATH_W
1113am__isrc
1114INSTALL_DATA
1115INSTALL_SCRIPT
1116INSTALL_PROGRAM
1117PACKAGE_LIB_SUBVERSION
1118PACKAGE_RELEASE_DATE
1119PACKAGE_LIB_VERSION_NUMBER
1120PACKAGE_LIB_VERSION
1121PACKAGE_CHANGE_DATE
1122PACKAGE_RELEASE
1123MAGICK_LIBRARY_AGE
1124MAGICK_LIBRARY_REVISION
1125MAGICK_LIBRARY_CURRENT
1126target_os
1127target_vendor
1128target_cpu
1129target
1130host_os
1131host_vendor
1132host_cpu
1133host
1134build_os
1135build_vendor
1136build_cpu
1137build
1138CONFIGURE_ARGS
1139DISTCHECK_CONFIG_FLAGS
1140target_alias
1141host_alias
1142build_alias
1143LIBS
1144ECHO_T
1145ECHO_N
1146ECHO_C
1147DEFS
1148mandir
1149localedir
1150libdir
1151psdir
1152pdfdir
1153dvidir
1154htmldir
1155infodir
1156docdir
1157oldincludedir
1158includedir
1159localstatedir
1160sharedstatedir
1161sysconfdir
1162datadir
1163datarootdir
1164libexecdir
1165sbindir
1166bindir
1167program_transform_name
1168prefix
1169exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001170PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001171PACKAGE_BUGREPORT
1172PACKAGE_STRING
1173PACKAGE_VERSION
1174PACKAGE_TARNAME
1175PACKAGE_NAME
1176PATH_SEPARATOR
1177SHELL'
1178ac_subst_files=''
1179ac_user_opts='
1180enable_option_checking
1181enable_silent_rules
1182enable_dependency_tracking
1183with_gnu_ld
1184with_maximum_compile_warnings
1185with_dmalloc
1186enable_bounds_checking
1187enable_osx_universal_binary
1188with_threads
1189enable_openmp
1190enable_largefile
1191enable_shared
1192enable_static
1193with_pic
1194enable_fast_install
1195enable_libtool_lock
1196with_included_ltdl
1197with_ltdl_include
1198with_ltdl_lib
1199enable_ltdl_install
1200with_modules
1201enable_delegate_build
1202enable_deprecated
1203enable_installed
1204enable_cipher
1205enable_embeddable
1206enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001207enable_assert
1208enable_maintainer_mode
1209enable_ccmalloc
1210enable_efence
1211enable_prof
1212enable_gprof
1213enable_gcov
1214with_method_prefix
1215with_quantum_depth
1216with_cache
1217with_frozenpaths
1218with_magick_plus_plus
1219with_perl
1220with_perl_options
1221with_umem
1222with_libstdc
1223with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001224with_x
cristy3ed852e2009-09-05 21:47:34 +00001225with_zlib
1226with_autotrace
1227with_dps
1228with_djvu
1229with_fftw
1230with_fpx
1231with_fontconfig
1232with_freetype
1233with_gslib
1234with_fontpath
1235with_gs_font_dir
1236with_gvc
1237with_jbig
1238with_jpeg
1239with_jp2
1240with_lcms
1241with_lqr
1242with_openexr
1243with_png
1244with_rsvg
1245with_tiff
1246with_windows_font_dir
1247with_wmf
1248with_xml
1249'
1250 ac_precious_vars='build_alias
1251host_alias
1252target_alias
1253CC
1254CFLAGS
1255LDFLAGS
1256LIBS
1257CPPFLAGS
1258CPP
1259CXX
1260CXXFLAGS
1261CCC
1262PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001263CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001264XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001265AUTOTRACE_CFLAGS
1266AUTOTRACE_LIBS
1267FONTCONFIG_CFLAGS
1268FONTCONFIG_LIBS
1269GVC_CFLAGS
1270GVC_LIBS
1271LQR_CFLAGS
1272LQR_LIBS
1273OPENEXR_CFLAGS
1274OPENEXR_LIBS
1275RSVG_CFLAGS
1276RSVG_LIBS
1277CAIRO_SVG_CFLAGS
1278CAIRO_SVG_LIBS'
1279
1280
1281# Initialize some variables set by options.
1282ac_init_help=
1283ac_init_version=false
1284ac_unrecognized_opts=
1285ac_unrecognized_sep=
1286# The variables have the same names as the options, with
1287# dashes changed to underlines.
1288cache_file=/dev/null
1289exec_prefix=NONE
1290no_create=
1291no_recursion=
1292prefix=NONE
1293program_prefix=NONE
1294program_suffix=NONE
1295program_transform_name=s,x,x,
1296silent=
1297site=
1298srcdir=
1299verbose=
1300x_includes=NONE
1301x_libraries=NONE
1302
1303# Installation directory options.
1304# These are left unexpanded so users can "make install exec_prefix=/foo"
1305# and all the variables that are supposed to be based on exec_prefix
1306# by default will actually change.
1307# Use braces instead of parens because sh, perl, etc. also accept them.
1308# (The list follows the same order as the GNU Coding Standards.)
1309bindir='${exec_prefix}/bin'
1310sbindir='${exec_prefix}/sbin'
1311libexecdir='${exec_prefix}/libexec'
1312datarootdir='${prefix}/share'
1313datadir='${datarootdir}'
1314sysconfdir='${prefix}/etc'
1315sharedstatedir='${prefix}/com'
1316localstatedir='${prefix}/var'
1317includedir='${prefix}/include'
1318oldincludedir='/usr/include'
1319docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1320infodir='${datarootdir}/info'
1321htmldir='${docdir}'
1322dvidir='${docdir}'
1323pdfdir='${docdir}'
1324psdir='${docdir}'
1325libdir='${exec_prefix}/lib'
1326localedir='${datarootdir}/locale'
1327mandir='${datarootdir}/man'
1328
1329ac_prev=
1330ac_dashdash=
1331for ac_option
1332do
1333 # If the previous option needs an argument, assign it.
1334 if test -n "$ac_prev"; then
1335 eval $ac_prev=\$ac_option
1336 ac_prev=
1337 continue
1338 fi
1339
1340 case $ac_option in
1341 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1342 *) ac_optarg=yes ;;
1343 esac
1344
1345 # Accept the important Cygnus configure options, so we can diagnose typos.
1346
1347 case $ac_dashdash$ac_option in
1348 --)
1349 ac_dashdash=yes ;;
1350
1351 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1352 ac_prev=bindir ;;
1353 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1354 bindir=$ac_optarg ;;
1355
1356 -build | --build | --buil | --bui | --bu)
1357 ac_prev=build_alias ;;
1358 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1359 build_alias=$ac_optarg ;;
1360
1361 -cache-file | --cache-file | --cache-fil | --cache-fi \
1362 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1363 ac_prev=cache_file ;;
1364 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1365 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1366 cache_file=$ac_optarg ;;
1367
1368 --config-cache | -C)
1369 cache_file=config.cache ;;
1370
1371 -datadir | --datadir | --datadi | --datad)
1372 ac_prev=datadir ;;
1373 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1374 datadir=$ac_optarg ;;
1375
1376 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1377 | --dataroo | --dataro | --datar)
1378 ac_prev=datarootdir ;;
1379 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1380 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1381 datarootdir=$ac_optarg ;;
1382
1383 -disable-* | --disable-*)
1384 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001387 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001388 ac_useropt_orig=$ac_useropt
1389 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1390 case $ac_user_opts in
1391 *"
1392"enable_$ac_useropt"
1393"*) ;;
1394 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1395 ac_unrecognized_sep=', ';;
1396 esac
1397 eval enable_$ac_useropt=no ;;
1398
1399 -docdir | --docdir | --docdi | --doc | --do)
1400 ac_prev=docdir ;;
1401 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1402 docdir=$ac_optarg ;;
1403
1404 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1405 ac_prev=dvidir ;;
1406 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1407 dvidir=$ac_optarg ;;
1408
1409 -enable-* | --enable-*)
1410 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1411 # Reject names that are not valid shell variable names.
1412 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001413 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001414 ac_useropt_orig=$ac_useropt
1415 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1416 case $ac_user_opts in
1417 *"
1418"enable_$ac_useropt"
1419"*) ;;
1420 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1421 ac_unrecognized_sep=', ';;
1422 esac
1423 eval enable_$ac_useropt=\$ac_optarg ;;
1424
1425 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1426 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1427 | --exec | --exe | --ex)
1428 ac_prev=exec_prefix ;;
1429 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1430 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1431 | --exec=* | --exe=* | --ex=*)
1432 exec_prefix=$ac_optarg ;;
1433
1434 -gas | --gas | --ga | --g)
1435 # Obsolete; use --with-gas.
1436 with_gas=yes ;;
1437
1438 -help | --help | --hel | --he | -h)
1439 ac_init_help=long ;;
1440 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1441 ac_init_help=recursive ;;
1442 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1443 ac_init_help=short ;;
1444
1445 -host | --host | --hos | --ho)
1446 ac_prev=host_alias ;;
1447 -host=* | --host=* | --hos=* | --ho=*)
1448 host_alias=$ac_optarg ;;
1449
1450 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1451 ac_prev=htmldir ;;
1452 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1453 | --ht=*)
1454 htmldir=$ac_optarg ;;
1455
1456 -includedir | --includedir | --includedi | --included | --include \
1457 | --includ | --inclu | --incl | --inc)
1458 ac_prev=includedir ;;
1459 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1460 | --includ=* | --inclu=* | --incl=* | --inc=*)
1461 includedir=$ac_optarg ;;
1462
1463 -infodir | --infodir | --infodi | --infod | --info | --inf)
1464 ac_prev=infodir ;;
1465 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1466 infodir=$ac_optarg ;;
1467
1468 -libdir | --libdir | --libdi | --libd)
1469 ac_prev=libdir ;;
1470 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1471 libdir=$ac_optarg ;;
1472
1473 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1474 | --libexe | --libex | --libe)
1475 ac_prev=libexecdir ;;
1476 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1477 | --libexe=* | --libex=* | --libe=*)
1478 libexecdir=$ac_optarg ;;
1479
1480 -localedir | --localedir | --localedi | --localed | --locale)
1481 ac_prev=localedir ;;
1482 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1483 localedir=$ac_optarg ;;
1484
1485 -localstatedir | --localstatedir | --localstatedi | --localstated \
1486 | --localstate | --localstat | --localsta | --localst | --locals)
1487 ac_prev=localstatedir ;;
1488 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1489 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1490 localstatedir=$ac_optarg ;;
1491
1492 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1493 ac_prev=mandir ;;
1494 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1495 mandir=$ac_optarg ;;
1496
1497 -nfp | --nfp | --nf)
1498 # Obsolete; use --without-fp.
1499 with_fp=no ;;
1500
1501 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1502 | --no-cr | --no-c | -n)
1503 no_create=yes ;;
1504
1505 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1506 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1507 no_recursion=yes ;;
1508
1509 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1510 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1511 | --oldin | --oldi | --old | --ol | --o)
1512 ac_prev=oldincludedir ;;
1513 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1514 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1515 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1516 oldincludedir=$ac_optarg ;;
1517
1518 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1519 ac_prev=prefix ;;
1520 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1521 prefix=$ac_optarg ;;
1522
1523 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1524 | --program-pre | --program-pr | --program-p)
1525 ac_prev=program_prefix ;;
1526 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1527 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1528 program_prefix=$ac_optarg ;;
1529
1530 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1531 | --program-suf | --program-su | --program-s)
1532 ac_prev=program_suffix ;;
1533 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1534 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1535 program_suffix=$ac_optarg ;;
1536
1537 -program-transform-name | --program-transform-name \
1538 | --program-transform-nam | --program-transform-na \
1539 | --program-transform-n | --program-transform- \
1540 | --program-transform | --program-transfor \
1541 | --program-transfo | --program-transf \
1542 | --program-trans | --program-tran \
1543 | --progr-tra | --program-tr | --program-t)
1544 ac_prev=program_transform_name ;;
1545 -program-transform-name=* | --program-transform-name=* \
1546 | --program-transform-nam=* | --program-transform-na=* \
1547 | --program-transform-n=* | --program-transform-=* \
1548 | --program-transform=* | --program-transfor=* \
1549 | --program-transfo=* | --program-transf=* \
1550 | --program-trans=* | --program-tran=* \
1551 | --progr-tra=* | --program-tr=* | --program-t=*)
1552 program_transform_name=$ac_optarg ;;
1553
1554 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1555 ac_prev=pdfdir ;;
1556 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1557 pdfdir=$ac_optarg ;;
1558
1559 -psdir | --psdir | --psdi | --psd | --ps)
1560 ac_prev=psdir ;;
1561 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1562 psdir=$ac_optarg ;;
1563
1564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1565 | -silent | --silent | --silen | --sile | --sil)
1566 silent=yes ;;
1567
1568 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1569 ac_prev=sbindir ;;
1570 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1571 | --sbi=* | --sb=*)
1572 sbindir=$ac_optarg ;;
1573
1574 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1575 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1576 | --sharedst | --shareds | --shared | --share | --shar \
1577 | --sha | --sh)
1578 ac_prev=sharedstatedir ;;
1579 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1580 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1581 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1582 | --sha=* | --sh=*)
1583 sharedstatedir=$ac_optarg ;;
1584
1585 -site | --site | --sit)
1586 ac_prev=site ;;
1587 -site=* | --site=* | --sit=*)
1588 site=$ac_optarg ;;
1589
1590 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1591 ac_prev=srcdir ;;
1592 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1593 srcdir=$ac_optarg ;;
1594
1595 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1596 | --syscon | --sysco | --sysc | --sys | --sy)
1597 ac_prev=sysconfdir ;;
1598 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1599 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1600 sysconfdir=$ac_optarg ;;
1601
1602 -target | --target | --targe | --targ | --tar | --ta | --t)
1603 ac_prev=target_alias ;;
1604 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1605 target_alias=$ac_optarg ;;
1606
1607 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1608 verbose=yes ;;
1609
1610 -version | --version | --versio | --versi | --vers | -V)
1611 ac_init_version=: ;;
1612
1613 -with-* | --with-*)
1614 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1615 # Reject names that are not valid shell variable names.
1616 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001617 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001618 ac_useropt_orig=$ac_useropt
1619 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1620 case $ac_user_opts in
1621 *"
1622"with_$ac_useropt"
1623"*) ;;
1624 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1625 ac_unrecognized_sep=', ';;
1626 esac
1627 eval with_$ac_useropt=\$ac_optarg ;;
1628
1629 -without-* | --without-*)
1630 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1631 # Reject names that are not valid shell variable names.
1632 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001633 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001634 ac_useropt_orig=$ac_useropt
1635 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1636 case $ac_user_opts in
1637 *"
1638"with_$ac_useropt"
1639"*) ;;
1640 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1641 ac_unrecognized_sep=', ';;
1642 esac
1643 eval with_$ac_useropt=no ;;
1644
1645 --x)
1646 # Obsolete; use --with-x.
1647 with_x=yes ;;
1648
1649 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1650 | --x-incl | --x-inc | --x-in | --x-i)
1651 ac_prev=x_includes ;;
1652 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1653 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1654 x_includes=$ac_optarg ;;
1655
1656 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1657 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1658 ac_prev=x_libraries ;;
1659 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1660 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1661 x_libraries=$ac_optarg ;;
1662
cristy8b350f62009-11-15 23:12:43 +00001663 -*) as_fn_error "unrecognized option: \`$ac_option'
1664Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001665 ;;
1666
1667 *=*)
1668 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1669 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001670 case $ac_envvar in #(
1671 '' | [0-9]* | *[!_$as_cr_alnum]* )
1672 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1673 esac
cristy3ed852e2009-09-05 21:47:34 +00001674 eval $ac_envvar=\$ac_optarg
1675 export $ac_envvar ;;
1676
1677 *)
1678 # FIXME: should be removed in autoconf 3.0.
1679 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1680 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1681 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1682 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1683 ;;
1684
1685 esac
1686done
1687
1688if test -n "$ac_prev"; then
1689 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001690 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001691fi
1692
1693if test -n "$ac_unrecognized_opts"; then
1694 case $enable_option_checking in
1695 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001696 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001697 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1698 esac
1699fi
1700
1701# Check all directory arguments for consistency.
1702for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1703 datadir sysconfdir sharedstatedir localstatedir includedir \
1704 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1705 libdir localedir mandir
1706do
1707 eval ac_val=\$$ac_var
1708 # Remove trailing slashes.
1709 case $ac_val in
1710 */ )
1711 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1712 eval $ac_var=\$ac_val;;
1713 esac
1714 # Be sure to have absolute directory names.
1715 case $ac_val in
1716 [\\/$]* | ?:[\\/]* ) continue;;
1717 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1718 esac
cristy8b350f62009-11-15 23:12:43 +00001719 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001720done
1721
1722# There might be people who depend on the old broken behavior: `$host'
1723# used to hold the argument of --host etc.
1724# FIXME: To remove some day.
1725build=$build_alias
1726host=$host_alias
1727target=$target_alias
1728
1729# FIXME: To remove some day.
1730if test "x$host_alias" != x; then
1731 if test "x$build_alias" = x; then
1732 cross_compiling=maybe
1733 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1734 If a cross compiler is detected then cross compile mode will be used." >&2
1735 elif test "x$build_alias" != "x$host_alias"; then
1736 cross_compiling=yes
1737 fi
1738fi
1739
1740ac_tool_prefix=
1741test -n "$host_alias" && ac_tool_prefix=$host_alias-
1742
1743test "$silent" = yes && exec 6>/dev/null
1744
1745
1746ac_pwd=`pwd` && test -n "$ac_pwd" &&
1747ac_ls_di=`ls -di .` &&
1748ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001749 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001750test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001751 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001752
1753
1754# Find the source files, if location was not specified.
1755if test -z "$srcdir"; then
1756 ac_srcdir_defaulted=yes
1757 # Try the directory containing this script, then the parent directory.
1758 ac_confdir=`$as_dirname -- "$as_myself" ||
1759$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1760 X"$as_myself" : 'X\(//\)[^/]' \| \
1761 X"$as_myself" : 'X\(//\)$' \| \
1762 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1763$as_echo X"$as_myself" |
1764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1765 s//\1/
1766 q
1767 }
1768 /^X\(\/\/\)[^/].*/{
1769 s//\1/
1770 q
1771 }
1772 /^X\(\/\/\)$/{
1773 s//\1/
1774 q
1775 }
1776 /^X\(\/\).*/{
1777 s//\1/
1778 q
1779 }
1780 s/.*/./; q'`
1781 srcdir=$ac_confdir
1782 if test ! -r "$srcdir/$ac_unique_file"; then
1783 srcdir=..
1784 fi
1785else
1786 ac_srcdir_defaulted=no
1787fi
1788if test ! -r "$srcdir/$ac_unique_file"; then
1789 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001790 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001791fi
1792ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1793ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001794 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001795 pwd)`
1796# When building in place, set srcdir=.
1797if test "$ac_abs_confdir" = "$ac_pwd"; then
1798 srcdir=.
1799fi
1800# Remove unnecessary trailing slashes from srcdir.
1801# Double slashes in file names in object file debugging info
1802# mess up M-x gdb in Emacs.
1803case $srcdir in
1804*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1805esac
1806for ac_var in $ac_precious_vars; do
1807 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1808 eval ac_env_${ac_var}_value=\$${ac_var}
1809 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1810 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1811done
1812
1813#
1814# Report the --help message.
1815#
1816if test "$ac_init_help" = "long"; then
1817 # Omit some internal or obsolete options to make the list less imposing.
1818 # This message is too long to be a string in the A/UX 3.1 sh.
1819 cat <<_ACEOF
cristy89effd22009-11-24 20:56:45 +00001820\`configure' configures ImageMagick 6.5.8 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001821
1822Usage: $0 [OPTION]... [VAR=VALUE]...
1823
1824To assign environment variables (e.g., CC, CFLAGS...), specify them as
1825VAR=VALUE. See below for descriptions of some of the useful variables.
1826
1827Defaults for the options are specified in brackets.
1828
1829Configuration:
1830 -h, --help display this help and exit
1831 --help=short display options specific to this package
1832 --help=recursive display the short help of all the included packages
1833 -V, --version display version information and exit
1834 -q, --quiet, --silent do not print \`checking...' messages
1835 --cache-file=FILE cache test results in FILE [disabled]
1836 -C, --config-cache alias for \`--cache-file=config.cache'
1837 -n, --no-create do not create output files
1838 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1839
1840Installation directories:
1841 --prefix=PREFIX install architecture-independent files in PREFIX
1842 [$ac_default_prefix]
1843 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1844 [PREFIX]
1845
1846By default, \`make install' will install all the files in
1847\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1848an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1849for instance \`--prefix=\$HOME'.
1850
1851For better control, use the options below.
1852
1853Fine tuning of the installation directories:
1854 --bindir=DIR user executables [EPREFIX/bin]
1855 --sbindir=DIR system admin executables [EPREFIX/sbin]
1856 --libexecdir=DIR program executables [EPREFIX/libexec]
1857 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1858 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1859 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1860 --libdir=DIR object code libraries [EPREFIX/lib]
1861 --includedir=DIR C header files [PREFIX/include]
1862 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1863 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1864 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1865 --infodir=DIR info documentation [DATAROOTDIR/info]
1866 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1867 --mandir=DIR man documentation [DATAROOTDIR/man]
1868 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1869 --htmldir=DIR html documentation [DOCDIR]
1870 --dvidir=DIR dvi documentation [DOCDIR]
1871 --pdfdir=DIR pdf documentation [DOCDIR]
1872 --psdir=DIR ps documentation [DOCDIR]
1873_ACEOF
1874
1875 cat <<\_ACEOF
1876
1877Program names:
1878 --program-prefix=PREFIX prepend PREFIX to installed program names
1879 --program-suffix=SUFFIX append SUFFIX to installed program names
1880 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1881
1882X features:
1883 --x-includes=DIR X include files are in DIR
1884 --x-libraries=DIR X library files are in DIR
1885
1886System types:
1887 --build=BUILD configure for building on BUILD [guessed]
1888 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1889 --target=TARGET configure for building compilers for TARGET [HOST]
1890_ACEOF
1891fi
1892
1893if test -n "$ac_init_help"; then
1894 case $ac_init_help in
cristy89effd22009-11-24 20:56:45 +00001895 short | recursive ) echo "Configuration of ImageMagick 6.5.8:";;
cristy3ed852e2009-09-05 21:47:34 +00001896 esac
1897 cat <<\_ACEOF
1898
1899Optional Features:
1900 --disable-option-checking ignore unrecognized --enable/--with options
1901 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1902 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1903 --enable-silent-rules less verbose build output (undo: `make V=1')
1904 --disable-silent-rules verbose build output (undo: `make V=0')
1905 --disable-dependency-tracking speeds up one-time build
1906 --enable-dependency-tracking do not reject slow dependency extractors
1907 --bounds-checking enable run-time bounds-checking
1908 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001909 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001910 --disable-openmp do not use OpenMP
1911 --disable-largefile omit support for large files
1912 --enable-shared[=PKGS] build shared libraries [default=yes]
1913 --enable-static[=PKGS] build static libraries [default=yes]
1914 --enable-fast-install[=PKGS]
1915 optimize for fast installation [default=yes]
1916 --disable-libtool-lock avoid locking (might break parallel builds)
1917 --enable-ltdl-install install libltdl
1918 --enable-delegate-build look for delegate libraries in build directory
1919 --disable-deprecated exclude deprecated methods in MagickCore and
1920 MagickWand API's
1921 --disable-installed Formally install ImageMagick under PREFIX
1922 --disable-cipher disable enciphering and deciphering image pixels
1923 --enable-embeddable enable self-contained, embeddable,
1924 zero-configuration ImageMagick
1925 --enable-hdri accurately represent the wide range of intensity
1926 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001927 --disable-assert disable assert() statements in build
1928 --enable-maintainer-mode enable make rules and dependencies not useful
1929 (and sometimes confusing) to the casual installer
1930 --enable-ccmalloc enable 'ccmalloc' memory debug support
1931 --enable-efence enable 'efence' memory debug support
1932 --enable-prof enable 'prof' profiling support
1933 --enable-gprof enable 'gprof' profiling support
1934 --enable-gcov enable 'gcov' profiling support
1935
1936Optional Packages:
1937 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1938 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1939 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1940 --without-maximum-compile-warnings
1941 Disable maximum warning verbosity
1942 --with-dmalloc use dmalloc, as in
1943 http://www.dmalloc.com/dmalloc.tar.gz
1944 --without-threads disable threads support
1945 --with-pic try to use only PIC/non-PIC objects [default=use
1946 both]
1947 --with-included-ltdl use the GNU ltdl sources included here
1948 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1949 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1950 --with-modules enable building dynamically loadable modules
1951 --with-method-prefix=PREFIX
1952 prefix MagickCore API methods
1953 --with-quantum-depth=DEPTH
1954 number of bits in a pixel quantum (default 16)
1955 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1956 memory)
1957 --with-frozenpaths freeze delegate paths
1958 --without-magick-plus-plus
1959 disable build/install of Magick++
1960 --with-perl enable build/install of PerlMagick
1961 --with-perl-options=OPTIONS
1962 options to pass on command-line when generating
1963 PerlMagick's build file
1964 --with-umem enable umem memory allocation library support
1965 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1966 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001967 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001968 --without-zlib disable ZLIB support
1969 --with-autotrace enable autotrace support
1970 --without-dps disable Display Postscript support
1971 --without-djvu disable DjVu support
1972 --without-fftw disable FFTW support
1973 --without-fpx disable FlashPIX support
1974 --without-fontconfig disable fontconfig support
1975 --without-freetype disable Freetype support
1976 --without-gslib enable Ghostscript library support
1977 --with-fontpath=DIR prepend to default font search path
1978 --with-gs-font-dir=DIR Ghostscript font directory
1979 --without-gvc disable GVC support
1980 --without-jbig disable JBIG support
1981 --without-jpeg disable JPEG support
1982 --without-jp2 disable JPEG-2000 support
1983 --without-lcms disable LCMS support
1984 --without-lqr disable Liquid Rescale support (experimental)
1985 --without-openexr disable OpenEXR support
1986 --without-png disable PNG support
1987 --without-rsvg disable RSVG support
1988 --without-tiff disable TIFF support
1989 --with-windows-font-dir=DIR
1990 directory containing MS-Windows fonts
1991 --without-wmf disable WMF support
1992 --without-xml disable XML support
1993
1994Some influential environment variables:
1995 CC C compiler command
1996 CFLAGS C compiler flags
1997 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1998 nonstandard directory <lib dir>
1999 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002000 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002001 you have headers in a nonstandard directory <include dir>
2002 CPP C preprocessor
2003 CXX C++ compiler command
2004 CXXFLAGS C++ compiler flags
2005 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002006 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002007 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002008 AUTOTRACE_CFLAGS
2009 C compiler flags for AUTOTRACE, overriding pkg-config
2010 AUTOTRACE_LIBS
2011 linker flags for AUTOTRACE, overriding pkg-config
2012 FONTCONFIG_CFLAGS
2013 C compiler flags for FONTCONFIG, overriding pkg-config
2014 FONTCONFIG_LIBS
2015 linker flags for FONTCONFIG, overriding pkg-config
2016 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2017 GVC_LIBS linker flags for GVC, overriding pkg-config
2018 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2019 LQR_LIBS linker flags for LQR, overriding pkg-config
2020 OPENEXR_CFLAGS
2021 C compiler flags for OPENEXR, overriding pkg-config
2022 OPENEXR_LIBS
2023 linker flags for OPENEXR, overriding pkg-config
2024 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2025 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2026 CAIRO_SVG_CFLAGS
2027 C compiler flags for CAIRO_SVG, overriding pkg-config
2028 CAIRO_SVG_LIBS
2029 linker flags for CAIRO_SVG, overriding pkg-config
2030
2031Use these variables to override the choices made by `configure' or to help
2032it to find libraries and programs with nonstandard names/locations.
2033
2034Report bugs to <http://www.imagemagick.org>.
2035_ACEOF
2036ac_status=$?
2037fi
2038
2039if test "$ac_init_help" = "recursive"; then
2040 # If there are subdirs, report their specific --help.
2041 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2042 test -d "$ac_dir" ||
2043 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2044 continue
2045 ac_builddir=.
2046
2047case "$ac_dir" in
2048.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2049*)
2050 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2051 # A ".." for each directory in $ac_dir_suffix.
2052 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2053 case $ac_top_builddir_sub in
2054 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2055 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2056 esac ;;
2057esac
2058ac_abs_top_builddir=$ac_pwd
2059ac_abs_builddir=$ac_pwd$ac_dir_suffix
2060# for backward compatibility:
2061ac_top_builddir=$ac_top_build_prefix
2062
2063case $srcdir in
2064 .) # We are building in place.
2065 ac_srcdir=.
2066 ac_top_srcdir=$ac_top_builddir_sub
2067 ac_abs_top_srcdir=$ac_pwd ;;
2068 [\\/]* | ?:[\\/]* ) # Absolute name.
2069 ac_srcdir=$srcdir$ac_dir_suffix;
2070 ac_top_srcdir=$srcdir
2071 ac_abs_top_srcdir=$srcdir ;;
2072 *) # Relative name.
2073 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2074 ac_top_srcdir=$ac_top_build_prefix$srcdir
2075 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2076esac
2077ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2078
2079 cd "$ac_dir" || { ac_status=$?; continue; }
2080 # Check for guested configure.
2081 if test -f "$ac_srcdir/configure.gnu"; then
2082 echo &&
2083 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2084 elif test -f "$ac_srcdir/configure"; then
2085 echo &&
2086 $SHELL "$ac_srcdir/configure" --help=recursive
2087 else
2088 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2089 fi || ac_status=$?
2090 cd "$ac_pwd" || { ac_status=$?; break; }
2091 done
2092fi
2093
2094test -n "$ac_init_help" && exit $ac_status
2095if $ac_init_version; then
2096 cat <<\_ACEOF
cristy89effd22009-11-24 20:56:45 +00002097ImageMagick configure 6.5.8
cristycd4c5312009-11-22 01:19:08 +00002098generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002099
cristy8b350f62009-11-15 23:12:43 +00002100Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002101This configure script is free software; the Free Software Foundation
2102gives unlimited permission to copy, distribute and modify it.
2103_ACEOF
2104 exit
2105fi
cristy8b350f62009-11-15 23:12:43 +00002106
2107## ------------------------ ##
2108## Autoconf initialization. ##
2109## ------------------------ ##
2110
2111# ac_fn_c_try_compile LINENO
2112# --------------------------
2113# Try to compile conftest.$ac_ext, and return whether this succeeded.
2114ac_fn_c_try_compile ()
2115{
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 rm -f conftest.$ac_objext
2118 if { { ac_try="$ac_compile"
2119case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122esac
2123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124$as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_compile") 2>conftest.err
2126 ac_status=$?
2127 if test -s conftest.err; then
2128 grep -v '^ *+' conftest.err >conftest.er1
2129 cat conftest.er1 >&5
2130 mv -f conftest.er1 conftest.err
2131 fi
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; } && {
2134 test -z "$ac_c_werror_flag" ||
2135 test ! -s conftest.err
2136 } && test -s conftest.$ac_objext; then :
2137 ac_retval=0
2138else
2139 $as_echo "$as_me: failed program was:" >&5
2140sed 's/^/| /' conftest.$ac_ext >&5
2141
2142 ac_retval=1
2143fi
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002145 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002146
2147} # ac_fn_c_try_compile
2148
2149# ac_fn_c_try_cpp LINENO
2150# ----------------------
2151# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2152ac_fn_c_try_cpp ()
2153{
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 if { { ac_try="$ac_cpp conftest.$ac_ext"
2156case "(($ac_try" in
2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158 *) ac_try_echo=$ac_try;;
2159esac
2160eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2161$as_echo "$ac_try_echo"; } >&5
2162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2163 ac_status=$?
2164 if test -s conftest.err; then
2165 grep -v '^ *+' conftest.err >conftest.er1
2166 cat conftest.er1 >&5
2167 mv -f conftest.er1 conftest.err
2168 fi
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } >/dev/null && {
2171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2172 test ! -s conftest.err
2173 }; then :
2174 ac_retval=0
2175else
2176 $as_echo "$as_me: failed program was:" >&5
2177sed 's/^/| /' conftest.$ac_ext >&5
2178
2179 ac_retval=1
2180fi
2181 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002182 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002183
2184} # ac_fn_c_try_cpp
2185
2186# ac_fn_cxx_try_compile LINENO
2187# ----------------------------
2188# Try to compile conftest.$ac_ext, and return whether this succeeded.
2189ac_fn_cxx_try_compile ()
2190{
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 rm -f conftest.$ac_objext
2193 if { { ac_try="$ac_compile"
2194case "(($ac_try" in
2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196 *) ac_try_echo=$ac_try;;
2197esac
2198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199$as_echo "$ac_try_echo"; } >&5
2200 (eval "$ac_compile") 2>conftest.err
2201 ac_status=$?
2202 if test -s conftest.err; then
2203 grep -v '^ *+' conftest.err >conftest.er1
2204 cat conftest.er1 >&5
2205 mv -f conftest.er1 conftest.err
2206 fi
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; } && {
2209 test -z "$ac_cxx_werror_flag" ||
2210 test ! -s conftest.err
2211 } && test -s conftest.$ac_objext; then :
2212 ac_retval=0
2213else
2214 $as_echo "$as_me: failed program was:" >&5
2215sed 's/^/| /' conftest.$ac_ext >&5
2216
2217 ac_retval=1
2218fi
2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002220 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002221
2222} # ac_fn_cxx_try_compile
2223
2224# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2225# -------------------------------------------------------
2226# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2227# the include files in INCLUDES and setting the cache variable VAR
2228# accordingly.
2229ac_fn_c_check_header_mongrel ()
2230{
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234$as_echo_n "checking for $2... " >&6; }
2235if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2236 $as_echo_n "(cached) " >&6
2237fi
2238eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240$as_echo "$ac_res" >&6; }
2241else
2242 # Is the header compilable?
2243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2244$as_echo_n "checking $2 usability... " >&6; }
2245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246/* end confdefs.h. */
2247$4
2248#include <$2>
2249_ACEOF
2250if ac_fn_c_try_compile "$LINENO"; then :
2251 ac_header_compiler=yes
2252else
2253 ac_header_compiler=no
2254fi
2255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2257$as_echo "$ac_header_compiler" >&6; }
2258
2259# Is the header present?
2260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2261$as_echo_n "checking $2 presence... " >&6; }
2262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263/* end confdefs.h. */
2264#include <$2>
2265_ACEOF
2266if ac_fn_c_try_cpp "$LINENO"; then :
2267 ac_header_preproc=yes
2268else
2269 ac_header_preproc=no
2270fi
2271rm -f conftest.err conftest.$ac_ext
2272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2273$as_echo "$ac_header_preproc" >&6; }
2274
2275# So? What about this header?
2276case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2277 yes:no: )
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2279$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2281$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2282 ;;
2283 no:yes:* )
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2285$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2287$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2289$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2291$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2293$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2294( cat <<\_ASBOX
2295## ----------------------------------------- ##
2296## Report this to http://www.imagemagick.org ##
2297## ----------------------------------------- ##
2298_ASBOX
2299 ) | sed "s/^/$as_me: WARNING: /" >&2
2300 ;;
2301esac
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2303$as_echo_n "checking for $2... " >&6; }
2304if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2305 $as_echo_n "(cached) " >&6
2306else
2307 eval "$3=\$ac_header_compiler"
2308fi
2309eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311$as_echo "$ac_res" >&6; }
2312fi
2313 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2314
2315} # ac_fn_c_check_header_mongrel
2316
2317# ac_fn_c_try_run LINENO
2318# ----------------------
2319# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2320# that executables *can* be run.
2321ac_fn_c_try_run ()
2322{
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 if { { ac_try="$ac_link"
2325case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328esac
2329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2330$as_echo "$ac_try_echo"; } >&5
2331 (eval "$ac_link") 2>&5
2332 ac_status=$?
2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2335 { { case "(($ac_try" in
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2338esac
2339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340$as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_try") 2>&5
2342 ac_status=$?
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; }; }; then :
2345 ac_retval=0
2346else
2347 $as_echo "$as_me: program exited with status $ac_status" >&5
2348 $as_echo "$as_me: failed program was:" >&5
2349sed 's/^/| /' conftest.$ac_ext >&5
2350
2351 ac_retval=$ac_status
2352fi
2353 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002355 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002356
2357} # ac_fn_c_try_run
2358
2359# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2360# -------------------------------------------------------
2361# Tests whether HEADER exists and can be compiled using the include files in
2362# INCLUDES, setting the cache variable VAR accordingly.
2363ac_fn_c_check_header_compile ()
2364{
2365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2367$as_echo_n "checking for $2... " >&6; }
2368if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2369 $as_echo_n "(cached) " >&6
2370else
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372/* end confdefs.h. */
2373$4
2374#include <$2>
2375_ACEOF
2376if ac_fn_c_try_compile "$LINENO"; then :
2377 eval "$3=yes"
2378else
2379 eval "$3=no"
2380fi
2381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382fi
2383eval ac_res=\$$3
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385$as_echo "$ac_res" >&6; }
2386 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2387
2388} # ac_fn_c_check_header_compile
2389
2390# ac_fn_c_try_link LINENO
2391# -----------------------
2392# Try to link conftest.$ac_ext, and return whether this succeeded.
2393ac_fn_c_try_link ()
2394{
2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396 rm -f conftest.$ac_objext conftest$ac_exeext
2397 if { { ac_try="$ac_link"
2398case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2401esac
2402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2403$as_echo "$ac_try_echo"; } >&5
2404 (eval "$ac_link") 2>conftest.err
2405 ac_status=$?
2406 if test -s conftest.err; then
2407 grep -v '^ *+' conftest.err >conftest.er1
2408 cat conftest.er1 >&5
2409 mv -f conftest.er1 conftest.err
2410 fi
2411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2412 test $ac_status = 0; } && {
2413 test -z "$ac_c_werror_flag" ||
2414 test ! -s conftest.err
2415 } && test -s conftest$ac_exeext && {
2416 test "$cross_compiling" = yes ||
2417 $as_test_x conftest$ac_exeext
2418 }; then :
2419 ac_retval=0
2420else
2421 $as_echo "$as_me: failed program was:" >&5
2422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424 ac_retval=1
2425fi
2426 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2427 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2428 # interfere with the next link command; also delete a directory that is
2429 # left behind by Apple's compiler. We do this before executing the actions.
2430 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2431 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002432 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002433
2434} # ac_fn_c_try_link
2435
2436# ac_fn_c_check_func LINENO FUNC VAR
2437# ----------------------------------
2438# Tests whether FUNC exists, setting the cache variable VAR accordingly
2439ac_fn_c_check_func ()
2440{
2441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443$as_echo_n "checking for $2... " >&6; }
2444if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2445 $as_echo_n "(cached) " >&6
2446else
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448/* end confdefs.h. */
2449/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2451#define $2 innocuous_$2
2452
2453/* System header to define __stub macros and hopefully few prototypes,
2454 which can conflict with char $2 (); below.
2455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2456 <limits.h> exists even on freestanding compilers. */
2457
2458#ifdef __STDC__
2459# include <limits.h>
2460#else
2461# include <assert.h>
2462#endif
2463
2464#undef $2
2465
2466/* Override any GCC internal prototype to avoid an error.
2467 Use char because int might match the return type of a GCC
2468 builtin and then its argument prototype would still apply. */
2469#ifdef __cplusplus
2470extern "C"
2471#endif
2472char $2 ();
2473/* The GNU C library defines this for functions which it implements
2474 to always fail with ENOSYS. Some functions are actually named
2475 something starting with __ and the normal name is an alias. */
2476#if defined __stub_$2 || defined __stub___$2
2477choke me
2478#endif
2479
2480int
2481main ()
2482{
2483return $2 ();
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488if ac_fn_c_try_link "$LINENO"; then :
2489 eval "$3=yes"
2490else
2491 eval "$3=no"
2492fi
2493rm -f core conftest.err conftest.$ac_objext \
2494 conftest$ac_exeext conftest.$ac_ext
2495fi
2496eval ac_res=\$$3
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2498$as_echo "$ac_res" >&6; }
2499 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2500
2501} # ac_fn_c_check_func
2502
2503# ac_fn_cxx_try_cpp LINENO
2504# ------------------------
2505# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2506ac_fn_cxx_try_cpp ()
2507{
2508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509 if { { ac_try="$ac_cpp conftest.$ac_ext"
2510case "(($ac_try" in
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2513esac
2514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2515$as_echo "$ac_try_echo"; } >&5
2516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2517 ac_status=$?
2518 if test -s conftest.err; then
2519 grep -v '^ *+' conftest.err >conftest.er1
2520 cat conftest.er1 >&5
2521 mv -f conftest.er1 conftest.err
2522 fi
2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2524 test $ac_status = 0; } >/dev/null && {
2525 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2526 test ! -s conftest.err
2527 }; then :
2528 ac_retval=0
2529else
2530 $as_echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533 ac_retval=1
2534fi
2535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002536 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002537
2538} # ac_fn_cxx_try_cpp
2539
2540# ac_fn_cxx_try_link LINENO
2541# -------------------------
2542# Try to link conftest.$ac_ext, and return whether this succeeded.
2543ac_fn_cxx_try_link ()
2544{
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 rm -f conftest.$ac_objext conftest$ac_exeext
2547 if { { ac_try="$ac_link"
2548case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2551esac
2552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2553$as_echo "$ac_try_echo"; } >&5
2554 (eval "$ac_link") 2>conftest.err
2555 ac_status=$?
2556 if test -s conftest.err; then
2557 grep -v '^ *+' conftest.err >conftest.er1
2558 cat conftest.er1 >&5
2559 mv -f conftest.er1 conftest.err
2560 fi
2561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2562 test $ac_status = 0; } && {
2563 test -z "$ac_cxx_werror_flag" ||
2564 test ! -s conftest.err
2565 } && test -s conftest$ac_exeext && {
2566 test "$cross_compiling" = yes ||
2567 $as_test_x conftest$ac_exeext
2568 }; then :
2569 ac_retval=0
2570else
2571 $as_echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 ac_retval=1
2575fi
2576 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2577 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2578 # interfere with the next link command; also delete a directory that is
2579 # left behind by Apple's compiler. We do this before executing the actions.
2580 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002582 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002583
2584} # ac_fn_cxx_try_link
2585
2586# ac_fn_c_check_decl LINENO SYMBOL VAR
2587# ------------------------------------
2588# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2589ac_fn_c_check_decl ()
2590{
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2593$as_echo_n "checking whether $2 is declared... " >&6; }
2594if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2595 $as_echo_n "(cached) " >&6
2596else
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598/* end confdefs.h. */
2599$4
2600int
2601main ()
2602{
2603#ifndef $2
2604 (void) $2;
2605#endif
2606
2607 ;
2608 return 0;
2609}
2610_ACEOF
2611if ac_fn_c_try_compile "$LINENO"; then :
2612 eval "$3=yes"
2613else
2614 eval "$3=no"
2615fi
2616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617fi
2618eval ac_res=\$$3
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620$as_echo "$ac_res" >&6; }
2621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2622
2623} # ac_fn_c_check_decl
2624
2625# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2626# -------------------------------------------
2627# Tests whether TYPE exists after having included INCLUDES, setting cache
2628# variable VAR accordingly.
2629ac_fn_c_check_type ()
2630{
2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2633$as_echo_n "checking for $2... " >&6; }
2634if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2635 $as_echo_n "(cached) " >&6
2636else
2637 eval "$3=no"
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639/* end confdefs.h. */
2640$4
2641int
2642main ()
2643{
2644if (sizeof ($2))
2645 return 0;
2646 ;
2647 return 0;
2648}
2649_ACEOF
2650if ac_fn_c_try_compile "$LINENO"; then :
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652/* end confdefs.h. */
2653$4
2654int
2655main ()
2656{
2657if (sizeof (($2)))
2658 return 0;
2659 ;
2660 return 0;
2661}
2662_ACEOF
2663if ac_fn_c_try_compile "$LINENO"; then :
2664
2665else
2666 eval "$3=yes"
2667fi
2668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669fi
2670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671fi
2672eval ac_res=\$$3
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674$as_echo "$ac_res" >&6; }
2675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2676
2677} # ac_fn_c_check_type
2678
2679# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2680# --------------------------------------------
2681# Tries to find the compile-time value of EXPR in a program that includes
2682# INCLUDES, setting VAR accordingly. Returns whether the value could be
2683# computed
2684ac_fn_c_compute_int ()
2685{
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 if test "$cross_compiling" = yes; then
2688 # Depending upon the size, compute the lo and hi bounds.
2689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690/* end confdefs.h. */
2691$4
2692int
2693main ()
2694{
2695static int test_array [1 - 2 * !(($2) >= 0)];
2696test_array [0] = 0
2697
2698 ;
2699 return 0;
2700}
2701_ACEOF
2702if ac_fn_c_try_compile "$LINENO"; then :
2703 ac_lo=0 ac_mid=0
2704 while :; do
2705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706/* end confdefs.h. */
2707$4
2708int
2709main ()
2710{
2711static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2712test_array [0] = 0
2713
2714 ;
2715 return 0;
2716}
2717_ACEOF
2718if ac_fn_c_try_compile "$LINENO"; then :
2719 ac_hi=$ac_mid; break
2720else
2721 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2722 if test $ac_lo -le $ac_mid; then
2723 ac_lo= ac_hi=
2724 break
2725 fi
2726 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2727fi
2728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 done
2730else
2731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732/* end confdefs.h. */
2733$4
2734int
2735main ()
2736{
2737static int test_array [1 - 2 * !(($2) < 0)];
2738test_array [0] = 0
2739
2740 ;
2741 return 0;
2742}
2743_ACEOF
2744if ac_fn_c_try_compile "$LINENO"; then :
2745 ac_hi=-1 ac_mid=-1
2746 while :; do
2747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2748/* end confdefs.h. */
2749$4
2750int
2751main ()
2752{
2753static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2754test_array [0] = 0
2755
2756 ;
2757 return 0;
2758}
2759_ACEOF
2760if ac_fn_c_try_compile "$LINENO"; then :
2761 ac_lo=$ac_mid; break
2762else
2763 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2764 if test $ac_mid -le $ac_hi; then
2765 ac_lo= ac_hi=
2766 break
2767 fi
2768 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2769fi
2770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 done
2772else
2773 ac_lo= ac_hi=
2774fi
2775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2776fi
2777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778# Binary search between lo and hi bounds.
2779while test "x$ac_lo" != "x$ac_hi"; do
2780 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782/* end confdefs.h. */
2783$4
2784int
2785main ()
2786{
2787static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2788test_array [0] = 0
2789
2790 ;
2791 return 0;
2792}
2793_ACEOF
2794if ac_fn_c_try_compile "$LINENO"; then :
2795 ac_hi=$ac_mid
2796else
2797 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2798fi
2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800done
2801case $ac_lo in #((
2802?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2803'') ac_retval=1 ;;
2804esac
2805 else
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807/* end confdefs.h. */
2808$4
2809static long int longval () { return $2; }
2810static unsigned long int ulongval () { return $2; }
2811#include <stdio.h>
2812#include <stdlib.h>
2813int
2814main ()
2815{
2816
2817 FILE *f = fopen ("conftest.val", "w");
2818 if (! f)
2819 return 1;
2820 if (($2) < 0)
2821 {
2822 long int i = longval ();
2823 if (i != ($2))
2824 return 1;
2825 fprintf (f, "%ld", i);
2826 }
2827 else
2828 {
2829 unsigned long int i = ulongval ();
2830 if (i != ($2))
2831 return 1;
2832 fprintf (f, "%lu", i);
2833 }
2834 /* Do not output a trailing newline, as this causes \r\n confusion
2835 on some platforms. */
2836 return ferror (f) || fclose (f) != 0;
2837
2838 ;
2839 return 0;
2840}
2841_ACEOF
2842if ac_fn_c_try_run "$LINENO"; then :
2843 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2844else
2845 ac_retval=1
2846fi
2847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2848 conftest.$ac_objext conftest.beam conftest.$ac_ext
2849rm -f conftest.val
2850
2851 fi
2852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002853 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002854
2855} # ac_fn_c_compute_int
2856
2857# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2858# ---------------------------------------------------------
2859# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2860# the include files in INCLUDES and setting the cache variable VAR
2861# accordingly.
2862ac_fn_cxx_check_header_mongrel ()
2863{
2864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2865 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2867$as_echo_n "checking for $2... " >&6; }
2868if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2869 $as_echo_n "(cached) " >&6
2870fi
2871eval ac_res=\$$3
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2873$as_echo "$ac_res" >&6; }
2874else
2875 # Is the header compilable?
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2877$as_echo_n "checking $2 usability... " >&6; }
2878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879/* end confdefs.h. */
2880$4
2881#include <$2>
2882_ACEOF
2883if ac_fn_cxx_try_compile "$LINENO"; then :
2884 ac_header_compiler=yes
2885else
2886 ac_header_compiler=no
2887fi
2888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2890$as_echo "$ac_header_compiler" >&6; }
2891
2892# Is the header present?
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2894$as_echo_n "checking $2 presence... " >&6; }
2895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896/* end confdefs.h. */
2897#include <$2>
2898_ACEOF
2899if ac_fn_cxx_try_cpp "$LINENO"; then :
2900 ac_header_preproc=yes
2901else
2902 ac_header_preproc=no
2903fi
2904rm -f conftest.err conftest.$ac_ext
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2906$as_echo "$ac_header_preproc" >&6; }
2907
2908# So? What about this header?
2909case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2910 yes:no: )
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2912$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2914$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2915 ;;
2916 no:yes:* )
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2918$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2920$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2922$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2924$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2926$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2927( cat <<\_ASBOX
2928## ----------------------------------------- ##
2929## Report this to http://www.imagemagick.org ##
2930## ----------------------------------------- ##
2931_ASBOX
2932 ) | sed "s/^/$as_me: WARNING: /" >&2
2933 ;;
2934esac
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2936$as_echo_n "checking for $2... " >&6; }
2937if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2938 $as_echo_n "(cached) " >&6
2939else
2940 eval "$3=\$ac_header_compiler"
2941fi
2942eval ac_res=\$$3
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2944$as_echo "$ac_res" >&6; }
2945fi
2946 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2947
2948} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002949cat >config.log <<_ACEOF
2950This file contains any messages produced by compilers while
2951running configure, to aid debugging if configure makes a mistake.
2952
cristy89effd22009-11-24 20:56:45 +00002953It was created by ImageMagick $as_me 6.5.8, which was
cristycd4c5312009-11-22 01:19:08 +00002954generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002955
2956 $ $0 $@
2957
2958_ACEOF
2959exec 5>>config.log
2960{
2961cat <<_ASUNAME
2962## --------- ##
2963## Platform. ##
2964## --------- ##
2965
2966hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2967uname -m = `(uname -m) 2>/dev/null || echo unknown`
2968uname -r = `(uname -r) 2>/dev/null || echo unknown`
2969uname -s = `(uname -s) 2>/dev/null || echo unknown`
2970uname -v = `(uname -v) 2>/dev/null || echo unknown`
2971
2972/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2973/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2974
2975/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2976/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2977/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2978/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2979/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2980/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2981/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2982
2983_ASUNAME
2984
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002990 $as_echo "PATH: $as_dir"
2991 done
cristy3ed852e2009-09-05 21:47:34 +00002992IFS=$as_save_IFS
2993
2994} >&5
2995
2996cat >&5 <<_ACEOF
2997
2998
2999## ----------- ##
3000## Core tests. ##
3001## ----------- ##
3002
3003_ACEOF
3004
3005
3006# Keep a trace of the command line.
3007# Strip out --no-create and --no-recursion so they do not pile up.
3008# Strip out --silent because we don't want to record it for future runs.
3009# Also quote any args containing shell meta-characters.
3010# Make two passes to allow for proper duplicate-argument suppression.
3011ac_configure_args=
3012ac_configure_args0=
3013ac_configure_args1=
3014ac_must_keep_next=false
3015for ac_pass in 1 2
3016do
3017 for ac_arg
3018 do
3019 case $ac_arg in
3020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3022 | -silent | --silent | --silen | --sile | --sil)
3023 continue ;;
3024 *\'*)
3025 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3026 esac
3027 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003029 2)
cristy8b350f62009-11-15 23:12:43 +00003030 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003031 if test $ac_must_keep_next = true; then
3032 ac_must_keep_next=false # Got value, back to normal.
3033 else
3034 case $ac_arg in
3035 *=* | --config-cache | -C | -disable-* | --disable-* \
3036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3038 | -with-* | --with-* | -without-* | --without-* | --x)
3039 case "$ac_configure_args0 " in
3040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3041 esac
3042 ;;
3043 -* ) ac_must_keep_next=true ;;
3044 esac
3045 fi
cristy8b350f62009-11-15 23:12:43 +00003046 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003047 ;;
3048 esac
3049 done
3050done
cristy8b350f62009-11-15 23:12:43 +00003051{ ac_configure_args0=; unset ac_configure_args0;}
3052{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003053
3054# When interrupted or exit'd, cleanup temporary files, and complete
3055# config.log. We remove comments because anyway the quotes in there
3056# would cause problems or look ugly.
3057# WARNING: Use '\'' to represent an apostrophe within the trap.
3058# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3059trap 'exit_status=$?
3060 # Save into config.log some information that might help in debugging.
3061 {
3062 echo
3063
3064 cat <<\_ASBOX
3065## ---------------- ##
3066## Cache variables. ##
3067## ---------------- ##
3068_ASBOX
3069 echo
3070 # The following way of writing the cache mishandles newlines in values,
3071(
3072 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3073 eval ac_val=\$$ac_var
3074 case $ac_val in #(
3075 *${as_nl}*)
3076 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3079 esac
3080 case $ac_var in #(
3081 _ | IFS | as_nl) ;; #(
3082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003083 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003084 esac ;;
3085 esac
3086 done
3087 (set) 2>&1 |
3088 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3089 *${as_nl}ac_space=\ *)
3090 sed -n \
3091 "s/'\''/'\''\\\\'\'''\''/g;
3092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3093 ;; #(
3094 *)
3095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3096 ;;
3097 esac |
3098 sort
3099)
3100 echo
3101
3102 cat <<\_ASBOX
3103## ----------------- ##
3104## Output variables. ##
3105## ----------------- ##
3106_ASBOX
3107 echo
3108 for ac_var in $ac_subst_vars
3109 do
3110 eval ac_val=\$$ac_var
3111 case $ac_val in
3112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3113 esac
3114 $as_echo "$ac_var='\''$ac_val'\''"
3115 done | sort
3116 echo
3117
3118 if test -n "$ac_subst_files"; then
3119 cat <<\_ASBOX
3120## ------------------- ##
3121## File substitutions. ##
3122## ------------------- ##
3123_ASBOX
3124 echo
3125 for ac_var in $ac_subst_files
3126 do
3127 eval ac_val=\$$ac_var
3128 case $ac_val in
3129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3130 esac
3131 $as_echo "$ac_var='\''$ac_val'\''"
3132 done | sort
3133 echo
3134 fi
3135
3136 if test -s confdefs.h; then
3137 cat <<\_ASBOX
3138## ----------- ##
3139## confdefs.h. ##
3140## ----------- ##
3141_ASBOX
3142 echo
3143 cat confdefs.h
3144 echo
3145 fi
3146 test "$ac_signal" != 0 &&
3147 $as_echo "$as_me: caught signal $ac_signal"
3148 $as_echo "$as_me: exit $exit_status"
3149 } >&5
3150 rm -f core *.core core.conftest.* &&
3151 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3152 exit $exit_status
3153' 0
3154for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003155 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003156done
3157ac_signal=0
3158
3159# confdefs.h avoids OS command line length limits that DEFS can exceed.
3160rm -f -r conftest* confdefs.h
3161
cristy8b350f62009-11-15 23:12:43 +00003162$as_echo "/* confdefs.h */" > confdefs.h
3163
cristy3ed852e2009-09-05 21:47:34 +00003164# Predefined preprocessor variables.
3165
3166cat >>confdefs.h <<_ACEOF
3167#define PACKAGE_NAME "$PACKAGE_NAME"
3168_ACEOF
3169
cristy3ed852e2009-09-05 21:47:34 +00003170cat >>confdefs.h <<_ACEOF
3171#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3172_ACEOF
3173
cristy3ed852e2009-09-05 21:47:34 +00003174cat >>confdefs.h <<_ACEOF
3175#define PACKAGE_VERSION "$PACKAGE_VERSION"
3176_ACEOF
3177
cristy3ed852e2009-09-05 21:47:34 +00003178cat >>confdefs.h <<_ACEOF
3179#define PACKAGE_STRING "$PACKAGE_STRING"
3180_ACEOF
3181
cristy3ed852e2009-09-05 21:47:34 +00003182cat >>confdefs.h <<_ACEOF
3183#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3184_ACEOF
3185
cristy8b350f62009-11-15 23:12:43 +00003186cat >>confdefs.h <<_ACEOF
3187#define PACKAGE_URL "$PACKAGE_URL"
3188_ACEOF
3189
cristy3ed852e2009-09-05 21:47:34 +00003190
3191# Let the site file select an alternate cache file if it wants to.
3192# Prefer an explicitly selected file to automatically selected ones.
3193ac_site_file1=NONE
3194ac_site_file2=NONE
3195if test -n "$CONFIG_SITE"; then
3196 ac_site_file1=$CONFIG_SITE
3197elif test "x$prefix" != xNONE; then
3198 ac_site_file1=$prefix/share/config.site
3199 ac_site_file2=$prefix/etc/config.site
3200else
3201 ac_site_file1=$ac_default_prefix/share/config.site
3202 ac_site_file2=$ac_default_prefix/etc/config.site
3203fi
3204for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3205do
3206 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003207 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003209$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3210 sed 's/^/| /' "$ac_site_file" >&5
3211 . "$ac_site_file"
3212 fi
3213done
3214
3215if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003216 # Some versions of bash will fail to source /dev/null (special files
3217 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3218 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003220$as_echo "$as_me: loading cache $cache_file" >&6;}
3221 case $cache_file in
3222 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3223 *) . "./$cache_file";;
3224 esac
3225 fi
3226else
cristy8b350f62009-11-15 23:12:43 +00003227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003228$as_echo "$as_me: creating cache $cache_file" >&6;}
3229 >$cache_file
3230fi
3231
cristycd4c5312009-11-22 01:19:08 +00003232as_fn_append ac_header_list " stdlib.h"
3233as_fn_append ac_header_list " unistd.h"
3234as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003235# Check that the precious variables saved in the cache have kept the same
3236# value.
3237ac_cache_corrupted=false
3238for ac_var in $ac_precious_vars; do
3239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3240 eval ac_new_set=\$ac_env_${ac_var}_set
3241 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3242 eval ac_new_val=\$ac_env_${ac_var}_value
3243 case $ac_old_set,$ac_new_set in
3244 set,)
cristy8b350f62009-11-15 23:12:43 +00003245 { $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 +00003246$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3247 ac_cache_corrupted=: ;;
3248 ,set)
cristy8b350f62009-11-15 23:12:43 +00003249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003250$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3251 ac_cache_corrupted=: ;;
3252 ,);;
3253 *)
3254 if test "x$ac_old_val" != "x$ac_new_val"; then
3255 # differences in whitespace do not lead to failure.
3256 ac_old_val_w=`echo x $ac_old_val`
3257 ac_new_val_w=`echo x $ac_new_val`
3258 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003260$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3261 ac_cache_corrupted=:
3262 else
cristy8b350f62009-11-15 23:12:43 +00003263 { $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 +00003264$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3265 eval $ac_var=\$ac_old_val
3266 fi
cristy8b350f62009-11-15 23:12:43 +00003267 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003268$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003269 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003270$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3271 fi;;
3272 esac
3273 # Pass precious variables to config.status.
3274 if test "$ac_new_set" = set; then
3275 case $ac_new_val in
3276 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3277 *) ac_arg=$ac_var=$ac_new_val ;;
3278 esac
3279 case " $ac_configure_args " in
3280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003281 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003282 esac
3283 fi
3284done
3285if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003289$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003290 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003291fi
cristy8b350f62009-11-15 23:12:43 +00003292## -------------------- ##
3293## Main body of script. ##
3294## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003295
3296ac_ext=c
3297ac_cpp='$CPP $CPPFLAGS'
3298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301
3302
3303
3304ac_aux_dir=
3305for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003306 for ac_t in install-sh install.sh shtool; do
3307 if test -f "$ac_dir/$ac_t"; then
3308 ac_aux_dir=$ac_dir
3309 ac_install_sh="$ac_aux_dir/$ac_t -c"
3310 break 2
3311 fi
3312 done
cristy3ed852e2009-09-05 21:47:34 +00003313done
3314if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003315 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003316fi
3317
3318# These three variables are undocumented and unsupported,
3319# and are intended to be withdrawn in a future Autoconf release.
3320# They can cause serious problems if a builder's source tree is in a directory
3321# whose full name contains unusual characters.
3322ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3323ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3324ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3325
3326
3327
3328
3329ac_config_headers="$ac_config_headers config/config.h"
3330
3331ac_config_commands="$ac_config_commands magick/magick-config.h"
3332
3333ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
3334
3335
3336#
3337# Save initial user-tunable values
3338#
3339USER_LIBS=$LIBS
3340for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3341 eval isset=\${$var+set}
3342 if test "$isset" = 'set'; then
3343 eval val=$`echo $var`
3344 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3345 fi
3346done
3347
3348
3349CONFIGURE_ARGS="$0 ${ac_configure_args}"
3350
3351
3352# Source file containing package/library versioning information.
3353. ${srcdir}/version.sh
3354
3355echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3356# Make sure we can run config.sub.
3357$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003358 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003359
cristy8b350f62009-11-15 23:12:43 +00003360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003361$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003362if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003363 $as_echo_n "(cached) " >&6
3364else
3365 ac_build_alias=$build_alias
3366test "x$ac_build_alias" = x &&
3367 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3368test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003369 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003370ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003371 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003372
3373fi
cristy8b350f62009-11-15 23:12:43 +00003374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003375$as_echo "$ac_cv_build" >&6; }
3376case $ac_cv_build in
3377*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003378*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003379esac
3380build=$ac_cv_build
3381ac_save_IFS=$IFS; IFS='-'
3382set x $ac_cv_build
3383shift
3384build_cpu=$1
3385build_vendor=$2
3386shift; shift
3387# Remember, the first character of IFS is used to create $*,
3388# except with old shells:
3389build_os=$*
3390IFS=$ac_save_IFS
3391case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3392
3393
cristy8b350f62009-11-15 23:12:43 +00003394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003395$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003396if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003397 $as_echo_n "(cached) " >&6
3398else
3399 if test "x$host_alias" = x; then
3400 ac_cv_host=$ac_cv_build
3401else
3402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003403 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003404fi
3405
3406fi
cristy8b350f62009-11-15 23:12:43 +00003407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003408$as_echo "$ac_cv_host" >&6; }
3409case $ac_cv_host in
3410*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003411*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003412esac
3413host=$ac_cv_host
3414ac_save_IFS=$IFS; IFS='-'
3415set x $ac_cv_host
3416shift
3417host_cpu=$1
3418host_vendor=$2
3419shift; shift
3420# Remember, the first character of IFS is used to create $*,
3421# except with old shells:
3422host_os=$*
3423IFS=$ac_save_IFS
3424case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3425
3426
cristy8b350f62009-11-15 23:12:43 +00003427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003428$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003429if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003430 $as_echo_n "(cached) " >&6
3431else
3432 if test "x$target_alias" = x; then
3433 ac_cv_target=$ac_cv_host
3434else
3435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003437fi
3438
3439fi
cristy8b350f62009-11-15 23:12:43 +00003440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003441$as_echo "$ac_cv_target" >&6; }
3442case $ac_cv_target in
3443*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003444*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003445esac
3446target=$ac_cv_target
3447ac_save_IFS=$IFS; IFS='-'
3448set x $ac_cv_target
3449shift
3450target_cpu=$1
3451target_vendor=$2
3452shift; shift
3453# Remember, the first character of IFS is used to create $*,
3454# except with old shells:
3455target_os=$*
3456IFS=$ac_save_IFS
3457case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3458
3459
3460# The aliases save the names the user supplied, while $host etc.
3461# will get canonicalized.
3462test -n "$target_alias" &&
3463 test "$program_prefix$program_suffix$program_transform_name" = \
3464 NONENONEs,x,x, &&
3465 program_prefix=${target_alias}-
3466
3467# Substitute library versioning
3468
3469
3470# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003472$as_echo_n "checking whether build environment is sane... " >&6; }
3473# Just in case
3474sleep 1
3475echo timestamp > conftest.file
3476# Reject unsafe characters in $srcdir or the absolute working directory
3477# name. Accept space and tab only in the latter.
3478am_lf='
3479'
3480case `pwd` in
3481 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003482 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003483esac
3484case $srcdir in
3485 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003486 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003487esac
3488
3489# Do `set' in a subshell so we don't clobber the current shell's
3490# arguments. Must try -L first in case configure is actually a
3491# symlink; some systems play weird games with the mod time of symlinks
3492# (eg FreeBSD returns the mod time of the symlink's containing
3493# directory).
3494if (
3495 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3496 if test "$*" = "X"; then
3497 # -L didn't work.
3498 set X `ls -t "$srcdir/configure" conftest.file`
3499 fi
3500 rm -f conftest.file
3501 if test "$*" != "X $srcdir/configure conftest.file" \
3502 && test "$*" != "X conftest.file $srcdir/configure"; then
3503
3504 # If neither matched, then we have a broken ls. This can happen
3505 # if, for instance, CONFIG_SHELL is bash and it inherits a
3506 # broken ls alias from the environment. This has actually
3507 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003508 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3509alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003510 fi
3511
3512 test "$2" = conftest.file
3513 )
3514then
3515 # Ok.
3516 :
3517else
cristy8b350f62009-11-15 23:12:43 +00003518 as_fn_error "newly created file is older than distributed files!
3519Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003520fi
cristy8b350f62009-11-15 23:12:43 +00003521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003522$as_echo "yes" >&6; }
3523
3524am__api_version='1.11'
3525
3526# Find a good install program. We prefer a C program (faster),
3527# so one script is as good as another. But avoid the broken or
3528# incompatible versions:
3529# SysV /etc/install, /usr/sbin/install
3530# SunOS /usr/etc/install
3531# IRIX /sbin/install
3532# AIX /bin/install
3533# AmigaOS /C/install, which installs bootblocks on floppy discs
3534# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3535# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3536# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3537# OS/2's system install, which has a completely different semantic
3538# ./install, which can be erroneously created by make from ./install.sh.
3539# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003541$as_echo_n "checking for a BSD-compatible install... " >&6; }
3542if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003543if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003544 $as_echo_n "(cached) " >&6
3545else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH
3548do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003551 # Account for people who put trailing slashes in PATH elements.
3552case $as_dir/ in #((
3553 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003555 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003556 /usr/ucb/* ) ;;
3557 *)
3558 # OSF1 and SCO ODT 3.0 have their own names for install.
3559 # Don't use installbsd from OSF since it installs stuff as root
3560 # by default.
3561 for ac_prog in ginstall scoinst install; do
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3564 if test $ac_prog = install &&
3565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3566 # AIX install. It has an incompatible calling convention.
3567 :
3568 elif test $ac_prog = install &&
3569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3570 # program-specific install script used by HP pwplus--don't use.
3571 :
3572 else
3573 rm -rf conftest.one conftest.two conftest.dir
3574 echo one > conftest.one
3575 echo two > conftest.two
3576 mkdir conftest.dir
3577 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3578 test -s conftest.one && test -s conftest.two &&
3579 test -s conftest.dir/conftest.one &&
3580 test -s conftest.dir/conftest.two
3581 then
3582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3583 break 3
3584 fi
3585 fi
3586 fi
3587 done
3588 done
3589 ;;
3590esac
3591
cristy8b350f62009-11-15 23:12:43 +00003592 done
cristy3ed852e2009-09-05 21:47:34 +00003593IFS=$as_save_IFS
3594
3595rm -rf conftest.one conftest.two conftest.dir
3596
3597fi
3598 if test "${ac_cv_path_install+set}" = set; then
3599 INSTALL=$ac_cv_path_install
3600 else
3601 # As a last resort, use the slow shell script. Don't cache a
3602 # value for INSTALL within a source directory, because that will
3603 # break other packages using the cache if that directory is
3604 # removed, or if the value is a relative name.
3605 INSTALL=$ac_install_sh
3606 fi
3607fi
cristy8b350f62009-11-15 23:12:43 +00003608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003609$as_echo "$INSTALL" >&6; }
3610
3611# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3612# It thinks the first close brace ends the variable substitution.
3613test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3614
3615test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3616
3617test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3618
3619test "$program_prefix" != NONE &&
3620 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3621# Use a double $ so make ignores it.
3622test "$program_suffix" != NONE &&
3623 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3624# Double any \ or $.
3625# By default was `s,x,x', remove it if useless.
3626ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3627program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3628
3629# expand $ac_aux_dir to an absolute path
3630am_aux_dir=`cd $ac_aux_dir && pwd`
3631
3632if test x"${MISSING+set}" != xset; then
3633 case $am_aux_dir in
3634 *\ * | *\ *)
3635 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3636 *)
3637 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3638 esac
3639fi
3640# Use eval to expand $SHELL
3641if eval "$MISSING --run true"; then
3642 am_missing_run="$MISSING --run "
3643else
3644 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003646$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3647fi
3648
3649if test x"${install_sh}" != xset; then
3650 case $am_aux_dir in
3651 *\ * | *\ *)
3652 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3653 *)
3654 install_sh="\${SHELL} $am_aux_dir/install-sh"
3655 esac
3656fi
3657
3658# Installed binaries are usually stripped using `strip' when the user
3659# run `make install-strip'. However `strip' might not be the right
3660# tool to use in cross-compilation environments, therefore Automake
3661# will honor the `STRIP' environment variable to overrule this program.
3662if test "$cross_compiling" != no; then
3663 if test -n "$ac_tool_prefix"; then
3664 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3665set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003667$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003668if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003669 $as_echo_n "(cached) " >&6
3670else
3671 if test -n "$STRIP"; then
3672 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3673else
3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003683 break 2
3684 fi
3685done
cristy8b350f62009-11-15 23:12:43 +00003686 done
cristy3ed852e2009-09-05 21:47:34 +00003687IFS=$as_save_IFS
3688
3689fi
3690fi
3691STRIP=$ac_cv_prog_STRIP
3692if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003694$as_echo "$STRIP" >&6; }
3695else
cristy8b350f62009-11-15 23:12:43 +00003696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003697$as_echo "no" >&6; }
3698fi
3699
3700
3701fi
3702if test -z "$ac_cv_prog_STRIP"; then
3703 ac_ct_STRIP=$STRIP
3704 # Extract the first word of "strip", so it can be a program name with args.
3705set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003707$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003708if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003709 $as_echo_n "(cached) " >&6
3710else
3711 if test -n "$ac_ct_STRIP"; then
3712 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3713else
3714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH
3716do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003719 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003723 break 2
3724 fi
3725done
cristy8b350f62009-11-15 23:12:43 +00003726 done
cristy3ed852e2009-09-05 21:47:34 +00003727IFS=$as_save_IFS
3728
3729fi
3730fi
3731ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3732if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003734$as_echo "$ac_ct_STRIP" >&6; }
3735else
cristy8b350f62009-11-15 23:12:43 +00003736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003737$as_echo "no" >&6; }
3738fi
3739
3740 if test "x$ac_ct_STRIP" = x; then
3741 STRIP=":"
3742 else
3743 case $cross_compiling:$ac_tool_warned in
3744yes:)
cristy8b350f62009-11-15 23:12:43 +00003745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747ac_tool_warned=yes ;;
3748esac
3749 STRIP=$ac_ct_STRIP
3750 fi
3751else
3752 STRIP="$ac_cv_prog_STRIP"
3753fi
3754
3755fi
3756INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3757
cristy8b350f62009-11-15 23:12:43 +00003758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003759$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3760if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003761 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003762 $as_echo_n "(cached) " >&6
3763else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003769 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3772 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3773 'mkdir (GNU coreutils) '* | \
3774 'mkdir (coreutils) '* | \
3775 'mkdir (fileutils) '4.1*)
3776 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3777 break 3;;
3778 esac
3779 done
3780 done
cristy8b350f62009-11-15 23:12:43 +00003781 done
cristy3ed852e2009-09-05 21:47:34 +00003782IFS=$as_save_IFS
3783
3784fi
3785
cristycd4c5312009-11-22 01:19:08 +00003786 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003787 if test "${ac_cv_path_mkdir+set}" = set; then
3788 MKDIR_P="$ac_cv_path_mkdir -p"
3789 else
3790 # As a last resort, use the slow shell script. Don't cache a
3791 # value for MKDIR_P within a source directory, because that will
3792 # break other packages using the cache if that directory is
3793 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003794 MKDIR_P="$ac_install_sh -d"
3795 fi
3796fi
cristy8b350f62009-11-15 23:12:43 +00003797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003798$as_echo "$MKDIR_P" >&6; }
3799
3800mkdir_p="$MKDIR_P"
3801case $mkdir_p in
3802 [\\/$]* | ?:[\\/]*) ;;
3803 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3804esac
3805
3806for ac_prog in gawk mawk nawk awk
3807do
3808 # Extract the first word of "$ac_prog", so it can be a program name with args.
3809set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003811$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003812if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003813 $as_echo_n "(cached) " >&6
3814else
3815 if test -n "$AWK"; then
3816 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3817else
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003827 break 2
3828 fi
3829done
cristy8b350f62009-11-15 23:12:43 +00003830 done
cristy3ed852e2009-09-05 21:47:34 +00003831IFS=$as_save_IFS
3832
3833fi
3834fi
3835AWK=$ac_cv_prog_AWK
3836if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003838$as_echo "$AWK" >&6; }
3839else
cristy8b350f62009-11-15 23:12:43 +00003840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003841$as_echo "no" >&6; }
3842fi
3843
3844
3845 test -n "$AWK" && break
3846done
3847
cristy8b350f62009-11-15 23:12:43 +00003848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003849$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3850set x ${MAKE-make}
3851ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003852if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003853 $as_echo_n "(cached) " >&6
3854else
3855 cat >conftest.make <<\_ACEOF
3856SHELL = /bin/sh
3857all:
3858 @echo '@@@%%%=$(MAKE)=@@@%%%'
3859_ACEOF
3860# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3861case `${MAKE-make} -f conftest.make 2>/dev/null` in
3862 *@@@%%%=?*=@@@%%%*)
3863 eval ac_cv_prog_make_${ac_make}_set=yes;;
3864 *)
3865 eval ac_cv_prog_make_${ac_make}_set=no;;
3866esac
3867rm -f conftest.make
3868fi
3869if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003871$as_echo "yes" >&6; }
3872 SET_MAKE=
3873else
cristy8b350f62009-11-15 23:12:43 +00003874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003875$as_echo "no" >&6; }
3876 SET_MAKE="MAKE=${MAKE-make}"
3877fi
3878
3879rm -rf .tst 2>/dev/null
3880mkdir .tst 2>/dev/null
3881if test -d .tst; then
3882 am__leading_dot=.
3883else
3884 am__leading_dot=_
3885fi
3886rmdir .tst 2>/dev/null
3887
3888if test "`cd $srcdir && pwd`" != "`pwd`"; then
3889 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3890 # is not polluted with repeated "-I."
3891 am__isrc=' -I$(srcdir)'
3892 # test to see if srcdir already configured
3893 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003894 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003895 fi
3896fi
3897
3898# test whether we have cygpath
3899if test -z "$CYGPATH_W"; then
3900 if (cygpath --version) >/dev/null 2>/dev/null; then
3901 CYGPATH_W='cygpath -w'
3902 else
3903 CYGPATH_W=echo
3904 fi
3905fi
3906
3907
3908# Define the identity of the package.
3909 PACKAGE=$PACKAGE_NAME
3910 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3911
3912
3913# Some tools Automake needs.
3914
3915ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3916
3917
3918AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3919
3920
3921AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3922
3923
3924AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3925
3926
3927MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3928
3929# We need awk for the "check" target. The system "awk" is bad on
3930# some platforms.
3931# Always define AMTAR for backward compatibility.
3932
3933AMTAR=${AMTAR-"${am_missing_run}tar"}
3934
3935am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3936
3937
3938
3939
3940
3941
3942# Enable support for silent build rules
3943# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003944if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003945 enableval=$enable_silent_rules;
3946fi
3947
3948case $enable_silent_rules in
3949yes) AM_DEFAULT_VERBOSITY=0;;
3950no) AM_DEFAULT_VERBOSITY=1;;
3951*) AM_DEFAULT_VERBOSITY=0;;
3952esac
3953AM_BACKSLASH='\'
3954
3955
3956MAGICK_LIB_VERSION="0x"
3957if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3958 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3959fi
3960MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3961if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3962 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3963fi
3964MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3965if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3966 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3967fi
3968MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3969
3970
3971# Definition used to define MagickLibVersionText in version.h
3972MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3973
3974
3975# Definition used to define MagickLibVersionNumber in version.h
3976MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3977
3978
3979# Regenerate config.status if ChangeLog or version.sh is updated.
3980CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3981
3982
3983PERLMAINCC=$CC
3984
3985MAGICK_CFLAGS=''
3986MAGICK_CPPFLAGS=$CPPFLAGS_USER
3987MAGICK_PCFLAGS=$CPPFLAGS_USER
3988MAGICK_LDFLAGS=''
3989MAGICK_LIBS=''
3990
3991#
3992# Evaluate shell variable equivalents to Makefile directory variables
3993#
3994if test "x$prefix" = xNONE; then
3995 prefix=$ac_default_prefix
3996fi
3997# Let make expand exec_prefix.
3998if test "x$exec_prefix" = xNONE; then
3999 exec_prefix='${prefix}'
4000fi
4001
4002#
4003eval "eval PREFIX_DIR=${prefix}"
4004
4005eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4006
4007eval "eval BIN_DIR=$bindir"
4008
4009eval "eval SBIN_DIR=$sbindir"
4010
4011eval "eval LIBEXEC_DIR=$libexecdir"
4012
4013eval "eval DATA_DIR=$datadir"
4014
4015eval "eval SYSCONF_DIR=$sysconfdir"
4016
4017eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4018
4019eval "eval LOCALSTATE_DIR=$localstatedir"
4020
4021eval "eval LIB_DIR=$libdir"
4022
4023eval "eval INCLUDE_DIR=$includedir"
4024
4025eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4026
4027eval "eval INFO_DIR=$infodir"
4028
4029eval "eval MAN_DIR=$mandir"
4030
4031
4032# Get full paths to source and build directories
4033srcdirfull="`cd $srcdir && pwd`"
4034builddir="`pwd`"
4035
4036#
4037# Compute variables useful for running uninstalled software.
4038#
4039MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4040MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4041MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4042MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4043DIRSEP=':'
4044case "${build_os}" in
4045 mingw* )
4046 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4047 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4048 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4049 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4050 DIRSEP=';'
4051 ;;
4052esac
4053case "${host_os}" in
4054 mingw* )
4055 DIRSEP=';'
4056 ;;
4057esac
4058
4059
4060
4061
4062
4063
4064# Check for programs
4065ac_ext=c
4066ac_cpp='$CPP $CPPFLAGS'
4067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070if test -n "$ac_tool_prefix"; then
4071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4072set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004074$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004075if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004076 $as_echo_n "(cached) " >&6
4077else
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4080else
4081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082for as_dir in $PATH
4083do
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004086 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004090 break 2
4091 fi
4092done
cristy8b350f62009-11-15 23:12:43 +00004093 done
cristy3ed852e2009-09-05 21:47:34 +00004094IFS=$as_save_IFS
4095
4096fi
4097fi
4098CC=$ac_cv_prog_CC
4099if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004101$as_echo "$CC" >&6; }
4102else
cristy8b350f62009-11-15 23:12:43 +00004103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004104$as_echo "no" >&6; }
4105fi
4106
4107
4108fi
4109if test -z "$ac_cv_prog_CC"; then
4110 ac_ct_CC=$CC
4111 # Extract the first word of "gcc", so it can be a program name with args.
4112set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004114$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004115if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004116 $as_echo_n "(cached) " >&6
4117else
4118 if test -n "$ac_ct_CC"; then
4119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4120else
4121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH
4123do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004126 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004130 break 2
4131 fi
4132done
cristy8b350f62009-11-15 23:12:43 +00004133 done
cristy3ed852e2009-09-05 21:47:34 +00004134IFS=$as_save_IFS
4135
4136fi
4137fi
4138ac_ct_CC=$ac_cv_prog_ac_ct_CC
4139if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004141$as_echo "$ac_ct_CC" >&6; }
4142else
cristy8b350f62009-11-15 23:12:43 +00004143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004144$as_echo "no" >&6; }
4145fi
4146
4147 if test "x$ac_ct_CC" = x; then
4148 CC=""
4149 else
4150 case $cross_compiling:$ac_tool_warned in
4151yes:)
cristy8b350f62009-11-15 23:12:43 +00004152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154ac_tool_warned=yes ;;
4155esac
4156 CC=$ac_ct_CC
4157 fi
4158else
4159 CC="$ac_cv_prog_CC"
4160fi
4161
4162if test -z "$CC"; then
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4165set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004167$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004168if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004169 $as_echo_n "(cached) " >&6
4170else
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4173else
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004179 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004183 break 2
4184 fi
4185done
cristy8b350f62009-11-15 23:12:43 +00004186 done
cristy3ed852e2009-09-05 21:47:34 +00004187IFS=$as_save_IFS
4188
4189fi
4190fi
4191CC=$ac_cv_prog_CC
4192if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004194$as_echo "$CC" >&6; }
4195else
cristy8b350f62009-11-15 23:12:43 +00004196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004197$as_echo "no" >&6; }
4198fi
4199
4200
4201 fi
4202fi
4203if test -z "$CC"; then
4204 # Extract the first word of "cc", so it can be a program name with args.
4205set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004207$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004208if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004209 $as_echo_n "(cached) " >&6
4210else
4211 if test -n "$CC"; then
4212 ac_cv_prog_CC="$CC" # Let the user override the test.
4213else
4214 ac_prog_rejected=no
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004220 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4223 ac_prog_rejected=yes
4224 continue
4225 fi
4226 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004228 break 2
4229 fi
4230done
cristy8b350f62009-11-15 23:12:43 +00004231 done
cristy3ed852e2009-09-05 21:47:34 +00004232IFS=$as_save_IFS
4233
4234if test $ac_prog_rejected = yes; then
4235 # We found a bogon in the path, so make sure we never use it.
4236 set dummy $ac_cv_prog_CC
4237 shift
4238 if test $# != 0; then
4239 # We chose a different compiler from the bogus one.
4240 # However, it has the same basename, so the bogon will be chosen
4241 # first if we set CC to just the basename; use the full file name.
4242 shift
4243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4244 fi
4245fi
4246fi
4247fi
4248CC=$ac_cv_prog_CC
4249if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004251$as_echo "$CC" >&6; }
4252else
cristy8b350f62009-11-15 23:12:43 +00004253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004254$as_echo "no" >&6; }
4255fi
4256
4257
4258fi
4259if test -z "$CC"; then
4260 if test -n "$ac_tool_prefix"; then
4261 for ac_prog in cl.exe
4262 do
4263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4264set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004266$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004267if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004268 $as_echo_n "(cached) " >&6
4269else
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4272else
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004282 break 2
4283 fi
4284done
cristy8b350f62009-11-15 23:12:43 +00004285 done
cristy3ed852e2009-09-05 21:47:34 +00004286IFS=$as_save_IFS
4287
4288fi
4289fi
4290CC=$ac_cv_prog_CC
4291if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004293$as_echo "$CC" >&6; }
4294else
cristy8b350f62009-11-15 23:12:43 +00004295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004296$as_echo "no" >&6; }
4297fi
4298
4299
4300 test -n "$CC" && break
4301 done
4302fi
4303if test -z "$CC"; then
4304 ac_ct_CC=$CC
4305 for ac_prog in cl.exe
4306do
4307 # Extract the first word of "$ac_prog", so it can be a program name with args.
4308set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004310$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004311if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004312 $as_echo_n "(cached) " >&6
4313else
4314 if test -n "$ac_ct_CC"; then
4315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4316else
4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004326 break 2
4327 fi
4328done
cristy8b350f62009-11-15 23:12:43 +00004329 done
cristy3ed852e2009-09-05 21:47:34 +00004330IFS=$as_save_IFS
4331
4332fi
4333fi
4334ac_ct_CC=$ac_cv_prog_ac_ct_CC
4335if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004337$as_echo "$ac_ct_CC" >&6; }
4338else
cristy8b350f62009-11-15 23:12:43 +00004339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004340$as_echo "no" >&6; }
4341fi
4342
4343
4344 test -n "$ac_ct_CC" && break
4345done
4346
4347 if test "x$ac_ct_CC" = x; then
4348 CC=""
4349 else
4350 case $cross_compiling:$ac_tool_warned in
4351yes:)
cristy8b350f62009-11-15 23:12:43 +00004352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354ac_tool_warned=yes ;;
4355esac
4356 CC=$ac_ct_CC
4357 fi
4358fi
4359
4360fi
4361
4362
cristy8b350f62009-11-15 23:12:43 +00004363test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004365as_fn_error "no acceptable C compiler found in \$PATH
4366See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004367
4368# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004369$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004370set X $ac_compile
4371ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004372for ac_option in --version -v -V -qversion; do
4373 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004374case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377esac
cristy8b350f62009-11-15 23:12:43 +00004378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379$as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004381 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004382 if test -s conftest.err; then
4383 sed '10a\
4384... rest of stderr output deleted ...
4385 10q' conftest.err >conftest.er1
4386 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004387 fi
cristycd4c5312009-11-22 01:19:08 +00004388 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }
4391done
cristy3ed852e2009-09-05 21:47:34 +00004392
cristy8b350f62009-11-15 23:12:43 +00004393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004394/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004395
cristy3ed852e2009-09-05 21:47:34 +00004396int
4397main ()
4398{
4399
4400 ;
4401 return 0;
4402}
4403_ACEOF
4404ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004405ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004406# Try to create an executable without -o first, disregard a.out.
4407# It will help us diagnose broken compilers, and finding out an intuition
4408# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4410$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004411ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4412
4413# The possible output files:
4414ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4415
4416ac_rmfiles=
4417for ac_file in $ac_files
4418do
4419 case $ac_file in
4420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4422 esac
4423done
4424rm -f $ac_rmfiles
4425
cristy8b350f62009-11-15 23:12:43 +00004426if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004427case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4430esac
cristy8b350f62009-11-15 23:12:43 +00004431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004433 (eval "$ac_link_default") 2>&5
4434 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4438# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4439# in a Makefile. We should not override ac_cv_exeext if it was cached,
4440# so that the user can short-circuit this test for compilers unknown to
4441# Autoconf.
4442for ac_file in $ac_files ''
4443do
4444 test -f "$ac_file" || continue
4445 case $ac_file in
4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4447 ;;
4448 [ab].out )
4449 # We found the default executable, but exeext='' is most
4450 # certainly right.
4451 break;;
4452 *.* )
cristy8b350f62009-11-15 23:12:43 +00004453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004454 then :; else
4455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4456 fi
4457 # We set ac_cv_exeext here because the later test for it is not
4458 # safe: cross compilers may not add the suffix if given an `-o'
4459 # argument, so we may need to know it at that point already.
4460 # Even if this section looks crufty: it has the advantage of
4461 # actually working.
4462 break;;
4463 * )
4464 break;;
4465 esac
4466done
4467test "$ac_cv_exeext" = no && ac_cv_exeext=
4468
4469else
4470 ac_file=''
4471fi
cristy8b350f62009-11-15 23:12:43 +00004472if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474$as_echo "no" >&6; }
4475$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004476sed 's/^/| /' conftest.$ac_ext >&5
4477
cristy8b350f62009-11-15 23:12:43 +00004478{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004480{ as_fn_set_status 77
4481as_fn_error "C compiler cannot create executables
4482See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004483else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4485$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004486fi
cristycd4c5312009-11-22 01:19:08 +00004487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4488$as_echo_n "checking for C compiler default output file name... " >&6; }
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4490$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004491ac_exeext=$ac_cv_exeext
4492
cristycd4c5312009-11-22 01:19:08 +00004493rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004494ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004496$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004497if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004498case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501esac
cristy8b350f62009-11-15 23:12:43 +00004502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004504 (eval "$ac_link") 2>&5
4505 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004508 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4509# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4510# work properly (i.e., refer to `conftest.exe'), while it won't with
4511# `rm'.
4512for ac_file in conftest.exe conftest conftest.*; do
4513 test -f "$ac_file" || continue
4514 case $ac_file in
4515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4516 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4517 break;;
4518 * ) break;;
4519 esac
4520done
4521else
cristy8b350f62009-11-15 23:12:43 +00004522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004524as_fn_error "cannot compute suffix of executables: cannot compile and link
4525See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004526fi
cristycd4c5312009-11-22 01:19:08 +00004527rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004529$as_echo "$ac_cv_exeext" >&6; }
4530
4531rm -f conftest.$ac_ext
4532EXEEXT=$ac_cv_exeext
4533ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h. */
4536#include <stdio.h>
4537int
4538main ()
4539{
4540FILE *f = fopen ("conftest.out", "w");
4541 return ferror (f) || fclose (f) != 0;
4542
4543 ;
4544 return 0;
4545}
4546_ACEOF
4547ac_clean_files="$ac_clean_files conftest.out"
4548# Check that the compiler produces executables we can run. If not, either
4549# the compiler is broken, or we cross compile.
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4551$as_echo_n "checking whether we are cross compiling... " >&6; }
4552if test "$cross_compiling" != yes; then
4553 { { ac_try="$ac_link"
4554case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557esac
4558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4559$as_echo "$ac_try_echo"; } >&5
4560 (eval "$ac_link") 2>&5
4561 ac_status=$?
4562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4563 test $ac_status = 0; }
4564 if { ac_try='./conftest$ac_cv_exeext'
4565 { { case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568esac
4569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570$as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_try") 2>&5
4572 ac_status=$?
4573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574 test $ac_status = 0; }; }; then
4575 cross_compiling=no
4576 else
4577 if test "$cross_compiling" = maybe; then
4578 cross_compiling=yes
4579 else
4580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4582as_fn_error "cannot run C compiled programs.
4583If you meant to cross compile, use \`--host'.
4584See \`config.log' for more details." "$LINENO" 5; }
4585 fi
4586 fi
4587fi
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4589$as_echo "$cross_compiling" >&6; }
4590
4591rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4592ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004594$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004595if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004596 $as_echo_n "(cached) " >&6
4597else
cristy8b350f62009-11-15 23:12:43 +00004598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004599/* end confdefs.h. */
4600
4601int
4602main ()
4603{
4604
4605 ;
4606 return 0;
4607}
4608_ACEOF
4609rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004610if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004611case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614esac
cristy8b350f62009-11-15 23:12:43 +00004615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4616$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004617 (eval "$ac_compile") 2>&5
4618 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4620 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004621 for ac_file in conftest.o conftest.obj conftest.*; do
4622 test -f "$ac_file" || continue;
4623 case $ac_file in
4624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4625 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4626 break;;
4627 esac
4628done
4629else
4630 $as_echo "$as_me: failed program was:" >&5
4631sed 's/^/| /' conftest.$ac_ext >&5
4632
cristy8b350f62009-11-15 23:12:43 +00004633{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004635as_fn_error "cannot compute suffix of object files: cannot compile
4636See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004637fi
cristy3ed852e2009-09-05 21:47:34 +00004638rm -f conftest.$ac_cv_objext conftest.$ac_ext
4639fi
cristy8b350f62009-11-15 23:12:43 +00004640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004641$as_echo "$ac_cv_objext" >&6; }
4642OBJEXT=$ac_cv_objext
4643ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004645$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004646if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004647 $as_echo_n "(cached) " >&6
4648else
cristy8b350f62009-11-15 23:12:43 +00004649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004650/* end confdefs.h. */
4651
4652int
4653main ()
4654{
4655#ifndef __GNUC__
4656 choke me
4657#endif
4658
4659 ;
4660 return 0;
4661}
4662_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004663if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004664 ac_compiler_gnu=yes
4665else
cristy8b350f62009-11-15 23:12:43 +00004666 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004667fi
cristy3ed852e2009-09-05 21:47:34 +00004668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669ac_cv_c_compiler_gnu=$ac_compiler_gnu
4670
4671fi
cristy8b350f62009-11-15 23:12:43 +00004672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004673$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4674if test $ac_compiler_gnu = yes; then
4675 GCC=yes
4676else
4677 GCC=
4678fi
4679ac_test_CFLAGS=${CFLAGS+set}
4680ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004683if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004684 $as_echo_n "(cached) " >&6
4685else
4686 ac_save_c_werror_flag=$ac_c_werror_flag
4687 ac_c_werror_flag=yes
4688 ac_cv_prog_cc_g=no
4689 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004691/* end confdefs.h. */
4692
4693int
4694main ()
4695{
4696
4697 ;
4698 return 0;
4699}
4700_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004701if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004702 ac_cv_prog_cc_g=yes
4703else
cristy8b350f62009-11-15 23:12:43 +00004704 CFLAGS=""
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004706/* end confdefs.h. */
4707
4708int
4709main ()
4710{
4711
4712 ;
4713 return 0;
4714}
4715_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004716if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004717
cristy8b350f62009-11-15 23:12:43 +00004718else
4719 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004720 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004722/* end confdefs.h. */
4723
4724int
4725main ()
4726{
4727
4728 ;
4729 return 0;
4730}
4731_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004732if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004733 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004734fi
cristy3ed852e2009-09-05 21:47:34 +00004735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736fi
cristy3ed852e2009-09-05 21:47:34 +00004737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738fi
cristy3ed852e2009-09-05 21:47:34 +00004739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 ac_c_werror_flag=$ac_save_c_werror_flag
4741fi
cristy8b350f62009-11-15 23:12:43 +00004742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004743$as_echo "$ac_cv_prog_cc_g" >&6; }
4744if test "$ac_test_CFLAGS" = set; then
4745 CFLAGS=$ac_save_CFLAGS
4746elif test $ac_cv_prog_cc_g = yes; then
4747 if test "$GCC" = yes; then
4748 CFLAGS="-g -O2"
4749 else
4750 CFLAGS="-g"
4751 fi
4752else
4753 if test "$GCC" = yes; then
4754 CFLAGS="-O2"
4755 else
4756 CFLAGS=
4757 fi
4758fi
cristy8b350f62009-11-15 23:12:43 +00004759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004760$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004761if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004762 $as_echo_n "(cached) " >&6
4763else
4764 ac_cv_prog_cc_c89=no
4765ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004767/* end confdefs.h. */
4768#include <stdarg.h>
4769#include <stdio.h>
4770#include <sys/types.h>
4771#include <sys/stat.h>
4772/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4773struct buf { int x; };
4774FILE * (*rcsopen) (struct buf *, struct stat *, int);
4775static char *e (p, i)
4776 char **p;
4777 int i;
4778{
4779 return p[i];
4780}
4781static char *f (char * (*g) (char **, int), char **p, ...)
4782{
4783 char *s;
4784 va_list v;
4785 va_start (v,p);
4786 s = g (p, va_arg (v,int));
4787 va_end (v);
4788 return s;
4789}
4790
4791/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4792 function prototypes and stuff, but not '\xHH' hex character constants.
4793 These don't provoke an error unfortunately, instead are silently treated
4794 as 'x'. The following induces an error, until -std is added to get
4795 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4796 array size at least. It's necessary to write '\x00'==0 to get something
4797 that's true only with -std. */
4798int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4799
4800/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4801 inside strings and character constants. */
4802#define FOO(x) 'x'
4803int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4804
4805int test (int i, double x);
4806struct s1 {int (*f) (int a);};
4807struct s2 {int (*f) (double a);};
4808int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4809int argc;
4810char **argv;
4811int
4812main ()
4813{
4814return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4815 ;
4816 return 0;
4817}
4818_ACEOF
4819for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4820 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4821do
4822 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004823 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004824 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004825fi
cristy3ed852e2009-09-05 21:47:34 +00004826rm -f core conftest.err conftest.$ac_objext
4827 test "x$ac_cv_prog_cc_c89" != "xno" && break
4828done
4829rm -f conftest.$ac_ext
4830CC=$ac_save_CC
4831
4832fi
4833# AC_CACHE_VAL
4834case "x$ac_cv_prog_cc_c89" in
4835 x)
cristy8b350f62009-11-15 23:12:43 +00004836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004837$as_echo "none needed" >&6; } ;;
4838 xno)
cristy8b350f62009-11-15 23:12:43 +00004839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004840$as_echo "unsupported" >&6; } ;;
4841 *)
4842 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004844$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4845esac
cristy8b350f62009-11-15 23:12:43 +00004846if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004847
cristy8b350f62009-11-15 23:12:43 +00004848fi
cristy3ed852e2009-09-05 21:47:34 +00004849
4850ac_ext=c
4851ac_cpp='$CPP $CPPFLAGS'
4852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855DEPDIR="${am__leading_dot}deps"
4856
4857ac_config_commands="$ac_config_commands depfiles"
4858
4859
4860am_make=${MAKE-make}
4861cat > confinc << 'END'
4862am__doit:
4863 @echo this is the am__doit target
4864.PHONY: am__doit
4865END
4866# If we don't find an include directive, just comment out the code.
cristy8b350f62009-11-15 23:12:43 +00004867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cristy3ed852e2009-09-05 21:47:34 +00004868$as_echo_n "checking for style of include used by $am_make... " >&6; }
4869am__include="#"
4870am__quote=
4871_am_result=none
4872# First try GNU make style include.
4873echo "include confinc" > confmf
4874# Ignore all kinds of additional output from `make'.
4875case `$am_make -s -f confmf 2> /dev/null` in #(
4876*the\ am__doit\ target*)
4877 am__include=include
4878 am__quote=
4879 _am_result=GNU
4880 ;;
4881esac
4882# Now try BSD make style include.
4883if test "$am__include" = "#"; then
4884 echo '.include "confinc"' > confmf
4885 case `$am_make -s -f confmf 2> /dev/null` in #(
4886 *the\ am__doit\ target*)
4887 am__include=.include
4888 am__quote="\""
4889 _am_result=BSD
4890 ;;
4891 esac
4892fi
4893
4894
cristy8b350f62009-11-15 23:12:43 +00004895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cristy3ed852e2009-09-05 21:47:34 +00004896$as_echo "$_am_result" >&6; }
4897rm -f confinc confmf
4898
4899# Check whether --enable-dependency-tracking was given.
cristy8b350f62009-11-15 23:12:43 +00004900if test "${enable_dependency_tracking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004901 enableval=$enable_dependency_tracking;
4902fi
4903
4904if test "x$enable_dependency_tracking" != xno; then
4905 am_depcomp="$ac_aux_dir/depcomp"
4906 AMDEPBACKSLASH='\'
4907fi
4908 if test "x$enable_dependency_tracking" != xno; then
4909 AMDEP_TRUE=
4910 AMDEP_FALSE='#'
4911else
4912 AMDEP_TRUE='#'
4913 AMDEP_FALSE=
4914fi
4915
4916
4917
4918depcc="$CC" am_compiler_list=
4919
cristy8b350f62009-11-15 23:12:43 +00004920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00004921$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004922if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004923 $as_echo_n "(cached) " >&6
4924else
4925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4926 # We make a subdir and do the tests there. Otherwise we can end up
4927 # making bogus files that we don't know about and never remove. For
4928 # instance it was reported that on HP-UX the gcc test will end up
4929 # making a dummy file named `D' -- because `-MD' means `put the output
4930 # in D'.
4931 mkdir conftest.dir
4932 # Copy depcomp to subdir because otherwise we won't find it if we're
4933 # using a relative directory.
4934 cp "$am_depcomp" conftest.dir
4935 cd conftest.dir
4936 # We will build objects and dependencies in a subdirectory because
4937 # it helps to detect inapplicable dependency modes. For instance
4938 # both Tru64's cc and ICC support -MD to output dependencies as a
4939 # side effect of compilation, but ICC will put the dependencies in
4940 # the current directory while Tru64 will put them in the object
4941 # directory.
4942 mkdir sub
4943
4944 am_cv_CC_dependencies_compiler_type=none
4945 if test "$am_compiler_list" = ""; then
4946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4947 fi
4948 am__universal=false
4949 case " $depcc " in #(
4950 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4951 esac
4952
4953 for depmode in $am_compiler_list; do
4954 # Setup a source with many dependencies, because some compilers
4955 # like to wrap large dependency lists on column 80 (with \), and
4956 # we should not choose a depcomp mode which is confused by this.
4957 #
4958 # We need to recreate these files for each test, as the compiler may
4959 # overwrite some of them when testing with obscure command lines.
4960 # This happens at least with the AIX C compiler.
4961 : > sub/conftest.c
4962 for i in 1 2 3 4 5 6; do
4963 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4964 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4965 # Solaris 8's {/usr,}/bin/sh.
4966 touch sub/conftst$i.h
4967 done
4968 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4969
4970 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4971 # mode. It turns out that the SunPro C++ compiler does not properly
4972 # handle `-M -o', and we need to detect this. Also, some Intel
4973 # versions had trouble with output in subdirs
4974 am__obj=sub/conftest.${OBJEXT-o}
4975 am__minus_obj="-o $am__obj"
4976 case $depmode in
4977 gcc)
4978 # This depmode causes a compiler race in universal mode.
4979 test "$am__universal" = false || continue
4980 ;;
4981 nosideeffect)
4982 # after this tag, mechanisms are not by side-effect, so they'll
4983 # only be used when explicitly requested
4984 if test "x$enable_dependency_tracking" = xyes; then
4985 continue
4986 else
4987 break
4988 fi
4989 ;;
4990 msvisualcpp | msvcmsys)
4991 # This compiler won't grok `-c -o', but also, the minuso test has
4992 # not run yet. These depmodes are late enough in the game, and
4993 # so weak that their functioning should not be impacted.
4994 am__obj=conftest.${OBJEXT-o}
4995 am__minus_obj=
4996 ;;
4997 none) break ;;
4998 esac
4999 if depmode=$depmode \
5000 source=sub/conftest.c object=$am__obj \
5001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5002 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5003 >/dev/null 2>conftest.err &&
5004 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5005 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5006 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5007 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5008 # icc doesn't choke on unknown options, it will just issue warnings
5009 # or remarks (even with -Werror). So we grep stderr for any message
5010 # that says an option was ignored or not supported.
5011 # When given -MP, icc 7.0 and 7.1 complain thusly:
5012 # icc: Command line warning: ignoring option '-M'; no argument required
5013 # The diagnosis changed in icc 8.0:
5014 # icc: Command line remark: option '-MP' not supported
5015 if (grep 'ignoring option' conftest.err ||
5016 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5017 am_cv_CC_dependencies_compiler_type=$depmode
5018 break
5019 fi
5020 fi
5021 done
5022
5023 cd ..
5024 rm -rf conftest.dir
5025else
5026 am_cv_CC_dependencies_compiler_type=none
5027fi
5028
5029fi
cristy8b350f62009-11-15 23:12:43 +00005030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00005031$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5032CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5033
5034 if
5035 test "x$enable_dependency_tracking" != xno \
5036 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5037 am__fastdepCC_TRUE=
5038 am__fastdepCC_FALSE='#'
5039else
5040 am__fastdepCC_TRUE='#'
5041 am__fastdepCC_FALSE=
5042fi
5043
5044
cristy8b350f62009-11-15 23:12:43 +00005045 case $ac_cv_prog_cc_stdc in #(
5046 no) :
5047 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5048 *) :
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005050$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005051if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005052 $as_echo_n "(cached) " >&6
5053else
5054 ac_cv_prog_cc_c99=no
5055ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005057/* end confdefs.h. */
5058#include <stdarg.h>
5059#include <stdbool.h>
5060#include <stdlib.h>
5061#include <wchar.h>
5062#include <stdio.h>
5063
5064// Check varargs macros. These examples are taken from C99 6.10.3.5.
5065#define debug(...) fprintf (stderr, __VA_ARGS__)
5066#define showlist(...) puts (#__VA_ARGS__)
5067#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5068static void
5069test_varargs_macros (void)
5070{
5071 int x = 1234;
5072 int y = 5678;
5073 debug ("Flag");
5074 debug ("X = %d\n", x);
5075 showlist (The first, second, and third items.);
5076 report (x>y, "x is %d but y is %d", x, y);
5077}
5078
5079// Check long long types.
5080#define BIG64 18446744073709551615ull
5081#define BIG32 4294967295ul
5082#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5083#if !BIG_OK
5084 your preprocessor is broken;
5085#endif
5086#if BIG_OK
5087#else
5088 your preprocessor is broken;
5089#endif
5090static long long int bignum = -9223372036854775807LL;
5091static unsigned long long int ubignum = BIG64;
5092
5093struct incomplete_array
5094{
5095 int datasize;
5096 double data[];
5097};
5098
5099struct named_init {
5100 int number;
5101 const wchar_t *name;
5102 double average;
5103};
5104
5105typedef const char *ccp;
5106
5107static inline int
5108test_restrict (ccp restrict text)
5109{
5110 // See if C++-style comments work.
5111 // Iterate through items via the restricted pointer.
5112 // Also check for declarations in for loops.
5113 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5114 continue;
5115 return 0;
5116}
5117
5118// Check varargs and va_copy.
5119static void
5120test_varargs (const char *format, ...)
5121{
5122 va_list args;
5123 va_start (args, format);
5124 va_list args_copy;
5125 va_copy (args_copy, args);
5126
5127 const char *str;
5128 int number;
5129 float fnumber;
5130
5131 while (*format)
5132 {
5133 switch (*format++)
5134 {
5135 case 's': // string
5136 str = va_arg (args_copy, const char *);
5137 break;
5138 case 'd': // int
5139 number = va_arg (args_copy, int);
5140 break;
5141 case 'f': // float
5142 fnumber = va_arg (args_copy, double);
5143 break;
5144 default:
5145 break;
5146 }
5147 }
5148 va_end (args_copy);
5149 va_end (args);
5150}
5151
5152int
5153main ()
5154{
5155
5156 // Check bool.
5157 _Bool success = false;
5158
5159 // Check restrict.
5160 if (test_restrict ("String literal") == 0)
5161 success = true;
5162 char *restrict newvar = "Another string";
5163
5164 // Check varargs.
5165 test_varargs ("s, d' f .", "string", 65, 34.234);
5166 test_varargs_macros ();
5167
5168 // Check flexible array members.
5169 struct incomplete_array *ia =
5170 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5171 ia->datasize = 10;
5172 for (int i = 0; i < ia->datasize; ++i)
5173 ia->data[i] = i * 1.234;
5174
5175 // Check named initializers.
5176 struct named_init ni = {
5177 .number = 34,
5178 .name = L"Test wide string",
5179 .average = 543.34343,
5180 };
5181
5182 ni.number = 58;
5183
5184 int dynamic_array[ni.number];
5185 dynamic_array[ni.number - 1] = 543;
5186
5187 // work around unused variable warnings
5188 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5189 || dynamic_array[ni.number - 1] != 543);
5190
5191 ;
5192 return 0;
5193}
5194_ACEOF
5195for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5196do
5197 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005198 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005199 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005200fi
cristy3ed852e2009-09-05 21:47:34 +00005201rm -f core conftest.err conftest.$ac_objext
5202 test "x$ac_cv_prog_cc_c99" != "xno" && break
5203done
5204rm -f conftest.$ac_ext
5205CC=$ac_save_CC
5206
5207fi
5208# AC_CACHE_VAL
5209case "x$ac_cv_prog_cc_c99" in
5210 x)
cristy8b350f62009-11-15 23:12:43 +00005211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005212$as_echo "none needed" >&6; } ;;
5213 xno)
cristy8b350f62009-11-15 23:12:43 +00005214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005215$as_echo "unsupported" >&6; } ;;
5216 *)
5217 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00005218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005219$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5220esac
cristy8b350f62009-11-15 23:12:43 +00005221if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005222 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5223else
cristy8b350f62009-11-15 23:12:43 +00005224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005225$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005226if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005227 $as_echo_n "(cached) " >&6
5228else
5229 ac_cv_prog_cc_c89=no
5230ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005232/* end confdefs.h. */
5233#include <stdarg.h>
5234#include <stdio.h>
5235#include <sys/types.h>
5236#include <sys/stat.h>
5237/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5238struct buf { int x; };
5239FILE * (*rcsopen) (struct buf *, struct stat *, int);
5240static char *e (p, i)
5241 char **p;
5242 int i;
5243{
5244 return p[i];
5245}
5246static char *f (char * (*g) (char **, int), char **p, ...)
5247{
5248 char *s;
5249 va_list v;
5250 va_start (v,p);
5251 s = g (p, va_arg (v,int));
5252 va_end (v);
5253 return s;
5254}
5255
5256/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5257 function prototypes and stuff, but not '\xHH' hex character constants.
5258 These don't provoke an error unfortunately, instead are silently treated
5259 as 'x'. The following induces an error, until -std is added to get
5260 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5261 array size at least. It's necessary to write '\x00'==0 to get something
5262 that's true only with -std. */
5263int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5264
5265/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5266 inside strings and character constants. */
5267#define FOO(x) 'x'
5268int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5269
5270int test (int i, double x);
5271struct s1 {int (*f) (int a);};
5272struct s2 {int (*f) (double a);};
5273int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5274int argc;
5275char **argv;
5276int
5277main ()
5278{
5279return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5280 ;
5281 return 0;
5282}
5283_ACEOF
5284for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5285 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5286do
5287 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005288 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005289 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005290fi
cristy3ed852e2009-09-05 21:47:34 +00005291rm -f core conftest.err conftest.$ac_objext
5292 test "x$ac_cv_prog_cc_c89" != "xno" && break
5293done
5294rm -f conftest.$ac_ext
5295CC=$ac_save_CC
5296
5297fi
5298# AC_CACHE_VAL
5299case "x$ac_cv_prog_cc_c89" in
5300 x)
cristy8b350f62009-11-15 23:12:43 +00005301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005302$as_echo "none needed" >&6; } ;;
5303 xno)
cristy8b350f62009-11-15 23:12:43 +00005304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005305$as_echo "unsupported" >&6; } ;;
5306 *)
5307 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005309$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5310esac
cristy8b350f62009-11-15 23:12:43 +00005311if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005312 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5313else
5314 ac_cv_prog_cc_stdc=no
5315fi
5316
cristy3ed852e2009-09-05 21:47:34 +00005317fi
cristy3ed852e2009-09-05 21:47:34 +00005318 ;;
5319esac
cristy8b350f62009-11-15 23:12:43 +00005320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00005321$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005322 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005323 $as_echo_n "(cached) " >&6
5324fi
5325
cristy8b350f62009-11-15 23:12:43 +00005326 case $ac_cv_prog_cc_stdc in #(
5327 no) :
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5329$as_echo "unsupported" >&6; } ;; #(
5330 '') :
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5332$as_echo "none needed" >&6; } ;; #(
5333 *) :
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00005335$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5336esac
5337
cristy3ed852e2009-09-05 21:47:34 +00005338ac_ext=c
5339ac_cpp='$CPP $CPPFLAGS'
5340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00005343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00005344$as_echo_n "checking how to run the C preprocessor... " >&6; }
5345# On Suns, sometimes $CPP names a directory.
5346if test -n "$CPP" && test -d "$CPP"; then
5347 CPP=
5348fi
5349if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00005350 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005351 $as_echo_n "(cached) " >&6
5352else
5353 # Double quotes because CPP needs to be expanded
5354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5355 do
5356 ac_preproc_ok=false
5357for ac_c_preproc_warn_flag in '' yes
5358do
5359 # Use a header file that comes with gcc, so configuring glibc
5360 # with a fresh cross-compiler works.
5361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5362 # <limits.h> exists even on freestanding compilers.
5363 # On the NeXT, cc -E runs the code through the compiler's parser,
5364 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005366/* end confdefs.h. */
5367#ifdef __STDC__
5368# include <limits.h>
5369#else
5370# include <assert.h>
5371#endif
5372 Syntax error
5373_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005374if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005375
cristy8b350f62009-11-15 23:12:43 +00005376else
cristy3ed852e2009-09-05 21:47:34 +00005377 # Broken: fails on valid input.
5378continue
5379fi
cristy3ed852e2009-09-05 21:47:34 +00005380rm -f conftest.err conftest.$ac_ext
5381
5382 # OK, works on sane cases. Now check whether nonexistent headers
5383 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005385/* end confdefs.h. */
5386#include <ac_nonexistent.h>
5387_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005388if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005389 # Broken: success on invalid input.
5390continue
5391else
cristy3ed852e2009-09-05 21:47:34 +00005392 # Passes both tests.
5393ac_preproc_ok=:
5394break
5395fi
cristy3ed852e2009-09-05 21:47:34 +00005396rm -f conftest.err conftest.$ac_ext
5397
5398done
5399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5400rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005401if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00005402 break
5403fi
5404
5405 done
5406 ac_cv_prog_CPP=$CPP
5407
5408fi
5409 CPP=$ac_cv_prog_CPP
5410else
5411 ac_cv_prog_CPP=$CPP
5412fi
cristy8b350f62009-11-15 23:12:43 +00005413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005414$as_echo "$CPP" >&6; }
5415ac_preproc_ok=false
5416for ac_c_preproc_warn_flag in '' yes
5417do
5418 # Use a header file that comes with gcc, so configuring glibc
5419 # with a fresh cross-compiler works.
5420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5421 # <limits.h> exists even on freestanding compilers.
5422 # On the NeXT, cc -E runs the code through the compiler's parser,
5423 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005425/* end confdefs.h. */
5426#ifdef __STDC__
5427# include <limits.h>
5428#else
5429# include <assert.h>
5430#endif
5431 Syntax error
5432_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005433if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005434
cristy8b350f62009-11-15 23:12:43 +00005435else
cristy3ed852e2009-09-05 21:47:34 +00005436 # Broken: fails on valid input.
5437continue
5438fi
cristy3ed852e2009-09-05 21:47:34 +00005439rm -f conftest.err conftest.$ac_ext
5440
5441 # OK, works on sane cases. Now check whether nonexistent headers
5442 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005444/* end confdefs.h. */
5445#include <ac_nonexistent.h>
5446_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005447if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005448 # Broken: success on invalid input.
5449continue
5450else
cristy3ed852e2009-09-05 21:47:34 +00005451 # Passes both tests.
5452ac_preproc_ok=:
5453break
5454fi
cristy3ed852e2009-09-05 21:47:34 +00005455rm -f conftest.err conftest.$ac_ext
5456
5457done
5458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5459rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005460if $ac_preproc_ok; then :
5461
cristy3ed852e2009-09-05 21:47:34 +00005462else
cristy8b350f62009-11-15 23:12:43 +00005463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00005465as_fn_error "C preprocessor \"$CPP\" fails sanity check
5466See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005467fi
5468
5469ac_ext=c
5470ac_cpp='$CPP $CPPFLAGS'
5471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474
cristy8b350f62009-11-15 23:12:43 +00005475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00005476$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005477if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005478 $as_echo_n "(cached) " >&6
5479else
5480 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5481 for ac_i in 1 2 3 4 5 6 7; do
5482 ac_script="$ac_script$as_nl$ac_script"
5483 done
5484 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00005485 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00005486 if test -z "$SED"; then
5487 ac_path_SED_found=false
5488 # Loop through the user's path and test for each of PROGNAME-LIST
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490for as_dir in $PATH
5491do
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005494 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00005495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5497 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5498# Check for GNU ac_path_SED and select it if it is found.
5499 # Check for GNU $ac_path_SED
5500case `"$ac_path_SED" --version 2>&1` in
5501*GNU*)
5502 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5503*)
5504 ac_count=0
5505 $as_echo_n 0123456789 >"conftest.in"
5506 while :
5507 do
5508 cat "conftest.in" "conftest.in" >"conftest.tmp"
5509 mv "conftest.tmp" "conftest.in"
5510 cp "conftest.in" "conftest.nl"
5511 $as_echo '' >> "conftest.nl"
5512 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5513 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005514 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005515 if test $ac_count -gt ${ac_path_SED_max-0}; then
5516 # Best one so far, save it but keep looking for a better one
5517 ac_cv_path_SED="$ac_path_SED"
5518 ac_path_SED_max=$ac_count
5519 fi
5520 # 10*(2^10) chars as input seems more than enough
5521 test $ac_count -gt 10 && break
5522 done
5523 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5524esac
5525
5526 $ac_path_SED_found && break 3
5527 done
5528 done
cristy8b350f62009-11-15 23:12:43 +00005529 done
cristy3ed852e2009-09-05 21:47:34 +00005530IFS=$as_save_IFS
5531 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00005532 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005533 fi
5534else
5535 ac_cv_path_SED=$SED
5536fi
5537
5538fi
cristy8b350f62009-11-15 23:12:43 +00005539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00005540$as_echo "$ac_cv_path_SED" >&6; }
5541 SED="$ac_cv_path_SED"
5542 rm -f conftest.sed
5543
5544test -z "$SED" && SED=sed
5545Xsed="$SED -e 1s/^X//"
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
cristy8b350f62009-11-15 23:12:43 +00005557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cristy3ed852e2009-09-05 21:47:34 +00005558$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005559if test "${ac_cv_path_GREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005560 $as_echo_n "(cached) " >&6
5561else
5562 if test -z "$GREP"; then
5563 ac_path_GREP_found=false
5564 # Loop through the user's path and test for each of PROGNAME-LIST
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5567do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005570 for ac_prog in grep ggrep; do
cristy3ed852e2009-09-05 21:47:34 +00005571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5573 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5574# Check for GNU ac_path_GREP and select it if it is found.
5575 # Check for GNU $ac_path_GREP
5576case `"$ac_path_GREP" --version 2>&1` in
5577*GNU*)
5578 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5579*)
5580 ac_count=0
5581 $as_echo_n 0123456789 >"conftest.in"
5582 while :
5583 do
5584 cat "conftest.in" "conftest.in" >"conftest.tmp"
5585 mv "conftest.tmp" "conftest.in"
5586 cp "conftest.in" "conftest.nl"
5587 $as_echo 'GREP' >> "conftest.nl"
5588 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5589 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005590 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005591 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5592 # Best one so far, save it but keep looking for a better one
5593 ac_cv_path_GREP="$ac_path_GREP"
5594 ac_path_GREP_max=$ac_count
5595 fi
5596 # 10*(2^10) chars as input seems more than enough
5597 test $ac_count -gt 10 && break
5598 done
5599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5600esac
5601
5602 $ac_path_GREP_found && break 3
5603 done
5604 done
cristy8b350f62009-11-15 23:12:43 +00005605 done
cristy3ed852e2009-09-05 21:47:34 +00005606IFS=$as_save_IFS
5607 if test -z "$ac_cv_path_GREP"; then
cristy8b350f62009-11-15 23:12:43 +00005608 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005609 fi
5610else
5611 ac_cv_path_GREP=$GREP
5612fi
5613
5614fi
cristy8b350f62009-11-15 23:12:43 +00005615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005616$as_echo "$ac_cv_path_GREP" >&6; }
5617 GREP="$ac_cv_path_GREP"
5618
5619
cristy8b350f62009-11-15 23:12:43 +00005620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00005621$as_echo_n "checking for egrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005622if test "${ac_cv_path_EGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005623 $as_echo_n "(cached) " >&6
5624else
5625 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5626 then ac_cv_path_EGREP="$GREP -E"
5627 else
5628 if test -z "$EGREP"; then
5629 ac_path_EGREP_found=false
5630 # Loop through the user's path and test for each of PROGNAME-LIST
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5633do
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005636 for ac_prog in egrep; do
cristy3ed852e2009-09-05 21:47:34 +00005637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5639 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5640# Check for GNU ac_path_EGREP and select it if it is found.
5641 # Check for GNU $ac_path_EGREP
5642case `"$ac_path_EGREP" --version 2>&1` in
5643*GNU*)
5644 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5645*)
5646 ac_count=0
5647 $as_echo_n 0123456789 >"conftest.in"
5648 while :
5649 do
5650 cat "conftest.in" "conftest.in" >"conftest.tmp"
5651 mv "conftest.tmp" "conftest.in"
5652 cp "conftest.in" "conftest.nl"
5653 $as_echo 'EGREP' >> "conftest.nl"
5654 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005656 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005657 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5658 # Best one so far, save it but keep looking for a better one
5659 ac_cv_path_EGREP="$ac_path_EGREP"
5660 ac_path_EGREP_max=$ac_count
5661 fi
5662 # 10*(2^10) chars as input seems more than enough
5663 test $ac_count -gt 10 && break
5664 done
5665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5666esac
5667
5668 $ac_path_EGREP_found && break 3
5669 done
5670 done
cristy8b350f62009-11-15 23:12:43 +00005671 done
cristy3ed852e2009-09-05 21:47:34 +00005672IFS=$as_save_IFS
5673 if test -z "$ac_cv_path_EGREP"; then
cristy8b350f62009-11-15 23:12:43 +00005674 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005675 fi
5676else
5677 ac_cv_path_EGREP=$EGREP
5678fi
5679
5680 fi
5681fi
cristy8b350f62009-11-15 23:12:43 +00005682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005683$as_echo "$ac_cv_path_EGREP" >&6; }
5684 EGREP="$ac_cv_path_EGREP"
5685
5686
cristy8b350f62009-11-15 23:12:43 +00005687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00005688$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005689if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005690 $as_echo_n "(cached) " >&6
5691else
5692 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5693 then ac_cv_path_FGREP="$GREP -F"
5694 else
5695 if test -z "$FGREP"; then
5696 ac_path_FGREP_found=false
5697 # Loop through the user's path and test for each of PROGNAME-LIST
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5700do
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005703 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00005704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5706 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5707# Check for GNU ac_path_FGREP and select it if it is found.
5708 # Check for GNU $ac_path_FGREP
5709case `"$ac_path_FGREP" --version 2>&1` in
5710*GNU*)
5711 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5712*)
5713 ac_count=0
5714 $as_echo_n 0123456789 >"conftest.in"
5715 while :
5716 do
5717 cat "conftest.in" "conftest.in" >"conftest.tmp"
5718 mv "conftest.tmp" "conftest.in"
5719 cp "conftest.in" "conftest.nl"
5720 $as_echo 'FGREP' >> "conftest.nl"
5721 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005723 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005724 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5725 # Best one so far, save it but keep looking for a better one
5726 ac_cv_path_FGREP="$ac_path_FGREP"
5727 ac_path_FGREP_max=$ac_count
5728 fi
5729 # 10*(2^10) chars as input seems more than enough
5730 test $ac_count -gt 10 && break
5731 done
5732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5733esac
5734
5735 $ac_path_FGREP_found && break 3
5736 done
5737 done
cristy8b350f62009-11-15 23:12:43 +00005738 done
cristy3ed852e2009-09-05 21:47:34 +00005739IFS=$as_save_IFS
5740 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00005741 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005742 fi
5743else
5744 ac_cv_path_FGREP=$FGREP
5745fi
5746
5747 fi
5748fi
cristy8b350f62009-11-15 23:12:43 +00005749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005750$as_echo "$ac_cv_path_FGREP" >&6; }
5751 FGREP="$ac_cv_path_FGREP"
5752
5753
5754test -z "$GREP" && GREP=grep
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00005775if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005776 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5777else
5778 with_gnu_ld=no
5779fi
5780
5781ac_prog=ld
5782if test "$GCC" = yes; then
5783 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00005784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00005785$as_echo_n "checking for ld used by $CC... " >&6; }
5786 case $host in
5787 *-*-mingw*)
5788 # gcc leaves a trailing carriage return which upsets mingw
5789 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5790 *)
5791 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5792 esac
5793 case $ac_prog in
5794 # Accept absolute paths.
5795 [\\/]* | ?:[\\/]*)
5796 re_direlt='/[^/][^/]*/\.\./'
5797 # Canonicalize the pathname of ld
5798 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5799 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5800 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5801 done
5802 test -z "$LD" && LD="$ac_prog"
5803 ;;
5804 "")
5805 # If it fails, then pretend we aren't using GCC.
5806 ac_prog=ld
5807 ;;
5808 *)
5809 # If it is relative, then search for the first ld in PATH.
5810 with_gnu_ld=unknown
5811 ;;
5812 esac
5813elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00005814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005815$as_echo_n "checking for GNU ld... " >&6; }
5816else
cristy8b350f62009-11-15 23:12:43 +00005817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005818$as_echo_n "checking for non-GNU ld... " >&6; }
5819fi
cristy8b350f62009-11-15 23:12:43 +00005820if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005821 $as_echo_n "(cached) " >&6
5822else
5823 if test -z "$LD"; then
5824 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5825 for ac_dir in $PATH; do
5826 IFS="$lt_save_ifs"
5827 test -z "$ac_dir" && ac_dir=.
5828 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5829 lt_cv_path_LD="$ac_dir/$ac_prog"
5830 # Check to see if the program is GNU ld. I'd rather use --version,
5831 # but apparently some variants of GNU ld only accept -v.
5832 # Break only if it was the GNU/non-GNU ld that we prefer.
5833 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5834 *GNU* | *'with BFD'*)
5835 test "$with_gnu_ld" != no && break
5836 ;;
5837 *)
5838 test "$with_gnu_ld" != yes && break
5839 ;;
5840 esac
5841 fi
5842 done
5843 IFS="$lt_save_ifs"
5844else
5845 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5846fi
5847fi
5848
5849LD="$lt_cv_path_LD"
5850if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00005851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00005852$as_echo "$LD" >&6; }
5853else
cristy8b350f62009-11-15 23:12:43 +00005854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005855$as_echo "no" >&6; }
5856fi
cristy8b350f62009-11-15 23:12:43 +00005857test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005859$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005860if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005861 $as_echo_n "(cached) " >&6
5862else
5863 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5864case `$LD -v 2>&1 </dev/null` in
5865*GNU* | *'with BFD'*)
5866 lt_cv_prog_gnu_ld=yes
5867 ;;
5868*)
5869 lt_cv_prog_gnu_ld=no
5870 ;;
5871esac
5872fi
cristy8b350f62009-11-15 23:12:43 +00005873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005874$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5875with_gnu_ld=$lt_cv_prog_gnu_ld
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885if test -n "$ac_tool_prefix"; then
5886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5887set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00005888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00005889$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005890if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005891 $as_echo_n "(cached) " >&6
5892else
5893 if test -n "$RANLIB"; then
5894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5895else
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005901 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00005902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00005904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005905 break 2
5906 fi
5907done
cristy8b350f62009-11-15 23:12:43 +00005908 done
cristy3ed852e2009-09-05 21:47:34 +00005909IFS=$as_save_IFS
5910
5911fi
5912fi
5913RANLIB=$ac_cv_prog_RANLIB
5914if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00005915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00005916$as_echo "$RANLIB" >&6; }
5917else
cristy8b350f62009-11-15 23:12:43 +00005918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005919$as_echo "no" >&6; }
5920fi
5921
5922
5923fi
5924if test -z "$ac_cv_prog_RANLIB"; then
5925 ac_ct_RANLIB=$RANLIB
5926 # Extract the first word of "ranlib", so it can be a program name with args.
5927set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00005928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00005929$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005930if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005931 $as_echo_n "(cached) " >&6
5932else
5933 if test -n "$ac_ct_RANLIB"; then
5934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5935else
5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00005942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00005944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005945 break 2
5946 fi
5947done
cristy8b350f62009-11-15 23:12:43 +00005948 done
cristy3ed852e2009-09-05 21:47:34 +00005949IFS=$as_save_IFS
5950
5951fi
5952fi
5953ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5954if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00005955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00005956$as_echo "$ac_ct_RANLIB" >&6; }
5957else
cristy8b350f62009-11-15 23:12:43 +00005958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005959$as_echo "no" >&6; }
5960fi
5961
5962 if test "x$ac_ct_RANLIB" = x; then
5963 RANLIB=":"
5964 else
5965 case $cross_compiling:$ac_tool_warned in
5966yes:)
cristy8b350f62009-11-15 23:12:43 +00005967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00005968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969ac_tool_warned=yes ;;
5970esac
5971 RANLIB=$ac_ct_RANLIB
5972 fi
5973else
5974 RANLIB="$ac_cv_prog_RANLIB"
5975fi
5976
5977
5978if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00005979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00005980$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5981else
cristy8b350f62009-11-15 23:12:43 +00005982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00005983$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5984fi
5985set dummy $CC; ac_cc=`$as_echo "$2" |
5986 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00005987if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005988 $as_echo_n "(cached) " >&6
5989else
cristy8b350f62009-11-15 23:12:43 +00005990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005991/* end confdefs.h. */
5992
5993int
5994main ()
5995{
5996
5997 ;
5998 return 0;
5999}
6000_ACEOF
6001# Make sure it works both with $CC and with simple cc.
6002# We do the test twice because some compilers refuse to overwrite an
6003# existing .o file with -o, though they will create one.
6004ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6005rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00006006if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6009esac
cristy8b350f62009-11-15 23:12:43 +00006010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6011$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006012 (eval "$ac_try") 2>&5
6013 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6015 test $ac_status = 0; } &&
6016 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6019esac
cristy8b350f62009-11-15 23:12:43 +00006020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6021$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006022 (eval "$ac_try") 2>&5
6023 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6025 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00006026then
6027 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6028 if test "x$CC" != xcc; then
6029 # Test first that cc exists at all.
6030 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00006031 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6034esac
cristy8b350f62009-11-15 23:12:43 +00006035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6036$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006037 (eval "$ac_try") 2>&5
6038 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6040 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00006041 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6042 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00006043 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6046esac
cristy8b350f62009-11-15 23:12:43 +00006047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6048$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006049 (eval "$ac_try") 2>&5
6050 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6052 test $ac_status = 0; } &&
6053 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6056esac
cristy8b350f62009-11-15 23:12:43 +00006057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6058$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006059 (eval "$ac_try") 2>&5
6060 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6062 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00006063 then
6064 # cc works too.
6065 :
6066 else
6067 # cc exists but doesn't like -o.
6068 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6069 fi
6070 fi
6071 fi
6072else
6073 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6074fi
6075rm -f core conftest*
6076
6077fi
6078if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00006079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006080$as_echo "yes" >&6; }
6081else
cristy8b350f62009-11-15 23:12:43 +00006082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006083$as_echo "no" >&6; }
6084
cristy8b350f62009-11-15 23:12:43 +00006085$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006086
6087fi
6088
6089# FIXME: we rely on the cache variable name because
6090# there is no other way.
6091set dummy $CC
6092am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6093eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6094if test "$am_t" != yes; then
6095 # Losing compiler, so override with the script.
6096 # FIXME: It is wrong to rewrite CC.
6097 # But if we don't then we get into trouble of one sort or another.
6098 # A longer-term fix would be to have automake use am__CC in this case,
6099 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6100 CC="$am_aux_dir/compile $CC"
6101fi
6102
6103
cristy3ed852e2009-09-05 21:47:34 +00006104
cristy8b350f62009-11-15 23:12:43 +00006105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00006106$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6107set x ${MAKE-make}
6108ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00006109if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00006110 $as_echo_n "(cached) " >&6
6111else
6112 cat >conftest.make <<\_ACEOF
6113SHELL = /bin/sh
6114all:
6115 @echo '@@@%%%=$(MAKE)=@@@%%%'
6116_ACEOF
6117# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6118case `${MAKE-make} -f conftest.make 2>/dev/null` in
6119 *@@@%%%=?*=@@@%%%*)
6120 eval ac_cv_prog_make_${ac_make}_set=yes;;
6121 *)
6122 eval ac_cv_prog_make_${ac_make}_set=no;;
6123esac
6124rm -f conftest.make
6125fi
6126if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00006127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006128$as_echo "yes" >&6; }
6129 SET_MAKE=
6130else
cristy8b350f62009-11-15 23:12:43 +00006131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006132$as_echo "no" >&6; }
6133 SET_MAKE="MAKE=${MAKE-make}"
6134fi
6135
6136ac_ext=cpp
6137ac_cpp='$CXXCPP $CPPFLAGS'
6138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6141if test -z "$CXX"; then
6142 if test -n "$CCC"; then
6143 CXX=$CCC
6144 else
6145 if test -n "$ac_tool_prefix"; then
6146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6147 do
6148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6149set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006151$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006152if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006153 $as_echo_n "(cached) " >&6
6154else
6155 if test -n "$CXX"; then
6156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6157else
6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006163 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00006166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006167 break 2
6168 fi
6169done
cristy8b350f62009-11-15 23:12:43 +00006170 done
cristy3ed852e2009-09-05 21:47:34 +00006171IFS=$as_save_IFS
6172
6173fi
6174fi
6175CXX=$ac_cv_prog_CXX
6176if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +00006177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +00006178$as_echo "$CXX" >&6; }
6179else
cristy8b350f62009-11-15 23:12:43 +00006180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006181$as_echo "no" >&6; }
6182fi
6183
6184
6185 test -n "$CXX" && break
6186 done
6187fi
6188if test -z "$CXX"; then
6189 ac_ct_CXX=$CXX
6190 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6191do
6192 # Extract the first word of "$ac_prog", so it can be a program name with args.
6193set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006195$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006196if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006197 $as_echo_n "(cached) " >&6
6198else
6199 if test -n "$ac_ct_CXX"; then
6200 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6201else
6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00006210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006211 break 2
6212 fi
6213done
cristy8b350f62009-11-15 23:12:43 +00006214 done
cristy3ed852e2009-09-05 21:47:34 +00006215IFS=$as_save_IFS
6216
6217fi
6218fi
6219ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6220if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +00006221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +00006222$as_echo "$ac_ct_CXX" >&6; }
6223else
cristy8b350f62009-11-15 23:12:43 +00006224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006225$as_echo "no" >&6; }
6226fi
6227
6228
6229 test -n "$ac_ct_CXX" && break
6230done
6231
6232 if test "x$ac_ct_CXX" = x; then
6233 CXX="g++"
6234 else
6235 case $cross_compiling:$ac_tool_warned in
6236yes:)
cristy8b350f62009-11-15 23:12:43 +00006237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6239ac_tool_warned=yes ;;
6240esac
6241 CXX=$ac_ct_CXX
6242 fi
6243fi
6244
6245 fi
6246fi
6247# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00006248$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00006249set X $ac_compile
6250ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00006251for ac_option in --version -v -V -qversion; do
6252 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00006253case "(($ac_try" in
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6256esac
cristy8b350f62009-11-15 23:12:43 +00006257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6258$as_echo "$ac_try_echo"; } >&5
6259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00006260 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006261 if test -s conftest.err; then
6262 sed '10a\
6263... rest of stderr output deleted ...
6264 10q' conftest.err >conftest.er1
6265 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00006266 fi
cristycd4c5312009-11-22 01:19:08 +00006267 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00006268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269 test $ac_status = 0; }
6270done
cristy3ed852e2009-09-05 21:47:34 +00006271
cristy8b350f62009-11-15 23:12:43 +00006272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00006273$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006274if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006275 $as_echo_n "(cached) " >&6
6276else
cristy8b350f62009-11-15 23:12:43 +00006277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006278/* end confdefs.h. */
6279
6280int
6281main ()
6282{
6283#ifndef __GNUC__
6284 choke me
6285#endif
6286
6287 ;
6288 return 0;
6289}
6290_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006291if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006292 ac_compiler_gnu=yes
6293else
cristy8b350f62009-11-15 23:12:43 +00006294 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00006295fi
cristy3ed852e2009-09-05 21:47:34 +00006296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6298
6299fi
cristy8b350f62009-11-15 23:12:43 +00006300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00006301$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6302if test $ac_compiler_gnu = yes; then
6303 GXX=yes
6304else
6305 GXX=
6306fi
6307ac_test_CXXFLAGS=${CXXFLAGS+set}
6308ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +00006309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00006310$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006311if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006312 $as_echo_n "(cached) " >&6
6313else
6314 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6315 ac_cxx_werror_flag=yes
6316 ac_cv_prog_cxx_g=no
6317 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00006318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006319/* end confdefs.h. */
6320
6321int
6322main ()
6323{
6324
6325 ;
6326 return 0;
6327}
6328_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006329if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006330 ac_cv_prog_cxx_g=yes
6331else
cristy8b350f62009-11-15 23:12:43 +00006332 CXXFLAGS=""
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006334/* end confdefs.h. */
6335
6336int
6337main ()
6338{
6339
6340 ;
6341 return 0;
6342}
6343_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006344if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006345
cristy8b350f62009-11-15 23:12:43 +00006346else
6347 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00006348 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00006349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006350/* end confdefs.h. */
6351
6352int
6353main ()
6354{
6355
6356 ;
6357 return 0;
6358}
6359_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006360if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006361 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +00006362fi
cristy3ed852e2009-09-05 21:47:34 +00006363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364fi
cristy3ed852e2009-09-05 21:47:34 +00006365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366fi
cristy3ed852e2009-09-05 21:47:34 +00006367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6369fi
cristy8b350f62009-11-15 23:12:43 +00006370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00006371$as_echo "$ac_cv_prog_cxx_g" >&6; }
6372if test "$ac_test_CXXFLAGS" = set; then
6373 CXXFLAGS=$ac_save_CXXFLAGS
6374elif test $ac_cv_prog_cxx_g = yes; then
6375 if test "$GXX" = yes; then
6376 CXXFLAGS="-g -O2"
6377 else
6378 CXXFLAGS="-g"
6379 fi
6380else
6381 if test "$GXX" = yes; then
6382 CXXFLAGS="-O2"
6383 else
6384 CXXFLAGS=
6385 fi
6386fi
6387ac_ext=c
6388ac_cpp='$CPP $CPPFLAGS'
6389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6391ac_compiler_gnu=$ac_cv_c_compiler_gnu
6392
6393depcc="$CXX" am_compiler_list=
6394
cristy8b350f62009-11-15 23:12:43 +00006395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006396$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006397if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006398 $as_echo_n "(cached) " >&6
6399else
6400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6401 # We make a subdir and do the tests there. Otherwise we can end up
6402 # making bogus files that we don't know about and never remove. For
6403 # instance it was reported that on HP-UX the gcc test will end up
6404 # making a dummy file named `D' -- because `-MD' means `put the output
6405 # in D'.
6406 mkdir conftest.dir
6407 # Copy depcomp to subdir because otherwise we won't find it if we're
6408 # using a relative directory.
6409 cp "$am_depcomp" conftest.dir
6410 cd conftest.dir
6411 # We will build objects and dependencies in a subdirectory because
6412 # it helps to detect inapplicable dependency modes. For instance
6413 # both Tru64's cc and ICC support -MD to output dependencies as a
6414 # side effect of compilation, but ICC will put the dependencies in
6415 # the current directory while Tru64 will put them in the object
6416 # directory.
6417 mkdir sub
6418
6419 am_cv_CXX_dependencies_compiler_type=none
6420 if test "$am_compiler_list" = ""; then
6421 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6422 fi
6423 am__universal=false
6424 case " $depcc " in #(
6425 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6426 esac
6427
6428 for depmode in $am_compiler_list; do
6429 # Setup a source with many dependencies, because some compilers
6430 # like to wrap large dependency lists on column 80 (with \), and
6431 # we should not choose a depcomp mode which is confused by this.
6432 #
6433 # We need to recreate these files for each test, as the compiler may
6434 # overwrite some of them when testing with obscure command lines.
6435 # This happens at least with the AIX C compiler.
6436 : > sub/conftest.c
6437 for i in 1 2 3 4 5 6; do
6438 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6439 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6440 # Solaris 8's {/usr,}/bin/sh.
6441 touch sub/conftst$i.h
6442 done
6443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6444
6445 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6446 # mode. It turns out that the SunPro C++ compiler does not properly
6447 # handle `-M -o', and we need to detect this. Also, some Intel
6448 # versions had trouble with output in subdirs
6449 am__obj=sub/conftest.${OBJEXT-o}
6450 am__minus_obj="-o $am__obj"
6451 case $depmode in
6452 gcc)
6453 # This depmode causes a compiler race in universal mode.
6454 test "$am__universal" = false || continue
6455 ;;
6456 nosideeffect)
6457 # after this tag, mechanisms are not by side-effect, so they'll
6458 # only be used when explicitly requested
6459 if test "x$enable_dependency_tracking" = xyes; then
6460 continue
6461 else
6462 break
6463 fi
6464 ;;
6465 msvisualcpp | msvcmsys)
6466 # This compiler won't grok `-c -o', but also, the minuso test has
6467 # not run yet. These depmodes are late enough in the game, and
6468 # so weak that their functioning should not be impacted.
6469 am__obj=conftest.${OBJEXT-o}
6470 am__minus_obj=
6471 ;;
6472 none) break ;;
6473 esac
6474 if depmode=$depmode \
6475 source=sub/conftest.c object=$am__obj \
6476 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6477 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6478 >/dev/null 2>conftest.err &&
6479 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6480 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6481 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6482 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6483 # icc doesn't choke on unknown options, it will just issue warnings
6484 # or remarks (even with -Werror). So we grep stderr for any message
6485 # that says an option was ignored or not supported.
6486 # When given -MP, icc 7.0 and 7.1 complain thusly:
6487 # icc: Command line warning: ignoring option '-M'; no argument required
6488 # The diagnosis changed in icc 8.0:
6489 # icc: Command line remark: option '-MP' not supported
6490 if (grep 'ignoring option' conftest.err ||
6491 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6492 am_cv_CXX_dependencies_compiler_type=$depmode
6493 break
6494 fi
6495 fi
6496 done
6497
6498 cd ..
6499 rm -rf conftest.dir
6500else
6501 am_cv_CXX_dependencies_compiler_type=none
6502fi
6503
6504fi
cristy8b350f62009-11-15 23:12:43 +00006505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006506$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6507CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6508
6509 if
6510 test "x$enable_dependency_tracking" != xno \
6511 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6512 am__fastdepCXX_TRUE=
6513 am__fastdepCXX_FALSE='#'
6514else
6515 am__fastdepCXX_TRUE='#'
6516 am__fastdepCXX_FALSE=
6517fi
6518
6519
6520
cristy8b350f62009-11-15 23:12:43 +00006521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006522$as_echo_n "checking maximum warning verbosity option... " >&6; }
6523
6524
6525
6526
6527# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00006528if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006529 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6530else
6531 ac_compile_warnings_on=""
6532fi
6533
6534
6535 if test x"$ac_compile_warnings_on" = xno
6536 then
6537 ac_compile_warnings_msg=no
6538 else
6539 if test -n "$CXX"
6540 then
6541 if test "$GXX" = "yes"
6542 then
6543 ac_compile_warnings_opt='-Wall -W'
6544 fi
6545 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6546 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6547 fi
6548
6549 if test -n "$CC"
6550 then
6551 if test "$GCC" = "yes"
6552 then
6553 ac_compile_warnings_opt='-Wall -W'
6554 fi
6555 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6556 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6557 fi
6558 fi
cristy8b350f62009-11-15 23:12:43 +00006559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00006560$as_echo "$ac_compile_warnings_msg" >&6; }
6561 unset ac_compile_warnings_msg
6562 unset ac_compile_warnings_opt
6563
cristy8b350f62009-11-15 23:12:43 +00006564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00006565$as_echo_n "checking whether ln -s works... " >&6; }
6566LN_S=$as_ln_s
6567if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00006568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006569$as_echo "yes" >&6; }
6570else
cristy8b350f62009-11-15 23:12:43 +00006571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00006572$as_echo "no, using $LN_S" >&6; }
6573fi
6574
cristy8b350f62009-11-15 23:12:43 +00006575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00006576$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6577
6578# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00006579if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006580 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006582$as_echo "yes" >&6; }
6583
cristy8b350f62009-11-15 23:12:43 +00006584$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006585
6586 LIBS="$LIBS -ldmalloc"
6587 LDFLAGS="$LDFLAGS -g"
6588else
cristy8b350f62009-11-15 23:12:43 +00006589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006590$as_echo "no" >&6; }
6591fi
6592else
cristy8b350f62009-11-15 23:12:43 +00006593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006594$as_echo "no" >&6; }
6595fi
6596
6597
6598
6599
6600if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6601 if test -n "$ac_tool_prefix"; then
6602 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6603set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006605$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006606if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006607 $as_echo_n "(cached) " >&6
6608else
6609 case $PKG_CONFIG in
6610 [\\/]* | ?:[\\/]*)
6611 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6612 ;;
6613 *)
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006619 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006623 break 2
6624 fi
6625done
cristy8b350f62009-11-15 23:12:43 +00006626 done
cristy3ed852e2009-09-05 21:47:34 +00006627IFS=$as_save_IFS
6628
6629 ;;
6630esac
6631fi
6632PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6633if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006635$as_echo "$PKG_CONFIG" >&6; }
6636else
cristy8b350f62009-11-15 23:12:43 +00006637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006638$as_echo "no" >&6; }
6639fi
6640
6641
6642fi
6643if test -z "$ac_cv_path_PKG_CONFIG"; then
6644 ac_pt_PKG_CONFIG=$PKG_CONFIG
6645 # Extract the first word of "pkg-config", so it can be a program name with args.
6646set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006648$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006649if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006650 $as_echo_n "(cached) " >&6
6651else
6652 case $ac_pt_PKG_CONFIG in
6653 [\\/]* | ?:[\\/]*)
6654 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6655 ;;
6656 *)
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006662 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006666 break 2
6667 fi
6668done
cristy8b350f62009-11-15 23:12:43 +00006669 done
cristy3ed852e2009-09-05 21:47:34 +00006670IFS=$as_save_IFS
6671
6672 ;;
6673esac
6674fi
6675ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6676if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006678$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6679else
cristy8b350f62009-11-15 23:12:43 +00006680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006681$as_echo "no" >&6; }
6682fi
6683
6684 if test "x$ac_pt_PKG_CONFIG" = x; then
6685 PKG_CONFIG=""
6686 else
6687 case $cross_compiling:$ac_tool_warned in
6688yes:)
cristy8b350f62009-11-15 23:12:43 +00006689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691ac_tool_warned=yes ;;
6692esac
6693 PKG_CONFIG=$ac_pt_PKG_CONFIG
6694 fi
6695else
6696 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6697fi
6698
6699fi
6700if test -n "$PKG_CONFIG"; then
6701 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00006702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00006703$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6704 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00006705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006706$as_echo "yes" >&6; }
6707 else
cristy8b350f62009-11-15 23:12:43 +00006708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006709$as_echo "no" >&6; }
6710 PKG_CONFIG=""
6711 fi
6712
6713fi
6714
6715#
6716# Enable OS features.
6717#
6718
6719
cristy8b350f62009-11-15 23:12:43 +00006720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +00006721$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006722if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006723 $as_echo_n "(cached) " >&6
6724else
cristy8b350f62009-11-15 23:12:43 +00006725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006726/* end confdefs.h. */
6727#include <stdlib.h>
6728#include <stdarg.h>
6729#include <string.h>
6730#include <float.h>
6731
6732int
6733main ()
6734{
6735
6736 ;
6737 return 0;
6738}
6739_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006740if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006741 ac_cv_header_stdc=yes
6742else
cristy8b350f62009-11-15 23:12:43 +00006743 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006744fi
cristy3ed852e2009-09-05 21:47:34 +00006745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746
6747if test $ac_cv_header_stdc = yes; then
6748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006750/* end confdefs.h. */
6751#include <string.h>
6752
6753_ACEOF
6754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006755 $EGREP "memchr" >/dev/null 2>&1; then :
6756
cristy3ed852e2009-09-05 21:47:34 +00006757else
6758 ac_cv_header_stdc=no
6759fi
6760rm -f conftest*
6761
6762fi
6763
6764if test $ac_cv_header_stdc = yes; then
6765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006767/* end confdefs.h. */
6768#include <stdlib.h>
6769
6770_ACEOF
6771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006772 $EGREP "free" >/dev/null 2>&1; then :
6773
cristy3ed852e2009-09-05 21:47:34 +00006774else
6775 ac_cv_header_stdc=no
6776fi
6777rm -f conftest*
6778
6779fi
6780
6781if test $ac_cv_header_stdc = yes; then
6782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +00006783 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006784 :
6785else
cristy8b350f62009-11-15 23:12:43 +00006786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006787/* end confdefs.h. */
6788#include <ctype.h>
6789#include <stdlib.h>
6790#if ((' ' & 0x0FF) == 0x020)
6791# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6792# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6793#else
6794# define ISLOWER(c) \
6795 (('a' <= (c) && (c) <= 'i') \
6796 || ('j' <= (c) && (c) <= 'r') \
6797 || ('s' <= (c) && (c) <= 'z'))
6798# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6799#endif
6800
6801#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6802int
6803main ()
6804{
6805 int i;
6806 for (i = 0; i < 256; i++)
6807 if (XOR (islower (i), ISLOWER (i))
6808 || toupper (i) != TOUPPER (i))
6809 return 2;
6810 return 0;
6811}
6812_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006813if ac_fn_c_try_run "$LINENO"; then :
6814
cristy3ed852e2009-09-05 21:47:34 +00006815else
cristy8b350f62009-11-15 23:12:43 +00006816 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006817fi
cristy8b350f62009-11-15 23:12:43 +00006818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6819 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006820fi
6821
cristy3ed852e2009-09-05 21:47:34 +00006822fi
6823fi
cristy8b350f62009-11-15 23:12:43 +00006824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006825$as_echo "$ac_cv_header_stdc" >&6; }
6826if test $ac_cv_header_stdc = yes; then
6827
cristy8b350f62009-11-15 23:12:43 +00006828$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006829
6830fi
6831
6832# On IRIX 5.3, sys/types and inttypes.h are conflicting.
cristy3ed852e2009-09-05 21:47:34 +00006833for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6834 inttypes.h stdint.h unistd.h
cristy8b350f62009-11-15 23:12:43 +00006835do :
6836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6837ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6838"
6839eval as_val=\$$as_ac_Header
6840 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006841 cat >>confdefs.h <<_ACEOF
6842#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6843_ACEOF
6844
6845fi
6846
6847done
6848
6849
6850
cristy8b350f62009-11-15 23:12:43 +00006851 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6852if test "x$ac_cv_header_minix_config_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006853 MINIX=yes
6854else
6855 MINIX=
6856fi
6857
6858
6859 if test "$MINIX" = yes; then
6860
cristy8b350f62009-11-15 23:12:43 +00006861$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006862
6863
cristy8b350f62009-11-15 23:12:43 +00006864$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006865
6866
cristy8b350f62009-11-15 23:12:43 +00006867$as_echo "#define _MINIX 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006868
6869 fi
6870
6871
cristy8b350f62009-11-15 23:12:43 +00006872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006873$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006874if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006875 $as_echo_n "(cached) " >&6
6876else
cristy8b350f62009-11-15 23:12:43 +00006877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006878/* end confdefs.h. */
6879
6880# define __EXTENSIONS__ 1
6881 $ac_includes_default
6882int
6883main ()
6884{
6885
6886 ;
6887 return 0;
6888}
6889_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006890if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006891 ac_cv_safe_to_define___extensions__=yes
6892else
cristy8b350f62009-11-15 23:12:43 +00006893 ac_cv_safe_to_define___extensions__=no
cristy3ed852e2009-09-05 21:47:34 +00006894fi
cristy3ed852e2009-09-05 21:47:34 +00006895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896fi
cristy8b350f62009-11-15 23:12:43 +00006897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006898$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6899 test $ac_cv_safe_to_define___extensions__ = yes &&
cristy8b350f62009-11-15 23:12:43 +00006900 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006901
cristy8b350f62009-11-15 23:12:43 +00006902 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006903
cristy8b350f62009-11-15 23:12:43 +00006904 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006905
cristy8b350f62009-11-15 23:12:43 +00006906 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006907
cristy8b350f62009-11-15 23:12:43 +00006908 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6909
cristy3ed852e2009-09-05 21:47:34 +00006910
6911
6912
6913#
6914# Enable run-time checking.
6915#
6916# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00006917if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006918 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6919else
6920 enable_bounds_checking='no'
6921fi
6922
6923
6924if test "$enable_bounds_checking" = yes; then
6925
cristy8b350f62009-11-15 23:12:43 +00006926$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006927
6928fi
6929
6930#
6931# Tests for Windows
6932#
6933
6934
6935
6936GDI32_LIBS=''
6937StaticCplusPlusLibraries='no'
6938native_win32_build='no'
6939cygwin_build='no'
6940case "${host_os}" in
6941 cygwin* )
6942 StaticCplusPlusLibraries='yes'
6943 cygwin_build='yes'
6944 GDI32_LIBS='-lgdi32'
6945 ;;
6946 mingw* )
6947 StaticCplusPlusLibraries='yes'
6948 native_win32_build='yes'
6949 GDI32_LIBS='-lgdi32'
6950 ;;
6951esac
6952if test "${GDI32_LIBS}x" != 'x'; then
6953
cristy8b350f62009-11-15 23:12:43 +00006954$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006955
6956fi
6957
6958 if test "${GDI32_LIBS}x" != 'x' ; then
6959 WINGDI32_DELEGATE_TRUE=
6960 WINGDI32_DELEGATE_FALSE='#'
6961else
6962 WINGDI32_DELEGATE_TRUE='#'
6963 WINGDI32_DELEGATE_FALSE=
6964fi
6965
6966 if test "${native_win32_build}" = 'yes' ; then
6967 WIN32_NATIVE_BUILD_TRUE=
6968 WIN32_NATIVE_BUILD_FALSE='#'
6969else
6970 WIN32_NATIVE_BUILD_TRUE='#'
6971 WIN32_NATIVE_BUILD_FALSE=
6972fi
6973
6974 if test "${cygwin_build}" = 'yes' ; then
6975 CYGWIN_BUILD_TRUE=
6976 CYGWIN_BUILD_FALSE='#'
6977else
6978 CYGWIN_BUILD_TRUE='#'
6979 CYGWIN_BUILD_FALSE=
6980fi
6981
6982 if test "x${CC}" = 'xcl.exe' ; then
6983 USING_CL_TRUE=
6984 USING_CL_FALSE='#'
6985else
6986 USING_CL_TRUE='#'
6987 USING_CL_FALSE=
6988fi
6989
6990
6991WinPathScript="${srcdirfull}/winpath.sh"
6992
6993
6994#
6995# Compiler flags tweaks
6996#
6997if test "${GCC}" != "yes"; then
6998 case "${host}" in
6999 *-*-hpux* )
7000 # aCC: HP ANSI C++ B3910B A.03.34
7001 CFLAGS="${CFLAGS} -Wp,-H30000"
7002 if test -n "${CXXFLAGS}"; then
7003 CXXFLAGS='-AA'
7004 else
7005 CXXFLAGS="${CXXFLAGS} -AA"
7006 fi
7007 ;;
7008 *-dec-osf5.* )
7009 # Compaq alphaev68-dec-osf5.1 compiler
7010 if test -n "${CXXFLAGS}"; then
7011 CXXFLAGS='-std strict_ansi -noimplicit_include'
7012 else
7013 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7014 fi
7015 esac
7016fi
7017
7018# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00007019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007020$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007021if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007022 $as_echo_n "(cached) " >&6
7023else
7024
7025im_cv_ld_lazyload='none'
7026case "${host}" in
7027 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7028 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7029 im_cv_ld_lazyload='-Wl,-zlazyload'
7030 fi
7031 ;;
7032esac
7033
7034fi
cristy8b350f62009-11-15 23:12:43 +00007035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00007036$as_echo "$im_cv_ld_lazyload" >&6; }
7037if test "${im_cv_ld_lazyload}" != 'none' ; then
7038 if test -z "${LDFLAGS}" ; then
7039 LDFLAGS="${im_cv_ld_lazyload}"
7040 else
7041 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7042 fi
7043fi
7044
7045case "$host" in
7046*darwin* | *-macos10*)
7047 if test -d /opt/local ; then
7048 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7049 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7050 elif test -d /sw ; then
7051 CPPFLAGS="$CPPFLAGS -I/sw/include"
7052 LDFLAGS="$LDFLAGS -L/sw/lib"
7053 fi
7054 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00007055if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007056 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7057else
7058 build_osxuniversal=no
7059fi
7060
7061
7062 if test "${build_osxuniversal}" != no ; then
7063 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00007064 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00007065Please re-run configure with these options:
7066 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00007067 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007068 fi
7069 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7070 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7071 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7072 fi
7073 ;;
7074esac
7075
7076# Enable support for threads
7077
7078# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00007079if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007080 withval=$with_threads; with_threads=$withval
7081else
7082 with_threads='yes'
7083fi
7084
7085
7086have_threads=no
7087if test "$with_threads" != 'no'; then
7088
7089
7090
7091ac_ext=c
7092ac_cpp='$CPP $CPPFLAGS'
7093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095ac_compiler_gnu=$ac_cv_c_compiler_gnu
7096
7097acx_pthread_ok=no
7098
7099# We used to check for pthread.h first, but this fails if pthread.h
7100# requires special compiler flags (e.g. on True64 or Sequent).
7101# It gets checked for in the link test anyway.
7102
7103# First of all, check if the user has set any of the PTHREAD_LIBS,
7104# etcetera environment variables, and if threads linking works using
7105# them:
7106if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7107 save_CFLAGS="$CFLAGS"
7108 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7109 save_LIBS="$LIBS"
7110 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00007111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
cristy3ed852e2009-09-05 21:47:34 +00007112$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007114/* end confdefs.h. */
7115
7116/* Override any GCC internal prototype to avoid an error.
7117 Use char because int might match the return type of a GCC
7118 builtin and then its argument prototype would still apply. */
7119#ifdef __cplusplus
7120extern "C"
7121#endif
7122char pthread_join ();
7123int
7124main ()
7125{
7126return pthread_join ();
7127 ;
7128 return 0;
7129}
7130_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007131if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007132 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007133fi
cristy8b350f62009-11-15 23:12:43 +00007134rm -f core conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007137$as_echo "$acx_pthread_ok" >&6; }
7138 if test x"$acx_pthread_ok" = xno; then
7139 PTHREAD_LIBS=""
7140 PTHREAD_CFLAGS=""
7141 fi
7142 LIBS="$save_LIBS"
7143 CFLAGS="$save_CFLAGS"
7144fi
7145
7146# We must check for the threads library under a number of different
7147# names; the ordering is very important because some systems
7148# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7149# libraries is broken (non-POSIX).
7150
7151# Create a list of thread flags to try. Items starting with a "-" are
7152# C compiler flags, and other items are library names, except for "none"
7153# which indicates that we try without any flags at all, and "pthread-config"
7154# which is a program returning the flags for the Pth emulation library.
7155
7156acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7157
7158# The ordering *is* (sometimes) important. Some notes on the
7159# individual items follow:
7160
7161# pthreads: AIX (must check this before -lpthread)
7162# none: in case threads are in libc; should be tried before -Kthread and
7163# other compiler flags to prevent continual compiler warnings
7164# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7165# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7166# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7167# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7168# -pthreads: Solaris/gcc
7169# -mthreads: Mingw32/gcc, Lynx/gcc
7170# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7171# doesn't hurt to check since this sometimes defines pthreads too;
7172# also defines -D_REENTRANT)
7173# ... -mt is also the pthreads flag for HP/aCC
7174# pthread: Linux, etcetera
7175# --thread-safe: KAI C++
7176# pthread-config: use pthread-config program (for GNU Pth library)
7177
7178case "${host_cpu}-${host_os}" in
7179 *solaris*)
7180
7181 # On Solaris (at least, for some versions), libc contains stubbed
7182 # (non-functional) versions of the pthreads routines, so link-based
7183 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7184 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7185 # a function called by this macro, so we could check for that, but
7186 # who knows whether they'll stub that too in a future libc.) So,
7187 # we'll just look for -pthreads and -lpthread first:
7188
7189 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7190 ;;
cristy3ed852e2009-09-05 21:47:34 +00007191esac
7192
7193if test x"$acx_pthread_ok" = xno; then
7194for flag in $acx_pthread_flags; do
7195
7196 case $flag in
7197 none)
cristy8b350f62009-11-15 23:12:43 +00007198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00007199$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7200 ;;
7201
7202 -*)
cristy8b350f62009-11-15 23:12:43 +00007203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007204$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7205 PTHREAD_CFLAGS="$flag"
7206 ;;
7207
7208 pthread-config)
7209 # Extract the first word of "pthread-config", so it can be a program name with args.
7210set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007212$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007213if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007214 $as_echo_n "(cached) " >&6
7215else
7216 if test -n "$acx_pthread_config"; then
7217 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7218else
7219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220for as_dir in $PATH
7221do
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7226 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00007227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007228 break 2
7229 fi
7230done
cristy8b350f62009-11-15 23:12:43 +00007231 done
cristy3ed852e2009-09-05 21:47:34 +00007232IFS=$as_save_IFS
7233
7234 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7235fi
7236fi
7237acx_pthread_config=$ac_cv_prog_acx_pthread_config
7238if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00007239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00007240$as_echo "$acx_pthread_config" >&6; }
7241else
cristy8b350f62009-11-15 23:12:43 +00007242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007243$as_echo "no" >&6; }
7244fi
7245
7246
7247 if test x"$acx_pthread_config" = xno; then continue; fi
7248 PTHREAD_CFLAGS="`pthread-config --cflags`"
7249 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7250 ;;
7251
7252 *)
cristy8b350f62009-11-15 23:12:43 +00007253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007254$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7255 PTHREAD_LIBS="-l$flag"
7256 ;;
7257 esac
7258
7259 save_LIBS="$LIBS"
7260 save_CFLAGS="$CFLAGS"
7261 LIBS="$PTHREAD_LIBS $LIBS"
7262 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7263
7264 # Check for various functions. We must include pthread.h,
7265 # since some functions may be macros. (On the Sequent, we
7266 # need a special flag -Kthread to make this header compile.)
7267 # We check for pthread_join because it is in -lpthread on IRIX
7268 # while pthread_create is in libc. We check for pthread_attr_init
7269 # due to DEC craziness with -lpthreads. We check for
7270 # pthread_cleanup_push because it is one of the few pthread
7271 # functions on Solaris that doesn't have a non-functional libc stub.
7272 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00007273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007274/* end confdefs.h. */
7275#include <pthread.h>
7276int
7277main ()
7278{
7279pthread_t th; pthread_join(th, 0);
7280 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7281 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7282 ;
7283 return 0;
7284}
7285_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007286if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007287 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007288fi
cristy8b350f62009-11-15 23:12:43 +00007289rm -f core conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007291
7292 LIBS="$save_LIBS"
7293 CFLAGS="$save_CFLAGS"
7294
cristy8b350f62009-11-15 23:12:43 +00007295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007296$as_echo "$acx_pthread_ok" >&6; }
7297 if test "x$acx_pthread_ok" = xyes; then
7298 break;
7299 fi
7300
7301 PTHREAD_LIBS=""
7302 PTHREAD_CFLAGS=""
7303done
7304fi
7305
7306# Various other checks:
7307if test "x$acx_pthread_ok" = xyes; then
7308 save_LIBS="$LIBS"
7309 LIBS="$PTHREAD_LIBS $LIBS"
7310 save_CFLAGS="$CFLAGS"
7311 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7312
7313 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00007314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00007315$as_echo_n "checking for joinable pthread attribute... " >&6; }
7316 attr_name=unknown
7317 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00007318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007319/* end confdefs.h. */
7320#include <pthread.h>
7321int
7322main ()
7323{
7324int attr=$attr; return attr;
7325 ;
7326 return 0;
7327}
7328_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007329if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007330 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00007331fi
cristy8b350f62009-11-15 23:12:43 +00007332rm -f core conftest.err conftest.$ac_objext \
7333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007334 done
cristy8b350f62009-11-15 23:12:43 +00007335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00007336$as_echo "$attr_name" >&6; }
7337 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7338
7339cat >>confdefs.h <<_ACEOF
7340#define PTHREAD_CREATE_JOINABLE $attr_name
7341_ACEOF
7342
7343 fi
7344
cristy8b350f62009-11-15 23:12:43 +00007345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00007346$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7347 flag=no
7348 case "${host_cpu}-${host_os}" in
7349 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7350 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7351 esac
cristy8b350f62009-11-15 23:12:43 +00007352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00007353$as_echo "${flag}" >&6; }
7354 if test "x$flag" != xno; then
7355 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7356 fi
7357
7358 LIBS="$save_LIBS"
7359 CFLAGS="$save_CFLAGS"
7360
7361 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00007362 if test x"$GCC" != xyes; then
7363 for ac_prog in xlc_r cc_r
7364do
7365 # Extract the first word of "$ac_prog", so it can be a program name with args.
7366set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007368$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007369if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007370 $as_echo_n "(cached) " >&6
7371else
7372 if test -n "$PTHREAD_CC"; then
7373 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7374else
7375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376for as_dir in $PATH
7377do
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007380 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy736173a2009-09-20 21:18:22 +00007382 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00007383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007384 break 2
7385 fi
7386done
cristy8b350f62009-11-15 23:12:43 +00007387 done
cristy3ed852e2009-09-05 21:47:34 +00007388IFS=$as_save_IFS
7389
cristy3ed852e2009-09-05 21:47:34 +00007390fi
7391fi
7392PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7393if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007395$as_echo "$PTHREAD_CC" >&6; }
7396else
cristy8b350f62009-11-15 23:12:43 +00007397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007398$as_echo "no" >&6; }
7399fi
7400
cristy736173a2009-09-20 21:18:22 +00007401
7402 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00007403done
cristy736173a2009-09-20 21:18:22 +00007404test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00007405
cristy736173a2009-09-20 21:18:22 +00007406 else
7407 PTHREAD_CC=$CC
7408 fi
cristy3ed852e2009-09-05 21:47:34 +00007409else
cristy736173a2009-09-20 21:18:22 +00007410 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00007411fi
7412
cristy3ed852e2009-09-05 21:47:34 +00007413
7414
7415
7416
7417# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7418if test x"$acx_pthread_ok" = xyes; then
7419
cristy8b350f62009-11-15 23:12:43 +00007420$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007421
7422 :
7423else
7424 acx_pthread_ok=no
7425
7426fi
7427ac_ext=c
7428ac_cpp='$CPP $CPPFLAGS'
7429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7431ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432
7433
7434 if test "$acx_pthread_ok" = yes; then
7435 have_threads=yes
7436 DEF_THREAD="$PTHREAD_CFLAGS"
7437 CFLAGS="$CFLAGS $DEF_THREAD"
7438 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7439 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007440 { $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 +00007441$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7442 CC="$PTHREAD_CC"
7443 fi
7444 fi
7445fi
7446
7447# Enable support for OpenMP
7448if test "$have_threads" != 'yes'; then
7449 ac_cv_prog_c_openmp=unsupported
7450fi
7451
7452 OPENMP_CFLAGS=
7453 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00007454if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007455 enableval=$enable_openmp;
7456fi
7457
7458 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00007459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007460$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007461if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007462 $as_echo_n "(cached) " >&6
7463else
cristy8b350f62009-11-15 23:12:43 +00007464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007466
7467#ifndef _OPENMP
7468 choke me
7469#endif
7470#include <omp.h>
7471int main () { return omp_get_num_threads (); }
7472
7473_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007474if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007475 ac_cv_prog_c_openmp='none needed'
7476else
cristy8b350f62009-11-15 23:12:43 +00007477 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00007478 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7479 ac_save_CFLAGS=$CFLAGS
7480 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00007481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007483
7484#ifndef _OPENMP
7485 choke me
7486#endif
7487#include <omp.h>
7488int main () { return omp_get_num_threads (); }
7489
7490_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007491if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007492 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00007493fi
cristy8b350f62009-11-15 23:12:43 +00007494rm -f core conftest.err conftest.$ac_objext \
7495 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007496 CFLAGS=$ac_save_CFLAGS
7497 if test "$ac_cv_prog_c_openmp" != unsupported; then
7498 break
7499 fi
7500 done
7501fi
cristy8b350f62009-11-15 23:12:43 +00007502rm -f core conftest.err conftest.$ac_objext \
7503 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007504fi
cristy8b350f62009-11-15 23:12:43 +00007505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00007506$as_echo "$ac_cv_prog_c_openmp" >&6; }
7507 case $ac_cv_prog_c_openmp in #(
7508 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00007509 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00007510 *)
cristy8b350f62009-11-15 23:12:43 +00007511 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00007512 esac
7513 fi
7514
7515
7516CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7517MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7518
7519
cristy736173a2009-09-20 21:18:22 +00007520# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00007521
7522ac_ext=c
7523ac_cpp='$CPP $CPPFLAGS'
7524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7526ac_compiler_gnu=$ac_cv_c_compiler_gnu
7527
cristy8b350f62009-11-15 23:12:43 +00007528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00007529$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007530if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007531 $as_echo_n "(cached) " >&6
7532else
cristy8b350f62009-11-15 23:12:43 +00007533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007534/* end confdefs.h. */
7535
7536int
7537main ()
7538{
7539#ifndef _MSC_VER
7540 choke me
7541#endif
7542
7543 ;
7544 return 0;
7545}
7546_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007547if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007548 ax_compiler_ms=yes
7549else
cristy8b350f62009-11-15 23:12:43 +00007550 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00007551fi
cristy736173a2009-09-20 21:18:22 +00007552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553ax_cv_c_compiler_ms=$ax_compiler_ms
7554
7555fi
cristy8b350f62009-11-15 23:12:43 +00007556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00007557$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy8b350f62009-11-15 23:12:43 +00007558if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007559 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7560fi
7561
cristy736173a2009-09-20 21:18:22 +00007562ax_save_CPPFLAGS=$CPPFLAGS
7563CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +00007564for ac_header in CL/opencl.h OpenCL/OpenCL.h
cristy8b350f62009-11-15 23:12:43 +00007565do :
7566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7567ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7568eval as_val=\$$as_ac_Header
7569 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007570 cat >>confdefs.h <<_ACEOF
7571#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7572_ACEOF
7573
7574fi
7575
7576done
7577
7578CPPFLAGS=$ax_save_CPPFLAGS
7579
cristy736173a2009-09-20 21:18:22 +00007580for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00007581do :
7582 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7583if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007584 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007585#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00007586_ACEOF
7587
7588fi
7589
7590done
7591
7592
7593
7594
cristy8b350f62009-11-15 23:12:43 +00007595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00007596$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007597if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007598 $as_echo_n "(cached) " >&6
7599else
7600 ax_cv_check_cl_libcl=no
7601case $host_cpu in
7602 x86_64) ax_check_cl_libdir=lib64 ;;
7603 *) ax_check_cl_libdir=lib ;;
7604esac
7605ax_save_CPPFLAGS=$CPPFLAGS
7606CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7607ax_save_LIBS=$LIBS
7608LIBS=""
cristya49aa422009-09-20 23:40:10 +00007609ax_check_libs="-lOpenCL -lCL"
cristy736173a2009-09-20 21:18:22 +00007610for ax_lib in $ax_check_libs; do
cristy8b350f62009-11-15 23:12:43 +00007611 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007612 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
7613else
7614 ax_try_lib=$ax_lib
7615fi
cristy736173a2009-09-20 21:18:22 +00007616 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
cristy8b350f62009-11-15 23:12:43 +00007617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007618/* end confdefs.h. */
7619
7620# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7621# include <windows.h>
7622# endif
cristya03a0852009-10-13 02:02:39 +00007623# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007624# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007625# elif defined(HAVE_OPENCL_OPENCL_H)
7626# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007627# else
cristya03a0852009-10-13 02:02:39 +00007628# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007629# endif
7630int
7631main ()
7632{
cristyc7083c12009-10-14 03:16:55 +00007633clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007634 ;
7635 return 0;
7636}
7637_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007638if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007639 ax_cv_check_cl_libcl=$ax_try_lib; break
7640else
cristy8b350f62009-11-15 23:12:43 +00007641 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"
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007643/* end confdefs.h. */
7644
7645# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7646# include <windows.h>
7647# endif
cristya03a0852009-10-13 02:02:39 +00007648# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007649# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007650# elif defined(HAVE_OPENCL_OPENCL_H)
7651# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007652# else
cristya03a0852009-10-13 02:02:39 +00007653# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007654# endif
7655int
7656main ()
7657{
cristyc7083c12009-10-14 03:16:55 +00007658clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007659 ;
7660 return 0;
7661}
7662_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007663if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007664 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
7665else
cristy8b350f62009-11-15 23:12:43 +00007666 ax_check_cl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib:/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007668/* end confdefs.h. */
7669
7670# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7671# include <windows.h>
7672# endif
cristya03a0852009-10-13 02:02:39 +00007673# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007674# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007675# elif defined(HAVE_OPENCL_OPENCL_H)
7676# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007677# else
cristya03a0852009-10-13 02:02:39 +00007678# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007679# endif
7680int
7681main ()
7682{
cristyc7083c12009-10-14 03:16:55 +00007683clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007684 ;
7685 return 0;
7686}
7687_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007688if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007689 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00007690fi
cristy8b350f62009-11-15 23:12:43 +00007691rm -f core conftest.err conftest.$ac_objext \
7692 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007693fi
cristy8b350f62009-11-15 23:12:43 +00007694rm -f core conftest.err conftest.$ac_objext \
7695 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007696fi
cristy8b350f62009-11-15 23:12:43 +00007697rm -f core conftest.err conftest.$ac_objext \
7698 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007699done
7700
cristy8b350f62009-11-15 23:12:43 +00007701if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007702 LIBS='-framework OpenCL'
cristy8b350f62009-11-15 23:12:43 +00007703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007704/* end confdefs.h. */
7705
7706# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7707# include <windows.h>
7708# endif
cristya03a0852009-10-13 02:02:39 +00007709# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007710# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007711# elif defined(HAVE_OPENCL_OPENCL_H)
7712# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007713# else
cristya03a0852009-10-13 02:02:39 +00007714# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007715# endif
7716int
7717main ()
7718{
cristyc7083c12009-10-14 03:16:55 +00007719clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007720 ;
7721 return 0;
7722}
7723_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007724if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007725 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00007726fi
cristy8b350f62009-11-15 23:12:43 +00007727rm -f core conftest.err conftest.$ac_objext \
7728 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007729fi
7730
cristy736173a2009-09-20 21:18:22 +00007731LIBS=$ax_save_LIBS
7732CPPFLAGS=$ax_save_CPPFLAGS
7733fi
cristy8b350f62009-11-15 23:12:43 +00007734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00007735$as_echo "$ax_cv_check_cl_libcl" >&6; }
7736
cristy8b350f62009-11-15 23:12:43 +00007737if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007738 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
7739else
7740 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
7741fi
cristy736173a2009-09-20 21:18:22 +00007742ac_ext=c
7743ac_cpp='$CPP $CPPFLAGS'
7744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7746ac_compiler_gnu=$ac_cv_c_compiler_gnu
7747
7748
7749
7750
7751
cristyc7083c12009-10-14 03:16:55 +00007752CFLAGS="$CL_CFLAGS $CFLAGS"
7753LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00007754
cristy2e8b51d2009-10-17 18:26:15 +00007755
cristy3ed852e2009-09-05 21:47:34 +00007756########
7757#
7758# Check for large file support
7759#
7760########
7761# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00007762if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007763 enableval=$enable_largefile;
7764fi
7765
7766if test "$enable_largefile" != no; then
7767
cristy8b350f62009-11-15 23:12:43 +00007768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007769$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007770if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007771 $as_echo_n "(cached) " >&6
7772else
7773 ac_cv_sys_largefile_CC=no
7774 if test "$GCC" != yes; then
7775 ac_save_CC=$CC
7776 while :; do
7777 # IRIX 6.2 and later do not support large files by default,
7778 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00007779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007780/* end confdefs.h. */
7781#include <sys/types.h>
7782 /* Check that off_t can represent 2**63 - 1 correctly.
7783 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7784 since some C++ compilers masquerading as C compilers
7785 incorrectly reject 9223372036854775807. */
7786#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7787 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7788 && LARGE_OFF_T % 2147483647 == 1)
7789 ? 1 : -1];
7790int
7791main ()
7792{
7793
7794 ;
7795 return 0;
7796}
7797_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007798 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007799 break
cristy3ed852e2009-09-05 21:47:34 +00007800fi
cristy3ed852e2009-09-05 21:47:34 +00007801rm -f core conftest.err conftest.$ac_objext
7802 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00007803 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007804 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00007805fi
cristy3ed852e2009-09-05 21:47:34 +00007806rm -f core conftest.err conftest.$ac_objext
7807 break
7808 done
7809 CC=$ac_save_CC
7810 rm -f conftest.$ac_ext
7811 fi
7812fi
cristy8b350f62009-11-15 23:12:43 +00007813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007814$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7815 if test "$ac_cv_sys_largefile_CC" != no; then
7816 CC=$CC$ac_cv_sys_largefile_CC
7817 fi
7818
cristy8b350f62009-11-15 23:12:43 +00007819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007820$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007821if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007822 $as_echo_n "(cached) " >&6
7823else
7824 while :; do
cristy8b350f62009-11-15 23:12:43 +00007825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007826/* end confdefs.h. */
7827#include <sys/types.h>
7828 /* Check that off_t can represent 2**63 - 1 correctly.
7829 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7830 since some C++ compilers masquerading as C compilers
7831 incorrectly reject 9223372036854775807. */
7832#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7834 && LARGE_OFF_T % 2147483647 == 1)
7835 ? 1 : -1];
7836int
7837main ()
7838{
7839
7840 ;
7841 return 0;
7842}
7843_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007844if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007845 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00007846fi
cristy3ed852e2009-09-05 21:47:34 +00007847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007849/* end confdefs.h. */
7850#define _FILE_OFFSET_BITS 64
7851#include <sys/types.h>
7852 /* Check that off_t can represent 2**63 - 1 correctly.
7853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7854 since some C++ compilers masquerading as C compilers
7855 incorrectly reject 9223372036854775807. */
7856#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7858 && LARGE_OFF_T % 2147483647 == 1)
7859 ? 1 : -1];
7860int
7861main ()
7862{
7863
7864 ;
7865 return 0;
7866}
7867_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007868if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007869 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00007870fi
cristy3ed852e2009-09-05 21:47:34 +00007871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 ac_cv_sys_file_offset_bits=unknown
7873 break
7874done
7875fi
cristy8b350f62009-11-15 23:12:43 +00007876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00007877$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7878case $ac_cv_sys_file_offset_bits in #(
7879 no | unknown) ;;
7880 *)
7881cat >>confdefs.h <<_ACEOF
7882#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7883_ACEOF
7884;;
7885esac
7886rm -rf conftest*
7887 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00007888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007889$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007890if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007891 $as_echo_n "(cached) " >&6
7892else
7893 while :; do
cristy8b350f62009-11-15 23:12:43 +00007894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007895/* end confdefs.h. */
7896#include <sys/types.h>
7897 /* Check that off_t can represent 2**63 - 1 correctly.
7898 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7899 since some C++ compilers masquerading as C compilers
7900 incorrectly reject 9223372036854775807. */
7901#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7902 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7903 && LARGE_OFF_T % 2147483647 == 1)
7904 ? 1 : -1];
7905int
7906main ()
7907{
7908
7909 ;
7910 return 0;
7911}
7912_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007913if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007914 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00007915fi
cristy3ed852e2009-09-05 21:47:34 +00007916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007918/* end confdefs.h. */
7919#define _LARGE_FILES 1
7920#include <sys/types.h>
7921 /* Check that off_t can represent 2**63 - 1 correctly.
7922 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7923 since some C++ compilers masquerading as C compilers
7924 incorrectly reject 9223372036854775807. */
7925#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7926 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7927 && LARGE_OFF_T % 2147483647 == 1)
7928 ? 1 : -1];
7929int
7930main ()
7931{
7932
7933 ;
7934 return 0;
7935}
7936_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007937if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007938 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00007939fi
cristy3ed852e2009-09-05 21:47:34 +00007940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 ac_cv_sys_large_files=unknown
7942 break
7943done
7944fi
cristy8b350f62009-11-15 23:12:43 +00007945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007946$as_echo "$ac_cv_sys_large_files" >&6; }
7947case $ac_cv_sys_large_files in #(
7948 no | unknown) ;;
7949 *)
7950cat >>confdefs.h <<_ACEOF
7951#define _LARGE_FILES $ac_cv_sys_large_files
7952_ACEOF
7953;;
7954esac
7955rm -rf conftest*
7956 fi
7957fi
7958
cristy8b350f62009-11-15 23:12:43 +00007959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007960$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007961if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007962 $as_echo_n "(cached) " >&6
7963else
7964 while :; do
cristy8b350f62009-11-15 23:12:43 +00007965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007966/* end confdefs.h. */
7967#include <sys/types.h> /* for off_t */
7968 #include <stdio.h>
7969int
7970main ()
7971{
7972int (*fp) (FILE *, off_t, int) = fseeko;
7973 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7974 ;
7975 return 0;
7976}
7977_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007978if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007979 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00007980fi
cristy8b350f62009-11-15 23:12:43 +00007981rm -f core conftest.err conftest.$ac_objext \
7982 conftest$ac_exeext conftest.$ac_ext
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007984/* end confdefs.h. */
7985#define _LARGEFILE_SOURCE 1
7986#include <sys/types.h> /* for off_t */
7987 #include <stdio.h>
7988int
7989main ()
7990{
7991int (*fp) (FILE *, off_t, int) = fseeko;
7992 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7993 ;
7994 return 0;
7995}
7996_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007997if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007998 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00007999fi
cristy8b350f62009-11-15 23:12:43 +00008000rm -f core conftest.err conftest.$ac_objext \
8001 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008002 ac_cv_sys_largefile_source=unknown
8003 break
8004done
8005fi
cristy8b350f62009-11-15 23:12:43 +00008006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00008007$as_echo "$ac_cv_sys_largefile_source" >&6; }
8008case $ac_cv_sys_largefile_source in #(
8009 no | unknown) ;;
8010 *)
8011cat >>confdefs.h <<_ACEOF
8012#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8013_ACEOF
8014;;
8015esac
8016rm -rf conftest*
8017
8018# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8019# in glibc 2.1.3, but that breaks too many other things.
8020# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8021if test $ac_cv_sys_largefile_source != unknown; then
8022
cristy8b350f62009-11-15 23:12:43 +00008023$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008024
8025fi
8026
8027LFS_CPPFLAGS=''
8028if test "$enable_largefile" != no; then
8029 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8030 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8031 else
cristy8b350f62009-11-15 23:12:43 +00008032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00008033$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008034 if test "$cross_compiling" = yes; then :
8035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00008037as_fn_error "cannot run test program while cross compiling
8038See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00008039else
cristy8b350f62009-11-15 23:12:43 +00008040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008042#include <unistd.h>
8043 main () {
8044 exit(!(sizeof(off_t) == 8));
8045 }
8046_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008047if ac_fn_c_try_run "$LINENO"; then :
8048 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008049
cristy8b350f62009-11-15 23:12:43 +00008050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008051$as_echo "yes" >&6; }
8052else
cristy8b350f62009-11-15 23:12:43 +00008053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008054$as_echo "no" >&6; }
8055fi
cristy8b350f62009-11-15 23:12:43 +00008056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8057 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008058fi
8059
cristy3ed852e2009-09-05 21:47:34 +00008060 fi
8061 if test "$ac_cv_sys_large_files" != 'no'; then
8062 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8063 fi
8064 if test "$ac_cv_sys_largefile_source" != 'no'; then
8065 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8066 fi
8067fi
8068
8069
8070#
8071# Configure libtool & libltdl
8072#
8073# Configure libtool
8074enable_dlopen=yes
8075
8076
8077
8078case `pwd` in
8079 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00008080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00008081$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8082esac
8083
8084
8085
cristy18304f92009-11-22 15:48:26 +00008086macro_version='2.2.6b'
8087macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00008088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101ltmain="$ac_aux_dir/ltmain.sh"
8102
cristy8b350f62009-11-15 23:12:43 +00008103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00008104$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008105if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008106 $as_echo_n "(cached) " >&6
8107else
8108 if test -n "$NM"; then
8109 # Let the user override the test.
8110 lt_cv_path_NM="$NM"
8111else
8112 lt_nm_to_check="${ac_tool_prefix}nm"
8113 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8114 lt_nm_to_check="$lt_nm_to_check nm"
8115 fi
8116 for lt_tmp_nm in $lt_nm_to_check; do
8117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8118 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8119 IFS="$lt_save_ifs"
8120 test -z "$ac_dir" && ac_dir=.
8121 tmp_nm="$ac_dir/$lt_tmp_nm"
8122 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8123 # Check to see if the nm accepts a BSD-compat flag.
8124 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8125 # nm: unknown option "B" ignored
8126 # Tru64's nm complains that /dev/null is an invalid object file
8127 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8128 */dev/null* | *'Invalid file or object type'*)
8129 lt_cv_path_NM="$tmp_nm -B"
8130 break
8131 ;;
8132 *)
8133 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8134 */dev/null*)
8135 lt_cv_path_NM="$tmp_nm -p"
8136 break
8137 ;;
8138 *)
8139 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8140 continue # so that we can try to find one that supports BSD flags
8141 ;;
8142 esac
8143 ;;
8144 esac
8145 fi
8146 done
8147 IFS="$lt_save_ifs"
8148 done
8149 : ${lt_cv_path_NM=no}
8150fi
8151fi
cristy8b350f62009-11-15 23:12:43 +00008152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00008153$as_echo "$lt_cv_path_NM" >&6; }
8154if test "$lt_cv_path_NM" != "no"; then
8155 NM="$lt_cv_path_NM"
8156else
8157 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00008158 if test -n "$ac_tool_prefix"; then
8159 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008160 do
8161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8162set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008164$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008165if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008166 $as_echo_n "(cached) " >&6
8167else
8168 if test -n "$DUMPBIN"; then
8169 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8170else
8171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172for as_dir in $PATH
8173do
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008176 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8178 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008180 break 2
8181 fi
8182done
cristy8b350f62009-11-15 23:12:43 +00008183 done
cristy3ed852e2009-09-05 21:47:34 +00008184IFS=$as_save_IFS
8185
8186fi
8187fi
8188DUMPBIN=$ac_cv_prog_DUMPBIN
8189if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008191$as_echo "$DUMPBIN" >&6; }
8192else
cristy8b350f62009-11-15 23:12:43 +00008193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008194$as_echo "no" >&6; }
8195fi
8196
8197
8198 test -n "$DUMPBIN" && break
8199 done
8200fi
8201if test -z "$DUMPBIN"; then
8202 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00008203 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008204do
8205 # Extract the first word of "$ac_prog", so it can be a program name with args.
8206set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008208$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008209if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008210 $as_echo_n "(cached) " >&6
8211else
8212 if test -n "$ac_ct_DUMPBIN"; then
8213 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8214else
8215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216for as_dir in $PATH
8217do
8218 IFS=$as_save_IFS
8219 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008220 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8222 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008224 break 2
8225 fi
8226done
cristy8b350f62009-11-15 23:12:43 +00008227 done
cristy3ed852e2009-09-05 21:47:34 +00008228IFS=$as_save_IFS
8229
8230fi
8231fi
8232ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8233if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008235$as_echo "$ac_ct_DUMPBIN" >&6; }
8236else
cristy8b350f62009-11-15 23:12:43 +00008237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008238$as_echo "no" >&6; }
8239fi
8240
8241
8242 test -n "$ac_ct_DUMPBIN" && break
8243done
8244
8245 if test "x$ac_ct_DUMPBIN" = x; then
8246 DUMPBIN=":"
8247 else
8248 case $cross_compiling:$ac_tool_warned in
8249yes:)
cristy8b350f62009-11-15 23:12:43 +00008250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8252ac_tool_warned=yes ;;
8253esac
8254 DUMPBIN=$ac_ct_DUMPBIN
8255 fi
8256fi
8257
8258
8259 if test "$DUMPBIN" != ":"; then
8260 NM="$DUMPBIN"
8261 fi
8262fi
8263test -z "$NM" && NM=nm
8264
8265
8266
8267
8268
8269
cristy8b350f62009-11-15 23:12:43 +00008270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008271$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008272if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008273 $as_echo_n "(cached) " >&6
8274else
8275 lt_cv_nm_interface="BSD nm"
8276 echo "int some_variable = 0;" > conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +00008277 (eval echo "\"\$as_me:8277: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008278 (eval "$ac_compile" 2>conftest.err)
8279 cat conftest.err >&5
cristy18304f92009-11-22 15:48:26 +00008280 (eval echo "\"\$as_me:8280: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008281 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8282 cat conftest.err >&5
cristy18304f92009-11-22 15:48:26 +00008283 (eval echo "\"\$as_me:8283: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008284 cat conftest.out >&5
8285 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8286 lt_cv_nm_interface="MS dumpbin"
8287 fi
8288 rm -f conftest*
8289fi
cristy8b350f62009-11-15 23:12:43 +00008290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008291$as_echo "$lt_cv_nm_interface" >&6; }
8292
8293# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00008294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00008295$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008296if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008297 $as_echo_n "(cached) " >&6
8298else
8299 i=0
8300 teststring="ABCD"
8301
8302 case $build_os in
8303 msdosdjgpp*)
8304 # On DJGPP, this test can blow up pretty badly due to problems in libc
8305 # (any single argument exceeding 2000 bytes causes a buffer overrun
8306 # during glob expansion). Even if it were fixed, the result of this
8307 # check would be larger than it should be.
8308 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8309 ;;
8310
8311 gnu*)
8312 # Under GNU Hurd, this test is not required because there is
8313 # no limit to the length of command line arguments.
8314 # Libtool will interpret -1 as no limit whatsoever
8315 lt_cv_sys_max_cmd_len=-1;
8316 ;;
8317
8318 cygwin* | mingw* | cegcc*)
8319 # On Win9x/ME, this test blows up -- it succeeds, but takes
8320 # about 5 minutes as the teststring grows exponentially.
8321 # Worse, since 9x/ME are not pre-emptively multitasking,
8322 # you end up with a "frozen" computer, even though with patience
8323 # the test eventually succeeds (with a max line length of 256k).
8324 # Instead, let's just punt: use the minimum linelength reported by
8325 # all of the supported platforms: 8192 (on NT/2K/XP).
8326 lt_cv_sys_max_cmd_len=8192;
8327 ;;
8328
8329 amigaos*)
8330 # On AmigaOS with pdksh, this test takes hours, literally.
8331 # So we just punt and use a minimum line length of 8192.
8332 lt_cv_sys_max_cmd_len=8192;
8333 ;;
8334
8335 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8336 # This has been around since 386BSD, at least. Likely further.
8337 if test -x /sbin/sysctl; then
8338 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8339 elif test -x /usr/sbin/sysctl; then
8340 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8341 else
8342 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8343 fi
8344 # And add a safety zone
8345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8347 ;;
8348
8349 interix*)
8350 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8351 lt_cv_sys_max_cmd_len=196608
8352 ;;
8353
8354 osf*)
8355 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8356 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8357 # nice to cause kernel panics so lets avoid the loop below.
8358 # First set a reasonable default.
8359 lt_cv_sys_max_cmd_len=16384
8360 #
8361 if test -x /sbin/sysconfig; then
8362 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8363 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8364 esac
8365 fi
8366 ;;
8367 sco3.2v5*)
8368 lt_cv_sys_max_cmd_len=102400
8369 ;;
8370 sysv5* | sco5v6* | sysv4.2uw2*)
8371 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8372 if test -n "$kargmax"; then
8373 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8374 else
8375 lt_cv_sys_max_cmd_len=32768
8376 fi
8377 ;;
8378 *)
8379 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8380 if test -n "$lt_cv_sys_max_cmd_len"; then
8381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8383 else
8384 # Make teststring a little bigger before we do anything with it.
8385 # a 1K string should be a reasonable start.
8386 for i in 1 2 3 4 5 6 7 8 ; do
8387 teststring=$teststring$teststring
8388 done
8389 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8390 # If test is not a shell built-in, we'll probably end up computing a
8391 # maximum length that is only half of the actual maximum length, but
8392 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00008393 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8394 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00008395 test $i != 17 # 1/2 MB should be enough
8396 do
8397 i=`expr $i + 1`
8398 teststring=$teststring$teststring
8399 done
8400 # Only check the string length outside the loop.
8401 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8402 teststring=
8403 # Add a significant safety factor because C++ compilers can tack on
8404 # massive amounts of additional arguments before passing them to the
8405 # linker. It appears as though 1/2 is a usable value.
8406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8407 fi
8408 ;;
8409 esac
8410
8411fi
8412
8413if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00008414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00008415$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8416else
cristy8b350f62009-11-15 23:12:43 +00008417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00008418$as_echo "none" >&6; }
8419fi
8420max_cmd_len=$lt_cv_sys_max_cmd_len
8421
8422
8423
8424
8425
8426
8427: ${CP="cp -f"}
8428: ${MV="mv -f"}
8429: ${RM="rm -f"}
8430
cristy8b350f62009-11-15 23:12:43 +00008431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00008432$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8433# Try some XSI features
8434xsi_shell=no
8435( _lt_dummy="a/b/c"
8436 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8437 = c,a/b,, \
8438 && eval 'test $(( 1 + 1 )) -eq 2 \
8439 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8440 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00008441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00008442$as_echo "$xsi_shell" >&6; }
8443
8444
cristy8b350f62009-11-15 23:12:43 +00008445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00008446$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8447lt_shell_append=no
8448( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8449 >/dev/null 2>&1 \
8450 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00008451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00008452$as_echo "$lt_shell_append" >&6; }
8453
8454
8455if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8456 lt_unset=unset
8457else
8458 lt_unset=false
8459fi
8460
8461
8462
8463
8464
8465# test EBCDIC or ASCII
8466case `echo X|tr X '\101'` in
8467 A) # ASCII based system
8468 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8469 lt_SP2NL='tr \040 \012'
8470 lt_NL2SP='tr \015\012 \040\040'
8471 ;;
8472 *) # EBCDIC based system
8473 lt_SP2NL='tr \100 \n'
8474 lt_NL2SP='tr \r\n \100\100'
8475 ;;
8476esac
8477
8478
8479
8480
8481
8482
8483
8484
8485
cristy8b350f62009-11-15 23:12:43 +00008486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008487$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008488if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008489 $as_echo_n "(cached) " >&6
8490else
8491 lt_cv_ld_reload_flag='-r'
8492fi
cristy8b350f62009-11-15 23:12:43 +00008493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008494$as_echo "$lt_cv_ld_reload_flag" >&6; }
8495reload_flag=$lt_cv_ld_reload_flag
8496case $reload_flag in
8497"" | " "*) ;;
8498*) reload_flag=" $reload_flag" ;;
8499esac
8500reload_cmds='$LD$reload_flag -o $output$reload_objs'
8501case $host_os in
8502 darwin*)
8503 if test "$GCC" = yes; then
8504 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8505 else
8506 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8507 fi
8508 ;;
8509esac
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519if test -n "$ac_tool_prefix"; then
8520 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8521set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008523$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008524if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008525 $as_echo_n "(cached) " >&6
8526else
8527 if test -n "$OBJDUMP"; then
8528 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8529else
8530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531for as_dir in $PATH
8532do
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008535 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8537 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00008538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008539 break 2
8540 fi
8541done
cristy8b350f62009-11-15 23:12:43 +00008542 done
cristy3ed852e2009-09-05 21:47:34 +00008543IFS=$as_save_IFS
8544
8545fi
8546fi
8547OBJDUMP=$ac_cv_prog_OBJDUMP
8548if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008550$as_echo "$OBJDUMP" >&6; }
8551else
cristy8b350f62009-11-15 23:12:43 +00008552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008553$as_echo "no" >&6; }
8554fi
8555
8556
8557fi
8558if test -z "$ac_cv_prog_OBJDUMP"; then
8559 ac_ct_OBJDUMP=$OBJDUMP
8560 # Extract the first word of "objdump", so it can be a program name with args.
8561set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008563$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008564if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008565 $as_echo_n "(cached) " >&6
8566else
8567 if test -n "$ac_ct_OBJDUMP"; then
8568 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8569else
8570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571for as_dir in $PATH
8572do
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008575 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8577 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00008578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008579 break 2
8580 fi
8581done
cristy8b350f62009-11-15 23:12:43 +00008582 done
cristy3ed852e2009-09-05 21:47:34 +00008583IFS=$as_save_IFS
8584
8585fi
8586fi
8587ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8588if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008590$as_echo "$ac_ct_OBJDUMP" >&6; }
8591else
cristy8b350f62009-11-15 23:12:43 +00008592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008593$as_echo "no" >&6; }
8594fi
8595
8596 if test "x$ac_ct_OBJDUMP" = x; then
8597 OBJDUMP="false"
8598 else
8599 case $cross_compiling:$ac_tool_warned in
8600yes:)
cristy8b350f62009-11-15 23:12:43 +00008601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8603ac_tool_warned=yes ;;
8604esac
8605 OBJDUMP=$ac_ct_OBJDUMP
8606 fi
8607else
8608 OBJDUMP="$ac_cv_prog_OBJDUMP"
8609fi
8610
8611test -z "$OBJDUMP" && OBJDUMP=objdump
8612
8613
8614
8615
8616
8617
cristy8b350f62009-11-15 23:12:43 +00008618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00008619$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008620if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008621 $as_echo_n "(cached) " >&6
8622else
8623 lt_cv_file_magic_cmd='$MAGIC_CMD'
8624lt_cv_file_magic_test_file=
8625lt_cv_deplibs_check_method='unknown'
8626# Need to set the preceding variable on all platforms that support
8627# interlibrary dependencies.
8628# 'none' -- dependencies not supported.
8629# `unknown' -- same as none, but documents that we really don't know.
8630# 'pass_all' -- all dependencies passed with no checks.
8631# 'test_compile' -- check by making test program.
8632# 'file_magic [[regex]]' -- check by looking for files in library path
8633# which responds to the $file_magic_cmd with a given extended regex.
8634# If you have `file' or equivalent on your system and you're not sure
8635# whether `pass_all' will *always* work, you probably want this one.
8636
8637case $host_os in
8638aix[4-9]*)
8639 lt_cv_deplibs_check_method=pass_all
8640 ;;
8641
8642beos*)
8643 lt_cv_deplibs_check_method=pass_all
8644 ;;
8645
8646bsdi[45]*)
8647 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8648 lt_cv_file_magic_cmd='/usr/bin/file -L'
8649 lt_cv_file_magic_test_file=/shlib/libc.so
8650 ;;
8651
8652cygwin*)
8653 # func_win32_libid is a shell function defined in ltmain.sh
8654 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8655 lt_cv_file_magic_cmd='func_win32_libid'
8656 ;;
8657
8658mingw* | pw32*)
8659 # Base MSYS/MinGW do not provide the 'file' command needed by
8660 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8661 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +00008662 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00008663 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8664 lt_cv_file_magic_cmd='func_win32_libid'
8665 else
8666 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8667 lt_cv_file_magic_cmd='$OBJDUMP -f'
8668 fi
8669 ;;
8670
cristy18304f92009-11-22 15:48:26 +00008671cegcc)
cristy3ed852e2009-09-05 21:47:34 +00008672 # use the weaker test based on 'objdump'. See mingw*.
8673 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8674 lt_cv_file_magic_cmd='$OBJDUMP -f'
8675 ;;
8676
8677darwin* | rhapsody*)
8678 lt_cv_deplibs_check_method=pass_all
8679 ;;
8680
8681freebsd* | dragonfly*)
8682 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8683 case $host_cpu in
8684 i*86 )
8685 # Not sure whether the presence of OpenBSD here was a mistake.
8686 # Let's accept both of them until this is cleared up.
8687 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8688 lt_cv_file_magic_cmd=/usr/bin/file
8689 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8690 ;;
8691 esac
8692 else
8693 lt_cv_deplibs_check_method=pass_all
8694 fi
8695 ;;
8696
8697gnu*)
8698 lt_cv_deplibs_check_method=pass_all
8699 ;;
8700
8701hpux10.20* | hpux11*)
8702 lt_cv_file_magic_cmd=/usr/bin/file
8703 case $host_cpu in
8704 ia64*)
8705 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8706 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8707 ;;
8708 hppa*64*)
cristy18304f92009-11-22 15:48:26 +00008709 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]'
cristy3ed852e2009-09-05 21:47:34 +00008710 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8711 ;;
8712 *)
cristy18304f92009-11-22 15:48:26 +00008713 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
cristy3ed852e2009-09-05 21:47:34 +00008714 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8715 ;;
8716 esac
8717 ;;
8718
8719interix[3-9]*)
8720 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8722 ;;
8723
8724irix5* | irix6* | nonstopux*)
8725 case $LD in
8726 *-32|*"-32 ") libmagic=32-bit;;
8727 *-n32|*"-n32 ") libmagic=N32;;
8728 *-64|*"-64 ") libmagic=64-bit;;
8729 *) libmagic=never-match;;
8730 esac
8731 lt_cv_deplibs_check_method=pass_all
8732 ;;
8733
8734# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +00008735linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00008736 lt_cv_deplibs_check_method=pass_all
8737 ;;
8738
8739netbsd*)
8740 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8742 else
8743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8744 fi
8745 ;;
8746
8747newos6*)
8748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8749 lt_cv_file_magic_cmd=/usr/bin/file
8750 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8751 ;;
8752
8753*nto* | *qnx*)
8754 lt_cv_deplibs_check_method=pass_all
8755 ;;
8756
8757openbsd*)
8758 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8760 else
8761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8762 fi
8763 ;;
8764
8765osf3* | osf4* | osf5*)
8766 lt_cv_deplibs_check_method=pass_all
8767 ;;
8768
8769rdos*)
8770 lt_cv_deplibs_check_method=pass_all
8771 ;;
8772
8773solaris*)
8774 lt_cv_deplibs_check_method=pass_all
8775 ;;
8776
8777sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8778 lt_cv_deplibs_check_method=pass_all
8779 ;;
8780
8781sysv4 | sysv4.3*)
8782 case $host_vendor in
8783 motorola)
8784 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]'
8785 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8786 ;;
8787 ncr)
8788 lt_cv_deplibs_check_method=pass_all
8789 ;;
8790 sequent)
8791 lt_cv_file_magic_cmd='/bin/file'
8792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8793 ;;
8794 sni)
8795 lt_cv_file_magic_cmd='/bin/file'
8796 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8797 lt_cv_file_magic_test_file=/lib/libc.so
8798 ;;
8799 siemens)
8800 lt_cv_deplibs_check_method=pass_all
8801 ;;
8802 pc)
8803 lt_cv_deplibs_check_method=pass_all
8804 ;;
8805 esac
8806 ;;
8807
8808tpf*)
8809 lt_cv_deplibs_check_method=pass_all
8810 ;;
8811esac
8812
8813fi
cristy8b350f62009-11-15 23:12:43 +00008814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00008815$as_echo "$lt_cv_deplibs_check_method" >&6; }
8816file_magic_cmd=$lt_cv_file_magic_cmd
8817deplibs_check_method=$lt_cv_deplibs_check_method
8818test -z "$deplibs_check_method" && deplibs_check_method=unknown
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831if test -n "$ac_tool_prefix"; then
8832 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8833set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008835$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008836if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008837 $as_echo_n "(cached) " >&6
8838else
8839 if test -n "$AR"; then
8840 ac_cv_prog_AR="$AR" # Let the user override the test.
8841else
8842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843for as_dir in $PATH
8844do
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008847 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8849 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00008850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008851 break 2
8852 fi
8853done
cristy8b350f62009-11-15 23:12:43 +00008854 done
cristy3ed852e2009-09-05 21:47:34 +00008855IFS=$as_save_IFS
8856
8857fi
8858fi
8859AR=$ac_cv_prog_AR
8860if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00008861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008862$as_echo "$AR" >&6; }
8863else
cristy8b350f62009-11-15 23:12:43 +00008864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008865$as_echo "no" >&6; }
8866fi
8867
8868
8869fi
8870if test -z "$ac_cv_prog_AR"; then
8871 ac_ct_AR=$AR
8872 # Extract the first word of "ar", so it can be a program name with args.
8873set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008875$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008876if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008877 $as_echo_n "(cached) " >&6
8878else
8879 if test -n "$ac_ct_AR"; then
8880 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8881else
8882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883for as_dir in $PATH
8884do
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008887 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8889 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00008890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008891 break 2
8892 fi
8893done
cristy8b350f62009-11-15 23:12:43 +00008894 done
cristy3ed852e2009-09-05 21:47:34 +00008895IFS=$as_save_IFS
8896
8897fi
8898fi
8899ac_ct_AR=$ac_cv_prog_ac_ct_AR
8900if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00008901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008902$as_echo "$ac_ct_AR" >&6; }
8903else
cristy8b350f62009-11-15 23:12:43 +00008904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008905$as_echo "no" >&6; }
8906fi
8907
8908 if test "x$ac_ct_AR" = x; then
8909 AR="false"
8910 else
8911 case $cross_compiling:$ac_tool_warned in
8912yes:)
cristy8b350f62009-11-15 23:12:43 +00008913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8915ac_tool_warned=yes ;;
8916esac
8917 AR=$ac_ct_AR
8918 fi
8919else
8920 AR="$ac_cv_prog_AR"
8921fi
8922
8923test -z "$AR" && AR=ar
8924test -z "$AR_FLAGS" && AR_FLAGS=cru
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936if test -n "$ac_tool_prefix"; then
8937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8938set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008940$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008941if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008942 $as_echo_n "(cached) " >&6
8943else
8944 if test -n "$STRIP"; then
8945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8946else
8947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948for as_dir in $PATH
8949do
8950 IFS=$as_save_IFS
8951 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8954 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00008955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008956 break 2
8957 fi
8958done
cristy8b350f62009-11-15 23:12:43 +00008959 done
cristy3ed852e2009-09-05 21:47:34 +00008960IFS=$as_save_IFS
8961
8962fi
8963fi
8964STRIP=$ac_cv_prog_STRIP
8965if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00008966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008967$as_echo "$STRIP" >&6; }
8968else
cristy8b350f62009-11-15 23:12:43 +00008969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008970$as_echo "no" >&6; }
8971fi
8972
8973
8974fi
8975if test -z "$ac_cv_prog_STRIP"; then
8976 ac_ct_STRIP=$STRIP
8977 # Extract the first word of "strip", so it can be a program name with args.
8978set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008980$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008981if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008982 $as_echo_n "(cached) " >&6
8983else
8984 if test -n "$ac_ct_STRIP"; then
8985 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8986else
8987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988for as_dir in $PATH
8989do
8990 IFS=$as_save_IFS
8991 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8994 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00008995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008996 break 2
8997 fi
8998done
cristy8b350f62009-11-15 23:12:43 +00008999 done
cristy3ed852e2009-09-05 21:47:34 +00009000IFS=$as_save_IFS
9001
9002fi
9003fi
9004ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9005if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009007$as_echo "$ac_ct_STRIP" >&6; }
9008else
cristy8b350f62009-11-15 23:12:43 +00009009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009010$as_echo "no" >&6; }
9011fi
9012
9013 if test "x$ac_ct_STRIP" = x; then
9014 STRIP=":"
9015 else
9016 case $cross_compiling:$ac_tool_warned in
9017yes:)
cristy8b350f62009-11-15 23:12:43 +00009018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9020ac_tool_warned=yes ;;
9021esac
9022 STRIP=$ac_ct_STRIP
9023 fi
9024else
9025 STRIP="$ac_cv_prog_STRIP"
9026fi
9027
9028test -z "$STRIP" && STRIP=:
9029
9030
9031
9032
9033
9034
9035if test -n "$ac_tool_prefix"; then
9036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9037set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009039$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009040if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009041 $as_echo_n "(cached) " >&6
9042else
9043 if test -n "$RANLIB"; then
9044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9045else
9046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047for as_dir in $PATH
9048do
9049 IFS=$as_save_IFS
9050 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9053 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00009054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009055 break 2
9056 fi
9057done
cristy8b350f62009-11-15 23:12:43 +00009058 done
cristy3ed852e2009-09-05 21:47:34 +00009059IFS=$as_save_IFS
9060
9061fi
9062fi
9063RANLIB=$ac_cv_prog_RANLIB
9064if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009066$as_echo "$RANLIB" >&6; }
9067else
cristy8b350f62009-11-15 23:12:43 +00009068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009069$as_echo "no" >&6; }
9070fi
9071
9072
9073fi
9074if test -z "$ac_cv_prog_RANLIB"; then
9075 ac_ct_RANLIB=$RANLIB
9076 # Extract the first word of "ranlib", so it can be a program name with args.
9077set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009079$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009080if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009081 $as_echo_n "(cached) " >&6
9082else
9083 if test -n "$ac_ct_RANLIB"; then
9084 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9085else
9086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087for as_dir in $PATH
9088do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9093 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00009094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009095 break 2
9096 fi
9097done
cristy8b350f62009-11-15 23:12:43 +00009098 done
cristy3ed852e2009-09-05 21:47:34 +00009099IFS=$as_save_IFS
9100
9101fi
9102fi
9103ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9104if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009106$as_echo "$ac_ct_RANLIB" >&6; }
9107else
cristy8b350f62009-11-15 23:12:43 +00009108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009109$as_echo "no" >&6; }
9110fi
9111
9112 if test "x$ac_ct_RANLIB" = x; then
9113 RANLIB=":"
9114 else
9115 case $cross_compiling:$ac_tool_warned in
9116yes:)
cristy8b350f62009-11-15 23:12:43 +00009117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9119ac_tool_warned=yes ;;
9120esac
9121 RANLIB=$ac_ct_RANLIB
9122 fi
9123else
9124 RANLIB="$ac_cv_prog_RANLIB"
9125fi
9126
9127test -z "$RANLIB" && RANLIB=:
9128
9129
9130
9131
9132
9133
9134# Determine commands to create old-style static archives.
9135old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9136old_postinstall_cmds='chmod 644 $oldlib'
9137old_postuninstall_cmds=
9138
9139if test -n "$RANLIB"; then
9140 case $host_os in
9141 openbsd*)
9142 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9143 ;;
9144 *)
9145 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9146 ;;
9147 esac
9148 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9149fi
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184# If no C compiler was specified, use CC.
9185LTCC=${LTCC-"$CC"}
9186
9187# If no C compiler flags were specified, use CFLAGS.
9188LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9189
9190# Allow CC to be a program name with arguments.
9191compiler=$CC
9192
9193
9194# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +00009195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +00009196$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009197if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009198 $as_echo_n "(cached) " >&6
9199else
9200
9201# These are sane defaults that work on at least a few old systems.
9202# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9203
9204# Character class describing NM global symbol codes.
9205symcode='[BCDEGRST]'
9206
9207# Regexp to match symbols that can be accessed directly from C.
9208sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9209
9210# Define system-specific variables.
9211case $host_os in
9212aix*)
9213 symcode='[BCDT]'
9214 ;;
9215cygwin* | mingw* | pw32* | cegcc*)
9216 symcode='[ABCDGISTW]'
9217 ;;
9218hpux*)
9219 if test "$host_cpu" = ia64; then
9220 symcode='[ABCDEGRST]'
9221 fi
9222 ;;
9223irix* | nonstopux*)
9224 symcode='[BCDEGRST]'
9225 ;;
9226osf*)
9227 symcode='[BCDEGQRST]'
9228 ;;
9229solaris*)
9230 symcode='[BDRT]'
9231 ;;
9232sco3.2v5*)
9233 symcode='[DT]'
9234 ;;
9235sysv4.2uw2*)
9236 symcode='[DT]'
9237 ;;
9238sysv5* | sco5v6* | unixware* | OpenUNIX*)
9239 symcode='[ABDT]'
9240 ;;
9241sysv4)
9242 symcode='[DFNSTU]'
9243 ;;
9244esac
9245
9246# If we're using GNU nm, then use its standard symbol codes.
9247case `$NM -V 2>&1` in
9248*GNU* | *'with BFD'*)
9249 symcode='[ABCDGIRSTW]' ;;
9250esac
9251
9252# Transform an extracted symbol line into a proper C declaration.
9253# Some systems (esp. on ia64) link data and code symbols differently,
9254# so use this general approach.
9255lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9256
9257# Transform an extracted symbol line into symbol name and symbol address
9258lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9259lt_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'"
9260
9261# Handle CRLF in mingw tool chain
9262opt_cr=
9263case $build_os in
9264mingw*)
9265 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9266 ;;
9267esac
9268
9269# Try without a prefix underscore, then with it.
9270for ac_symprfx in "" "_"; do
9271
9272 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9273 symxfrm="\\1 $ac_symprfx\\2 \\2"
9274
9275 # Write the raw and C identifiers.
9276 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9277 # Fake it for dumpbin and say T for any non-static function
9278 # and D for any global variable.
9279 # Also find C++ and __fastcall symbols from MSVC++,
9280 # which start with @ or ?.
9281 lt_cv_sys_global_symbol_pipe="$AWK '"\
9282" {last_section=section; section=\$ 3};"\
9283" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9284" \$ 0!~/External *\|/{next};"\
9285" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9286" {if(hide[section]) next};"\
9287" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9288" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9289" s[1]~/^[@?]/{print s[1], s[1]; next};"\
9290" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9291" ' prfx=^$ac_symprfx"
9292 else
9293 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9294 fi
9295
9296 # Check to see that the pipe works correctly.
9297 pipe_works=no
9298
9299 rm -f conftest*
9300 cat > conftest.$ac_ext <<_LT_EOF
9301#ifdef __cplusplus
9302extern "C" {
9303#endif
9304char nm_test_var;
9305void nm_test_func(void);
9306void nm_test_func(void){}
9307#ifdef __cplusplus
9308}
9309#endif
9310int main(){nm_test_var='a';nm_test_func();return(0);}
9311_LT_EOF
9312
cristy8b350f62009-11-15 23:12:43 +00009313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009314 (eval $ac_compile) 2>&5
9315 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9317 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009318 # Now try to grab the symbols.
9319 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +00009320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9321 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +00009322 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9324 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +00009325 # Try sorting and uniquifying the output.
9326 if sort "$nlist" | uniq > "$nlist"T; then
9327 mv -f "$nlist"T "$nlist"
9328 else
9329 rm -f "$nlist"T
9330 fi
9331
9332 # Make sure that we snagged all the symbols we need.
9333 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9334 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9335 cat <<_LT_EOF > conftest.$ac_ext
9336#ifdef __cplusplus
9337extern "C" {
9338#endif
9339
9340_LT_EOF
9341 # Now generate the symbol file.
9342 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9343
9344 cat <<_LT_EOF >> conftest.$ac_ext
9345
9346/* The mapping between symbol names and symbols. */
9347const struct {
9348 const char *name;
9349 void *address;
9350}
9351lt__PROGRAM__LTX_preloaded_symbols[] =
9352{
9353 { "@PROGRAM@", (void *) 0 },
9354_LT_EOF
9355 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9356 cat <<\_LT_EOF >> conftest.$ac_ext
9357 {0, (void *) 0}
9358};
9359
9360/* This works around a problem in FreeBSD linker */
9361#ifdef FREEBSD_WORKAROUND
9362static const void *lt_preloaded_setup() {
9363 return lt__PROGRAM__LTX_preloaded_symbols;
9364}
9365#endif
9366
9367#ifdef __cplusplus
9368}
9369#endif
9370_LT_EOF
9371 # Now try linking the two files.
9372 mv conftest.$ac_objext conftstm.$ac_objext
9373 lt_save_LIBS="$LIBS"
9374 lt_save_CFLAGS="$CFLAGS"
9375 LIBS="conftstm.$ac_objext"
9376 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +00009377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009378 (eval $ac_link) 2>&5
9379 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9381 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +00009382 pipe_works=yes
9383 fi
9384 LIBS="$lt_save_LIBS"
9385 CFLAGS="$lt_save_CFLAGS"
9386 else
9387 echo "cannot find nm_test_func in $nlist" >&5
9388 fi
9389 else
9390 echo "cannot find nm_test_var in $nlist" >&5
9391 fi
9392 else
9393 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9394 fi
9395 else
9396 echo "$progname: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9398 fi
9399 rm -rf conftest* conftst*
9400
9401 # Do not use the global_symbol_pipe unless it works.
9402 if test "$pipe_works" = yes; then
9403 break
9404 else
9405 lt_cv_sys_global_symbol_pipe=
9406 fi
9407done
9408
9409fi
9410
9411if test -z "$lt_cv_sys_global_symbol_pipe"; then
9412 lt_cv_sys_global_symbol_to_cdecl=
9413fi
9414if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +00009415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +00009416$as_echo "failed" >&6; }
9417else
cristy8b350f62009-11-15 23:12:43 +00009418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00009419$as_echo "ok" >&6; }
9420fi
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +00009444if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009445 enableval=$enable_libtool_lock;
9446fi
9447
9448test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9449
9450# Some flags need to be propagated to the compiler or linker for good
9451# libtool support.
9452case $host in
9453ia64-*-hpux*)
9454 # Find out which ABI we are using.
9455 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009457 (eval $ac_compile) 2>&5
9458 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9460 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009461 case `/usr/bin/file conftest.$ac_objext` in
9462 *ELF-32*)
9463 HPUX_IA64_MODE="32"
9464 ;;
9465 *ELF-64*)
9466 HPUX_IA64_MODE="64"
9467 ;;
9468 esac
9469 fi
9470 rm -rf conftest*
9471 ;;
9472*-*-irix6*)
9473 # Find out which ABI we are using.
cristy18304f92009-11-22 15:48:26 +00009474 echo '#line 9474 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009476 (eval $ac_compile) 2>&5
9477 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9479 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009480 if test "$lt_cv_prog_gnu_ld" = yes; then
9481 case `/usr/bin/file conftest.$ac_objext` in
9482 *32-bit*)
9483 LD="${LD-ld} -melf32bsmip"
9484 ;;
9485 *N32*)
9486 LD="${LD-ld} -melf32bmipn32"
9487 ;;
9488 *64-bit*)
9489 LD="${LD-ld} -melf64bmip"
9490 ;;
9491 esac
9492 else
9493 case `/usr/bin/file conftest.$ac_objext` in
9494 *32-bit*)
9495 LD="${LD-ld} -32"
9496 ;;
9497 *N32*)
9498 LD="${LD-ld} -n32"
9499 ;;
9500 *64-bit*)
9501 LD="${LD-ld} -64"
9502 ;;
9503 esac
9504 fi
9505 fi
9506 rm -rf conftest*
9507 ;;
9508
9509x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9510s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9511 # Find out which ABI we are using.
9512 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009514 (eval $ac_compile) 2>&5
9515 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9517 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009518 case `/usr/bin/file conftest.o` in
9519 *32-bit*)
9520 case $host in
9521 x86_64-*kfreebsd*-gnu)
9522 LD="${LD-ld} -m elf_i386_fbsd"
9523 ;;
9524 x86_64-*linux*)
9525 LD="${LD-ld} -m elf_i386"
9526 ;;
9527 ppc64-*linux*|powerpc64-*linux*)
9528 LD="${LD-ld} -m elf32ppclinux"
9529 ;;
9530 s390x-*linux*)
9531 LD="${LD-ld} -m elf_s390"
9532 ;;
9533 sparc64-*linux*)
9534 LD="${LD-ld} -m elf32_sparc"
9535 ;;
9536 esac
9537 ;;
9538 *64-bit*)
9539 case $host in
9540 x86_64-*kfreebsd*-gnu)
9541 LD="${LD-ld} -m elf_x86_64_fbsd"
9542 ;;
9543 x86_64-*linux*)
9544 LD="${LD-ld} -m elf_x86_64"
9545 ;;
9546 ppc*-*linux*|powerpc*-*linux*)
9547 LD="${LD-ld} -m elf64ppc"
9548 ;;
9549 s390*-*linux*|s390*-*tpf*)
9550 LD="${LD-ld} -m elf64_s390"
9551 ;;
9552 sparc*-*linux*)
9553 LD="${LD-ld} -m elf64_sparc"
9554 ;;
9555 esac
9556 ;;
9557 esac
9558 fi
9559 rm -rf conftest*
9560 ;;
9561
9562*-*-sco3.2v5*)
9563 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9564 SAVE_CFLAGS="$CFLAGS"
9565 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +00009566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009567$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009568if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009569 $as_echo_n "(cached) " >&6
9570else
9571 ac_ext=c
9572ac_cpp='$CPP $CPPFLAGS'
9573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9575ac_compiler_gnu=$ac_cv_c_compiler_gnu
9576
cristy8b350f62009-11-15 23:12:43 +00009577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009578/* end confdefs.h. */
9579
9580int
9581main ()
9582{
9583
9584 ;
9585 return 0;
9586}
9587_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009588if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009589 lt_cv_cc_needs_belf=yes
9590else
cristy8b350f62009-11-15 23:12:43 +00009591 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +00009592fi
cristy8b350f62009-11-15 23:12:43 +00009593rm -f core conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009595 ac_ext=c
9596ac_cpp='$CPP $CPPFLAGS'
9597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9599ac_compiler_gnu=$ac_cv_c_compiler_gnu
9600
9601fi
cristy8b350f62009-11-15 23:12:43 +00009602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009603$as_echo "$lt_cv_cc_needs_belf" >&6; }
9604 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9605 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9606 CFLAGS="$SAVE_CFLAGS"
9607 fi
9608 ;;
9609sparc*-*solaris*)
9610 # Find out which ABI we are using.
9611 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009613 (eval $ac_compile) 2>&5
9614 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9616 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009617 case `/usr/bin/file conftest.o` in
9618 *64-bit*)
9619 case $lt_cv_prog_gnu_ld in
9620 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9621 *)
9622 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9623 LD="${LD-ld} -64"
9624 fi
9625 ;;
9626 esac
9627 ;;
9628 esac
9629 fi
9630 rm -rf conftest*
9631 ;;
9632esac
9633
9634need_locks="$enable_libtool_lock"
9635
9636
9637 case $host_os in
9638 rhapsody* | darwin*)
9639 if test -n "$ac_tool_prefix"; then
9640 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9641set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009643$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009644if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009645 $as_echo_n "(cached) " >&6
9646else
9647 if test -n "$DSYMUTIL"; then
9648 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9649else
9650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651for as_dir in $PATH
9652do
9653 IFS=$as_save_IFS
9654 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009655 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9657 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009659 break 2
9660 fi
9661done
cristy8b350f62009-11-15 23:12:43 +00009662 done
cristy3ed852e2009-09-05 21:47:34 +00009663IFS=$as_save_IFS
9664
9665fi
9666fi
9667DSYMUTIL=$ac_cv_prog_DSYMUTIL
9668if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009670$as_echo "$DSYMUTIL" >&6; }
9671else
cristy8b350f62009-11-15 23:12:43 +00009672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009673$as_echo "no" >&6; }
9674fi
9675
9676
9677fi
9678if test -z "$ac_cv_prog_DSYMUTIL"; then
9679 ac_ct_DSYMUTIL=$DSYMUTIL
9680 # Extract the first word of "dsymutil", so it can be a program name with args.
9681set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009683$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009684if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009685 $as_echo_n "(cached) " >&6
9686else
9687 if test -n "$ac_ct_DSYMUTIL"; then
9688 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9689else
9690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691for as_dir in $PATH
9692do
9693 IFS=$as_save_IFS
9694 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009695 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9697 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009699 break 2
9700 fi
9701done
cristy8b350f62009-11-15 23:12:43 +00009702 done
cristy3ed852e2009-09-05 21:47:34 +00009703IFS=$as_save_IFS
9704
9705fi
9706fi
9707ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9708if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009710$as_echo "$ac_ct_DSYMUTIL" >&6; }
9711else
cristy8b350f62009-11-15 23:12:43 +00009712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009713$as_echo "no" >&6; }
9714fi
9715
9716 if test "x$ac_ct_DSYMUTIL" = x; then
9717 DSYMUTIL=":"
9718 else
9719 case $cross_compiling:$ac_tool_warned in
9720yes:)
cristy8b350f62009-11-15 23:12:43 +00009721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9723ac_tool_warned=yes ;;
9724esac
9725 DSYMUTIL=$ac_ct_DSYMUTIL
9726 fi
9727else
9728 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9729fi
9730
9731 if test -n "$ac_tool_prefix"; then
9732 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9733set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009735$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009736if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009737 $as_echo_n "(cached) " >&6
9738else
9739 if test -n "$NMEDIT"; then
9740 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9741else
9742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743for as_dir in $PATH
9744do
9745 IFS=$as_save_IFS
9746 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009747 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9749 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +00009750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009751 break 2
9752 fi
9753done
cristy8b350f62009-11-15 23:12:43 +00009754 done
cristy3ed852e2009-09-05 21:47:34 +00009755IFS=$as_save_IFS
9756
9757fi
9758fi
9759NMEDIT=$ac_cv_prog_NMEDIT
9760if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009762$as_echo "$NMEDIT" >&6; }
9763else
cristy8b350f62009-11-15 23:12:43 +00009764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009765$as_echo "no" >&6; }
9766fi
9767
9768
9769fi
9770if test -z "$ac_cv_prog_NMEDIT"; then
9771 ac_ct_NMEDIT=$NMEDIT
9772 # Extract the first word of "nmedit", so it can be a program name with args.
9773set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009775$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009776if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009777 $as_echo_n "(cached) " >&6
9778else
9779 if test -n "$ac_ct_NMEDIT"; then
9780 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9781else
9782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783for as_dir in $PATH
9784do
9785 IFS=$as_save_IFS
9786 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009787 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9789 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +00009790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009791 break 2
9792 fi
9793done
cristy8b350f62009-11-15 23:12:43 +00009794 done
cristy3ed852e2009-09-05 21:47:34 +00009795IFS=$as_save_IFS
9796
9797fi
9798fi
9799ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9800if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009802$as_echo "$ac_ct_NMEDIT" >&6; }
9803else
cristy8b350f62009-11-15 23:12:43 +00009804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009805$as_echo "no" >&6; }
9806fi
9807
9808 if test "x$ac_ct_NMEDIT" = x; then
9809 NMEDIT=":"
9810 else
9811 case $cross_compiling:$ac_tool_warned in
9812yes:)
cristy8b350f62009-11-15 23:12:43 +00009813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9815ac_tool_warned=yes ;;
9816esac
9817 NMEDIT=$ac_ct_NMEDIT
9818 fi
9819else
9820 NMEDIT="$ac_cv_prog_NMEDIT"
9821fi
9822
9823 if test -n "$ac_tool_prefix"; then
9824 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9825set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009827$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009828if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009829 $as_echo_n "(cached) " >&6
9830else
9831 if test -n "$LIPO"; then
9832 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9833else
9834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835for as_dir in $PATH
9836do
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9841 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +00009842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009843 break 2
9844 fi
9845done
cristy8b350f62009-11-15 23:12:43 +00009846 done
cristy3ed852e2009-09-05 21:47:34 +00009847IFS=$as_save_IFS
9848
9849fi
9850fi
9851LIPO=$ac_cv_prog_LIPO
9852if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009854$as_echo "$LIPO" >&6; }
9855else
cristy8b350f62009-11-15 23:12:43 +00009856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009857$as_echo "no" >&6; }
9858fi
9859
9860
9861fi
9862if test -z "$ac_cv_prog_LIPO"; then
9863 ac_ct_LIPO=$LIPO
9864 # Extract the first word of "lipo", so it can be a program name with args.
9865set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009867$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009868if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009869 $as_echo_n "(cached) " >&6
9870else
9871 if test -n "$ac_ct_LIPO"; then
9872 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9873else
9874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875for as_dir in $PATH
9876do
9877 IFS=$as_save_IFS
9878 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009879 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9881 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +00009882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009883 break 2
9884 fi
9885done
cristy8b350f62009-11-15 23:12:43 +00009886 done
cristy3ed852e2009-09-05 21:47:34 +00009887IFS=$as_save_IFS
9888
9889fi
9890fi
9891ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9892if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009894$as_echo "$ac_ct_LIPO" >&6; }
9895else
cristy8b350f62009-11-15 23:12:43 +00009896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009897$as_echo "no" >&6; }
9898fi
9899
9900 if test "x$ac_ct_LIPO" = x; then
9901 LIPO=":"
9902 else
9903 case $cross_compiling:$ac_tool_warned in
9904yes:)
cristy8b350f62009-11-15 23:12:43 +00009905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9907ac_tool_warned=yes ;;
9908esac
9909 LIPO=$ac_ct_LIPO
9910 fi
9911else
9912 LIPO="$ac_cv_prog_LIPO"
9913fi
9914
9915 if test -n "$ac_tool_prefix"; then
9916 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9917set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009919$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009920if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009921 $as_echo_n "(cached) " >&6
9922else
9923 if test -n "$OTOOL"; then
9924 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9925else
9926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927for as_dir in $PATH
9928do
9929 IFS=$as_save_IFS
9930 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009931 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9933 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +00009934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009935 break 2
9936 fi
9937done
cristy8b350f62009-11-15 23:12:43 +00009938 done
cristy3ed852e2009-09-05 21:47:34 +00009939IFS=$as_save_IFS
9940
9941fi
9942fi
9943OTOOL=$ac_cv_prog_OTOOL
9944if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009946$as_echo "$OTOOL" >&6; }
9947else
cristy8b350f62009-11-15 23:12:43 +00009948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009949$as_echo "no" >&6; }
9950fi
9951
9952
9953fi
9954if test -z "$ac_cv_prog_OTOOL"; then
9955 ac_ct_OTOOL=$OTOOL
9956 # Extract the first word of "otool", so it can be a program name with args.
9957set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009959$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009960if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009961 $as_echo_n "(cached) " >&6
9962else
9963 if test -n "$ac_ct_OTOOL"; then
9964 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9965else
9966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967for as_dir in $PATH
9968do
9969 IFS=$as_save_IFS
9970 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009971 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9973 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +00009974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009975 break 2
9976 fi
9977done
cristy8b350f62009-11-15 23:12:43 +00009978 done
cristy3ed852e2009-09-05 21:47:34 +00009979IFS=$as_save_IFS
9980
9981fi
9982fi
9983ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9984if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009986$as_echo "$ac_ct_OTOOL" >&6; }
9987else
cristy8b350f62009-11-15 23:12:43 +00009988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009989$as_echo "no" >&6; }
9990fi
9991
9992 if test "x$ac_ct_OTOOL" = x; then
9993 OTOOL=":"
9994 else
9995 case $cross_compiling:$ac_tool_warned in
9996yes:)
cristy8b350f62009-11-15 23:12:43 +00009997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9999ac_tool_warned=yes ;;
10000esac
10001 OTOOL=$ac_ct_OTOOL
10002 fi
10003else
10004 OTOOL="$ac_cv_prog_OTOOL"
10005fi
10006
10007 if test -n "$ac_tool_prefix"; then
10008 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10009set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010011$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010012if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010013 $as_echo_n "(cached) " >&6
10014else
10015 if test -n "$OTOOL64"; then
10016 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10017else
10018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019for as_dir in $PATH
10020do
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010023 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10025 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000010026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010027 break 2
10028 fi
10029done
cristy8b350f62009-11-15 23:12:43 +000010030 done
cristy3ed852e2009-09-05 21:47:34 +000010031IFS=$as_save_IFS
10032
10033fi
10034fi
10035OTOOL64=$ac_cv_prog_OTOOL64
10036if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010038$as_echo "$OTOOL64" >&6; }
10039else
cristy8b350f62009-11-15 23:12:43 +000010040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010041$as_echo "no" >&6; }
10042fi
10043
10044
10045fi
10046if test -z "$ac_cv_prog_OTOOL64"; then
10047 ac_ct_OTOOL64=$OTOOL64
10048 # Extract the first word of "otool64", so it can be a program name with args.
10049set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010051$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010052if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010053 $as_echo_n "(cached) " >&6
10054else
10055 if test -n "$ac_ct_OTOOL64"; then
10056 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10057else
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010063 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10065 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000010066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010067 break 2
10068 fi
10069done
cristy8b350f62009-11-15 23:12:43 +000010070 done
cristy3ed852e2009-09-05 21:47:34 +000010071IFS=$as_save_IFS
10072
10073fi
10074fi
10075ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10076if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010078$as_echo "$ac_ct_OTOOL64" >&6; }
10079else
cristy8b350f62009-11-15 23:12:43 +000010080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010081$as_echo "no" >&6; }
10082fi
10083
10084 if test "x$ac_ct_OTOOL64" = x; then
10085 OTOOL64=":"
10086 else
10087 case $cross_compiling:$ac_tool_warned in
10088yes:)
cristy8b350f62009-11-15 23:12:43 +000010089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10091ac_tool_warned=yes ;;
10092esac
10093 OTOOL64=$ac_ct_OTOOL64
10094 fi
10095else
10096 OTOOL64="$ac_cv_prog_OTOOL64"
10097fi
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
cristy8b350f62009-11-15 23:12:43 +000010125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010126$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010127if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010128 $as_echo_n "(cached) " >&6
10129else
10130 lt_cv_apple_cc_single_mod=no
10131 if test -z "${LT_MULTI_MODULE}"; then
10132 # By default we will add the -single_module flag. You can override
10133 # by either setting the environment variable LT_MULTI_MODULE
10134 # non-empty at configure time, or by adding -multi_module to the
10135 # link flags.
10136 rm -rf libconftest.dylib*
10137 echo "int foo(void){return 1;}" > conftest.c
10138 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10139-dynamiclib -Wl,-single_module conftest.c" >&5
10140 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10141 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10142 _lt_result=$?
10143 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10144 lt_cv_apple_cc_single_mod=yes
10145 else
10146 cat conftest.err >&5
10147 fi
10148 rm -rf libconftest.dylib*
10149 rm -f conftest.*
10150 fi
10151fi
cristy8b350f62009-11-15 23:12:43 +000010152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000010153$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010155$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010156if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010157 $as_echo_n "(cached) " >&6
10158else
10159 lt_cv_ld_exported_symbols_list=no
10160 save_LDFLAGS=$LDFLAGS
10161 echo "_main" > conftest.sym
10162 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000010163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010164/* end confdefs.h. */
10165
10166int
10167main ()
10168{
10169
10170 ;
10171 return 0;
10172}
10173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010174if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010175 lt_cv_ld_exported_symbols_list=yes
10176else
cristy8b350f62009-11-15 23:12:43 +000010177 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000010178fi
cristy8b350f62009-11-15 23:12:43 +000010179rm -f core conftest.err conftest.$ac_objext \
10180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010181 LDFLAGS="$save_LDFLAGS"
10182
10183fi
cristy8b350f62009-11-15 23:12:43 +000010184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000010185$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10186 case $host_os in
10187 rhapsody* | darwin1.[012])
10188 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10189 darwin1.*)
10190 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10191 darwin*) # darwin 5.x on
10192 # if running on 10.5 or later, the deployment target defaults
10193 # to the OS version, if on x86, and 10.4, the deployment
10194 # target defaults to 10.4. Don't you love it?
10195 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10196 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10197 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10198 10.[012]*)
10199 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10200 10.*)
10201 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10202 esac
10203 ;;
10204 esac
10205 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10206 _lt_dar_single_mod='$single_module'
10207 fi
10208 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10209 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10210 else
10211 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10212 fi
cristy18304f92009-11-22 15:48:26 +000010213 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000010214 _lt_dsymutil='~$DSYMUTIL $lib || :'
10215 else
10216 _lt_dsymutil=
10217 fi
10218 ;;
10219 esac
10220
cristy3ed852e2009-09-05 21:47:34 +000010221for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000010222do :
10223 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10224"
10225if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010226 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010227#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000010228_ACEOF
10229
10230fi
10231
10232done
10233
10234
10235
cristy18304f92009-11-22 15:48:26 +000010236ac_ext=cpp
10237ac_cpp='$CXXCPP $CPPFLAGS'
10238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10241if test -z "$CXX"; then
10242 if test -n "$CCC"; then
10243 CXX=$CCC
10244 else
10245 if test -n "$ac_tool_prefix"; then
10246 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10247 do
10248 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10249set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251$as_echo_n "checking for $ac_word... " >&6; }
10252if test "${ac_cv_prog_CXX+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
10254else
10255 if test -n "$CXX"; then
10256 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10257else
10258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259for as_dir in $PATH
10260do
10261 IFS=$as_save_IFS
10262 test -z "$as_dir" && as_dir=.
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10265 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267 break 2
10268 fi
10269done
10270 done
10271IFS=$as_save_IFS
10272
10273fi
10274fi
10275CXX=$ac_cv_prog_CXX
10276if test -n "$CXX"; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10278$as_echo "$CXX" >&6; }
10279else
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281$as_echo "no" >&6; }
10282fi
10283
10284
10285 test -n "$CXX" && break
10286 done
10287fi
10288if test -z "$CXX"; then
10289 ac_ct_CXX=$CXX
10290 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10291do
10292 # Extract the first word of "$ac_prog", so it can be a program name with args.
10293set dummy $ac_prog; ac_word=$2
10294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295$as_echo_n "checking for $ac_word... " >&6; }
10296if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
10298else
10299 if test -n "$ac_ct_CXX"; then
10300 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10301else
10302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303for as_dir in $PATH
10304do
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10309 ac_cv_prog_ac_ct_CXX="$ac_prog"
10310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10311 break 2
10312 fi
10313done
10314 done
10315IFS=$as_save_IFS
10316
10317fi
10318fi
10319ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10320if test -n "$ac_ct_CXX"; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10322$as_echo "$ac_ct_CXX" >&6; }
10323else
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325$as_echo "no" >&6; }
10326fi
10327
10328
10329 test -n "$ac_ct_CXX" && break
10330done
10331
10332 if test "x$ac_ct_CXX" = x; then
10333 CXX="g++"
10334 else
10335 case $cross_compiling:$ac_tool_warned in
10336yes:)
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10339ac_tool_warned=yes ;;
10340esac
10341 CXX=$ac_ct_CXX
10342 fi
10343fi
10344
10345 fi
10346fi
10347# Provide some information about the compiler.
10348$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10349set X $ac_compile
10350ac_compiler=$2
10351for ac_option in --version -v -V -qversion; do
10352 { { ac_try="$ac_compiler $ac_option >&5"
10353case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10356esac
10357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10358$as_echo "$ac_try_echo"; } >&5
10359 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10360 ac_status=$?
10361 if test -s conftest.err; then
10362 sed '10a\
10363... rest of stderr output deleted ...
10364 10q' conftest.err >conftest.er1
10365 cat conftest.er1 >&5
10366 fi
10367 rm -f conftest.er1 conftest.err
10368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10369 test $ac_status = 0; }
10370done
10371
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10373$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10374if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10375 $as_echo_n "(cached) " >&6
10376else
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378/* end confdefs.h. */
10379
10380int
10381main ()
10382{
10383#ifndef __GNUC__
10384 choke me
10385#endif
10386
10387 ;
10388 return 0;
10389}
10390_ACEOF
10391if ac_fn_cxx_try_compile "$LINENO"; then :
10392 ac_compiler_gnu=yes
10393else
10394 ac_compiler_gnu=no
10395fi
10396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10398
10399fi
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10401$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10402if test $ac_compiler_gnu = yes; then
10403 GXX=yes
10404else
10405 GXX=
10406fi
10407ac_test_CXXFLAGS=${CXXFLAGS+set}
10408ac_save_CXXFLAGS=$CXXFLAGS
10409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10410$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10411if test "${ac_cv_prog_cxx_g+set}" = set; then :
10412 $as_echo_n "(cached) " >&6
10413else
10414 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10415 ac_cxx_werror_flag=yes
10416 ac_cv_prog_cxx_g=no
10417 CXXFLAGS="-g"
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419/* end confdefs.h. */
10420
10421int
10422main ()
10423{
10424
10425 ;
10426 return 0;
10427}
10428_ACEOF
10429if ac_fn_cxx_try_compile "$LINENO"; then :
10430 ac_cv_prog_cxx_g=yes
10431else
10432 CXXFLAGS=""
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434/* end confdefs.h. */
10435
10436int
10437main ()
10438{
10439
10440 ;
10441 return 0;
10442}
10443_ACEOF
10444if ac_fn_cxx_try_compile "$LINENO"; then :
10445
10446else
10447 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10448 CXXFLAGS="-g"
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450/* end confdefs.h. */
10451
10452int
10453main ()
10454{
10455
10456 ;
10457 return 0;
10458}
10459_ACEOF
10460if ac_fn_cxx_try_compile "$LINENO"; then :
10461 ac_cv_prog_cxx_g=yes
10462fi
10463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464fi
10465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10466fi
10467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10468 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10469fi
10470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10471$as_echo "$ac_cv_prog_cxx_g" >&6; }
10472if test "$ac_test_CXXFLAGS" = set; then
10473 CXXFLAGS=$ac_save_CXXFLAGS
10474elif test $ac_cv_prog_cxx_g = yes; then
10475 if test "$GXX" = yes; then
10476 CXXFLAGS="-g -O2"
10477 else
10478 CXXFLAGS="-g"
10479 fi
10480else
10481 if test "$GXX" = yes; then
10482 CXXFLAGS="-O2"
10483 else
10484 CXXFLAGS=
10485 fi
10486fi
10487ac_ext=c
10488ac_cpp='$CPP $CPPFLAGS'
10489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10491ac_compiler_gnu=$ac_cv_c_compiler_gnu
10492
10493depcc="$CXX" am_compiler_list=
10494
10495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10496$as_echo_n "checking dependency style of $depcc... " >&6; }
10497if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10499else
10500 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10501 # We make a subdir and do the tests there. Otherwise we can end up
10502 # making bogus files that we don't know about and never remove. For
10503 # instance it was reported that on HP-UX the gcc test will end up
10504 # making a dummy file named `D' -- because `-MD' means `put the output
10505 # in D'.
10506 mkdir conftest.dir
10507 # Copy depcomp to subdir because otherwise we won't find it if we're
10508 # using a relative directory.
10509 cp "$am_depcomp" conftest.dir
10510 cd conftest.dir
10511 # We will build objects and dependencies in a subdirectory because
10512 # it helps to detect inapplicable dependency modes. For instance
10513 # both Tru64's cc and ICC support -MD to output dependencies as a
10514 # side effect of compilation, but ICC will put the dependencies in
10515 # the current directory while Tru64 will put them in the object
10516 # directory.
10517 mkdir sub
10518
10519 am_cv_CXX_dependencies_compiler_type=none
10520 if test "$am_compiler_list" = ""; then
10521 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10522 fi
10523 am__universal=false
10524 case " $depcc " in #(
10525 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10526 esac
10527
10528 for depmode in $am_compiler_list; do
10529 # Setup a source with many dependencies, because some compilers
10530 # like to wrap large dependency lists on column 80 (with \), and
10531 # we should not choose a depcomp mode which is confused by this.
10532 #
10533 # We need to recreate these files for each test, as the compiler may
10534 # overwrite some of them when testing with obscure command lines.
10535 # This happens at least with the AIX C compiler.
10536 : > sub/conftest.c
10537 for i in 1 2 3 4 5 6; do
10538 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10539 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10540 # Solaris 8's {/usr,}/bin/sh.
10541 touch sub/conftst$i.h
10542 done
10543 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10544
10545 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10546 # mode. It turns out that the SunPro C++ compiler does not properly
10547 # handle `-M -o', and we need to detect this. Also, some Intel
10548 # versions had trouble with output in subdirs
10549 am__obj=sub/conftest.${OBJEXT-o}
10550 am__minus_obj="-o $am__obj"
10551 case $depmode in
10552 gcc)
10553 # This depmode causes a compiler race in universal mode.
10554 test "$am__universal" = false || continue
10555 ;;
10556 nosideeffect)
10557 # after this tag, mechanisms are not by side-effect, so they'll
10558 # only be used when explicitly requested
10559 if test "x$enable_dependency_tracking" = xyes; then
10560 continue
10561 else
10562 break
10563 fi
10564 ;;
10565 msvisualcpp | msvcmsys)
10566 # This compiler won't grok `-c -o', but also, the minuso test has
10567 # not run yet. These depmodes are late enough in the game, and
10568 # so weak that their functioning should not be impacted.
10569 am__obj=conftest.${OBJEXT-o}
10570 am__minus_obj=
10571 ;;
10572 none) break ;;
10573 esac
10574 if depmode=$depmode \
10575 source=sub/conftest.c object=$am__obj \
10576 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10577 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10578 >/dev/null 2>conftest.err &&
10579 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10580 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10581 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10582 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10583 # icc doesn't choke on unknown options, it will just issue warnings
10584 # or remarks (even with -Werror). So we grep stderr for any message
10585 # that says an option was ignored or not supported.
10586 # When given -MP, icc 7.0 and 7.1 complain thusly:
10587 # icc: Command line warning: ignoring option '-M'; no argument required
10588 # The diagnosis changed in icc 8.0:
10589 # icc: Command line remark: option '-MP' not supported
10590 if (grep 'ignoring option' conftest.err ||
10591 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10592 am_cv_CXX_dependencies_compiler_type=$depmode
10593 break
10594 fi
10595 fi
10596 done
10597
10598 cd ..
10599 rm -rf conftest.dir
10600else
10601 am_cv_CXX_dependencies_compiler_type=none
10602fi
10603
10604fi
10605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10606$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10607CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10608
10609 if
10610 test "x$enable_dependency_tracking" != xno \
10611 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10612 am__fastdepCXX_TRUE=
10613 am__fastdepCXX_FALSE='#'
10614else
10615 am__fastdepCXX_TRUE='#'
10616 am__fastdepCXX_FALSE=
10617fi
10618
10619
10620if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10621 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10622 (test "X$CXX" != "Xg++"))) ; then
10623 ac_ext=cpp
10624ac_cpp='$CXXCPP $CPPFLAGS'
10625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10629$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10630if test -z "$CXXCPP"; then
10631 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10632 $as_echo_n "(cached) " >&6
10633else
10634 # Double quotes because CXXCPP needs to be expanded
10635 for CXXCPP in "$CXX -E" "/lib/cpp"
10636 do
10637 ac_preproc_ok=false
10638for ac_cxx_preproc_warn_flag in '' yes
10639do
10640 # Use a header file that comes with gcc, so configuring glibc
10641 # with a fresh cross-compiler works.
10642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10643 # <limits.h> exists even on freestanding compilers.
10644 # On the NeXT, cc -E runs the code through the compiler's parser,
10645 # not just through cpp. "Syntax error" is here to catch this case.
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647/* end confdefs.h. */
10648#ifdef __STDC__
10649# include <limits.h>
10650#else
10651# include <assert.h>
10652#endif
10653 Syntax error
10654_ACEOF
10655if ac_fn_cxx_try_cpp "$LINENO"; then :
10656
10657else
10658 # Broken: fails on valid input.
10659continue
10660fi
10661rm -f conftest.err conftest.$ac_ext
10662
10663 # OK, works on sane cases. Now check whether nonexistent headers
10664 # can be detected and how.
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666/* end confdefs.h. */
10667#include <ac_nonexistent.h>
10668_ACEOF
10669if ac_fn_cxx_try_cpp "$LINENO"; then :
10670 # Broken: success on invalid input.
10671continue
10672else
10673 # Passes both tests.
10674ac_preproc_ok=:
10675break
10676fi
10677rm -f conftest.err conftest.$ac_ext
10678
10679done
10680# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10681rm -f conftest.err conftest.$ac_ext
10682if $ac_preproc_ok; then :
10683 break
10684fi
10685
10686 done
10687 ac_cv_prog_CXXCPP=$CXXCPP
10688
10689fi
10690 CXXCPP=$ac_cv_prog_CXXCPP
10691else
10692 ac_cv_prog_CXXCPP=$CXXCPP
10693fi
10694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10695$as_echo "$CXXCPP" >&6; }
10696ac_preproc_ok=false
10697for ac_cxx_preproc_warn_flag in '' yes
10698do
10699 # Use a header file that comes with gcc, so configuring glibc
10700 # with a fresh cross-compiler works.
10701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10702 # <limits.h> exists even on freestanding compilers.
10703 # On the NeXT, cc -E runs the code through the compiler's parser,
10704 # not just through cpp. "Syntax error" is here to catch this case.
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706/* end confdefs.h. */
10707#ifdef __STDC__
10708# include <limits.h>
10709#else
10710# include <assert.h>
10711#endif
10712 Syntax error
10713_ACEOF
10714if ac_fn_cxx_try_cpp "$LINENO"; then :
10715
10716else
10717 # Broken: fails on valid input.
10718continue
10719fi
10720rm -f conftest.err conftest.$ac_ext
10721
10722 # OK, works on sane cases. Now check whether nonexistent headers
10723 # can be detected and how.
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725/* end confdefs.h. */
10726#include <ac_nonexistent.h>
10727_ACEOF
10728if ac_fn_cxx_try_cpp "$LINENO"; then :
10729 # Broken: success on invalid input.
10730continue
10731else
10732 # Passes both tests.
10733ac_preproc_ok=:
10734break
10735fi
10736rm -f conftest.err conftest.$ac_ext
10737
10738done
10739# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10740rm -f conftest.err conftest.$ac_ext
10741if $ac_preproc_ok; then :
10742
10743else
10744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10746_lt_caught_CXX_error=yes; }
10747fi
10748
10749ac_ext=c
10750ac_cpp='$CPP $CPPFLAGS'
10751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10753ac_compiler_gnu=$ac_cv_c_compiler_gnu
10754
10755else
10756 _lt_caught_CXX_error=yes
10757fi
10758
10759
cristy3ed852e2009-09-05 21:47:34 +000010760
10761
10762
10763# Set options
10764enable_win32_dll=yes
10765
10766case $host in
cristy18304f92009-11-22 15:48:26 +000010767*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010768 if test -n "$ac_tool_prefix"; then
10769 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10770set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010772$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010773if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010774 $as_echo_n "(cached) " >&6
10775else
10776 if test -n "$AS"; then
10777 ac_cv_prog_AS="$AS" # Let the user override the test.
10778else
10779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780for as_dir in $PATH
10781do
10782 IFS=$as_save_IFS
10783 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010784 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10786 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000010787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010788 break 2
10789 fi
10790done
cristy8b350f62009-11-15 23:12:43 +000010791 done
cristy3ed852e2009-09-05 21:47:34 +000010792IFS=$as_save_IFS
10793
10794fi
10795fi
10796AS=$ac_cv_prog_AS
10797if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000010798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010799$as_echo "$AS" >&6; }
10800else
cristy8b350f62009-11-15 23:12:43 +000010801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010802$as_echo "no" >&6; }
10803fi
10804
10805
10806fi
10807if test -z "$ac_cv_prog_AS"; then
10808 ac_ct_AS=$AS
10809 # Extract the first word of "as", so it can be a program name with args.
10810set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010812$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010813if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010814 $as_echo_n "(cached) " >&6
10815else
10816 if test -n "$ac_ct_AS"; then
10817 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10818else
10819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820for as_dir in $PATH
10821do
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010824 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10826 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000010827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010828 break 2
10829 fi
10830done
cristy8b350f62009-11-15 23:12:43 +000010831 done
cristy3ed852e2009-09-05 21:47:34 +000010832IFS=$as_save_IFS
10833
10834fi
10835fi
10836ac_ct_AS=$ac_cv_prog_ac_ct_AS
10837if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000010838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010839$as_echo "$ac_ct_AS" >&6; }
10840else
cristy8b350f62009-11-15 23:12:43 +000010841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010842$as_echo "no" >&6; }
10843fi
10844
10845 if test "x$ac_ct_AS" = x; then
10846 AS="false"
10847 else
10848 case $cross_compiling:$ac_tool_warned in
10849yes:)
cristy8b350f62009-11-15 23:12:43 +000010850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10852ac_tool_warned=yes ;;
10853esac
10854 AS=$ac_ct_AS
10855 fi
10856else
10857 AS="$ac_cv_prog_AS"
10858fi
10859
10860 if test -n "$ac_tool_prefix"; then
10861 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10862set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010864$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010865if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010866 $as_echo_n "(cached) " >&6
10867else
10868 if test -n "$DLLTOOL"; then
10869 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10870else
10871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872for as_dir in $PATH
10873do
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010876 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10878 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000010879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010880 break 2
10881 fi
10882done
cristy8b350f62009-11-15 23:12:43 +000010883 done
cristy3ed852e2009-09-05 21:47:34 +000010884IFS=$as_save_IFS
10885
10886fi
10887fi
10888DLLTOOL=$ac_cv_prog_DLLTOOL
10889if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010891$as_echo "$DLLTOOL" >&6; }
10892else
cristy8b350f62009-11-15 23:12:43 +000010893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010894$as_echo "no" >&6; }
10895fi
10896
10897
10898fi
10899if test -z "$ac_cv_prog_DLLTOOL"; then
10900 ac_ct_DLLTOOL=$DLLTOOL
10901 # Extract the first word of "dlltool", so it can be a program name with args.
10902set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010904$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010905if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010906 $as_echo_n "(cached) " >&6
10907else
10908 if test -n "$ac_ct_DLLTOOL"; then
10909 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10910else
10911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912for as_dir in $PATH
10913do
10914 IFS=$as_save_IFS
10915 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010916 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10918 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000010919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010920 break 2
10921 fi
10922done
cristy8b350f62009-11-15 23:12:43 +000010923 done
cristy3ed852e2009-09-05 21:47:34 +000010924IFS=$as_save_IFS
10925
10926fi
10927fi
10928ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10929if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010931$as_echo "$ac_ct_DLLTOOL" >&6; }
10932else
cristy8b350f62009-11-15 23:12:43 +000010933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010934$as_echo "no" >&6; }
10935fi
10936
10937 if test "x$ac_ct_DLLTOOL" = x; then
10938 DLLTOOL="false"
10939 else
10940 case $cross_compiling:$ac_tool_warned in
10941yes:)
cristy8b350f62009-11-15 23:12:43 +000010942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10944ac_tool_warned=yes ;;
10945esac
10946 DLLTOOL=$ac_ct_DLLTOOL
10947 fi
10948else
10949 DLLTOOL="$ac_cv_prog_DLLTOOL"
10950fi
10951
10952 if test -n "$ac_tool_prefix"; then
10953 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10954set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010956$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010957if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010958 $as_echo_n "(cached) " >&6
10959else
10960 if test -n "$OBJDUMP"; then
10961 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10962else
10963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10964for as_dir in $PATH
10965do
10966 IFS=$as_save_IFS
10967 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10970 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000010971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010972 break 2
10973 fi
10974done
cristy8b350f62009-11-15 23:12:43 +000010975 done
cristy3ed852e2009-09-05 21:47:34 +000010976IFS=$as_save_IFS
10977
10978fi
10979fi
10980OBJDUMP=$ac_cv_prog_OBJDUMP
10981if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010983$as_echo "$OBJDUMP" >&6; }
10984else
cristy8b350f62009-11-15 23:12:43 +000010985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010986$as_echo "no" >&6; }
10987fi
10988
10989
10990fi
10991if test -z "$ac_cv_prog_OBJDUMP"; then
10992 ac_ct_OBJDUMP=$OBJDUMP
10993 # Extract the first word of "objdump", so it can be a program name with args.
10994set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010996$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010997if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010998 $as_echo_n "(cached) " >&6
10999else
11000 if test -n "$ac_ct_OBJDUMP"; then
11001 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11002else
11003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004for as_dir in $PATH
11005do
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011008 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11010 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011012 break 2
11013 fi
11014done
cristy8b350f62009-11-15 23:12:43 +000011015 done
cristy3ed852e2009-09-05 21:47:34 +000011016IFS=$as_save_IFS
11017
11018fi
11019fi
11020ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11021if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011023$as_echo "$ac_ct_OBJDUMP" >&6; }
11024else
cristy8b350f62009-11-15 23:12:43 +000011025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011026$as_echo "no" >&6; }
11027fi
11028
11029 if test "x$ac_ct_OBJDUMP" = x; then
11030 OBJDUMP="false"
11031 else
11032 case $cross_compiling:$ac_tool_warned in
11033yes:)
cristy8b350f62009-11-15 23:12:43 +000011034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11036ac_tool_warned=yes ;;
11037esac
11038 OBJDUMP=$ac_ct_OBJDUMP
11039 fi
11040else
11041 OBJDUMP="$ac_cv_prog_OBJDUMP"
11042fi
11043
11044 ;;
11045esac
11046
11047test -z "$AS" && AS=as
11048
11049
11050
11051
11052
11053test -z "$DLLTOOL" && DLLTOOL=dlltool
11054
11055
11056
11057
11058
11059test -z "$OBJDUMP" && OBJDUMP=objdump
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011070if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011071 enableval=$enable_shared; p=${PACKAGE-default}
11072 case $enableval in
11073 yes) enable_shared=yes ;;
11074 no) enable_shared=no ;;
11075 *)
11076 enable_shared=no
11077 # Look at the argument we got. We use all the common list separators.
11078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11079 for pkg in $enableval; do
11080 IFS="$lt_save_ifs"
11081 if test "X$pkg" = "X$p"; then
11082 enable_shared=yes
11083 fi
11084 done
11085 IFS="$lt_save_ifs"
11086 ;;
11087 esac
11088else
11089 enable_shared=yes
11090fi
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000011101if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011102 enableval=$enable_static; p=${PACKAGE-default}
11103 case $enableval in
11104 yes) enable_static=yes ;;
11105 no) enable_static=no ;;
11106 *)
11107 enable_static=no
11108 # Look at the argument we got. We use all the common list separators.
11109 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11110 for pkg in $enableval; do
11111 IFS="$lt_save_ifs"
11112 if test "X$pkg" = "X$p"; then
11113 enable_static=yes
11114 fi
11115 done
11116 IFS="$lt_save_ifs"
11117 ;;
11118 esac
11119else
11120 enable_static=yes
11121fi
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000011133if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011134 withval=$with_pic; pic_mode="$withval"
11135else
11136 pic_mode=default
11137fi
11138
11139
11140test -z "$pic_mode" && pic_mode=default
11141
11142
11143
11144
11145
11146
11147
11148 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000011149if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011150 enableval=$enable_fast_install; p=${PACKAGE-default}
11151 case $enableval in
11152 yes) enable_fast_install=yes ;;
11153 no) enable_fast_install=no ;;
11154 *)
11155 enable_fast_install=no
11156 # Look at the argument we got. We use all the common list separators.
11157 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11158 for pkg in $enableval; do
11159 IFS="$lt_save_ifs"
11160 if test "X$pkg" = "X$p"; then
11161 enable_fast_install=yes
11162 fi
11163 done
11164 IFS="$lt_save_ifs"
11165 ;;
11166 esac
11167else
11168 enable_fast_install=yes
11169fi
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181# This can be used to rebuild libtool when needed
11182LIBTOOL_DEPS="$ltmain"
11183
11184# Always use our own libtool.
11185LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211test -z "$LN_S" && LN_S="ln -s"
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226if test -n "${ZSH_VERSION+set}" ; then
11227 setopt NO_GLOB_SUBST
11228fi
11229
cristy8b350f62009-11-15 23:12:43 +000011230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011231$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011232if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011233 $as_echo_n "(cached) " >&6
11234else
11235 rm -f .libs 2>/dev/null
11236mkdir .libs 2>/dev/null
11237if test -d .libs; then
11238 lt_cv_objdir=.libs
11239else
11240 # MS-DOS does not allow filenames that begin with a dot.
11241 lt_cv_objdir=_libs
11242fi
11243rmdir .libs 2>/dev/null
11244fi
cristy8b350f62009-11-15 23:12:43 +000011245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011246$as_echo "$lt_cv_objdir" >&6; }
11247objdir=$lt_cv_objdir
11248
11249
11250
11251
11252
11253cat >>confdefs.h <<_ACEOF
11254#define LT_OBJDIR "$lt_cv_objdir/"
11255_ACEOF
11256
11257
11258
11259
cristy18304f92009-11-22 15:48:26 +000011260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
cristy3ed852e2009-09-05 21:47:34 +000011273case $host_os in
11274aix3*)
11275 # AIX sometimes has problems with the GCC collect2 program. For some
11276 # reason, if we set the COLLECT_NAMES environment variable, the problems
11277 # vanish in a puff of smoke.
11278 if test "X${COLLECT_NAMES+set}" != Xset; then
11279 COLLECT_NAMES=
11280 export COLLECT_NAMES
11281 fi
11282 ;;
11283esac
11284
cristy18304f92009-11-22 15:48:26 +000011285# Sed substitution that helps us do robust quoting. It backslashifies
11286# metacharacters that are still active within double-quoted strings.
11287sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11288
11289# Same as above, but do not quote variable references.
11290double_quote_subst='s/\(["`\\]\)/\\\1/g'
11291
11292# Sed substitution to delay expansion of an escaped shell variable in a
11293# double_quote_subst'ed string.
11294delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11295
11296# Sed substitution to delay expansion of an escaped single quote.
11297delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11298
11299# Sed substitution to avoid accidental globbing in evaled expressions
11300no_glob_subst='s/\*/\\\*/g'
11301
cristy3ed852e2009-09-05 21:47:34 +000011302# Global variables:
11303ofile=libtool
11304can_build_shared=yes
11305
11306# All known linkers require a `.a' archive for static linking (except MSVC,
11307# which needs '.lib').
11308libext=a
11309
11310with_gnu_ld="$lt_cv_prog_gnu_ld"
11311
11312old_CC="$CC"
11313old_CFLAGS="$CFLAGS"
11314
11315# Set sane defaults for various variables
11316test -z "$CC" && CC=cc
11317test -z "$LTCC" && LTCC=$CC
11318test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11319test -z "$LD" && LD=ld
11320test -z "$ac_objext" && ac_objext=o
11321
11322for cc_temp in $compiler""; do
11323 case $cc_temp in
11324 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11325 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11326 \-*) ;;
11327 *) break;;
11328 esac
11329done
cristy18304f92009-11-22 15:48:26 +000011330cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000011331
11332
11333# Only perform the check for file, if the check method requires it
11334test -z "$MAGIC_CMD" && MAGIC_CMD=file
11335case $deplibs_check_method in
11336file_magic*)
11337 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000011338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011339$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011340if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011341 $as_echo_n "(cached) " >&6
11342else
11343 case $MAGIC_CMD in
11344[\\/*] | ?:[\\/]*)
11345 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11346 ;;
11347*)
11348 lt_save_MAGIC_CMD="$MAGIC_CMD"
11349 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11350 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11351 for ac_dir in $ac_dummy; do
11352 IFS="$lt_save_ifs"
11353 test -z "$ac_dir" && ac_dir=.
11354 if test -f $ac_dir/${ac_tool_prefix}file; then
11355 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11356 if test -n "$file_magic_test_file"; then
11357 case $deplibs_check_method in
11358 "file_magic "*)
11359 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11361 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11362 $EGREP "$file_magic_regex" > /dev/null; then
11363 :
11364 else
11365 cat <<_LT_EOF 1>&2
11366
11367*** Warning: the command libtool uses to detect shared libraries,
11368*** $file_magic_cmd, produces output that libtool cannot recognize.
11369*** The result is that libtool may fail to recognize shared libraries
11370*** as such. This will affect the creation of libtool libraries that
11371*** depend on shared libraries, but programs linked with such libtool
11372*** libraries will work regardless of this problem. Nevertheless, you
11373*** may want to report the problem to your system manager and/or to
11374*** bug-libtool@gnu.org
11375
11376_LT_EOF
11377 fi ;;
11378 esac
11379 fi
11380 break
11381 fi
11382 done
11383 IFS="$lt_save_ifs"
11384 MAGIC_CMD="$lt_save_MAGIC_CMD"
11385 ;;
11386esac
11387fi
11388
11389MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11390if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011392$as_echo "$MAGIC_CMD" >&6; }
11393else
cristy8b350f62009-11-15 23:12:43 +000011394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011395$as_echo "no" >&6; }
11396fi
11397
11398
11399
11400
11401
11402if test -z "$lt_cv_path_MAGIC_CMD"; then
11403 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000011404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011405$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011406if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011407 $as_echo_n "(cached) " >&6
11408else
11409 case $MAGIC_CMD in
11410[\\/*] | ?:[\\/]*)
11411 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11412 ;;
11413*)
11414 lt_save_MAGIC_CMD="$MAGIC_CMD"
11415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11416 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11417 for ac_dir in $ac_dummy; do
11418 IFS="$lt_save_ifs"
11419 test -z "$ac_dir" && ac_dir=.
11420 if test -f $ac_dir/file; then
11421 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11422 if test -n "$file_magic_test_file"; then
11423 case $deplibs_check_method in
11424 "file_magic "*)
11425 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11427 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11428 $EGREP "$file_magic_regex" > /dev/null; then
11429 :
11430 else
11431 cat <<_LT_EOF 1>&2
11432
11433*** Warning: the command libtool uses to detect shared libraries,
11434*** $file_magic_cmd, produces output that libtool cannot recognize.
11435*** The result is that libtool may fail to recognize shared libraries
11436*** as such. This will affect the creation of libtool libraries that
11437*** depend on shared libraries, but programs linked with such libtool
11438*** libraries will work regardless of this problem. Nevertheless, you
11439*** may want to report the problem to your system manager and/or to
11440*** bug-libtool@gnu.org
11441
11442_LT_EOF
11443 fi ;;
11444 esac
11445 fi
11446 break
11447 fi
11448 done
11449 IFS="$lt_save_ifs"
11450 MAGIC_CMD="$lt_save_MAGIC_CMD"
11451 ;;
11452esac
11453fi
11454
11455MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11456if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011458$as_echo "$MAGIC_CMD" >&6; }
11459else
cristy8b350f62009-11-15 23:12:43 +000011460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011461$as_echo "no" >&6; }
11462fi
11463
11464
11465 else
11466 MAGIC_CMD=:
11467 fi
11468fi
11469
11470 fi
11471 ;;
11472esac
11473
11474# Use C for the default configuration in the libtool script
11475
11476lt_save_CC="$CC"
11477ac_ext=c
11478ac_cpp='$CPP $CPPFLAGS'
11479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11481ac_compiler_gnu=$ac_cv_c_compiler_gnu
11482
11483
11484# Source file extension for C test sources.
11485ac_ext=c
11486
11487# Object file extension for compiled C test sources.
11488objext=o
11489objext=$objext
11490
11491# Code to be used in simple compile tests
11492lt_simple_compile_test_code="int some_variable = 0;"
11493
11494# Code to be used in simple link tests
11495lt_simple_link_test_code='int main(){return(0);}'
11496
11497
11498
11499
11500
11501
11502
11503# If no C compiler was specified, use CC.
11504LTCC=${LTCC-"$CC"}
11505
11506# If no C compiler flags were specified, use CFLAGS.
11507LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11508
11509# Allow CC to be a program name with arguments.
11510compiler=$CC
11511
11512# Save the default compiler, since it gets overwritten when the other
11513# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11514compiler_DEFAULT=$CC
11515
11516# save warnings/boilerplate of simple test code
11517ac_outfile=conftest.$ac_objext
11518echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11519eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11520_lt_compiler_boilerplate=`cat conftest.err`
11521$RM conftest*
11522
11523ac_outfile=conftest.$ac_objext
11524echo "$lt_simple_link_test_code" >conftest.$ac_ext
11525eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11526_lt_linker_boilerplate=`cat conftest.err`
11527$RM -r conftest*
11528
11529
11530## CAVEAT EMPTOR:
11531## There is no encapsulation within the following macros, do not change
11532## the running order or otherwise move them around unless you know exactly
11533## what you are doing...
11534if test -n "$compiler"; then
11535
11536lt_prog_compiler_no_builtin_flag=
11537
11538if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000011539 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000011540
cristy8b350f62009-11-15 23:12:43 +000011541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011542$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011543if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011544 $as_echo_n "(cached) " >&6
11545else
11546 lt_cv_prog_compiler_rtti_exceptions=no
11547 ac_outfile=conftest.$ac_objext
11548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11549 lt_compiler_flag="-fno-rtti -fno-exceptions"
11550 # Insert the option either (1) after the last *FLAGS variable, or
11551 # (2) before a word containing "conftest.", or (3) at the end.
11552 # Note that $ac_compile itself does not contain backslashes and begins
11553 # with a dollar sign (not a hyphen), so the echo should work correctly.
11554 # The option is referenced via a variable to avoid confusing sed.
11555 lt_compile=`echo "$ac_compile" | $SED \
11556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11558 -e 's:$: $lt_compiler_flag:'`
cristy18304f92009-11-22 15:48:26 +000011559 (eval echo "\"\$as_me:11559: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011560 (eval "$lt_compile" 2>conftest.err)
11561 ac_status=$?
11562 cat conftest.err >&5
cristy18304f92009-11-22 15:48:26 +000011563 echo "$as_me:11563: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011564 if (exit $ac_status) && test -s "$ac_outfile"; then
11565 # The compiler can only warn and ignore the option if not recognized
11566 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000011567 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11569 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11570 lt_cv_prog_compiler_rtti_exceptions=yes
11571 fi
11572 fi
11573 $RM conftest*
11574
11575fi
cristy8b350f62009-11-15 23:12:43 +000011576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011577$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11578
11579if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11580 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11581else
11582 :
11583fi
11584
11585fi
11586
11587
11588
11589
11590
11591
11592 lt_prog_compiler_wl=
11593lt_prog_compiler_pic=
11594lt_prog_compiler_static=
11595
cristy8b350f62009-11-15 23:12:43 +000011596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011597$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11598
11599 if test "$GCC" = yes; then
11600 lt_prog_compiler_wl='-Wl,'
11601 lt_prog_compiler_static='-static'
11602
11603 case $host_os in
11604 aix*)
11605 # All AIX code is PIC.
11606 if test "$host_cpu" = ia64; then
11607 # AIX 5 now supports IA64 processor
11608 lt_prog_compiler_static='-Bstatic'
11609 fi
11610 ;;
11611
11612 amigaos*)
11613 case $host_cpu in
11614 powerpc)
11615 # see comment about AmigaOS4 .so support
11616 lt_prog_compiler_pic='-fPIC'
11617 ;;
11618 m68k)
11619 # FIXME: we need at least 68020 code to build shared libraries, but
11620 # adding the `-m68020' flag to GCC prevents building anything better,
11621 # like `-m68040'.
11622 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11623 ;;
11624 esac
11625 ;;
11626
11627 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11628 # PIC is the default for these OSes.
11629 ;;
11630
11631 mingw* | cygwin* | pw32* | os2* | cegcc*)
11632 # This hack is so that the source file can tell whether it is being
11633 # built for inclusion in a dll (and should export symbols for example).
11634 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11635 # (--disable-auto-import) libraries
11636 lt_prog_compiler_pic='-DDLL_EXPORT'
11637 ;;
11638
11639 darwin* | rhapsody*)
11640 # PIC is the default on this platform
11641 # Common symbols not allowed in MH_DYLIB files
11642 lt_prog_compiler_pic='-fno-common'
11643 ;;
11644
11645 hpux*)
11646 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11647 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11648 # sets the default TLS model and affects inlining.
11649 case $host_cpu in
11650 hppa*64*)
11651 # +Z the default
11652 ;;
11653 *)
11654 lt_prog_compiler_pic='-fPIC'
11655 ;;
11656 esac
11657 ;;
11658
11659 interix[3-9]*)
11660 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11661 # Instead, we relocate shared libraries at runtime.
11662 ;;
11663
11664 msdosdjgpp*)
11665 # Just because we use GCC doesn't mean we suddenly get shared libraries
11666 # on systems that don't support them.
11667 lt_prog_compiler_can_build_shared=no
11668 enable_shared=no
11669 ;;
11670
11671 *nto* | *qnx*)
11672 # QNX uses GNU C++, but need to define -shared option too, otherwise
11673 # it will coredump.
11674 lt_prog_compiler_pic='-fPIC -shared'
11675 ;;
11676
11677 sysv4*MP*)
11678 if test -d /usr/nec; then
11679 lt_prog_compiler_pic=-Kconform_pic
11680 fi
11681 ;;
11682
11683 *)
11684 lt_prog_compiler_pic='-fPIC'
11685 ;;
11686 esac
11687 else
11688 # PORTME Check for flag to pass linker flags through the system compiler.
11689 case $host_os in
11690 aix*)
11691 lt_prog_compiler_wl='-Wl,'
11692 if test "$host_cpu" = ia64; then
11693 # AIX 5 now supports IA64 processor
11694 lt_prog_compiler_static='-Bstatic'
11695 else
11696 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11697 fi
11698 ;;
11699
11700 mingw* | cygwin* | pw32* | os2* | cegcc*)
11701 # This hack is so that the source file can tell whether it is being
11702 # built for inclusion in a dll (and should export symbols for example).
11703 lt_prog_compiler_pic='-DDLL_EXPORT'
11704 ;;
11705
11706 hpux9* | hpux10* | hpux11*)
11707 lt_prog_compiler_wl='-Wl,'
11708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11709 # not for PA HP-UX.
11710 case $host_cpu in
11711 hppa*64*|ia64*)
11712 # +Z the default
11713 ;;
11714 *)
11715 lt_prog_compiler_pic='+Z'
11716 ;;
11717 esac
11718 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11719 lt_prog_compiler_static='${wl}-a ${wl}archive'
11720 ;;
11721
11722 irix5* | irix6* | nonstopux*)
11723 lt_prog_compiler_wl='-Wl,'
11724 # PIC (with -KPIC) is the default.
11725 lt_prog_compiler_static='-non_shared'
11726 ;;
11727
cristy18304f92009-11-22 15:48:26 +000011728 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000011729 case $cc_basename in
11730 # old Intel for x86_64 which still supported -KPIC.
11731 ecc*)
11732 lt_prog_compiler_wl='-Wl,'
11733 lt_prog_compiler_pic='-KPIC'
11734 lt_prog_compiler_static='-static'
11735 ;;
11736 # icc used to be incompatible with GCC.
11737 # ICC 10 doesn't accept -KPIC any more.
11738 icc* | ifort*)
11739 lt_prog_compiler_wl='-Wl,'
11740 lt_prog_compiler_pic='-fPIC'
11741 lt_prog_compiler_static='-static'
11742 ;;
11743 # Lahey Fortran 8.1.
11744 lf95*)
11745 lt_prog_compiler_wl='-Wl,'
11746 lt_prog_compiler_pic='--shared'
11747 lt_prog_compiler_static='--static'
11748 ;;
cristy18304f92009-11-22 15:48:26 +000011749 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000011750 # Portland Group compilers (*not* the Pentium gcc compiler,
11751 # which looks to be a dead project)
11752 lt_prog_compiler_wl='-Wl,'
11753 lt_prog_compiler_pic='-fpic'
11754 lt_prog_compiler_static='-Bstatic'
11755 ;;
11756 ccc*)
11757 lt_prog_compiler_wl='-Wl,'
11758 # All Alpha code is PIC.
11759 lt_prog_compiler_static='-non_shared'
11760 ;;
cristy18304f92009-11-22 15:48:26 +000011761 xl*)
11762 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000011763 lt_prog_compiler_wl='-Wl,'
11764 lt_prog_compiler_pic='-qpic'
11765 lt_prog_compiler_static='-qstaticlink'
11766 ;;
11767 *)
11768 case `$CC -V 2>&1 | sed 5q` in
11769 *Sun\ C*)
11770 # Sun C 5.9
11771 lt_prog_compiler_pic='-KPIC'
11772 lt_prog_compiler_static='-Bstatic'
11773 lt_prog_compiler_wl='-Wl,'
11774 ;;
cristy18304f92009-11-22 15:48:26 +000011775 *Sun\ F*)
11776 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11777 lt_prog_compiler_pic='-KPIC'
11778 lt_prog_compiler_static='-Bstatic'
11779 lt_prog_compiler_wl=''
11780 ;;
cristy3ed852e2009-09-05 21:47:34 +000011781 esac
11782 ;;
11783 esac
11784 ;;
11785
11786 newsos6)
11787 lt_prog_compiler_pic='-KPIC'
11788 lt_prog_compiler_static='-Bstatic'
11789 ;;
11790
11791 *nto* | *qnx*)
11792 # QNX uses GNU C++, but need to define -shared option too, otherwise
11793 # it will coredump.
11794 lt_prog_compiler_pic='-fPIC -shared'
11795 ;;
11796
11797 osf3* | osf4* | osf5*)
11798 lt_prog_compiler_wl='-Wl,'
11799 # All OSF/1 code is PIC.
11800 lt_prog_compiler_static='-non_shared'
11801 ;;
11802
11803 rdos*)
11804 lt_prog_compiler_static='-non_shared'
11805 ;;
11806
11807 solaris*)
11808 lt_prog_compiler_pic='-KPIC'
11809 lt_prog_compiler_static='-Bstatic'
11810 case $cc_basename in
11811 f77* | f90* | f95*)
11812 lt_prog_compiler_wl='-Qoption ld ';;
11813 *)
11814 lt_prog_compiler_wl='-Wl,';;
11815 esac
11816 ;;
11817
11818 sunos4*)
11819 lt_prog_compiler_wl='-Qoption ld '
11820 lt_prog_compiler_pic='-PIC'
11821 lt_prog_compiler_static='-Bstatic'
11822 ;;
11823
11824 sysv4 | sysv4.2uw2* | sysv4.3*)
11825 lt_prog_compiler_wl='-Wl,'
11826 lt_prog_compiler_pic='-KPIC'
11827 lt_prog_compiler_static='-Bstatic'
11828 ;;
11829
11830 sysv4*MP*)
11831 if test -d /usr/nec ;then
11832 lt_prog_compiler_pic='-Kconform_pic'
11833 lt_prog_compiler_static='-Bstatic'
11834 fi
11835 ;;
11836
11837 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11838 lt_prog_compiler_wl='-Wl,'
11839 lt_prog_compiler_pic='-KPIC'
11840 lt_prog_compiler_static='-Bstatic'
11841 ;;
11842
11843 unicos*)
11844 lt_prog_compiler_wl='-Wl,'
11845 lt_prog_compiler_can_build_shared=no
11846 ;;
11847
11848 uts4*)
11849 lt_prog_compiler_pic='-pic'
11850 lt_prog_compiler_static='-Bstatic'
11851 ;;
11852
11853 *)
11854 lt_prog_compiler_can_build_shared=no
11855 ;;
11856 esac
11857 fi
11858
11859case $host_os in
11860 # For platforms which do not support PIC, -DPIC is meaningless:
11861 *djgpp*)
11862 lt_prog_compiler_pic=
11863 ;;
11864 *)
11865 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11866 ;;
11867esac
cristy8b350f62009-11-15 23:12:43 +000011868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000011869$as_echo "$lt_prog_compiler_pic" >&6; }
11870
11871
11872
11873
11874
11875
11876#
11877# Check to make sure the PIC flag actually works.
11878#
11879if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000011880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011881$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011882if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011883 $as_echo_n "(cached) " >&6
11884else
11885 lt_cv_prog_compiler_pic_works=no
11886 ac_outfile=conftest.$ac_objext
11887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11888 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11889 # Insert the option either (1) after the last *FLAGS variable, or
11890 # (2) before a word containing "conftest.", or (3) at the end.
11891 # Note that $ac_compile itself does not contain backslashes and begins
11892 # with a dollar sign (not a hyphen), so the echo should work correctly.
11893 # The option is referenced via a variable to avoid confusing sed.
11894 lt_compile=`echo "$ac_compile" | $SED \
11895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11897 -e 's:$: $lt_compiler_flag:'`
cristy18304f92009-11-22 15:48:26 +000011898 (eval echo "\"\$as_me:11898: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011899 (eval "$lt_compile" 2>conftest.err)
11900 ac_status=$?
11901 cat conftest.err >&5
cristy18304f92009-11-22 15:48:26 +000011902 echo "$as_me:11902: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011903 if (exit $ac_status) && test -s "$ac_outfile"; then
11904 # The compiler can only warn and ignore the option if not recognized
11905 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000011906 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11908 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11909 lt_cv_prog_compiler_pic_works=yes
11910 fi
11911 fi
11912 $RM conftest*
11913
11914fi
cristy8b350f62009-11-15 23:12:43 +000011915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011916$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11917
11918if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11919 case $lt_prog_compiler_pic in
11920 "" | " "*) ;;
11921 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11922 esac
11923else
11924 lt_prog_compiler_pic=
11925 lt_prog_compiler_can_build_shared=no
11926fi
11927
11928fi
11929
11930
11931
11932
11933
11934
11935#
11936# Check to make sure the static flag actually works.
11937#
11938wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000011939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011940$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011941if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011942 $as_echo_n "(cached) " >&6
11943else
11944 lt_cv_prog_compiler_static_works=no
11945 save_LDFLAGS="$LDFLAGS"
11946 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11947 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11948 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11949 # The linker can only warn and ignore the option if not recognized
11950 # So say no if there are warnings
11951 if test -s conftest.err; then
11952 # Append any errors to the config.log.
11953 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000011954 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11956 if diff conftest.exp conftest.er2 >/dev/null; then
11957 lt_cv_prog_compiler_static_works=yes
11958 fi
11959 else
11960 lt_cv_prog_compiler_static_works=yes
11961 fi
11962 fi
11963 $RM -r conftest*
11964 LDFLAGS="$save_LDFLAGS"
11965
11966fi
cristy8b350f62009-11-15 23:12:43 +000011967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011968$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11969
11970if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11971 :
11972else
11973 lt_prog_compiler_static=
11974fi
11975
11976
11977
11978
11979
11980
11981
cristy8b350f62009-11-15 23:12:43 +000011982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011983$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011984if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011985 $as_echo_n "(cached) " >&6
11986else
11987 lt_cv_prog_compiler_c_o=no
11988 $RM -r conftest 2>/dev/null
11989 mkdir conftest
11990 cd conftest
11991 mkdir out
11992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11993
11994 lt_compiler_flag="-o out/conftest2.$ac_objext"
11995 # Insert the option either (1) after the last *FLAGS variable, or
11996 # (2) before a word containing "conftest.", or (3) at the end.
11997 # Note that $ac_compile itself does not contain backslashes and begins
11998 # with a dollar sign (not a hyphen), so the echo should work correctly.
11999 lt_compile=`echo "$ac_compile" | $SED \
12000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12002 -e 's:$: $lt_compiler_flag:'`
cristy18304f92009-11-22 15:48:26 +000012003 (eval echo "\"\$as_me:12003: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012004 (eval "$lt_compile" 2>out/conftest.err)
12005 ac_status=$?
12006 cat out/conftest.err >&5
cristy18304f92009-11-22 15:48:26 +000012007 echo "$as_me:12007: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12009 then
12010 # The compiler can only warn and ignore the option if not recognized
12011 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012012 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012013 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12014 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12015 lt_cv_prog_compiler_c_o=yes
12016 fi
12017 fi
12018 chmod u+w . 2>&5
12019 $RM conftest*
12020 # SGI C++ compiler will create directory out/ii_files/ for
12021 # template instantiation
12022 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12023 $RM out/* && rmdir out
12024 cd ..
12025 $RM -r conftest
12026 $RM conftest*
12027
12028fi
cristy8b350f62009-11-15 23:12:43 +000012029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012030$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12031
12032
12033
12034
12035
12036
cristy8b350f62009-11-15 23:12:43 +000012037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012038$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012039if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012040 $as_echo_n "(cached) " >&6
12041else
12042 lt_cv_prog_compiler_c_o=no
12043 $RM -r conftest 2>/dev/null
12044 mkdir conftest
12045 cd conftest
12046 mkdir out
12047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12048
12049 lt_compiler_flag="-o out/conftest2.$ac_objext"
12050 # Insert the option either (1) after the last *FLAGS variable, or
12051 # (2) before a word containing "conftest.", or (3) at the end.
12052 # Note that $ac_compile itself does not contain backslashes and begins
12053 # with a dollar sign (not a hyphen), so the echo should work correctly.
12054 lt_compile=`echo "$ac_compile" | $SED \
12055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12057 -e 's:$: $lt_compiler_flag:'`
cristy18304f92009-11-22 15:48:26 +000012058 (eval echo "\"\$as_me:12058: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012059 (eval "$lt_compile" 2>out/conftest.err)
12060 ac_status=$?
12061 cat out/conftest.err >&5
cristy18304f92009-11-22 15:48:26 +000012062 echo "$as_me:12062: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012063 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12064 then
12065 # The compiler can only warn and ignore the option if not recognized
12066 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012067 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012068 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12069 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12070 lt_cv_prog_compiler_c_o=yes
12071 fi
12072 fi
12073 chmod u+w . 2>&5
12074 $RM conftest*
12075 # SGI C++ compiler will create directory out/ii_files/ for
12076 # template instantiation
12077 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12078 $RM out/* && rmdir out
12079 cd ..
12080 $RM -r conftest
12081 $RM conftest*
12082
12083fi
cristy8b350f62009-11-15 23:12:43 +000012084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012085$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12086
12087
12088
12089
12090hard_links="nottested"
12091if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12092 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000012093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012094$as_echo_n "checking if we can lock with hard links... " >&6; }
12095 hard_links=yes
12096 $RM conftest*
12097 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12098 touch conftest.a
12099 ln conftest.a conftest.b 2>&5 || hard_links=no
12100 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000012101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012102$as_echo "$hard_links" >&6; }
12103 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000012104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cristy3ed852e2009-09-05 21:47:34 +000012105$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12106 need_locks=warn
12107 fi
12108else
12109 need_locks=no
12110fi
12111
12112
12113
12114
12115
12116
cristy8b350f62009-11-15 23:12:43 +000012117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000012118$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12119
12120 runpath_var=
12121 allow_undefined_flag=
12122 always_export_symbols=no
12123 archive_cmds=
12124 archive_expsym_cmds=
12125 compiler_needs_object=no
12126 enable_shared_with_static_runtimes=no
12127 export_dynamic_flag_spec=
12128 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12129 hardcode_automatic=no
12130 hardcode_direct=no
12131 hardcode_direct_absolute=no
12132 hardcode_libdir_flag_spec=
12133 hardcode_libdir_flag_spec_ld=
12134 hardcode_libdir_separator=
12135 hardcode_minus_L=no
12136 hardcode_shlibpath_var=unsupported
12137 inherit_rpath=no
12138 link_all_deplibs=unknown
12139 module_cmds=
12140 module_expsym_cmds=
12141 old_archive_from_new_cmds=
12142 old_archive_from_expsyms_cmds=
12143 thread_safe_flag_spec=
12144 whole_archive_flag_spec=
12145 # include_expsyms should be a list of space-separated symbols to be *always*
12146 # included in the symbol list
12147 include_expsyms=
12148 # exclude_expsyms can be an extended regexp of symbols to exclude
12149 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12150 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12151 # as well as any symbol that contains `d'.
12152 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12153 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12154 # platforms (ab)use it in PIC code, but their linkers get confused if
12155 # the symbol is explicitly referenced. Since portable code cannot
12156 # rely on this symbol name, it's probably fine to never include it in
12157 # preloaded symbol tables.
12158 # Exclude shared library initialization/finalization symbols.
12159 extract_expsyms_cmds=
12160
12161 case $host_os in
12162 cygwin* | mingw* | pw32* | cegcc*)
12163 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12164 # When not using gcc, we currently assume that we are using
12165 # Microsoft Visual C++.
12166 if test "$GCC" != yes; then
12167 with_gnu_ld=no
12168 fi
12169 ;;
12170 interix*)
12171 # we just hope/assume this is gcc and not c89 (= MSVC++)
12172 with_gnu_ld=yes
12173 ;;
12174 openbsd*)
12175 with_gnu_ld=no
12176 ;;
12177 esac
12178
12179 ld_shlibs=yes
12180 if test "$with_gnu_ld" = yes; then
12181 # If archive_cmds runs LD, not CC, wlarc should be empty
12182 wlarc='${wl}'
12183
12184 # Set some defaults for GNU ld with shared library support. These
12185 # are reset later if shared libraries are not supported. Putting them
12186 # here allows them to be overridden if necessary.
12187 runpath_var=LD_RUN_PATH
12188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12189 export_dynamic_flag_spec='${wl}--export-dynamic'
12190 # ancient GNU ld didn't support --whole-archive et. al.
12191 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12192 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12193 else
12194 whole_archive_flag_spec=
12195 fi
12196 supports_anon_versioning=no
12197 case `$LD -v 2>&1` in
12198 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12199 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12200 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12201 *\ 2.11.*) ;; # other 2.11 versions
12202 *) supports_anon_versioning=yes ;;
12203 esac
12204
12205 # See if GNU ld supports shared libraries.
12206 case $host_os in
12207 aix[3-9]*)
12208 # On AIX/PPC, the GNU linker is very broken
12209 if test "$host_cpu" != ia64; then
12210 ld_shlibs=no
12211 cat <<_LT_EOF 1>&2
12212
cristy18304f92009-11-22 15:48:26 +000012213*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000012214*** to be unable to reliably create shared libraries on AIX.
12215*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000012216*** really care for shared libraries, you may want to modify your PATH
12217*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000012218
12219_LT_EOF
12220 fi
12221 ;;
12222
12223 amigaos*)
12224 case $host_cpu in
12225 powerpc)
12226 # see comment about AmigaOS4 .so support
12227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12228 archive_expsym_cmds=''
12229 ;;
12230 m68k)
12231 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)'
12232 hardcode_libdir_flag_spec='-L$libdir'
12233 hardcode_minus_L=yes
12234 ;;
12235 esac
12236 ;;
12237
12238 beos*)
12239 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12240 allow_undefined_flag=unsupported
12241 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12242 # support --undefined. This deserves some investigation. FIXME
12243 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12244 else
12245 ld_shlibs=no
12246 fi
12247 ;;
12248
12249 cygwin* | mingw* | pw32* | cegcc*)
12250 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12251 # as there is no search path for DLLs.
12252 hardcode_libdir_flag_spec='-L$libdir'
12253 allow_undefined_flag=unsupported
12254 always_export_symbols=no
12255 enable_shared_with_static_runtimes=yes
12256 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12257
12258 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12260 # If the export-symbols file already is a .def file (1st line
12261 # is EXPORTS), use it as is; otherwise, prepend...
12262 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12263 cp $export_symbols $output_objdir/$soname.def;
12264 else
12265 echo EXPORTS > $output_objdir/$soname.def;
12266 cat $export_symbols >> $output_objdir/$soname.def;
12267 fi~
12268 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12269 else
12270 ld_shlibs=no
12271 fi
12272 ;;
12273
12274 interix[3-9]*)
12275 hardcode_direct=no
12276 hardcode_shlibpath_var=no
12277 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12278 export_dynamic_flag_spec='${wl}-E'
12279 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12280 # Instead, shared libraries are loaded at an image base (0x10000000 by
12281 # default) and relocated if they conflict, which is a slow very memory
12282 # consuming and fragmenting process. To avoid this, we pick a random,
12283 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12284 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12285 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12286 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'
12287 ;;
12288
cristy18304f92009-11-22 15:48:26 +000012289 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012290 tmp_diet=no
12291 if test "$host_os" = linux-dietlibc; then
12292 case $cc_basename in
12293 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12294 esac
12295 fi
12296 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12297 && test "$tmp_diet" = no
12298 then
12299 tmp_addflag=
12300 tmp_sharedflag='-shared'
12301 case $cc_basename,$host_cpu in
12302 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000012303 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'
cristy3ed852e2009-09-05 21:47:34 +000012304 tmp_addflag=' $pic_flag'
12305 ;;
cristy18304f92009-11-22 15:48:26 +000012306 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12307 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'
cristy3ed852e2009-09-05 21:47:34 +000012308 tmp_addflag=' $pic_flag -Mnomain' ;;
12309 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12310 tmp_addflag=' -i_dynamic' ;;
12311 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12312 tmp_addflag=' -i_dynamic -nofor_main' ;;
12313 ifc* | ifort*) # Intel Fortran compiler
12314 tmp_addflag=' -nofor_main' ;;
12315 lf95*) # Lahey Fortran 8.1
12316 whole_archive_flag_spec=
12317 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000012318 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000012319 tmp_sharedflag='-qmkshrobj'
12320 tmp_addflag= ;;
12321 esac
12322 case `$CC -V 2>&1 | sed 5q` in
12323 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000012324 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'
cristy3ed852e2009-09-05 21:47:34 +000012325 compiler_needs_object=yes
12326 tmp_sharedflag='-G' ;;
12327 *Sun\ F*) # Sun Fortran 8.3
12328 tmp_sharedflag='-G' ;;
12329 esac
12330 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12331
12332 if test "x$supports_anon_versioning" = xyes; then
12333 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12334 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12335 echo "local: *; };" >> $output_objdir/$libname.ver~
12336 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12337 fi
12338
12339 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000012340 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000012341 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12342 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12343 hardcode_libdir_flag_spec=
12344 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12345 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12346 if test "x$supports_anon_versioning" = xyes; then
12347 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12349 echo "local: *; };" >> $output_objdir/$libname.ver~
12350 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12351 fi
12352 ;;
12353 esac
12354 else
12355 ld_shlibs=no
12356 fi
12357 ;;
12358
12359 netbsd*)
12360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12361 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12362 wlarc=
12363 else
12364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12366 fi
12367 ;;
12368
12369 solaris*)
12370 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12371 ld_shlibs=no
12372 cat <<_LT_EOF 1>&2
12373
12374*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12375*** create shared libraries on Solaris systems. Therefore, libtool
12376*** is disabling shared libraries support. We urge you to upgrade GNU
12377*** binutils to release 2.9.1 or newer. Another option is to modify
12378*** your PATH or compiler configuration so that the native linker is
12379*** used, and then restart.
12380
12381_LT_EOF
12382 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12385 else
12386 ld_shlibs=no
12387 fi
12388 ;;
12389
12390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12391 case `$LD -v 2>&1` in
12392 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12393 ld_shlibs=no
12394 cat <<_LT_EOF 1>&2
12395
12396*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12397*** reliably create shared libraries on SCO systems. Therefore, libtool
12398*** is disabling shared libraries support. We urge you to upgrade GNU
12399*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12400*** your PATH or compiler configuration so that the native linker is
12401*** used, and then restart.
12402
12403_LT_EOF
12404 ;;
12405 *)
12406 # For security reasons, it is highly recommended that you always
12407 # use absolute paths for naming shared libraries, and exclude the
12408 # DT_RUNPATH tag from executables and libraries. But doing so
12409 # requires that you compile everything twice, which is a pain.
12410 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12413 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12414 else
12415 ld_shlibs=no
12416 fi
12417 ;;
12418 esac
12419 ;;
12420
12421 sunos4*)
12422 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12423 wlarc=
12424 hardcode_direct=yes
12425 hardcode_shlibpath_var=no
12426 ;;
12427
12428 *)
12429 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12431 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12432 else
12433 ld_shlibs=no
12434 fi
12435 ;;
12436 esac
12437
12438 if test "$ld_shlibs" = no; then
12439 runpath_var=
12440 hardcode_libdir_flag_spec=
12441 export_dynamic_flag_spec=
12442 whole_archive_flag_spec=
12443 fi
12444 else
12445 # PORTME fill in a description of your system's linker (not GNU ld)
12446 case $host_os in
12447 aix3*)
12448 allow_undefined_flag=unsupported
12449 always_export_symbols=yes
12450 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'
12451 # Note: this linker hardcodes the directories in LIBPATH if there
12452 # are no directories specified by -L.
12453 hardcode_minus_L=yes
12454 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12455 # Neither direct hardcoding nor static linking is supported with a
12456 # broken collect2.
12457 hardcode_direct=unsupported
12458 fi
12459 ;;
12460
12461 aix[4-9]*)
12462 if test "$host_cpu" = ia64; then
12463 # On IA64, the linker does run time linking by default, so we don't
12464 # have to do anything special.
12465 aix_use_runtimelinking=no
12466 exp_sym_flag='-Bexport'
12467 no_entry_flag=""
12468 else
12469 # If we're using GNU nm, then we don't want the "-C" option.
12470 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12471 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000012472 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'
cristy3ed852e2009-09-05 21:47:34 +000012473 else
12474 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'
12475 fi
12476 aix_use_runtimelinking=no
12477
12478 # Test if we are trying to use run time linking or normal
12479 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12480 # need to do runtime linking.
12481 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12482 for ld_flag in $LDFLAGS; do
12483 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12484 aix_use_runtimelinking=yes
12485 break
12486 fi
12487 done
12488 ;;
12489 esac
12490
12491 exp_sym_flag='-bexport'
12492 no_entry_flag='-bnoentry'
12493 fi
12494
12495 # When large executables or shared objects are built, AIX ld can
12496 # have problems creating the table of contents. If linking a library
12497 # or program results in "error TOC overflow" add -mminimal-toc to
12498 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12499 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12500
12501 archive_cmds=''
12502 hardcode_direct=yes
12503 hardcode_direct_absolute=yes
12504 hardcode_libdir_separator=':'
12505 link_all_deplibs=yes
12506 file_list_spec='${wl}-f,'
12507
12508 if test "$GCC" = yes; then
12509 case $host_os in aix4.[012]|aix4.[012].*)
12510 # We only want to do this on AIX 4.2 and lower, the check
12511 # below for broken collect2 doesn't work under 4.3+
12512 collect2name=`${CC} -print-prog-name=collect2`
12513 if test -f "$collect2name" &&
12514 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12515 then
12516 # We have reworked collect2
12517 :
12518 else
12519 # We have old collect2
12520 hardcode_direct=unsupported
12521 # It fails to find uninstalled libraries when the uninstalled
12522 # path is not listed in the libpath. Setting hardcode_minus_L
12523 # to unsupported forces relinking
12524 hardcode_minus_L=yes
12525 hardcode_libdir_flag_spec='-L$libdir'
12526 hardcode_libdir_separator=
12527 fi
12528 ;;
12529 esac
12530 shared_flag='-shared'
12531 if test "$aix_use_runtimelinking" = yes; then
12532 shared_flag="$shared_flag "'${wl}-G'
12533 fi
12534 else
12535 # not using gcc
12536 if test "$host_cpu" = ia64; then
12537 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12538 # chokes on -Wl,-G. The following line is correct:
12539 shared_flag='-G'
12540 else
12541 if test "$aix_use_runtimelinking" = yes; then
12542 shared_flag='${wl}-G'
12543 else
12544 shared_flag='${wl}-bM:SRE'
12545 fi
12546 fi
12547 fi
12548
12549 export_dynamic_flag_spec='${wl}-bexpall'
12550 # It seems that -bexpall does not export symbols beginning with
12551 # underscore (_), so it is better to generate a list of symbols to export.
12552 always_export_symbols=yes
12553 if test "$aix_use_runtimelinking" = yes; then
12554 # Warning - without using the other runtime loading flags (-brtl),
12555 # -berok will link without error, but may produce a broken library.
12556 allow_undefined_flag='-berok'
12557 # Determine the default libpath from the value encoded in an
12558 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012560/* end confdefs.h. */
12561
12562int
12563main ()
12564{
12565
12566 ;
12567 return 0;
12568}
12569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012570if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012571
12572lt_aix_libpath_sed='
12573 /Import File Strings/,/^$/ {
12574 /^0/ {
12575 s/^0 *\(.*\)$/\1/
12576 p
12577 }
12578 }'
12579aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12580# Check for a 64-bit object if we didn't find anything.
12581if test -z "$aix_libpath"; then
12582 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12583fi
cristy3ed852e2009-09-05 21:47:34 +000012584fi
cristy8b350f62009-11-15 23:12:43 +000012585rm -f core conftest.err conftest.$ac_objext \
12586 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012587if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12588
12589 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000012590 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"
cristy3ed852e2009-09-05 21:47:34 +000012591 else
12592 if test "$host_cpu" = ia64; then
12593 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12594 allow_undefined_flag="-z nodefs"
12595 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"
12596 else
12597 # Determine the default libpath from the value encoded in an
12598 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012600/* end confdefs.h. */
12601
12602int
12603main ()
12604{
12605
12606 ;
12607 return 0;
12608}
12609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012610if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012611
12612lt_aix_libpath_sed='
12613 /Import File Strings/,/^$/ {
12614 /^0/ {
12615 s/^0 *\(.*\)$/\1/
12616 p
12617 }
12618 }'
12619aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12620# Check for a 64-bit object if we didn't find anything.
12621if test -z "$aix_libpath"; then
12622 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12623fi
cristy3ed852e2009-09-05 21:47:34 +000012624fi
cristy8b350f62009-11-15 23:12:43 +000012625rm -f core conftest.err conftest.$ac_objext \
12626 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012627if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12628
12629 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12630 # Warning - without using the other run time loading flags,
12631 # -berok will link without error, but may produce a broken library.
12632 no_undefined_flag=' ${wl}-bernotok'
12633 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000012634 # Exported symbols can be pulled into shared objects from archives
12635 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000012636 archive_cmds_need_lc=yes
12637 # This is similar to how AIX traditionally builds its shared libraries.
12638 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'
12639 fi
12640 fi
12641 ;;
12642
12643 amigaos*)
12644 case $host_cpu in
12645 powerpc)
12646 # see comment about AmigaOS4 .so support
12647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12648 archive_expsym_cmds=''
12649 ;;
12650 m68k)
12651 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)'
12652 hardcode_libdir_flag_spec='-L$libdir'
12653 hardcode_minus_L=yes
12654 ;;
12655 esac
12656 ;;
12657
12658 bsdi[45]*)
12659 export_dynamic_flag_spec=-rdynamic
12660 ;;
12661
12662 cygwin* | mingw* | pw32* | cegcc*)
12663 # When not using gcc, we currently assume that we are using
12664 # Microsoft Visual C++.
12665 # hardcode_libdir_flag_spec is actually meaningless, as there is
12666 # no search path for DLLs.
12667 hardcode_libdir_flag_spec=' '
12668 allow_undefined_flag=unsupported
12669 # Tell ltmain to make .lib files, not .a files.
12670 libext=lib
12671 # Tell ltmain to make .dll files, not .so files.
12672 shrext_cmds=".dll"
12673 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000012674 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000012675 # The linker will automatically build a .lib file if we build a DLL.
12676 old_archive_from_new_cmds='true'
12677 # FIXME: Should let the user specify the lib program.
12678 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12679 fix_srcfile_path='`cygpath -w "$srcfile"`'
12680 enable_shared_with_static_runtimes=yes
12681 ;;
12682
12683 darwin* | rhapsody*)
12684
12685
12686 archive_cmds_need_lc=no
12687 hardcode_direct=no
12688 hardcode_automatic=yes
12689 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000012690 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000012691 link_all_deplibs=yes
12692 allow_undefined_flag="$_lt_dar_allow_undefined"
12693 case $cc_basename in
12694 ifort*) _lt_dar_can_shared=yes ;;
12695 *) _lt_dar_can_shared=$GCC ;;
12696 esac
12697 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000012698 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000012699 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12700 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12701 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}"
12702 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}"
12703
12704 else
12705 ld_shlibs=no
12706 fi
12707
12708 ;;
12709
12710 dgux*)
12711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12712 hardcode_libdir_flag_spec='-L$libdir'
12713 hardcode_shlibpath_var=no
12714 ;;
12715
12716 freebsd1*)
12717 ld_shlibs=no
12718 ;;
12719
12720 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12721 # support. Future versions do this automatically, but an explicit c++rt0.o
12722 # does not break anything, and helps significantly (at the cost of a little
12723 # extra space).
12724 freebsd2.2*)
12725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12726 hardcode_libdir_flag_spec='-R$libdir'
12727 hardcode_direct=yes
12728 hardcode_shlibpath_var=no
12729 ;;
12730
12731 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12732 freebsd2*)
12733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12734 hardcode_direct=yes
12735 hardcode_minus_L=yes
12736 hardcode_shlibpath_var=no
12737 ;;
12738
12739 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12740 freebsd* | dragonfly*)
12741 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12742 hardcode_libdir_flag_spec='-R$libdir'
12743 hardcode_direct=yes
12744 hardcode_shlibpath_var=no
12745 ;;
12746
12747 hpux9*)
12748 if test "$GCC" = yes; then
12749 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'
12750 else
12751 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'
12752 fi
12753 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12754 hardcode_libdir_separator=:
12755 hardcode_direct=yes
12756
12757 # hardcode_minus_L: Not really in the search PATH,
12758 # but as the default location of the library.
12759 hardcode_minus_L=yes
12760 export_dynamic_flag_spec='${wl}-E'
12761 ;;
12762
12763 hpux10*)
cristy18304f92009-11-22 15:48:26 +000012764 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012765 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12766 else
12767 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12768 fi
12769 if test "$with_gnu_ld" = no; then
12770 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12771 hardcode_libdir_flag_spec_ld='+b $libdir'
12772 hardcode_libdir_separator=:
12773 hardcode_direct=yes
12774 hardcode_direct_absolute=yes
12775 export_dynamic_flag_spec='${wl}-E'
12776 # hardcode_minus_L: Not really in the search PATH,
12777 # but as the default location of the library.
12778 hardcode_minus_L=yes
12779 fi
12780 ;;
12781
12782 hpux11*)
cristy18304f92009-11-22 15:48:26 +000012783 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012784 case $host_cpu in
12785 hppa*64*)
12786 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12787 ;;
12788 ia64*)
12789 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12790 ;;
12791 *)
12792 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12793 ;;
12794 esac
12795 else
12796 case $host_cpu in
12797 hppa*64*)
12798 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12799 ;;
12800 ia64*)
12801 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12802 ;;
12803 *)
cristy18304f92009-11-22 15:48:26 +000012804 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy3ed852e2009-09-05 21:47:34 +000012805 ;;
12806 esac
12807 fi
12808 if test "$with_gnu_ld" = no; then
12809 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12810 hardcode_libdir_separator=:
12811
12812 case $host_cpu in
12813 hppa*64*|ia64*)
12814 hardcode_direct=no
12815 hardcode_shlibpath_var=no
12816 ;;
12817 *)
12818 hardcode_direct=yes
12819 hardcode_direct_absolute=yes
12820 export_dynamic_flag_spec='${wl}-E'
12821
12822 # hardcode_minus_L: Not really in the search PATH,
12823 # but as the default location of the library.
12824 hardcode_minus_L=yes
12825 ;;
12826 esac
12827 fi
12828 ;;
12829
12830 irix5* | irix6* | nonstopux*)
12831 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012832 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'
cristy3ed852e2009-09-05 21:47:34 +000012833 # Try to use the -exported_symbol ld option, if it does not
12834 # work, assume that -exports_file does not work either and
12835 # implicitly export all symbols.
12836 save_LDFLAGS="$LDFLAGS"
12837 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000012838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000012840int foo(void) {}
12841_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012842if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000012843 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'
cristy3ed852e2009-09-05 21:47:34 +000012844
cristy3ed852e2009-09-05 21:47:34 +000012845fi
cristy8b350f62009-11-15 23:12:43 +000012846rm -f core conftest.err conftest.$ac_objext \
12847 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012848 LDFLAGS="$save_LDFLAGS"
12849 else
cristy18304f92009-11-22 15:48:26 +000012850 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'
12851 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'
cristy3ed852e2009-09-05 21:47:34 +000012852 fi
12853 archive_cmds_need_lc='no'
12854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12855 hardcode_libdir_separator=:
12856 inherit_rpath=yes
12857 link_all_deplibs=yes
12858 ;;
12859
12860 netbsd*)
12861 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12863 else
12864 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12865 fi
12866 hardcode_libdir_flag_spec='-R$libdir'
12867 hardcode_direct=yes
12868 hardcode_shlibpath_var=no
12869 ;;
12870
12871 newsos6)
12872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12873 hardcode_direct=yes
12874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12875 hardcode_libdir_separator=:
12876 hardcode_shlibpath_var=no
12877 ;;
12878
12879 *nto* | *qnx*)
12880 ;;
12881
12882 openbsd*)
12883 if test -f /usr/libexec/ld.so; then
12884 hardcode_direct=yes
12885 hardcode_shlibpath_var=no
12886 hardcode_direct_absolute=yes
12887 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12888 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12889 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12890 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12891 export_dynamic_flag_spec='${wl}-E'
12892 else
12893 case $host_os in
12894 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12896 hardcode_libdir_flag_spec='-R$libdir'
12897 ;;
12898 *)
12899 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12900 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12901 ;;
12902 esac
12903 fi
12904 else
12905 ld_shlibs=no
12906 fi
12907 ;;
12908
12909 os2*)
12910 hardcode_libdir_flag_spec='-L$libdir'
12911 hardcode_minus_L=yes
12912 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000012913 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
cristy3ed852e2009-09-05 21:47:34 +000012914 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12915 ;;
12916
12917 osf3*)
12918 if test "$GCC" = yes; then
12919 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000012920 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'
cristy3ed852e2009-09-05 21:47:34 +000012921 else
12922 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000012923 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'
cristy3ed852e2009-09-05 21:47:34 +000012924 fi
12925 archive_cmds_need_lc='no'
12926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12927 hardcode_libdir_separator=:
12928 ;;
12929
12930 osf4* | osf5*) # as osf3* with the addition of -msym flag
12931 if test "$GCC" = yes; then
12932 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000012933 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'
cristy3ed852e2009-09-05 21:47:34 +000012934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12935 else
12936 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000012937 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'
cristy3ed852e2009-09-05 21:47:34 +000012938 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~
cristy18304f92009-11-22 15:48:26 +000012939 $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'
cristy3ed852e2009-09-05 21:47:34 +000012940
12941 # Both c and cxx compiler support -rpath directly
12942 hardcode_libdir_flag_spec='-rpath $libdir'
12943 fi
12944 archive_cmds_need_lc='no'
12945 hardcode_libdir_separator=:
12946 ;;
12947
12948 solaris*)
12949 no_undefined_flag=' -z defs'
12950 if test "$GCC" = yes; then
12951 wlarc='${wl}'
12952 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12953 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12954 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12955 else
12956 case `$CC -V 2>&1` in
12957 *"Compilers 5.0"*)
12958 wlarc=''
12959 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12960 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12961 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12962 ;;
12963 *)
12964 wlarc='${wl}'
12965 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12966 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12967 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12968 ;;
12969 esac
12970 fi
12971 hardcode_libdir_flag_spec='-R$libdir'
12972 hardcode_shlibpath_var=no
12973 case $host_os in
12974 solaris2.[0-5] | solaris2.[0-5].*) ;;
12975 *)
12976 # The compiler driver will combine and reorder linker options,
12977 # but understands `-z linker_flag'. GCC discards it without `$wl',
12978 # but is careful enough not to reorder.
12979 # Supported since Solaris 2.6 (maybe 2.5.1?)
12980 if test "$GCC" = yes; then
12981 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12982 else
12983 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12984 fi
12985 ;;
12986 esac
12987 link_all_deplibs=yes
12988 ;;
12989
12990 sunos4*)
12991 if test "x$host_vendor" = xsequent; then
12992 # Use $CC to link under sequent, because it throws in some extra .o
12993 # files that make .init and .fini sections work.
12994 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12995 else
12996 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12997 fi
12998 hardcode_libdir_flag_spec='-L$libdir'
12999 hardcode_direct=yes
13000 hardcode_minus_L=yes
13001 hardcode_shlibpath_var=no
13002 ;;
13003
13004 sysv4)
13005 case $host_vendor in
13006 sni)
13007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13008 hardcode_direct=yes # is this really true???
13009 ;;
13010 siemens)
13011 ## LD is ld it makes a PLAMLIB
13012 ## CC just makes a GrossModule.
13013 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13014 reload_cmds='$CC -r -o $output$reload_objs'
13015 hardcode_direct=no
13016 ;;
13017 motorola)
13018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13019 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13020 ;;
13021 esac
13022 runpath_var='LD_RUN_PATH'
13023 hardcode_shlibpath_var=no
13024 ;;
13025
13026 sysv4.3*)
13027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13028 hardcode_shlibpath_var=no
13029 export_dynamic_flag_spec='-Bexport'
13030 ;;
13031
13032 sysv4*MP*)
13033 if test -d /usr/nec; then
13034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13035 hardcode_shlibpath_var=no
13036 runpath_var=LD_RUN_PATH
13037 hardcode_runpath_var=yes
13038 ld_shlibs=yes
13039 fi
13040 ;;
13041
13042 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13043 no_undefined_flag='${wl}-z,text'
13044 archive_cmds_need_lc=no
13045 hardcode_shlibpath_var=no
13046 runpath_var='LD_RUN_PATH'
13047
13048 if test "$GCC" = yes; then
13049 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13050 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13051 else
13052 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13053 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13054 fi
13055 ;;
13056
13057 sysv5* | sco3.2v5* | sco5v6*)
13058 # Note: We can NOT use -z defs as we might desire, because we do not
13059 # link with -lc, and that would cause any symbols used from libc to
13060 # always be unresolved, which means just about no library would
13061 # ever link correctly. If we're not using GNU ld we use -z text
13062 # though, which does catch some bad symbols but isn't as heavy-handed
13063 # as -z defs.
13064 no_undefined_flag='${wl}-z,text'
13065 allow_undefined_flag='${wl}-z,nodefs'
13066 archive_cmds_need_lc=no
13067 hardcode_shlibpath_var=no
13068 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13069 hardcode_libdir_separator=':'
13070 link_all_deplibs=yes
13071 export_dynamic_flag_spec='${wl}-Bexport'
13072 runpath_var='LD_RUN_PATH'
13073
13074 if test "$GCC" = yes; then
13075 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13076 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077 else
13078 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13079 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13080 fi
13081 ;;
13082
13083 uts4*)
13084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13085 hardcode_libdir_flag_spec='-L$libdir'
13086 hardcode_shlibpath_var=no
13087 ;;
13088
13089 *)
13090 ld_shlibs=no
13091 ;;
13092 esac
13093
13094 if test x$host_vendor = xsni; then
13095 case $host in
13096 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13097 export_dynamic_flag_spec='${wl}-Blargedynsym'
13098 ;;
13099 esac
13100 fi
13101 fi
13102
cristy8b350f62009-11-15 23:12:43 +000013103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000013104$as_echo "$ld_shlibs" >&6; }
13105test "$ld_shlibs" = no && can_build_shared=no
13106
13107with_gnu_ld=$with_gnu_ld
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123#
13124# Do we need to explicitly link libc?
13125#
13126case "x$archive_cmds_need_lc" in
13127x|xyes)
13128 # Assume -lc should be added
13129 archive_cmds_need_lc=yes
13130
13131 if test "$enable_shared" = yes && test "$GCC" = yes; then
13132 case $archive_cmds in
13133 *'~'*)
13134 # FIXME: we may have to deal with multi-command sequences.
13135 ;;
13136 '$CC '*)
13137 # Test whether the compiler implicitly links with -lc since on some
13138 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13139 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000013140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000013141$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000013142 $RM conftest*
13143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013144
cristy18304f92009-11-22 15:48:26 +000013145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000013146 (eval $ac_compile) 2>&5
13147 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13149 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000013150 soname=conftest
13151 lib=conftest
13152 libobjs=conftest.$ac_objext
13153 deplibs=
13154 wl=$lt_prog_compiler_wl
13155 pic_flag=$lt_prog_compiler_pic
13156 compiler_flags=-v
13157 linker_flags=-v
13158 verstring=
13159 output_objdir=.
13160 libname=conftest
13161 lt_save_allow_undefined_flag=$allow_undefined_flag
13162 allow_undefined_flag=
13163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000013164 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13165 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13167 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000013168 then
13169 archive_cmds_need_lc=no
13170 else
13171 archive_cmds_need_lc=yes
13172 fi
13173 allow_undefined_flag=$lt_save_allow_undefined_flag
13174 else
13175 cat conftest.err 1>&5
13176 fi
13177 $RM conftest*
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13179$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000013180 ;;
13181 esac
13182 fi
13183 ;;
13184esac
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
cristy8b350f62009-11-15 23:12:43 +000013342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000013343$as_echo_n "checking dynamic linker characteristics... " >&6; }
13344
13345if test "$GCC" = yes; then
13346 case $host_os in
13347 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13348 *) lt_awk_arg="/^libraries:/" ;;
13349 esac
cristy18304f92009-11-22 15:48:26 +000013350 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13351 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000013352 # if the path contains ";" then we assume it to be the separator
13353 # otherwise default to the standard path separator (i.e. ":") - it is
13354 # assumed that no part of a normal pathname contains ";" but that should
13355 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000013356 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13357 else
13358 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13359 fi
cristy3ed852e2009-09-05 21:47:34 +000013360 # Ok, now we have the path, separated by spaces, we can step through it
13361 # and add multilib dir if necessary.
13362 lt_tmp_lt_search_path_spec=
13363 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13364 for lt_sys_path in $lt_search_path_spec; do
13365 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13366 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13367 else
13368 test -d "$lt_sys_path" && \
13369 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13370 fi
13371 done
cristy18304f92009-11-22 15:48:26 +000013372 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000013373BEGIN {RS=" "; FS="/|\n";} {
13374 lt_foo="";
13375 lt_count=0;
13376 for (lt_i = NF; lt_i > 0; lt_i--) {
13377 if ($lt_i != "" && $lt_i != ".") {
13378 if ($lt_i == "..") {
13379 lt_count++;
13380 } else {
13381 if (lt_count == 0) {
13382 lt_foo="/" $lt_i lt_foo;
13383 } else {
13384 lt_count--;
13385 }
13386 }
13387 }
13388 }
13389 if (lt_foo != "") { lt_freq[lt_foo]++; }
13390 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13391}'`
cristy18304f92009-11-22 15:48:26 +000013392 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000013393else
13394 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13395fi
13396library_names_spec=
13397libname_spec='lib$name'
13398soname_spec=
13399shrext_cmds=".so"
13400postinstall_cmds=
13401postuninstall_cmds=
13402finish_cmds=
13403finish_eval=
13404shlibpath_var=
13405shlibpath_overrides_runpath=unknown
13406version_type=none
13407dynamic_linker="$host_os ld.so"
13408sys_lib_dlsearch_path_spec="/lib /usr/lib"
13409need_lib_prefix=unknown
13410hardcode_into_libs=no
13411
13412# when you set need_version to no, make sure it does not cause -set_version
13413# flags to be left without arguments
13414need_version=unknown
13415
13416case $host_os in
13417aix3*)
13418 version_type=linux
13419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13420 shlibpath_var=LIBPATH
13421
13422 # AIX 3 has no versioning support, so we append a major version to the name.
13423 soname_spec='${libname}${release}${shared_ext}$major'
13424 ;;
13425
13426aix[4-9]*)
13427 version_type=linux
13428 need_lib_prefix=no
13429 need_version=no
13430 hardcode_into_libs=yes
13431 if test "$host_cpu" = ia64; then
13432 # AIX 5 supports IA64
13433 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13434 shlibpath_var=LD_LIBRARY_PATH
13435 else
13436 # With GCC up to 2.95.x, collect2 would create an import file
13437 # for dependence libraries. The import file would start with
13438 # the line `#! .'. This would cause the generated library to
13439 # depend on `.', always an invalid library. This was fixed in
13440 # development snapshots of GCC prior to 3.0.
13441 case $host_os in
13442 aix4 | aix4.[01] | aix4.[01].*)
13443 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13444 echo ' yes '
13445 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13446 :
13447 else
13448 can_build_shared=no
13449 fi
13450 ;;
13451 esac
13452 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13453 # soname into executable. Probably we can add versioning support to
13454 # collect2, so additional links can be useful in future.
13455 if test "$aix_use_runtimelinking" = yes; then
13456 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13457 # instead of lib<name>.a to let people know that these are not
13458 # typical AIX shared libraries.
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460 else
13461 # We preserve .a as extension for shared libraries through AIX4.2
13462 # and later when we are not doing run time linking.
13463 library_names_spec='${libname}${release}.a $libname.a'
13464 soname_spec='${libname}${release}${shared_ext}$major'
13465 fi
13466 shlibpath_var=LIBPATH
13467 fi
13468 ;;
13469
13470amigaos*)
13471 case $host_cpu in
13472 powerpc)
13473 # Since July 2007 AmigaOS4 officially supports .so libraries.
13474 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13476 ;;
13477 m68k)
13478 library_names_spec='$libname.ixlibrary $libname.a'
13479 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000013480 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'
cristy3ed852e2009-09-05 21:47:34 +000013481 ;;
13482 esac
13483 ;;
13484
13485beos*)
13486 library_names_spec='${libname}${shared_ext}'
13487 dynamic_linker="$host_os ld.so"
13488 shlibpath_var=LIBRARY_PATH
13489 ;;
13490
13491bsdi[45]*)
13492 version_type=linux
13493 need_version=no
13494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13495 soname_spec='${libname}${release}${shared_ext}$major'
13496 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13497 shlibpath_var=LD_LIBRARY_PATH
13498 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13499 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13500 # the default ld.so.conf also contains /usr/contrib/lib and
13501 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13502 # libtool to hard-code these into programs
13503 ;;
13504
13505cygwin* | mingw* | pw32* | cegcc*)
13506 version_type=windows
13507 shrext_cmds=".dll"
13508 need_version=no
13509 need_lib_prefix=no
13510
13511 case $GCC,$host_os in
13512 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13513 library_names_spec='$libname.dll.a'
13514 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13515 postinstall_cmds='base_file=`basename \${file}`~
13516 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13517 dldir=$destdir/`dirname \$dlpath`~
13518 test -d \$dldir || mkdir -p \$dldir~
13519 $install_prog $dir/$dlname \$dldir/$dlname~
13520 chmod a+x \$dldir/$dlname~
13521 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13522 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13523 fi'
13524 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13525 dlpath=$dir/\$dldll~
13526 $RM \$dlpath'
13527 shlibpath_overrides_runpath=yes
13528
13529 case $host_os in
13530 cygwin*)
13531 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13532 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000013533 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000013534 ;;
13535 mingw* | cegcc*)
13536 # MinGW DLLs use traditional 'lib' prefix
13537 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000013538 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13539 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13540 # It is most probably a Windows format PATH printed by
13541 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13542 # path with ; separators, and with drive letters. We can handle the
13543 # drive letters (cygwin fileutils understands them), so leave them,
13544 # especially as we might pass files found there to a mingw objdump,
13545 # which wouldn't understand a cygwinified path. Ahh.
13546 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13547 else
13548 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13549 fi
cristy3ed852e2009-09-05 21:47:34 +000013550 ;;
13551 pw32*)
13552 # pw32 DLLs use 'pw' prefix rather than 'lib'
13553 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13554 ;;
13555 esac
13556 ;;
13557
13558 *)
13559 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13560 ;;
13561 esac
13562 dynamic_linker='Win32 ld.exe'
13563 # FIXME: first we should search . and the directory the executable is in
13564 shlibpath_var=PATH
13565 ;;
13566
13567darwin* | rhapsody*)
13568 dynamic_linker="$host_os dyld"
13569 version_type=darwin
13570 need_lib_prefix=no
13571 need_version=no
13572 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13573 soname_spec='${libname}${release}${major}$shared_ext'
13574 shlibpath_overrides_runpath=yes
13575 shlibpath_var=DYLD_LIBRARY_PATH
13576 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13577
13578 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13579 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13580 ;;
13581
13582dgux*)
13583 version_type=linux
13584 need_lib_prefix=no
13585 need_version=no
13586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13587 soname_spec='${libname}${release}${shared_ext}$major'
13588 shlibpath_var=LD_LIBRARY_PATH
13589 ;;
13590
13591freebsd1*)
13592 dynamic_linker=no
13593 ;;
13594
13595freebsd* | dragonfly*)
13596 # DragonFly does not have aout. When/if they implement a new
13597 # versioning mechanism, adjust this.
13598 if test -x /usr/bin/objformat; then
13599 objformat=`/usr/bin/objformat`
13600 else
13601 case $host_os in
13602 freebsd[123]*) objformat=aout ;;
13603 *) objformat=elf ;;
13604 esac
13605 fi
13606 version_type=freebsd-$objformat
13607 case $version_type in
13608 freebsd-elf*)
13609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13610 need_version=no
13611 need_lib_prefix=no
13612 ;;
13613 freebsd-*)
13614 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13615 need_version=yes
13616 ;;
13617 esac
13618 shlibpath_var=LD_LIBRARY_PATH
13619 case $host_os in
13620 freebsd2*)
13621 shlibpath_overrides_runpath=yes
13622 ;;
13623 freebsd3.[01]* | freebsdelf3.[01]*)
13624 shlibpath_overrides_runpath=yes
13625 hardcode_into_libs=yes
13626 ;;
13627 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13628 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13629 shlibpath_overrides_runpath=no
13630 hardcode_into_libs=yes
13631 ;;
13632 *) # from 4.6 on, and DragonFly
13633 shlibpath_overrides_runpath=yes
13634 hardcode_into_libs=yes
13635 ;;
13636 esac
13637 ;;
13638
13639gnu*)
13640 version_type=linux
13641 need_lib_prefix=no
13642 need_version=no
13643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13644 soname_spec='${libname}${release}${shared_ext}$major'
13645 shlibpath_var=LD_LIBRARY_PATH
13646 hardcode_into_libs=yes
13647 ;;
13648
13649hpux9* | hpux10* | hpux11*)
13650 # Give a soname corresponding to the major version so that dld.sl refuses to
13651 # link against other versions.
13652 version_type=sunos
13653 need_lib_prefix=no
13654 need_version=no
13655 case $host_cpu in
13656 ia64*)
13657 shrext_cmds='.so'
13658 hardcode_into_libs=yes
13659 dynamic_linker="$host_os dld.so"
13660 shlibpath_var=LD_LIBRARY_PATH
13661 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13663 soname_spec='${libname}${release}${shared_ext}$major'
13664 if test "X$HPUX_IA64_MODE" = X32; then
13665 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13666 else
13667 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13668 fi
13669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13670 ;;
13671 hppa*64*)
13672 shrext_cmds='.sl'
13673 hardcode_into_libs=yes
13674 dynamic_linker="$host_os dld.sl"
13675 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13676 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13678 soname_spec='${libname}${release}${shared_ext}$major'
13679 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13680 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13681 ;;
13682 *)
13683 shrext_cmds='.sl'
13684 dynamic_linker="$host_os dld.sl"
13685 shlibpath_var=SHLIB_PATH
13686 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13688 soname_spec='${libname}${release}${shared_ext}$major'
13689 ;;
13690 esac
cristy18304f92009-11-22 15:48:26 +000013691 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000013692 postinstall_cmds='chmod 555 $lib'
13693 ;;
13694
13695interix[3-9]*)
13696 version_type=linux
13697 need_lib_prefix=no
13698 need_version=no
13699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13700 soname_spec='${libname}${release}${shared_ext}$major'
13701 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13702 shlibpath_var=LD_LIBRARY_PATH
13703 shlibpath_overrides_runpath=no
13704 hardcode_into_libs=yes
13705 ;;
13706
13707irix5* | irix6* | nonstopux*)
13708 case $host_os in
13709 nonstopux*) version_type=nonstopux ;;
13710 *)
13711 if test "$lt_cv_prog_gnu_ld" = yes; then
13712 version_type=linux
13713 else
13714 version_type=irix
13715 fi ;;
13716 esac
13717 need_lib_prefix=no
13718 need_version=no
13719 soname_spec='${libname}${release}${shared_ext}$major'
13720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13721 case $host_os in
13722 irix5* | nonstopux*)
13723 libsuff= shlibsuff=
13724 ;;
13725 *)
13726 case $LD in # libtool.m4 will add one of these switches to LD
13727 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13728 libsuff= shlibsuff= libmagic=32-bit;;
13729 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13730 libsuff=32 shlibsuff=N32 libmagic=N32;;
13731 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13732 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13733 *) libsuff= shlibsuff= libmagic=never-match;;
13734 esac
13735 ;;
13736 esac
13737 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13738 shlibpath_overrides_runpath=no
13739 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13740 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13741 hardcode_into_libs=yes
13742 ;;
13743
13744# No shared lib support for Linux oldld, aout, or coff.
13745linux*oldld* | linux*aout* | linux*coff*)
13746 dynamic_linker=no
13747 ;;
13748
13749# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000013750linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013751 version_type=linux
13752 need_lib_prefix=no
13753 need_version=no
13754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13755 soname_spec='${libname}${release}${shared_ext}$major'
13756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13757 shlibpath_var=LD_LIBRARY_PATH
13758 shlibpath_overrides_runpath=no
13759 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000013760 save_LDFLAGS=$LDFLAGS
13761 save_libdir=$libdir
13762 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13763 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013765/* end confdefs.h. */
13766
13767int
13768main ()
13769{
13770
13771 ;
13772 return 0;
13773}
13774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013775if ac_fn_c_try_link "$LINENO"; then :
13776 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000013777 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000013778fi
cristy3ed852e2009-09-05 21:47:34 +000013779fi
cristy8b350f62009-11-15 23:12:43 +000013780rm -f core conftest.err conftest.$ac_objext \
13781 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000013782 LDFLAGS=$save_LDFLAGS
13783 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000013784
13785 # This implies no fast_install, which is unacceptable.
13786 # Some rework will be needed to allow for fast_install
13787 # before this can be enabled.
13788 hardcode_into_libs=yes
13789
cristy3ed852e2009-09-05 21:47:34 +000013790 # Append ld.so.conf contents to the search path
13791 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000013792 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' ' '`
cristy932c9122009-11-19 13:57:03 +000013793 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000013794 fi
13795
13796 # We used to test for /lib/ld.so.1 and disable shared libraries on
13797 # powerpc, because MkLinux only supported shared libraries with the
13798 # GNU dynamic linker. Since this was broken with cross compilers,
13799 # most powerpc-linux boxes support dynamic linking these days and
13800 # people can always --disable-shared, the test was removed, and we
13801 # assume the GNU/Linux dynamic linker is in use.
13802 dynamic_linker='GNU/Linux ld.so'
13803 ;;
13804
13805netbsd*)
13806 version_type=sunos
13807 need_lib_prefix=no
13808 need_version=no
13809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13812 dynamic_linker='NetBSD (a.out) ld.so'
13813 else
13814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13815 soname_spec='${libname}${release}${shared_ext}$major'
13816 dynamic_linker='NetBSD ld.elf_so'
13817 fi
13818 shlibpath_var=LD_LIBRARY_PATH
13819 shlibpath_overrides_runpath=yes
13820 hardcode_into_libs=yes
13821 ;;
13822
13823newsos6)
13824 version_type=linux
13825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13826 shlibpath_var=LD_LIBRARY_PATH
13827 shlibpath_overrides_runpath=yes
13828 ;;
13829
13830*nto* | *qnx*)
13831 version_type=qnx
13832 need_lib_prefix=no
13833 need_version=no
13834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13835 soname_spec='${libname}${release}${shared_ext}$major'
13836 shlibpath_var=LD_LIBRARY_PATH
13837 shlibpath_overrides_runpath=no
13838 hardcode_into_libs=yes
13839 dynamic_linker='ldqnx.so'
13840 ;;
13841
13842openbsd*)
13843 version_type=sunos
13844 sys_lib_dlsearch_path_spec="/usr/lib"
13845 need_lib_prefix=no
13846 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13847 case $host_os in
13848 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13849 *) need_version=no ;;
13850 esac
13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13853 shlibpath_var=LD_LIBRARY_PATH
13854 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13855 case $host_os in
13856 openbsd2.[89] | openbsd2.[89].*)
13857 shlibpath_overrides_runpath=no
13858 ;;
13859 *)
13860 shlibpath_overrides_runpath=yes
13861 ;;
13862 esac
13863 else
13864 shlibpath_overrides_runpath=yes
13865 fi
13866 ;;
13867
13868os2*)
13869 libname_spec='$name'
13870 shrext_cmds=".dll"
13871 need_lib_prefix=no
13872 library_names_spec='$libname${shared_ext} $libname.a'
13873 dynamic_linker='OS/2 ld.exe'
13874 shlibpath_var=LIBPATH
13875 ;;
13876
13877osf3* | osf4* | osf5*)
13878 version_type=osf
13879 need_lib_prefix=no
13880 need_version=no
13881 soname_spec='${libname}${release}${shared_ext}$major'
13882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13883 shlibpath_var=LD_LIBRARY_PATH
13884 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13885 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13886 ;;
13887
13888rdos*)
13889 dynamic_linker=no
13890 ;;
13891
13892solaris*)
13893 version_type=linux
13894 need_lib_prefix=no
13895 need_version=no
13896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13897 soname_spec='${libname}${release}${shared_ext}$major'
13898 shlibpath_var=LD_LIBRARY_PATH
13899 shlibpath_overrides_runpath=yes
13900 hardcode_into_libs=yes
13901 # ldd complains unless libraries are executable
13902 postinstall_cmds='chmod +x $lib'
13903 ;;
13904
13905sunos4*)
13906 version_type=sunos
13907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13908 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13909 shlibpath_var=LD_LIBRARY_PATH
13910 shlibpath_overrides_runpath=yes
13911 if test "$with_gnu_ld" = yes; then
13912 need_lib_prefix=no
13913 fi
13914 need_version=yes
13915 ;;
13916
13917sysv4 | sysv4.3*)
13918 version_type=linux
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920 soname_spec='${libname}${release}${shared_ext}$major'
13921 shlibpath_var=LD_LIBRARY_PATH
13922 case $host_vendor in
13923 sni)
13924 shlibpath_overrides_runpath=no
13925 need_lib_prefix=no
13926 runpath_var=LD_RUN_PATH
13927 ;;
13928 siemens)
13929 need_lib_prefix=no
13930 ;;
13931 motorola)
13932 need_lib_prefix=no
13933 need_version=no
13934 shlibpath_overrides_runpath=no
13935 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13936 ;;
13937 esac
13938 ;;
13939
13940sysv4*MP*)
13941 if test -d /usr/nec ;then
13942 version_type=linux
13943 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13944 soname_spec='$libname${shared_ext}.$major'
13945 shlibpath_var=LD_LIBRARY_PATH
13946 fi
13947 ;;
13948
13949sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13950 version_type=freebsd-elf
13951 need_lib_prefix=no
13952 need_version=no
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13954 soname_spec='${libname}${release}${shared_ext}$major'
13955 shlibpath_var=LD_LIBRARY_PATH
13956 shlibpath_overrides_runpath=yes
13957 hardcode_into_libs=yes
13958 if test "$with_gnu_ld" = yes; then
13959 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13960 else
13961 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13962 case $host_os in
13963 sco3.2v5*)
13964 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13965 ;;
13966 esac
13967 fi
13968 sys_lib_dlsearch_path_spec='/usr/lib'
13969 ;;
13970
13971tpf*)
13972 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13973 version_type=linux
13974 need_lib_prefix=no
13975 need_version=no
13976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13977 shlibpath_var=LD_LIBRARY_PATH
13978 shlibpath_overrides_runpath=no
13979 hardcode_into_libs=yes
13980 ;;
13981
13982uts4*)
13983 version_type=linux
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13985 soname_spec='${libname}${release}${shared_ext}$major'
13986 shlibpath_var=LD_LIBRARY_PATH
13987 ;;
13988
13989*)
13990 dynamic_linker=no
13991 ;;
13992esac
cristy8b350f62009-11-15 23:12:43 +000013993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000013994$as_echo "$dynamic_linker" >&6; }
13995test "$dynamic_linker" = no && can_build_shared=no
13996
13997variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13998if test "$GCC" = yes; then
13999 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14000fi
14001
14002if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14003 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14004fi
14005if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14006 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14007fi
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
cristy8b350f62009-11-15 23:12:43 +000014095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014096$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14097hardcode_action=
14098if test -n "$hardcode_libdir_flag_spec" ||
14099 test -n "$runpath_var" ||
14100 test "X$hardcode_automatic" = "Xyes" ; then
14101
14102 # We can hardcode non-existent directories.
14103 if test "$hardcode_direct" != no &&
14104 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14105 # have to relink, otherwise we might link with an installed library
14106 # when we should be linking with a yet-to-be-installed one
14107 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14108 test "$hardcode_minus_L" != no; then
14109 # Linking always hardcodes the temporary library directory.
14110 hardcode_action=relink
14111 else
14112 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14113 hardcode_action=immediate
14114 fi
14115else
14116 # We cannot hardcode anything, or else we can only hardcode existing
14117 # directories.
14118 hardcode_action=unsupported
14119fi
cristy8b350f62009-11-15 23:12:43 +000014120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000014121$as_echo "$hardcode_action" >&6; }
14122
14123if test "$hardcode_action" = relink ||
14124 test "$inherit_rpath" = yes; then
14125 # Fast installation is not supported
14126 enable_fast_install=no
14127elif test "$shlibpath_overrides_runpath" = yes ||
14128 test "$enable_shared" = no; then
14129 # Fast installation is not necessary
14130 enable_fast_install=needless
14131fi
14132
14133
14134
14135
14136
14137
14138 if test "x$enable_dlopen" != xyes; then
14139 enable_dlopen=unknown
14140 enable_dlopen_self=unknown
14141 enable_dlopen_self_static=unknown
14142else
14143 lt_cv_dlopen=no
14144 lt_cv_dlopen_libs=
14145
14146 case $host_os in
14147 beos*)
14148 lt_cv_dlopen="load_add_on"
14149 lt_cv_dlopen_libs=
14150 lt_cv_dlopen_self=yes
14151 ;;
14152
14153 mingw* | pw32* | cegcc*)
14154 lt_cv_dlopen="LoadLibrary"
14155 lt_cv_dlopen_libs=
14156 ;;
14157
14158 cygwin*)
14159 lt_cv_dlopen="dlopen"
14160 lt_cv_dlopen_libs=
14161 ;;
14162
14163 darwin*)
14164 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000014165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014166$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014167if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014168 $as_echo_n "(cached) " >&6
14169else
14170 ac_check_lib_save_LIBS=$LIBS
14171LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014173/* end confdefs.h. */
14174
14175/* Override any GCC internal prototype to avoid an error.
14176 Use char because int might match the return type of a GCC
14177 builtin and then its argument prototype would still apply. */
14178#ifdef __cplusplus
14179extern "C"
14180#endif
14181char dlopen ();
14182int
14183main ()
14184{
14185return dlopen ();
14186 ;
14187 return 0;
14188}
14189_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014190if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014191 ac_cv_lib_dl_dlopen=yes
14192else
cristy8b350f62009-11-15 23:12:43 +000014193 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014194fi
cristy8b350f62009-11-15 23:12:43 +000014195rm -f core conftest.err conftest.$ac_objext \
14196 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014197LIBS=$ac_check_lib_save_LIBS
14198fi
cristy8b350f62009-11-15 23:12:43 +000014199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014200$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014201if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014202 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14203else
14204
14205 lt_cv_dlopen="dyld"
14206 lt_cv_dlopen_libs=
14207 lt_cv_dlopen_self=yes
14208
14209fi
14210
14211 ;;
14212
14213 *)
cristy8b350f62009-11-15 23:12:43 +000014214 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14215if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014216 lt_cv_dlopen="shl_load"
14217else
cristy8b350f62009-11-15 23:12:43 +000014218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014219$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014220if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014221 $as_echo_n "(cached) " >&6
14222else
14223 ac_check_lib_save_LIBS=$LIBS
14224LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014226/* end confdefs.h. */
14227
14228/* Override any GCC internal prototype to avoid an error.
14229 Use char because int might match the return type of a GCC
14230 builtin and then its argument prototype would still apply. */
14231#ifdef __cplusplus
14232extern "C"
14233#endif
14234char shl_load ();
14235int
14236main ()
14237{
14238return shl_load ();
14239 ;
14240 return 0;
14241}
14242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014243if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014244 ac_cv_lib_dld_shl_load=yes
14245else
cristy8b350f62009-11-15 23:12:43 +000014246 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000014247fi
cristy8b350f62009-11-15 23:12:43 +000014248rm -f core conftest.err conftest.$ac_objext \
14249 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014250LIBS=$ac_check_lib_save_LIBS
14251fi
cristy8b350f62009-11-15 23:12:43 +000014252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000014253$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014254if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014255 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14256else
cristy8b350f62009-11-15 23:12:43 +000014257 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14258if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014259 lt_cv_dlopen="dlopen"
14260else
cristy8b350f62009-11-15 23:12:43 +000014261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014262$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014263if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014264 $as_echo_n "(cached) " >&6
14265else
14266 ac_check_lib_save_LIBS=$LIBS
14267LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014269/* end confdefs.h. */
14270
14271/* Override any GCC internal prototype to avoid an error.
14272 Use char because int might match the return type of a GCC
14273 builtin and then its argument prototype would still apply. */
14274#ifdef __cplusplus
14275extern "C"
14276#endif
14277char dlopen ();
14278int
14279main ()
14280{
14281return dlopen ();
14282 ;
14283 return 0;
14284}
14285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014286if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014287 ac_cv_lib_dl_dlopen=yes
14288else
cristy8b350f62009-11-15 23:12:43 +000014289 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014290fi
cristy8b350f62009-11-15 23:12:43 +000014291rm -f core conftest.err conftest.$ac_objext \
14292 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014293LIBS=$ac_check_lib_save_LIBS
14294fi
cristy8b350f62009-11-15 23:12:43 +000014295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014296$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014297if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14299else
cristy8b350f62009-11-15 23:12:43 +000014300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014301$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014302if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014303 $as_echo_n "(cached) " >&6
14304else
14305 ac_check_lib_save_LIBS=$LIBS
14306LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014308/* end confdefs.h. */
14309
14310/* Override any GCC internal prototype to avoid an error.
14311 Use char because int might match the return type of a GCC
14312 builtin and then its argument prototype would still apply. */
14313#ifdef __cplusplus
14314extern "C"
14315#endif
14316char dlopen ();
14317int
14318main ()
14319{
14320return dlopen ();
14321 ;
14322 return 0;
14323}
14324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014325if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014326 ac_cv_lib_svld_dlopen=yes
14327else
cristy8b350f62009-11-15 23:12:43 +000014328 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014329fi
cristy8b350f62009-11-15 23:12:43 +000014330rm -f core conftest.err conftest.$ac_objext \
14331 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014332LIBS=$ac_check_lib_save_LIBS
14333fi
cristy8b350f62009-11-15 23:12:43 +000014334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014335$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014336if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014337 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14338else
cristy8b350f62009-11-15 23:12:43 +000014339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014340$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014341if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014342 $as_echo_n "(cached) " >&6
14343else
14344 ac_check_lib_save_LIBS=$LIBS
14345LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014347/* end confdefs.h. */
14348
14349/* Override any GCC internal prototype to avoid an error.
14350 Use char because int might match the return type of a GCC
14351 builtin and then its argument prototype would still apply. */
14352#ifdef __cplusplus
14353extern "C"
14354#endif
14355char dld_link ();
14356int
14357main ()
14358{
14359return dld_link ();
14360 ;
14361 return 0;
14362}
14363_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014364if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014365 ac_cv_lib_dld_dld_link=yes
14366else
cristy8b350f62009-11-15 23:12:43 +000014367 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000014368fi
cristy8b350f62009-11-15 23:12:43 +000014369rm -f core conftest.err conftest.$ac_objext \
14370 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014371LIBS=$ac_check_lib_save_LIBS
14372fi
cristy8b350f62009-11-15 23:12:43 +000014373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000014374$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014375if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014376 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14377fi
14378
14379
14380fi
14381
14382
14383fi
14384
14385
14386fi
14387
14388
14389fi
14390
14391
14392fi
14393
14394 ;;
14395 esac
14396
14397 if test "x$lt_cv_dlopen" != xno; then
14398 enable_dlopen=yes
14399 else
14400 enable_dlopen=no
14401 fi
14402
14403 case $lt_cv_dlopen in
14404 dlopen)
14405 save_CPPFLAGS="$CPPFLAGS"
14406 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14407
14408 save_LDFLAGS="$LDFLAGS"
14409 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14410
14411 save_LIBS="$LIBS"
14412 LIBS="$lt_cv_dlopen_libs $LIBS"
14413
cristy8b350f62009-11-15 23:12:43 +000014414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014415$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014416if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014417 $as_echo_n "(cached) " >&6
14418else
14419 if test "$cross_compiling" = yes; then :
14420 lt_cv_dlopen_self=cross
14421else
14422 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14423 lt_status=$lt_dlunknown
14424 cat > conftest.$ac_ext <<_LT_EOF
cristy18304f92009-11-22 15:48:26 +000014425#line 14425 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014426#include "confdefs.h"
14427
14428#if HAVE_DLFCN_H
14429#include <dlfcn.h>
14430#endif
14431
14432#include <stdio.h>
14433
14434#ifdef RTLD_GLOBAL
14435# define LT_DLGLOBAL RTLD_GLOBAL
14436#else
14437# ifdef DL_GLOBAL
14438# define LT_DLGLOBAL DL_GLOBAL
14439# else
14440# define LT_DLGLOBAL 0
14441# endif
14442#endif
14443
14444/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14445 find out it does not work in some platform. */
14446#ifndef LT_DLLAZY_OR_NOW
14447# ifdef RTLD_LAZY
14448# define LT_DLLAZY_OR_NOW RTLD_LAZY
14449# else
14450# ifdef DL_LAZY
14451# define LT_DLLAZY_OR_NOW DL_LAZY
14452# else
14453# ifdef RTLD_NOW
14454# define LT_DLLAZY_OR_NOW RTLD_NOW
14455# else
14456# ifdef DL_NOW
14457# define LT_DLLAZY_OR_NOW DL_NOW
14458# else
14459# define LT_DLLAZY_OR_NOW 0
14460# endif
14461# endif
14462# endif
14463# endif
14464#endif
14465
cristy18304f92009-11-22 15:48:26 +000014466void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000014467int main ()
14468{
14469 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14470 int status = $lt_dlunknown;
14471
14472 if (self)
14473 {
14474 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000014475 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000014476 /* dlclose (self); */
14477 }
14478 else
14479 puts (dlerror ());
14480
14481 return status;
14482}
14483_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014485 (eval $ac_link) 2>&5
14486 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14488 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014489 (./conftest; exit; ) >&5 2>/dev/null
14490 lt_status=$?
14491 case x$lt_status in
14492 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14493 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14494 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14495 esac
14496 else :
14497 # compilation failed
14498 lt_cv_dlopen_self=no
14499 fi
14500fi
14501rm -fr conftest*
14502
14503
14504fi
cristy8b350f62009-11-15 23:12:43 +000014505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000014506$as_echo "$lt_cv_dlopen_self" >&6; }
14507
14508 if test "x$lt_cv_dlopen_self" = xyes; then
14509 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000014510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014511$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014512if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014513 $as_echo_n "(cached) " >&6
14514else
14515 if test "$cross_compiling" = yes; then :
14516 lt_cv_dlopen_self_static=cross
14517else
14518 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14519 lt_status=$lt_dlunknown
14520 cat > conftest.$ac_ext <<_LT_EOF
cristy18304f92009-11-22 15:48:26 +000014521#line 14521 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014522#include "confdefs.h"
14523
14524#if HAVE_DLFCN_H
14525#include <dlfcn.h>
14526#endif
14527
14528#include <stdio.h>
14529
14530#ifdef RTLD_GLOBAL
14531# define LT_DLGLOBAL RTLD_GLOBAL
14532#else
14533# ifdef DL_GLOBAL
14534# define LT_DLGLOBAL DL_GLOBAL
14535# else
14536# define LT_DLGLOBAL 0
14537# endif
14538#endif
14539
14540/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14541 find out it does not work in some platform. */
14542#ifndef LT_DLLAZY_OR_NOW
14543# ifdef RTLD_LAZY
14544# define LT_DLLAZY_OR_NOW RTLD_LAZY
14545# else
14546# ifdef DL_LAZY
14547# define LT_DLLAZY_OR_NOW DL_LAZY
14548# else
14549# ifdef RTLD_NOW
14550# define LT_DLLAZY_OR_NOW RTLD_NOW
14551# else
14552# ifdef DL_NOW
14553# define LT_DLLAZY_OR_NOW DL_NOW
14554# else
14555# define LT_DLLAZY_OR_NOW 0
14556# endif
14557# endif
14558# endif
14559# endif
14560#endif
14561
cristy18304f92009-11-22 15:48:26 +000014562void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000014563int main ()
14564{
14565 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14566 int status = $lt_dlunknown;
14567
14568 if (self)
14569 {
14570 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000014571 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000014572 /* dlclose (self); */
14573 }
14574 else
14575 puts (dlerror ());
14576
14577 return status;
14578}
14579_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014581 (eval $ac_link) 2>&5
14582 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14584 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014585 (./conftest; exit; ) >&5 2>/dev/null
14586 lt_status=$?
14587 case x$lt_status in
14588 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14589 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14590 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14591 esac
14592 else :
14593 # compilation failed
14594 lt_cv_dlopen_self_static=no
14595 fi
14596fi
14597rm -fr conftest*
14598
14599
14600fi
cristy8b350f62009-11-15 23:12:43 +000014601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014602$as_echo "$lt_cv_dlopen_self_static" >&6; }
14603 fi
14604
14605 CPPFLAGS="$save_CPPFLAGS"
14606 LDFLAGS="$save_LDFLAGS"
14607 LIBS="$save_LIBS"
14608 ;;
14609 esac
14610
14611 case $lt_cv_dlopen_self in
14612 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14613 *) enable_dlopen_self=unknown ;;
14614 esac
14615
14616 case $lt_cv_dlopen_self_static in
14617 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14618 *) enable_dlopen_self_static=unknown ;;
14619 esac
14620fi
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638striplib=
14639old_striplib=
cristy8b350f62009-11-15 23:12:43 +000014640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000014641$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14642if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14643 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14644 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000014645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014646$as_echo "yes" >&6; }
14647else
14648# FIXME - insert some real tests, host_os isn't really good enough
14649 case $host_os in
14650 darwin*)
14651 if test -n "$STRIP" ; then
14652 striplib="$STRIP -x"
14653 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000014654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014655$as_echo "yes" >&6; }
14656 else
cristy8b350f62009-11-15 23:12:43 +000014657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014658$as_echo "no" >&6; }
14659 fi
14660 ;;
14661 *)
cristy8b350f62009-11-15 23:12:43 +000014662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014663$as_echo "no" >&6; }
14664 ;;
14665 esac
14666fi
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000014680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014681$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014683$as_echo "$can_build_shared" >&6; }
14684
cristy8b350f62009-11-15 23:12:43 +000014685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014686$as_echo_n "checking whether to build shared libraries... " >&6; }
14687 test "$can_build_shared" = "no" && enable_shared=no
14688
14689 # On AIX, shared libraries and static libraries use the same namespace, and
14690 # are all built from PIC.
14691 case $host_os in
14692 aix3*)
14693 test "$enable_shared" = yes && enable_static=no
14694 if test -n "$RANLIB"; then
14695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14696 postinstall_cmds='$RANLIB $lib'
14697 fi
14698 ;;
14699
14700 aix[4-9]*)
14701 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14702 test "$enable_shared" = yes && enable_static=no
14703 fi
14704 ;;
14705 esac
cristy8b350f62009-11-15 23:12:43 +000014706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014707$as_echo "$enable_shared" >&6; }
14708
cristy8b350f62009-11-15 23:12:43 +000014709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014710$as_echo_n "checking whether to build static libraries... " >&6; }
14711 # Make sure either enable_shared or enable_static is yes.
14712 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000014713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014714$as_echo "$enable_static" >&6; }
14715
14716
14717
14718
14719fi
14720ac_ext=c
14721ac_cpp='$CPP $CPPFLAGS'
14722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14724ac_compiler_gnu=$ac_cv_c_compiler_gnu
14725
14726CC="$lt_save_CC"
14727
14728
14729ac_ext=cpp
14730ac_cpp='$CXXCPP $CPPFLAGS'
14731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14734
14735archive_cmds_need_lc_CXX=no
14736allow_undefined_flag_CXX=
14737always_export_symbols_CXX=no
14738archive_expsym_cmds_CXX=
14739compiler_needs_object_CXX=no
14740export_dynamic_flag_spec_CXX=
14741hardcode_direct_CXX=no
14742hardcode_direct_absolute_CXX=no
14743hardcode_libdir_flag_spec_CXX=
14744hardcode_libdir_flag_spec_ld_CXX=
14745hardcode_libdir_separator_CXX=
14746hardcode_minus_L_CXX=no
14747hardcode_shlibpath_var_CXX=unsupported
14748hardcode_automatic_CXX=no
14749inherit_rpath_CXX=no
14750module_cmds_CXX=
14751module_expsym_cmds_CXX=
14752link_all_deplibs_CXX=unknown
14753old_archive_cmds_CXX=$old_archive_cmds
14754no_undefined_flag_CXX=
14755whole_archive_flag_spec_CXX=
14756enable_shared_with_static_runtimes_CXX=no
14757
14758# Source file extension for C++ test sources.
14759ac_ext=cpp
14760
14761# Object file extension for compiled C++ test sources.
14762objext=o
14763objext_CXX=$objext
14764
14765# No sense in running all these tests if we already determined that
14766# the CXX compiler isn't working. Some variables (like enable_shared)
14767# are currently assumed to apply to all compilers on this platform,
14768# and will be corrupted by setting them based on a non-working compiler.
14769if test "$_lt_caught_CXX_error" != yes; then
14770 # Code to be used in simple compile tests
14771 lt_simple_compile_test_code="int some_variable = 0;"
14772
14773 # Code to be used in simple link tests
14774 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14775
14776 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14777
14778
14779
14780
14781
14782
14783# If no C compiler was specified, use CC.
14784LTCC=${LTCC-"$CC"}
14785
14786# If no C compiler flags were specified, use CFLAGS.
14787LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14788
14789# Allow CC to be a program name with arguments.
14790compiler=$CC
14791
14792
14793 # save warnings/boilerplate of simple test code
14794 ac_outfile=conftest.$ac_objext
14795echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14796eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14797_lt_compiler_boilerplate=`cat conftest.err`
14798$RM conftest*
14799
14800 ac_outfile=conftest.$ac_objext
14801echo "$lt_simple_link_test_code" >conftest.$ac_ext
14802eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14803_lt_linker_boilerplate=`cat conftest.err`
14804$RM -r conftest*
14805
14806
14807 # Allow CC to be a program name with arguments.
14808 lt_save_CC=$CC
14809 lt_save_LD=$LD
14810 lt_save_GCC=$GCC
14811 GCC=$GXX
14812 lt_save_with_gnu_ld=$with_gnu_ld
14813 lt_save_path_LD=$lt_cv_path_LD
14814 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14815 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14816 else
14817 $as_unset lt_cv_prog_gnu_ld
14818 fi
14819 if test -n "${lt_cv_path_LDCXX+set}"; then
14820 lt_cv_path_LD=$lt_cv_path_LDCXX
14821 else
14822 $as_unset lt_cv_path_LD
14823 fi
14824 test -z "${LDCXX+set}" || LD=$LDCXX
14825 CC=${CXX-"c++"}
14826 compiler=$CC
14827 compiler_CXX=$CC
14828 for cc_temp in $compiler""; do
14829 case $cc_temp in
14830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14832 \-*) ;;
14833 *) break;;
14834 esac
14835done
cristy18304f92009-11-22 15:48:26 +000014836cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000014837
14838
14839 if test -n "$compiler"; then
14840 # We don't want -fno-exception when compiling C++ code, so set the
14841 # no_builtin_flag separately
14842 if test "$GXX" = yes; then
14843 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14844 else
14845 lt_prog_compiler_no_builtin_flag_CXX=
14846 fi
14847
14848 if test "$GXX" = yes; then
14849 # Set up default GNU C++ configuration
14850
14851
14852
14853# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000014854if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014855 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14856else
14857 with_gnu_ld=no
14858fi
14859
14860ac_prog=ld
14861if test "$GCC" = yes; then
14862 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000014863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000014864$as_echo_n "checking for ld used by $CC... " >&6; }
14865 case $host in
14866 *-*-mingw*)
14867 # gcc leaves a trailing carriage return which upsets mingw
14868 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14869 *)
14870 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14871 esac
14872 case $ac_prog in
14873 # Accept absolute paths.
14874 [\\/]* | ?:[\\/]*)
14875 re_direlt='/[^/][^/]*/\.\./'
14876 # Canonicalize the pathname of ld
14877 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14878 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14879 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14880 done
14881 test -z "$LD" && LD="$ac_prog"
14882 ;;
14883 "")
14884 # If it fails, then pretend we aren't using GCC.
14885 ac_prog=ld
14886 ;;
14887 *)
14888 # If it is relative, then search for the first ld in PATH.
14889 with_gnu_ld=unknown
14890 ;;
14891 esac
14892elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000014893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014894$as_echo_n "checking for GNU ld... " >&6; }
14895else
cristy8b350f62009-11-15 23:12:43 +000014896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014897$as_echo_n "checking for non-GNU ld... " >&6; }
14898fi
cristy8b350f62009-11-15 23:12:43 +000014899if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014900 $as_echo_n "(cached) " >&6
14901else
14902 if test -z "$LD"; then
14903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14904 for ac_dir in $PATH; do
14905 IFS="$lt_save_ifs"
14906 test -z "$ac_dir" && ac_dir=.
14907 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14908 lt_cv_path_LD="$ac_dir/$ac_prog"
14909 # Check to see if the program is GNU ld. I'd rather use --version,
14910 # but apparently some variants of GNU ld only accept -v.
14911 # Break only if it was the GNU/non-GNU ld that we prefer.
14912 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14913 *GNU* | *'with BFD'*)
14914 test "$with_gnu_ld" != no && break
14915 ;;
14916 *)
14917 test "$with_gnu_ld" != yes && break
14918 ;;
14919 esac
14920 fi
14921 done
14922 IFS="$lt_save_ifs"
14923else
14924 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14925fi
14926fi
14927
14928LD="$lt_cv_path_LD"
14929if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000014930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000014931$as_echo "$LD" >&6; }
14932else
cristy8b350f62009-11-15 23:12:43 +000014933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014934$as_echo "no" >&6; }
14935fi
cristy8b350f62009-11-15 23:12:43 +000014936test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014938$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014939if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014940 $as_echo_n "(cached) " >&6
14941else
14942 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14943case `$LD -v 2>&1 </dev/null` in
14944*GNU* | *'with BFD'*)
14945 lt_cv_prog_gnu_ld=yes
14946 ;;
14947*)
14948 lt_cv_prog_gnu_ld=no
14949 ;;
14950esac
14951fi
cristy8b350f62009-11-15 23:12:43 +000014952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014953$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14954with_gnu_ld=$lt_cv_prog_gnu_ld
14955
14956
14957
14958
14959
14960
14961
14962 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14963 # archiving commands below assume that GNU ld is being used.
14964 if test "$with_gnu_ld" = yes; then
14965 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14966 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'
14967
14968 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14969 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14970
14971 # If archive_cmds runs LD, not CC, wlarc should be empty
14972 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14973 # investigate it a little bit more. (MM)
14974 wlarc='${wl}'
14975
14976 # ancient GNU ld didn't support --whole-archive et. al.
14977 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14978 $GREP 'no-whole-archive' > /dev/null; then
14979 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14980 else
14981 whole_archive_flag_spec_CXX=
14982 fi
14983 else
14984 with_gnu_ld=no
14985 wlarc=
14986
14987 # A generic and very simple default shared library creation
14988 # command for GNU C++ for the case where it uses the native
14989 # linker, instead of GNU ld. If possible, this setting should
14990 # overridden to take advantage of the native linker features on
14991 # the platform it is being used on.
14992 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14993 fi
14994
14995 # Commands to make compiler produce verbose output that lists
14996 # what "hidden" libraries, object files and flags are used when
14997 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000014998 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000014999
15000 else
15001 GXX=no
15002 with_gnu_ld=no
15003 wlarc=
15004 fi
15005
15006 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000015007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015008$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15009 ld_shlibs_CXX=yes
15010 case $host_os in
15011 aix3*)
15012 # FIXME: insert proper C++ library support
15013 ld_shlibs_CXX=no
15014 ;;
15015 aix[4-9]*)
15016 if test "$host_cpu" = ia64; then
15017 # On IA64, the linker does run time linking by default, so we don't
15018 # have to do anything special.
15019 aix_use_runtimelinking=no
15020 exp_sym_flag='-Bexport'
15021 no_entry_flag=""
15022 else
15023 aix_use_runtimelinking=no
15024
15025 # Test if we are trying to use run time linking or normal
15026 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15027 # need to do runtime linking.
15028 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15029 for ld_flag in $LDFLAGS; do
15030 case $ld_flag in
15031 *-brtl*)
15032 aix_use_runtimelinking=yes
15033 break
15034 ;;
15035 esac
15036 done
15037 ;;
15038 esac
15039
15040 exp_sym_flag='-bexport'
15041 no_entry_flag='-bnoentry'
15042 fi
15043
15044 # When large executables or shared objects are built, AIX ld can
15045 # have problems creating the table of contents. If linking a library
15046 # or program results in "error TOC overflow" add -mminimal-toc to
15047 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15048 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15049
15050 archive_cmds_CXX=''
15051 hardcode_direct_CXX=yes
15052 hardcode_direct_absolute_CXX=yes
15053 hardcode_libdir_separator_CXX=':'
15054 link_all_deplibs_CXX=yes
15055 file_list_spec_CXX='${wl}-f,'
15056
15057 if test "$GXX" = yes; then
15058 case $host_os in aix4.[012]|aix4.[012].*)
15059 # We only want to do this on AIX 4.2 and lower, the check
15060 # below for broken collect2 doesn't work under 4.3+
15061 collect2name=`${CC} -print-prog-name=collect2`
15062 if test -f "$collect2name" &&
15063 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15064 then
15065 # We have reworked collect2
15066 :
15067 else
15068 # We have old collect2
15069 hardcode_direct_CXX=unsupported
15070 # It fails to find uninstalled libraries when the uninstalled
15071 # path is not listed in the libpath. Setting hardcode_minus_L
15072 # to unsupported forces relinking
15073 hardcode_minus_L_CXX=yes
15074 hardcode_libdir_flag_spec_CXX='-L$libdir'
15075 hardcode_libdir_separator_CXX=
15076 fi
15077 esac
15078 shared_flag='-shared'
15079 if test "$aix_use_runtimelinking" = yes; then
15080 shared_flag="$shared_flag "'${wl}-G'
15081 fi
15082 else
15083 # not using gcc
15084 if test "$host_cpu" = ia64; then
15085 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15086 # chokes on -Wl,-G. The following line is correct:
15087 shared_flag='-G'
15088 else
15089 if test "$aix_use_runtimelinking" = yes; then
15090 shared_flag='${wl}-G'
15091 else
15092 shared_flag='${wl}-bM:SRE'
15093 fi
15094 fi
15095 fi
15096
15097 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15098 # It seems that -bexpall does not export symbols beginning with
15099 # underscore (_), so it is better to generate a list of symbols to
15100 # export.
15101 always_export_symbols_CXX=yes
15102 if test "$aix_use_runtimelinking" = yes; then
15103 # Warning - without using the other runtime loading flags (-brtl),
15104 # -berok will link without error, but may produce a broken library.
15105 allow_undefined_flag_CXX='-berok'
15106 # Determine the default libpath from the value encoded in an empty
15107 # executable.
cristy8b350f62009-11-15 23:12:43 +000015108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015109/* end confdefs.h. */
15110
15111int
15112main ()
15113{
15114
15115 ;
15116 return 0;
15117}
15118_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015119if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015120
15121lt_aix_libpath_sed='
15122 /Import File Strings/,/^$/ {
15123 /^0/ {
15124 s/^0 *\(.*\)$/\1/
15125 p
15126 }
15127 }'
15128aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15129# Check for a 64-bit object if we didn't find anything.
15130if test -z "$aix_libpath"; then
15131 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15132fi
cristy3ed852e2009-09-05 21:47:34 +000015133fi
cristy8b350f62009-11-15 23:12:43 +000015134rm -f core conftest.err conftest.$ac_objext \
15135 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015136if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15137
15138 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15139
cristy18304f92009-11-22 15:48:26 +000015140 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"
cristy3ed852e2009-09-05 21:47:34 +000015141 else
15142 if test "$host_cpu" = ia64; then
15143 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15144 allow_undefined_flag_CXX="-z nodefs"
15145 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"
15146 else
15147 # Determine the default libpath from the value encoded in an
15148 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000015149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015150/* end confdefs.h. */
15151
15152int
15153main ()
15154{
15155
15156 ;
15157 return 0;
15158}
15159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015160if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015161
15162lt_aix_libpath_sed='
15163 /Import File Strings/,/^$/ {
15164 /^0/ {
15165 s/^0 *\(.*\)$/\1/
15166 p
15167 }
15168 }'
15169aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15170# Check for a 64-bit object if we didn't find anything.
15171if test -z "$aix_libpath"; then
15172 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15173fi
cristy3ed852e2009-09-05 21:47:34 +000015174fi
cristy8b350f62009-11-15 23:12:43 +000015175rm -f core conftest.err conftest.$ac_objext \
15176 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015177if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15178
15179 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15180 # Warning - without using the other run time loading flags,
15181 # -berok will link without error, but may produce a broken library.
15182 no_undefined_flag_CXX=' ${wl}-bernotok'
15183 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000015184 # Exported symbols can be pulled into shared objects from archives
15185 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000015186 archive_cmds_need_lc_CXX=yes
15187 # This is similar to how AIX traditionally builds its shared
15188 # libraries.
15189 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'
15190 fi
15191 fi
15192 ;;
15193
15194 beos*)
15195 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15196 allow_undefined_flag_CXX=unsupported
15197 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15198 # support --undefined. This deserves some investigation. FIXME
15199 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15200 else
15201 ld_shlibs_CXX=no
15202 fi
15203 ;;
15204
15205 chorus*)
15206 case $cc_basename in
15207 *)
15208 # FIXME: insert proper C++ library support
15209 ld_shlibs_CXX=no
15210 ;;
15211 esac
15212 ;;
15213
15214 cygwin* | mingw* | pw32* | cegcc*)
15215 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15216 # as there is no search path for DLLs.
15217 hardcode_libdir_flag_spec_CXX='-L$libdir'
15218 allow_undefined_flag_CXX=unsupported
15219 always_export_symbols_CXX=no
15220 enable_shared_with_static_runtimes_CXX=yes
15221
15222 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15223 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'
15224 # If the export-symbols file already is a .def file (1st line
15225 # is EXPORTS), use it as is; otherwise, prepend...
15226 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15227 cp $export_symbols $output_objdir/$soname.def;
15228 else
15229 echo EXPORTS > $output_objdir/$soname.def;
15230 cat $export_symbols >> $output_objdir/$soname.def;
15231 fi~
15232 $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'
15233 else
15234 ld_shlibs_CXX=no
15235 fi
15236 ;;
15237 darwin* | rhapsody*)
15238
15239
15240 archive_cmds_need_lc_CXX=no
15241 hardcode_direct_CXX=no
15242 hardcode_automatic_CXX=yes
15243 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000015244 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000015245 link_all_deplibs_CXX=yes
15246 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15247 case $cc_basename in
15248 ifort*) _lt_dar_can_shared=yes ;;
15249 *) _lt_dar_can_shared=$GCC ;;
15250 esac
15251 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000015252 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015253 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}"
15254 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15255 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}"
15256 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}"
15257 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15258 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}"
15259 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}"
15260 fi
15261
15262 else
15263 ld_shlibs_CXX=no
15264 fi
15265
15266 ;;
15267
15268 dgux*)
15269 case $cc_basename in
15270 ec++*)
15271 # FIXME: insert proper C++ library support
15272 ld_shlibs_CXX=no
15273 ;;
15274 ghcx*)
15275 # Green Hills C++ Compiler
15276 # FIXME: insert proper C++ library support
15277 ld_shlibs_CXX=no
15278 ;;
15279 *)
15280 # FIXME: insert proper C++ library support
15281 ld_shlibs_CXX=no
15282 ;;
15283 esac
15284 ;;
15285
15286 freebsd[12]*)
15287 # C++ shared libraries reported to be fairly broken before
15288 # switch to ELF
15289 ld_shlibs_CXX=no
15290 ;;
15291
15292 freebsd-elf*)
15293 archive_cmds_need_lc_CXX=no
15294 ;;
15295
15296 freebsd* | dragonfly*)
15297 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15298 # conventions
15299 ld_shlibs_CXX=yes
15300 ;;
15301
15302 gnu*)
15303 ;;
15304
15305 hpux9*)
15306 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15307 hardcode_libdir_separator_CXX=:
15308 export_dynamic_flag_spec_CXX='${wl}-E'
15309 hardcode_direct_CXX=yes
15310 hardcode_minus_L_CXX=yes # Not in the search PATH,
15311 # but as the default
15312 # location of the library.
15313
15314 case $cc_basename in
15315 CC*)
15316 # FIXME: insert proper C++ library support
15317 ld_shlibs_CXX=no
15318 ;;
15319 aCC*)
15320 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'
15321 # Commands to make compiler produce verbose output that lists
15322 # what "hidden" libraries, object files and flags are used when
15323 # linking a shared library.
15324 #
15325 # There doesn't appear to be a way to prevent this compiler from
15326 # explicitly linking system object files so we need to strip them
15327 # from the output so that they don't get included in the library
15328 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015329 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'
cristy3ed852e2009-09-05 21:47:34 +000015330 ;;
15331 *)
15332 if test "$GXX" = yes; then
15333 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'
15334 else
15335 # FIXME: insert proper C++ library support
15336 ld_shlibs_CXX=no
15337 fi
15338 ;;
15339 esac
15340 ;;
15341
15342 hpux10*|hpux11*)
15343 if test $with_gnu_ld = no; then
15344 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15345 hardcode_libdir_separator_CXX=:
15346
15347 case $host_cpu in
15348 hppa*64*|ia64*)
15349 ;;
15350 *)
15351 export_dynamic_flag_spec_CXX='${wl}-E'
15352 ;;
15353 esac
15354 fi
15355 case $host_cpu in
15356 hppa*64*|ia64*)
15357 hardcode_direct_CXX=no
15358 hardcode_shlibpath_var_CXX=no
15359 ;;
15360 *)
15361 hardcode_direct_CXX=yes
15362 hardcode_direct_absolute_CXX=yes
15363 hardcode_minus_L_CXX=yes # Not in the search PATH,
15364 # but as the default
15365 # location of the library.
15366 ;;
15367 esac
15368
15369 case $cc_basename in
15370 CC*)
15371 # FIXME: insert proper C++ library support
15372 ld_shlibs_CXX=no
15373 ;;
15374 aCC*)
15375 case $host_cpu in
15376 hppa*64*)
15377 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15378 ;;
15379 ia64*)
15380 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15381 ;;
15382 *)
15383 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15384 ;;
15385 esac
15386 # Commands to make compiler produce verbose output that lists
15387 # what "hidden" libraries, object files and flags are used when
15388 # linking a shared library.
15389 #
15390 # There doesn't appear to be a way to prevent this compiler from
15391 # explicitly linking system object files so we need to strip them
15392 # from the output so that they don't get included in the library
15393 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015394 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'
cristy3ed852e2009-09-05 21:47:34 +000015395 ;;
15396 *)
15397 if test "$GXX" = yes; then
15398 if test $with_gnu_ld = no; then
15399 case $host_cpu in
15400 hppa*64*)
15401 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15402 ;;
15403 ia64*)
15404 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15405 ;;
15406 *)
15407 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'
15408 ;;
15409 esac
15410 fi
15411 else
15412 # FIXME: insert proper C++ library support
15413 ld_shlibs_CXX=no
15414 fi
15415 ;;
15416 esac
15417 ;;
15418
15419 interix[3-9]*)
15420 hardcode_direct_CXX=no
15421 hardcode_shlibpath_var_CXX=no
15422 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15423 export_dynamic_flag_spec_CXX='${wl}-E'
15424 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15425 # Instead, shared libraries are loaded at an image base (0x10000000 by
15426 # default) and relocated if they conflict, which is a slow very memory
15427 # consuming and fragmenting process. To avoid this, we pick a random,
15428 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15429 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15430 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'
15431 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'
15432 ;;
15433 irix5* | irix6*)
15434 case $cc_basename in
15435 CC*)
15436 # SGI C++
cristy18304f92009-11-22 15:48:26 +000015437 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'
cristy3ed852e2009-09-05 21:47:34 +000015438
15439 # Archives containing C++ object files must be created using
15440 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15441 # necessary to make sure instantiated templates are included
15442 # in the archive.
15443 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15444 ;;
15445 *)
15446 if test "$GXX" = yes; then
15447 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000015448 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'
cristy3ed852e2009-09-05 21:47:34 +000015449 else
cristy18304f92009-11-22 15:48:26 +000015450 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'
cristy3ed852e2009-09-05 21:47:34 +000015451 fi
15452 fi
15453 link_all_deplibs_CXX=yes
15454 ;;
15455 esac
15456 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15457 hardcode_libdir_separator_CXX=:
15458 inherit_rpath_CXX=yes
15459 ;;
15460
cristy18304f92009-11-22 15:48:26 +000015461 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015462 case $cc_basename in
15463 KCC*)
15464 # Kuck and Associates, Inc. (KAI) C++ Compiler
15465
15466 # KCC will only create a shared library if the output file
15467 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15468 # to its proper name (with version) after linking.
15469 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'
15470 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'
15471 # Commands to make compiler produce verbose output that lists
15472 # what "hidden" libraries, object files and flags are used when
15473 # linking a shared library.
15474 #
15475 # There doesn't appear to be a way to prevent this compiler from
15476 # explicitly linking system object files so we need to strip them
15477 # from the output so that they don't get included in the library
15478 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015479 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'
cristy3ed852e2009-09-05 21:47:34 +000015480
15481 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15482 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15483
15484 # Archives containing C++ object files must be created using
15485 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15486 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15487 ;;
15488 icpc* | ecpc* )
15489 # Intel C++
15490 with_gnu_ld=yes
15491 # version 8.0 and above of icpc choke on multiply defined symbols
15492 # if we add $predep_objects and $postdep_objects, however 7.1 and
15493 # earlier do not add the objects themselves.
15494 case `$CC -V 2>&1` in
15495 *"Version 7."*)
15496 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15497 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'
15498 ;;
15499 *) # Version 8.0 or newer
15500 tmp_idyn=
15501 case $host_cpu in
15502 ia64*) tmp_idyn=' -i_dynamic';;
15503 esac
15504 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15505 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'
15506 ;;
15507 esac
15508 archive_cmds_need_lc_CXX=no
15509 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15510 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15511 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15512 ;;
15513 pgCC* | pgcpp*)
15514 # Portland Group C++ compiler
15515 case `$CC -V` in
15516 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15517 prelink_cmds_CXX='tpldir=Template.dir~
15518 rm -rf $tpldir~
15519 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15520 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15521 old_archive_cmds_CXX='tpldir=Template.dir~
15522 rm -rf $tpldir~
15523 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15524 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15525 $RANLIB $oldlib'
15526 archive_cmds_CXX='tpldir=Template.dir~
15527 rm -rf $tpldir~
15528 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15529 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15530 archive_expsym_cmds_CXX='tpldir=Template.dir~
15531 rm -rf $tpldir~
15532 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15533 $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'
15534 ;;
15535 *) # Version 6 will use weak symbols
15536 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15537 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'
15538 ;;
15539 esac
15540
15541 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15542 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000015543 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'
cristy3ed852e2009-09-05 21:47:34 +000015544 ;;
15545 cxx*)
15546 # Compaq C++
15547 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15548 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'
15549
15550 runpath_var=LD_RUN_PATH
15551 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15552 hardcode_libdir_separator_CXX=:
15553
15554 # Commands to make compiler produce verbose output that lists
15555 # what "hidden" libraries, object files and flags are used when
15556 # linking a shared library.
15557 #
15558 # There doesn't appear to be a way to prevent this compiler from
15559 # explicitly linking system object files so we need to strip them
15560 # from the output so that they don't get included in the library
15561 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015562 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'
cristy3ed852e2009-09-05 21:47:34 +000015563 ;;
cristy18304f92009-11-22 15:48:26 +000015564 xl*)
cristy3ed852e2009-09-05 21:47:34 +000015565 # IBM XL 8.0 on PPC, with GNU ld
15566 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15567 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15568 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15569 if test "x$supports_anon_versioning" = xyes; then
15570 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15571 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15572 echo "local: *; };" >> $output_objdir/$libname.ver~
15573 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15574 fi
15575 ;;
15576 *)
15577 case `$CC -V 2>&1 | sed 5q` in
15578 *Sun\ C*)
15579 # Sun C++ 5.9
15580 no_undefined_flag_CXX=' -zdefs'
15581 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15582 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'
15583 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000015584 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'
cristy3ed852e2009-09-05 21:47:34 +000015585 compiler_needs_object_CXX=yes
15586
15587 # Not sure whether something based on
15588 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15589 # would be better.
cristy18304f92009-11-22 15:48:26 +000015590 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000015591
15592 # Archives containing C++ object files must be created using
15593 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15594 # necessary to make sure instantiated templates are included
15595 # in the archive.
15596 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15597 ;;
15598 esac
15599 ;;
15600 esac
15601 ;;
15602
15603 lynxos*)
15604 # FIXME: insert proper C++ library support
15605 ld_shlibs_CXX=no
15606 ;;
15607
15608 m88k*)
15609 # FIXME: insert proper C++ library support
15610 ld_shlibs_CXX=no
15611 ;;
15612
15613 mvs*)
15614 case $cc_basename in
15615 cxx*)
15616 # FIXME: insert proper C++ library support
15617 ld_shlibs_CXX=no
15618 ;;
15619 *)
15620 # FIXME: insert proper C++ library support
15621 ld_shlibs_CXX=no
15622 ;;
15623 esac
15624 ;;
15625
15626 netbsd*)
15627 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15628 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15629 wlarc=
15630 hardcode_libdir_flag_spec_CXX='-R$libdir'
15631 hardcode_direct_CXX=yes
15632 hardcode_shlibpath_var_CXX=no
15633 fi
15634 # Workaround some broken pre-1.5 toolchains
15635 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15636 ;;
15637
15638 *nto* | *qnx*)
15639 ld_shlibs_CXX=yes
15640 ;;
15641
15642 openbsd2*)
15643 # C++ shared libraries are fairly broken
15644 ld_shlibs_CXX=no
15645 ;;
15646
15647 openbsd*)
15648 if test -f /usr/libexec/ld.so; then
15649 hardcode_direct_CXX=yes
15650 hardcode_shlibpath_var_CXX=no
15651 hardcode_direct_absolute_CXX=yes
15652 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15653 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15655 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15656 export_dynamic_flag_spec_CXX='${wl}-E'
15657 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15658 fi
cristy18304f92009-11-22 15:48:26 +000015659 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015660 else
15661 ld_shlibs_CXX=no
15662 fi
15663 ;;
15664
15665 osf3* | osf4* | osf5*)
15666 case $cc_basename in
15667 KCC*)
15668 # Kuck and Associates, Inc. (KAI) C++ Compiler
15669
15670 # KCC will only create a shared library if the output file
15671 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15672 # to its proper name (with version) after linking.
15673 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'
15674
15675 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15676 hardcode_libdir_separator_CXX=:
15677
15678 # Archives containing C++ object files must be created using
15679 # the KAI C++ compiler.
15680 case $host in
15681 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15682 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15683 esac
15684 ;;
15685 RCC*)
15686 # Rational C++ 2.4.1
15687 # FIXME: insert proper C++ library support
15688 ld_shlibs_CXX=no
15689 ;;
15690 cxx*)
15691 case $host in
15692 osf3*)
15693 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000015694 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'
cristy3ed852e2009-09-05 21:47:34 +000015695 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15696 ;;
15697 *)
15698 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000015699 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'
cristy3ed852e2009-09-05 21:47:34 +000015700 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15701 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000015702 $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~
cristy3ed852e2009-09-05 21:47:34 +000015703 $RM $lib.exp'
15704 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15705 ;;
15706 esac
15707
15708 hardcode_libdir_separator_CXX=:
15709
15710 # Commands to make compiler produce verbose output that lists
15711 # what "hidden" libraries, object files and flags are used when
15712 # linking a shared library.
15713 #
15714 # There doesn't appear to be a way to prevent this compiler from
15715 # explicitly linking system object files so we need to strip them
15716 # from the output so that they don't get included in the library
15717 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015718 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'
cristy3ed852e2009-09-05 21:47:34 +000015719 ;;
15720 *)
15721 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15722 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15723 case $host in
15724 osf3*)
cristy18304f92009-11-22 15:48:26 +000015725 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'
cristy3ed852e2009-09-05 21:47:34 +000015726 ;;
15727 *)
cristy18304f92009-11-22 15:48:26 +000015728 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'
cristy3ed852e2009-09-05 21:47:34 +000015729 ;;
15730 esac
15731
15732 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15733 hardcode_libdir_separator_CXX=:
15734
15735 # Commands to make compiler produce verbose output that lists
15736 # what "hidden" libraries, object files and flags are used when
15737 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015738 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015739
15740 else
15741 # FIXME: insert proper C++ library support
15742 ld_shlibs_CXX=no
15743 fi
15744 ;;
15745 esac
15746 ;;
15747
15748 psos*)
15749 # FIXME: insert proper C++ library support
15750 ld_shlibs_CXX=no
15751 ;;
15752
15753 sunos4*)
15754 case $cc_basename in
15755 CC*)
15756 # Sun C++ 4.x
15757 # FIXME: insert proper C++ library support
15758 ld_shlibs_CXX=no
15759 ;;
15760 lcc*)
15761 # Lucid
15762 # FIXME: insert proper C++ library support
15763 ld_shlibs_CXX=no
15764 ;;
15765 *)
15766 # FIXME: insert proper C++ library support
15767 ld_shlibs_CXX=no
15768 ;;
15769 esac
15770 ;;
15771
15772 solaris*)
15773 case $cc_basename in
15774 CC*)
15775 # Sun C++ 4.2, 5.x and Centerline C++
15776 archive_cmds_need_lc_CXX=yes
15777 no_undefined_flag_CXX=' -zdefs'
15778 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15779 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15780 $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'
15781
15782 hardcode_libdir_flag_spec_CXX='-R$libdir'
15783 hardcode_shlibpath_var_CXX=no
15784 case $host_os in
15785 solaris2.[0-5] | solaris2.[0-5].*) ;;
15786 *)
15787 # The compiler driver will combine and reorder linker options,
15788 # but understands `-z linker_flag'.
15789 # Supported since Solaris 2.6 (maybe 2.5.1?)
15790 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15791 ;;
15792 esac
15793 link_all_deplibs_CXX=yes
15794
cristy18304f92009-11-22 15:48:26 +000015795 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000015796
15797 # Archives containing C++ object files must be created using
15798 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15799 # necessary to make sure instantiated templates are included
15800 # in the archive.
15801 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15802 ;;
15803 gcx*)
15804 # Green Hills C++ Compiler
15805 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15806
15807 # The C++ compiler must be used to create the archive.
15808 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15809 ;;
15810 *)
15811 # GNU C++ compiler with Solaris linker
15812 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15813 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15814 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15815 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15816 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15817 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15818
15819 # Commands to make compiler produce verbose output that lists
15820 # what "hidden" libraries, object files and flags are used when
15821 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015823 else
15824 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15825 # platform.
15826 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15827 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15828 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15829
15830 # Commands to make compiler produce verbose output that lists
15831 # what "hidden" libraries, object files and flags are used when
15832 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015833 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015834 fi
15835
15836 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15837 case $host_os in
15838 solaris2.[0-5] | solaris2.[0-5].*) ;;
15839 *)
15840 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15841 ;;
15842 esac
15843 fi
15844 ;;
15845 esac
15846 ;;
15847
15848 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15849 no_undefined_flag_CXX='${wl}-z,text'
15850 archive_cmds_need_lc_CXX=no
15851 hardcode_shlibpath_var_CXX=no
15852 runpath_var='LD_RUN_PATH'
15853
15854 case $cc_basename in
15855 CC*)
15856 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15857 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15858 ;;
15859 *)
15860 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15861 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15862 ;;
15863 esac
15864 ;;
15865
15866 sysv5* | sco3.2v5* | sco5v6*)
15867 # Note: We can NOT use -z defs as we might desire, because we do not
15868 # link with -lc, and that would cause any symbols used from libc to
15869 # always be unresolved, which means just about no library would
15870 # ever link correctly. If we're not using GNU ld we use -z text
15871 # though, which does catch some bad symbols but isn't as heavy-handed
15872 # as -z defs.
15873 no_undefined_flag_CXX='${wl}-z,text'
15874 allow_undefined_flag_CXX='${wl}-z,nodefs'
15875 archive_cmds_need_lc_CXX=no
15876 hardcode_shlibpath_var_CXX=no
15877 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15878 hardcode_libdir_separator_CXX=':'
15879 link_all_deplibs_CXX=yes
15880 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15881 runpath_var='LD_RUN_PATH'
15882
15883 case $cc_basename in
15884 CC*)
15885 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15886 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15887 ;;
15888 *)
15889 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15890 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15891 ;;
15892 esac
15893 ;;
15894
15895 tandem*)
15896 case $cc_basename in
15897 NCC*)
15898 # NonStop-UX NCC 3.20
15899 # FIXME: insert proper C++ library support
15900 ld_shlibs_CXX=no
15901 ;;
15902 *)
15903 # FIXME: insert proper C++ library support
15904 ld_shlibs_CXX=no
15905 ;;
15906 esac
15907 ;;
15908
15909 vxworks*)
15910 # FIXME: insert proper C++ library support
15911 ld_shlibs_CXX=no
15912 ;;
15913
15914 *)
15915 # FIXME: insert proper C++ library support
15916 ld_shlibs_CXX=no
15917 ;;
15918 esac
15919
cristy8b350f62009-11-15 23:12:43 +000015920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000015921$as_echo "$ld_shlibs_CXX" >&6; }
15922 test "$ld_shlibs_CXX" = no && can_build_shared=no
15923
15924 GCC_CXX="$GXX"
15925 LD_CXX="$LD"
15926
15927 ## CAVEAT EMPTOR:
15928 ## There is no encapsulation within the following macros, do not change
15929 ## the running order or otherwise move them around unless you know exactly
15930 ## what you are doing...
15931 # Dependencies to place before and after the object being linked:
15932predep_objects_CXX=
15933postdep_objects_CXX=
15934predeps_CXX=
15935postdeps_CXX=
15936compiler_lib_search_path_CXX=
15937
15938cat > conftest.$ac_ext <<_LT_EOF
15939class Foo
15940{
15941public:
15942 Foo (void) { a = 0; }
15943private:
15944 int a;
15945};
15946_LT_EOF
15947
cristy8b350f62009-11-15 23:12:43 +000015948if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015949 (eval $ac_compile) 2>&5
15950 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15952 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000015953 # Parse the compiler output and extract the necessary
15954 # objects, libraries and library flags.
15955
15956 # Sentinel used to keep track of whether or not we are before
15957 # the conftest object file.
15958 pre_test_object_deps_done=no
15959
15960 for p in `eval "$output_verbose_link_cmd"`; do
15961 case $p in
15962
15963 -L* | -R* | -l*)
15964 # Some compilers place space between "-{L,R}" and the path.
15965 # Remove the space.
15966 if test $p = "-L" ||
15967 test $p = "-R"; then
15968 prev=$p
15969 continue
15970 else
15971 prev=
15972 fi
15973
15974 if test "$pre_test_object_deps_done" = no; then
15975 case $p in
15976 -L* | -R*)
15977 # Internal compiler library paths should come after those
15978 # provided the user. The postdeps already come after the
15979 # user supplied libs so there is no need to process them.
15980 if test -z "$compiler_lib_search_path_CXX"; then
15981 compiler_lib_search_path_CXX="${prev}${p}"
15982 else
15983 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15984 fi
15985 ;;
15986 # The "-l" case would never come before the object being
15987 # linked, so don't bother handling this case.
15988 esac
15989 else
15990 if test -z "$postdeps_CXX"; then
15991 postdeps_CXX="${prev}${p}"
15992 else
15993 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15994 fi
15995 fi
15996 ;;
15997
15998 *.$objext)
15999 # This assumes that the test object file only shows up
16000 # once in the compiler output.
16001 if test "$p" = "conftest.$objext"; then
16002 pre_test_object_deps_done=yes
16003 continue
16004 fi
16005
16006 if test "$pre_test_object_deps_done" = no; then
16007 if test -z "$predep_objects_CXX"; then
16008 predep_objects_CXX="$p"
16009 else
16010 predep_objects_CXX="$predep_objects_CXX $p"
16011 fi
16012 else
16013 if test -z "$postdep_objects_CXX"; then
16014 postdep_objects_CXX="$p"
16015 else
16016 postdep_objects_CXX="$postdep_objects_CXX $p"
16017 fi
16018 fi
16019 ;;
16020
16021 *) ;; # Ignore the rest.
16022
16023 esac
16024 done
16025
16026 # Clean up.
16027 rm -f a.out a.exe
16028else
16029 echo "libtool.m4: error: problem compiling CXX test program"
16030fi
16031
16032$RM -f confest.$objext
16033
16034# PORTME: override above test on systems where it is broken
16035case $host_os in
16036interix[3-9]*)
16037 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16038 # hack all around it, let's just trust "g++" to DTRT.
16039 predep_objects_CXX=
16040 postdep_objects_CXX=
16041 postdeps_CXX=
16042 ;;
16043
16044linux*)
16045 case `$CC -V 2>&1 | sed 5q` in
16046 *Sun\ C*)
16047 # Sun C++ 5.9
16048
16049 # The more standards-conforming stlport4 library is
16050 # incompatible with the Cstd library. Avoid specifying
16051 # it if it's in CXXFLAGS. Ignore libCrun as
16052 # -library=stlport4 depends on it.
16053 case " $CXX $CXXFLAGS " in
16054 *" -library=stlport4 "*)
16055 solaris_use_stlport4=yes
16056 ;;
16057 esac
16058
16059 if test "$solaris_use_stlport4" != yes; then
16060 postdeps_CXX='-library=Cstd -library=Crun'
16061 fi
16062 ;;
16063 esac
16064 ;;
16065
16066solaris*)
16067 case $cc_basename in
16068 CC*)
16069 # The more standards-conforming stlport4 library is
16070 # incompatible with the Cstd library. Avoid specifying
16071 # it if it's in CXXFLAGS. Ignore libCrun as
16072 # -library=stlport4 depends on it.
16073 case " $CXX $CXXFLAGS " in
16074 *" -library=stlport4 "*)
16075 solaris_use_stlport4=yes
16076 ;;
16077 esac
16078
16079 # Adding this requires a known-good setup of shared libraries for
16080 # Sun compiler versions before 5.6, else PIC objects from an old
16081 # archive will be linked into the output, leading to subtle bugs.
16082 if test "$solaris_use_stlport4" != yes; then
16083 postdeps_CXX='-library=Cstd -library=Crun'
16084 fi
16085 ;;
16086 esac
16087 ;;
16088esac
16089
16090
16091case " $postdeps_CXX " in
16092*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16093esac
16094 compiler_lib_search_dirs_CXX=
16095if test -n "${compiler_lib_search_path_CXX}"; then
16096 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16097fi
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129 lt_prog_compiler_wl_CXX=
16130lt_prog_compiler_pic_CXX=
16131lt_prog_compiler_static_CXX=
16132
cristy8b350f62009-11-15 23:12:43 +000016133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016134$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16135
16136 # C++ specific cases for pic, static, wl, etc.
16137 if test "$GXX" = yes; then
16138 lt_prog_compiler_wl_CXX='-Wl,'
16139 lt_prog_compiler_static_CXX='-static'
16140
16141 case $host_os in
16142 aix*)
16143 # All AIX code is PIC.
16144 if test "$host_cpu" = ia64; then
16145 # AIX 5 now supports IA64 processor
16146 lt_prog_compiler_static_CXX='-Bstatic'
16147 fi
16148 ;;
16149
16150 amigaos*)
16151 case $host_cpu in
16152 powerpc)
16153 # see comment about AmigaOS4 .so support
16154 lt_prog_compiler_pic_CXX='-fPIC'
16155 ;;
16156 m68k)
16157 # FIXME: we need at least 68020 code to build shared libraries, but
16158 # adding the `-m68020' flag to GCC prevents building anything better,
16159 # like `-m68040'.
16160 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16161 ;;
16162 esac
16163 ;;
16164
16165 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16166 # PIC is the default for these OSes.
16167 ;;
16168 mingw* | cygwin* | os2* | pw32* | cegcc*)
16169 # This hack is so that the source file can tell whether it is being
16170 # built for inclusion in a dll (and should export symbols for example).
16171 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16172 # (--disable-auto-import) libraries
16173 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16174 ;;
16175 darwin* | rhapsody*)
16176 # PIC is the default on this platform
16177 # Common symbols not allowed in MH_DYLIB files
16178 lt_prog_compiler_pic_CXX='-fno-common'
16179 ;;
16180 *djgpp*)
16181 # DJGPP does not support shared libraries at all
16182 lt_prog_compiler_pic_CXX=
16183 ;;
16184 interix[3-9]*)
16185 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16186 # Instead, we relocate shared libraries at runtime.
16187 ;;
16188 sysv4*MP*)
16189 if test -d /usr/nec; then
16190 lt_prog_compiler_pic_CXX=-Kconform_pic
16191 fi
16192 ;;
16193 hpux*)
16194 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16195 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16196 # sets the default TLS model and affects inlining.
16197 case $host_cpu in
16198 hppa*64*)
16199 ;;
16200 *)
16201 lt_prog_compiler_pic_CXX='-fPIC'
16202 ;;
16203 esac
16204 ;;
16205 *qnx* | *nto*)
16206 # QNX uses GNU C++, but need to define -shared option too, otherwise
16207 # it will coredump.
16208 lt_prog_compiler_pic_CXX='-fPIC -shared'
16209 ;;
16210 *)
16211 lt_prog_compiler_pic_CXX='-fPIC'
16212 ;;
16213 esac
16214 else
16215 case $host_os in
16216 aix[4-9]*)
16217 # All AIX code is PIC.
16218 if test "$host_cpu" = ia64; then
16219 # AIX 5 now supports IA64 processor
16220 lt_prog_compiler_static_CXX='-Bstatic'
16221 else
16222 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16223 fi
16224 ;;
16225 chorus*)
16226 case $cc_basename in
16227 cxch68*)
16228 # Green Hills C++ Compiler
16229 # _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"
16230 ;;
16231 esac
16232 ;;
16233 dgux*)
16234 case $cc_basename in
16235 ec++*)
16236 lt_prog_compiler_pic_CXX='-KPIC'
16237 ;;
16238 ghcx*)
16239 # Green Hills C++ Compiler
16240 lt_prog_compiler_pic_CXX='-pic'
16241 ;;
16242 *)
16243 ;;
16244 esac
16245 ;;
16246 freebsd* | dragonfly*)
16247 # FreeBSD uses GNU C++
16248 ;;
16249 hpux9* | hpux10* | hpux11*)
16250 case $cc_basename in
16251 CC*)
16252 lt_prog_compiler_wl_CXX='-Wl,'
16253 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16254 if test "$host_cpu" != ia64; then
16255 lt_prog_compiler_pic_CXX='+Z'
16256 fi
16257 ;;
16258 aCC*)
16259 lt_prog_compiler_wl_CXX='-Wl,'
16260 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16261 case $host_cpu in
16262 hppa*64*|ia64*)
16263 # +Z the default
16264 ;;
16265 *)
16266 lt_prog_compiler_pic_CXX='+Z'
16267 ;;
16268 esac
16269 ;;
16270 *)
16271 ;;
16272 esac
16273 ;;
16274 interix*)
16275 # This is c89, which is MS Visual C++ (no shared libs)
16276 # Anyone wants to do a port?
16277 ;;
16278 irix5* | irix6* | nonstopux*)
16279 case $cc_basename in
16280 CC*)
16281 lt_prog_compiler_wl_CXX='-Wl,'
16282 lt_prog_compiler_static_CXX='-non_shared'
16283 # CC pic flag -KPIC is the default.
16284 ;;
16285 *)
16286 ;;
16287 esac
16288 ;;
cristy18304f92009-11-22 15:48:26 +000016289 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016290 case $cc_basename in
16291 KCC*)
16292 # KAI C++ Compiler
16293 lt_prog_compiler_wl_CXX='--backend -Wl,'
16294 lt_prog_compiler_pic_CXX='-fPIC'
16295 ;;
16296 ecpc* )
16297 # old Intel C++ for x86_64 which still supported -KPIC.
16298 lt_prog_compiler_wl_CXX='-Wl,'
16299 lt_prog_compiler_pic_CXX='-KPIC'
16300 lt_prog_compiler_static_CXX='-static'
16301 ;;
16302 icpc* )
16303 # Intel C++, used to be incompatible with GCC.
16304 # ICC 10 doesn't accept -KPIC any more.
16305 lt_prog_compiler_wl_CXX='-Wl,'
16306 lt_prog_compiler_pic_CXX='-fPIC'
16307 lt_prog_compiler_static_CXX='-static'
16308 ;;
16309 pgCC* | pgcpp*)
16310 # Portland Group C++ compiler
16311 lt_prog_compiler_wl_CXX='-Wl,'
16312 lt_prog_compiler_pic_CXX='-fpic'
16313 lt_prog_compiler_static_CXX='-Bstatic'
16314 ;;
16315 cxx*)
16316 # Compaq C++
16317 # Make sure the PIC flag is empty. It appears that all Alpha
16318 # Linux and Compaq Tru64 Unix objects are PIC.
16319 lt_prog_compiler_pic_CXX=
16320 lt_prog_compiler_static_CXX='-non_shared'
16321 ;;
cristy18304f92009-11-22 15:48:26 +000016322 xlc* | xlC*)
16323 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000016324 lt_prog_compiler_wl_CXX='-Wl,'
16325 lt_prog_compiler_pic_CXX='-qpic'
16326 lt_prog_compiler_static_CXX='-qstaticlink'
16327 ;;
16328 *)
16329 case `$CC -V 2>&1 | sed 5q` in
16330 *Sun\ C*)
16331 # Sun C++ 5.9
16332 lt_prog_compiler_pic_CXX='-KPIC'
16333 lt_prog_compiler_static_CXX='-Bstatic'
16334 lt_prog_compiler_wl_CXX='-Qoption ld '
16335 ;;
16336 esac
16337 ;;
16338 esac
16339 ;;
16340 lynxos*)
16341 ;;
16342 m88k*)
16343 ;;
16344 mvs*)
16345 case $cc_basename in
16346 cxx*)
16347 lt_prog_compiler_pic_CXX='-W c,exportall'
16348 ;;
16349 *)
16350 ;;
16351 esac
16352 ;;
16353 netbsd*)
16354 ;;
16355 *qnx* | *nto*)
16356 # QNX uses GNU C++, but need to define -shared option too, otherwise
16357 # it will coredump.
16358 lt_prog_compiler_pic_CXX='-fPIC -shared'
16359 ;;
16360 osf3* | osf4* | osf5*)
16361 case $cc_basename in
16362 KCC*)
16363 lt_prog_compiler_wl_CXX='--backend -Wl,'
16364 ;;
16365 RCC*)
16366 # Rational C++ 2.4.1
16367 lt_prog_compiler_pic_CXX='-pic'
16368 ;;
16369 cxx*)
16370 # Digital/Compaq C++
16371 lt_prog_compiler_wl_CXX='-Wl,'
16372 # Make sure the PIC flag is empty. It appears that all Alpha
16373 # Linux and Compaq Tru64 Unix objects are PIC.
16374 lt_prog_compiler_pic_CXX=
16375 lt_prog_compiler_static_CXX='-non_shared'
16376 ;;
16377 *)
16378 ;;
16379 esac
16380 ;;
16381 psos*)
16382 ;;
16383 solaris*)
16384 case $cc_basename in
16385 CC*)
16386 # Sun C++ 4.2, 5.x and Centerline C++
16387 lt_prog_compiler_pic_CXX='-KPIC'
16388 lt_prog_compiler_static_CXX='-Bstatic'
16389 lt_prog_compiler_wl_CXX='-Qoption ld '
16390 ;;
16391 gcx*)
16392 # Green Hills C++ Compiler
16393 lt_prog_compiler_pic_CXX='-PIC'
16394 ;;
16395 *)
16396 ;;
16397 esac
16398 ;;
16399 sunos4*)
16400 case $cc_basename in
16401 CC*)
16402 # Sun C++ 4.x
16403 lt_prog_compiler_pic_CXX='-pic'
16404 lt_prog_compiler_static_CXX='-Bstatic'
16405 ;;
16406 lcc*)
16407 # Lucid
16408 lt_prog_compiler_pic_CXX='-pic'
16409 ;;
16410 *)
16411 ;;
16412 esac
16413 ;;
16414 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16415 case $cc_basename in
16416 CC*)
16417 lt_prog_compiler_wl_CXX='-Wl,'
16418 lt_prog_compiler_pic_CXX='-KPIC'
16419 lt_prog_compiler_static_CXX='-Bstatic'
16420 ;;
16421 esac
16422 ;;
16423 tandem*)
16424 case $cc_basename in
16425 NCC*)
16426 # NonStop-UX NCC 3.20
16427 lt_prog_compiler_pic_CXX='-KPIC'
16428 ;;
16429 *)
16430 ;;
16431 esac
16432 ;;
16433 vxworks*)
16434 ;;
16435 *)
16436 lt_prog_compiler_can_build_shared_CXX=no
16437 ;;
16438 esac
16439 fi
16440
16441case $host_os in
16442 # For platforms which do not support PIC, -DPIC is meaningless:
16443 *djgpp*)
16444 lt_prog_compiler_pic_CXX=
16445 ;;
16446 *)
16447 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16448 ;;
16449esac
cristy8b350f62009-11-15 23:12:43 +000016450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016451$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16452
16453
16454
16455#
16456# Check to make sure the PIC flag actually works.
16457#
16458if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000016459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
cristy3ed852e2009-09-05 21:47:34 +000016460$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016461if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016462 $as_echo_n "(cached) " >&6
16463else
16464 lt_cv_prog_compiler_pic_works_CXX=no
16465 ac_outfile=conftest.$ac_objext
16466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16467 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16468 # Insert the option either (1) after the last *FLAGS variable, or
16469 # (2) before a word containing "conftest.", or (3) at the end.
16470 # Note that $ac_compile itself does not contain backslashes and begins
16471 # with a dollar sign (not a hyphen), so the echo should work correctly.
16472 # The option is referenced via a variable to avoid confusing sed.
16473 lt_compile=`echo "$ac_compile" | $SED \
16474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16476 -e 's:$: $lt_compiler_flag:'`
cristy18304f92009-11-22 15:48:26 +000016477 (eval echo "\"\$as_me:16477: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016478 (eval "$lt_compile" 2>conftest.err)
16479 ac_status=$?
16480 cat conftest.err >&5
cristy18304f92009-11-22 15:48:26 +000016481 echo "$as_me:16481: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016482 if (exit $ac_status) && test -s "$ac_outfile"; then
16483 # The compiler can only warn and ignore the option if not recognized
16484 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000016485 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16487 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16488 lt_cv_prog_compiler_pic_works_CXX=yes
16489 fi
16490 fi
16491 $RM conftest*
16492
16493fi
cristy8b350f62009-11-15 23:12:43 +000016494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016495$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16496
16497if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16498 case $lt_prog_compiler_pic_CXX in
16499 "" | " "*) ;;
16500 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16501 esac
16502else
16503 lt_prog_compiler_pic_CXX=
16504 lt_prog_compiler_can_build_shared_CXX=no
16505fi
16506
16507fi
16508
16509
16510
16511#
16512# Check to make sure the static flag actually works.
16513#
16514wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000016515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000016516$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016517if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016518 $as_echo_n "(cached) " >&6
16519else
16520 lt_cv_prog_compiler_static_works_CXX=no
16521 save_LDFLAGS="$LDFLAGS"
16522 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16523 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16524 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16525 # The linker can only warn and ignore the option if not recognized
16526 # So say no if there are warnings
16527 if test -s conftest.err; then
16528 # Append any errors to the config.log.
16529 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000016530 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16532 if diff conftest.exp conftest.er2 >/dev/null; then
16533 lt_cv_prog_compiler_static_works_CXX=yes
16534 fi
16535 else
16536 lt_cv_prog_compiler_static_works_CXX=yes
16537 fi
16538 fi
16539 $RM -r conftest*
16540 LDFLAGS="$save_LDFLAGS"
16541
16542fi
cristy8b350f62009-11-15 23:12:43 +000016543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016544$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16545
16546if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16547 :
16548else
16549 lt_prog_compiler_static_CXX=
16550fi
16551
16552
16553
16554
cristy8b350f62009-11-15 23:12:43 +000016555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016556$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016557if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016558 $as_echo_n "(cached) " >&6
16559else
16560 lt_cv_prog_compiler_c_o_CXX=no
16561 $RM -r conftest 2>/dev/null
16562 mkdir conftest
16563 cd conftest
16564 mkdir out
16565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16566
16567 lt_compiler_flag="-o out/conftest2.$ac_objext"
16568 # Insert the option either (1) after the last *FLAGS variable, or
16569 # (2) before a word containing "conftest.", or (3) at the end.
16570 # Note that $ac_compile itself does not contain backslashes and begins
16571 # with a dollar sign (not a hyphen), so the echo should work correctly.
16572 lt_compile=`echo "$ac_compile" | $SED \
16573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16575 -e 's:$: $lt_compiler_flag:'`
cristy18304f92009-11-22 15:48:26 +000016576 (eval echo "\"\$as_me:16576: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016577 (eval "$lt_compile" 2>out/conftest.err)
16578 ac_status=$?
16579 cat out/conftest.err >&5
cristy18304f92009-11-22 15:48:26 +000016580 echo "$as_me:16580: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16582 then
16583 # The compiler can only warn and ignore the option if not recognized
16584 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000016585 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16588 lt_cv_prog_compiler_c_o_CXX=yes
16589 fi
16590 fi
16591 chmod u+w . 2>&5
16592 $RM conftest*
16593 # SGI C++ compiler will create directory out/ii_files/ for
16594 # template instantiation
16595 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16596 $RM out/* && rmdir out
16597 cd ..
16598 $RM -r conftest
16599 $RM conftest*
16600
16601fi
cristy8b350f62009-11-15 23:12:43 +000016602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016603$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16604
16605
16606
cristy8b350f62009-11-15 23:12:43 +000016607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016608$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016609if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016610 $as_echo_n "(cached) " >&6
16611else
16612 lt_cv_prog_compiler_c_o_CXX=no
16613 $RM -r conftest 2>/dev/null
16614 mkdir conftest
16615 cd conftest
16616 mkdir out
16617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16618
16619 lt_compiler_flag="-o out/conftest2.$ac_objext"
16620 # Insert the option either (1) after the last *FLAGS variable, or
16621 # (2) before a word containing "conftest.", or (3) at the end.
16622 # Note that $ac_compile itself does not contain backslashes and begins
16623 # with a dollar sign (not a hyphen), so the echo should work correctly.
16624 lt_compile=`echo "$ac_compile" | $SED \
16625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16627 -e 's:$: $lt_compiler_flag:'`
cristy18304f92009-11-22 15:48:26 +000016628 (eval echo "\"\$as_me:16628: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016629 (eval "$lt_compile" 2>out/conftest.err)
16630 ac_status=$?
16631 cat out/conftest.err >&5
cristy18304f92009-11-22 15:48:26 +000016632 echo "$as_me:16632: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016633 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16634 then
16635 # The compiler can only warn and ignore the option if not recognized
16636 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000016637 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016638 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16639 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16640 lt_cv_prog_compiler_c_o_CXX=yes
16641 fi
16642 fi
16643 chmod u+w . 2>&5
16644 $RM conftest*
16645 # SGI C++ compiler will create directory out/ii_files/ for
16646 # template instantiation
16647 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16648 $RM out/* && rmdir out
16649 cd ..
16650 $RM -r conftest
16651 $RM conftest*
16652
16653fi
cristy8b350f62009-11-15 23:12:43 +000016654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016655$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16656
16657
16658
16659
16660hard_links="nottested"
16661if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16662 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000016663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016664$as_echo_n "checking if we can lock with hard links... " >&6; }
16665 hard_links=yes
16666 $RM conftest*
16667 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16668 touch conftest.a
16669 ln conftest.a conftest.b 2>&5 || hard_links=no
16670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000016671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016672$as_echo "$hard_links" >&6; }
16673 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000016674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cristy3ed852e2009-09-05 21:47:34 +000016675$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16676 need_locks=warn
16677 fi
16678else
16679 need_locks=no
16680fi
16681
16682
16683
cristy8b350f62009-11-15 23:12:43 +000016684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016685$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16686
16687 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16688 case $host_os in
16689 aix[4-9]*)
16690 # If we're using GNU nm, then we don't want the "-C" option.
16691 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16692 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000016693 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'
cristy3ed852e2009-09-05 21:47:34 +000016694 else
16695 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'
16696 fi
16697 ;;
16698 pw32*)
16699 export_symbols_cmds_CXX="$ltdll_cmds"
16700 ;;
16701 cygwin* | mingw* | cegcc*)
16702 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'
16703 ;;
16704 *)
16705 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16706 ;;
16707 esac
16708 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16709
cristy8b350f62009-11-15 23:12:43 +000016710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016711$as_echo "$ld_shlibs_CXX" >&6; }
16712test "$ld_shlibs_CXX" = no && can_build_shared=no
16713
16714with_gnu_ld_CXX=$with_gnu_ld
16715
16716
16717
16718
16719
16720
16721#
16722# Do we need to explicitly link libc?
16723#
16724case "x$archive_cmds_need_lc_CXX" in
16725x|xyes)
16726 # Assume -lc should be added
16727 archive_cmds_need_lc_CXX=yes
16728
16729 if test "$enable_shared" = yes && test "$GCC" = yes; then
16730 case $archive_cmds_CXX in
16731 *'~'*)
16732 # FIXME: we may have to deal with multi-command sequences.
16733 ;;
16734 '$CC '*)
16735 # Test whether the compiler implicitly links with -lc since on some
16736 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16737 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000016738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000016739$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000016740 $RM conftest*
16741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016742
cristy18304f92009-11-22 15:48:26 +000016743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016744 (eval $ac_compile) 2>&5
16745 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16747 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000016748 soname=conftest
16749 lib=conftest
16750 libobjs=conftest.$ac_objext
16751 deplibs=
16752 wl=$lt_prog_compiler_wl_CXX
16753 pic_flag=$lt_prog_compiler_pic_CXX
16754 compiler_flags=-v
16755 linker_flags=-v
16756 verstring=
16757 output_objdir=.
16758 libname=conftest
16759 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16760 allow_undefined_flag_CXX=
16761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016762 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16763 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16765 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000016766 then
16767 archive_cmds_need_lc_CXX=no
16768 else
16769 archive_cmds_need_lc_CXX=yes
16770 fi
16771 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16772 else
16773 cat conftest.err 1>&5
16774 fi
16775 $RM conftest*
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16777$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000016778 ;;
16779 esac
16780 fi
16781 ;;
16782esac
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
cristy8b350f62009-11-15 23:12:43 +000016847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000016848$as_echo_n "checking dynamic linker characteristics... " >&6; }
16849
16850library_names_spec=
16851libname_spec='lib$name'
16852soname_spec=
16853shrext_cmds=".so"
16854postinstall_cmds=
16855postuninstall_cmds=
16856finish_cmds=
16857finish_eval=
16858shlibpath_var=
16859shlibpath_overrides_runpath=unknown
16860version_type=none
16861dynamic_linker="$host_os ld.so"
16862sys_lib_dlsearch_path_spec="/lib /usr/lib"
16863need_lib_prefix=unknown
16864hardcode_into_libs=no
16865
16866# when you set need_version to no, make sure it does not cause -set_version
16867# flags to be left without arguments
16868need_version=unknown
16869
16870case $host_os in
16871aix3*)
16872 version_type=linux
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16874 shlibpath_var=LIBPATH
16875
16876 # AIX 3 has no versioning support, so we append a major version to the name.
16877 soname_spec='${libname}${release}${shared_ext}$major'
16878 ;;
16879
16880aix[4-9]*)
16881 version_type=linux
16882 need_lib_prefix=no
16883 need_version=no
16884 hardcode_into_libs=yes
16885 if test "$host_cpu" = ia64; then
16886 # AIX 5 supports IA64
16887 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16888 shlibpath_var=LD_LIBRARY_PATH
16889 else
16890 # With GCC up to 2.95.x, collect2 would create an import file
16891 # for dependence libraries. The import file would start with
16892 # the line `#! .'. This would cause the generated library to
16893 # depend on `.', always an invalid library. This was fixed in
16894 # development snapshots of GCC prior to 3.0.
16895 case $host_os in
16896 aix4 | aix4.[01] | aix4.[01].*)
16897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16898 echo ' yes '
16899 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16900 :
16901 else
16902 can_build_shared=no
16903 fi
16904 ;;
16905 esac
16906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16907 # soname into executable. Probably we can add versioning support to
16908 # collect2, so additional links can be useful in future.
16909 if test "$aix_use_runtimelinking" = yes; then
16910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16911 # instead of lib<name>.a to let people know that these are not
16912 # typical AIX shared libraries.
16913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16914 else
16915 # We preserve .a as extension for shared libraries through AIX4.2
16916 # and later when we are not doing run time linking.
16917 library_names_spec='${libname}${release}.a $libname.a'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 fi
16920 shlibpath_var=LIBPATH
16921 fi
16922 ;;
16923
16924amigaos*)
16925 case $host_cpu in
16926 powerpc)
16927 # Since July 2007 AmigaOS4 officially supports .so libraries.
16928 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930 ;;
16931 m68k)
16932 library_names_spec='$libname.ixlibrary $libname.a'
16933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000016934 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'
cristy3ed852e2009-09-05 21:47:34 +000016935 ;;
16936 esac
16937 ;;
16938
16939beos*)
16940 library_names_spec='${libname}${shared_ext}'
16941 dynamic_linker="$host_os ld.so"
16942 shlibpath_var=LIBRARY_PATH
16943 ;;
16944
16945bsdi[45]*)
16946 version_type=linux
16947 need_version=no
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16949 soname_spec='${libname}${release}${shared_ext}$major'
16950 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16951 shlibpath_var=LD_LIBRARY_PATH
16952 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16953 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16954 # the default ld.so.conf also contains /usr/contrib/lib and
16955 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16956 # libtool to hard-code these into programs
16957 ;;
16958
16959cygwin* | mingw* | pw32* | cegcc*)
16960 version_type=windows
16961 shrext_cmds=".dll"
16962 need_version=no
16963 need_lib_prefix=no
16964
16965 case $GCC,$host_os in
16966 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16967 library_names_spec='$libname.dll.a'
16968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16969 postinstall_cmds='base_file=`basename \${file}`~
16970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16971 dldir=$destdir/`dirname \$dlpath`~
16972 test -d \$dldir || mkdir -p \$dldir~
16973 $install_prog $dir/$dlname \$dldir/$dlname~
16974 chmod a+x \$dldir/$dlname~
16975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16977 fi'
16978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16979 dlpath=$dir/\$dldll~
16980 $RM \$dlpath'
16981 shlibpath_overrides_runpath=yes
16982
16983 case $host_os in
16984 cygwin*)
16985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000016987 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000016988 ;;
16989 mingw* | cegcc*)
16990 # MinGW DLLs use traditional 'lib' prefix
16991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000016992 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16993 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16994 # It is most probably a Windows format PATH printed by
16995 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16996 # path with ; separators, and with drive letters. We can handle the
16997 # drive letters (cygwin fileutils understands them), so leave them,
16998 # especially as we might pass files found there to a mingw objdump,
16999 # which wouldn't understand a cygwinified path. Ahh.
17000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17001 else
17002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17003 fi
cristy3ed852e2009-09-05 21:47:34 +000017004 ;;
17005 pw32*)
17006 # pw32 DLLs use 'pw' prefix rather than 'lib'
17007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17008 ;;
17009 esac
17010 ;;
17011
17012 *)
17013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17014 ;;
17015 esac
17016 dynamic_linker='Win32 ld.exe'
17017 # FIXME: first we should search . and the directory the executable is in
17018 shlibpath_var=PATH
17019 ;;
17020
17021darwin* | rhapsody*)
17022 dynamic_linker="$host_os dyld"
17023 version_type=darwin
17024 need_lib_prefix=no
17025 need_version=no
17026 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17027 soname_spec='${libname}${release}${major}$shared_ext'
17028 shlibpath_overrides_runpath=yes
17029 shlibpath_var=DYLD_LIBRARY_PATH
17030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17031
17032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17033 ;;
17034
17035dgux*)
17036 version_type=linux
17037 need_lib_prefix=no
17038 need_version=no
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17040 soname_spec='${libname}${release}${shared_ext}$major'
17041 shlibpath_var=LD_LIBRARY_PATH
17042 ;;
17043
17044freebsd1*)
17045 dynamic_linker=no
17046 ;;
17047
17048freebsd* | dragonfly*)
17049 # DragonFly does not have aout. When/if they implement a new
17050 # versioning mechanism, adjust this.
17051 if test -x /usr/bin/objformat; then
17052 objformat=`/usr/bin/objformat`
17053 else
17054 case $host_os in
17055 freebsd[123]*) objformat=aout ;;
17056 *) objformat=elf ;;
17057 esac
17058 fi
17059 version_type=freebsd-$objformat
17060 case $version_type in
17061 freebsd-elf*)
17062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17063 need_version=no
17064 need_lib_prefix=no
17065 ;;
17066 freebsd-*)
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17068 need_version=yes
17069 ;;
17070 esac
17071 shlibpath_var=LD_LIBRARY_PATH
17072 case $host_os in
17073 freebsd2*)
17074 shlibpath_overrides_runpath=yes
17075 ;;
17076 freebsd3.[01]* | freebsdelf3.[01]*)
17077 shlibpath_overrides_runpath=yes
17078 hardcode_into_libs=yes
17079 ;;
17080 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17081 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17082 shlibpath_overrides_runpath=no
17083 hardcode_into_libs=yes
17084 ;;
17085 *) # from 4.6 on, and DragonFly
17086 shlibpath_overrides_runpath=yes
17087 hardcode_into_libs=yes
17088 ;;
17089 esac
17090 ;;
17091
17092gnu*)
17093 version_type=linux
17094 need_lib_prefix=no
17095 need_version=no
17096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17097 soname_spec='${libname}${release}${shared_ext}$major'
17098 shlibpath_var=LD_LIBRARY_PATH
17099 hardcode_into_libs=yes
17100 ;;
17101
17102hpux9* | hpux10* | hpux11*)
17103 # Give a soname corresponding to the major version so that dld.sl refuses to
17104 # link against other versions.
17105 version_type=sunos
17106 need_lib_prefix=no
17107 need_version=no
17108 case $host_cpu in
17109 ia64*)
17110 shrext_cmds='.so'
17111 hardcode_into_libs=yes
17112 dynamic_linker="$host_os dld.so"
17113 shlibpath_var=LD_LIBRARY_PATH
17114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17116 soname_spec='${libname}${release}${shared_ext}$major'
17117 if test "X$HPUX_IA64_MODE" = X32; then
17118 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17119 else
17120 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17121 fi
17122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17123 ;;
17124 hppa*64*)
17125 shrext_cmds='.sl'
17126 hardcode_into_libs=yes
17127 dynamic_linker="$host_os dld.sl"
17128 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131 soname_spec='${libname}${release}${shared_ext}$major'
17132 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17134 ;;
17135 *)
17136 shrext_cmds='.sl'
17137 dynamic_linker="$host_os dld.sl"
17138 shlibpath_var=SHLIB_PATH
17139 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17141 soname_spec='${libname}${release}${shared_ext}$major'
17142 ;;
17143 esac
cristy18304f92009-11-22 15:48:26 +000017144 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000017145 postinstall_cmds='chmod 555 $lib'
17146 ;;
17147
17148interix[3-9]*)
17149 version_type=linux
17150 need_lib_prefix=no
17151 need_version=no
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 shlibpath_overrides_runpath=no
17157 hardcode_into_libs=yes
17158 ;;
17159
17160irix5* | irix6* | nonstopux*)
17161 case $host_os in
17162 nonstopux*) version_type=nonstopux ;;
17163 *)
17164 if test "$lt_cv_prog_gnu_ld" = yes; then
17165 version_type=linux
17166 else
17167 version_type=irix
17168 fi ;;
17169 esac
17170 need_lib_prefix=no
17171 need_version=no
17172 soname_spec='${libname}${release}${shared_ext}$major'
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17174 case $host_os in
17175 irix5* | nonstopux*)
17176 libsuff= shlibsuff=
17177 ;;
17178 *)
17179 case $LD in # libtool.m4 will add one of these switches to LD
17180 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17181 libsuff= shlibsuff= libmagic=32-bit;;
17182 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17183 libsuff=32 shlibsuff=N32 libmagic=N32;;
17184 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17185 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17186 *) libsuff= shlibsuff= libmagic=never-match;;
17187 esac
17188 ;;
17189 esac
17190 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17191 shlibpath_overrides_runpath=no
17192 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17193 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17194 hardcode_into_libs=yes
17195 ;;
17196
17197# No shared lib support for Linux oldld, aout, or coff.
17198linux*oldld* | linux*aout* | linux*coff*)
17199 dynamic_linker=no
17200 ;;
17201
17202# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000017203linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017204 version_type=linux
17205 need_lib_prefix=no
17206 need_version=no
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17208 soname_spec='${libname}${release}${shared_ext}$major'
17209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17210 shlibpath_var=LD_LIBRARY_PATH
17211 shlibpath_overrides_runpath=no
17212 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000017213 save_LDFLAGS=$LDFLAGS
17214 save_libdir=$libdir
17215 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17216 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017218/* end confdefs.h. */
17219
17220int
17221main ()
17222{
17223
17224 ;
17225 return 0;
17226}
17227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017228if ac_fn_cxx_try_link "$LINENO"; then :
17229 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000017230 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000017231fi
cristy3ed852e2009-09-05 21:47:34 +000017232fi
cristy8b350f62009-11-15 23:12:43 +000017233rm -f core conftest.err conftest.$ac_objext \
17234 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000017235 LDFLAGS=$save_LDFLAGS
17236 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000017237
17238 # This implies no fast_install, which is unacceptable.
17239 # Some rework will be needed to allow for fast_install
17240 # before this can be enabled.
17241 hardcode_into_libs=yes
17242
cristy3ed852e2009-09-05 21:47:34 +000017243 # Append ld.so.conf contents to the search path
17244 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000017245 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' ' '`
cristy932c9122009-11-19 13:57:03 +000017246 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000017247 fi
17248
17249 # We used to test for /lib/ld.so.1 and disable shared libraries on
17250 # powerpc, because MkLinux only supported shared libraries with the
17251 # GNU dynamic linker. Since this was broken with cross compilers,
17252 # most powerpc-linux boxes support dynamic linking these days and
17253 # people can always --disable-shared, the test was removed, and we
17254 # assume the GNU/Linux dynamic linker is in use.
17255 dynamic_linker='GNU/Linux ld.so'
17256 ;;
17257
17258netbsd*)
17259 version_type=sunos
17260 need_lib_prefix=no
17261 need_version=no
17262 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17265 dynamic_linker='NetBSD (a.out) ld.so'
17266 else
17267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17268 soname_spec='${libname}${release}${shared_ext}$major'
17269 dynamic_linker='NetBSD ld.elf_so'
17270 fi
17271 shlibpath_var=LD_LIBRARY_PATH
17272 shlibpath_overrides_runpath=yes
17273 hardcode_into_libs=yes
17274 ;;
17275
17276newsos6)
17277 version_type=linux
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 shlibpath_overrides_runpath=yes
17281 ;;
17282
17283*nto* | *qnx*)
17284 version_type=qnx
17285 need_lib_prefix=no
17286 need_version=no
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288 soname_spec='${libname}${release}${shared_ext}$major'
17289 shlibpath_var=LD_LIBRARY_PATH
17290 shlibpath_overrides_runpath=no
17291 hardcode_into_libs=yes
17292 dynamic_linker='ldqnx.so'
17293 ;;
17294
17295openbsd*)
17296 version_type=sunos
17297 sys_lib_dlsearch_path_spec="/usr/lib"
17298 need_lib_prefix=no
17299 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17300 case $host_os in
17301 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17302 *) need_version=no ;;
17303 esac
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17306 shlibpath_var=LD_LIBRARY_PATH
17307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17308 case $host_os in
17309 openbsd2.[89] | openbsd2.[89].*)
17310 shlibpath_overrides_runpath=no
17311 ;;
17312 *)
17313 shlibpath_overrides_runpath=yes
17314 ;;
17315 esac
17316 else
17317 shlibpath_overrides_runpath=yes
17318 fi
17319 ;;
17320
17321os2*)
17322 libname_spec='$name'
17323 shrext_cmds=".dll"
17324 need_lib_prefix=no
17325 library_names_spec='$libname${shared_ext} $libname.a'
17326 dynamic_linker='OS/2 ld.exe'
17327 shlibpath_var=LIBPATH
17328 ;;
17329
17330osf3* | osf4* | osf5*)
17331 version_type=osf
17332 need_lib_prefix=no
17333 need_version=no
17334 soname_spec='${libname}${release}${shared_ext}$major'
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336 shlibpath_var=LD_LIBRARY_PATH
17337 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17338 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17339 ;;
17340
17341rdos*)
17342 dynamic_linker=no
17343 ;;
17344
17345solaris*)
17346 version_type=linux
17347 need_lib_prefix=no
17348 need_version=no
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17350 soname_spec='${libname}${release}${shared_ext}$major'
17351 shlibpath_var=LD_LIBRARY_PATH
17352 shlibpath_overrides_runpath=yes
17353 hardcode_into_libs=yes
17354 # ldd complains unless libraries are executable
17355 postinstall_cmds='chmod +x $lib'
17356 ;;
17357
17358sunos4*)
17359 version_type=sunos
17360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17361 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17362 shlibpath_var=LD_LIBRARY_PATH
17363 shlibpath_overrides_runpath=yes
17364 if test "$with_gnu_ld" = yes; then
17365 need_lib_prefix=no
17366 fi
17367 need_version=yes
17368 ;;
17369
17370sysv4 | sysv4.3*)
17371 version_type=linux
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373 soname_spec='${libname}${release}${shared_ext}$major'
17374 shlibpath_var=LD_LIBRARY_PATH
17375 case $host_vendor in
17376 sni)
17377 shlibpath_overrides_runpath=no
17378 need_lib_prefix=no
17379 runpath_var=LD_RUN_PATH
17380 ;;
17381 siemens)
17382 need_lib_prefix=no
17383 ;;
17384 motorola)
17385 need_lib_prefix=no
17386 need_version=no
17387 shlibpath_overrides_runpath=no
17388 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17389 ;;
17390 esac
17391 ;;
17392
17393sysv4*MP*)
17394 if test -d /usr/nec ;then
17395 version_type=linux
17396 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17397 soname_spec='$libname${shared_ext}.$major'
17398 shlibpath_var=LD_LIBRARY_PATH
17399 fi
17400 ;;
17401
17402sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17403 version_type=freebsd-elf
17404 need_lib_prefix=no
17405 need_version=no
17406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17407 soname_spec='${libname}${release}${shared_ext}$major'
17408 shlibpath_var=LD_LIBRARY_PATH
17409 shlibpath_overrides_runpath=yes
17410 hardcode_into_libs=yes
17411 if test "$with_gnu_ld" = yes; then
17412 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17413 else
17414 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17415 case $host_os in
17416 sco3.2v5*)
17417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17418 ;;
17419 esac
17420 fi
17421 sys_lib_dlsearch_path_spec='/usr/lib'
17422 ;;
17423
17424tpf*)
17425 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17426 version_type=linux
17427 need_lib_prefix=no
17428 need_version=no
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430 shlibpath_var=LD_LIBRARY_PATH
17431 shlibpath_overrides_runpath=no
17432 hardcode_into_libs=yes
17433 ;;
17434
17435uts4*)
17436 version_type=linux
17437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17438 soname_spec='${libname}${release}${shared_ext}$major'
17439 shlibpath_var=LD_LIBRARY_PATH
17440 ;;
17441
17442*)
17443 dynamic_linker=no
17444 ;;
17445esac
cristy8b350f62009-11-15 23:12:43 +000017446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000017447$as_echo "$dynamic_linker" >&6; }
17448test "$dynamic_linker" = no && can_build_shared=no
17449
17450variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17451if test "$GCC" = yes; then
17452 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17453fi
17454
17455if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17456 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17457fi
17458if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17459 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17460fi
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
cristy8b350f62009-11-15 23:12:43 +000017497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000017498$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17499hardcode_action_CXX=
17500if test -n "$hardcode_libdir_flag_spec_CXX" ||
17501 test -n "$runpath_var_CXX" ||
17502 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17503
17504 # We can hardcode non-existent directories.
17505 if test "$hardcode_direct_CXX" != no &&
17506 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17507 # have to relink, otherwise we might link with an installed library
17508 # when we should be linking with a yet-to-be-installed one
17509 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17510 test "$hardcode_minus_L_CXX" != no; then
17511 # Linking always hardcodes the temporary library directory.
17512 hardcode_action_CXX=relink
17513 else
17514 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17515 hardcode_action_CXX=immediate
17516 fi
17517else
17518 # We cannot hardcode anything, or else we can only hardcode existing
17519 # directories.
17520 hardcode_action_CXX=unsupported
17521fi
cristy8b350f62009-11-15 23:12:43 +000017522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017523$as_echo "$hardcode_action_CXX" >&6; }
17524
17525if test "$hardcode_action_CXX" = relink ||
17526 test "$inherit_rpath_CXX" = yes; then
17527 # Fast installation is not supported
17528 enable_fast_install=no
17529elif test "$shlibpath_overrides_runpath" = yes ||
17530 test "$enable_shared" = no; then
17531 # Fast installation is not necessary
17532 enable_fast_install=needless
17533fi
17534
17535
17536
17537
17538
17539
17540
17541 fi # test -n "$compiler"
17542
17543 CC=$lt_save_CC
17544 LDCXX=$LD
17545 LD=$lt_save_LD
17546 GCC=$lt_save_GCC
17547 with_gnu_ld=$lt_save_with_gnu_ld
17548 lt_cv_path_LDCXX=$lt_cv_path_LD
17549 lt_cv_path_LD=$lt_save_path_LD
17550 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17551 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17552fi # test "$_lt_caught_CXX_error" != yes
17553
17554ac_ext=c
17555ac_cpp='$CPP $CPPFLAGS'
17556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17558ac_compiler_gnu=$ac_cv_c_compiler_gnu
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572 ac_config_commands="$ac_config_commands libtool"
17573
17574
17575
17576
17577# Only expand once:
17578
17579
17580
17581
17582
17583# Configure libltdl
17584
17585
17586
17587
17588
17589
17590
cristy18304f92009-11-22 15:48:26 +000017591
cristy8b350f62009-11-15 23:12:43 +000017592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000017593$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017594if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017595 $as_echo_n "(cached) " >&6
17596else
17597
17598module=yes
17599eval libltdl_cv_shlibext=$shrext_cmds
17600
17601fi
cristy8b350f62009-11-15 23:12:43 +000017602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017603$as_echo "$libltdl_cv_shlibext" >&6; }
17604if test -n "$libltdl_cv_shlibext"; then
17605
17606cat >>confdefs.h <<_ACEOF
17607#define LT_MODULE_EXT "$libltdl_cv_shlibext"
17608_ACEOF
17609
17610fi
17611
cristy8b350f62009-11-15 23:12:43 +000017612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017613$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017614if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017615 $as_echo_n "(cached) " >&6
17616else
17617 lt_cv_module_path_var="$shlibpath_var"
17618fi
cristy8b350f62009-11-15 23:12:43 +000017619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000017620$as_echo "$lt_cv_module_path_var" >&6; }
17621if test -n "$lt_cv_module_path_var"; then
17622
17623cat >>confdefs.h <<_ACEOF
17624#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
17625_ACEOF
17626
17627fi
17628
cristy8b350f62009-11-15 23:12:43 +000017629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017630$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017631if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017632 $as_echo_n "(cached) " >&6
17633else
17634 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
17635fi
cristy8b350f62009-11-15 23:12:43 +000017636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017637$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
17638if test -n "$lt_cv_sys_dlsearch_path"; then
17639 sys_dlsearch_path=
17640 for dir in $lt_cv_sys_dlsearch_path; do
17641 if test -z "$sys_dlsearch_path"; then
17642 sys_dlsearch_path="$dir"
17643 else
17644 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
17645 fi
17646 done
17647
17648cat >>confdefs.h <<_ACEOF
17649#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
17650_ACEOF
17651
17652fi
17653
17654
17655LT_DLLOADERS=
17656
17657
17658ac_ext=c
17659ac_cpp='$CPP $CPPFLAGS'
17660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17662ac_compiler_gnu=$ac_cv_c_compiler_gnu
17663
17664
17665LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000017666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017667$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017668if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017669 $as_echo_n "(cached) " >&6
17670else
17671 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000017672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017673/* end confdefs.h. */
17674
17675/* Override any GCC internal prototype to avoid an error.
17676 Use char because int might match the return type of a GCC
17677 builtin and then its argument prototype would still apply. */
17678#ifdef __cplusplus
17679extern "C"
17680#endif
17681char dlopen ();
17682int
17683main ()
17684{
17685return dlopen ();
17686 ;
17687 return 0;
17688}
17689_ACEOF
17690for ac_lib in '' dl; do
17691 if test -z "$ac_lib"; then
17692 ac_res="none required"
17693 else
17694 ac_res=-l$ac_lib
17695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17696 fi
cristy8b350f62009-11-15 23:12:43 +000017697 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017698 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000017699fi
cristy8b350f62009-11-15 23:12:43 +000017700rm -f core conftest.err conftest.$ac_objext \
17701 conftest$ac_exeext
17702 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017703 break
17704fi
17705done
cristy8b350f62009-11-15 23:12:43 +000017706if test "${ac_cv_search_dlopen+set}" = set; then :
17707
cristy3ed852e2009-09-05 21:47:34 +000017708else
17709 ac_cv_search_dlopen=no
17710fi
17711rm conftest.$ac_ext
17712LIBS=$ac_func_search_save_LIBS
17713fi
cristy8b350f62009-11-15 23:12:43 +000017714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017715$as_echo "$ac_cv_search_dlopen" >&6; }
17716ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000017717if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000017718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17719
cristy8b350f62009-11-15 23:12:43 +000017720$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017721
17722 if test "$ac_cv_search_dlopen" != "none required" ; then
17723 LIBADD_DLOPEN="-ldl"
17724 fi
17725 libltdl_cv_lib_dl_dlopen="yes"
17726 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17727else
cristy8b350f62009-11-15 23:12:43 +000017728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017729/* end confdefs.h. */
17730#if HAVE_DLFCN_H
17731# include <dlfcn.h>
17732#endif
17733
17734int
17735main ()
17736{
17737dlopen(0, 0);
17738 ;
17739 return 0;
17740}
17741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017742if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017743
cristy8b350f62009-11-15 23:12:43 +000017744$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017745
17746 libltdl_cv_func_dlopen="yes"
17747 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17748else
cristy8b350f62009-11-15 23:12:43 +000017749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017750$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017751if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017752 $as_echo_n "(cached) " >&6
17753else
17754 ac_check_lib_save_LIBS=$LIBS
17755LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017757/* end confdefs.h. */
17758
17759/* Override any GCC internal prototype to avoid an error.
17760 Use char because int might match the return type of a GCC
17761 builtin and then its argument prototype would still apply. */
17762#ifdef __cplusplus
17763extern "C"
17764#endif
17765char dlopen ();
17766int
17767main ()
17768{
17769return dlopen ();
17770 ;
17771 return 0;
17772}
17773_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017774if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017775 ac_cv_lib_svld_dlopen=yes
17776else
cristy8b350f62009-11-15 23:12:43 +000017777 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000017778fi
cristy8b350f62009-11-15 23:12:43 +000017779rm -f core conftest.err conftest.$ac_objext \
17780 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017781LIBS=$ac_check_lib_save_LIBS
17782fi
cristy8b350f62009-11-15 23:12:43 +000017783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017784$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017785if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017786
cristy8b350f62009-11-15 23:12:43 +000017787$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017788
17789 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
17790 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17791fi
17792
17793fi
cristy8b350f62009-11-15 23:12:43 +000017794rm -f core conftest.err conftest.$ac_objext \
17795 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017796fi
17797
17798if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17799then
17800 lt_save_LIBS="$LIBS"
17801 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000017802 for ac_func in dlerror
17803do :
17804 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
17805if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017806 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017807#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000017808_ACEOF
17809
17810fi
17811done
17812
17813 LIBS="$lt_save_LIBS"
17814fi
17815
17816
17817LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000017818ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17819if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017820
cristy8b350f62009-11-15 23:12:43 +000017821$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017822
17823 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17824else
cristy8b350f62009-11-15 23:12:43 +000017825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017826$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017827if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017828 $as_echo_n "(cached) " >&6
17829else
17830 ac_check_lib_save_LIBS=$LIBS
17831LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017833/* end confdefs.h. */
17834
17835/* Override any GCC internal prototype to avoid an error.
17836 Use char because int might match the return type of a GCC
17837 builtin and then its argument prototype would still apply. */
17838#ifdef __cplusplus
17839extern "C"
17840#endif
17841char shl_load ();
17842int
17843main ()
17844{
17845return shl_load ();
17846 ;
17847 return 0;
17848}
17849_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017850if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017851 ac_cv_lib_dld_shl_load=yes
17852else
cristy8b350f62009-11-15 23:12:43 +000017853 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000017854fi
cristy8b350f62009-11-15 23:12:43 +000017855rm -f core conftest.err conftest.$ac_objext \
17856 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017857LIBS=$ac_check_lib_save_LIBS
17858fi
cristy8b350f62009-11-15 23:12:43 +000017859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000017860$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017861if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017862
cristy8b350f62009-11-15 23:12:43 +000017863$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017864
17865 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17866 LIBADD_SHL_LOAD="-ldld"
17867fi
17868
17869fi
17870
17871
17872
17873case $host_os in
17874darwin[1567].*)
17875# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000017876 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
17877if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017878
cristy8b350f62009-11-15 23:12:43 +000017879$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017880
17881 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
17882fi
17883
17884 ;;
17885beos*)
17886 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
17887 ;;
17888cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000017889 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
17890"
17891if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
17892 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000017893else
cristy8b350f62009-11-15 23:12:43 +000017894 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000017895fi
17896
cristy3ed852e2009-09-05 21:47:34 +000017897cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017898#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000017899_ACEOF
17900
cristy3ed852e2009-09-05 21:47:34 +000017901 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
17902 ;;
17903esac
17904
cristy8b350f62009-11-15 23:12:43 +000017905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017906$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017907if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017908 $as_echo_n "(cached) " >&6
17909else
17910 ac_check_lib_save_LIBS=$LIBS
17911LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017913/* end confdefs.h. */
17914
17915/* Override any GCC internal prototype to avoid an error.
17916 Use char because int might match the return type of a GCC
17917 builtin and then its argument prototype would still apply. */
17918#ifdef __cplusplus
17919extern "C"
17920#endif
17921char dld_link ();
17922int
17923main ()
17924{
17925return dld_link ();
17926 ;
17927 return 0;
17928}
17929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017930if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017931 ac_cv_lib_dld_dld_link=yes
17932else
cristy8b350f62009-11-15 23:12:43 +000017933 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000017934fi
cristy8b350f62009-11-15 23:12:43 +000017935rm -f core conftest.err conftest.$ac_objext \
17936 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017937LIBS=$ac_check_lib_save_LIBS
17938fi
cristy8b350f62009-11-15 23:12:43 +000017939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000017940$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017941if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017942
cristy8b350f62009-11-15 23:12:43 +000017943$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017944
17945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
17946fi
17947
17948
17949
17950
17951LT_DLPREOPEN=
17952if test -n "$LT_DLLOADERS"
17953then
17954 for lt_loader in $LT_DLLOADERS; do
17955 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
17956 done
17957
cristy8b350f62009-11-15 23:12:43 +000017958$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017959
17960fi
17961
17962
17963LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
17964
17965
17966ac_ext=c
17967ac_cpp='$CPP $CPPFLAGS'
17968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17970ac_compiler_gnu=$ac_cv_c_compiler_gnu
17971
17972
cristy8b350f62009-11-15 23:12:43 +000017973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000017974$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017975if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017976 $as_echo_n "(cached) " >&6
17977else
17978 lt_cv_sys_symbol_underscore=no
17979 cat > conftest.$ac_ext <<_LT_EOF
17980void nm_test_func(){}
17981int main(){nm_test_func;return 0;}
17982_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000017983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017984 (eval $ac_compile) 2>&5
17985 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17987 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017988 # Now try to grab the symbols.
17989 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000017990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017991 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
17992 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17994 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000017995 # See whether the symbols have a leading underscore.
17996 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
17997 lt_cv_sys_symbol_underscore=yes
17998 else
17999 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18000 :
18001 else
18002 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18003 fi
18004 fi
18005 else
18006 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18007 fi
18008 else
18009 echo "configure: failed program was:" >&5
18010 cat conftest.c >&5
18011 fi
18012 rm -rf conftest*
18013
18014fi
cristy8b350f62009-11-15 23:12:43 +000018015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018016$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18017 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18018
18019
18020if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18021 if test x"$libltdl_cv_func_dlopen" = xyes ||
18022 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000018023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000018024$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018025if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018026 $as_echo_n "(cached) " >&6
18027else
18028 libltdl_cv_need_uscore=unknown
18029 save_LIBS="$LIBS"
18030 LIBS="$LIBS $LIBADD_DLOPEN"
18031 if test "$cross_compiling" = yes; then :
18032 libltdl_cv_need_uscore=cross
18033else
18034 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18035 lt_status=$lt_dlunknown
18036 cat > conftest.$ac_ext <<_LT_EOF
cristy18304f92009-11-22 15:48:26 +000018037#line 18037 "configure"
cristy3ed852e2009-09-05 21:47:34 +000018038#include "confdefs.h"
18039
18040#if HAVE_DLFCN_H
18041#include <dlfcn.h>
18042#endif
18043
18044#include <stdio.h>
18045
18046#ifdef RTLD_GLOBAL
18047# define LT_DLGLOBAL RTLD_GLOBAL
18048#else
18049# ifdef DL_GLOBAL
18050# define LT_DLGLOBAL DL_GLOBAL
18051# else
18052# define LT_DLGLOBAL 0
18053# endif
18054#endif
18055
18056/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18057 find out it does not work in some platform. */
18058#ifndef LT_DLLAZY_OR_NOW
18059# ifdef RTLD_LAZY
18060# define LT_DLLAZY_OR_NOW RTLD_LAZY
18061# else
18062# ifdef DL_LAZY
18063# define LT_DLLAZY_OR_NOW DL_LAZY
18064# else
18065# ifdef RTLD_NOW
18066# define LT_DLLAZY_OR_NOW RTLD_NOW
18067# else
18068# ifdef DL_NOW
18069# define LT_DLLAZY_OR_NOW DL_NOW
18070# else
18071# define LT_DLLAZY_OR_NOW 0
18072# endif
18073# endif
18074# endif
18075# endif
18076#endif
18077
cristy18304f92009-11-22 15:48:26 +000018078void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000018079int main ()
18080{
18081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18082 int status = $lt_dlunknown;
18083
18084 if (self)
18085 {
18086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000018087 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000018088 /* dlclose (self); */
18089 }
18090 else
18091 puts (dlerror ());
18092
18093 return status;
18094}
18095_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018097 (eval $ac_link) 2>&5
18098 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18100 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000018101 (./conftest; exit; ) >&5 2>/dev/null
18102 lt_status=$?
18103 case x$lt_status in
18104 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
18105 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
18106 x$lt_dlunknown|x*) ;;
18107 esac
18108 else :
18109 # compilation failed
18110
18111 fi
18112fi
18113rm -fr conftest*
18114
18115 LIBS="$save_LIBS"
18116
18117fi
cristy8b350f62009-11-15 23:12:43 +000018118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018119$as_echo "$libltdl_cv_need_uscore" >&6; }
18120 fi
18121fi
18122
18123if test x"$libltdl_cv_need_uscore" = xyes; then
18124
cristy8b350f62009-11-15 23:12:43 +000018125$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018126
18127fi
18128
cristy8b350f62009-11-15 23:12:43 +000018129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018130$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018131if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018132 $as_echo_n "(cached) " >&6
18133else
18134 # PORTME does your system automatically load deplibs for dlopen?
18135 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18136 # For now, we just catch OSes we know something about -- in the
18137 # future, we'll try test this programmatically.
18138 lt_cv_sys_dlopen_deplibs=unknown
18139 case $host_os in
18140 aix3*|aix4.1.*|aix4.2.*)
18141 # Unknown whether this is true for these versions of AIX, but
18142 # we want this `case' here to explicitly catch those versions.
18143 lt_cv_sys_dlopen_deplibs=unknown
18144 ;;
18145 aix[4-9]*)
18146 lt_cv_sys_dlopen_deplibs=yes
18147 ;;
18148 amigaos*)
18149 case $host_cpu in
18150 powerpc)
18151 lt_cv_sys_dlopen_deplibs=no
18152 ;;
18153 esac
18154 ;;
18155 darwin*)
18156 # Assuming the user has installed a libdl from somewhere, this is true
18157 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
18158 lt_cv_sys_dlopen_deplibs=yes
18159 ;;
18160 freebsd* | dragonfly*)
18161 lt_cv_sys_dlopen_deplibs=yes
18162 ;;
cristy18304f92009-11-22 15:48:26 +000018163 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018164 # GNU and its variants, using gnu ld.so (Glibc)
18165 lt_cv_sys_dlopen_deplibs=yes
18166 ;;
18167 hpux10*|hpux11*)
18168 lt_cv_sys_dlopen_deplibs=yes
18169 ;;
18170 interix*)
18171 lt_cv_sys_dlopen_deplibs=yes
18172 ;;
18173 irix[12345]*|irix6.[01]*)
18174 # Catch all versions of IRIX before 6.2, and indicate that we don't
18175 # know how it worked for any of those versions.
18176 lt_cv_sys_dlopen_deplibs=unknown
18177 ;;
18178 irix*)
18179 # The case above catches anything before 6.2, and it's known that
18180 # at 6.2 and later dlopen does load deplibs.
18181 lt_cv_sys_dlopen_deplibs=yes
18182 ;;
18183 netbsd*)
18184 lt_cv_sys_dlopen_deplibs=yes
18185 ;;
18186 openbsd*)
18187 lt_cv_sys_dlopen_deplibs=yes
18188 ;;
18189 osf[1234]*)
18190 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18191 # it did *not* use an RPATH in a shared library to find objects the
18192 # library depends on, so we explicitly say `no'.
18193 lt_cv_sys_dlopen_deplibs=no
18194 ;;
18195 osf5.0|osf5.0a|osf5.1)
18196 # dlopen *does* load deplibs and with the right loader patch applied
18197 # it even uses RPATH in a shared library to search for shared objects
18198 # that the library depends on, but there's no easy way to know if that
18199 # patch is installed. Since this is the case, all we can really
18200 # say is unknown -- it depends on the patch being installed. If
18201 # it is, this changes to `yes'. Without it, it would be `no'.
18202 lt_cv_sys_dlopen_deplibs=unknown
18203 ;;
18204 osf*)
18205 # the two cases above should catch all versions of osf <= 5.1. Read
18206 # the comments above for what we know about them.
18207 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18208 # is used to find them so we can finally say `yes'.
18209 lt_cv_sys_dlopen_deplibs=yes
18210 ;;
18211 qnx*)
18212 lt_cv_sys_dlopen_deplibs=yes
18213 ;;
18214 solaris*)
18215 lt_cv_sys_dlopen_deplibs=yes
18216 ;;
18217 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18218 libltdl_cv_sys_dlopen_deplibs=yes
18219 ;;
18220 esac
18221
18222fi
cristy8b350f62009-11-15 23:12:43 +000018223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018224$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18225if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18226
cristy8b350f62009-11-15 23:12:43 +000018227$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018228
18229fi
18230
18231:
18232
cristy3ed852e2009-09-05 21:47:34 +000018233for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000018234do :
18235 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18236"
18237if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018238 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018239#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000018240_ACEOF
18241
18242fi
18243
18244done
18245
18246
cristy8b350f62009-11-15 23:12:43 +000018247ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000018248# include <argz.h>
18249#endif
cristy8b350f62009-11-15 23:12:43 +000018250"
18251if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018252
18253cat >>confdefs.h <<_ACEOF
18254#define HAVE_ERROR_T 1
18255_ACEOF
18256
18257
18258else
18259
cristy8b350f62009-11-15 23:12:43 +000018260$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018261
18262
cristy8b350f62009-11-15 23:12:43 +000018263$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018264
18265fi
18266
18267
18268ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000018269for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
18270 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000018271do :
18272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18273ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18274eval as_val=\$$as_ac_var
18275 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018276 cat >>confdefs.h <<_ACEOF
18277#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18278_ACEOF
18279
18280else
18281 ARGZ_H=argz.h;
18282
18283 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18284
18285fi
18286done
18287
18288
cristy8b350f62009-11-15 23:12:43 +000018289if test -z "$ARGZ_H"; then :
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018291$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018292if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018293 $as_echo_n "(cached) " >&6
18294else
18295 case $host_os in #(
18296 *cygwin*)
18297 lt_cv_sys_argz_works=no
18298 if test "$cross_compiling" != no; then
18299 lt_cv_sys_argz_works="guessing no"
18300 else
18301 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
18302 save_IFS=$IFS
18303 IFS=-.
18304 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
18305 IFS=$save_IFS
18306 lt_os_major=${2-0}
18307 lt_os_minor=${3-0}
18308 lt_os_micro=${4-0}
18309 if test "$lt_os_major" -gt 1 \
18310 || { test "$lt_os_major" -eq 1 \
18311 && { test "$lt_os_minor" -gt 5 \
18312 || { test "$lt_os_minor" -eq 5 \
18313 && test "$lt_os_micro" -gt 24; }; }; }; then
18314 lt_cv_sys_argz_works=yes
18315 fi
18316 fi
18317 ;; #(
18318 *) lt_cv_sys_argz_works=yes ;;
18319 esac
18320fi
cristy8b350f62009-11-15 23:12:43 +000018321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018322$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018323 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018324
cristy8b350f62009-11-15 23:12:43 +000018325$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018326
18327else
18328 ARGZ_H=argz.h
18329
18330
18331 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18332
18333fi
cristy3ed852e2009-09-05 21:47:34 +000018334fi
18335
18336
18337
cristy8b350f62009-11-15 23:12:43 +000018338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018339$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018340if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018341 $as_echo_n "(cached) " >&6
18342else
18343 if test -n "$lt_cv_sys_global_symbol_pipe"; then
18344 libltdl_cv_preloaded_symbols=yes
18345 else
18346 libltdl_cv_preloaded_symbols=no
18347 fi
18348
18349fi
cristy8b350f62009-11-15 23:12:43 +000018350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018351$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
18352if test x"$libltdl_cv_preloaded_symbols" = xyes; then
18353
cristy8b350f62009-11-15 23:12:43 +000018354$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018355
18356fi
18357
18358# Set options
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000018371if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018372 withval=$with_included_ltdl;
18373fi
18374
18375
18376if test "x$with_included_ltdl" != xyes; then
18377 # We are not being forced to use the included libltdl sources, so
18378 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000018379 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000018380
cristy8b350f62009-11-15 23:12:43 +000018381"
18382if test "x$ac_cv_header_ltdl_h" = x""yes; then :
18383 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000018384 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000018385"
18386if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000018388$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018389if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018390 $as_echo_n "(cached) " >&6
18391else
18392 ac_check_lib_save_LIBS=$LIBS
18393LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018395/* end confdefs.h. */
18396
18397/* Override any GCC internal prototype to avoid an error.
18398 Use char because int might match the return type of a GCC
18399 builtin and then its argument prototype would still apply. */
18400#ifdef __cplusplus
18401extern "C"
18402#endif
18403char lt_dladvise_preload ();
18404int
18405main ()
18406{
18407return lt_dladvise_preload ();
18408 ;
18409 return 0;
18410}
18411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018412if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018413 ac_cv_lib_ltdl_lt_dladvise_preload=yes
18414else
cristy8b350f62009-11-15 23:12:43 +000018415 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000018416fi
cristy8b350f62009-11-15 23:12:43 +000018417rm -f core conftest.err conftest.$ac_objext \
18418 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018419LIBS=$ac_check_lib_save_LIBS
18420fi
cristy8b350f62009-11-15 23:12:43 +000018421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000018422$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018423if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018424 with_included_ltdl=no
18425else
18426 with_included_ltdl=yes
18427fi
18428
18429else
18430 with_included_ltdl=yes
18431fi
18432
18433else
18434 with_included_ltdl=yes
18435fi
18436
18437
18438fi
18439
18440
18441
18442
18443# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000018444if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018445 withval=$with_ltdl_include;
18446fi
18447
18448
18449if test -n "$with_ltdl_include"; then
18450 if test -f "$with_ltdl_include/ltdl.h"; then :
18451 else
cristy8b350f62009-11-15 23:12:43 +000018452 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018453 fi
18454else
18455 with_ltdl_include=no
18456fi
18457
18458
18459# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000018460if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018461 withval=$with_ltdl_lib;
18462fi
18463
18464
18465if test -n "$with_ltdl_lib"; then
18466 if test -f "$with_ltdl_lib/libltdl.la"; then :
18467 else
cristy8b350f62009-11-15 23:12:43 +000018468 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018469 fi
18470else
18471 with_ltdl_lib=no
18472fi
18473
18474case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
18475 ,yes,no,no,)
18476 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000018477 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000018478 "") enable_ltdl_convenience=yes
18479 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
18480esac
18481LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
18482LTDLDEPS=$LIBLTDL
18483LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
18484
18485
18486
18487
18488
18489# For backwards non-gettext consistent compatibility...
18490INCLTDL="$LTDLINCL"
18491
18492
18493 ;;
18494 ,no,no,no,)
18495 # If the included ltdl is not to be used, then use the
18496 # preinstalled libltdl we found.
18497
cristy8b350f62009-11-15 23:12:43 +000018498$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018499
18500 LIBLTDL=-lltdl
18501 LTDLDEPS=
18502 LTDLINCL=
18503 ;;
18504 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000018505 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018506 ;;
18507 *) with_included_ltdl=no
18508 LIBLTDL="-L$with_ltdl_lib -lltdl"
18509 LTDLDEPS=
18510 LTDLINCL="-I$with_ltdl_include"
18511 ;;
18512esac
18513INCLTDL="$LTDLINCL"
18514
18515# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000018516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000018517$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018519$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000018521$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018523$as_echo "$LIBLTDL" >&6; }
18524
18525
18526
18527# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000018528if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018529 enableval=$enable_ltdl_install;
18530fi
18531
18532
18533case ,${enable_ltdl_install},${enable_ltdl_convenience} in
18534 *yes*) ;;
18535 *) enable_ltdl_convenience=yes ;;
18536esac
18537
18538 if test x"${enable_ltdl_install-no}" != xno; then
18539 INSTALL_LTDL_TRUE=
18540 INSTALL_LTDL_FALSE='#'
18541else
18542 INSTALL_LTDL_TRUE='#'
18543 INSTALL_LTDL_FALSE=
18544fi
18545
18546 if test x"${enable_ltdl_convenience-no}" != xno; then
18547 CONVENIENCE_LTDL_TRUE=
18548 CONVENIENCE_LTDL_FALSE='#'
18549else
18550 CONVENIENCE_LTDL_TRUE='#'
18551 CONVENIENCE_LTDL_FALSE=
18552fi
18553
18554
18555
18556
18557
18558
cristy18304f92009-11-22 15:48:26 +000018559
cristy3ed852e2009-09-05 21:47:34 +000018560# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
18561# the user used. This is so that ltdl.h can pick up the parent projects
18562# config.h file, The first file in AC_CONFIG_HEADERS must contain the
18563# definitions required by ltdl.c.
18564# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
18565
18566
18567
cristy3ed852e2009-09-05 21:47:34 +000018568for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000018569do :
18570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18571ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18572"
18573eval as_val=\$$as_ac_Header
18574 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018575 cat >>confdefs.h <<_ACEOF
18576#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18577_ACEOF
18578
18579fi
18580
18581done
18582
18583
cristy3ed852e2009-09-05 21:47:34 +000018584for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000018585do :
18586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18587ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18588eval as_val=\$$as_ac_var
18589 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018590 cat >>confdefs.h <<_ACEOF
18591#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18592_ACEOF
18593
18594else
18595
18596
18597 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
18598
18599fi
18600done
18601
cristy3ed852e2009-09-05 21:47:34 +000018602for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000018603do :
18604 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18605ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18606eval as_val=\$$as_ac_var
18607 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018608 cat >>confdefs.h <<_ACEOF
18609#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18610_ACEOF
18611
18612else
18613
18614
18615 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
18616
18617fi
18618done
18619
18620
18621
18622cat >>confdefs.h <<_ACEOF
18623#define LT_LIBEXT "$libext"
18624_ACEOF
18625
18626
18627name=ltdl
18628LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
18629
18630
18631
18632
18633
18634
18635
18636
18637# Only expand once:
18638
18639
18640
18641# Check to see if building shared libraries
18642libtool_build_shared_libs='no'
18643if test "$enable_shared" = 'yes'; then
18644 libtool_build_shared_libs='yes'
18645fi
18646
18647# Check to see if building static libraries
18648libtool_build_static_libs='no'
18649if test "$enable_static" = 'yes'; then
18650 libtool_build_static_libs='yes'
18651fi
18652
18653# MinGW and Cygwin can't build C++ DLLs which support exceptions.
18654if test "${StaticCplusPlusLibraries}" = 'yes'; then
18655 LTCXXLIBOPTS='--static'
18656
18657fi
18658
18659#
18660# Enable support for building loadable modules
18661#
18662
18663# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000018664if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018665 withval=$with_modules; with_modules=$withval
18666else
18667 with_modules=$libtool_build_shared_libs
18668fi
18669
18670
18671# Only allow building loadable modules if we are building shared libraries
18672if test "$with_modules" != 'no' ; then
18673 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000018674 { $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 +000018675$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
18676 with_modules='no'
18677 fi
18678fi
18679if test "$with_modules" != 'no'; then
18680
cristy8b350f62009-11-15 23:12:43 +000018681$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018682
18683fi
18684 if test "$with_modules" != 'no'; then
18685 WITH_MODULES_TRUE=
18686 WITH_MODULES_FALSE='#'
18687else
18688 WITH_MODULES_TRUE='#'
18689 WITH_MODULES_FALSE=
18690fi
18691
18692
18693# Enable building/use of libltdl if we are building shared libraries regardless
18694# of whether modules are built or not.
18695with_ltdl='no'
18696if test "$libtool_build_shared_libs" != 'no'; then
18697 with_ltdl='yes'
18698fi
18699
18700 if test "$with_ltdl" != 'no'; then
18701 WITH_LTDL_TRUE=
18702 WITH_LTDL_FALSE='#'
18703else
18704 WITH_LTDL_TRUE='#'
18705 WITH_LTDL_FALSE=
18706fi
18707
18708if test "$with_ltdl" != 'no'; then
18709
cristy8b350f62009-11-15 23:12:43 +000018710$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018711
18712
18713 # Set DLLDFLAGS
18714 if test X"$enable_shared" = Xyes; then
18715 DLLDFLAGS=-export-dynamic
18716
18717 fi
18718fi
18719
18720# Enable build using delegate libraries built in subdirectories rather than installed
18721# delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
18722# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000018723if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018724 enableval=$enable_delegate_build; enable_delegate_build=$enableval
18725else
18726 enable_delegate_build='no'
18727fi
18728
18729
18730# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000018731if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018732 enableval=$enable_deprecated; enable_deprecated=$enableval
18733else
18734 enable_deprecated='no'
18735fi
18736
18737
18738if test "$enable_deprecated" = 'yes'; then
18739
cristy8b350f62009-11-15 23:12:43 +000018740$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018741
18742else
18743 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
18744fi
18745
18746# Build a version of ImageMagick which operates uninstalled.
18747# Used to build distributions located via MAGICK_HOME / executable path
18748# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000018749if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018750 enableval=$enable_installed; enable_installed=$enableval
18751else
18752 enable_installed='yes'
18753fi
18754
18755
18756if test "$enable_installed" = 'yes'; then
18757
cristy8b350f62009-11-15 23:12:43 +000018758$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018759
18760else
18761 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
18762fi
18763
18764# Permit enciphering and deciphering image pixels.
18765# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000018766if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018767 enableval=$enable_cipher; enable_cipher=$enableval
18768else
18769 enable_cipher='yes'
18770fi
18771
18772
18773if test "$enable_cipher" = 'yes'; then
18774
cristy8b350f62009-11-15 23:12:43 +000018775$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018776
18777fi
18778
18779# Build an embeddable version of ImageMagick.
18780# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000018781if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018782 enableval=$enable_embeddable; enable_embeddable=$enableval
18783else
18784 enable_embeddable='no'
18785fi
18786
18787
18788if test "$enable_embeddable" = 'yes'; then
18789
cristy8b350f62009-11-15 23:12:43 +000018790$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018791
18792fi
18793
18794# Build a high dynamic range version of ImageMagick.
18795# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000018796if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018797 enableval=$enable_hdri; enable_hdri=$enableval
18798else
18799 enable_hdri='no'
18800fi
18801
18802
18803MAGICK_HDRI=""
18804if test "$enable_hdri" = 'yes'; then
18805 MAGICK_HDRI="HDRI"
18806
cristy8b350f62009-11-15 23:12:43 +000018807$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018808
18809fi
18810
cristy3ed852e2009-09-05 21:47:34 +000018811# Build a version of ImageMagick with assert statements.
18812# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000018813if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018814 enableval=$enable_assert; enable_assert=$enableval
18815else
18816 enable_assert='yes'
18817fi
18818
18819
18820if test "$enable_assert" = 'no'; then
18821
cristy8b350f62009-11-15 23:12:43 +000018822$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018823
18824fi
18825
18826# Add configure option --enable-maintainer-mode which enables dependency
18827# checking and generation useful to package maintainers. This is made an
18828# option to avoid confusing end users.
18829
cristy8b350f62009-11-15 23:12:43 +000018830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000018831$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18832 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000018833if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018834 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18835else
18836 USE_MAINTAINER_MODE=no
18837fi
18838
cristy8b350f62009-11-15 23:12:43 +000018839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000018840$as_echo "$USE_MAINTAINER_MODE" >&6; }
18841 if test $USE_MAINTAINER_MODE = yes; then
18842 MAINTAINER_MODE_TRUE=
18843 MAINTAINER_MODE_FALSE='#'
18844else
18845 MAINTAINER_MODE_TRUE='#'
18846 MAINTAINER_MODE_FALSE=
18847fi
18848
18849 MAINT=$MAINTAINER_MODE_TRUE
18850
18851
18852
18853
18854# Enable ccmalloc memory debugging support
18855# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000018856if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018857 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
18858else
18859 enable_ccmalloc='no'
18860fi
18861
18862
18863# Enable Electric Fence memory debugging support
18864# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000018865if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018866 enableval=$enable_efence; enable_efence=$enableval
18867else
18868 enable_efence='no'
18869fi
18870
18871
18872# Enable prof-based profiling support
18873# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000018874if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018875 enableval=$enable_prof; enable_prof=$enableval
18876else
18877 enable_prof='no'
18878fi
18879
18880
18881# Enable gprof-based profiling support
18882# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000018883if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018884 enableval=$enable_gprof; enable_gprof=$enableval
18885else
18886 enable_gprof='no'
18887fi
18888
18889
18890# Enable gcov-based profiling support
18891# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000018892if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018893 enableval=$enable_gcov; enable_gcov=$enableval
18894else
18895 enable_gcov='no'
18896fi
18897
18898
18899enable_profiling='no'
18900if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
18901 enable_profiling='yes'
18902 if test "$libtool_build_shared_libs" = 'yes'; then
18903 echo "Warning: Can not profile code using shared libraries"
18904 fi
18905fi
18906
18907# Magick API method prefix
18908
18909# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000018910if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018911 withval=$with_method_prefix; with_method_prefix=$enableval
18912else
18913 with_method_prefix=''
18914fi
18915
18916
18917if test "$with_method_prefix" != ''; then
18918
18919cat >>confdefs.h <<_ACEOF
18920#define NAMESPACE_PREFIX $with_method_prefix
18921_ACEOF
18922
18923fi
18924
18925# Number of bits in a Quantum
18926
18927# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000018928if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018929 withval=$with_quantum_depth; with_quantum_depth=$withval
18930else
18931 with_quantum_depth=16
18932fi
18933
18934
18935if test "$with_quantum_depth" != '8'; then
18936 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
18937fi
18938
18939case "${with_quantum_depth}" in
18940 8 ) ;;
18941 16 ) ;;
18942 32 ) ;;
18943 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000018944 * ) { as_fn_set_status 16
18945as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000018946esac
18947QUANTUM_DEPTH="$with_quantum_depth"
18948
18949cat >>confdefs.h <<_ACEOF
18950#define QUANTUM_DEPTH $QUANTUM_DEPTH
18951_ACEOF
18952
18953
18954# Set pixel cache threshold
18955
18956# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000018957if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018958 withval=$with_cache; with_cache=$withval
18959else
18960 with_cache=''
18961fi
18962
18963
18964if test "$with_cache" != ''; then
18965
18966cat >>confdefs.h <<_ACEOF
18967#define PixelCacheThreshold $with_cache
18968_ACEOF
18969
18970 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
18971fi
18972
18973# Disable/Enable support for full delegate paths
18974
18975# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000018976if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018977 withval=$with_frozenpaths; with_frozenpaths=$withval
18978else
18979 with_frozenpaths='no'
18980fi
18981
18982
18983# Enable build/install of Magick++
18984
18985# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000018986if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018987 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
18988else
18989 with_magick_plus_plus='yes'
18990fi
18991
18992
18993# Disable build/install of PerlMagick.
18994
18995# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000018996if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018997 withval=$with_perl; with_perl=$withval
18998else
18999 with_perl=$libtool_build_shared_libs
19000fi
19001
19002
19003# Options to pass when configuring PerlMagick
19004
19005# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000019006if test "${with_perl_options+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019007 withval=$with_perl_options;
19008fi
19009
19010
19011PERL_MAKE_OPTIONS=$with_perl_options
19012
19013
19014
19015# Enable umem, object-caching memory allocation library.
19016
19017# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000019018if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019019 withval=$with_umem; with_umem=$withval
19020else
19021 with_umem='no'
19022fi
19023
19024if test "$with_umem" != 'yes' ; then
19025 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19026fi
19027
19028#
19029# Specify path to shared libstdc++ if not in normal location
19030#
19031
19032# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000019033if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019034 withval=$with_libstdc; with_libstdc=$withval
19035else
19036 with_libstdc=''
19037fi
19038
19039
19040if test "$with_libstdc" != ''; then
19041 if test -d "$with_libstdc"; then
19042 LIBSTDCLDFLAGS="-L$with_libstdc"
19043 fi
19044fi
19045
19046
19047# Does gcc required -traditional?
19048if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000019049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019050$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019051if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019052 $as_echo_n "(cached) " >&6
19053else
19054 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000019055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019056/* end confdefs.h. */
19057#include <sgtty.h>
19058Autoconf TIOCGETP
19059_ACEOF
19060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019061 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019062 ac_cv_prog_gcc_traditional=yes
19063else
19064 ac_cv_prog_gcc_traditional=no
19065fi
19066rm -f conftest*
19067
19068
19069 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000019070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019071/* end confdefs.h. */
19072#include <termio.h>
19073Autoconf TCGETA
19074_ACEOF
19075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019076 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019077 ac_cv_prog_gcc_traditional=yes
19078fi
19079rm -f conftest*
19080
19081 fi
19082fi
cristy8b350f62009-11-15 23:12:43 +000019083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019084$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19085 if test $ac_cv_prog_gcc_traditional = yes; then
19086 CC="$CC -traditional"
19087 fi
19088fi
19089
19090
19091########
19092#
19093# Set defines required to build DLLs and modules using MinGW
19094#
19095########
19096# These options are set for multi-thread DLL module build
19097# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
19098# module: _DLL
19099# executable/Magick++: _DLL _MAGICKMOD_
19100MODULE_EXTRA_CPPFLAGS=''
19101LIBRARY_EXTRA_CPPFLAGS=''
19102if test "${native_win32_build}" = 'yes'; then
19103 if test "${libtool_build_shared_libs}" = 'yes'; then
19104 CPPFLAGS="$CPPFLAGS -D_DLL"
19105 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
19106 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
19107 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19108 if test "$with_modules" = 'yes'; then
19109 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
19110 else
19111 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19112 fi
19113 else
19114 CPPFLAGS="$CPPFLAGS -D_LIB"
19115 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
19116 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
19117 fi
19118 if test "$with_threads" = 'yes'; then
19119 CPPFLAGS="$CPPFLAGS -D_MT"
19120 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
19121 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
19122 fi
19123fi
19124
19125
19126
19127# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000019128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000019129$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019130if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019131 $as_echo_n "(cached) " >&6
19132else
cristy8b350f62009-11-15 23:12:43 +000019133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019134/* end confdefs.h. */
19135#include <stdlib.h>
19136#include <stdarg.h>
19137#include <string.h>
19138#include <float.h>
19139
19140int
19141main ()
19142{
19143
19144 ;
19145 return 0;
19146}
19147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019148if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019149 ac_cv_header_stdc=yes
19150else
cristy8b350f62009-11-15 23:12:43 +000019151 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019152fi
cristy3ed852e2009-09-05 21:47:34 +000019153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19154
19155if test $ac_cv_header_stdc = yes; then
19156 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019158/* end confdefs.h. */
19159#include <string.h>
19160
19161_ACEOF
19162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019163 $EGREP "memchr" >/dev/null 2>&1; then :
19164
cristy3ed852e2009-09-05 21:47:34 +000019165else
19166 ac_cv_header_stdc=no
19167fi
19168rm -f conftest*
19169
19170fi
19171
19172if test $ac_cv_header_stdc = yes; then
19173 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019175/* end confdefs.h. */
19176#include <stdlib.h>
19177
19178_ACEOF
19179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019180 $EGREP "free" >/dev/null 2>&1; then :
19181
cristy3ed852e2009-09-05 21:47:34 +000019182else
19183 ac_cv_header_stdc=no
19184fi
19185rm -f conftest*
19186
19187fi
19188
19189if test $ac_cv_header_stdc = yes; then
19190 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000019191 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019192 :
19193else
cristy8b350f62009-11-15 23:12:43 +000019194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019195/* end confdefs.h. */
19196#include <ctype.h>
19197#include <stdlib.h>
19198#if ((' ' & 0x0FF) == 0x020)
19199# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19200# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19201#else
19202# define ISLOWER(c) \
19203 (('a' <= (c) && (c) <= 'i') \
19204 || ('j' <= (c) && (c) <= 'r') \
19205 || ('s' <= (c) && (c) <= 'z'))
19206# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19207#endif
19208
19209#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19210int
19211main ()
19212{
19213 int i;
19214 for (i = 0; i < 256; i++)
19215 if (XOR (islower (i), ISLOWER (i))
19216 || toupper (i) != TOUPPER (i))
19217 return 2;
19218 return 0;
19219}
19220_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019221if ac_fn_c_try_run "$LINENO"; then :
19222
cristy3ed852e2009-09-05 21:47:34 +000019223else
cristy8b350f62009-11-15 23:12:43 +000019224 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019225fi
cristy8b350f62009-11-15 23:12:43 +000019226rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19227 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019228fi
19229
cristy3ed852e2009-09-05 21:47:34 +000019230fi
19231fi
cristy8b350f62009-11-15 23:12:43 +000019232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000019233$as_echo "$ac_cv_header_stdc" >&6; }
19234if test $ac_cv_header_stdc = yes; then
19235
cristy8b350f62009-11-15 23:12:43 +000019236$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019237
19238fi
19239
19240if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000019241 { $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 +000019242 header files. Compilation cannot proceed. Please install the ANSI C
19243 headers and rerun this script." >&5
19244$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19245 header files. Compilation cannot proceed. Please install the ANSI C
19246 headers and rerun this script." >&2;};
19247fi
cristy3ed852e2009-09-05 21:47:34 +000019248ac_header_dirent=no
19249for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19250 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000019251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000019252$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000019254 $as_echo_n "(cached) " >&6
19255else
cristy8b350f62009-11-15 23:12:43 +000019256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019257/* end confdefs.h. */
19258#include <sys/types.h>
19259#include <$ac_hdr>
19260
19261int
19262main ()
19263{
19264if ((DIR *) 0)
19265return 0;
19266 ;
19267 return 0;
19268}
19269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019270if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019271 eval "$as_ac_Header=yes"
19272else
cristy8b350f62009-11-15 23:12:43 +000019273 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000019274fi
cristy3ed852e2009-09-05 21:47:34 +000019275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19276fi
cristy8b350f62009-11-15 23:12:43 +000019277eval ac_res=\$$as_ac_Header
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000019279$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019280eval as_val=\$$as_ac_Header
19281 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019282 cat >>confdefs.h <<_ACEOF
19283#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19284_ACEOF
19285
19286ac_header_dirent=$ac_hdr; break
19287fi
19288
19289done
19290# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19291if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000019292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019293$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019294if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019295 $as_echo_n "(cached) " >&6
19296else
19297 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019299/* end confdefs.h. */
19300
19301/* Override any GCC internal prototype to avoid an error.
19302 Use char because int might match the return type of a GCC
19303 builtin and then its argument prototype would still apply. */
19304#ifdef __cplusplus
19305extern "C"
19306#endif
19307char opendir ();
19308int
19309main ()
19310{
19311return opendir ();
19312 ;
19313 return 0;
19314}
19315_ACEOF
19316for ac_lib in '' dir; do
19317 if test -z "$ac_lib"; then
19318 ac_res="none required"
19319 else
19320 ac_res=-l$ac_lib
19321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19322 fi
cristy8b350f62009-11-15 23:12:43 +000019323 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019324 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019325fi
cristy8b350f62009-11-15 23:12:43 +000019326rm -f core conftest.err conftest.$ac_objext \
19327 conftest$ac_exeext
19328 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019329 break
19330fi
19331done
cristy8b350f62009-11-15 23:12:43 +000019332if test "${ac_cv_search_opendir+set}" = set; then :
19333
cristy3ed852e2009-09-05 21:47:34 +000019334else
19335 ac_cv_search_opendir=no
19336fi
19337rm conftest.$ac_ext
19338LIBS=$ac_func_search_save_LIBS
19339fi
cristy8b350f62009-11-15 23:12:43 +000019340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019341$as_echo "$ac_cv_search_opendir" >&6; }
19342ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019343if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19345
19346fi
19347
19348else
cristy8b350f62009-11-15 23:12:43 +000019349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019350$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019351if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019352 $as_echo_n "(cached) " >&6
19353else
19354 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019356/* end confdefs.h. */
19357
19358/* Override any GCC internal prototype to avoid an error.
19359 Use char because int might match the return type of a GCC
19360 builtin and then its argument prototype would still apply. */
19361#ifdef __cplusplus
19362extern "C"
19363#endif
19364char opendir ();
19365int
19366main ()
19367{
19368return opendir ();
19369 ;
19370 return 0;
19371}
19372_ACEOF
19373for ac_lib in '' x; do
19374 if test -z "$ac_lib"; then
19375 ac_res="none required"
19376 else
19377 ac_res=-l$ac_lib
19378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19379 fi
cristy8b350f62009-11-15 23:12:43 +000019380 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019381 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019382fi
cristy8b350f62009-11-15 23:12:43 +000019383rm -f core conftest.err conftest.$ac_objext \
19384 conftest$ac_exeext
19385 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019386 break
19387fi
19388done
cristy8b350f62009-11-15 23:12:43 +000019389if test "${ac_cv_search_opendir+set}" = set; then :
19390
cristy3ed852e2009-09-05 21:47:34 +000019391else
19392 ac_cv_search_opendir=no
19393fi
19394rm conftest.$ac_ext
19395LIBS=$ac_func_search_save_LIBS
19396fi
cristy8b350f62009-11-15 23:12:43 +000019397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019398$as_echo "$ac_cv_search_opendir" >&6; }
19399ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019400if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19402
19403fi
19404
19405fi
19406
19407
19408# Check additional headers
cristy3ed852e2009-09-05 21:47:34 +000019409for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h
cristy8b350f62009-11-15 23:12:43 +000019410do :
19411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19412ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19413eval as_val=\$$as_ac_Header
19414 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019415 cat >>confdefs.h <<_ACEOF
19416#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19417_ACEOF
19418
19419fi
19420
19421done
19422
19423
19424########
19425#
19426# Checks for typedefs, structures, and compiler characteristics.
19427#
19428########
19429
cristy8b350f62009-11-15 23:12:43 +000019430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000019431$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019432if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019433 $as_echo_n "(cached) " >&6
19434else
cristy8b350f62009-11-15 23:12:43 +000019435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019436/* end confdefs.h. */
19437
19438#include <stdbool.h>
19439#ifndef bool
19440 "error: bool is not defined"
19441#endif
19442#ifndef false
19443 "error: false is not defined"
19444#endif
19445#if false
19446 "error: false is not 0"
19447#endif
19448#ifndef true
19449 "error: true is not defined"
19450#endif
19451#if true != 1
19452 "error: true is not 1"
19453#endif
19454#ifndef __bool_true_false_are_defined
19455 "error: __bool_true_false_are_defined is not defined"
19456#endif
19457
19458 struct s { _Bool s: 1; _Bool t; } s;
19459
19460 char a[true == 1 ? 1 : -1];
19461 char b[false == 0 ? 1 : -1];
19462 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19463 char d[(bool) 0.5 == true ? 1 : -1];
19464 bool e = &s;
19465 char f[(_Bool) 0.0 == false ? 1 : -1];
19466 char g[true];
19467 char h[sizeof (_Bool)];
19468 char i[sizeof s.t];
19469 enum { j = false, k = true, l = false * true, m = true * 256 };
19470 /* The following fails for
19471 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19472 _Bool n[m];
19473 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19474 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19475# if defined __xlc__ || defined __GNUC__
19476 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19477 reported by James Lemley on 2005-10-05; see
19478 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19479 This test is not quite right, since xlc is allowed to
19480 reject this program, as the initializer for xlcbug is
19481 not one of the forms that C requires support for.
19482 However, doing the test right would require a runtime
19483 test, and that would make cross-compilation harder.
19484 Let us hope that IBM fixes the xlc bug, and also adds
19485 support for this kind of constant expression. In the
19486 meantime, this test will reject xlc, which is OK, since
19487 our stdbool.h substitute should suffice. We also test
19488 this with GCC, where it should work, to detect more
19489 quickly whether someone messes up the test in the
19490 future. */
19491 char digs[] = "0123456789";
19492 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19493# endif
19494 /* Catch a bug in an HP-UX C compiler. See
19495 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19496 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19497 */
19498 _Bool q = true;
19499 _Bool *pq = &q;
19500
19501int
19502main ()
19503{
19504
19505 *pq |= q;
19506 *pq |= ! q;
19507 /* Refer to every declared value, to avoid compiler optimizations. */
19508 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19509 + !m + !n + !o + !p + !q + !pq);
19510
19511 ;
19512 return 0;
19513}
19514_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019515if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019516 ac_cv_header_stdbool_h=yes
19517else
cristy8b350f62009-11-15 23:12:43 +000019518 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000019519fi
cristy3ed852e2009-09-05 21:47:34 +000019520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19521fi
cristy8b350f62009-11-15 23:12:43 +000019522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000019523$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019524ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19525if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019526
19527cat >>confdefs.h <<_ACEOF
19528#define HAVE__BOOL 1
19529_ACEOF
19530
19531
19532fi
19533
19534if test $ac_cv_header_stdbool_h = yes; then
19535
cristy8b350f62009-11-15 23:12:43 +000019536$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019537
19538fi
19539
cristy8b350f62009-11-15 23:12:43 +000019540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019541$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019542if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019543 $as_echo_n "(cached) " >&6
19544else
cristy8b350f62009-11-15 23:12:43 +000019545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019546/* end confdefs.h. */
19547
19548int
19549main ()
19550{
19551
19552volatile int x;
19553int * volatile y = (int *) 0;
19554return !x && !y;
19555 ;
19556 return 0;
19557}
19558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019559if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019560 ac_cv_c_volatile=yes
19561else
cristy8b350f62009-11-15 23:12:43 +000019562 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000019563fi
cristy3ed852e2009-09-05 21:47:34 +000019564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19565fi
cristy8b350f62009-11-15 23:12:43 +000019566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019567$as_echo "$ac_cv_c_volatile" >&6; }
19568if test $ac_cv_c_volatile = no; then
19569
cristy8b350f62009-11-15 23:12:43 +000019570$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019571
19572fi
19573
cristy8b350f62009-11-15 23:12:43 +000019574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000019575$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019576if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019577 $as_echo_n "(cached) " >&6
19578else
cristy8b350f62009-11-15 23:12:43 +000019579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019580/* end confdefs.h. */
19581#define x(y) #y
19582
19583char *s = x(teststring);
19584_ACEOF
19585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019586 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019587 ac_cv_c_stringize=no
19588else
19589 ac_cv_c_stringize=yes
19590fi
19591rm -f conftest*
19592
19593fi
cristy8b350f62009-11-15 23:12:43 +000019594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000019595$as_echo "$ac_cv_c_stringize" >&6; }
19596if test $ac_cv_c_stringize = yes; then
19597
cristy8b350f62009-11-15 23:12:43 +000019598$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019599
19600fi
19601
cristy8b350f62009-11-15 23:12:43 +000019602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019603$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019604if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019605 $as_echo_n "(cached) " >&6
19606else
cristy8b350f62009-11-15 23:12:43 +000019607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019608/* end confdefs.h. */
19609#include <sys/types.h>
19610#include <sys/stat.h>
19611
19612#if defined S_ISBLK && defined S_IFDIR
19613extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19614#endif
19615
19616#if defined S_ISBLK && defined S_IFCHR
19617extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19618#endif
19619
19620#if defined S_ISLNK && defined S_IFREG
19621extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19622#endif
19623
19624#if defined S_ISSOCK && defined S_IFREG
19625extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19626#endif
19627
19628_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019629if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019630 ac_cv_header_stat_broken=no
19631else
cristy8b350f62009-11-15 23:12:43 +000019632 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000019633fi
cristy3ed852e2009-09-05 21:47:34 +000019634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19635fi
cristy8b350f62009-11-15 23:12:43 +000019636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019637$as_echo "$ac_cv_header_stat_broken" >&6; }
19638if test $ac_cv_header_stat_broken = yes; then
19639
cristy8b350f62009-11-15 23:12:43 +000019640$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019641
19642fi
19643
cristy8b350f62009-11-15 23:12:43 +000019644{ $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 +000019645$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019646if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019647 $as_echo_n "(cached) " >&6
19648else
cristy8b350f62009-11-15 23:12:43 +000019649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019650/* end confdefs.h. */
19651#include <sys/types.h>
19652#include <sys/time.h>
19653#include <time.h>
19654
19655int
19656main ()
19657{
19658if ((struct tm *) 0)
19659return 0;
19660 ;
19661 return 0;
19662}
19663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019664if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019665 ac_cv_header_time=yes
19666else
cristy8b350f62009-11-15 23:12:43 +000019667 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000019668fi
cristy3ed852e2009-09-05 21:47:34 +000019669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19670fi
cristy8b350f62009-11-15 23:12:43 +000019671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000019672$as_echo "$ac_cv_header_time" >&6; }
19673if test $ac_cv_header_time = yes; then
19674
cristy8b350f62009-11-15 23:12:43 +000019675$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019676
19677fi
19678
cristy8b350f62009-11-15 23:12:43 +000019679{ $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 +000019680$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019681if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019682 $as_echo_n "(cached) " >&6
19683else
cristy8b350f62009-11-15 23:12:43 +000019684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019685/* end confdefs.h. */
19686#include <sys/types.h>
19687#include <time.h>
19688
19689int
19690main ()
19691{
19692struct tm tm;
19693 int *p = &tm.tm_sec;
19694 return !p;
19695 ;
19696 return 0;
19697}
19698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019699if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019700 ac_cv_struct_tm=time.h
19701else
cristy8b350f62009-11-15 23:12:43 +000019702 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000019703fi
cristy3ed852e2009-09-05 21:47:34 +000019704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19705fi
cristy8b350f62009-11-15 23:12:43 +000019706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000019707$as_echo "$ac_cv_struct_tm" >&6; }
19708if test $ac_cv_struct_tm = sys/time.h; then
19709
cristy8b350f62009-11-15 23:12:43 +000019710$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019711
19712fi
19713
cristy8b350f62009-11-15 23:12:43 +000019714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000019715$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019716if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019717 $as_echo_n "(cached) " >&6
19718else
19719 echo '#! /bin/cat
19720exit 69
19721' >conftest
19722chmod u+x conftest
19723(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
19724if test $? -ne 69; then
19725 ac_cv_sys_interpreter=yes
19726else
19727 ac_cv_sys_interpreter=no
19728fi
19729rm -f conftest
19730fi
cristy8b350f62009-11-15 23:12:43 +000019731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000019732$as_echo "$ac_cv_sys_interpreter" >&6; }
19733interpval=$ac_cv_sys_interpreter
19734
19735
19736# If the C compiler does not fully support the ANSI C qualifier const,
19737# define const to be empty.
cristy8b350f62009-11-15 23:12:43 +000019738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019739$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019740if test "${ac_cv_c_const+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019741 $as_echo_n "(cached) " >&6
19742else
cristy8b350f62009-11-15 23:12:43 +000019743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019744/* end confdefs.h. */
19745
19746int
19747main ()
19748{
19749/* FIXME: Include the comments suggested by Paul. */
19750#ifndef __cplusplus
19751 /* Ultrix mips cc rejects this. */
19752 typedef int charset[2];
19753 const charset cs;
19754 /* SunOS 4.1.1 cc rejects this. */
19755 char const *const *pcpcc;
19756 char **ppc;
19757 /* NEC SVR4.0.2 mips cc rejects this. */
19758 struct point {int x, y;};
19759 static struct point const zero = {0,0};
19760 /* AIX XL C 1.02.0.0 rejects this.
19761 It does not let you subtract one const X* pointer from another in
19762 an arm of an if-expression whose if-part is not a constant
19763 expression */
19764 const char *g = "string";
19765 pcpcc = &g + (g ? g-g : 0);
19766 /* HPUX 7.0 cc rejects these. */
19767 ++pcpcc;
19768 ppc = (char**) pcpcc;
19769 pcpcc = (char const *const *) ppc;
19770 { /* SCO 3.2v4 cc rejects this. */
19771 char *t;
19772 char const *s = 0 ? (char *) 0 : (char const *) 0;
19773
19774 *t++ = 0;
19775 if (s) return 0;
19776 }
19777 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19778 int x[] = {25, 17};
19779 const int *foo = &x[0];
19780 ++foo;
19781 }
19782 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19783 typedef const int *iptr;
19784 iptr p = 0;
19785 ++p;
19786 }
19787 { /* AIX XL C 1.02.0.0 rejects this saying
19788 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19789 struct s { int j; const int *ap[3]; };
19790 struct s *b; b->j = 5;
19791 }
19792 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19793 const int foo = 10;
19794 if (!foo) return 0;
19795 }
19796 return !cs[0] && !zero.x;
19797#endif
19798
19799 ;
19800 return 0;
19801}
19802_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019803if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019804 ac_cv_c_const=yes
19805else
cristy8b350f62009-11-15 23:12:43 +000019806 ac_cv_c_const=no
cristy3ed852e2009-09-05 21:47:34 +000019807fi
cristy3ed852e2009-09-05 21:47:34 +000019808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19809fi
cristy8b350f62009-11-15 23:12:43 +000019810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019811$as_echo "$ac_cv_c_const" >&6; }
19812if test $ac_cv_c_const = no; then
19813
cristy8b350f62009-11-15 23:12:43 +000019814$as_echo "#define const /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019815
19816fi
19817
19818
19819# If the C compiler supports the keyword inline, do nothing. Otherwise
19820# define inline to __inline__ or __inline if it accepts one of those,
19821# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000019822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019823$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019824if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019825 $as_echo_n "(cached) " >&6
19826else
19827 ac_cv_c_inline=no
19828for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000019829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019830/* end confdefs.h. */
19831#ifndef __cplusplus
19832typedef int foo_t;
19833static $ac_kw foo_t static_foo () {return 0; }
19834$ac_kw foo_t foo () {return 0; }
19835#endif
19836
19837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019838if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019839 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019840fi
cristy3ed852e2009-09-05 21:47:34 +000019841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 test "$ac_cv_c_inline" != no && break
19843done
19844
19845fi
cristy8b350f62009-11-15 23:12:43 +000019846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019847$as_echo "$ac_cv_c_inline" >&6; }
19848
cristy3ed852e2009-09-05 21:47:34 +000019849case $ac_cv_c_inline in
19850 inline | yes) ;;
19851 *)
19852 case $ac_cv_c_inline in
19853 no) ac_val=;;
19854 *) ac_val=$ac_cv_c_inline;;
19855 esac
19856 cat >>confdefs.h <<_ACEOF
19857#ifndef __cplusplus
19858#define inline $ac_val
19859#endif
19860_ACEOF
19861 ;;
19862esac
19863
19864
19865# If the C compiler supports the keyword restrict, do nothing. Otherwise
19866# define restrict to __restrict__ or __restrict if it accepts one of those,
19867# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000019868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000019869$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019870if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019871 $as_echo_n "(cached) " >&6
19872else
19873 ac_cv_c_restrict=no
19874 # The order here caters to the fact that C++ does not require restrict.
19875 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000019876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019877/* end confdefs.h. */
19878typedef int * int_ptr;
19879 int foo (int_ptr $ac_kw ip) {
19880 return ip[0];
19881 }
19882int
19883main ()
19884{
19885int s[1];
19886 int * $ac_kw t = s;
19887 t[0] = 0;
19888 return foo(t)
19889 ;
19890 return 0;
19891}
19892_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019893if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019894 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019895fi
cristy3ed852e2009-09-05 21:47:34 +000019896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19897 test "$ac_cv_c_restrict" != no && break
19898 done
19899
19900fi
cristy8b350f62009-11-15 23:12:43 +000019901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000019902$as_echo "$ac_cv_c_restrict" >&6; }
19903
cristy3ed852e2009-09-05 21:47:34 +000019904 case $ac_cv_c_restrict in
19905 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000019906 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019907 ;;
19908 *) cat >>confdefs.h <<_ACEOF
19909#define restrict $ac_cv_c_restrict
19910_ACEOF
19911 ;;
19912 esac
19913
19914
19915# If words are stored with the most significant byte first (like
19916# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000019917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000019918$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019919if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019920 $as_echo_n "(cached) " >&6
19921else
19922 ac_cv_c_bigendian=unknown
19923 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000019924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019925/* end confdefs.h. */
19926#ifndef __APPLE_CC__
19927 not a universal capable compiler
19928 #endif
19929 typedef int dummy;
19930
19931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019932if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019933
19934 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000019935 # there are at least two -arch flags with different values.
19936 ac_arch=
19937 ac_prev=
19938 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19939 if test -n "$ac_prev"; then
19940 case $ac_word in
19941 i?86 | x86_64 | ppc | ppc64)
19942 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19943 ac_arch=$ac_word
19944 else
19945 ac_cv_c_bigendian=universal
19946 break
19947 fi
19948 ;;
19949 esac
19950 ac_prev=
19951 elif test "x$ac_word" = "x-arch"; then
19952 ac_prev=arch
19953 fi
19954 done
cristy3ed852e2009-09-05 21:47:34 +000019955fi
cristy3ed852e2009-09-05 21:47:34 +000019956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19957 if test $ac_cv_c_bigendian = unknown; then
19958 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000019959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019960/* end confdefs.h. */
19961#include <sys/types.h>
19962 #include <sys/param.h>
19963
19964int
19965main ()
19966{
19967#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19968 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19969 && LITTLE_ENDIAN)
19970 bogus endian macros
19971 #endif
19972
19973 ;
19974 return 0;
19975}
19976_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019977if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019978 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000019979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019980/* end confdefs.h. */
19981#include <sys/types.h>
19982 #include <sys/param.h>
19983
19984int
19985main ()
19986{
19987#if BYTE_ORDER != BIG_ENDIAN
19988 not big endian
19989 #endif
19990
19991 ;
19992 return 0;
19993}
19994_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019995if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019996 ac_cv_c_bigendian=yes
19997else
cristy8b350f62009-11-15 23:12:43 +000019998 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000019999fi
cristy3ed852e2009-09-05 21:47:34 +000020000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020001fi
cristy3ed852e2009-09-05 21:47:34 +000020002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003 fi
20004 if test $ac_cv_c_bigendian = unknown; then
20005 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000020006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020007/* end confdefs.h. */
20008#include <limits.h>
20009
20010int
20011main ()
20012{
20013#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20014 bogus endian macros
20015 #endif
20016
20017 ;
20018 return 0;
20019}
20020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020021if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020022 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020024/* end confdefs.h. */
20025#include <limits.h>
20026
20027int
20028main ()
20029{
20030#ifndef _BIG_ENDIAN
20031 not big endian
20032 #endif
20033
20034 ;
20035 return 0;
20036}
20037_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020038if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020039 ac_cv_c_bigendian=yes
20040else
cristy8b350f62009-11-15 23:12:43 +000020041 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020042fi
cristy3ed852e2009-09-05 21:47:34 +000020043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020044fi
cristy3ed852e2009-09-05 21:47:34 +000020045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20046 fi
20047 if test $ac_cv_c_bigendian = unknown; then
20048 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000020049 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020050 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000020051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020052/* end confdefs.h. */
20053short int ascii_mm[] =
20054 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20055 short int ascii_ii[] =
20056 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20057 int use_ascii (int i) {
20058 return ascii_mm[i] + ascii_ii[i];
20059 }
20060 short int ebcdic_ii[] =
20061 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20062 short int ebcdic_mm[] =
20063 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20064 int use_ebcdic (int i) {
20065 return ebcdic_mm[i] + ebcdic_ii[i];
20066 }
20067 extern int foo;
20068
20069int
20070main ()
20071{
20072return use_ascii (foo) == use_ebcdic (foo);
20073 ;
20074 return 0;
20075}
20076_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020077if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020078 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20079 ac_cv_c_bigendian=yes
20080 fi
20081 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20082 if test "$ac_cv_c_bigendian" = unknown; then
20083 ac_cv_c_bigendian=no
20084 else
20085 # finding both strings is unlikely to happen, but who knows?
20086 ac_cv_c_bigendian=unknown
20087 fi
20088 fi
cristy3ed852e2009-09-05 21:47:34 +000020089fi
cristy3ed852e2009-09-05 21:47:34 +000020090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20091else
cristy8b350f62009-11-15 23:12:43 +000020092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020093/* end confdefs.h. */
20094$ac_includes_default
20095int
20096main ()
20097{
20098
20099 /* Are we little or big endian? From Harbison&Steele. */
20100 union
20101 {
20102 long int l;
20103 char c[sizeof (long int)];
20104 } u;
20105 u.l = 1;
20106 return u.c[sizeof (long int) - 1] == 1;
20107
20108 ;
20109 return 0;
20110}
20111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020112if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020113 ac_cv_c_bigendian=no
20114else
cristy8b350f62009-11-15 23:12:43 +000020115 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000020116fi
cristy8b350f62009-11-15 23:12:43 +000020117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20118 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020119fi
20120
cristy3ed852e2009-09-05 21:47:34 +000020121 fi
20122fi
cristy8b350f62009-11-15 23:12:43 +000020123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020124$as_echo "$ac_cv_c_bigendian" >&6; }
20125 case $ac_cv_c_bigendian in #(
20126 yes)
cristy8b350f62009-11-15 23:12:43 +000020127 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020128;; #(
20129 no)
20130 ;; #(
20131 universal)
20132
cristy8b350f62009-11-15 23:12:43 +000020133$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020134
20135 ;; #(
20136 *)
cristy8b350f62009-11-15 23:12:43 +000020137 as_fn_error "unknown endianness
20138 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020139 esac
20140
20141
20142# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020143ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20144if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020145
cristy3ed852e2009-09-05 21:47:34 +000020146else
20147
20148cat >>confdefs.h <<_ACEOF
20149#define mode_t int
20150_ACEOF
20151
20152fi
20153
20154
20155# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020156ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20157if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020158
cristy3ed852e2009-09-05 21:47:34 +000020159else
20160
20161cat >>confdefs.h <<_ACEOF
20162#define off_t long int
20163_ACEOF
20164
20165fi
20166
20167
20168# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020169ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20170if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020171
cristy3ed852e2009-09-05 21:47:34 +000020172else
20173
20174cat >>confdefs.h <<_ACEOF
20175#define pid_t int
20176_ACEOF
20177
20178fi
20179
20180
20181# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020182ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20183if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020184
cristy3ed852e2009-09-05 21:47:34 +000020185else
20186
20187cat >>confdefs.h <<_ACEOF
20188#define size_t unsigned int
20189_ACEOF
20190
20191fi
20192
20193
20194# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020195ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20196if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020197
cristy3ed852e2009-09-05 21:47:34 +000020198else
20199
20200cat >>confdefs.h <<_ACEOF
20201#define ssize_t int
20202_ACEOF
20203
20204fi
20205
20206
20207# If the C compiler supports a working long double type with more range
20208# or precision than the double type, define HAVE_LONG_DOUBLE.
20209
cristy8b350f62009-11-15 23:12:43 +000020210 { $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 +000020211$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020212if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020213 $as_echo_n "(cached) " >&6
20214else
cristy8b350f62009-11-15 23:12:43 +000020215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020216/* end confdefs.h. */
20217#include <float.h>
20218 long double const a[] =
20219 {
20220 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20221 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20222 };
20223 long double
20224 f (long double x)
20225 {
20226 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20227 + (x ? f (x) : 'c'));
20228 }
20229
20230int
20231main ()
20232{
20233static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20234 + (DBL_MANT_DIG < LDBL_MANT_DIG)
20235 - (LDBL_MAX_EXP < DBL_MAX_EXP)
20236 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20237 && (int) LDBL_EPSILON == 0
20238 )];
20239test_array [0] = 0
20240
20241 ;
20242 return 0;
20243}
20244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020245if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020246 ac_cv_type_long_double_wider=yes
20247else
cristy8b350f62009-11-15 23:12:43 +000020248 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000020249fi
cristy3ed852e2009-09-05 21:47:34 +000020250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20251fi
cristy8b350f62009-11-15 23:12:43 +000020252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000020253$as_echo "$ac_cv_type_long_double_wider" >&6; }
20254 if test $ac_cv_type_long_double_wider = yes; then
20255
cristy8b350f62009-11-15 23:12:43 +000020256$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020257
20258 fi
20259
20260
20261# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20262# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000020263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020264$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020265if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020266 $as_echo_n "(cached) " >&6
20267else
cristy8b350f62009-11-15 23:12:43 +000020268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020269/* end confdefs.h. */
20270$ac_includes_default
20271int
20272main ()
20273{
20274static int test_array [1 - 2 * !(((char) -1) < 0)];
20275test_array [0] = 0
20276
20277 ;
20278 return 0;
20279}
20280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020281if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020282 ac_cv_c_char_unsigned=no
20283else
cristy8b350f62009-11-15 23:12:43 +000020284 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000020285fi
cristy3ed852e2009-09-05 21:47:34 +000020286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20287fi
cristy8b350f62009-11-15 23:12:43 +000020288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020289$as_echo "$ac_cv_c_char_unsigned" >&6; }
20290if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000020291 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020292
20293fi
20294
20295
20296# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20297# The cast to long int works around a bug in the HP C Compiler
20298# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20299# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20300# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020302$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020303if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020304 $as_echo_n "(cached) " >&6
20305else
cristy8b350f62009-11-15 23:12:43 +000020306 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 +000020307
cristy3ed852e2009-09-05 21:47:34 +000020308else
cristy8b350f62009-11-15 23:12:43 +000020309 if test "$ac_cv_type_signed_short" = yes; then
20310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020312{ as_fn_set_status 77
20313as_fn_error "cannot compute sizeof (signed short)
20314See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020315 else
20316 ac_cv_sizeof_signed_short=0
20317 fi
20318fi
cristy8b350f62009-11-15 23:12:43 +000020319
cristy3ed852e2009-09-05 21:47:34 +000020320fi
cristy8b350f62009-11-15 23:12:43 +000020321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020322$as_echo "$ac_cv_sizeof_signed_short" >&6; }
20323
20324
20325
20326cat >>confdefs.h <<_ACEOF
20327#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
20328_ACEOF
20329
20330
20331
20332# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
20333# The cast to long int works around a bug in the HP C Compiler
20334# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20335# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20336# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020338$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020339if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020340 $as_echo_n "(cached) " >&6
20341else
cristy8b350f62009-11-15 23:12:43 +000020342 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 +000020343
cristy3ed852e2009-09-05 21:47:34 +000020344else
cristy8b350f62009-11-15 23:12:43 +000020345 if test "$ac_cv_type_unsigned_short" = yes; then
20346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020348{ as_fn_set_status 77
20349as_fn_error "cannot compute sizeof (unsigned short)
20350See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020351 else
20352 ac_cv_sizeof_unsigned_short=0
20353 fi
20354fi
cristy8b350f62009-11-15 23:12:43 +000020355
cristy3ed852e2009-09-05 21:47:34 +000020356fi
cristy8b350f62009-11-15 23:12:43 +000020357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020358$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20359
20360
20361
20362cat >>confdefs.h <<_ACEOF
20363#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20364_ACEOF
20365
20366
20367
20368# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
20369# The cast to long int works around a bug in the HP C Compiler
20370# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20371# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20372# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020374$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020375if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020376 $as_echo_n "(cached) " >&6
20377else
cristy8b350f62009-11-15 23:12:43 +000020378 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 +000020379
cristy3ed852e2009-09-05 21:47:34 +000020380else
cristy8b350f62009-11-15 23:12:43 +000020381 if test "$ac_cv_type_signed_int" = yes; then
20382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020384{ as_fn_set_status 77
20385as_fn_error "cannot compute sizeof (signed int)
20386See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020387 else
20388 ac_cv_sizeof_signed_int=0
20389 fi
20390fi
cristy8b350f62009-11-15 23:12:43 +000020391
cristy3ed852e2009-09-05 21:47:34 +000020392fi
cristy8b350f62009-11-15 23:12:43 +000020393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020394$as_echo "$ac_cv_sizeof_signed_int" >&6; }
20395
20396
20397
20398cat >>confdefs.h <<_ACEOF
20399#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
20400_ACEOF
20401
20402
20403
20404# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
20405# The cast to long int works around a bug in the HP C Compiler
20406# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20407# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20408# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020410$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020411if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020412 $as_echo_n "(cached) " >&6
20413else
cristy8b350f62009-11-15 23:12:43 +000020414 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 +000020415
cristy3ed852e2009-09-05 21:47:34 +000020416else
cristy8b350f62009-11-15 23:12:43 +000020417 if test "$ac_cv_type_unsigned_int" = yes; then
20418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020420{ as_fn_set_status 77
20421as_fn_error "cannot compute sizeof (unsigned int)
20422See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020423 else
20424 ac_cv_sizeof_unsigned_int=0
20425 fi
20426fi
cristy8b350f62009-11-15 23:12:43 +000020427
cristy3ed852e2009-09-05 21:47:34 +000020428fi
cristy8b350f62009-11-15 23:12:43 +000020429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020430$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20431
20432
20433
20434cat >>confdefs.h <<_ACEOF
20435#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20436_ACEOF
20437
20438
20439
20440# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
20441# The cast to long int works around a bug in the HP C Compiler
20442# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20443# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20444# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020446$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020447if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020448 $as_echo_n "(cached) " >&6
20449else
cristy8b350f62009-11-15 23:12:43 +000020450 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 +000020451
cristy3ed852e2009-09-05 21:47:34 +000020452else
cristy8b350f62009-11-15 23:12:43 +000020453 if test "$ac_cv_type_signed_long" = yes; then
20454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020456{ as_fn_set_status 77
20457as_fn_error "cannot compute sizeof (signed long)
20458See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020459 else
20460 ac_cv_sizeof_signed_long=0
20461 fi
20462fi
cristy8b350f62009-11-15 23:12:43 +000020463
cristy3ed852e2009-09-05 21:47:34 +000020464fi
cristy8b350f62009-11-15 23:12:43 +000020465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020466$as_echo "$ac_cv_sizeof_signed_long" >&6; }
20467
20468
20469
20470cat >>confdefs.h <<_ACEOF
20471#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
20472_ACEOF
20473
20474
20475
20476# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
20477# The cast to long int works around a bug in the HP C Compiler
20478# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20479# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20480# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020482$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020483if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020484 $as_echo_n "(cached) " >&6
20485else
cristy8b350f62009-11-15 23:12:43 +000020486 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 +000020487
cristy3ed852e2009-09-05 21:47:34 +000020488else
cristy8b350f62009-11-15 23:12:43 +000020489 if test "$ac_cv_type_unsigned_long" = yes; then
20490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020492{ as_fn_set_status 77
20493as_fn_error "cannot compute sizeof (unsigned long)
20494See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020495 else
20496 ac_cv_sizeof_unsigned_long=0
20497 fi
20498fi
cristy8b350f62009-11-15 23:12:43 +000020499
cristy3ed852e2009-09-05 21:47:34 +000020500fi
cristy8b350f62009-11-15 23:12:43 +000020501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020502$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20503
20504
20505
20506cat >>confdefs.h <<_ACEOF
20507#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20508_ACEOF
20509
20510
20511
20512# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
20513# 'signed long long' is not supported then the value defined is zero.
20514# The cast to long int works around a bug in the HP C Compiler
20515# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20516# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20517# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020519$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020520if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020521 $as_echo_n "(cached) " >&6
20522else
cristy8b350f62009-11-15 23:12:43 +000020523 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 +000020524
cristy3ed852e2009-09-05 21:47:34 +000020525else
cristy8b350f62009-11-15 23:12:43 +000020526 if test "$ac_cv_type_signed_long_long" = yes; then
20527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020529{ as_fn_set_status 77
20530as_fn_error "cannot compute sizeof (signed long long)
20531See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020532 else
20533 ac_cv_sizeof_signed_long_long=0
20534 fi
20535fi
cristy8b350f62009-11-15 23:12:43 +000020536
cristy3ed852e2009-09-05 21:47:34 +000020537fi
cristy8b350f62009-11-15 23:12:43 +000020538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020539$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
20540
20541
20542
20543cat >>confdefs.h <<_ACEOF
20544#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
20545_ACEOF
20546
20547
20548
20549# Obtain size of a 'unsigned long long' and define as
20550# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
20551# supported then the value defined is zero.
20552# The cast to long int works around a bug in the HP C Compiler
20553# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20554# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20555# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020557$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020558if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020559 $as_echo_n "(cached) " >&6
20560else
cristy8b350f62009-11-15 23:12:43 +000020561 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 +000020562
cristy3ed852e2009-09-05 21:47:34 +000020563else
cristy8b350f62009-11-15 23:12:43 +000020564 if test "$ac_cv_type_unsigned_long_long" = yes; then
20565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020567{ as_fn_set_status 77
20568as_fn_error "cannot compute sizeof (unsigned long long)
20569See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020570 else
20571 ac_cv_sizeof_unsigned_long_long=0
20572 fi
20573fi
cristy8b350f62009-11-15 23:12:43 +000020574
cristy3ed852e2009-09-05 21:47:34 +000020575fi
cristy8b350f62009-11-15 23:12:43 +000020576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020577$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20578
20579
20580
20581cat >>confdefs.h <<_ACEOF
20582#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20583_ACEOF
20584
20585
20586
20587# Obtain size of off_t and define as SIZEOF_OFF_T
20588# The cast to long int works around a bug in the HP C Compiler
20589# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20590# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20591# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020593$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020594if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020595 $as_echo_n "(cached) " >&6
20596else
cristy8b350f62009-11-15 23:12:43 +000020597 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 +000020598
cristy3ed852e2009-09-05 21:47:34 +000020599else
cristy8b350f62009-11-15 23:12:43 +000020600 if test "$ac_cv_type_off_t" = yes; then
20601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020603{ as_fn_set_status 77
20604as_fn_error "cannot compute sizeof (off_t)
20605See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020606 else
20607 ac_cv_sizeof_off_t=0
20608 fi
20609fi
cristy8b350f62009-11-15 23:12:43 +000020610
cristy3ed852e2009-09-05 21:47:34 +000020611fi
cristy8b350f62009-11-15 23:12:43 +000020612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020613$as_echo "$ac_cv_sizeof_off_t" >&6; }
20614
20615
20616
20617cat >>confdefs.h <<_ACEOF
20618#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20619_ACEOF
20620
20621
20622
20623# Obtain size of size_t and define as SIZEOF_SIZE_T
20624# The cast to long int works around a bug in the HP C Compiler
20625# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20626# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20627# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020629$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020630if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020631 $as_echo_n "(cached) " >&6
20632else
cristy8b350f62009-11-15 23:12:43 +000020633 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 +000020634
cristy3ed852e2009-09-05 21:47:34 +000020635else
cristy8b350f62009-11-15 23:12:43 +000020636 if test "$ac_cv_type_size_t" = yes; then
20637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020639{ as_fn_set_status 77
20640as_fn_error "cannot compute sizeof (size_t)
20641See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020642 else
20643 ac_cv_sizeof_size_t=0
20644 fi
20645fi
cristy8b350f62009-11-15 23:12:43 +000020646
cristy3ed852e2009-09-05 21:47:34 +000020647fi
cristy8b350f62009-11-15 23:12:43 +000020648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020649$as_echo "$ac_cv_sizeof_size_t" >&6; }
20650
20651
20652
20653cat >>confdefs.h <<_ACEOF
20654#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20655_ACEOF
20656
20657
20658
20659# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
20660# The cast to long int works around a bug in the HP C Compiler
20661# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20662# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20663# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000020665$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020666if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020667 $as_echo_n "(cached) " >&6
20668else
cristy8b350f62009-11-15 23:12:43 +000020669 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 +000020670
cristy3ed852e2009-09-05 21:47:34 +000020671else
cristy8b350f62009-11-15 23:12:43 +000020672 if test "$ac_cv_type_unsigned_intp" = yes; then
20673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020675{ as_fn_set_status 77
20676as_fn_error "cannot compute sizeof (unsigned int*)
20677See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020678 else
20679 ac_cv_sizeof_unsigned_intp=0
20680 fi
20681fi
cristy8b350f62009-11-15 23:12:43 +000020682
cristy3ed852e2009-09-05 21:47:34 +000020683fi
cristy8b350f62009-11-15 23:12:43 +000020684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000020685$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
20686
20687
20688
20689cat >>confdefs.h <<_ACEOF
20690#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
20691_ACEOF
20692
20693
20694
20695#
20696# Compute sized types for current CPU and compiler options.
20697#
20698
cristy8b350f62009-11-15 23:12:43 +000020699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020700$as_echo_n "checking for signed 8-bit type... " >&6; }
20701INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000020702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020703$as_echo "$INT8_T" >&6; }
20704
20705
cristy8b350f62009-11-15 23:12:43 +000020706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020707$as_echo_n "checking for unsigned 8-bit type... " >&6; }
20708UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000020709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020710$as_echo "$UINT8_T" >&6; }
20711
20712
cristy8b350f62009-11-15 23:12:43 +000020713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020714$as_echo_n "checking for signed 16-bit type... " >&6; }
20715INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000020716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020717$as_echo "$INT16_T" >&6; }
20718
20719
cristy8b350f62009-11-15 23:12:43 +000020720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020721$as_echo_n "checking for unsigned 16-bit type... " >&6; }
20722UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000020723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020724$as_echo "$UINT16_T" >&6; }
20725
20726
cristy8b350f62009-11-15 23:12:43 +000020727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020728$as_echo_n "checking for signed 32-bit type... " >&6; }
20729INT32_T='none'
20730if test $ac_cv_sizeof_signed_int -eq 4; then
20731 INT32_T='signed int'
20732elif test $ac_cv_sizeof_signed_long -eq 4; then
20733 INT32_T='signed long'
20734fi
cristy8b350f62009-11-15 23:12:43 +000020735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020736$as_echo "$INT32_T" >&6; }
20737
20738
cristy8b350f62009-11-15 23:12:43 +000020739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020740$as_echo_n "checking for unsigned 32-bit type... " >&6; }
20741UINT32_T='none'
20742if test $ac_cv_sizeof_unsigned_int -eq 4; then
20743 UINT32_T='unsigned int'
20744elif test $ac_cv_sizeof_unsigned_long -eq 4; then
20745 UINT32_T='unsigned long'
20746fi
cristy8b350f62009-11-15 23:12:43 +000020747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020748$as_echo "$UINT32_T" >&6; }
20749
20750
cristy8b350f62009-11-15 23:12:43 +000020751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020752$as_echo_n "checking for signed 64-bit type... " >&6; }
20753INT64_T='none'
20754if test $ac_cv_sizeof_signed_long -eq 8; then
20755 INT64_T='signed long'
20756elif test $ac_cv_sizeof_signed_long_long -eq 8; then
20757 INT64_T='signed long long'
20758fi
cristy8b350f62009-11-15 23:12:43 +000020759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020760$as_echo "$INT64_T" >&6; }
20761
20762
cristy8b350f62009-11-15 23:12:43 +000020763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020764$as_echo_n "checking for unsigned 64-bit type... " >&6; }
20765UINT64_T='none'
20766if test $ac_cv_sizeof_unsigned_long -eq 8; then
20767 UINT64_T='unsigned long'
20768elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
20769 UINT64_T='unsigned long long'
20770fi
cristy8b350f62009-11-15 23:12:43 +000020771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020772$as_echo "$UINT64_T" >&6; }
20773
20774
cristy8b350f62009-11-15 23:12:43 +000020775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020776$as_echo_n "checking for unsigned maximum type... " >&6; }
20777UINTMAX_T='none'
20778if test "$UINT64_T" != 'none'; then
20779 UINTMAX_T=$UINT64_T
20780elif test "$UINT32_T" != 'none'; then
20781 UINTMAX_T=$UINT32_T
20782fi
cristy8b350f62009-11-15 23:12:43 +000020783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020784$as_echo "$UINTMAX_T" >&6; }
20785
20786
cristy8b350f62009-11-15 23:12:43 +000020787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020788$as_echo_n "checking for pointer difference type... " >&6; }
20789UINTPTR_T='none'
20790if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
20791 UINTPTR_T='unsigned long'
20792elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
20793 UINTPTR_T='unsigned long long'
20794fi
cristy8b350f62009-11-15 23:12:43 +000020795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020796$as_echo "$UINTPTR_T" >&6; }
20797
20798
cristy8b350f62009-11-15 23:12:43 +000020799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020800$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020802/* end confdefs.h. */
20803
20804int
20805main ()
20806{
20807{ const char *func = __func__; return(func != 0 ? 0 : 1); }
20808 ;
20809 return 0;
20810}
20811_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020812if ac_fn_c_try_compile "$LINENO"; then :
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020814$as_echo "yes" >&6; }
20815else
cristy8b350f62009-11-15 23:12:43 +000020816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020817$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020819$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020821/* end confdefs.h. */
20822
20823int
20824main ()
20825{
20826{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
20827 ;
20828 return 0;
20829}
20830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020831if ac_fn_c_try_compile "$LINENO"; then :
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020833$as_echo "yes" >&6; }
20834
cristy8b350f62009-11-15 23:12:43 +000020835$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020836
20837else
cristy8b350f62009-11-15 23:12:43 +000020838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020839$as_echo "no" >&6; }
20840
cristy8b350f62009-11-15 23:12:43 +000020841$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020842
20843fi
cristy3ed852e2009-09-05 21:47:34 +000020844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20845fi
cristy3ed852e2009-09-05 21:47:34 +000020846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847
20848########
20849#
20850# Check for functions
20851#
20852########
cristy3ed852e2009-09-05 21:47:34 +000020853for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000020854do :
20855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20856ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20857eval as_val=\$$as_ac_Header
20858 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020859 cat >>confdefs.h <<_ACEOF
20860#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20861_ACEOF
20862
20863fi
20864
20865done
20866
cristy3ed852e2009-09-05 21:47:34 +000020867for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000020868do :
20869 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20870if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020871 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020872#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000020873_ACEOF
20874
20875fi
20876done
20877
cristy8b350f62009-11-15 23:12:43 +000020878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000020879$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020880if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020881 $as_echo_n "(cached) " >&6
20882else
cristy8b350f62009-11-15 23:12:43 +000020883 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020884 magick_cv_func_mmap_fileio=no
20885else
cristy8b350f62009-11-15 23:12:43 +000020886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020887/* end confdefs.h. */
20888$ac_includes_default
20889/* malloc might have been renamed as rpl_malloc. */
20890#undef malloc
20891
20892/*
20893 This test is derived from GNU Autoconf's similar macro.
20894 The purpose of this test is to verify that files may be memory
20895 mapped, and that memory mapping and file I/O are coherent.
20896
20897 The test creates a test file, memory maps the file, updates
20898 the file using the memory map, and then reads the file using
20899 file I/O to verify that the file contains the updates.
20900*/
20901
20902#include <fcntl.h>
20903#include <sys/mman.h>
20904
20905#if !STDC_HEADERS && !HAVE_STDLIB_H
20906char *malloc ();
20907#endif
20908
20909/* This mess was copied from the GNU getpagesize.h. */
20910#if !HAVE_GETPAGESIZE
20911/* Assume that all systems that can run configure have sys/param.h. */
20912# if !HAVE_SYS_PARAM_H
20913# define HAVE_SYS_PARAM_H 1
20914# endif
20915
20916# ifdef _SC_PAGESIZE
20917# define getpagesize() sysconf(_SC_PAGESIZE)
20918# else /* no _SC_PAGESIZE */
20919# if HAVE_SYS_PARAM_H
20920# include <sys/param.h>
20921# ifdef EXEC_PAGESIZE
20922# define getpagesize() EXEC_PAGESIZE
20923# else /* no EXEC_PAGESIZE */
20924# ifdef NBPG
20925# define getpagesize() NBPG * CLSIZE
20926# ifndef CLSIZE
20927# define CLSIZE 1
20928# endif /* no CLSIZE */
20929# else /* no NBPG */
20930# ifdef NBPC
20931# define getpagesize() NBPC
20932# else /* no NBPC */
20933# ifdef PAGESIZE
20934# define getpagesize() PAGESIZE
20935# endif /* PAGESIZE */
20936# endif /* no NBPC */
20937# endif /* no NBPG */
20938# endif /* no EXEC_PAGESIZE */
20939# else /* no HAVE_SYS_PARAM_H */
20940# define getpagesize() 8192 /* punt totally */
20941# endif /* no HAVE_SYS_PARAM_H */
20942# endif /* no _SC_PAGESIZE */
20943
20944#endif /* no HAVE_GETPAGESIZE */
20945
20946int
20947main ()
20948{
20949 char *data, *data2, *data3;
20950 int i, pagesize;
20951 int fd;
20952
20953 pagesize = getpagesize ();
20954
20955 /* First, make a file with some known garbage in it. */
20956 data = (char *) malloc (pagesize);
20957 if (!data)
20958 exit (1);
20959 for (i = 0; i < pagesize; ++i)
20960 *(data + i) = rand ();
20961 umask (0);
20962 fd = creat ("conftest.mmap", 0600);
20963 if (fd < 0)
20964 exit (1);
20965 if (write (fd, data, pagesize) != pagesize)
20966 exit (1);
20967 close (fd);
20968
20969 /* Mmap the file as read/write/shared and verify that we see the
20970 same garbage. */
20971 fd = open ("conftest.mmap", O_RDWR);
20972 if (fd < 0)
20973 exit (1);
20974 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
20975 if (data2 == 0)
20976 exit (1);
20977 for (i = 0; i < pagesize; ++i)
20978 if (*(data + i) != *(data2 + i))
20979 exit (1);
20980
20981 /* Finally, make sure that changes to the mapped area
20982 percolate back to the file as seen by read(). */
20983 for (i = 0; i < pagesize; ++i)
20984 *(data2 + i) = *(data2 + i) + 1;
20985 data3 = (char *) malloc (pagesize);
20986 if (!data3)
20987 exit (1);
20988 if (read (fd, data3, pagesize) != pagesize)
20989 exit (1);
20990 for (i = 0; i < pagesize; ++i)
20991 if (*(data2 + i) != *(data3 + i))
20992 exit (1);
20993 close (fd);
20994 exit (0);
20995}
20996_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020997if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020998 magick_cv_func_mmap_fileio=yes
20999else
cristy8b350f62009-11-15 23:12:43 +000021000 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000021001fi
cristy8b350f62009-11-15 23:12:43 +000021002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21003 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021004fi
21005
cristy3ed852e2009-09-05 21:47:34 +000021006fi
cristy8b350f62009-11-15 23:12:43 +000021007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000021008$as_echo "$magick_cv_func_mmap_fileio" >&6; }
21009if test $magick_cv_func_mmap_fileio = yes; then
21010
cristy8b350f62009-11-15 23:12:43 +000021011$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021012
21013fi
21014rm -f conftest.mmap
21015
cristy8b350f62009-11-15 23:12:43 +000021016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021017$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021018if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021019 $as_echo_n "(cached) " >&6
21020else
cristy8b350f62009-11-15 23:12:43 +000021021 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021022 ac_cv_func_closedir_void=yes
21023else
cristy8b350f62009-11-15 23:12:43 +000021024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021025/* end confdefs.h. */
21026$ac_includes_default
21027#include <$ac_header_dirent>
21028#ifndef __cplusplus
21029int closedir ();
21030#endif
21031
21032int
21033main ()
21034{
21035return closedir (opendir (".")) != 0;
21036 ;
21037 return 0;
21038}
21039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021040if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021041 ac_cv_func_closedir_void=no
21042else
cristy8b350f62009-11-15 23:12:43 +000021043 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000021044fi
cristy8b350f62009-11-15 23:12:43 +000021045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21046 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021047fi
21048
cristy3ed852e2009-09-05 21:47:34 +000021049fi
cristy8b350f62009-11-15 23:12:43 +000021050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021051$as_echo "$ac_cv_func_closedir_void" >&6; }
21052if test $ac_cv_func_closedir_void = yes; then
21053
cristy8b350f62009-11-15 23:12:43 +000021054$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021055
21056fi
21057
cristycd4c5312009-11-22 01:19:08 +000021058
21059
21060
21061 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000021062do :
21063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000021064ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21065"
cristy8b350f62009-11-15 23:12:43 +000021066eval as_val=\$$as_ac_Header
21067 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021068 cat >>confdefs.h <<_ACEOF
21069#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21070_ACEOF
21071
21072fi
21073
21074done
21075
cristycd4c5312009-11-22 01:19:08 +000021076
21077
21078
21079
21080
21081
21082
cristy3ed852e2009-09-05 21:47:34 +000021083for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021084do :
21085 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21086if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021087 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021088#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021089_ACEOF
21090
21091fi
21092done
21093
cristy8b350f62009-11-15 23:12:43 +000021094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000021095$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021096if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021097 $as_echo_n "(cached) " >&6
21098else
cristy8b350f62009-11-15 23:12:43 +000021099 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021100 ac_cv_func_mmap_fixed_mapped=no
21101else
cristy8b350f62009-11-15 23:12:43 +000021102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021103/* end confdefs.h. */
21104$ac_includes_default
21105/* malloc might have been renamed as rpl_malloc. */
21106#undef malloc
21107
21108/* Thanks to Mike Haertel and Jim Avera for this test.
21109 Here is a matrix of mmap possibilities:
21110 mmap private not fixed
21111 mmap private fixed at somewhere currently unmapped
21112 mmap private fixed at somewhere already mapped
21113 mmap shared not fixed
21114 mmap shared fixed at somewhere currently unmapped
21115 mmap shared fixed at somewhere already mapped
21116 For private mappings, we should verify that changes cannot be read()
21117 back from the file, nor mmap's back from the file at a different
21118 address. (There have been systems where private was not correctly
21119 implemented like the infamous i386 svr4.0, and systems where the
21120 VM page cache was not coherent with the file system buffer cache
21121 like early versions of FreeBSD and possibly contemporary NetBSD.)
21122 For shared mappings, we should conversely verify that changes get
21123 propagated back to all the places they're supposed to be.
21124
21125 Grep wants private fixed already mapped.
21126 The main things grep needs to know about mmap are:
21127 * does it exist and is it safe to write into the mmap'd area
21128 * how to use it (BSD variants) */
21129
21130#include <fcntl.h>
21131#include <sys/mman.h>
21132
21133#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21134char *malloc ();
21135#endif
21136
21137/* This mess was copied from the GNU getpagesize.h. */
21138#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000021139# ifdef _SC_PAGESIZE
21140# define getpagesize() sysconf(_SC_PAGESIZE)
21141# else /* no _SC_PAGESIZE */
21142# ifdef HAVE_SYS_PARAM_H
21143# include <sys/param.h>
21144# ifdef EXEC_PAGESIZE
21145# define getpagesize() EXEC_PAGESIZE
21146# else /* no EXEC_PAGESIZE */
21147# ifdef NBPG
21148# define getpagesize() NBPG * CLSIZE
21149# ifndef CLSIZE
21150# define CLSIZE 1
21151# endif /* no CLSIZE */
21152# else /* no NBPG */
21153# ifdef NBPC
21154# define getpagesize() NBPC
21155# else /* no NBPC */
21156# ifdef PAGESIZE
21157# define getpagesize() PAGESIZE
21158# endif /* PAGESIZE */
21159# endif /* no NBPC */
21160# endif /* no NBPG */
21161# endif /* no EXEC_PAGESIZE */
21162# else /* no HAVE_SYS_PARAM_H */
21163# define getpagesize() 8192 /* punt totally */
21164# endif /* no HAVE_SYS_PARAM_H */
21165# endif /* no _SC_PAGESIZE */
21166
21167#endif /* no HAVE_GETPAGESIZE */
21168
21169int
21170main ()
21171{
21172 char *data, *data2, *data3;
21173 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000021174 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000021175
21176 pagesize = getpagesize ();
21177
21178 /* First, make a file with some known garbage in it. */
21179 data = (char *) malloc (pagesize);
21180 if (!data)
21181 return 1;
21182 for (i = 0; i < pagesize; ++i)
21183 *(data + i) = rand ();
21184 umask (0);
21185 fd = creat ("conftest.mmap", 0600);
21186 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021187 return 2;
cristy3ed852e2009-09-05 21:47:34 +000021188 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021189 return 3;
cristy3ed852e2009-09-05 21:47:34 +000021190 close (fd);
21191
cristycd4c5312009-11-22 01:19:08 +000021192 /* Next, check that the tail of a page is zero-filled. File must have
21193 non-zero length, otherwise we risk SIGBUS for entire page. */
21194 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21195 if (fd2 < 0)
21196 return 4;
21197 data2 = "";
21198 if (write (fd2, data2, 1) != 1)
21199 return 5;
21200 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
21201 if (data2 == MAP_FAILED)
21202 return 6;
21203 for (i = 0; i < pagesize; ++i)
21204 if (*(data2 + i))
21205 return 7;
21206 close (fd2);
21207 if (munmap (data2, pagesize))
21208 return 8;
21209
cristy3ed852e2009-09-05 21:47:34 +000021210 /* Next, try to mmap the file at a fixed address which already has
21211 something else allocated at it. If we can, also make sure that
21212 we see the same garbage. */
21213 fd = open ("conftest.mmap", O_RDWR);
21214 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021215 return 9;
cristy3ed852e2009-09-05 21:47:34 +000021216 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21217 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000021218 return 10;
cristy3ed852e2009-09-05 21:47:34 +000021219 for (i = 0; i < pagesize; ++i)
21220 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000021221 return 11;
cristy3ed852e2009-09-05 21:47:34 +000021222
21223 /* Finally, make sure that changes to the mapped area do not
21224 percolate back to the file as seen by read(). (This is a bug on
21225 some variants of i386 svr4.0.) */
21226 for (i = 0; i < pagesize; ++i)
21227 *(data2 + i) = *(data2 + i) + 1;
21228 data3 = (char *) malloc (pagesize);
21229 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000021230 return 12;
cristy3ed852e2009-09-05 21:47:34 +000021231 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021232 return 13;
cristy3ed852e2009-09-05 21:47:34 +000021233 for (i = 0; i < pagesize; ++i)
21234 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000021235 return 14;
cristy3ed852e2009-09-05 21:47:34 +000021236 close (fd);
21237 return 0;
21238}
21239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021240if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021241 ac_cv_func_mmap_fixed_mapped=yes
21242else
cristy8b350f62009-11-15 23:12:43 +000021243 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000021244fi
cristy8b350f62009-11-15 23:12:43 +000021245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21246 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021247fi
21248
cristy3ed852e2009-09-05 21:47:34 +000021249fi
cristy8b350f62009-11-15 23:12:43 +000021250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000021251$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21252if test $ac_cv_func_mmap_fixed_mapped = yes; then
21253
cristy8b350f62009-11-15 23:12:43 +000021254$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021255
21256fi
cristycd4c5312009-11-22 01:19:08 +000021257rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000021258
cristy3ed852e2009-09-05 21:47:34 +000021259for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000021260do :
21261 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21262if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021263 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021264#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000021265_ACEOF
21266
21267fi
21268
21269done
21270
cristy3ed852e2009-09-05 21:47:34 +000021271for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000021272do :
21273 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21274ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21275eval as_val=\$$as_ac_var
21276 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021277 cat >>confdefs.h <<_ACEOF
21278#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21279_ACEOF
21280
21281fi
21282done
21283
21284if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021286$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021287if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021288 $as_echo_n "(cached) " >&6
21289else
cristy8b350f62009-11-15 23:12:43 +000021290 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021291 ac_cv_func_fork_works=cross
21292else
cristy8b350f62009-11-15 23:12:43 +000021293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021294/* end confdefs.h. */
21295$ac_includes_default
21296int
21297main ()
21298{
21299
21300 /* By Ruediger Kuhlmann. */
21301 return fork () < 0;
21302
21303 ;
21304 return 0;
21305}
21306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021307if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021308 ac_cv_func_fork_works=yes
21309else
cristy8b350f62009-11-15 23:12:43 +000021310 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021311fi
cristy8b350f62009-11-15 23:12:43 +000021312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21313 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021314fi
21315
cristy3ed852e2009-09-05 21:47:34 +000021316fi
cristy8b350f62009-11-15 23:12:43 +000021317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021318$as_echo "$ac_cv_func_fork_works" >&6; }
21319
21320else
21321 ac_cv_func_fork_works=$ac_cv_func_fork
21322fi
21323if test "x$ac_cv_func_fork_works" = xcross; then
21324 case $host in
21325 *-*-amigaos* | *-*-msdosdjgpp*)
21326 # Override, as these systems have only a dummy fork() stub
21327 ac_cv_func_fork_works=no
21328 ;;
21329 *)
21330 ac_cv_func_fork_works=yes
21331 ;;
21332 esac
cristy8b350f62009-11-15 23:12:43 +000021333 { $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 +000021334$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21335fi
21336ac_cv_func_vfork_works=$ac_cv_func_vfork
21337if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021339$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021340if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021341 $as_echo_n "(cached) " >&6
21342else
cristy8b350f62009-11-15 23:12:43 +000021343 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021344 ac_cv_func_vfork_works=cross
21345else
cristy8b350f62009-11-15 23:12:43 +000021346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021347/* end confdefs.h. */
21348/* Thanks to Paul Eggert for this test. */
21349$ac_includes_default
21350#include <sys/wait.h>
21351#ifdef HAVE_VFORK_H
21352# include <vfork.h>
21353#endif
21354/* On some sparc systems, changes by the child to local and incoming
21355 argument registers are propagated back to the parent. The compiler
21356 is told about this with #include <vfork.h>, but some compilers
21357 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21358 static variable whose address is put into a register that is
21359 clobbered by the vfork. */
21360static void
21361#ifdef __cplusplus
21362sparc_address_test (int arg)
21363# else
21364sparc_address_test (arg) int arg;
21365#endif
21366{
21367 static pid_t child;
21368 if (!child) {
21369 child = vfork ();
21370 if (child < 0) {
21371 perror ("vfork");
21372 _exit(2);
21373 }
21374 if (!child) {
21375 arg = getpid();
21376 write(-1, "", 0);
21377 _exit (arg);
21378 }
21379 }
21380}
21381
21382int
21383main ()
21384{
21385 pid_t parent = getpid ();
21386 pid_t child;
21387
21388 sparc_address_test (0);
21389
21390 child = vfork ();
21391
21392 if (child == 0) {
21393 /* Here is another test for sparc vfork register problems. This
21394 test uses lots of local variables, at least as many local
21395 variables as main has allocated so far including compiler
21396 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21397 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21398 reuse the register of parent for one of the local variables,
21399 since it will think that parent can't possibly be used any more
21400 in this routine. Assigning to the local variable will thus
21401 munge parent in the parent process. */
21402 pid_t
21403 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21404 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21405 /* Convince the compiler that p..p7 are live; otherwise, it might
21406 use the same hardware register for all 8 local variables. */
21407 if (p != p1 || p != p2 || p != p3 || p != p4
21408 || p != p5 || p != p6 || p != p7)
21409 _exit(1);
21410
21411 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21412 from child file descriptors. If the child closes a descriptor
21413 before it execs or exits, this munges the parent's descriptor
21414 as well. Test for this by closing stdout in the child. */
21415 _exit(close(fileno(stdout)) != 0);
21416 } else {
21417 int status;
21418 struct stat st;
21419
21420 while (wait(&status) != child)
21421 ;
21422 return (
21423 /* Was there some problem with vforking? */
21424 child < 0
21425
21426 /* Did the child fail? (This shouldn't happen.) */
21427 || status
21428
21429 /* Did the vfork/compiler bug occur? */
21430 || parent != getpid()
21431
21432 /* Did the file descriptor bug occur? */
21433 || fstat(fileno(stdout), &st) != 0
21434 );
21435 }
21436}
21437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021438if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021439 ac_cv_func_vfork_works=yes
21440else
cristy8b350f62009-11-15 23:12:43 +000021441 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021442fi
cristy8b350f62009-11-15 23:12:43 +000021443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21444 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021445fi
21446
cristy3ed852e2009-09-05 21:47:34 +000021447fi
cristy8b350f62009-11-15 23:12:43 +000021448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021449$as_echo "$ac_cv_func_vfork_works" >&6; }
21450
21451fi;
21452if test "x$ac_cv_func_fork_works" = xcross; then
21453 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000021454 { $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 +000021455$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21456fi
21457
21458if test "x$ac_cv_func_vfork_works" = xyes; then
21459
cristy8b350f62009-11-15 23:12:43 +000021460$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021461
21462else
21463
cristy8b350f62009-11-15 23:12:43 +000021464$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021465
21466fi
21467if test "x$ac_cv_func_fork_works" = xyes; then
21468
cristy8b350f62009-11-15 23:12:43 +000021469$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021470
21471fi
21472
cristy8b350f62009-11-15 23:12:43 +000021473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021474$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021475if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021476 $as_echo_n "(cached) " >&6
21477else
cristy8b350f62009-11-15 23:12:43 +000021478 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021479 ac_cv_func_memcmp_working=no
21480else
cristy8b350f62009-11-15 23:12:43 +000021481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021482/* end confdefs.h. */
21483$ac_includes_default
21484int
21485main ()
21486{
21487
21488 /* Some versions of memcmp are not 8-bit clean. */
21489 char c0 = '\100', c1 = '\200', c2 = '\201';
21490 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21491 return 1;
21492
21493 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21494 or more and with at least one buffer not starting on a 4-byte boundary.
21495 William Lewis provided this test program. */
21496 {
21497 char foo[21];
21498 char bar[21];
21499 int i;
21500 for (i = 0; i < 4; i++)
21501 {
21502 char *a = foo + i;
21503 char *b = bar + i;
21504 strcpy (a, "--------01111111");
21505 strcpy (b, "--------10000000");
21506 if (memcmp (a, b, 16) >= 0)
21507 return 1;
21508 }
21509 return 0;
21510 }
21511
21512 ;
21513 return 0;
21514}
21515_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021516if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021517 ac_cv_func_memcmp_working=yes
21518else
cristy8b350f62009-11-15 23:12:43 +000021519 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000021520fi
cristy8b350f62009-11-15 23:12:43 +000021521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21522 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021523fi
21524
cristy3ed852e2009-09-05 21:47:34 +000021525fi
cristy8b350f62009-11-15 23:12:43 +000021526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000021527$as_echo "$ac_cv_func_memcmp_working" >&6; }
21528test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21529 *" memcmp.$ac_objext "* ) ;;
21530 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21531 ;;
21532esac
21533
21534
cristy3ed852e2009-09-05 21:47:34 +000021535for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000021536do :
21537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21538ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21539eval as_val=\$$as_ac_Header
21540 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021541 cat >>confdefs.h <<_ACEOF
21542#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21543_ACEOF
21544
21545fi
21546
21547done
21548
cristy8b350f62009-11-15 23:12:43 +000021549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000021550$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021551if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021552 $as_echo_n "(cached) " >&6
21553else
21554 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21555 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21556 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
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
21560#ifdef HAVE_SYS_SELECT_H
21561# include <sys/select.h>
21562#endif
21563#ifdef HAVE_SYS_SOCKET_H
21564# include <sys/socket.h>
21565#endif
21566
21567int
21568main ()
21569{
21570extern int select ($ac_arg1,
21571 $ac_arg234, $ac_arg234, $ac_arg234,
21572 $ac_arg5);
21573 ;
21574 return 0;
21575}
21576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021577if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021578 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000021579fi
cristy3ed852e2009-09-05 21:47:34 +000021580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21581 done
21582 done
21583done
21584# Provide a safe default value.
21585: ${ac_cv_func_select_args='int,int *,struct timeval *'}
21586
21587fi
cristy8b350f62009-11-15 23:12:43 +000021588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000021589$as_echo "$ac_cv_func_select_args" >&6; }
21590ac_save_IFS=$IFS; IFS=','
21591set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21592IFS=$ac_save_IFS
21593shift
21594
21595cat >>confdefs.h <<_ACEOF
21596#define SELECT_TYPE_ARG1 $1
21597_ACEOF
21598
21599
21600cat >>confdefs.h <<_ACEOF
21601#define SELECT_TYPE_ARG234 ($2)
21602_ACEOF
21603
21604
21605cat >>confdefs.h <<_ACEOF
21606#define SELECT_TYPE_ARG5 ($3)
21607_ACEOF
21608
21609rm -f conftest*
21610
cristy8b350f62009-11-15 23:12:43 +000021611if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021612 $as_echo_n "(cached) " >&6
21613else
21614 ac_cv_func_setvbuf_reversed=no
21615fi
21616
21617
cristy8b350f62009-11-15 23:12:43 +000021618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000021619$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021620if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021621 $as_echo_n "(cached) " >&6
21622else
cristy8b350f62009-11-15 23:12:43 +000021623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021624/* end confdefs.h. */
21625#include <sys/types.h>
21626#include <signal.h>
21627
21628int
21629main ()
21630{
21631return *(signal (0, 0)) (0) == 1;
21632 ;
21633 return 0;
21634}
21635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021636if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021637 ac_cv_type_signal=int
21638else
cristy8b350f62009-11-15 23:12:43 +000021639 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000021640fi
cristy3ed852e2009-09-05 21:47:34 +000021641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21642fi
cristy8b350f62009-11-15 23:12:43 +000021643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000021644$as_echo "$ac_cv_type_signal" >&6; }
21645
21646cat >>confdefs.h <<_ACEOF
21647#define RETSIGTYPE $ac_cv_type_signal
21648_ACEOF
21649
21650
cristy8b350f62009-11-15 23:12:43 +000021651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021652$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021653if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021654 $as_echo_n "(cached) " >&6
21655else
cristy8b350f62009-11-15 23:12:43 +000021656 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021657 ac_cv_func_strtod=no
21658else
cristy8b350f62009-11-15 23:12:43 +000021659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021660/* end confdefs.h. */
21661
21662$ac_includes_default
21663#ifndef strtod
21664double strtod ();
21665#endif
21666int
21667main()
21668{
21669 {
21670 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
21671 char *string = " +69";
21672 char *term;
21673 double value;
21674 value = strtod (string, &term);
21675 if (value != 69 || term != (string + 4))
21676 return 1;
21677 }
21678
21679 {
21680 /* Under Solaris 2.4, strtod returns the wrong value for the
21681 terminating character under some conditions. */
21682 char *string = "NaN";
21683 char *term;
21684 strtod (string, &term);
21685 if (term != string && *(term - 1) == 0)
21686 return 1;
21687 }
21688 return 0;
21689}
21690
21691_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021692if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021693 ac_cv_func_strtod=yes
21694else
cristy8b350f62009-11-15 23:12:43 +000021695 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000021696fi
cristy8b350f62009-11-15 23:12:43 +000021697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21698 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021699fi
21700
cristy3ed852e2009-09-05 21:47:34 +000021701fi
cristy8b350f62009-11-15 23:12:43 +000021702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021703$as_echo "$ac_cv_func_strtod" >&6; }
21704if test $ac_cv_func_strtod = no; then
21705 case " $LIBOBJS " in
21706 *" strtod.$ac_objext "* ) ;;
21707 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21708 ;;
21709esac
21710
cristy8b350f62009-11-15 23:12:43 +000021711ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21712if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021713
cristy3ed852e2009-09-05 21:47:34 +000021714fi
21715
cristy3ed852e2009-09-05 21:47:34 +000021716if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000021717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021718$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021719if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021720 $as_echo_n "(cached) " >&6
21721else
21722 ac_check_lib_save_LIBS=$LIBS
21723LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000021724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021725/* end confdefs.h. */
21726
21727/* Override any GCC internal prototype to avoid an error.
21728 Use char because int might match the return type of a GCC
21729 builtin and then its argument prototype would still apply. */
21730#ifdef __cplusplus
21731extern "C"
21732#endif
21733char pow ();
21734int
21735main ()
21736{
21737return pow ();
21738 ;
21739 return 0;
21740}
21741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021742if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021743 ac_cv_lib_m_pow=yes
21744else
cristy8b350f62009-11-15 23:12:43 +000021745 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000021746fi
cristy8b350f62009-11-15 23:12:43 +000021747rm -f core conftest.err conftest.$ac_objext \
21748 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021749LIBS=$ac_check_lib_save_LIBS
21750fi
cristy8b350f62009-11-15 23:12:43 +000021751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021752$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021753if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021754 POW_LIB=-lm
21755else
cristy8b350f62009-11-15 23:12:43 +000021756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021757$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21758fi
21759
21760fi
21761
21762fi
21763
cristy3ed852e2009-09-05 21:47:34 +000021764for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000021765do :
21766 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21767if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021768 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021769#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000021770_ACEOF
21771
cristy8b350f62009-11-15 23:12:43 +000021772ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21773if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021774
cristy8b350f62009-11-15 23:12:43 +000021775$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021776
21777fi
21778
21779fi
21780done
21781
21782
21783
cristye43a45e2009-09-28 14:49:00 +000021784for ac_func in _exit atexit clock directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol symlink sysconf sigemptyset sigaction strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000021785do :
21786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21787ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21788eval as_val=\$$as_ac_var
21789 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021790 cat >>confdefs.h <<_ACEOF
21791#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21792_ACEOF
21793
21794fi
21795done
21796
21797
cristye43a45e2009-09-28 14:49:00 +000021798#
21799# Check for clock_gettime().
21800#
cristy8b350f62009-11-15 23:12:43 +000021801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021802$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021803if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021804 $as_echo_n "(cached) " >&6
21805else
21806 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021808/* end confdefs.h. */
21809
21810/* Override any GCC internal prototype to avoid an error.
21811 Use char because int might match the return type of a GCC
21812 builtin and then its argument prototype would still apply. */
21813#ifdef __cplusplus
21814extern "C"
21815#endif
21816char clock_gettime ();
21817int
21818main ()
21819{
21820return clock_gettime ();
21821 ;
21822 return 0;
21823}
21824_ACEOF
21825for ac_lib in '' rt; do
21826 if test -z "$ac_lib"; then
21827 ac_res="none required"
21828 else
21829 ac_res=-l$ac_lib
21830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21831 fi
cristy8b350f62009-11-15 23:12:43 +000021832 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021833 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000021834fi
cristy8b350f62009-11-15 23:12:43 +000021835rm -f core conftest.err conftest.$ac_objext \
21836 conftest$ac_exeext
21837 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021838 break
21839fi
21840done
cristy8b350f62009-11-15 23:12:43 +000021841if test "${ac_cv_search_clock_gettime+set}" = set; then :
21842
cristye43a45e2009-09-28 14:49:00 +000021843else
21844 ac_cv_search_clock_gettime=no
21845fi
21846rm conftest.$ac_ext
21847LIBS=$ac_func_search_save_LIBS
21848fi
cristy8b350f62009-11-15 23:12:43 +000021849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021850$as_echo "$ac_cv_search_clock_gettime" >&6; }
21851ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000021852if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000021853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21854
21855
cristy8b350f62009-11-15 23:12:43 +000021856$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021857
cristy8b350f62009-11-15 23:12:43 +000021858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000021859$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021861/* end confdefs.h. */
21862#include <time.h>
21863int
21864main ()
21865{
21866clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000021867 ;
21868 return 0;
21869}
21870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021871if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021872
cristy8b350f62009-11-15 23:12:43 +000021873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000021874$as_echo "yes" >&6; }
21875
cristy8b350f62009-11-15 23:12:43 +000021876$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021877
21878
21879else
cristy8b350f62009-11-15 23:12:43 +000021880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000021881$as_echo "no" >&6; }
21882
21883fi
cristye43a45e2009-09-28 14:49:00 +000021884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21885
21886else
21887
cristy8b350f62009-11-15 23:12:43 +000021888 for ac_func in gettimeofday ftime
21889do :
21890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21891ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21892eval as_val=\$$as_ac_var
21893 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000021894 cat >>confdefs.h <<_ACEOF
21895#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21896_ACEOF
21897 break
21898fi
21899done
21900
21901
21902
21903fi
21904
21905
cristy3ed852e2009-09-05 21:47:34 +000021906########
21907#
21908# Check for function prototypes
21909#
21910########
21911
cristy8b350f62009-11-15 23:12:43 +000021912ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000021913#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021914"
21915if test "x$ac_cv_have_decl_pread" = x""yes; then :
21916 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021917else
cristy8b350f62009-11-15 23:12:43 +000021918 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021919fi
21920
cristy3ed852e2009-09-05 21:47:34 +000021921cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021922#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021923_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021924ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000021925#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021926"
21927if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
21928 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021929else
cristy8b350f62009-11-15 23:12:43 +000021930 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021931fi
21932
cristy3ed852e2009-09-05 21:47:34 +000021933cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021934#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021935_ACEOF
21936
21937
cristy8b350f62009-11-15 23:12:43 +000021938ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000021939#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000021940"
21941if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
21942 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021943else
cristy8b350f62009-11-15 23:12:43 +000021944 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021945fi
21946
cristy3ed852e2009-09-05 21:47:34 +000021947cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021948#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021949_ACEOF
21950
21951
cristy8b350f62009-11-15 23:12:43 +000021952ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000021953#include <stdio.h>
21954#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000021955"
21956if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
21957 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021958else
cristy8b350f62009-11-15 23:12:43 +000021959 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021960fi
21961
cristy3ed852e2009-09-05 21:47:34 +000021962cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021963#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021964_ACEOF
21965
21966
cristy3ed852e2009-09-05 21:47:34 +000021967########
21968#
21969# C++ Support Tests (For Magick++)
21970#
21971########
21972have_magick_plus_plus='no'
21973if test "$with_magick_plus_plus" = 'yes'; then
21974 OLIBS="$LIBS"
21975 LIBS=''
21976 ac_ext=cpp
21977ac_cpp='$CXXCPP $CPPFLAGS'
21978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21981
21982
21983 # Full set of headers used...
21984 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
21985 # functional iomanip iosfwd iostream iterator list string strstream utility
21986 ac_ext=cpp
21987ac_cpp='$CXXCPP $CPPFLAGS'
21988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21991
21992 ac_ext=cpp
21993ac_cpp='$CXXCPP $CPPFLAGS'
21994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21997if test -z "$CXX"; then
21998 if test -n "$CCC"; then
21999 CXX=$CCC
22000 else
22001 if test -n "$ac_tool_prefix"; then
22002 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22003 do
22004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22005set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022007$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022008if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022009 $as_echo_n "(cached) " >&6
22010else
22011 if test -n "$CXX"; then
22012 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22013else
22014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22015for as_dir in $PATH
22016do
22017 IFS=$as_save_IFS
22018 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22021 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022023 break 2
22024 fi
22025done
cristy8b350f62009-11-15 23:12:43 +000022026 done
cristy3ed852e2009-09-05 21:47:34 +000022027IFS=$as_save_IFS
22028
22029fi
22030fi
22031CXX=$ac_cv_prog_CXX
22032if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022034$as_echo "$CXX" >&6; }
22035else
cristy8b350f62009-11-15 23:12:43 +000022036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022037$as_echo "no" >&6; }
22038fi
22039
22040
22041 test -n "$CXX" && break
22042 done
22043fi
22044if test -z "$CXX"; then
22045 ac_ct_CXX=$CXX
22046 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22047do
22048 # Extract the first word of "$ac_prog", so it can be a program name with args.
22049set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022051$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022052if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022053 $as_echo_n "(cached) " >&6
22054else
22055 if test -n "$ac_ct_CXX"; then
22056 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22057else
22058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22059for as_dir in $PATH
22060do
22061 IFS=$as_save_IFS
22062 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022063 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22065 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022067 break 2
22068 fi
22069done
cristy8b350f62009-11-15 23:12:43 +000022070 done
cristy3ed852e2009-09-05 21:47:34 +000022071IFS=$as_save_IFS
22072
22073fi
22074fi
22075ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22076if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022078$as_echo "$ac_ct_CXX" >&6; }
22079else
cristy8b350f62009-11-15 23:12:43 +000022080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022081$as_echo "no" >&6; }
22082fi
22083
22084
22085 test -n "$ac_ct_CXX" && break
22086done
22087
22088 if test "x$ac_ct_CXX" = x; then
22089 CXX="g++"
22090 else
22091 case $cross_compiling:$ac_tool_warned in
22092yes:)
cristy8b350f62009-11-15 23:12:43 +000022093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000022094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22095ac_tool_warned=yes ;;
22096esac
22097 CXX=$ac_ct_CXX
22098 fi
22099fi
22100
22101 fi
22102fi
22103# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000022104$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000022105set X $ac_compile
22106ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000022107for ac_option in --version -v -V -qversion; do
22108 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000022109case "(($ac_try" in
22110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111 *) ac_try_echo=$ac_try;;
22112esac
cristy8b350f62009-11-15 23:12:43 +000022113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22114$as_echo "$ac_try_echo"; } >&5
22115 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000022116 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000022117 if test -s conftest.err; then
22118 sed '10a\
22119... rest of stderr output deleted ...
22120 10q' conftest.err >conftest.er1
22121 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000022122 fi
cristycd4c5312009-11-22 01:19:08 +000022123 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000022124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22125 test $ac_status = 0; }
22126done
cristy3ed852e2009-09-05 21:47:34 +000022127
cristy8b350f62009-11-15 23:12:43 +000022128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000022129$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022130if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022131 $as_echo_n "(cached) " >&6
22132else
cristy8b350f62009-11-15 23:12:43 +000022133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022134/* end confdefs.h. */
22135
22136int
22137main ()
22138{
22139#ifndef __GNUC__
22140 choke me
22141#endif
22142
22143 ;
22144 return 0;
22145}
22146_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022147if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022148 ac_compiler_gnu=yes
22149else
cristy8b350f62009-11-15 23:12:43 +000022150 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000022151fi
cristy3ed852e2009-09-05 21:47:34 +000022152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22153ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22154
22155fi
cristy8b350f62009-11-15 23:12:43 +000022156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000022157$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22158if test $ac_compiler_gnu = yes; then
22159 GXX=yes
22160else
22161 GXX=
22162fi
22163ac_test_CXXFLAGS=${CXXFLAGS+set}
22164ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000022165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022166$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022167if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022168 $as_echo_n "(cached) " >&6
22169else
22170 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22171 ac_cxx_werror_flag=yes
22172 ac_cv_prog_cxx_g=no
22173 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022175/* end confdefs.h. */
22176
22177int
22178main ()
22179{
22180
22181 ;
22182 return 0;
22183}
22184_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022185if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022186 ac_cv_prog_cxx_g=yes
22187else
cristy8b350f62009-11-15 23:12:43 +000022188 CXXFLAGS=""
22189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022190/* end confdefs.h. */
22191
22192int
22193main ()
22194{
22195
22196 ;
22197 return 0;
22198}
22199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022200if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022201
cristy8b350f62009-11-15 23:12:43 +000022202else
22203 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000022204 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022206/* end confdefs.h. */
22207
22208int
22209main ()
22210{
22211
22212 ;
22213 return 0;
22214}
22215_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022216if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022217 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000022218fi
cristy3ed852e2009-09-05 21:47:34 +000022219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22220fi
cristy3ed852e2009-09-05 21:47:34 +000022221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22222fi
cristy3ed852e2009-09-05 21:47:34 +000022223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22225fi
cristy8b350f62009-11-15 23:12:43 +000022226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022227$as_echo "$ac_cv_prog_cxx_g" >&6; }
22228if test "$ac_test_CXXFLAGS" = set; then
22229 CXXFLAGS=$ac_save_CXXFLAGS
22230elif test $ac_cv_prog_cxx_g = yes; then
22231 if test "$GXX" = yes; then
22232 CXXFLAGS="-g -O2"
22233 else
22234 CXXFLAGS="-g"
22235 fi
22236else
22237 if test "$GXX" = yes; then
22238 CXXFLAGS="-O2"
22239 else
22240 CXXFLAGS=
22241 fi
22242fi
22243ac_ext=cpp
22244ac_cpp='$CXXCPP $CPPFLAGS'
22245ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22246ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22247ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22248
22249depcc="$CXX" am_compiler_list=
22250
cristy8b350f62009-11-15 23:12:43 +000022251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022252$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022253if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022254 $as_echo_n "(cached) " >&6
22255else
22256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22257 # We make a subdir and do the tests there. Otherwise we can end up
22258 # making bogus files that we don't know about and never remove. For
22259 # instance it was reported that on HP-UX the gcc test will end up
22260 # making a dummy file named `D' -- because `-MD' means `put the output
22261 # in D'.
22262 mkdir conftest.dir
22263 # Copy depcomp to subdir because otherwise we won't find it if we're
22264 # using a relative directory.
22265 cp "$am_depcomp" conftest.dir
22266 cd conftest.dir
22267 # We will build objects and dependencies in a subdirectory because
22268 # it helps to detect inapplicable dependency modes. For instance
22269 # both Tru64's cc and ICC support -MD to output dependencies as a
22270 # side effect of compilation, but ICC will put the dependencies in
22271 # the current directory while Tru64 will put them in the object
22272 # directory.
22273 mkdir sub
22274
22275 am_cv_CXX_dependencies_compiler_type=none
22276 if test "$am_compiler_list" = ""; then
22277 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22278 fi
22279 am__universal=false
22280 case " $depcc " in #(
22281 *\ -arch\ *\ -arch\ *) am__universal=true ;;
22282 esac
22283
22284 for depmode in $am_compiler_list; do
22285 # Setup a source with many dependencies, because some compilers
22286 # like to wrap large dependency lists on column 80 (with \), and
22287 # we should not choose a depcomp mode which is confused by this.
22288 #
22289 # We need to recreate these files for each test, as the compiler may
22290 # overwrite some of them when testing with obscure command lines.
22291 # This happens at least with the AIX C compiler.
22292 : > sub/conftest.c
22293 for i in 1 2 3 4 5 6; do
22294 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22295 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22296 # Solaris 8's {/usr,}/bin/sh.
22297 touch sub/conftst$i.h
22298 done
22299 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22300
22301 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22302 # mode. It turns out that the SunPro C++ compiler does not properly
22303 # handle `-M -o', and we need to detect this. Also, some Intel
22304 # versions had trouble with output in subdirs
22305 am__obj=sub/conftest.${OBJEXT-o}
22306 am__minus_obj="-o $am__obj"
22307 case $depmode in
22308 gcc)
22309 # This depmode causes a compiler race in universal mode.
22310 test "$am__universal" = false || continue
22311 ;;
22312 nosideeffect)
22313 # after this tag, mechanisms are not by side-effect, so they'll
22314 # only be used when explicitly requested
22315 if test "x$enable_dependency_tracking" = xyes; then
22316 continue
22317 else
22318 break
22319 fi
22320 ;;
22321 msvisualcpp | msvcmsys)
22322 # This compiler won't grok `-c -o', but also, the minuso test has
22323 # not run yet. These depmodes are late enough in the game, and
22324 # so weak that their functioning should not be impacted.
22325 am__obj=conftest.${OBJEXT-o}
22326 am__minus_obj=
22327 ;;
22328 none) break ;;
22329 esac
22330 if depmode=$depmode \
22331 source=sub/conftest.c object=$am__obj \
22332 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22333 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
22334 >/dev/null 2>conftest.err &&
22335 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22336 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22337 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
22338 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22339 # icc doesn't choke on unknown options, it will just issue warnings
22340 # or remarks (even with -Werror). So we grep stderr for any message
22341 # that says an option was ignored or not supported.
22342 # When given -MP, icc 7.0 and 7.1 complain thusly:
22343 # icc: Command line warning: ignoring option '-M'; no argument required
22344 # The diagnosis changed in icc 8.0:
22345 # icc: Command line remark: option '-MP' not supported
22346 if (grep 'ignoring option' conftest.err ||
22347 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22348 am_cv_CXX_dependencies_compiler_type=$depmode
22349 break
22350 fi
22351 fi
22352 done
22353
22354 cd ..
22355 rm -rf conftest.dir
22356else
22357 am_cv_CXX_dependencies_compiler_type=none
22358fi
22359
22360fi
cristy8b350f62009-11-15 23:12:43 +000022361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022362$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
22363CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
22364
22365 if
22366 test "x$enable_dependency_tracking" != xno \
22367 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
22368 am__fastdepCXX_TRUE=
22369 am__fastdepCXX_FALSE='#'
22370else
22371 am__fastdepCXX_TRUE='#'
22372 am__fastdepCXX_FALSE=
22373fi
22374
22375
cristy8b350f62009-11-15 23:12:43 +000022376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022377$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022378if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022379 $as_echo_n "(cached) " >&6
22380else
22381
22382 ac_ext=cpp
22383ac_cpp='$CXXCPP $CPPFLAGS'
22384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22387
cristy8b350f62009-11-15 23:12:43 +000022388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022389/* end confdefs.h. */
22390
22391int f(int x){return 1;}
22392int f(char x){return 1;}
22393int f(bool x){return 1;}
22394
22395int
22396main ()
22397{
22398bool b = true; return f(b);
22399 ;
22400 return 0;
22401}
22402_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022403if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022404 ac_cv_cxx_have_bool=yes
22405else
cristy8b350f62009-11-15 23:12:43 +000022406 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000022407fi
cristy3ed852e2009-09-05 21:47:34 +000022408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22409 ac_ext=cpp
22410ac_cpp='$CXXCPP $CPPFLAGS'
22411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22414
22415
22416fi
cristy8b350f62009-11-15 23:12:43 +000022417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000022418$as_echo "$ac_cv_cxx_have_bool" >&6; }
22419if test "$ac_cv_cxx_have_bool" = yes; then
22420
cristy8b350f62009-11-15 23:12:43 +000022421$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022422
22423fi
22424
cristy8b350f62009-11-15 23:12:43 +000022425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022426$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022427if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022428 $as_echo_n "(cached) " >&6
22429else
22430
22431 ac_ext=cpp
22432ac_cpp='$CXXCPP $CPPFLAGS'
22433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22436
cristy8b350f62009-11-15 23:12:43 +000022437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022438/* end confdefs.h. */
22439namespace Outer { namespace Inner { int i = 0; }}
22440int
22441main ()
22442{
22443using namespace Outer::Inner; return i;
22444 ;
22445 return 0;
22446}
22447_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022448if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022449 ac_cv_cxx_have_namespaces=yes
22450else
cristy8b350f62009-11-15 23:12:43 +000022451 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000022452fi
cristy3ed852e2009-09-05 21:47:34 +000022453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22454 ac_ext=cpp
22455ac_cpp='$CXXCPP $CPPFLAGS'
22456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22459
22460
22461fi
cristy8b350f62009-11-15 23:12:43 +000022462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022463$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
22464if test "$ac_cv_cxx_have_namespaces" = yes; then
22465
cristy8b350f62009-11-15 23:12:43 +000022466$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022467
22468fi
22469
cristy8b350f62009-11-15 23:12:43 +000022470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022471$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022472if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022473 $as_echo_n "(cached) " >&6
22474else
22475
22476 ac_ext=cpp
22477ac_cpp='$CXXCPP $CPPFLAGS'
22478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22481
cristy8b350f62009-11-15 23:12:43 +000022482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022483/* end confdefs.h. */
22484#include <iostream>
22485 std::istream& is = std::cin;
22486
22487int
22488main ()
22489{
22490return 0;
22491 ;
22492 return 0;
22493}
22494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022495if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022496 ac_cv_cxx_have_std_namespace=yes
22497else
cristy8b350f62009-11-15 23:12:43 +000022498 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000022499fi
cristy3ed852e2009-09-05 21:47:34 +000022500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22501 ac_ext=cpp
22502ac_cpp='$CXXCPP $CPPFLAGS'
22503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22506
22507
22508fi
cristy8b350f62009-11-15 23:12:43 +000022509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022510$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
22511if test "$ac_cv_cxx_have_std_namespace" = yes; then
22512
cristy8b350f62009-11-15 23:12:43 +000022513$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022514
22515fi
22516
cristy8b350f62009-11-15 23:12:43 +000022517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000022518$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022519if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022520 $as_echo_n "(cached) " >&6
22521else
22522
22523
22524 ac_ext=cpp
22525ac_cpp='$CXXCPP $CPPFLAGS'
22526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22529
cristy8b350f62009-11-15 23:12:43 +000022530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022531/* end confdefs.h. */
22532#include <iostream>
22533#include <map>
22534#include <iomanip>
22535#include <cmath>
22536#ifdef HAVE_NAMESPACES
22537using namespace std;
22538#endif
22539int
22540main ()
22541{
22542return 0;
22543 ;
22544 return 0;
22545}
22546_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022547if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022548 ac_cv_cxx_have_std_libs=yes
22549else
cristy8b350f62009-11-15 23:12:43 +000022550 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000022551fi
cristy3ed852e2009-09-05 21:47:34 +000022552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22553 ac_ext=cpp
22554ac_cpp='$CXXCPP $CPPFLAGS'
22555ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22556ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22558
22559
22560fi
cristy8b350f62009-11-15 23:12:43 +000022561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000022562$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
22563if test "$ac_cv_cxx_have_std_libs" = yes; then
22564
cristy8b350f62009-11-15 23:12:43 +000022565$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022566
22567fi
22568
cristy8b350f62009-11-15 23:12:43 +000022569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000022570$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022571if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022572 $as_echo_n "(cached) " >&6
22573else
22574
22575 ac_ext=cpp
22576ac_cpp='$CXXCPP $CPPFLAGS'
22577ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22578ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22579ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22580
cristy8b350f62009-11-15 23:12:43 +000022581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022582/* end confdefs.h. */
22583const wchar_t* s=L"wide string";
22584_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022585if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022586 ac_cv_cxx_have_lstring=yes
22587else
cristy8b350f62009-11-15 23:12:43 +000022588 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000022589fi
cristy3ed852e2009-09-05 21:47:34 +000022590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22591 ac_ext=cpp
22592ac_cpp='$CXXCPP $CPPFLAGS'
22593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22596
22597
22598fi
cristy8b350f62009-11-15 23:12:43 +000022599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000022600$as_echo "$ac_cv_cxx_have_lstring" >&6; }
22601if test "$ac_cv_cxx_have_lstring" = yes; then
22602
cristy8b350f62009-11-15 23:12:43 +000022603$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022604
22605fi
22606
22607
22608 OPENMP_CXXFLAGS=
22609 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000022610if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022611 enableval=$enable_openmp;
22612fi
22613
22614 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000022615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
22616$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022617if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022618 $as_echo_n "(cached) " >&6
22619else
cristy8b350f62009-11-15 23:12:43 +000022620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22621/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022622
22623#ifndef _OPENMP
22624 choke me
22625#endif
22626#include <omp.h>
22627int main () { return omp_get_num_threads (); }
22628
22629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022630if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022631 ac_cv_prog_cxx_openmp='none needed'
22632else
cristy8b350f62009-11-15 23:12:43 +000022633 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000022634 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
22635 ac_save_CXXFLAGS=$CXXFLAGS
22636 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000022637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22638/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022639
22640#ifndef _OPENMP
22641 choke me
22642#endif
22643#include <omp.h>
22644int main () { return omp_get_num_threads (); }
22645
22646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022647if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022648 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000022649fi
cristy8b350f62009-11-15 23:12:43 +000022650rm -f core conftest.err conftest.$ac_objext \
22651 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022652 CXXFLAGS=$ac_save_CXXFLAGS
22653 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
22654 break
22655 fi
22656 done
22657fi
cristy8b350f62009-11-15 23:12:43 +000022658rm -f core conftest.err conftest.$ac_objext \
22659 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022660fi
cristy8b350f62009-11-15 23:12:43 +000022661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022662$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
22663 case $ac_cv_prog_cxx_openmp in #(
22664 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000022665 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000022666 *)
cristy8b350f62009-11-15 23:12:43 +000022667 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000022668 esac
22669 fi
22670
22671
22672 ac_ext=c
22673ac_cpp='$CPP $CPPFLAGS'
22674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22676ac_compiler_gnu=$ac_cv_c_compiler_gnu
22677
22678
cristy8b350f62009-11-15 23:12:43 +000022679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000022680$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
22681 if \
22682 test $ac_cv_cxx_have_bool = 'yes' && \
22683 test $ac_cv_cxx_have_lstring = 'yes' && \
22684 test $ac_cv_cxx_have_namespaces = 'yes' && \
22685 test $ac_cv_cxx_have_std_libs = 'yes' && \
22686 test $ac_cv_cxx_have_std_namespace = 'yes'; then
22687 have_magick_plus_plus='yes'
22688 else
22689 have_magick_plus_plus='no (failed tests)'
22690 fi
cristy8b350f62009-11-15 23:12:43 +000022691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000022692$as_echo "$have_magick_plus_plus" >&6; }
22693 LIBS="$OLIBS"
22694fi
22695 if test "$have_magick_plus_plus" = 'yes'; then
22696 WITH_MAGICK_PLUS_PLUS_TRUE=
22697 WITH_MAGICK_PLUS_PLUS_FALSE='#'
22698else
22699 WITH_MAGICK_PLUS_PLUS_TRUE='#'
22700 WITH_MAGICK_PLUS_PLUS_FALSE=
22701fi
22702
22703
22704# Only check for delegate libraries in subdirectories if requested.
22705if test "$enable_delegate_build" != 'no'; then
22706 # Check for delegate sub-directories and add -I & -L options as required.
22707 # This presumes that delegates are installed as detailed in the ImageMagick
22708 # README. If delegates are installed in a standard location where the
22709 # compiler will automatically find them then these options should not be
22710 # required.
22711
22712 #
22713 # Most delegates have includes in the same directory as the library, but not all...
22714 #
22715 # Includes
22716 for dir in bzlib fftw fpx jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
22717 if test -d "$builddir/$dir"; then
22718 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
22719 else
22720 if test -d "$srcdirfull/$dir"; then
22721 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
22722 fi
22723 fi
22724 done
22725
22726 # Libraries
22727 for dir in bzlib fftw fpx jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
22728 if test -d "$builddir/$dir/.libs"; then
22729 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
22730 else
22731 if test -d "$srcdirfull/$dir/.libs"; then
22732 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
22733 fi
22734 fi
22735 if test -d "$builddir/$dir"; then
22736 LDFLAGS="$LDFLAGS -L$builddir/$dir"
22737 else
22738 if test -d "$srcdirfull/$dir"; then
22739 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
22740 fi
22741 fi
22742 done
22743fi
22744
22745# Assume that delegate headers reside under same directory as ImageMagick
22746# installation prefix.
22747MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
22748
22749#
22750# Find the X11 RGB database
22751#
cristy8b350f62009-11-15 23:12:43 +000022752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022753$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022754if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022755 $as_echo_n "(cached) " >&6
22756else
22757 # Look for the header file in a standard set of common directories.
22758# Check X11 before X11Rn because it is often a symlink to the current release.
22759 for ac_dir in \
22760 /lib/usr/lib/X11 \
22761 /usr/X11/lib \
22762 /usr/X11R4/lib \
22763 /usr/X11R5/lib \
22764 /usr/X11R6/lib \
22765 /usr/X11R7/lib \
22766 /usr/X386/lib \
22767 /usr/XFree86/lib/X11 \
22768 /usr/athena/lib \
22769 /usr/lib \
22770 /usr/lib/X11 \
22771 /usr/lib/X11R4 \
22772 /usr/lib/X11R5 \
22773 /usr/lib/X11R6 \
22774 /usr/lib/X11R7 \
22775 /usr/local/X11/lib \
22776 /usr/local/X11R4/lib \
22777 /usr/local/X11R5/lib \
22778 /usr/local/X11R6/lib \
22779 /usr/local/lib \
22780 /usr/local/lib/X11 \
22781 /usr/local/lib/X11R4 \
22782 /usr/local/lib/X11R5 \
22783 /usr/local/lib/X11R6 \
22784 /usr/local/lib/X11R7 \
22785 /usr/local/x11r5/lib \
22786 /usr/lpp/Xamples/lib \
22787 /usr/openwin/lib \
22788 /usr/openwin/share/lib \
22789 /usr/unsupported/lib \
22790 /usr/x386/lib \
22791 ; do
22792 if test -f "$ac_dir/X11/rgb.txt"; then
22793 im_cv_x_configure="$ac_dir/X11/"
22794 break
22795 elif test -f "$ac_dir/rgb.txt"; then
22796 im_cv_x_configure="$ac_dir/"
22797 break
22798 fi
22799
22800 done
22801fi
cristy8b350f62009-11-15 23:12:43 +000022802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000022803$as_echo "$im_cv_x_configure" >&6; }
22804X11_CONFIGURE_PATH="$im_cv_x_configure"
22805case "${build_os}" in
22806 mingw* )
22807 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
22808 ;;
22809esac
22810
22811cat >>confdefs.h <<_ACEOF
22812#define X11_CONFIGURE_PATH "$X11ConfigurePath"
22813_ACEOF
22814
22815
22816#
22817# Find OpenMP library
22818#
22819GOMP_LIBS=''
22820if test "$enable_openmp" != 'no'; then
22821 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000022822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022823$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022824if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022825 $as_echo_n "(cached) " >&6
22826else
22827 ac_check_lib_save_LIBS=$LIBS
22828LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022830/* end confdefs.h. */
22831
22832/* Override any GCC internal prototype to avoid an error.
22833 Use char because int might match the return type of a GCC
22834 builtin and then its argument prototype would still apply. */
22835#ifdef __cplusplus
22836extern "C"
22837#endif
22838char GOMP_parallel_start ();
22839int
22840main ()
22841{
22842return GOMP_parallel_start ();
22843 ;
22844 return 0;
22845}
22846_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022847if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022848 ac_cv_lib_gomp_GOMP_parallel_start=yes
22849else
cristy8b350f62009-11-15 23:12:43 +000022850 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000022851fi
cristy8b350f62009-11-15 23:12:43 +000022852rm -f core conftest.err conftest.$ac_objext \
22853 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022854LIBS=$ac_check_lib_save_LIBS
22855fi
cristy8b350f62009-11-15 23:12:43 +000022856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000022857$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022858if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022859 GOMP_LIBS="-lgomp"
22860fi
22861 # gcc
22862 else
cristy8b350f62009-11-15 23:12:43 +000022863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000022864$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022865if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022866 $as_echo_n "(cached) " >&6
22867else
22868 ac_check_lib_save_LIBS=$LIBS
22869LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022871/* end confdefs.h. */
22872
22873/* Override any GCC internal prototype to avoid an error.
22874 Use char because int might match the return type of a GCC
22875 builtin and then its argument prototype would still apply. */
22876#ifdef __cplusplus
22877extern "C"
22878#endif
22879char sunw_mp_register_warn ();
22880int
22881main ()
22882{
22883return sunw_mp_register_warn ();
22884 ;
22885 return 0;
22886}
22887_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022888if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022889 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
22890else
cristy8b350f62009-11-15 23:12:43 +000022891 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000022892fi
cristy8b350f62009-11-15 23:12:43 +000022893rm -f core conftest.err conftest.$ac_objext \
22894 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022895LIBS=$ac_check_lib_save_LIBS
22896fi
cristy8b350f62009-11-15 23:12:43 +000022897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000022898$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022899if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022900 GOMP_LIBS="-lmtsk"
22901fi
22902 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000022903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022904$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022905if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022906 $as_echo_n "(cached) " >&6
22907else
22908 ac_check_lib_save_LIBS=$LIBS
22909LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022911/* end confdefs.h. */
22912
22913/* Override any GCC internal prototype to avoid an error.
22914 Use char because int might match the return type of a GCC
22915 builtin and then its argument prototype would still apply. */
22916#ifdef __cplusplus
22917extern "C"
22918#endif
22919char _xlsmpFlush ();
22920int
22921main ()
22922{
22923return _xlsmpFlush ();
22924 ;
22925 return 0;
22926}
22927_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022928if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022929 ac_cv_lib_xlsmp__xlsmpFlush=yes
22930else
cristy8b350f62009-11-15 23:12:43 +000022931 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000022932fi
cristy8b350f62009-11-15 23:12:43 +000022933rm -f core conftest.err conftest.$ac_objext \
22934 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022935LIBS=$ac_check_lib_save_LIBS
22936fi
cristy8b350f62009-11-15 23:12:43 +000022937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000022938$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022939if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022940 GOMP_LIBS="-lxlsmp"
22941fi
22942 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000022943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022944$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022945if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022946 $as_echo_n "(cached) " >&6
22947else
22948 ac_check_lib_save_LIBS=$LIBS
22949LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022951/* end confdefs.h. */
22952
22953/* Override any GCC internal prototype to avoid an error.
22954 Use char because int might match the return type of a GCC
22955 builtin and then its argument prototype would still apply. */
22956#ifdef __cplusplus
22957extern "C"
22958#endif
22959char mp_destroy ();
22960int
22961main ()
22962{
22963return mp_destroy ();
22964 ;
22965 return 0;
22966}
22967_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022968if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022969 ac_cv_lib_mp_mp_destroy=yes
22970else
cristy8b350f62009-11-15 23:12:43 +000022971 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000022972fi
cristy8b350f62009-11-15 23:12:43 +000022973rm -f core conftest.err conftest.$ac_objext \
22974 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022975LIBS=$ac_check_lib_save_LIBS
22976fi
cristy8b350f62009-11-15 23:12:43 +000022977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000022978$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022979if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022980 GOMP_LIBS="-lmp"
22981fi
22982 # SGI IRIX 6.5 MIPSpro C/C++
22983 fi
22984 LIBS="$GOMP_LIBS $LIBS"
22985fi
22986
22987
22988#
22989# Find Posix threads library
22990#
22991THREAD_LIBS=''
22992if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
22993
22994 if test "x$PTHREAD_LIBS" = "x"; then
22995 case "${host_cpu}-${host_os}" in
22996 *-freebsd*)
22997
22998
22999
23000ac_ext=c
23001ac_cpp='$CPP $CPPFLAGS'
23002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23004ac_compiler_gnu=$ac_cv_c_compiler_gnu
23005
23006magick_pthread_lib_ok=no
23007
23008LIB=-lc_r
23009save_LIBS="$LIBS"
23010LIBS="$LIBS $LIB"
23011
cristy8b350f62009-11-15 23:12:43 +000023012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023013$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023015/* end confdefs.h. */
23016#include <pthread.h>
23017int
23018main ()
23019{
23020 pthread_t th;
23021 pthread_join(th, 0);
23022 pthread_attr_init(0);
23023 pthread_cleanup_push(0, 0);
23024 pthread_create(0,0,0,0);
23025 pthread_cleanup_pop(0);
23026 ;
23027 return 0;
23028}
23029_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023030if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023031 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023032fi
cristy8b350f62009-11-15 23:12:43 +000023033rm -f core conftest.err conftest.$ac_objext \
23034 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023035
cristy8b350f62009-11-15 23:12:43 +000023036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023037$as_echo "${magick_pthread_lib_ok}" >&6; }
23038if test "$magick_pthread_lib_ok" = yes
23039then
23040 PTHREAD_LIBS=-lc_r
23041 :
23042else
23043
23044 :
23045fi
23046
23047LIBS="$save_LIBS"
23048
23049ac_ext=c
23050ac_cpp='$CPP $CPPFLAGS'
23051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23053ac_compiler_gnu=$ac_cv_c_compiler_gnu
23054
23055 ;;
23056 esac
23057 fi
23058
23059 for lib in pthread pthreads; do
23060 if test "x$PTHREAD_LIBS" = "x"; then
23061
23062
23063
23064ac_ext=c
23065ac_cpp='$CPP $CPPFLAGS'
23066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23068ac_compiler_gnu=$ac_cv_c_compiler_gnu
23069
23070magick_pthread_lib_ok=no
23071
23072LIB=-l$lib
23073save_LIBS="$LIBS"
23074LIBS="$LIBS $LIB"
23075
cristy8b350f62009-11-15 23:12:43 +000023076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023077$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023079/* end confdefs.h. */
23080#include <pthread.h>
23081int
23082main ()
23083{
23084 pthread_t th;
23085 pthread_join(th, 0);
23086 pthread_attr_init(0);
23087 pthread_cleanup_push(0, 0);
23088 pthread_create(0,0,0,0);
23089 pthread_cleanup_pop(0);
23090 ;
23091 return 0;
23092}
23093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023094if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023095 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023096fi
cristy8b350f62009-11-15 23:12:43 +000023097rm -f core conftest.err conftest.$ac_objext \
23098 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023099
cristy8b350f62009-11-15 23:12:43 +000023100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023101$as_echo "${magick_pthread_lib_ok}" >&6; }
23102if test "$magick_pthread_lib_ok" = yes
23103then
23104 PTHREAD_LIBS=-l$lib
23105 :
23106else
23107
23108 :
23109fi
23110
23111LIBS="$save_LIBS"
23112
23113ac_ext=c
23114ac_cpp='$CPP $CPPFLAGS'
23115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23117ac_compiler_gnu=$ac_cv_c_compiler_gnu
23118
23119
23120 fi
23121 done
23122
23123 THREAD_LIBS="$PTHREAD_LIBS"
23124 LIBS="$LIBS $THREAD_LIBS"
23125fi
23126
23127
23128#
23129# Check for umem.
23130#
23131have_umem='no'
23132UMEM_LIBS=''
23133if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000023134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000023135$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023137$as_echo "" >&6; }
23138 failed=0
23139 passed=0
cristy8b350f62009-11-15 23:12:43 +000023140 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
23141if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023142 passed=`expr $passed + 1`
23143else
23144 failed=`expr $failed + 1`
23145fi
23146
23147
cristy8b350f62009-11-15 23:12:43 +000023148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023149$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023150if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023151 $as_echo_n "(cached) " >&6
23152else
23153 ac_check_lib_save_LIBS=$LIBS
23154LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023156/* end confdefs.h. */
23157
23158/* Override any GCC internal prototype to avoid an error.
23159 Use char because int might match the return type of a GCC
23160 builtin and then its argument prototype would still apply. */
23161#ifdef __cplusplus
23162extern "C"
23163#endif
23164char umem_alloc ();
23165int
23166main ()
23167{
23168return umem_alloc ();
23169 ;
23170 return 0;
23171}
23172_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023173if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023174 ac_cv_lib_umem_umem_alloc=yes
23175else
cristy8b350f62009-11-15 23:12:43 +000023176 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000023177fi
cristy8b350f62009-11-15 23:12:43 +000023178rm -f core conftest.err conftest.$ac_objext \
23179 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023180LIBS=$ac_check_lib_save_LIBS
23181fi
cristy8b350f62009-11-15 23:12:43 +000023182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023183$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023184if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023185 passed=`expr $passed + 1`
23186else
23187 failed=`expr $failed + 1`
23188fi
23189
cristy8b350f62009-11-15 23:12:43 +000023190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023191$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023192if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023193 $as_echo_n "(cached) " >&6
23194else
23195 ac_check_lib_save_LIBS=$LIBS
23196LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023198/* end confdefs.h. */
23199
23200/* Override any GCC internal prototype to avoid an error.
23201 Use char because int might match the return type of a GCC
23202 builtin and then its argument prototype would still apply. */
23203#ifdef __cplusplus
23204extern "C"
23205#endif
23206char umem_free ();
23207int
23208main ()
23209{
23210return umem_free ();
23211 ;
23212 return 0;
23213}
23214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023216 ac_cv_lib_umem_umem_free=yes
23217else
cristy8b350f62009-11-15 23:12:43 +000023218 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000023219fi
cristy8b350f62009-11-15 23:12:43 +000023220rm -f core conftest.err conftest.$ac_objext \
23221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023222LIBS=$ac_check_lib_save_LIBS
23223fi
cristy8b350f62009-11-15 23:12:43 +000023224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000023225$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023226if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023227 passed=`expr $passed + 1`
23228else
23229 failed=`expr $failed + 1`
23230fi
23231
cristy8b350f62009-11-15 23:12:43 +000023232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023233$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23234 if test $passed -gt 0; then
23235 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023237$as_echo "no -- some components failed test" >&6; }
23238 have_umem='no (failed tests)'
23239 else
23240 UMEM_LIBS='-lumem'
23241 LIBS="$UMEM_LIBS $LIBS"
23242
cristy8b350f62009-11-15 23:12:43 +000023243$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023244
cristy8b350f62009-11-15 23:12:43 +000023245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023246$as_echo "yes" >&6; }
23247 have_umem='yes'
23248 fi
23249 else
cristy8b350f62009-11-15 23:12:43 +000023250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023251$as_echo "no" >&6; }
23252 fi
23253fi
23254 if test "$have_umem" = 'yes'; then
23255 HasUMEM_TRUE=
23256 HasUMEM_FALSE='#'
23257else
23258 HasUMEM_TRUE='#'
23259 HasUMEM_FALSE=
23260fi
23261
23262
23263
23264#
23265# Add support for ccmalloc memory debugging library if requested
23266#
23267have_ccmalloc='no'
23268CCMALLOC_LIBS=''
23269if test "$enable_ccmalloc" = 'yes'; then
23270 # Extract the first word of "ccmalloc", so it can be a program name with args.
23271set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023273$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023274if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023275 $as_echo_n "(cached) " >&6
23276else
23277 case $CCMALLOCDelegate in
23278 [\\/]* | ?:[\\/]*)
23279 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23280 ;;
23281 *)
23282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23283for as_dir in $PATH
23284do
23285 IFS=$as_save_IFS
23286 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023287 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23289 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000023290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023291 break 2
23292 fi
23293done
cristy8b350f62009-11-15 23:12:43 +000023294 done
cristy3ed852e2009-09-05 21:47:34 +000023295IFS=$as_save_IFS
23296
23297 ;;
23298esac
23299fi
23300CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23301if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000023302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000023303$as_echo "$CCMALLOCDelegate" >&6; }
23304else
cristy8b350f62009-11-15 23:12:43 +000023305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023306$as_echo "no" >&6; }
23307fi
23308
23309
23310 if test -n "$CCMALLOCDelegate"; then
23311 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23312 OLIBS="$LIBS"
23313 # Assume that gcc is used with ccmalloc.
23314 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000023315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023316$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023317if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023318 $as_echo_n "(cached) " >&6
23319else
23320 ac_check_lib_save_LIBS=$LIBS
23321LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023323/* end confdefs.h. */
23324
23325/* Override any GCC internal prototype to avoid an error.
23326 Use char because int might match the return type of a GCC
23327 builtin and then its argument prototype would still apply. */
23328#ifdef __cplusplus
23329extern "C"
23330#endif
23331char ccmalloc_malloc ();
23332int
23333main ()
23334{
23335return ccmalloc_malloc ();
23336 ;
23337 return 0;
23338}
23339_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023340if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023341 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
23342else
cristy8b350f62009-11-15 23:12:43 +000023343 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000023344fi
cristy8b350f62009-11-15 23:12:43 +000023345rm -f core conftest.err conftest.$ac_objext \
23346 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023347LIBS=$ac_check_lib_save_LIBS
23348fi
cristy8b350f62009-11-15 23:12:43 +000023349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023350$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023351if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023352 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
23353fi
23354
23355 if test -n "$CCMALLOC_LIBS"; then
23356 LIBS="$OLIBS"
23357 LIBS="$LIBS $CCMALLOC_LIBS"
23358 have_ccmalloc='yes'
23359 else
23360 LIBS="$OLIBS"
23361 fi
23362 fi
23363fi
23364
23365#
23366# Add support for efence memory debugging library if requested
23367#
23368if test "$enable_efence" = 'yes'; then
23369 EFENCE_LIBS='-lefence'
23370 LIBS="$EFENCE_LIBS $LIBS"
23371fi
23372
23373#
23374# Find math library
23375#
23376MATH_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023378$as_echo_n "checking for sqrt in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023379if test "${ac_cv_lib_m_sqrt+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023380 $as_echo_n "(cached) " >&6
23381else
23382 ac_check_lib_save_LIBS=$LIBS
23383LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023385/* end confdefs.h. */
23386
23387/* Override any GCC internal prototype to avoid an error.
23388 Use char because int might match the return type of a GCC
23389 builtin and then its argument prototype would still apply. */
23390#ifdef __cplusplus
23391extern "C"
23392#endif
23393char sqrt ();
23394int
23395main ()
23396{
23397return sqrt ();
23398 ;
23399 return 0;
23400}
23401_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023402if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023403 ac_cv_lib_m_sqrt=yes
23404else
cristy8b350f62009-11-15 23:12:43 +000023405 ac_cv_lib_m_sqrt=no
cristy3ed852e2009-09-05 21:47:34 +000023406fi
cristy8b350f62009-11-15 23:12:43 +000023407rm -f core conftest.err conftest.$ac_objext \
23408 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023409LIBS=$ac_check_lib_save_LIBS
23410fi
cristy8b350f62009-11-15 23:12:43 +000023411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
cristy3ed852e2009-09-05 21:47:34 +000023412$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023413if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023414 MATH_LIBS="-lm"
23415fi
23416
23417LIBS="$MATH_LIBS $LIBS"
23418
23419
23420
23421#
23422# Check for BZLIB
23423#
23424
23425
23426# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000023427if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023428 withval=$with_bzlib; with_bzlib=$withval
23429else
23430 with_bzlib='yes'
23431fi
23432
23433
23434if test "$with_bzlib" != 'yes'; then
23435 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
23436fi
23437
23438have_bzlib='no'
23439if test "$with_bzlib" != 'no'; then
23440 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000023442$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023444$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023446$as_echo "" >&6; }
23447 failed=0
23448 passed=0
23449 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000023450 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
23451if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023452 passed=`expr $passed + 1`
23453else
23454 failed=`expr $failed + 1`
23455fi
23456
23457
cristy8b350f62009-11-15 23:12:43 +000023458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023459$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023460if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023461 $as_echo_n "(cached) " >&6
23462else
23463 ac_check_lib_save_LIBS=$LIBS
23464LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023466/* end confdefs.h. */
23467
23468/* Override any GCC internal prototype to avoid an error.
23469 Use char because int might match the return type of a GCC
23470 builtin and then its argument prototype would still apply. */
23471#ifdef __cplusplus
23472extern "C"
23473#endif
23474char BZ2_bzDecompress ();
23475int
23476main ()
23477{
23478return BZ2_bzDecompress ();
23479 ;
23480 return 0;
23481}
23482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023483if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023484 ac_cv_lib_bz2_BZ2_bzDecompress=yes
23485else
cristy8b350f62009-11-15 23:12:43 +000023486 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000023487fi
cristy8b350f62009-11-15 23:12:43 +000023488rm -f core conftest.err conftest.$ac_objext \
23489 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023490LIBS=$ac_check_lib_save_LIBS
23491fi
cristy8b350f62009-11-15 23:12:43 +000023492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023493$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023494if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023495 found_libbz=`expr $found_libbz + 1`
23496fi
23497
23498 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000023499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023500$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023501if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023502 $as_echo_n "(cached) " >&6
23503else
23504 ac_check_lib_save_LIBS=$LIBS
23505LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023507/* end confdefs.h. */
23508
23509/* Override any GCC internal prototype to avoid an error.
23510 Use char because int might match the return type of a GCC
23511 builtin and then its argument prototype would still apply. */
23512#ifdef __cplusplus
23513extern "C"
23514#endif
23515char _imp__BZ2_decompress ();
23516int
23517main ()
23518{
23519return _imp__BZ2_decompress ();
23520 ;
23521 return 0;
23522}
23523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023524if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023525 ac_cv_lib_bz2__imp__BZ2_decompress=yes
23526else
cristy8b350f62009-11-15 23:12:43 +000023527 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000023528fi
cristy8b350f62009-11-15 23:12:43 +000023529rm -f core conftest.err conftest.$ac_objext \
23530 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023531LIBS=$ac_check_lib_save_LIBS
23532fi
cristy8b350f62009-11-15 23:12:43 +000023533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023534$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023535if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023536 found_libbz=`expr $found_libbz + 1`
23537fi
23538
23539 fi
23540 if test $found_libbz -gt 0; then
23541 passed=`expr $passed + 1`
23542 else
23543 failed=`expr $failed + 1`
23544 fi
cristy8b350f62009-11-15 23:12:43 +000023545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023546$as_echo_n "checking if BZLIB package is complete... " >&6; }
23547 if test $passed -gt 0; then
23548 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023550$as_echo "no -- some components failed test" >&6; }
23551 have_bzlib='no (failed tests)'
23552 else
23553 BZLIB_LIBS='-lbz2'
23554 LIBS="$BZLIB_LIBS $LIBS"
23555
cristy8b350f62009-11-15 23:12:43 +000023556$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023557
cristy8b350f62009-11-15 23:12:43 +000023558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023559$as_echo "yes" >&6; }
23560 have_bzlib='yes'
23561 fi
23562 else
cristy8b350f62009-11-15 23:12:43 +000023563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023564$as_echo "no" >&6; }
23565 fi
23566fi
23567 if test "$have_bzlib" = 'yes'; then
23568 BZLIB_DELEGATE_TRUE=
23569 BZLIB_DELEGATE_FALSE='#'
23570else
23571 BZLIB_DELEGATE_TRUE='#'
23572 BZLIB_DELEGATE_FALSE=
23573fi
23574
23575
23576
23577#
23578# Find the X11 include and library directories.
23579#
23580IPC_LIBS=''
23581X11_LIBS=''
23582XEXT_LIBS=''
23583XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000023585$as_echo_n "checking for X... " >&6; }
23586
23587
23588# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000023589if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023590 withval=$with_x;
23591fi
23592
23593# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23594if test "x$with_x" = xno; then
23595 # The user explicitly disabled X.
23596 have_x=disabled
23597else
23598 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000023599 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
23600 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023601 $as_echo_n "(cached) " >&6
23602else
23603 # One or both of the vars are not set, and there is no cached value.
23604ac_x_includes=no ac_x_libraries=no
23605rm -f -r conftest.dir
23606if mkdir conftest.dir; then
23607 cd conftest.dir
23608 cat >Imakefile <<'_ACEOF'
23609incroot:
23610 @echo incroot='${INCROOT}'
23611usrlibdir:
23612 @echo usrlibdir='${USRLIBDIR}'
23613libdir:
23614 @echo libdir='${LIBDIR}'
23615_ACEOF
23616 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23617 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23618 for ac_var in incroot usrlibdir libdir; do
23619 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23620 done
23621 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23622 for ac_extension in a so sl dylib la dll; do
23623 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23624 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23625 ac_im_usrlibdir=$ac_im_libdir; break
23626 fi
23627 done
23628 # Screen out bogus values from the imake configuration. They are
23629 # bogus both because they are the default anyway, and because
23630 # using them would break gcc on systems where it needs fixed includes.
23631 case $ac_im_incroot in
23632 /usr/include) ac_x_includes= ;;
23633 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23634 esac
23635 case $ac_im_usrlibdir in
23636 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23637 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23638 esac
23639 fi
23640 cd ..
23641 rm -f -r conftest.dir
23642fi
23643
23644# Standard set of common directories for X headers.
23645# Check X11 before X11Rn because it is often a symlink to the current release.
23646ac_x_header_dirs='
23647/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000023648/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023649/usr/X11R6/include
23650/usr/X11R5/include
23651/usr/X11R4/include
23652
23653/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000023654/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023655/usr/include/X11R6
23656/usr/include/X11R5
23657/usr/include/X11R4
23658
23659/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000023660/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023661/usr/local/X11R6/include
23662/usr/local/X11R5/include
23663/usr/local/X11R4/include
23664
23665/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000023666/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023667/usr/local/include/X11R6
23668/usr/local/include/X11R5
23669/usr/local/include/X11R4
23670
23671/usr/X386/include
23672/usr/x386/include
23673/usr/XFree86/include/X11
23674
23675/usr/include
23676/usr/local/include
23677/usr/unsupported/include
23678/usr/athena/include
23679/usr/local/x11r5/include
23680/usr/lpp/Xamples/include
23681
23682/usr/openwin/include
23683/usr/openwin/share/include'
23684
23685if test "$ac_x_includes" = no; then
23686 # Guess where to find include files, by looking for Xlib.h.
23687 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000023688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023689/* end confdefs.h. */
23690#include <X11/Xlib.h>
23691_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023692if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023693 # We can compile using X headers with no special include directory.
23694ac_x_includes=
23695else
cristyc7083c12009-10-14 03:16:55 +000023696 for ac_dir in $ac_x_header_dirs; do
23697 if test -r "$ac_dir/X11/Xlib.h"; then
23698 ac_x_includes=$ac_dir
23699 break
23700 fi
23701done
23702fi
cristyc7083c12009-10-14 03:16:55 +000023703rm -f conftest.err conftest.$ac_ext
23704fi # $ac_x_includes = no
23705
23706if test "$ac_x_libraries" = no; then
23707 # Check for the libraries.
23708 # See if we find them without any special options.
23709 # Don't add to $LIBS permanently.
23710 ac_save_LIBS=$LIBS
23711 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023713/* end confdefs.h. */
23714#include <X11/Xlib.h>
23715int
23716main ()
23717{
23718XrmInitialize ()
23719 ;
23720 return 0;
23721}
23722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023723if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023724 LIBS=$ac_save_LIBS
23725# We can link X programs with no special library path.
23726ac_x_libraries=
23727else
cristy8b350f62009-11-15 23:12:43 +000023728 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000023729for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23730do
23731 # Don't even attempt the hair of trying to link an X program!
23732 for ac_extension in a so sl dylib la dll; do
23733 if test -r "$ac_dir/libX11.$ac_extension"; then
23734 ac_x_libraries=$ac_dir
23735 break 2
23736 fi
23737 done
23738done
23739fi
cristy8b350f62009-11-15 23:12:43 +000023740rm -f core conftest.err conftest.$ac_objext \
23741 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023742fi # $ac_x_libraries = no
23743
23744case $ac_x_includes,$ac_x_libraries in #(
23745 no,* | *,no | *\'*)
23746 # Didn't find X, or a directory has "'" in its name.
23747 ac_cv_have_x="have_x=no";; #(
23748 *)
23749 # Record where we found X for the cache.
23750 ac_cv_have_x="have_x=yes\
23751 ac_x_includes='$ac_x_includes'\
23752 ac_x_libraries='$ac_x_libraries'"
23753esac
23754fi
23755;; #(
23756 *) have_x=yes;;
23757 esac
23758 eval "$ac_cv_have_x"
23759fi # $with_x != no
23760
23761if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000023763$as_echo "$have_x" >&6; }
23764 no_x=yes
23765else
23766 # If each of the values was on the command line, it overrides each guess.
23767 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23768 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23769 # Update the cache value to reflect the command line values.
23770 ac_cv_have_x="have_x=yes\
23771 ac_x_includes='$x_includes'\
23772 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000023773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000023774$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23775fi
23776
cristy3ed852e2009-09-05 21:47:34 +000023777if test "$no_x" = yes; then
23778 # Not all programs may use this symbol, but it does not hurt to define it.
23779
cristy8b350f62009-11-15 23:12:43 +000023780$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023781
23782 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23783else
23784 if test -n "$x_includes"; then
23785 X_CFLAGS="$X_CFLAGS -I$x_includes"
23786 fi
23787
23788 # It would also be nice to do this for all -L options, not just this one.
23789 if test -n "$x_libraries"; then
23790 X_LIBS="$X_LIBS -L$x_libraries"
23791 # For Solaris; some versions of Sun CC require a space after -R and
23792 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000023793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000023794$as_echo_n "checking whether -R must be followed by a space... " >&6; }
23795 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23796 ac_xsave_c_werror_flag=$ac_c_werror_flag
23797 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000023798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023799/* end confdefs.h. */
23800
23801int
23802main ()
23803{
23804
23805 ;
23806 return 0;
23807}
23808_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023809if ac_fn_c_try_link "$LINENO"; then :
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023811$as_echo "no" >&6; }
23812 X_LIBS="$X_LIBS -R$x_libraries"
23813else
cristy8b350f62009-11-15 23:12:43 +000023814 LIBS="$ac_xsave_LIBS -R $x_libraries"
23815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023816/* end confdefs.h. */
23817
23818int
23819main ()
23820{
23821
23822 ;
23823 return 0;
23824}
23825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023826if ac_fn_c_try_link "$LINENO"; then :
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023828$as_echo "yes" >&6; }
23829 X_LIBS="$X_LIBS -R $x_libraries"
23830else
cristy8b350f62009-11-15 23:12:43 +000023831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023832$as_echo "neither works" >&6; }
23833fi
cristy8b350f62009-11-15 23:12:43 +000023834rm -f core conftest.err conftest.$ac_objext \
23835 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023836fi
cristy8b350f62009-11-15 23:12:43 +000023837rm -f core conftest.err conftest.$ac_objext \
23838 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023839 ac_c_werror_flag=$ac_xsave_c_werror_flag
23840 LIBS=$ac_xsave_LIBS
23841 fi
23842
23843 # Check for system-dependent libraries X programs must link with.
23844 # Do this before checking for the system-independent R6 libraries
23845 # (-lICE), since we may need -lsocket or whatever for X linking.
23846
23847 if test "$ISC" = yes; then
23848 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23849 else
23850 # Martyn Johnson says this is needed for Ultrix, if the X
23851 # libraries were built with DECnet support. And Karl Berry says
23852 # the Alpha needs dnet_stub (dnet does not exist).
23853 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000023854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023855/* end confdefs.h. */
23856
23857/* Override any GCC internal prototype to avoid an error.
23858 Use char because int might match the return type of a GCC
23859 builtin and then its argument prototype would still apply. */
23860#ifdef __cplusplus
23861extern "C"
23862#endif
23863char XOpenDisplay ();
23864int
23865main ()
23866{
23867return XOpenDisplay ();
23868 ;
23869 return 0;
23870}
23871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023872if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023873
cristy8b350f62009-11-15 23:12:43 +000023874else
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023876$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023877if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023878 $as_echo_n "(cached) " >&6
23879else
23880 ac_check_lib_save_LIBS=$LIBS
23881LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023883/* end confdefs.h. */
23884
23885/* Override any GCC internal prototype to avoid an error.
23886 Use char because int might match the return type of a GCC
23887 builtin and then its argument prototype would still apply. */
23888#ifdef __cplusplus
23889extern "C"
23890#endif
23891char dnet_ntoa ();
23892int
23893main ()
23894{
23895return dnet_ntoa ();
23896 ;
23897 return 0;
23898}
23899_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023900if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023901 ac_cv_lib_dnet_dnet_ntoa=yes
23902else
cristy8b350f62009-11-15 23:12:43 +000023903 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023904fi
cristy8b350f62009-11-15 23:12:43 +000023905rm -f core conftest.err conftest.$ac_objext \
23906 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023907LIBS=$ac_check_lib_save_LIBS
23908fi
cristy8b350f62009-11-15 23:12:43 +000023909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023910$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023911if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023912 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23913fi
23914
23915 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000023916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000023917$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023918if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023919 $as_echo_n "(cached) " >&6
23920else
23921 ac_check_lib_save_LIBS=$LIBS
23922LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023924/* end confdefs.h. */
23925
23926/* Override any GCC internal prototype to avoid an error.
23927 Use char because int might match the return type of a GCC
23928 builtin and then its argument prototype would still apply. */
23929#ifdef __cplusplus
23930extern "C"
23931#endif
23932char dnet_ntoa ();
23933int
23934main ()
23935{
23936return dnet_ntoa ();
23937 ;
23938 return 0;
23939}
23940_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023941if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023942 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23943else
cristy8b350f62009-11-15 23:12:43 +000023944 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023945fi
cristy8b350f62009-11-15 23:12:43 +000023946rm -f core conftest.err conftest.$ac_objext \
23947 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023948LIBS=$ac_check_lib_save_LIBS
23949fi
cristy8b350f62009-11-15 23:12:43 +000023950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023951$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023952if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023953 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23954fi
23955
23956 fi
23957fi
cristy8b350f62009-11-15 23:12:43 +000023958rm -f core conftest.err conftest.$ac_objext \
23959 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023960 LIBS="$ac_xsave_LIBS"
23961
23962 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23963 # to get the SysV transport functions.
23964 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23965 # needs -lnsl.
23966 # The nsl library prevents programs from opening the X display
23967 # on Irix 5.2, according to T.E. Dickey.
23968 # The functions gethostbyname, getservbyname, and inet_addr are
23969 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000023970 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23971if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023972
cristy3ed852e2009-09-05 21:47:34 +000023973fi
23974
cristy3ed852e2009-09-05 21:47:34 +000023975 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000023976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000023977$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023978if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023979 $as_echo_n "(cached) " >&6
23980else
23981 ac_check_lib_save_LIBS=$LIBS
23982LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023984/* end confdefs.h. */
23985
23986/* Override any GCC internal prototype to avoid an error.
23987 Use char because int might match the return type of a GCC
23988 builtin and then its argument prototype would still apply. */
23989#ifdef __cplusplus
23990extern "C"
23991#endif
23992char gethostbyname ();
23993int
23994main ()
23995{
23996return gethostbyname ();
23997 ;
23998 return 0;
23999}
24000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024001if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024002 ac_cv_lib_nsl_gethostbyname=yes
24003else
cristy8b350f62009-11-15 23:12:43 +000024004 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024005fi
cristy8b350f62009-11-15 23:12:43 +000024006rm -f core conftest.err conftest.$ac_objext \
24007 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024008LIBS=$ac_check_lib_save_LIBS
24009fi
cristy8b350f62009-11-15 23:12:43 +000024010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024011$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024012if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024013 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24014fi
24015
24016 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000024018$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024019if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024020 $as_echo_n "(cached) " >&6
24021else
24022 ac_check_lib_save_LIBS=$LIBS
24023LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024025/* end confdefs.h. */
24026
24027/* Override any GCC internal prototype to avoid an error.
24028 Use char because int might match the return type of a GCC
24029 builtin and then its argument prototype would still apply. */
24030#ifdef __cplusplus
24031extern "C"
24032#endif
24033char gethostbyname ();
24034int
24035main ()
24036{
24037return gethostbyname ();
24038 ;
24039 return 0;
24040}
24041_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024042if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024043 ac_cv_lib_bsd_gethostbyname=yes
24044else
cristy8b350f62009-11-15 23:12:43 +000024045 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024046fi
cristy8b350f62009-11-15 23:12:43 +000024047rm -f core conftest.err conftest.$ac_objext \
24048 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024049LIBS=$ac_check_lib_save_LIBS
24050fi
cristy8b350f62009-11-15 23:12:43 +000024051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024052$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024053if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024054 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24055fi
24056
24057 fi
24058 fi
24059
24060 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24061 # socket/setsockopt and other routines are undefined under SCO ODT
24062 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24063 # on later versions), says Simon Leinen: it contains gethostby*
24064 # variants that don't use the name server (or something). -lsocket
24065 # must be given before -lnsl if both are needed. We assume that
24066 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000024067 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24068if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024069
cristy3ed852e2009-09-05 21:47:34 +000024070fi
24071
cristy3ed852e2009-09-05 21:47:34 +000024072 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000024073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000024074$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024075if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024076 $as_echo_n "(cached) " >&6
24077else
24078 ac_check_lib_save_LIBS=$LIBS
24079LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024081/* end confdefs.h. */
24082
24083/* Override any GCC internal prototype to avoid an error.
24084 Use char because int might match the return type of a GCC
24085 builtin and then its argument prototype would still apply. */
24086#ifdef __cplusplus
24087extern "C"
24088#endif
24089char connect ();
24090int
24091main ()
24092{
24093return connect ();
24094 ;
24095 return 0;
24096}
24097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024098if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024099 ac_cv_lib_socket_connect=yes
24100else
cristy8b350f62009-11-15 23:12:43 +000024101 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000024102fi
cristy8b350f62009-11-15 23:12:43 +000024103rm -f core conftest.err conftest.$ac_objext \
24104 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024105LIBS=$ac_check_lib_save_LIBS
24106fi
cristy8b350f62009-11-15 23:12:43 +000024107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000024108$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024109if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024110 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24111fi
24112
24113 fi
24114
24115 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000024116 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24117if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024118
cristy3ed852e2009-09-05 21:47:34 +000024119fi
24120
cristy3ed852e2009-09-05 21:47:34 +000024121 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000024122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000024123$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024124if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024125 $as_echo_n "(cached) " >&6
24126else
24127 ac_check_lib_save_LIBS=$LIBS
24128LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024130/* end confdefs.h. */
24131
24132/* Override any GCC internal prototype to avoid an error.
24133 Use char because int might match the return type of a GCC
24134 builtin and then its argument prototype would still apply. */
24135#ifdef __cplusplus
24136extern "C"
24137#endif
24138char remove ();
24139int
24140main ()
24141{
24142return remove ();
24143 ;
24144 return 0;
24145}
24146_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024147if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024148 ac_cv_lib_posix_remove=yes
24149else
cristy8b350f62009-11-15 23:12:43 +000024150 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000024151fi
cristy8b350f62009-11-15 23:12:43 +000024152rm -f core conftest.err conftest.$ac_objext \
24153 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024154LIBS=$ac_check_lib_save_LIBS
24155fi
cristy8b350f62009-11-15 23:12:43 +000024156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000024157$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024158if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024159 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24160fi
24161
24162 fi
24163
24164 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000024165 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24166if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024167
cristy3ed852e2009-09-05 21:47:34 +000024168fi
24169
cristy3ed852e2009-09-05 21:47:34 +000024170 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000024171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024172$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024173if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024174 $as_echo_n "(cached) " >&6
24175else
24176 ac_check_lib_save_LIBS=$LIBS
24177LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024179/* end confdefs.h. */
24180
24181/* Override any GCC internal prototype to avoid an error.
24182 Use char because int might match the return type of a GCC
24183 builtin and then its argument prototype would still apply. */
24184#ifdef __cplusplus
24185extern "C"
24186#endif
24187char shmat ();
24188int
24189main ()
24190{
24191return shmat ();
24192 ;
24193 return 0;
24194}
24195_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024196if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024197 ac_cv_lib_ipc_shmat=yes
24198else
cristy8b350f62009-11-15 23:12:43 +000024199 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000024200fi
cristy8b350f62009-11-15 23:12:43 +000024201rm -f core conftest.err conftest.$ac_objext \
24202 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024203LIBS=$ac_check_lib_save_LIBS
24204fi
cristy8b350f62009-11-15 23:12:43 +000024205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000024206$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024207if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24209fi
24210
24211 fi
24212 fi
24213
24214 # Check for libraries that X11R6 Xt/Xaw programs need.
24215 ac_save_LDFLAGS=$LDFLAGS
24216 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24217 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24218 # check for ICE first), but we must link in the order -lSM -lICE or
24219 # we get undefined symbols. So assume we have SM if we have ICE.
24220 # These have to be linked with before -lX11, unlike the other
24221 # libraries we check for below, so use a different variable.
24222 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000024223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024224$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024225if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024226 $as_echo_n "(cached) " >&6
24227else
24228 ac_check_lib_save_LIBS=$LIBS
24229LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024231/* end confdefs.h. */
24232
24233/* Override any GCC internal prototype to avoid an error.
24234 Use char because int might match the return type of a GCC
24235 builtin and then its argument prototype would still apply. */
24236#ifdef __cplusplus
24237extern "C"
24238#endif
24239char IceConnectionNumber ();
24240int
24241main ()
24242{
24243return IceConnectionNumber ();
24244 ;
24245 return 0;
24246}
24247_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024248if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024249 ac_cv_lib_ICE_IceConnectionNumber=yes
24250else
cristy8b350f62009-11-15 23:12:43 +000024251 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000024252fi
cristy8b350f62009-11-15 23:12:43 +000024253rm -f core conftest.err conftest.$ac_objext \
24254 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024255LIBS=$ac_check_lib_save_LIBS
24256fi
cristy8b350f62009-11-15 23:12:43 +000024257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000024258$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024259if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024260 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24261fi
24262
24263 LDFLAGS=$ac_save_LDFLAGS
24264
24265fi
24266
24267if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024269$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000024271$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024273$as_echo "" >&6; }
24274 LDFLAGS="$LDFLAGS $X_LIBS"
24275 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24276 LIBS="$X11_LIBS $LIBS"
24277 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24278
24279
cristy8b350f62009-11-15 23:12:43 +000024280$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024281
24282 #
24283 # Check for X11 shared memory extension
24284 #
24285 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000024286 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24287if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024288 have_shmctl='yes'
24289fi
24290
24291 if test "$have_shmctl" != 'yes'; then
24292 PERSIST_LIBS=$LIBS
24293 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000024294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024295/* end confdefs.h. */
24296
24297/* Override any GCC internal prototype to avoid an error.
24298 Use char because int might match the return type of a GCC
24299 builtin and then its argument prototype would still apply. */
24300#ifdef __cplusplus
24301extern "C"
24302#endif
24303char shmctl ();
24304int
24305main ()
24306{
24307return shmctl ();
24308 ;
24309 return 0;
24310}
24311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024312if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024313 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000024314fi
cristy8b350f62009-11-15 23:12:43 +000024315rm -f core conftest.err conftest.$ac_objext \
24316 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024317 LIBS=$PERSIST_LIBS
24318 fi
24319
24320 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024322$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024323if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024324 $as_echo_n "(cached) " >&6
24325else
24326 ac_check_lib_save_LIBS=$LIBS
24327LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024329/* end confdefs.h. */
24330
24331/* Override any GCC internal prototype to avoid an error.
24332 Use char because int might match the return type of a GCC
24333 builtin and then its argument prototype would still apply. */
24334#ifdef __cplusplus
24335extern "C"
24336#endif
24337char XShmAttach ();
24338int
24339main ()
24340{
24341return XShmAttach ();
24342 ;
24343 return 0;
24344}
24345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024346if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024347 ac_cv_lib_Xext_XShmAttach=yes
24348else
cristy8b350f62009-11-15 23:12:43 +000024349 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000024350fi
cristy8b350f62009-11-15 23:12:43 +000024351rm -f core conftest.err conftest.$ac_objext \
24352 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024353LIBS=$ac_check_lib_save_LIBS
24354fi
cristy8b350f62009-11-15 23:12:43 +000024355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000024356$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024357if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024358 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024359$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024360
24361fi
24362
24363 fi
24364
24365 #
24366 # Check for X11 shape extension
24367 #
cristy8b350f62009-11-15 23:12:43 +000024368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024369$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024370if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024371 $as_echo_n "(cached) " >&6
24372else
24373 ac_check_lib_save_LIBS=$LIBS
24374LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024376/* end confdefs.h. */
24377
24378/* Override any GCC internal prototype to avoid an error.
24379 Use char because int might match the return type of a GCC
24380 builtin and then its argument prototype would still apply. */
24381#ifdef __cplusplus
24382extern "C"
24383#endif
24384char XShapeCombineMask ();
24385int
24386main ()
24387{
24388return XShapeCombineMask ();
24389 ;
24390 return 0;
24391}
24392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024393if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024394 ac_cv_lib_Xext_XShapeCombineMask=yes
24395else
cristy8b350f62009-11-15 23:12:43 +000024396 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000024397fi
cristy8b350f62009-11-15 23:12:43 +000024398rm -f core conftest.err conftest.$ac_objext \
24399 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024400LIBS=$ac_check_lib_save_LIBS
24401fi
cristy8b350f62009-11-15 23:12:43 +000024402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000024403$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024404if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024405 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024406$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024407
24408fi
24409
cristy8b350f62009-11-15 23:12:43 +000024410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000024411$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024412if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024413 $as_echo_n "(cached) " >&6
24414else
24415 ac_check_lib_save_LIBS=$LIBS
24416LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024418/* end confdefs.h. */
24419
24420/* Override any GCC internal prototype to avoid an error.
24421 Use char because int might match the return type of a GCC
24422 builtin and then its argument prototype would still apply. */
24423#ifdef __cplusplus
24424extern "C"
24425#endif
24426char XtSetEventDispatcher ();
24427int
24428main ()
24429{
24430return XtSetEventDispatcher ();
24431 ;
24432 return 0;
24433}
24434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024435if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024436 ac_cv_lib_Xt_XtSetEventDispatcher=yes
24437else
cristy8b350f62009-11-15 23:12:43 +000024438 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000024439fi
cristy8b350f62009-11-15 23:12:43 +000024440rm -f core conftest.err conftest.$ac_objext \
24441 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024442LIBS=$ac_check_lib_save_LIBS
24443fi
cristy8b350f62009-11-15 23:12:43 +000024444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000024445$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024446if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024447 XT_LIBS='-lXt'
24448fi
24449
24450 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
24451fi
24452if test "$no_x" != 'yes'; then
24453 have_x='yes'
24454else
24455 have_x='no'
24456fi
24457 if test "$have_x" = 'yes'; then
24458 X11_DELEGATE_TRUE=
24459 X11_DELEGATE_FALSE='#'
24460else
24461 X11_DELEGATE_TRUE='#'
24462 X11_DELEGATE_FALSE=
24463fi
24464
24465
24466
24467
24468
24469#
24470# Check for ZLIB
24471#
24472
24473# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000024474if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024475 withval=$with_zlib; with_zlib=$withval
24476else
24477 with_zlib='yes'
24478fi
24479
24480
24481if test "$with_zlib" != 'yes'; then
24482 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
24483fi
24484
24485have_zlib='no'
24486ZLIB_LIBS=''
24487if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024489$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024491$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024493$as_echo "" >&6; }
24494 ZLIB_LIBS=''
24495 failed=0
24496 passed=0
cristy8b350f62009-11-15 23:12:43 +000024497 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
24498if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024499 passed=`expr $passed + 1`
24500else
24501 failed=`expr $failed + 1`
24502fi
24503
24504
cristy8b350f62009-11-15 23:12:43 +000024505 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24506if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024507 passed=`expr $passed + 1`
24508else
24509 failed=`expr $failed + 1`
24510fi
24511
24512
cristy8b350f62009-11-15 23:12:43 +000024513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024514$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024515if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024516 $as_echo_n "(cached) " >&6
24517else
24518 ac_check_lib_save_LIBS=$LIBS
24519LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024521/* end confdefs.h. */
24522
24523/* Override any GCC internal prototype to avoid an error.
24524 Use char because int might match the return type of a GCC
24525 builtin and then its argument prototype would still apply. */
24526#ifdef __cplusplus
24527extern "C"
24528#endif
24529char compress ();
24530int
24531main ()
24532{
24533return compress ();
24534 ;
24535 return 0;
24536}
24537_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024538if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024539 ac_cv_lib_z_compress=yes
24540else
cristy8b350f62009-11-15 23:12:43 +000024541 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000024542fi
cristy8b350f62009-11-15 23:12:43 +000024543rm -f core conftest.err conftest.$ac_objext \
24544 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024545LIBS=$ac_check_lib_save_LIBS
24546fi
cristy8b350f62009-11-15 23:12:43 +000024547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024548$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024549if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024550 passed=`expr $passed + 1`
24551else
24552 failed=`expr $failed + 1`
24553fi
24554
cristy8b350f62009-11-15 23:12:43 +000024555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024556$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024557if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024558 $as_echo_n "(cached) " >&6
24559else
24560 ac_check_lib_save_LIBS=$LIBS
24561LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024563/* end confdefs.h. */
24564
24565/* Override any GCC internal prototype to avoid an error.
24566 Use char because int might match the return type of a GCC
24567 builtin and then its argument prototype would still apply. */
24568#ifdef __cplusplus
24569extern "C"
24570#endif
24571char uncompress ();
24572int
24573main ()
24574{
24575return uncompress ();
24576 ;
24577 return 0;
24578}
24579_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024580if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024581 ac_cv_lib_z_uncompress=yes
24582else
cristy8b350f62009-11-15 23:12:43 +000024583 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000024584fi
cristy8b350f62009-11-15 23:12:43 +000024585rm -f core conftest.err conftest.$ac_objext \
24586 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024587LIBS=$ac_check_lib_save_LIBS
24588fi
cristy8b350f62009-11-15 23:12:43 +000024589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024590$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024591if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024592 passed=`expr $passed + 1`
24593else
24594 failed=`expr $failed + 1`
24595fi
24596
cristy8b350f62009-11-15 23:12:43 +000024597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024598$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024599if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024600 $as_echo_n "(cached) " >&6
24601else
24602 ac_check_lib_save_LIBS=$LIBS
24603LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024605/* end confdefs.h. */
24606
24607/* Override any GCC internal prototype to avoid an error.
24608 Use char because int might match the return type of a GCC
24609 builtin and then its argument prototype would still apply. */
24610#ifdef __cplusplus
24611extern "C"
24612#endif
24613char deflate ();
24614int
24615main ()
24616{
24617return deflate ();
24618 ;
24619 return 0;
24620}
24621_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024622if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024623 ac_cv_lib_z_deflate=yes
24624else
cristy8b350f62009-11-15 23:12:43 +000024625 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000024626fi
cristy8b350f62009-11-15 23:12:43 +000024627rm -f core conftest.err conftest.$ac_objext \
24628 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024629LIBS=$ac_check_lib_save_LIBS
24630fi
cristy8b350f62009-11-15 23:12:43 +000024631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024632$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024633if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024634 passed=`expr $passed + 1`
24635else
24636 failed=`expr $failed + 1`
24637fi
24638
cristy8b350f62009-11-15 23:12:43 +000024639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024640$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024641if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024642 $as_echo_n "(cached) " >&6
24643else
24644 ac_check_lib_save_LIBS=$LIBS
24645LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024647/* end confdefs.h. */
24648
24649/* Override any GCC internal prototype to avoid an error.
24650 Use char because int might match the return type of a GCC
24651 builtin and then its argument prototype would still apply. */
24652#ifdef __cplusplus
24653extern "C"
24654#endif
24655char inflate ();
24656int
24657main ()
24658{
24659return inflate ();
24660 ;
24661 return 0;
24662}
24663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024664if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024665 ac_cv_lib_z_inflate=yes
24666else
cristy8b350f62009-11-15 23:12:43 +000024667 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000024668fi
cristy8b350f62009-11-15 23:12:43 +000024669rm -f core conftest.err conftest.$ac_objext \
24670 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024671LIBS=$ac_check_lib_save_LIBS
24672fi
cristy8b350f62009-11-15 23:12:43 +000024673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024674$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024675if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024676 passed=`expr $passed + 1`
24677else
24678 failed=`expr $failed + 1`
24679fi
24680
cristy8b350f62009-11-15 23:12:43 +000024681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024682$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024683if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024684 $as_echo_n "(cached) " >&6
24685else
24686 ac_check_lib_save_LIBS=$LIBS
24687LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024689/* end confdefs.h. */
24690
24691/* Override any GCC internal prototype to avoid an error.
24692 Use char because int might match the return type of a GCC
24693 builtin and then its argument prototype would still apply. */
24694#ifdef __cplusplus
24695extern "C"
24696#endif
24697char gzseek ();
24698int
24699main ()
24700{
24701return gzseek ();
24702 ;
24703 return 0;
24704}
24705_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024706if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024707 ac_cv_lib_z_gzseek=yes
24708else
cristy8b350f62009-11-15 23:12:43 +000024709 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000024710fi
cristy8b350f62009-11-15 23:12:43 +000024711rm -f core conftest.err conftest.$ac_objext \
24712 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024713LIBS=$ac_check_lib_save_LIBS
24714fi
cristy8b350f62009-11-15 23:12:43 +000024715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000024716$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024717if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024718 passed=`expr $passed + 1`
24719else
24720 failed=`expr $failed + 1`
24721fi
24722
cristy8b350f62009-11-15 23:12:43 +000024723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024724$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024725if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024726 $as_echo_n "(cached) " >&6
24727else
24728 ac_check_lib_save_LIBS=$LIBS
24729LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024731/* end confdefs.h. */
24732
24733/* Override any GCC internal prototype to avoid an error.
24734 Use char because int might match the return type of a GCC
24735 builtin and then its argument prototype would still apply. */
24736#ifdef __cplusplus
24737extern "C"
24738#endif
24739char gztell ();
24740int
24741main ()
24742{
24743return gztell ();
24744 ;
24745 return 0;
24746}
24747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024748if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024749 ac_cv_lib_z_gztell=yes
24750else
cristy8b350f62009-11-15 23:12:43 +000024751 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000024752fi
cristy8b350f62009-11-15 23:12:43 +000024753rm -f core conftest.err conftest.$ac_objext \
24754 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024755LIBS=$ac_check_lib_save_LIBS
24756fi
cristy8b350f62009-11-15 23:12:43 +000024757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000024758$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024759if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024760 passed=`expr $passed + 1`
24761else
24762 failed=`expr $failed + 1`
24763fi
24764
cristy8b350f62009-11-15 23:12:43 +000024765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024766$as_echo_n "checking if ZLIB package is complete... " >&6; }
24767 if test $passed -gt 0; then
24768 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024770$as_echo "no -- some components failed test" >&6; }
24771 have_zlib='no (failed tests)'
24772 else
24773 ZLIB_LIBS='-lz'
24774 LIBS="$ZLIB_LIBS $LIBS"
24775
cristy8b350f62009-11-15 23:12:43 +000024776$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024777
cristy8b350f62009-11-15 23:12:43 +000024778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024779$as_echo "yes" >&6; }
24780 have_zlib='yes'
24781 fi
24782 else
cristy8b350f62009-11-15 23:12:43 +000024783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024784$as_echo "no" >&6; }
24785 fi
24786fi
24787 if test "$have_zlib" = 'yes'; then
24788 ZLIB_DELEGATE_TRUE=
24789 ZLIB_DELEGATE_FALSE='#'
24790else
24791 ZLIB_DELEGATE_TRUE='#'
24792 ZLIB_DELEGATE_FALSE=
24793fi
24794
24795
24796
24797#
24798# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
24799#
24800LIB_DL=''
24801if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024803$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024804if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024805 $as_echo_n "(cached) " >&6
24806else
24807 ac_check_lib_save_LIBS=$LIBS
24808LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024810/* end confdefs.h. */
24811
24812/* Override any GCC internal prototype to avoid an error.
24813 Use char because int might match the return type of a GCC
24814 builtin and then its argument prototype would still apply. */
24815#ifdef __cplusplus
24816extern "C"
24817#endif
24818char dlopen ();
24819int
24820main ()
24821{
24822return dlopen ();
24823 ;
24824 return 0;
24825}
24826_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024827if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024828 ac_cv_lib_dl_dlopen=yes
24829else
cristy8b350f62009-11-15 23:12:43 +000024830 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000024831fi
cristy8b350f62009-11-15 23:12:43 +000024832rm -f core conftest.err conftest.$ac_objext \
24833 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024834LIBS=$ac_check_lib_save_LIBS
24835fi
cristy8b350f62009-11-15 23:12:43 +000024836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000024837$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024838if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024839 LIB_DL='-ldl'
24840fi
24841
24842 LIBS="$LIB_DL $LIBS"
24843fi
24844
24845
24846
24847#
24848# Check for Autotrace delegate library.
24849#
24850
24851# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000024852if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024853 withval=$with_autotrace; with_autotrace=$withval
24854else
24855 with_autotrace='no'
24856fi
24857
24858
24859if test "$with_autotrace" != 'yes'; then
24860 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
24861fi
24862
24863have_autotrace='no'
24864AUTOTRACE_CFLAGS=""
24865AUTOTRACE_LIBS=""
24866AUTOTRACE_PKG=""
24867if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000024868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024869$as_echo "-------------------------------------------------------------" >&6; }
24870
24871pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000024872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024873$as_echo_n "checking for AUTOTRACE... " >&6; }
24874
24875if test -n "$AUTOTRACE_CFLAGS"; then
24876 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
24877 elif test -n "$PKG_CONFIG"; then
24878 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024879 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024880 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24881 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24883 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024884 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
24885else
24886 pkg_failed=yes
24887fi
24888 else
24889 pkg_failed=untried
24890fi
24891if test -n "$AUTOTRACE_LIBS"; then
24892 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
24893 elif test -n "$PKG_CONFIG"; then
24894 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024896 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24897 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24899 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024900 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
24901else
24902 pkg_failed=yes
24903fi
24904 else
24905 pkg_failed=untried
24906fi
24907
24908
24909
24910if test $pkg_failed = yes; then
24911
24912if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24913 _pkg_short_errors_supported=yes
24914else
24915 _pkg_short_errors_supported=no
24916fi
24917 if test $_pkg_short_errors_supported = yes; then
24918 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
24919 else
24920 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
24921 fi
24922 # Put the nasty error message in config.log where it belongs
24923 echo "$AUTOTRACE_PKG_ERRORS" >&5
24924
cristy8b350f62009-11-15 23:12:43 +000024925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024926$as_echo "no" >&6; }
24927 have_autotrace=no
24928elif test $pkg_failed = untried; then
24929 have_autotrace=no
24930else
24931 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
24932 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000024933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024934$as_echo "yes" >&6; }
24935 have_autotrace=yes
24936fi
cristy8b350f62009-11-15 23:12:43 +000024937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024938$as_echo "" >&6; }
24939fi
24940
24941if test "$have_autotrace" = 'yes'; then
24942 failed=0
24943
cristy8b350f62009-11-15 23:12:43 +000024944$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024945
24946 if test "$with_modules" = 'no'; then
24947 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
24948 fi
24949fi
24950
24951 if test "$have_autotrace" = 'yes'; then
24952 AUTOTRACE_DELEGATE_TRUE=
24953 AUTOTRACE_DELEGATE_FALSE='#'
24954else
24955 AUTOTRACE_DELEGATE_TRUE='#'
24956 AUTOTRACE_DELEGATE_FALSE=
24957fi
24958
24959
24960
24961
24962
24963#
24964# Check for Display Postscript delegate library.
24965#
24966
24967# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000024968if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024969 withval=$with_dps; with_dps=$withval
24970else
24971 with_dps='yes'
24972fi
24973
24974
24975if test "$with_dps" != 'yes'; then
24976 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
24977fi
24978
24979have_dps='no'
24980DPS_LIBS=''
24981if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024983$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000024985$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024987$as_echo "" >&6; }
24988 failed=0
24989 passed=0
24990 PERSIST_CPPFLAGS="$CPPFLAGS"
24991 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000024992 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
24993if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024994 passed=`expr $passed + 1`
24995else
24996 failed=`expr $failed + 1`
24997fi
24998
24999
25000 # DPS issues:
25001 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25002 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25003 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25004 # ImageMagick itself doesn't use -lXt.
25005 have_libdps='no'
25006 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000025007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025008$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025009if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025010 $as_echo_n "(cached) " >&6
25011else
25012 ac_check_lib_save_LIBS=$LIBS
25013LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025015/* end confdefs.h. */
25016
25017/* Override any GCC internal prototype to avoid an error.
25018 Use char because int might match the return type of a GCC
25019 builtin and then its argument prototype would still apply. */
25020#ifdef __cplusplus
25021extern "C"
25022#endif
25023char DPSInitialize ();
25024int
25025main ()
25026{
25027return DPSInitialize ();
25028 ;
25029 return 0;
25030}
25031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025032if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025033 ac_cv_lib_dps_DPSInitialize=yes
25034else
cristy8b350f62009-11-15 23:12:43 +000025035 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025036fi
cristy8b350f62009-11-15 23:12:43 +000025037rm -f core conftest.err conftest.$ac_objext \
25038 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025039LIBS=$ac_check_lib_save_LIBS
25040fi
cristy8b350f62009-11-15 23:12:43 +000025041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025042$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025043if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025044 have_libdps='yes'
25045else
25046 have_libdps='no'
25047fi
25048
25049 if test "$have_libdps" != 'yes'; then
25050 # Unset cache variable so we can try again.
25051 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000025052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025053$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025054if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025055 $as_echo_n "(cached) " >&6
25056else
25057 ac_check_lib_save_LIBS=$LIBS
25058LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025060/* end confdefs.h. */
25061
25062/* Override any GCC internal prototype to avoid an error.
25063 Use char because int might match the return type of a GCC
25064 builtin and then its argument prototype would still apply. */
25065#ifdef __cplusplus
25066extern "C"
25067#endif
25068char DPSInitialize ();
25069int
25070main ()
25071{
25072return DPSInitialize ();
25073 ;
25074 return 0;
25075}
25076_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025077if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025078 ac_cv_lib_dps_DPSInitialize=yes
25079else
cristy8b350f62009-11-15 23:12:43 +000025080 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025081fi
cristy8b350f62009-11-15 23:12:43 +000025082rm -f core conftest.err conftest.$ac_objext \
25083 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025084LIBS=$ac_check_lib_save_LIBS
25085fi
cristy8b350f62009-11-15 23:12:43 +000025086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025087$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025088if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025089 have_libdps='yes'
25090else
25091 have_libdps='no'
25092fi
25093
25094 if test "$have_libdps" = 'yes'; then
25095 LIBDPS_XT='-lXt'
25096 fi
25097 fi
25098 if test "$have_libdps" = 'yes'; then
25099 passed=`expr $passed + 1`
25100 else
25101 failed=`expr $failed + 1`
25102 fi
cristy8b350f62009-11-15 23:12:43 +000025103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025104$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025105if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025106 $as_echo_n "(cached) " >&6
25107else
25108 ac_check_lib_save_LIBS=$LIBS
25109LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025111/* end confdefs.h. */
25112
25113/* Override any GCC internal prototype to avoid an error.
25114 Use char because int might match the return type of a GCC
25115 builtin and then its argument prototype would still apply. */
25116#ifdef __cplusplus
25117extern "C"
25118#endif
25119char XDPSPixelsPerPoint ();
25120int
25121main ()
25122{
25123return XDPSPixelsPerPoint ();
25124 ;
25125 return 0;
25126}
25127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025128if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025129 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25130else
cristy8b350f62009-11-15 23:12:43 +000025131 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000025132fi
cristy8b350f62009-11-15 23:12:43 +000025133rm -f core conftest.err conftest.$ac_objext \
25134 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025135LIBS=$ac_check_lib_save_LIBS
25136fi
cristy8b350f62009-11-15 23:12:43 +000025137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000025138$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025139if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025140 passed=`expr $passed + 1`
25141else
25142 failed=`expr $failed + 1`
25143fi
25144
cristy8b350f62009-11-15 23:12:43 +000025145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025146$as_echo_n "checking if DPS package is complete... " >&6; }
25147 if test $passed -gt 0; then
25148 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025150$as_echo "no -- some components failed test" >&6; }
25151 have_dps='no (failed tests)'
25152 CPPFLAGS="$PERSIST_CPPFLAGS"
25153 else
25154 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
25155 LIBS="$DPS_LIBS $LIBS"
25156
cristy8b350f62009-11-15 23:12:43 +000025157$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025158
cristy8b350f62009-11-15 23:12:43 +000025159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025160$as_echo "yes" >&6; }
25161 have_dps='yes'
25162 fi
25163 else
cristy8b350f62009-11-15 23:12:43 +000025164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025165$as_echo "no" >&6; }
25166 CPPFLAGS=$PERSIST_CPPFLAGS
25167 fi
25168fi
25169 if test "$have_dps" = 'yes'; then
25170 DPS_DELEGATE_TRUE=
25171 DPS_DELEGATE_FALSE='#'
25172else
25173 DPS_DELEGATE_TRUE='#'
25174 DPS_DELEGATE_FALSE=
25175fi
25176
25177
25178
25179
25180#
25181# Check for DJVU delegate library.
25182#
25183
25184# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000025185if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025186 withval=$with_djvu; with_djvu=$withval
25187else
25188 with_djvu='yes'
25189fi
25190
25191
25192if test "$with_djvu" != 'yes'; then
25193 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
25194fi
25195
25196have_djvu='no'
25197DJVU_LIBS=''
25198if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025200$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000025202$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025204$as_echo "" >&6; }
25205 failed=0
25206 passed=0
cristy8b350f62009-11-15 23:12:43 +000025207 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25208if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025209 passed=`expr $passed + 1`
25210else
25211 failed=`expr $failed + 1`
25212fi
25213
25214
cristy8b350f62009-11-15 23:12:43 +000025215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000025216$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025217if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025218 $as_echo_n "(cached) " >&6
25219else
25220 ac_check_lib_save_LIBS=$LIBS
25221LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025223/* end confdefs.h. */
25224
25225/* Override any GCC internal prototype to avoid an error.
25226 Use char because int might match the return type of a GCC
25227 builtin and then its argument prototype would still apply. */
25228#ifdef __cplusplus
25229extern "C"
25230#endif
25231char ddjvu_context_create ();
25232int
25233main ()
25234{
25235return ddjvu_context_create ();
25236 ;
25237 return 0;
25238}
25239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025240if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025241 ac_cv_lib_djvulibre_ddjvu_context_create=yes
25242else
cristy8b350f62009-11-15 23:12:43 +000025243 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000025244fi
cristy8b350f62009-11-15 23:12:43 +000025245rm -f core conftest.err conftest.$ac_objext \
25246 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025247LIBS=$ac_check_lib_save_LIBS
25248fi
cristy8b350f62009-11-15 23:12:43 +000025249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000025250$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025251if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025252 passed=`expr $passed + 1`
25253else
25254 failed=`expr $failed + 1`
25255fi
25256
cristy8b350f62009-11-15 23:12:43 +000025257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025258$as_echo_n "checking if DJVU package is complete... " >&6; }
25259 if test $passed -gt 0; then
25260 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025262$as_echo "no -- some components failed test" >&6; }
25263 have_djvu='no (failed tests)'
25264 else
25265 DJVU_LIBS='-ldjvulibre'
25266 LIBS="$DJVU_LIBS $LIBS"
25267
cristy8b350f62009-11-15 23:12:43 +000025268$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025269
cristy8b350f62009-11-15 23:12:43 +000025270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025271$as_echo "yes" >&6; }
25272 have_djvu='yes'
25273 fi
25274 else
cristy8b350f62009-11-15 23:12:43 +000025275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025276$as_echo "no" >&6; }
25277 fi
25278fi
25279 if test "$have_djvu" = 'yes'; then
25280 DJVU_DELEGATE_TRUE=
25281 DJVU_DELEGATE_FALSE='#'
25282else
25283 DJVU_DELEGATE_TRUE='#'
25284 DJVU_DELEGATE_FALSE=
25285fi
25286
25287
25288
25289
25290#
25291# Check for FFTW delegate library.
25292#
25293
25294# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000025295if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025296 withval=$with_fftw; with_fftw=$withval
25297else
25298 with_fftw='yes'
25299fi
25300
25301
25302if test "$with_fftw" != 'yes'; then
25303 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
25304fi
25305
25306have_fftw='no'
25307FFTW_LIBS=''
25308if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025310$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000025312$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025314$as_echo "" >&6; }
25315 failed=0
25316 passed=0
cristy8b350f62009-11-15 23:12:43 +000025317 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
25318if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025319 passed=`expr $passed + 1`
25320else
25321 failed=`expr $failed + 1`
25322fi
25323
25324
cristy8b350f62009-11-15 23:12:43 +000025325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000025326$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025327if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025328 $as_echo_n "(cached) " >&6
25329else
25330 ac_check_lib_save_LIBS=$LIBS
25331LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025333/* end confdefs.h. */
25334
25335/* Override any GCC internal prototype to avoid an error.
25336 Use char because int might match the return type of a GCC
25337 builtin and then its argument prototype would still apply. */
25338#ifdef __cplusplus
25339extern "C"
25340#endif
25341char fftw_execute ();
25342int
25343main ()
25344{
25345return fftw_execute ();
25346 ;
25347 return 0;
25348}
25349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025351 ac_cv_lib_fftw3_fftw_execute=yes
25352else
cristy8b350f62009-11-15 23:12:43 +000025353 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000025354fi
cristy8b350f62009-11-15 23:12:43 +000025355rm -f core conftest.err conftest.$ac_objext \
25356 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025357LIBS=$ac_check_lib_save_LIBS
25358fi
cristy8b350f62009-11-15 23:12:43 +000025359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000025360$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025361if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025362 passed=`expr $passed + 1`
25363else
25364 failed=`expr $failed + 1`
25365fi
25366
cristy8b350f62009-11-15 23:12:43 +000025367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025368$as_echo_n "checking if FFTW package is complete... " >&6; }
25369 if test $passed -gt 0; then
25370 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025372$as_echo "no -- some components failed test" >&6; }
25373 have_fftw='no (failed tests)'
25374 else
25375 FFTW_LIBS='-lfftw3'
25376 LIBS="$FFTW_LIBS $LIBS"
25377
cristy8b350f62009-11-15 23:12:43 +000025378$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025379
cristy8b350f62009-11-15 23:12:43 +000025380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025381$as_echo "yes" >&6; }
25382 have_fftw='yes'
25383 fi
25384 else
cristy8b350f62009-11-15 23:12:43 +000025385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025386$as_echo "no" >&6; }
25387 fi
25388fi
25389 if test "$have_fftw" = 'yes'; then
25390 FFTW_DELEGATE_TRUE=
25391 FFTW_DELEGATE_FALSE='#'
25392else
25393 FFTW_DELEGATE_TRUE='#'
25394 FFTW_DELEGATE_FALSE=
25395fi
25396
25397
25398
25399
25400#
25401# Check for FlashPIX delegate library.
25402#
25403
25404# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000025405if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025406 withval=$with_fpx; with_fpx=$withval
25407else
25408 with_fpx='yes'
25409fi
25410
25411
25412if test "$with_fpx" != 'yes'; then
25413 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
25414fi
25415
25416have_fpx='no'
25417FPX_LIBS=''
25418if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025420$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025422$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025424$as_echo "" >&6; }
25425 failed=0
25426 passed=0
25427 ac_ext=cpp
25428ac_cpp='$CXXCPP $CPPFLAGS'
25429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25432
25433
cristy8b350f62009-11-15 23:12:43 +000025434ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
25435if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025436 passed=`expr $passed + 1`
25437else
25438 failed=`expr $failed + 1`
25439fi
25440
25441
cristy8b350f62009-11-15 23:12:43 +000025442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000025443$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025444if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025445 $as_echo_n "(cached) " >&6
25446else
25447 ac_check_lib_save_LIBS=$LIBS
25448LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025450/* end confdefs.h. */
25451
25452/* Override any GCC internal prototype to avoid an error.
25453 Use char because int might match the return type of a GCC
25454 builtin and then its argument prototype would still apply. */
25455#ifdef __cplusplus
25456extern "C"
25457#endif
25458char FPX_OpenImageByFilename ();
25459int
25460main ()
25461{
25462return FPX_OpenImageByFilename ();
25463 ;
25464 return 0;
25465}
25466_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025467if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025468 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
25469else
cristy8b350f62009-11-15 23:12:43 +000025470 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000025471fi
cristy8b350f62009-11-15 23:12:43 +000025472rm -f core conftest.err conftest.$ac_objext \
25473 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025474LIBS=$ac_check_lib_save_LIBS
25475fi
cristy8b350f62009-11-15 23:12:43 +000025476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000025477$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025478if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025479 passed=`expr $passed + 1`
25480else
25481 failed=`expr $failed + 1`
25482fi
25483
25484 ac_ext=c
25485ac_cpp='$CPP $CPPFLAGS'
25486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25488ac_compiler_gnu=$ac_cv_c_compiler_gnu
25489
cristy8b350f62009-11-15 23:12:43 +000025490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025491$as_echo_n "checking if FlashPIX package is complete... " >&6; }
25492 if test $passed -gt 0; then
25493 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025495$as_echo "no -- some components failed test" >&6; }
25496 have_fpx='no (failed tests)'
25497 else
25498 FPX_LIBS='-lfpx'
25499
cristy8b350f62009-11-15 23:12:43 +000025500$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025501
cristy8b350f62009-11-15 23:12:43 +000025502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025503$as_echo "yes" >&6; }
25504 have_fpx='yes'
25505 PERLMAINCC="$CXX"
25506 fi
25507 else
cristy8b350f62009-11-15 23:12:43 +000025508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025509$as_echo "no" >&6; }
25510 fi
25511fi
25512 if test "$have_fpx" = 'yes'; then
25513 FPX_DELEGATE_TRUE=
25514 FPX_DELEGATE_FALSE='#'
25515else
25516 FPX_DELEGATE_TRUE='#'
25517 FPX_DELEGATE_FALSE=
25518fi
25519
25520
25521
25522
25523#
25524# Check for fontconfig delegate library.
25525#
25526
25527# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000025528if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025529 withval=$with_fontconfig; with_fontconfig=$withval
25530else
25531 with_fontconfig=$have_x
25532fi
25533
25534
25535if test "$with_fontconfig" != 'yes'; then
25536 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
25537fi
25538
25539have_fontconfig='no'
25540FONTCONFIG_CFLAGS=""
25541FONTCONFIG_LIBS=""
25542FONTCONFIG_PKG=""
25543if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025545$as_echo "-------------------------------------------------------------" >&6; }
25546
25547pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000025549$as_echo_n "checking for FONTCONFIG... " >&6; }
25550
25551if test -n "$FONTCONFIG_CFLAGS"; then
25552 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
25553 elif test -n "$PKG_CONFIG"; then
25554 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025555 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025556 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25557 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25559 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025560 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
25561else
25562 pkg_failed=yes
25563fi
25564 else
25565 pkg_failed=untried
25566fi
25567if test -n "$FONTCONFIG_LIBS"; then
25568 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
25569 elif test -n "$PKG_CONFIG"; then
25570 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025571 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025572 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25573 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025576 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
25577else
25578 pkg_failed=yes
25579fi
25580 else
25581 pkg_failed=untried
25582fi
25583
25584
25585
25586if test $pkg_failed = yes; then
25587
25588if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25589 _pkg_short_errors_supported=yes
25590else
25591 _pkg_short_errors_supported=no
25592fi
25593 if test $_pkg_short_errors_supported = yes; then
25594 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
25595 else
25596 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
25597 fi
25598 # Put the nasty error message in config.log where it belongs
25599 echo "$FONTCONFIG_PKG_ERRORS" >&5
25600
cristy8b350f62009-11-15 23:12:43 +000025601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025602$as_echo "no" >&6; }
25603 have_fontconfig=no
25604elif test $pkg_failed = untried; then
25605 have_fontconfig=no
25606else
25607 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
25608 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000025609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025610$as_echo "yes" >&6; }
25611 have_fontconfig=yes
25612fi
cristy8b350f62009-11-15 23:12:43 +000025613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025614$as_echo "" >&6; }
25615fi
25616
25617if test "$have_fontconfig" = 'yes'; then
25618
cristy8b350f62009-11-15 23:12:43 +000025619$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025620
25621 if test "$with_modules" = 'no'; then
25622 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
25623 fi
25624fi
25625
25626 if test "$have_fontconfig" = 'yes'; then
25627 FONTCONFIG_DELEGATE_TRUE=
25628 FONTCONFIG_DELEGATE_FALSE='#'
25629else
25630 FONTCONFIG_DELEGATE_TRUE='#'
25631 FONTCONFIG_DELEGATE_FALSE=
25632fi
25633
25634
25635
25636
25637
25638#
25639# Check for freetype delegate library.
25640#
25641
25642# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000025643if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025644 withval=$with_freetype; with_freetype=$withval
25645else
25646 with_freetype='yes'
25647fi
25648
25649
25650
25651if test "$with_freetype" != 'yes'; then
25652 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
25653fi
25654
25655have_freetype='no'
25656FREETYPE_LIBS=''
25657if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025659$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000025661$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025663$as_echo "" >&6; }
25664 failed=0
25665 passed=0
cristy66291112009-10-03 22:44:36 +000025666 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025667 PERSIST_CPPFLAGS="$CPPFLAGS"
25668 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
25669 :
25670 else
25671 freetype_config=''
25672 for ac_prog in freetype-config
25673do
25674 # Extract the first word of "$ac_prog", so it can be a program name with args.
25675set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025677$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025678if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025679 $as_echo_n "(cached) " >&6
25680else
25681 if test -n "$freetype_config"; then
25682 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
25683else
25684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25685for as_dir in $PATH
25686do
25687 IFS=$as_save_IFS
25688 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025689 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25691 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025693 break 2
25694 fi
25695done
cristy8b350f62009-11-15 23:12:43 +000025696 done
cristy3ed852e2009-09-05 21:47:34 +000025697IFS=$as_save_IFS
25698
25699fi
25700fi
25701freetype_config=$ac_cv_prog_freetype_config
25702if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000025703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000025704$as_echo "$freetype_config" >&6; }
25705else
cristy8b350f62009-11-15 23:12:43 +000025706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025707$as_echo "no" >&6; }
25708fi
25709
25710
25711 test -n "$freetype_config" && break
25712done
25713 if test -n "$freetype_config"; then
25714 freetype_cflags=`$freetype_config --cflags`
25715 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000025716 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000025717 CPPFLAGS="$freetype_cflags $CPPFLAGS"
25718 fi
25719 fi
25720
25721 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000025722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000025723$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025724if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025725 $as_echo_n "(cached) " >&6
25726else
25727 ac_check_lib_save_LIBS=$LIBS
25728LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025730/* end confdefs.h. */
25731
25732/* Override any GCC internal prototype to avoid an error.
25733 Use char because int might match the return type of a GCC
25734 builtin and then its argument prototype would still apply. */
25735#ifdef __cplusplus
25736extern "C"
25737#endif
25738char FT_Init_FreeType ();
25739int
25740main ()
25741{
25742return FT_Init_FreeType ();
25743 ;
25744 return 0;
25745}
25746_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025747if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025748 ac_cv_lib_freetype_FT_Init_FreeType=yes
25749else
cristy8b350f62009-11-15 23:12:43 +000025750 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000025751fi
cristy8b350f62009-11-15 23:12:43 +000025752rm -f core conftest.err conftest.$ac_objext \
25753 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025754LIBS=$ac_check_lib_save_LIBS
25755fi
cristy8b350f62009-11-15 23:12:43 +000025756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000025757$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025758if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025759 FREETYPE_LIBS='-lfreetype'
25760fi
25761
25762 if test "$FREETYPE_LIBS" != ''; then
25763 passed=`expr $passed + 1`
25764 else
25765 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000025766 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025767 fi
25768 fi
25769
cristy8b350f62009-11-15 23:12:43 +000025770 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
25771if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025772 FT2BUILD_H='#include <ft2build.h>'
25773else
25774 ft2build=''
25775fi
25776
25777
cristy8b350f62009-11-15 23:12:43 +000025778 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
25779"
25780if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025781 have_freetype_h='yes'
25782else
25783 have_freetype_h='no'
25784fi
25785
25786
25787 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
25788 passed=`expr $passed + 1`
25789 else
25790 failed=`expr $failed + 1`
25791 CPPFLAGS="$PERSIST_CPPFLAGS"
25792 fi
25793
cristy8b350f62009-11-15 23:12:43 +000025794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025795$as_echo_n "checking if FreeType package is complete... " >&6; }
25796 if test $passed -gt 0; then
25797 if test $failed -gt 0; then
25798 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025800$as_echo "no -- some components failed test" >&6; }
25801 have_freetype='no (failed tests)'
25802 else
25803 LIBS="$FREETYPE_LIBS $LIBS"
25804
cristy8b350f62009-11-15 23:12:43 +000025805$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025806
25807 if test "$ac_cv_header_ft2build_h" = 'yes'; then
25808
cristy8b350f62009-11-15 23:12:43 +000025809$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025810
25811 fi
cristy8b350f62009-11-15 23:12:43 +000025812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025813$as_echo "yes" >&6; }
25814 have_freetype='yes'
25815 fi
25816 else
cristy8b350f62009-11-15 23:12:43 +000025817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025818$as_echo "no" >&6; }
25819 fi
25820fi
25821 if test "$have_freetype" = 'yes'; then
25822 FREETYPE_DELEGATE_TRUE=
25823 FREETYPE_DELEGATE_FALSE='#'
25824else
25825 FREETYPE_DELEGATE_TRUE='#'
25826 FREETYPE_DELEGATE_FALSE=
25827fi
25828
25829
25830
25831
25832
25833#
25834# Check for Ghostscript library or framework.
25835#
25836# Test for iapi.h & test for gsapi_new_instance in -lgs
25837# or -framework Ghostscript
25838
25839
25840# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000025841if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025842 withval=$with_gslib; with_gslib=$withval
25843else
25844 with_gslib='no'
25845fi
25846
25847
cristyb7931f12009-09-25 10:22:21 +000025848gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000025849if test "$with_gslib" != 'yes'; then
25850 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
25851fi
25852
25853have_gslib='no'
25854GS_LIBS=''
25855if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025857$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000025859$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025861$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000025862 framework=0
cristy3ed852e2009-09-05 21:47:34 +000025863 failed=0
25864 passed=0
cristy8b350f62009-11-15 23:12:43 +000025865 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
25866if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025867 passed=`expr $passed + 1`
25868else
25869 failed=`expr $failed + 1`
25870fi
25871
25872
cristy8b350f62009-11-15 23:12:43 +000025873 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
25874if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025875 passed=`expr $passed + 1`
25876else
25877 failed=`expr $failed + 1`
25878fi
25879
25880
cristy8b350f62009-11-15 23:12:43 +000025881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000025882$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025883if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025884 $as_echo_n "(cached) " >&6
25885else
25886 ac_check_framework_save_LIBS=$LIBS
25887LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025889/* end confdefs.h. */
25890
25891/* Override any GCC internal prototype to avoid an error.
25892 Use char because int might match the return type of a GCC
25893 builtin and then its argument prototype would still apply. */
25894#ifdef __cplusplus
25895extern "C"
25896#endif
25897char gsapi_new_instance ();
25898int
25899main ()
25900{
25901return gsapi_new_instance ();
25902 ;
25903 return 0;
25904}
25905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025906if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025907 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
25908else
cristy8b350f62009-11-15 23:12:43 +000025909 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025910fi
cristy8b350f62009-11-15 23:12:43 +000025911rm -f core conftest.err conftest.$ac_objext \
25912 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025913LIBS=$ac_check_framework_save_LIBS
25914fi
cristy8b350f62009-11-15 23:12:43 +000025915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025916$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025917if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025918 framework=`expr $framework + 1`
25919else
cristy8b350f62009-11-15 23:12:43 +000025920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000025921$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025922if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025923 $as_echo_n "(cached) " >&6
25924else
25925 ac_check_lib_save_LIBS=$LIBS
25926LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025928/* end confdefs.h. */
25929
25930/* Override any GCC internal prototype to avoid an error.
25931 Use char because int might match the return type of a GCC
25932 builtin and then its argument prototype would still apply. */
25933#ifdef __cplusplus
25934extern "C"
25935#endif
25936char gsapi_new_instance ();
25937int
25938main ()
25939{
25940return gsapi_new_instance ();
25941 ;
25942 return 0;
25943}
25944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025946 ac_cv_lib_gs_gsapi_new_instance=yes
25947else
cristy8b350f62009-11-15 23:12:43 +000025948 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025949fi
cristy8b350f62009-11-15 23:12:43 +000025950rm -f core conftest.err conftest.$ac_objext \
25951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025952LIBS=$ac_check_lib_save_LIBS
25953fi
cristy8b350f62009-11-15 23:12:43 +000025954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025955$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025956if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025957 passed=`expr $passed + 1`
25958else
25959 failed=`expr $failed + 1`
25960fi
25961
25962fi
cristy8b350f62009-11-15 23:12:43 +000025963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025964$as_echo_n "checking if Ghostscript package is complete... " >&6; }
25965 if test $passed -gt 0; then
25966 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025968$as_echo "no -- some components failed test" >&6; }
25969 have_gslib='no (failed tests)'
25970 else
25971 if test $framework -gt 0; then
25972 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000025973 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000025974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000025975$as_echo "yes, using framework." >&6; }
25976 else
cristy8b350f62009-11-15 23:12:43 +000025977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000025978$as_echo "yes, using library." >&6; }
25979 GS_LIBS='-lgs'
25980 fi
25981 LIBS="$GS_LIBS $LIBS"
25982
cristy8b350f62009-11-15 23:12:43 +000025983$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025984
25985 have_gslib='yes'
25986 fi
25987 else
cristy8b350f62009-11-15 23:12:43 +000025988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025989$as_echo "no" >&6; }
25990 fi
25991fi
25992 if test "$have_gslib" = 'yes'; then
25993 GS_DELEGATE_TRUE=
25994 GS_DELEGATE_FALSE='#'
25995else
25996 GS_DELEGATE_TRUE='#'
25997 GS_DELEGATE_FALSE=
25998fi
25999
26000
26001
26002# Set default font search path
26003
26004# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000026005if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026006 withval=$with_fontpath; with_fontpath=$withval
26007else
26008 with_fontpath=''
26009fi
26010
26011
26012if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26013 with_fontpath=''
26014else
26015
26016cat >>confdefs.h <<_ACEOF
26017#define MAGICK_FONT_PATH "$with_fontpath"
26018_ACEOF
26019
26020fi
26021if test "$with_fontpath=" != ''; then
26022 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26023fi
26024
26025# Set Ghostscript font directory
26026
26027# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000026028if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026029 withval=$with_gs_font_dir; with_gs_font_dir=$withval
26030else
26031 with_gs_font_dir='default'
26032fi
26033
26034
26035if test "$with_gs_font_dir" != 'default'; then
26036 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26037fi
26038
26039
26040#
26041# Check for GVC delegate library.
26042#
26043
26044# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000026045if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026046 withval=$with_gvc; with_gvc=$withval
26047else
26048 with_gvc='yes'
26049fi
26050
26051
26052if test "$with_gvc" != 'yes'; then
26053 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26054fi
26055
26056GVC_PKG=""
26057if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026059$as_echo "-------------------------------------------------------------" >&6; }
26060
26061pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000026063$as_echo_n "checking for GVC... " >&6; }
26064
26065if test -n "$GVC_CFLAGS"; then
26066 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26067 elif test -n "$PKG_CONFIG"; then
26068 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026069 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026070 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26071 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26073 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026074 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26075else
26076 pkg_failed=yes
26077fi
26078 else
26079 pkg_failed=untried
26080fi
26081if test -n "$GVC_LIBS"; then
26082 pkg_cv_GVC_LIBS="$GVC_LIBS"
26083 elif test -n "$PKG_CONFIG"; then
26084 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026085 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026086 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26087 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026090 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26091else
26092 pkg_failed=yes
26093fi
26094 else
26095 pkg_failed=untried
26096fi
26097
26098
26099
26100if test $pkg_failed = yes; then
26101
26102if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26103 _pkg_short_errors_supported=yes
26104else
26105 _pkg_short_errors_supported=no
26106fi
26107 if test $_pkg_short_errors_supported = yes; then
26108 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26109 else
26110 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26111 fi
26112 # Put the nasty error message in config.log where it belongs
26113 echo "$GVC_PKG_ERRORS" >&5
26114
cristy8b350f62009-11-15 23:12:43 +000026115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026116$as_echo "no" >&6; }
26117 have_gvc=no
26118elif test $pkg_failed = untried; then
26119 have_gvc=no
26120else
26121 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
26122 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000026123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026124$as_echo "yes" >&6; }
26125 have_gvc=yes
26126fi
cristy8b350f62009-11-15 23:12:43 +000026127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026128$as_echo "" >&6; }
26129fi
26130
26131if test "$have_gvc" = 'yes'; then
26132
cristy8b350f62009-11-15 23:12:43 +000026133$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026134
26135 if test "$with_modules" = 'no'; then
26136 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
26137 fi
26138fi
26139
26140 if test "$have_gvc" = 'yes'; then
26141 GVC_DELEGATE_TRUE=
26142 GVC_DELEGATE_FALSE='#'
26143else
26144 GVC_DELEGATE_TRUE='#'
26145 GVC_DELEGATE_FALSE=
26146fi
26147
26148
26149
26150
26151
26152#
26153# Check for JBIG delegate library.
26154#
26155
26156
26157# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000026158if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026159 withval=$with_jbig; with_jbig=$withval
26160else
26161 with_jbig='yes'
26162fi
26163
26164
26165have_jbig='no'
26166JBIG_LIBS=''
26167if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026169$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026171$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026173$as_echo "" >&6; }
26174 failed=0
26175 passed=0
cristy8b350f62009-11-15 23:12:43 +000026176 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
26177if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026178 passed=`expr $passed + 1`
26179else
26180 failed=`expr $failed + 1`
26181fi
26182
26183
cristy8b350f62009-11-15 23:12:43 +000026184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000026185$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026186if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026187 $as_echo_n "(cached) " >&6
26188else
26189 ac_check_lib_save_LIBS=$LIBS
26190LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026192/* end confdefs.h. */
26193
26194/* Override any GCC internal prototype to avoid an error.
26195 Use char because int might match the return type of a GCC
26196 builtin and then its argument prototype would still apply. */
26197#ifdef __cplusplus
26198extern "C"
26199#endif
26200char jbg_dec_init ();
26201int
26202main ()
26203{
26204return jbg_dec_init ();
26205 ;
26206 return 0;
26207}
26208_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026209if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026210 ac_cv_lib_jbig_jbg_dec_init=yes
26211else
cristy8b350f62009-11-15 23:12:43 +000026212 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000026213fi
cristy8b350f62009-11-15 23:12:43 +000026214rm -f core conftest.err conftest.$ac_objext \
26215 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026216LIBS=$ac_check_lib_save_LIBS
26217fi
cristy8b350f62009-11-15 23:12:43 +000026218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000026219$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026220if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026221 passed=`expr $passed + 1`
26222else
26223 failed=`expr $failed + 1`
26224fi
26225
cristy8b350f62009-11-15 23:12:43 +000026226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026227$as_echo_n "checking if JBIG package is complete... " >&6; }
26228 if test $passed -gt 0; then
26229 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026231$as_echo "no -- some components failed test" >&6; }
26232 have_jbig='no (failed tests)'
26233 else
26234 JBIG_LIBS='-ljbig'
26235 LIBS="$JBIG_LIBS $LIBS"
26236
cristy8b350f62009-11-15 23:12:43 +000026237$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026238
cristy8b350f62009-11-15 23:12:43 +000026239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026240$as_echo "yes" >&6; }
26241 have_jbig='yes'
26242 fi
26243 else
cristy8b350f62009-11-15 23:12:43 +000026244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026245$as_echo "no" >&6; }
26246 fi
26247fi
26248 if test "$have_jbig" = 'yes'; then
26249 JBIG_DELEGATE_TRUE=
26250 JBIG_DELEGATE_FALSE='#'
26251else
26252 JBIG_DELEGATE_TRUE='#'
26253 JBIG_DELEGATE_FALSE=
26254fi
26255
26256
26257
26258
26259#
26260# Check for JPEG delegate library.
26261#
26262
26263# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000026264if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026265 withval=$with_jpeg; with_jpeg=$withval
26266else
26267 with_jpeg='yes'
26268fi
26269
26270
26271if test "$with_jpeg" != 'yes'; then
26272 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26273fi
26274
26275have_jpeg='no'
26276JPEG_LIBS=''
26277if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026279$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026281$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026283$as_echo "" >&6; }
26284 failed=0
26285 passed=0
cristy8b350f62009-11-15 23:12:43 +000026286 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26287if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026288 passed=`expr $passed + 1`
26289else
26290 failed=`expr $failed + 1`
26291fi
26292
26293
cristy8b350f62009-11-15 23:12:43 +000026294 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26295if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026296 passed=`expr $passed + 1`
26297else
26298 failed=`expr $failed + 1`
26299fi
26300
26301
cristy8b350f62009-11-15 23:12:43 +000026302 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
26303if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026304 passed=`expr $passed + 1`
26305else
26306 failed=`expr $failed + 1`
26307fi
26308
26309
cristy8b350f62009-11-15 23:12:43 +000026310 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
26311if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026312 passed=`expr $passed + 1`
26313else
26314 failed=`expr $failed + 1`
26315fi
26316
26317
cristy8b350f62009-11-15 23:12:43 +000026318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000026319$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026320if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026321 $as_echo_n "(cached) " >&6
26322else
26323 ac_check_lib_save_LIBS=$LIBS
26324LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026326/* end confdefs.h. */
26327
26328/* Override any GCC internal prototype to avoid an error.
26329 Use char because int might match the return type of a GCC
26330 builtin and then its argument prototype would still apply. */
26331#ifdef __cplusplus
26332extern "C"
26333#endif
26334char jpeg_read_header ();
26335int
26336main ()
26337{
26338return jpeg_read_header ();
26339 ;
26340 return 0;
26341}
26342_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026343if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026344 ac_cv_lib_jpeg_jpeg_read_header=yes
26345else
cristy8b350f62009-11-15 23:12:43 +000026346 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000026347fi
cristy8b350f62009-11-15 23:12:43 +000026348rm -f core conftest.err conftest.$ac_objext \
26349 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026350LIBS=$ac_check_lib_save_LIBS
26351fi
cristy8b350f62009-11-15 23:12:43 +000026352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000026353$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026354if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026355 passed=`expr $passed + 1`
26356else
26357 failed=`expr $failed + 1`
26358fi
26359
26360
26361# Test for compatible JPEG library
26362if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000026364$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026365if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026366 $as_echo_n "(cached) " >&6
26367else
cristy8b350f62009-11-15 23:12:43 +000026368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026369/* end confdefs.h. */
26370#include <stdio.h>
26371#include <stdlib.h>
26372#include <jpeglib.h>
26373
26374int
26375main ()
26376{
26377
26378#if JPEG_LIB_VERSION < 62
26379#error IJG JPEG library must be version 6b or newer!
26380#endif
26381return 0;
26382
26383 ;
26384 return 0;
26385}
26386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026387if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026388 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
26389else
cristy8b350f62009-11-15 23:12:43 +000026390 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000026391fi
cristy3ed852e2009-09-05 21:47:34 +000026392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26393fi
cristy8b350f62009-11-15 23:12:43 +000026394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000026395$as_echo "$ac_cv_jpeg_version_ok" >&6; }
26396fi
cristy8b350f62009-11-15 23:12:43 +000026397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026398$as_echo_n "checking if JPEG package is complete... " >&6; }
26399 if test $passed -gt 0; then
26400 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026402$as_echo "no -- some components failed test" >&6; }
26403 have_jpeg='no (failed tests)'
26404 else
26405 JPEG_LIBS='-ljpeg'
26406 LIBS="$JPEG_LIBS $LIBS"
26407
cristy8b350f62009-11-15 23:12:43 +000026408$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026409
cristy8b350f62009-11-15 23:12:43 +000026410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026411$as_echo "yes" >&6; }
26412 have_jpeg='yes'
26413 fi
26414 else
cristy8b350f62009-11-15 23:12:43 +000026415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026416$as_echo "no" >&6; }
26417 fi
26418fi
26419 if test "$have_jpeg" = 'yes'; then
26420 JPEG_DELEGATE_TRUE=
26421 JPEG_DELEGATE_FALSE='#'
26422else
26423 JPEG_DELEGATE_TRUE='#'
26424 JPEG_DELEGATE_FALSE=
26425fi
26426
26427
26428
26429
26430#
26431# Check for JPEG Version 2 delegate library.
26432#
26433
26434# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000026435if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026436 withval=$with_jp2; with_jp2=$withval
26437else
26438 with_jp2='yes'
26439fi
26440
26441
26442if test "$with_jp2" != 'yes'; then
26443 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
26444fi
26445
26446have_jp2='no'
26447JP2_LIBS=''
26448if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026450$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026452$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026454$as_echo "" >&6; }
26455 failed=0
26456 passed=0
cristy8b350f62009-11-15 23:12:43 +000026457 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
26458if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026459 passed=`expr $passed + 1`
26460else
26461 failed=`expr $failed + 1`
26462fi
26463
26464
cristy8b350f62009-11-15 23:12:43 +000026465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000026466$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026467if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026468 $as_echo_n "(cached) " >&6
26469else
26470 ac_check_lib_save_LIBS=$LIBS
26471LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026473/* end confdefs.h. */
26474
26475/* Override any GCC internal prototype to avoid an error.
26476 Use char because int might match the return type of a GCC
26477 builtin and then its argument prototype would still apply. */
26478#ifdef __cplusplus
26479extern "C"
26480#endif
26481char jas_stream_fopen ();
26482int
26483main ()
26484{
26485return jas_stream_fopen ();
26486 ;
26487 return 0;
26488}
26489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026490if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026491 ac_cv_lib_jasper_jas_stream_fopen=yes
26492else
cristy8b350f62009-11-15 23:12:43 +000026493 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000026494fi
cristy8b350f62009-11-15 23:12:43 +000026495rm -f core conftest.err conftest.$ac_objext \
26496 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026497LIBS=$ac_check_lib_save_LIBS
26498fi
cristy8b350f62009-11-15 23:12:43 +000026499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026500$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026501if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026502 passed=`expr $passed + 1`
26503else
26504 failed=`expr $failed + 1`
26505fi
26506
cristy8b350f62009-11-15 23:12:43 +000026507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026508$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
26509 if test $passed -gt 0; then
26510 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026512$as_echo "no -- some components failed test" >&6; }
26513 have_jp2='no (failed tests)'
26514 else
26515 JP2_LIBS='-ljasper'
26516 LIBS="$JP2_LIBS $LIBS"
26517
cristy8b350f62009-11-15 23:12:43 +000026518$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026519
cristy8b350f62009-11-15 23:12:43 +000026520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026521$as_echo "yes" >&6; }
26522 have_jp2='yes'
26523 fi
26524 else
cristy8b350f62009-11-15 23:12:43 +000026525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026526$as_echo "no" >&6; }
26527 fi
26528fi
26529 if test "$have_jp2" = 'yes'; then
26530 JP2_DELEGATE_TRUE=
26531 JP2_DELEGATE_FALSE='#'
26532else
26533 JP2_DELEGATE_TRUE='#'
26534 JP2_DELEGATE_FALSE=
26535fi
26536
26537
26538
26539
26540#
26541# Check for LCMS delegate library.
26542#
26543
26544# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000026545if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026546 withval=$with_lcms; with_lcms=$withval
26547else
26548 with_lcms='yes'
26549fi
26550
26551
26552if test "$with_lcms" != 'yes'; then
26553 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
26554fi
26555
26556have_lcms='no'
26557LCMS_LIBS=''
26558if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026560$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026562$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026564$as_echo "" >&6; }
26565 failed=0
26566 passed=0
26567 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000026568 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
26569if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026570 have_lcms_header='yes'
26571fi
26572
26573
26574 if test "$have_lcms_header" = 'yes'; then
26575 passed=`expr $passed + 1`
26576
cristy8b350f62009-11-15 23:12:43 +000026577$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026578
26579 else
cristy8b350f62009-11-15 23:12:43 +000026580 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
26581if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026582 have_lcms_header='yes'
26583fi
26584
26585
26586 if test "$have_lcms_header" = 'yes'; then
26587 passed=`expr $passed + 1`
26588
cristy8b350f62009-11-15 23:12:43 +000026589$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026590
26591 else
26592 failed=`expr $failed + 1`
26593 fi
26594 fi
cristy8b350f62009-11-15 23:12:43 +000026595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000026596$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026597if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026598 $as_echo_n "(cached) " >&6
26599else
26600 ac_check_lib_save_LIBS=$LIBS
26601LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026603/* end confdefs.h. */
26604
26605/* Override any GCC internal prototype to avoid an error.
26606 Use char because int might match the return type of a GCC
26607 builtin and then its argument prototype would still apply. */
26608#ifdef __cplusplus
26609extern "C"
26610#endif
26611char cmsOpenProfileFromMem ();
26612int
26613main ()
26614{
26615return cmsOpenProfileFromMem ();
26616 ;
26617 return 0;
26618}
26619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026620if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026621 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
26622else
cristy8b350f62009-11-15 23:12:43 +000026623 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000026624fi
cristy8b350f62009-11-15 23:12:43 +000026625rm -f core conftest.err conftest.$ac_objext \
26626 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026627LIBS=$ac_check_lib_save_LIBS
26628fi
cristy8b350f62009-11-15 23:12:43 +000026629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026630$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026631if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026632 passed=`expr $passed + 1`
26633else
26634 failed=`expr $failed + 1`
26635fi
26636
cristy8b350f62009-11-15 23:12:43 +000026637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026638$as_echo_n "checking if LCMS package is complete... " >&6; }
26639 if test $passed -gt 0; then
26640 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026642$as_echo "no -- some components failed test" >&6; }
26643 have_lcms='no (failed tests)'
26644 else
26645 LCMS_LIBS='-llcms'
26646 LIBS="$LCMS_LIBS $LIBS"
26647
cristy8b350f62009-11-15 23:12:43 +000026648$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026649
cristy8b350f62009-11-15 23:12:43 +000026650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026651$as_echo "yes" >&6; }
26652 have_lcms='yes'
26653 fi
26654 else
cristy8b350f62009-11-15 23:12:43 +000026655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026656$as_echo "no" >&6; }
26657 fi
26658fi
26659 if test "$have_lcms" = 'yes'; then
26660 LCMS_DELEGATE_TRUE=
26661 LCMS_DELEGATE_FALSE='#'
26662else
26663 LCMS_DELEGATE_TRUE='#'
26664 LCMS_DELEGATE_FALSE=
26665fi
26666
26667
26668
26669
26670#
26671# Check for the LQR (Liquid Rescale) delegate library.
26672#
26673
26674# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000026675if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026676 withval=$with_lqr; with_lqr=$withval
26677else
26678 with_lqr='yes'
26679fi
26680
26681
26682if test "$with_lqr" != 'yes'; then
26683 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
26684fi
26685
26686have_lqr='no'
26687LQR_CFLAGS=""
26688LQR_LIBS=""
26689LQR_PKG=""
26690if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026692$as_echo "-------------------------------------------------------------" >&6; }
26693
26694pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026696$as_echo_n "checking for LQR... " >&6; }
26697
26698if test -n "$LQR_CFLAGS"; then
26699 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
26700 elif test -n "$PKG_CONFIG"; then
26701 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026702 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026703 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26704 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26706 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026707 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
26708else
26709 pkg_failed=yes
26710fi
26711 else
26712 pkg_failed=untried
26713fi
26714if test -n "$LQR_LIBS"; then
26715 pkg_cv_LQR_LIBS="$LQR_LIBS"
26716 elif test -n "$PKG_CONFIG"; then
26717 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026719 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26720 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26722 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026723 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
26724else
26725 pkg_failed=yes
26726fi
26727 else
26728 pkg_failed=untried
26729fi
26730
26731
26732
26733if test $pkg_failed = yes; then
26734
26735if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26736 _pkg_short_errors_supported=yes
26737else
26738 _pkg_short_errors_supported=no
26739fi
26740 if test $_pkg_short_errors_supported = yes; then
26741 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
26742 else
26743 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
26744 fi
26745 # Put the nasty error message in config.log where it belongs
26746 echo "$LQR_PKG_ERRORS" >&5
26747
cristy8b350f62009-11-15 23:12:43 +000026748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026749$as_echo "no" >&6; }
26750 have_lqr=no
26751elif test $pkg_failed = untried; then
26752 have_lqr=no
26753else
26754 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
26755 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026757$as_echo "yes" >&6; }
26758 have_lqr=yes
26759fi
cristy8b350f62009-11-15 23:12:43 +000026760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026761$as_echo "" >&6; }
26762fi
26763
26764if test "$have_lqr" = 'yes'; then
26765
cristy8b350f62009-11-15 23:12:43 +000026766$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026767
26768 CFLAGS="$LQR_CFLAGS $CFLAGS"
26769fi
26770
26771 if test "$have_lqr" = 'yes'; then
26772 LQR_DELEGATE_TRUE=
26773 LQR_DELEGATE_FALSE='#'
26774else
26775 LQR_DELEGATE_TRUE='#'
26776 LQR_DELEGATE_FALSE=
26777fi
26778
26779
26780
26781
26782
26783#
26784# Check for the OpenEXR delegate library.
26785#
26786
26787# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000026788if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026789 withval=$with_openexr; with_openexr=$withval
26790else
26791 with_openexr='yes'
26792fi
26793
26794
26795if test "$with_openexr" != 'yes'; then
26796 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
26797fi
26798
26799have_openexr='no'
26800OPENEXR_CFLAGS=""
26801OPENEXR_LIBS=""
26802OPENEXR_PKG=""
26803if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026805$as_echo "-------------------------------------------------------------" >&6; }
26806
26807pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026809$as_echo_n "checking for OPENEXR... " >&6; }
26810
26811if test -n "$OPENEXR_CFLAGS"; then
26812 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
26813 elif test -n "$PKG_CONFIG"; then
26814 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026815 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026816 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26817 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26819 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026820 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
26821else
26822 pkg_failed=yes
26823fi
26824 else
26825 pkg_failed=untried
26826fi
26827if test -n "$OPENEXR_LIBS"; then
26828 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
26829 elif test -n "$PKG_CONFIG"; then
26830 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026831 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026832 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26833 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26835 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026836 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
26837else
26838 pkg_failed=yes
26839fi
26840 else
26841 pkg_failed=untried
26842fi
26843
26844
26845
26846if test $pkg_failed = yes; then
26847
26848if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26849 _pkg_short_errors_supported=yes
26850else
26851 _pkg_short_errors_supported=no
26852fi
26853 if test $_pkg_short_errors_supported = yes; then
26854 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
26855 else
26856 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
26857 fi
26858 # Put the nasty error message in config.log where it belongs
26859 echo "$OPENEXR_PKG_ERRORS" >&5
26860
cristy8b350f62009-11-15 23:12:43 +000026861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026862$as_echo "no" >&6; }
26863 have_openexr=no
26864elif test $pkg_failed = untried; then
26865 have_openexr=no
26866else
26867 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
26868 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026870$as_echo "yes" >&6; }
26871 have_openexr=yes
26872fi
cristy8b350f62009-11-15 23:12:43 +000026873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026874$as_echo "" >&6; }
26875fi
26876
26877if test "$have_openexr" = 'yes'; then
26878
cristy8b350f62009-11-15 23:12:43 +000026879$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026880
26881 if test "$with_modules" = 'no'; then
26882 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
26883 fi
26884fi
26885
26886 if test "$have_openexr" = 'yes'; then
26887 OPENEXR_DELEGATE_TRUE=
26888 OPENEXR_DELEGATE_FALSE='#'
26889else
26890 OPENEXR_DELEGATE_TRUE='#'
26891 OPENEXR_DELEGATE_FALSE=
26892fi
26893
26894
26895
26896
26897
26898#
26899# Check for PNG delegate library.
26900#
26901
26902# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000026903if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026904 withval=$with_png; with_png=$withval
26905else
26906 with_png='yes'
26907fi
26908
26909
26910if test "$with_png" != 'yes'; then
26911 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
26912fi
26913
26914have_png='no'
26915PNG_LIBS=''
26916if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026918$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026920$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026922$as_echo "" >&6; }
26923 failed=0
26924 passed=0
cristy8b350f62009-11-15 23:12:43 +000026925 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
26926if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026927 passed=`expr $passed + 1`
26928else
26929 failed=`expr $failed + 1`
26930fi
26931
26932
cristy8b350f62009-11-15 23:12:43 +000026933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000026934$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026935if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026936 $as_echo_n "(cached) " >&6
26937else
26938 ac_check_lib_save_LIBS=$LIBS
26939LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026941/* end confdefs.h. */
26942
26943/* Override any GCC internal prototype to avoid an error.
26944 Use char because int might match the return type of a GCC
26945 builtin and then its argument prototype would still apply. */
26946#ifdef __cplusplus
26947extern "C"
26948#endif
26949char png_get_io_ptr ();
26950int
26951main ()
26952{
26953return png_get_io_ptr ();
26954 ;
26955 return 0;
26956}
26957_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026958if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026959 ac_cv_lib_png_png_get_io_ptr=yes
26960else
cristy8b350f62009-11-15 23:12:43 +000026961 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000026962fi
cristy8b350f62009-11-15 23:12:43 +000026963rm -f core conftest.err conftest.$ac_objext \
26964 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026965LIBS=$ac_check_lib_save_LIBS
26966fi
cristy8b350f62009-11-15 23:12:43 +000026967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000026968$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026969if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026970 passed=`expr $passed + 1`
26971else
26972 failed=`expr $failed + 1`
26973fi
26974
cristy8b350f62009-11-15 23:12:43 +000026975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026976$as_echo_n "checking if PNG package is complete... " >&6; }
26977 if test $passed -gt 0; then
26978 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026980$as_echo "no -- some components failed test" >&6; }
26981 have_png='no (failed tests)'
26982 else
26983 PNG_LIBS='-lpng'
26984 LIBS="$PNG_LIBS $LIBS"
26985
cristy8b350f62009-11-15 23:12:43 +000026986$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026987
cristy8b350f62009-11-15 23:12:43 +000026988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026989$as_echo "yes" >&6; }
26990 have_png='yes'
26991 fi
26992 else
cristy8b350f62009-11-15 23:12:43 +000026993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026994$as_echo "no" >&6; }
26995 fi
26996fi
26997 if test "$have_png" = 'yes'; then
26998 PNG_DELEGATE_TRUE=
26999 PNG_DELEGATE_FALSE='#'
27000else
27001 PNG_DELEGATE_TRUE='#'
27002 PNG_DELEGATE_FALSE=
27003fi
27004
27005
27006
27007
27008#
27009# Check for RSVG delegate library.
27010#
27011
27012# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000027013if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027014 withval=$with_rsvg; with_rsvg=$withval
27015else
27016 with_rsvg=$have_x
27017fi
27018
27019
27020if test "$with_rsvg" != 'yes'; then
27021 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
27022fi
27023
27024have_rsvg='no'
27025have_cairo='no'
27026RSVG_CFLAGS=""
27027RSVG_LIBS=""
27028RSVG_PKG=""
27029if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027031$as_echo "-------------------------------------------------------------" >&6; }
27032
27033pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027035$as_echo_n "checking for RSVG... " >&6; }
27036
27037if test -n "$RSVG_CFLAGS"; then
27038 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
27039 elif test -n "$PKG_CONFIG"; then
27040 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027042 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27043 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27045 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027046 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27047else
27048 pkg_failed=yes
27049fi
27050 else
27051 pkg_failed=untried
27052fi
27053if test -n "$RSVG_LIBS"; then
27054 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
27055 elif test -n "$PKG_CONFIG"; then
27056 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027057 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027058 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27059 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27061 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027062 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27063else
27064 pkg_failed=yes
27065fi
27066 else
27067 pkg_failed=untried
27068fi
27069
27070
27071
27072if test $pkg_failed = yes; then
27073
27074if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27075 _pkg_short_errors_supported=yes
27076else
27077 _pkg_short_errors_supported=no
27078fi
27079 if test $_pkg_short_errors_supported = yes; then
27080 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27081 else
27082 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27083 fi
27084 # Put the nasty error message in config.log where it belongs
27085 echo "$RSVG_PKG_ERRORS" >&5
27086
cristy8b350f62009-11-15 23:12:43 +000027087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027088$as_echo "no" >&6; }
27089 have_rsvg=no
27090elif test $pkg_failed = untried; then
27091 have_rsvg=no
27092else
27093 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
27094 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027096$as_echo "yes" >&6; }
27097 have_rsvg=yes
27098fi
cristy8b350f62009-11-15 23:12:43 +000027099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027100$as_echo "" >&6; }
27101
27102pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027104$as_echo_n "checking for CAIRO_SVG... " >&6; }
27105
27106if test -n "$CAIRO_SVG_CFLAGS"; then
27107 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
27108 elif test -n "$PKG_CONFIG"; then
27109 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027110 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027111 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27112 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27114 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027115 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
27116else
27117 pkg_failed=yes
27118fi
27119 else
27120 pkg_failed=untried
27121fi
27122if test -n "$CAIRO_SVG_LIBS"; then
27123 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
27124 elif test -n "$PKG_CONFIG"; then
27125 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027127 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27128 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27130 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027131 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
27132else
27133 pkg_failed=yes
27134fi
27135 else
27136 pkg_failed=untried
27137fi
27138
27139
27140
27141if test $pkg_failed = yes; then
27142
27143if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27144 _pkg_short_errors_supported=yes
27145else
27146 _pkg_short_errors_supported=no
27147fi
27148 if test $_pkg_short_errors_supported = yes; then
27149 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
27150 else
27151 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
27152 fi
27153 # Put the nasty error message in config.log where it belongs
27154 echo "$CAIRO_SVG_PKG_ERRORS" >&5
27155
cristy8b350f62009-11-15 23:12:43 +000027156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027157$as_echo "no" >&6; }
27158 have_cairo=no
27159elif test $pkg_failed = untried; then
27160 have_cairo=no
27161else
27162 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
27163 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027165$as_echo "yes" >&6; }
27166 have_cairo=yes
27167fi
cristy8b350f62009-11-15 23:12:43 +000027168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027169$as_echo "" >&6; }
27170fi
27171
27172if test "$have_rsvg" = 'yes'; then
27173
cristy8b350f62009-11-15 23:12:43 +000027174$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027175
27176 if test "$with_modules" = 'no'; then
27177 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
27178 fi
27179fi
27180
27181if test "$have_cairo" = 'yes'; then
27182
cristy8b350f62009-11-15 23:12:43 +000027183$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027184
27185 if test "$with_modules" = 'no'; then
27186 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
27187 fi
27188fi
27189
27190 if test "$have_rsvg" = 'yes'; then
27191 RSVG_DELEGATE_TRUE=
27192 RSVG_DELEGATE_FALSE='#'
27193else
27194 RSVG_DELEGATE_TRUE='#'
27195 RSVG_DELEGATE_FALSE=
27196fi
27197
27198 if test "$have_cairo" = 'yes'; then
27199 CAIRO_DELEGATE_TRUE=
27200 CAIRO_DELEGATE_FALSE='#'
27201else
27202 CAIRO_DELEGATE_TRUE='#'
27203 CAIRO_DELEGATE_FALSE=
27204fi
27205
27206
27207
27208
27209
27210#
27211# Check for TIFF delegate library.
27212#
27213
27214# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000027215if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027216 withval=$with_tiff; with_tiff=$withval
27217else
27218 with_tiff='yes'
27219fi
27220
27221
27222if test "$with_tiff" != 'yes'; then
27223 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27224fi
27225
27226have_tiff='no'
27227TIFF_LIBS=''
27228if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027230$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027232$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027234$as_echo "" >&6; }
27235 failed=0
27236 passed=0
cristy8b350f62009-11-15 23:12:43 +000027237 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27238if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027239 passed=`expr $passed + 1`
27240else
27241 failed=`expr $failed + 1`
27242fi
27243
27244
cristy8b350f62009-11-15 23:12:43 +000027245 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27246if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027247 passed=`expr $passed + 1`
27248else
27249 failed=`expr $failed + 1`
27250fi
27251
27252
cristy8b350f62009-11-15 23:12:43 +000027253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027254$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027255if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027256 $as_echo_n "(cached) " >&6
27257else
27258 ac_check_lib_save_LIBS=$LIBS
27259LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027261/* end confdefs.h. */
27262
27263/* Override any GCC internal prototype to avoid an error.
27264 Use char because int might match the return type of a GCC
27265 builtin and then its argument prototype would still apply. */
27266#ifdef __cplusplus
27267extern "C"
27268#endif
27269char TIFFOpen ();
27270int
27271main ()
27272{
27273return TIFFOpen ();
27274 ;
27275 return 0;
27276}
27277_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027278if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027279 ac_cv_lib_tiff_TIFFOpen=yes
27280else
cristy8b350f62009-11-15 23:12:43 +000027281 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027282fi
cristy8b350f62009-11-15 23:12:43 +000027283rm -f core conftest.err conftest.$ac_objext \
27284 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027285LIBS=$ac_check_lib_save_LIBS
27286fi
cristy8b350f62009-11-15 23:12:43 +000027287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027288$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027289if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027290 passed=`expr $passed + 1`
27291else
27292 failed=`expr $failed + 1`
27293fi
27294
cristy8b350f62009-11-15 23:12:43 +000027295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027296$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027297if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027298 $as_echo_n "(cached) " >&6
27299else
27300 ac_check_lib_save_LIBS=$LIBS
27301LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027303/* end confdefs.h. */
27304
27305/* Override any GCC internal prototype to avoid an error.
27306 Use char because int might match the return type of a GCC
27307 builtin and then its argument prototype would still apply. */
27308#ifdef __cplusplus
27309extern "C"
27310#endif
27311char TIFFClientOpen ();
27312int
27313main ()
27314{
27315return TIFFClientOpen ();
27316 ;
27317 return 0;
27318}
27319_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027320if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027321 ac_cv_lib_tiff_TIFFClientOpen=yes
27322else
cristy8b350f62009-11-15 23:12:43 +000027323 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027324fi
cristy8b350f62009-11-15 23:12:43 +000027325rm -f core conftest.err conftest.$ac_objext \
27326 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027327LIBS=$ac_check_lib_save_LIBS
27328fi
cristy8b350f62009-11-15 23:12:43 +000027329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027330$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027331if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027332 passed=`expr $passed + 1`
27333else
27334 failed=`expr $failed + 1`
27335fi
27336
cristy8b350f62009-11-15 23:12:43 +000027337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027338$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027339if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027340 $as_echo_n "(cached) " >&6
27341else
27342 ac_check_lib_save_LIBS=$LIBS
27343LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027345/* end confdefs.h. */
27346
27347/* Override any GCC internal prototype to avoid an error.
27348 Use char because int might match the return type of a GCC
27349 builtin and then its argument prototype would still apply. */
27350#ifdef __cplusplus
27351extern "C"
27352#endif
27353char TIFFIsByteSwapped ();
27354int
27355main ()
27356{
27357return TIFFIsByteSwapped ();
27358 ;
27359 return 0;
27360}
27361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027362if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027363 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
27364else
cristy8b350f62009-11-15 23:12:43 +000027365 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000027366fi
cristy8b350f62009-11-15 23:12:43 +000027367rm -f core conftest.err conftest.$ac_objext \
27368 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027369LIBS=$ac_check_lib_save_LIBS
27370fi
cristy8b350f62009-11-15 23:12:43 +000027371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000027372$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027373if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027374 passed=`expr $passed + 1`
27375else
27376 failed=`expr $failed + 1`
27377fi
27378
cristy8b350f62009-11-15 23:12:43 +000027379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027380$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027381if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027382 $as_echo_n "(cached) " >&6
27383else
27384 ac_check_lib_save_LIBS=$LIBS
27385LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027387/* end confdefs.h. */
27388
27389/* Override any GCC internal prototype to avoid an error.
27390 Use char because int might match the return type of a GCC
27391 builtin and then its argument prototype would still apply. */
27392#ifdef __cplusplus
27393extern "C"
27394#endif
27395char TIFFReadRGBATile ();
27396int
27397main ()
27398{
27399return TIFFReadRGBATile ();
27400 ;
27401 return 0;
27402}
27403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027404if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027405 ac_cv_lib_tiff_TIFFReadRGBATile=yes
27406else
cristy8b350f62009-11-15 23:12:43 +000027407 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000027408fi
cristy8b350f62009-11-15 23:12:43 +000027409rm -f core conftest.err conftest.$ac_objext \
27410 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027411LIBS=$ac_check_lib_save_LIBS
27412fi
cristy8b350f62009-11-15 23:12:43 +000027413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000027414$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027415if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027416 passed=`expr $passed + 1`
27417else
27418 failed=`expr $failed + 1`
27419fi
27420
cristy8b350f62009-11-15 23:12:43 +000027421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027422$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027423if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027424 $as_echo_n "(cached) " >&6
27425else
27426 ac_check_lib_save_LIBS=$LIBS
27427LIBS="-ltiff $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 TIFFReadRGBAStrip ();
27438int
27439main ()
27440{
27441return TIFFReadRGBAStrip ();
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_tiff_TIFFReadRGBAStrip=yes
27448else
cristy8b350f62009-11-15 23:12:43 +000027449 ac_cv_lib_tiff_TIFFReadRGBAStrip=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_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000027456$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027457if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027458 passed=`expr $passed + 1`
27459else
27460 failed=`expr $failed + 1`
27461fi
27462
cristy8b350f62009-11-15 23:12:43 +000027463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027464$as_echo_n "checking if TIFF package is complete... " >&6; }
27465 if test $passed -gt 0; then
27466 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027468$as_echo "no -- some components failed test" >&6; }
27469 have_tiff='no (failed tests)'
27470 else
27471 TIFF_LIBS='-ltiff'
27472 LIBS="$TIFF_LIBS $LIBS"
27473
cristy8b350f62009-11-15 23:12:43 +000027474$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027475
cristy8b350f62009-11-15 23:12:43 +000027476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027477$as_echo "yes" >&6; }
27478 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000027479 for ac_header in tiffconf.h
27480do :
27481 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
27482if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027483 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027484#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000027485_ACEOF
27486
27487fi
27488
27489done
27490
cristy8b350f62009-11-15 23:12:43 +000027491 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000027492 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
27493 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000027494do :
27495 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27496ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27497eval as_val=\$$as_ac_var
27498 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027499 cat >>confdefs.h <<_ACEOF
27500#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27501_ACEOF
27502
27503fi
27504done
27505
27506 fi
27507 else
cristy8b350f62009-11-15 23:12:43 +000027508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027509$as_echo "no" >&6; }
27510 fi
27511fi
27512 if test "$have_tiff" = 'yes'; then
27513 TIFF_DELEGATE_TRUE=
27514 TIFF_DELEGATE_FALSE='#'
27515else
27516 TIFF_DELEGATE_TRUE='#'
27517 TIFF_DELEGATE_FALSE=
27518fi
27519
27520
27521
27522
27523#
27524# Set Windows font directory.
27525#
27526
27527# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027528if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027529 withval=$with_windows_font_dir; with_windows_font_dir=$withval
27530else
27531 with_windows_font_dir=''
27532fi
27533
27534if test "$with_windows_font_dir" != '' ; then
27535 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
27536fi
27537
27538
27539#
27540# Check for WMF delegate library.
27541#
27542
27543# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000027544if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027545 withval=$with_wmf; with_wmf=$withval
27546else
27547 with_wmf=$with_modules
27548fi
27549
27550
27551if test "$with_wmf" != 'yes'; then
27552 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
27553fi
27554
27555have_wmf='no'
27556WMF_LIBS=''
27557WMF_LIBS_DEPS=''
27558OLIBS="$LIBS"
27559if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027561$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027563$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027565$as_echo "" >&6; }
27566 have_libwmf='no'
27567 have_libwmflite='no'
27568 have_libwmf_ipa_h='no'
27569
cristy8b350f62009-11-15 23:12:43 +000027570 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
27571"
27572if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027573 have_libwmf_ipa_h='yes'
27574fi
27575
27576
27577 if test "$have_libwmf_ipa_h" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
cristy3ed852e2009-09-05 21:47:34 +000027579$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027580if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027581 $as_echo_n "(cached) " >&6
27582else
27583 ac_check_lib_save_LIBS=$LIBS
27584LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027586/* end confdefs.h. */
27587
27588/* Override any GCC internal prototype to avoid an error.
27589 Use char because int might match the return type of a GCC
27590 builtin and then its argument prototype would still apply. */
27591#ifdef __cplusplus
27592extern "C"
27593#endif
27594char wmf_lite_create ();
27595int
27596main ()
27597{
27598return wmf_lite_create ();
27599 ;
27600 return 0;
27601}
27602_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027603if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027604 ac_cv_lib_wmflite_wmf_lite_create=yes
27605else
cristy8b350f62009-11-15 23:12:43 +000027606 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000027607fi
cristy8b350f62009-11-15 23:12:43 +000027608rm -f core conftest.err conftest.$ac_objext \
27609 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027610LIBS=$ac_check_lib_save_LIBS
27611fi
cristy8b350f62009-11-15 23:12:43 +000027612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027613$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027614if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027615 have_libwmflite='yes'
27616fi
27617
27618 if test "$have_libwmflite" = 'yes'; then
27619
cristy8b350f62009-11-15 23:12:43 +000027620$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027621
27622 WMF_LIBS='-lwmflite'
27623 LIBS="$WMF_LIBS $LIBS"
27624 have_wmf='yes'
27625 else
27626 WMF_LIBS_DEPS=''
27627 WMF_CONFIG_LIBS=`libwmf-config --libs`
27628 for lib in xml2 expat freetype jpeg png z; do
27629 testlib="-l${lib}"
27630 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
27631 done
cristy8b350f62009-11-15 23:12:43 +000027632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
cristy3ed852e2009-09-05 21:47:34 +000027633$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027634if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027635 $as_echo_n "(cached) " >&6
27636else
27637 ac_check_lib_save_LIBS=$LIBS
27638LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027640/* end confdefs.h. */
27641
27642/* Override any GCC internal prototype to avoid an error.
27643 Use char because int might match the return type of a GCC
27644 builtin and then its argument prototype would still apply. */
27645#ifdef __cplusplus
27646extern "C"
27647#endif
27648char wmf_api_create ();
27649int
27650main ()
27651{
27652return wmf_api_create ();
27653 ;
27654 return 0;
27655}
27656_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027657if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027658 ac_cv_lib_wmf_wmf_api_create=yes
27659else
cristy8b350f62009-11-15 23:12:43 +000027660 ac_cv_lib_wmf_wmf_api_create=no
cristy3ed852e2009-09-05 21:47:34 +000027661fi
cristy8b350f62009-11-15 23:12:43 +000027662rm -f core conftest.err conftest.$ac_objext \
27663 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027664LIBS=$ac_check_lib_save_LIBS
27665fi
cristy8b350f62009-11-15 23:12:43 +000027666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027667$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027668if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027669 have_libwmf='yes'
27670fi
27671
27672 if test "$have_libwmf" = 'yes'; then
27673
cristy8b350f62009-11-15 23:12:43 +000027674$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027675
27676 WMF_LIBS='-lwmf'
27677 LIBS="$WMF_LIBS $LIBS"
27678 have_wmf='yes'
27679 else
cristy8b350f62009-11-15 23:12:43 +000027680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027681$as_echo "no -- some components failed test" >&6; }
27682 have_wmf='no (failed tests)'
27683 have_wmflite='no (failed tests)'
27684 LIBS="$OLIBS"
27685 WMF_LIBS=''
27686 fi
27687 fi
27688 fi
cristy8b350f62009-11-15 23:12:43 +000027689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027690$as_echo_n "checking if WMF package is complete... " >&6; }
27691 if test "$have_wmf" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027693$as_echo "yes" >&6; }
27694 else
cristy8b350f62009-11-15 23:12:43 +000027695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027696$as_echo "no" >&6; }
27697 fi
27698fi
27699 if test "$have_wmf" = 'yes'; then
27700 WMF_DELEGATE_TRUE=
27701 WMF_DELEGATE_FALSE='#'
27702else
27703 WMF_DELEGATE_TRUE='#'
27704 WMF_DELEGATE_FALSE=
27705fi
27706
27707
27708
27709
27710
27711#
27712# Check for XML delegate library.
27713#
27714
27715# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000027716if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027717 withval=$with_xml; with_xml=$withval
27718else
27719 with_xml=$have_x
27720fi
27721
27722
27723if test "$with_xml" != 'yes' ; then
27724 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
27725fi
27726
27727have_xml='no'
27728XML_LIBS=''
27729if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027731$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000027733$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027735$as_echo "" >&6; }
27736 PERSIST_LDFLAGS=$LDFLAGS
27737 PERSIST_CPPFLAGS=$CPPFLAGS
27738 xml2_config=''
27739 for ac_prog in xml2-config
27740do
27741 # Extract the first word of "$ac_prog", so it can be a program name with args.
27742set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027744$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027745if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027746 $as_echo_n "(cached) " >&6
27747else
27748 if test -n "$xml2_config"; then
27749 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
27750else
27751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27752for as_dir in $PATH
27753do
27754 IFS=$as_save_IFS
27755 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027756 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27758 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027760 break 2
27761 fi
27762done
cristy8b350f62009-11-15 23:12:43 +000027763 done
cristy3ed852e2009-09-05 21:47:34 +000027764IFS=$as_save_IFS
27765
27766fi
27767fi
27768xml2_config=$ac_cv_prog_xml2_config
27769if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000027770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027771$as_echo "$xml2_config" >&6; }
27772else
cristy8b350f62009-11-15 23:12:43 +000027773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027774$as_echo "no" >&6; }
27775fi
27776
27777
27778 test -n "$xml2_config" && break
27779done
27780 if test -n "$xml2_config"; then
27781 # Debian installs libxml headers under /usr/include/libxml2/libxml with
27782 # the shared library installed under /usr/lib, whereas the package
27783 # installs itself under $prefix/libxml and $prefix/lib.
27784 xml2_prefix=`xml2-config --prefix`
27785 if test -d "${xml2_prefix}/include/libxml2"; then
27786 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
27787 fi
27788 if test "${xml2_prefix}" != '/usr'; then
27789 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
27790 fi
27791 fi
27792 failed=0
27793 passed=0
cristy8b350f62009-11-15 23:12:43 +000027794 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
27795if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027796 passed=`expr $passed + 1`
27797else
27798 failed=`expr $failed + 1`
27799fi
27800
27801
cristy8b350f62009-11-15 23:12:43 +000027802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027803$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027804if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027805 $as_echo_n "(cached) " >&6
27806else
27807 ac_check_lib_save_LIBS=$LIBS
27808LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027810/* end confdefs.h. */
27811
27812/* Override any GCC internal prototype to avoid an error.
27813 Use char because int might match the return type of a GCC
27814 builtin and then its argument prototype would still apply. */
27815#ifdef __cplusplus
27816extern "C"
27817#endif
27818char xmlParseExternalEntity ();
27819int
27820main ()
27821{
27822return xmlParseExternalEntity ();
27823 ;
27824 return 0;
27825}
27826_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027827if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027828 ac_cv_lib_xml2_xmlParseExternalEntity=yes
27829else
cristy8b350f62009-11-15 23:12:43 +000027830 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000027831fi
cristy8b350f62009-11-15 23:12:43 +000027832rm -f core conftest.err conftest.$ac_objext \
27833 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027834LIBS=$ac_check_lib_save_LIBS
27835fi
cristy8b350f62009-11-15 23:12:43 +000027836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000027837$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027838if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027839 passed=`expr $passed + 1`
27840else
27841 failed=`expr $failed + 1`
27842fi
27843
cristy8b350f62009-11-15 23:12:43 +000027844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027845$as_echo_n "checking if XML package is complete... " >&6; }
27846 if test $passed -gt 0; then
27847 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027849$as_echo "no -- some components failed test" >&6; }
27850 have_xml='no (failed tests)'
27851 LDFLAGS="$PERSIST_LDFLAGS"
27852 CPPFLAGS="$PERSIST_CPPFLAGS"
27853 else
27854 XML_LIBS='-lxml2'
27855 LIBS="$XML_LIBS $LIBS"
27856
cristy8b350f62009-11-15 23:12:43 +000027857$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027858
cristy8b350f62009-11-15 23:12:43 +000027859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027860$as_echo "yes" >&6; }
27861 have_xml='yes'
27862 fi
27863 else
cristy8b350f62009-11-15 23:12:43 +000027864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027865$as_echo "no" >&6; }
27866 fi
27867fi
27868 if test "$have_xml" = 'yes'; then
27869 XML_DELEGATE_TRUE=
27870 XML_DELEGATE_FALSE='#'
27871else
27872 XML_DELEGATE_TRUE='#'
27873 XML_DELEGATE_FALSE=
27874fi
27875
27876
27877
27878
27879# Substitute compiler name to build/link PerlMagick
27880#
27881
27882
27883#
27884# Configure install Paths
27885#
27886
27887# Subdirectory under lib to place ImageMagick lib files
27888LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27889
27890cat >>confdefs.h <<_ACEOF
27891#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
27892_ACEOF
27893
27894
27895# Path to ImageMagick bin directory
27896EXECUTABLE_PATH="${BIN_DIR}"
27897DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
27898case "${build_os}" in
27899 mingw* )
27900 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
27901 ;;
27902esac
27903
27904cat >>confdefs.h <<_ACEOF
27905#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
27906_ACEOF
27907
27908
27909
27910# Path to ImageMagick lib
27911LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
27912DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
27913case "${build_os}" in
27914 mingw* )
27915 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
27916 ;;
27917esac
27918
27919cat >>confdefs.h <<_ACEOF
27920#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
27921_ACEOF
27922
27923
27924
27925# Subdirectory under lib to place ImageMagick configuration files
27926CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27927
27928cat >>confdefs.h <<_ACEOF
27929#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
27930_ACEOF
27931
27932CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27933DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27934case "${build_os}" in
27935 mingw* )
27936 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
27937 ;;
27938esac
27939
27940cat >>confdefs.h <<_ACEOF
27941#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
27942_ACEOF
27943
27944
27945
27946#
27947# Subdirectory under lib to place ImageMagick coder module files
27948CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
27949
27950cat >>confdefs.h <<_ACEOF
27951#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
27952_ACEOF
27953
27954CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
27955DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
27956case "${build_os}" in
27957 mingw* )
27958 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
27959 ;;
27960esac
27961
27962cat >>confdefs.h <<_ACEOF
27963#define CODER_PATH "$DEFINE_CODER_PATH"
27964_ACEOF
27965
27966
27967
27968#
27969# Subdirectory under lib to place ImageMagick filter module files
27970FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
27971
27972cat >>confdefs.h <<_ACEOF
27973#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
27974_ACEOF
27975
27976FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
27977DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
27978case "${build_os}" in
27979 mingw* )
27980 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
27981 ;;
27982esac
27983
27984cat >>confdefs.h <<_ACEOF
27985#define FILTER_PATH "$DEFINE_FILTER_PATH"
27986_ACEOF
27987
27988
27989
27990#
27991# Path to ImageMagick documentation files
27992DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27993DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
27994DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
27995case "${build_os}" in
27996 mingw* )
27997 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
27998 ;;
27999esac
28000
28001cat >>confdefs.h <<_ACEOF
28002#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28003_ACEOF
28004
28005
28006
28007#
28008# Path to ImageMagick share files
28009SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28010SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28011DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28012case "${build_os}" in
28013 mingw* )
28014 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28015 ;;
28016esac
28017
28018cat >>confdefs.h <<_ACEOF
28019#define SHARE_PATH "$DEFINE_SHARE_PATH"
28020_ACEOF
28021
28022
28023
28024# Subdirectory under share to place ImageMagick configuration files
28025SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28026
28027cat >>confdefs.h <<_ACEOF
28028#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28029_ACEOF
28030
28031SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28032DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28033case "${build_os}" in
28034 mingw* )
28035 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28036 ;;
28037esac
28038
28039cat >>confdefs.h <<_ACEOF
28040#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28041_ACEOF
28042
28043
28044
28045#
28046# program_transform_name is formed for use in a Makefile, so create a
28047# modified version for use in a shell script.
28048configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28049
28050# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000028051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028052$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028054$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028056$as_echo "" >&6; }
28057AutotraceDecodeDelegateDefault='autotrace'
28058AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000028059BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000028060BZIPDelegateDefault='bzip2'
28061BrowseDelegateDefault='xdg-open'
28062CGMDecodeDelegateDefault='ralcgm'
28063CatDelegateDefault='cat'
28064DNGDecodeDelegateDefault='ufraw-batch'
28065GVCDecodeDelegateDefault='dot'
28066DVIDecodeDelegateDefault='dvips'
28067EchoDelegateDefault='echo'
28068EditorDelegateDefault='xterm'
28069FIGDecodeDelegateDefault='fig2dev'
28070ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
28071DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
28072MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
28073GnuplotDecodeDelegateDefault='gnuplot'
28074HDRDecodeDelegateDefault='ra_pfm'
28075HPGLDecodeDelegateDefault='hp2xx'
28076HTMLDecodeDelegateDefault='html2ps'
28077ILBMDecodeDelegateDefault='ilbmtoppm'
28078ILBMEncodeDelegateDefault='ppmtoilbm'
28079LPDelegateDefault='lp'
28080LPRDelegateDefault='lpr'
28081LZWDecodeDelegateDefault='uncompress'
28082LZWEncodeDelegateDefault='compress'
28083LaunchDelegateDefault='gimp'
28084MANDelegateDefault='groff'
28085MPEGDecodeDelegateDefault='ffmpeg'
28086MPEGEncodeDelegateDefault='ffmpeg'
28087MVDelegateDefault='mv'
28088PCLDelegateDefault='pcl6'
28089PGPDecodeDelegateDefault='pgpv'
28090POVDelegateDefault='povray'
28091if test "$native_win32_build" = 'yes'; then
28092 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000028093elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028094 PSDelegateDefault='gsc'
28095else
28096 PSDelegateDefault='gs'
28097fi
28098RLEEncodeDelegateDefault='rawtorle'
28099RMDelegateDefault='rm'
28100SCANDecodeDelegateDefault='scanimage'
28101TXTDelegateDefault='enscript'
28102WMFDecodeDelegateDefault='wmf2eps'
28103WWWDecodeDelegateDefault='curl'
28104XPSDelegateDefault='gxps'
28105ZipDelegateDefault='gzip'
28106
28107# Search for delegates
28108# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
28109set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028111$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028112if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028113 $as_echo_n "(cached) " >&6
28114else
28115 case $AutotraceDecodeDelegate in
28116 [\\/]* | ?:[\\/]*)
28117 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
28118 ;;
28119 *)
28120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28121for as_dir in $PATH
28122do
28123 IFS=$as_save_IFS
28124 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028125 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28127 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028129 break 2
28130 fi
28131done
cristy8b350f62009-11-15 23:12:43 +000028132 done
cristy3ed852e2009-09-05 21:47:34 +000028133IFS=$as_save_IFS
28134
28135 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
28136 ;;
28137esac
28138fi
28139AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
28140if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028142$as_echo "$AutotraceDecodeDelegate" >&6; }
28143else
cristy8b350f62009-11-15 23:12:43 +000028144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028145$as_echo "no" >&6; }
28146fi
28147
28148
28149# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
28150set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028152$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028153if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028154 $as_echo_n "(cached) " >&6
28155else
28156 case $AVIDecodeDelegate in
28157 [\\/]* | ?:[\\/]*)
28158 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
28159 ;;
28160 *)
28161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28162for as_dir in $PATH
28163do
28164 IFS=$as_save_IFS
28165 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028166 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28168 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028170 break 2
28171 fi
28172done
cristy8b350f62009-11-15 23:12:43 +000028173 done
cristy3ed852e2009-09-05 21:47:34 +000028174IFS=$as_save_IFS
28175
28176 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
28177 ;;
28178esac
28179fi
28180AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
28181if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028183$as_echo "$AVIDecodeDelegate" >&6; }
28184else
cristy8b350f62009-11-15 23:12:43 +000028185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028186$as_echo "no" >&6; }
28187fi
28188
28189
28190# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
28191set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028193$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028194if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028195 $as_echo_n "(cached) " >&6
28196else
28197 case $BlenderDecodeDelegate in
28198 [\\/]* | ?:[\\/]*)
28199 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
28200 ;;
28201 *)
28202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28203for as_dir in $PATH
28204do
28205 IFS=$as_save_IFS
28206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28209 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028211 break 2
28212 fi
28213done
cristy8b350f62009-11-15 23:12:43 +000028214 done
cristy3ed852e2009-09-05 21:47:34 +000028215IFS=$as_save_IFS
28216
28217 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28218 ;;
28219esac
28220fi
28221BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28222if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028224$as_echo "$BlenderDecodeDelegate" >&6; }
28225else
cristy8b350f62009-11-15 23:12:43 +000028226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028227$as_echo "no" >&6; }
28228fi
28229
28230
28231# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28232set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028234$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028235if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028236 $as_echo_n "(cached) " >&6
28237else
28238 case $BZIPDelegate in
28239 [\\/]* | ?:[\\/]*)
28240 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28241 ;;
28242 *)
28243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28244for as_dir in $PATH
28245do
28246 IFS=$as_save_IFS
28247 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028248 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28250 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028252 break 2
28253 fi
28254done
cristy8b350f62009-11-15 23:12:43 +000028255 done
cristy3ed852e2009-09-05 21:47:34 +000028256IFS=$as_save_IFS
28257
28258 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28259 ;;
28260esac
28261fi
28262BZIPDelegate=$ac_cv_path_BZIPDelegate
28263if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028265$as_echo "$BZIPDelegate" >&6; }
28266else
cristy8b350f62009-11-15 23:12:43 +000028267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028268$as_echo "no" >&6; }
28269fi
28270
28271
28272# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28273set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028275$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028276if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028277 $as_echo_n "(cached) " >&6
28278else
28279 case $BrowseDelegate in
28280 [\\/]* | ?:[\\/]*)
28281 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28282 ;;
28283 *)
28284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28285for as_dir in $PATH
28286do
28287 IFS=$as_save_IFS
28288 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28291 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028293 break 2
28294 fi
28295done
cristy8b350f62009-11-15 23:12:43 +000028296 done
cristy3ed852e2009-09-05 21:47:34 +000028297IFS=$as_save_IFS
28298
28299 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28300 ;;
28301esac
28302fi
28303BrowseDelegate=$ac_cv_path_BrowseDelegate
28304if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028306$as_echo "$BrowseDelegate" >&6; }
28307else
cristy8b350f62009-11-15 23:12:43 +000028308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028309$as_echo "no" >&6; }
28310fi
28311
28312
28313# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
28314set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028316$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028317if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028318 $as_echo_n "(cached) " >&6
28319else
28320 case $CGMDecodeDelegate in
28321 [\\/]* | ?:[\\/]*)
28322 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
28323 ;;
28324 *)
28325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28326for as_dir in $PATH
28327do
28328 IFS=$as_save_IFS
28329 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28332 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028334 break 2
28335 fi
28336done
cristy8b350f62009-11-15 23:12:43 +000028337 done
cristy3ed852e2009-09-05 21:47:34 +000028338IFS=$as_save_IFS
28339
28340 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
28341 ;;
28342esac
28343fi
28344CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
28345if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028347$as_echo "$CGMDecodeDelegate" >&6; }
28348else
cristy8b350f62009-11-15 23:12:43 +000028349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028350$as_echo "no" >&6; }
28351fi
28352
28353
28354# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
28355set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028357$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028358if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028359 $as_echo_n "(cached) " >&6
28360else
28361 case $CatDelegate in
28362 [\\/]* | ?:[\\/]*)
28363 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
28364 ;;
28365 *)
28366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28367for as_dir in $PATH
28368do
28369 IFS=$as_save_IFS
28370 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028371 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28373 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028375 break 2
28376 fi
28377done
cristy8b350f62009-11-15 23:12:43 +000028378 done
cristy3ed852e2009-09-05 21:47:34 +000028379IFS=$as_save_IFS
28380
28381 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
28382 ;;
28383esac
28384fi
28385CatDelegate=$ac_cv_path_CatDelegate
28386if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028388$as_echo "$CatDelegate" >&6; }
28389else
cristy8b350f62009-11-15 23:12:43 +000028390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028391$as_echo "no" >&6; }
28392fi
28393
28394
28395# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
28396set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028398$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028399if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028400 $as_echo_n "(cached) " >&6
28401else
28402 case $DNGDecodeDelegate in
28403 [\\/]* | ?:[\\/]*)
28404 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
28405 ;;
28406 *)
28407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28408for as_dir in $PATH
28409do
28410 IFS=$as_save_IFS
28411 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028412 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28414 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028416 break 2
28417 fi
28418done
cristy8b350f62009-11-15 23:12:43 +000028419 done
cristy3ed852e2009-09-05 21:47:34 +000028420IFS=$as_save_IFS
28421
28422 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
28423 ;;
28424esac
28425fi
28426DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
28427if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028429$as_echo "$DNGDecodeDelegate" >&6; }
28430else
cristy8b350f62009-11-15 23:12:43 +000028431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028432$as_echo "no" >&6; }
28433fi
28434
28435
28436# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
28437set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028439$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028440if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028441 $as_echo_n "(cached) " >&6
28442else
28443 case $GVCDecodeDelegate in
28444 [\\/]* | ?:[\\/]*)
28445 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
28446 ;;
28447 *)
28448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28449for as_dir in $PATH
28450do
28451 IFS=$as_save_IFS
28452 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028453 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28455 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028457 break 2
28458 fi
28459done
cristy8b350f62009-11-15 23:12:43 +000028460 done
cristy3ed852e2009-09-05 21:47:34 +000028461IFS=$as_save_IFS
28462
28463 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
28464 ;;
28465esac
28466fi
28467GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
28468if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028470$as_echo "$GVCDecodeDelegate" >&6; }
28471else
cristy8b350f62009-11-15 23:12:43 +000028472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028473$as_echo "no" >&6; }
28474fi
28475
28476
28477# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
28478set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028480$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028481if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028482 $as_echo_n "(cached) " >&6
28483else
28484 case $DVIDecodeDelegate in
28485 [\\/]* | ?:[\\/]*)
28486 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
28487 ;;
28488 *)
28489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28490for as_dir in $PATH
28491do
28492 IFS=$as_save_IFS
28493 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028494 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28496 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028498 break 2
28499 fi
28500done
cristy8b350f62009-11-15 23:12:43 +000028501 done
cristy3ed852e2009-09-05 21:47:34 +000028502IFS=$as_save_IFS
28503
28504 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
28505 ;;
28506esac
28507fi
28508DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
28509if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028511$as_echo "$DVIDecodeDelegate" >&6; }
28512else
cristy8b350f62009-11-15 23:12:43 +000028513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028514$as_echo "no" >&6; }
28515fi
28516
28517
28518# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
28519set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028521$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028522if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028523 $as_echo_n "(cached) " >&6
28524else
28525 case $EchoDelegate in
28526 [\\/]* | ?:[\\/]*)
28527 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
28528 ;;
28529 *)
28530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28531for as_dir in $PATH
28532do
28533 IFS=$as_save_IFS
28534 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028535 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28537 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028539 break 2
28540 fi
28541done
cristy8b350f62009-11-15 23:12:43 +000028542 done
cristy3ed852e2009-09-05 21:47:34 +000028543IFS=$as_save_IFS
28544
28545 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
28546 ;;
28547esac
28548fi
28549EchoDelegate=$ac_cv_path_EchoDelegate
28550if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028552$as_echo "$EchoDelegate" >&6; }
28553else
cristy8b350f62009-11-15 23:12:43 +000028554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028555$as_echo "no" >&6; }
28556fi
28557
28558
28559# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
28560set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028562$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028563if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028564 $as_echo_n "(cached) " >&6
28565else
28566 case $EditorDelegate in
28567 [\\/]* | ?:[\\/]*)
28568 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
28569 ;;
28570 *)
28571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28572for as_dir in $PATH
28573do
28574 IFS=$as_save_IFS
28575 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028576 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28578 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028580 break 2
28581 fi
28582done
cristy8b350f62009-11-15 23:12:43 +000028583 done
cristy3ed852e2009-09-05 21:47:34 +000028584IFS=$as_save_IFS
28585
28586 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
28587 ;;
28588esac
28589fi
28590EditorDelegate=$ac_cv_path_EditorDelegate
28591if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028593$as_echo "$EditorDelegate" >&6; }
28594else
cristy8b350f62009-11-15 23:12:43 +000028595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028596$as_echo "no" >&6; }
28597fi
28598
28599
28600# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
28601set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028603$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028604if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028605 $as_echo_n "(cached) " >&6
28606else
28607 case $FIGDecodeDelegate in
28608 [\\/]* | ?:[\\/]*)
28609 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
28610 ;;
28611 *)
28612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28613for as_dir in $PATH
28614do
28615 IFS=$as_save_IFS
28616 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028617 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28619 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028621 break 2
28622 fi
28623done
cristy8b350f62009-11-15 23:12:43 +000028624 done
cristy3ed852e2009-09-05 21:47:34 +000028625IFS=$as_save_IFS
28626
28627 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
28628 ;;
28629esac
28630fi
28631FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
28632if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028634$as_echo "$FIGDecodeDelegate" >&6; }
28635else
cristy8b350f62009-11-15 23:12:43 +000028636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028637$as_echo "no" >&6; }
28638fi
28639
28640
28641# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
28642set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028644$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028645if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028646 $as_echo_n "(cached) " >&6
28647else
28648 case $ConvertDelegate in
28649 [\\/]* | ?:[\\/]*)
28650 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
28651 ;;
28652 *)
28653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28654for as_dir in $PATH
28655do
28656 IFS=$as_save_IFS
28657 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028658 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28660 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028662 break 2
28663 fi
28664done
cristy8b350f62009-11-15 23:12:43 +000028665 done
cristy3ed852e2009-09-05 21:47:34 +000028666IFS=$as_save_IFS
28667
28668 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
28669 ;;
28670esac
28671fi
28672ConvertDelegate=$ac_cv_path_ConvertDelegate
28673if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028675$as_echo "$ConvertDelegate" >&6; }
28676else
cristy8b350f62009-11-15 23:12:43 +000028677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028678$as_echo "no" >&6; }
28679fi
28680
28681
28682# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
28683set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028685$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028686if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028687 $as_echo_n "(cached) " >&6
28688else
28689 case $DisplayDelegate in
28690 [\\/]* | ?:[\\/]*)
28691 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
28692 ;;
28693 *)
28694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28695for as_dir in $PATH
28696do
28697 IFS=$as_save_IFS
28698 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28701 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028703 break 2
28704 fi
28705done
cristy8b350f62009-11-15 23:12:43 +000028706 done
cristy3ed852e2009-09-05 21:47:34 +000028707IFS=$as_save_IFS
28708
28709 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
28710 ;;
28711esac
28712fi
28713DisplayDelegate=$ac_cv_path_DisplayDelegate
28714if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028716$as_echo "$DisplayDelegate" >&6; }
28717else
cristy8b350f62009-11-15 23:12:43 +000028718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028719$as_echo "no" >&6; }
28720fi
28721
28722
28723# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
28724set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028726$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028727if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028728 $as_echo_n "(cached) " >&6
28729else
28730 case $MogrifyDelegate in
28731 [\\/]* | ?:[\\/]*)
28732 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
28733 ;;
28734 *)
28735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28736for as_dir in $PATH
28737do
28738 IFS=$as_save_IFS
28739 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028740 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28742 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028744 break 2
28745 fi
28746done
cristy8b350f62009-11-15 23:12:43 +000028747 done
cristy3ed852e2009-09-05 21:47:34 +000028748IFS=$as_save_IFS
28749
28750 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
28751 ;;
28752esac
28753fi
28754MogrifyDelegate=$ac_cv_path_MogrifyDelegate
28755if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028757$as_echo "$MogrifyDelegate" >&6; }
28758else
cristy8b350f62009-11-15 23:12:43 +000028759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028760$as_echo "no" >&6; }
28761fi
28762
28763
28764# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
28765set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028767$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028768if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028769 $as_echo_n "(cached) " >&6
28770else
28771 case $GnuplotDecodeDelegate in
28772 [\\/]* | ?:[\\/]*)
28773 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
28774 ;;
28775 *)
28776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28777for as_dir in $PATH
28778do
28779 IFS=$as_save_IFS
28780 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028781 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28783 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028785 break 2
28786 fi
28787done
cristy8b350f62009-11-15 23:12:43 +000028788 done
cristy3ed852e2009-09-05 21:47:34 +000028789IFS=$as_save_IFS
28790
28791 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
28792 ;;
28793esac
28794fi
28795GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
28796if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028798$as_echo "$GnuplotDecodeDelegate" >&6; }
28799else
cristy8b350f62009-11-15 23:12:43 +000028800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028801$as_echo "no" >&6; }
28802fi
28803
28804
28805# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
28806set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028808$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028809if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028810 $as_echo_n "(cached) " >&6
28811else
28812 case $HDRDecodeDelegate in
28813 [\\/]* | ?:[\\/]*)
28814 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
28815 ;;
28816 *)
28817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28818for as_dir in $PATH
28819do
28820 IFS=$as_save_IFS
28821 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028822 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28824 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028826 break 2
28827 fi
28828done
cristy8b350f62009-11-15 23:12:43 +000028829 done
cristy3ed852e2009-09-05 21:47:34 +000028830IFS=$as_save_IFS
28831
28832 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
28833 ;;
28834esac
28835fi
28836HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
28837if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028839$as_echo "$HDRDecodeDelegate" >&6; }
28840else
cristy8b350f62009-11-15 23:12:43 +000028841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028842$as_echo "no" >&6; }
28843fi
28844
28845
28846# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
28847set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028849$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028850if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028851 $as_echo_n "(cached) " >&6
28852else
28853 case $HPGLDecodeDelegate in
28854 [\\/]* | ?:[\\/]*)
28855 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
28856 ;;
28857 *)
28858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28859for as_dir in $PATH
28860do
28861 IFS=$as_save_IFS
28862 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028863 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28865 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028867 break 2
28868 fi
28869done
cristy8b350f62009-11-15 23:12:43 +000028870 done
cristy3ed852e2009-09-05 21:47:34 +000028871IFS=$as_save_IFS
28872
28873 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
28874 ;;
28875esac
28876fi
28877HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
28878if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028880$as_echo "$HPGLDecodeDelegate" >&6; }
28881else
cristy8b350f62009-11-15 23:12:43 +000028882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028883$as_echo "no" >&6; }
28884fi
28885
28886
28887# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
28888set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028890$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028891if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028892 $as_echo_n "(cached) " >&6
28893else
28894 case $HTMLDecodeDelegate in
28895 [\\/]* | ?:[\\/]*)
28896 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
28897 ;;
28898 *)
28899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28900for as_dir in $PATH
28901do
28902 IFS=$as_save_IFS
28903 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028904 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28906 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028908 break 2
28909 fi
28910done
cristy8b350f62009-11-15 23:12:43 +000028911 done
cristy3ed852e2009-09-05 21:47:34 +000028912IFS=$as_save_IFS
28913
28914 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
28915 ;;
28916esac
28917fi
28918HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
28919if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028921$as_echo "$HTMLDecodeDelegate" >&6; }
28922else
cristy8b350f62009-11-15 23:12:43 +000028923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028924$as_echo "no" >&6; }
28925fi
28926
28927
28928# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
28929set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028931$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028932if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028933 $as_echo_n "(cached) " >&6
28934else
28935 case $ILBMDecodeDelegate in
28936 [\\/]* | ?:[\\/]*)
28937 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
28938 ;;
28939 *)
28940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28941for as_dir in $PATH
28942do
28943 IFS=$as_save_IFS
28944 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028945 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28947 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028949 break 2
28950 fi
28951done
cristy8b350f62009-11-15 23:12:43 +000028952 done
cristy3ed852e2009-09-05 21:47:34 +000028953IFS=$as_save_IFS
28954
28955 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
28956 ;;
28957esac
28958fi
28959ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
28960if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028962$as_echo "$ILBMDecodeDelegate" >&6; }
28963else
cristy8b350f62009-11-15 23:12:43 +000028964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028965$as_echo "no" >&6; }
28966fi
28967
28968
28969# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
28970set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028972$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028973if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028974 $as_echo_n "(cached) " >&6
28975else
28976 case $ILBMEncodeDelegate in
28977 [\\/]* | ?:[\\/]*)
28978 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
28979 ;;
28980 *)
28981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28982for as_dir in $PATH
28983do
28984 IFS=$as_save_IFS
28985 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028986 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28988 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028990 break 2
28991 fi
28992done
cristy8b350f62009-11-15 23:12:43 +000028993 done
cristy3ed852e2009-09-05 21:47:34 +000028994IFS=$as_save_IFS
28995
28996 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
28997 ;;
28998esac
28999fi
29000ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29001if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029003$as_echo "$ILBMEncodeDelegate" >&6; }
29004else
cristy8b350f62009-11-15 23:12:43 +000029005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029006$as_echo "no" >&6; }
29007fi
29008
29009
29010# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29011set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029013$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029014if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029015 $as_echo_n "(cached) " >&6
29016else
29017 case $LPDelegate in
29018 [\\/]* | ?:[\\/]*)
29019 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
29020 ;;
29021 *)
29022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29023for as_dir in $PATH
29024do
29025 IFS=$as_save_IFS
29026 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029027 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29029 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029031 break 2
29032 fi
29033done
cristy8b350f62009-11-15 23:12:43 +000029034 done
cristy3ed852e2009-09-05 21:47:34 +000029035IFS=$as_save_IFS
29036
29037 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
29038 ;;
29039esac
29040fi
29041LPDelegate=$ac_cv_path_LPDelegate
29042if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029044$as_echo "$LPDelegate" >&6; }
29045else
cristy8b350f62009-11-15 23:12:43 +000029046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029047$as_echo "no" >&6; }
29048fi
29049
29050
29051# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29052set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029054$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029055if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029056 $as_echo_n "(cached) " >&6
29057else
29058 case $LPRDelegate in
29059 [\\/]* | ?:[\\/]*)
29060 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
29061 ;;
29062 *)
29063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29064for as_dir in $PATH
29065do
29066 IFS=$as_save_IFS
29067 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029068 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29070 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029072 break 2
29073 fi
29074done
cristy8b350f62009-11-15 23:12:43 +000029075 done
cristy3ed852e2009-09-05 21:47:34 +000029076IFS=$as_save_IFS
29077
29078 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
29079 ;;
29080esac
29081fi
29082LPRDelegate=$ac_cv_path_LPRDelegate
29083if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029085$as_echo "$LPRDelegate" >&6; }
29086else
cristy8b350f62009-11-15 23:12:43 +000029087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029088$as_echo "no" >&6; }
29089fi
29090
29091
29092# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
29093set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029095$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029096if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029097 $as_echo_n "(cached) " >&6
29098else
29099 case $LZWDecodeDelegate in
29100 [\\/]* | ?:[\\/]*)
29101 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
29102 ;;
29103 *)
29104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29105for as_dir in $PATH
29106do
29107 IFS=$as_save_IFS
29108 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029109 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29111 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029113 break 2
29114 fi
29115done
cristy8b350f62009-11-15 23:12:43 +000029116 done
cristy3ed852e2009-09-05 21:47:34 +000029117IFS=$as_save_IFS
29118
29119 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
29120 ;;
29121esac
29122fi
29123LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
29124if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029126$as_echo "$LZWDecodeDelegate" >&6; }
29127else
cristy8b350f62009-11-15 23:12:43 +000029128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029129$as_echo "no" >&6; }
29130fi
29131
29132
29133# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
29134set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029136$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029137if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029138 $as_echo_n "(cached) " >&6
29139else
29140 case $LZWEncodeDelegate in
29141 [\\/]* | ?:[\\/]*)
29142 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
29143 ;;
29144 *)
29145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29146for as_dir in $PATH
29147do
29148 IFS=$as_save_IFS
29149 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029150 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29152 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029154 break 2
29155 fi
29156done
cristy8b350f62009-11-15 23:12:43 +000029157 done
cristy3ed852e2009-09-05 21:47:34 +000029158IFS=$as_save_IFS
29159
29160 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
29161 ;;
29162esac
29163fi
29164LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
29165if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029167$as_echo "$LZWEncodeDelegate" >&6; }
29168else
cristy8b350f62009-11-15 23:12:43 +000029169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029170$as_echo "no" >&6; }
29171fi
29172
29173
29174# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
29175set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029177$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029178if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029179 $as_echo_n "(cached) " >&6
29180else
29181 case $LaunchDelegate in
29182 [\\/]* | ?:[\\/]*)
29183 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
29184 ;;
29185 *)
29186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29187for as_dir in $PATH
29188do
29189 IFS=$as_save_IFS
29190 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029191 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29193 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029195 break 2
29196 fi
29197done
cristy8b350f62009-11-15 23:12:43 +000029198 done
cristy3ed852e2009-09-05 21:47:34 +000029199IFS=$as_save_IFS
29200
29201 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29202 ;;
29203esac
29204fi
29205LaunchDelegate=$ac_cv_path_LaunchDelegate
29206if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029208$as_echo "$LaunchDelegate" >&6; }
29209else
cristy8b350f62009-11-15 23:12:43 +000029210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029211$as_echo "no" >&6; }
29212fi
29213
29214
29215# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
29216set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029218$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029219if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029220 $as_echo_n "(cached) " >&6
29221else
29222 case $MANDelegate in
29223 [\\/]* | ?:[\\/]*)
29224 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
29225 ;;
29226 *)
29227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29228for as_dir in $PATH
29229do
29230 IFS=$as_save_IFS
29231 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029232 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29234 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029236 break 2
29237 fi
29238done
cristy8b350f62009-11-15 23:12:43 +000029239 done
cristy3ed852e2009-09-05 21:47:34 +000029240IFS=$as_save_IFS
29241
29242 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29243 ;;
29244esac
29245fi
29246MANDelegate=$ac_cv_path_MANDelegate
29247if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029249$as_echo "$MANDelegate" >&6; }
29250else
cristy8b350f62009-11-15 23:12:43 +000029251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029252$as_echo "no" >&6; }
29253fi
29254
29255
29256# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29257set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029259$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029260if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029261 $as_echo_n "(cached) " >&6
29262else
29263 case $MPEGDecodeDelegate in
29264 [\\/]* | ?:[\\/]*)
29265 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29266 ;;
29267 *)
29268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29269for as_dir in $PATH
29270do
29271 IFS=$as_save_IFS
29272 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029273 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29275 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029277 break 2
29278 fi
29279done
cristy8b350f62009-11-15 23:12:43 +000029280 done
cristy3ed852e2009-09-05 21:47:34 +000029281IFS=$as_save_IFS
29282
29283 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29284 ;;
29285esac
29286fi
29287MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29288if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029290$as_echo "$MPEGDecodeDelegate" >&6; }
29291else
cristy8b350f62009-11-15 23:12:43 +000029292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029293$as_echo "no" >&6; }
29294fi
29295
29296
29297# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29298set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029300$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029301if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029302 $as_echo_n "(cached) " >&6
29303else
29304 case $MPEGEncodeDelegate in
29305 [\\/]* | ?:[\\/]*)
29306 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
29307 ;;
29308 *)
29309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29310for as_dir in $PATH
29311do
29312 IFS=$as_save_IFS
29313 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29316 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029318 break 2
29319 fi
29320done
cristy8b350f62009-11-15 23:12:43 +000029321 done
cristy3ed852e2009-09-05 21:47:34 +000029322IFS=$as_save_IFS
29323
29324 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
29325 ;;
29326esac
29327fi
29328MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
29329if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029331$as_echo "$MPEGEncodeDelegate" >&6; }
29332else
cristy8b350f62009-11-15 23:12:43 +000029333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029334$as_echo "no" >&6; }
29335fi
29336
29337
29338# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
29339set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029341$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029342if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029343 $as_echo_n "(cached) " >&6
29344else
29345 case $MVDelegate in
29346 [\\/]* | ?:[\\/]*)
29347 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
29348 ;;
29349 *)
29350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29351for as_dir in $PATH
29352do
29353 IFS=$as_save_IFS
29354 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029355 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29357 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029359 break 2
29360 fi
29361done
cristy8b350f62009-11-15 23:12:43 +000029362 done
cristy3ed852e2009-09-05 21:47:34 +000029363IFS=$as_save_IFS
29364
29365 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
29366 ;;
29367esac
29368fi
29369MVDelegate=$ac_cv_path_MVDelegate
29370if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029372$as_echo "$MVDelegate" >&6; }
29373else
cristy8b350f62009-11-15 23:12:43 +000029374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029375$as_echo "no" >&6; }
29376fi
29377
29378
29379# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
29380set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029382$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029383if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029384 $as_echo_n "(cached) " >&6
29385else
29386 case $PCLDelegate in
29387 [\\/]* | ?:[\\/]*)
29388 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
29389 ;;
29390 *)
29391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29392for as_dir in $PATH
29393do
29394 IFS=$as_save_IFS
29395 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029396 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29398 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029400 break 2
29401 fi
29402done
cristy8b350f62009-11-15 23:12:43 +000029403 done
cristy3ed852e2009-09-05 21:47:34 +000029404IFS=$as_save_IFS
29405
29406 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
29407 ;;
29408esac
29409fi
29410PCLDelegate=$ac_cv_path_PCLDelegate
29411if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029413$as_echo "$PCLDelegate" >&6; }
29414else
cristy8b350f62009-11-15 23:12:43 +000029415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029416$as_echo "no" >&6; }
29417fi
29418
29419
29420# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
29421set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029423$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029424if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029425 $as_echo_n "(cached) " >&6
29426else
29427 case $PGPDecodeDelegate in
29428 [\\/]* | ?:[\\/]*)
29429 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
29430 ;;
29431 *)
29432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29433for as_dir in $PATH
29434do
29435 IFS=$as_save_IFS
29436 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029437 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29439 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029441 break 2
29442 fi
29443done
cristy8b350f62009-11-15 23:12:43 +000029444 done
cristy3ed852e2009-09-05 21:47:34 +000029445IFS=$as_save_IFS
29446
29447 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
29448 ;;
29449esac
29450fi
29451PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
29452if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029454$as_echo "$PGPDecodeDelegate" >&6; }
29455else
cristy8b350f62009-11-15 23:12:43 +000029456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029457$as_echo "no" >&6; }
29458fi
29459
29460
29461# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
29462set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029464$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029465if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029466 $as_echo_n "(cached) " >&6
29467else
29468 case $POVDelegate in
29469 [\\/]* | ?:[\\/]*)
29470 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
29471 ;;
29472 *)
29473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29474for as_dir in $PATH
29475do
29476 IFS=$as_save_IFS
29477 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029478 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29480 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029482 break 2
29483 fi
29484done
cristy8b350f62009-11-15 23:12:43 +000029485 done
cristy3ed852e2009-09-05 21:47:34 +000029486IFS=$as_save_IFS
29487
29488 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
29489 ;;
29490esac
29491fi
29492POVDelegate=$ac_cv_path_POVDelegate
29493if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029495$as_echo "$POVDelegate" >&6; }
29496else
cristy8b350f62009-11-15 23:12:43 +000029497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029498$as_echo "no" >&6; }
29499fi
29500
29501
29502for ac_prog in gsx gsc "$PSDelegateDefault"
29503do
29504 # Extract the first word of "$ac_prog", so it can be a program name with args.
29505set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029507$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029508if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029509 $as_echo_n "(cached) " >&6
29510else
29511 case $PSDelegate in
29512 [\\/]* | ?:[\\/]*)
29513 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
29514 ;;
29515 *)
29516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29517for as_dir in $PATH
29518do
29519 IFS=$as_save_IFS
29520 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029521 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29523 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029525 break 2
29526 fi
29527done
cristy8b350f62009-11-15 23:12:43 +000029528 done
cristy3ed852e2009-09-05 21:47:34 +000029529IFS=$as_save_IFS
29530
29531 ;;
29532esac
29533fi
29534PSDelegate=$ac_cv_path_PSDelegate
29535if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029537$as_echo "$PSDelegate" >&6; }
29538else
cristy8b350f62009-11-15 23:12:43 +000029539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029540$as_echo "no" >&6; }
29541fi
29542
29543
29544 test -n "$PSDelegate" && break
29545done
29546test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
29547
29548# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
29549set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029551$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029552if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029553 $as_echo_n "(cached) " >&6
29554else
29555 case $RLEEncodeDelegate in
29556 [\\/]* | ?:[\\/]*)
29557 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
29558 ;;
29559 *)
29560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29561for as_dir in $PATH
29562do
29563 IFS=$as_save_IFS
29564 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029565 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29567 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029569 break 2
29570 fi
29571done
cristy8b350f62009-11-15 23:12:43 +000029572 done
cristy3ed852e2009-09-05 21:47:34 +000029573IFS=$as_save_IFS
29574
29575 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
29576 ;;
29577esac
29578fi
29579RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
29580if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029582$as_echo "$RLEEncodeDelegate" >&6; }
29583else
cristy8b350f62009-11-15 23:12:43 +000029584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029585$as_echo "no" >&6; }
29586fi
29587
29588
29589# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
29590set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029592$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029593if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029594 $as_echo_n "(cached) " >&6
29595else
29596 case $RMDelegate in
29597 [\\/]* | ?:[\\/]*)
29598 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
29599 ;;
29600 *)
29601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29602for as_dir in $PATH
29603do
29604 IFS=$as_save_IFS
29605 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029606 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29608 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029610 break 2
29611 fi
29612done
cristy8b350f62009-11-15 23:12:43 +000029613 done
cristy3ed852e2009-09-05 21:47:34 +000029614IFS=$as_save_IFS
29615
29616 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
29617 ;;
29618esac
29619fi
29620RMDelegate=$ac_cv_path_RMDelegate
29621if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029623$as_echo "$RMDelegate" >&6; }
29624else
cristy8b350f62009-11-15 23:12:43 +000029625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029626$as_echo "no" >&6; }
29627fi
29628
29629
29630# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
29631set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029633$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029634if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029635 $as_echo_n "(cached) " >&6
29636else
29637 case $SCANDecodeDelegate in
29638 [\\/]* | ?:[\\/]*)
29639 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
29640 ;;
29641 *)
29642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29643for as_dir in $PATH
29644do
29645 IFS=$as_save_IFS
29646 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029647 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29649 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029651 break 2
29652 fi
29653done
cristy8b350f62009-11-15 23:12:43 +000029654 done
cristy3ed852e2009-09-05 21:47:34 +000029655IFS=$as_save_IFS
29656
29657 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
29658 ;;
29659esac
29660fi
29661SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
29662if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029664$as_echo "$SCANDecodeDelegate" >&6; }
29665else
cristy8b350f62009-11-15 23:12:43 +000029666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029667$as_echo "no" >&6; }
29668fi
29669
29670
29671# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
29672set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029674$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029675if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029676 $as_echo_n "(cached) " >&6
29677else
29678 case $TXTDelegate in
29679 [\\/]* | ?:[\\/]*)
29680 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
29681 ;;
29682 *)
29683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29684for as_dir in $PATH
29685do
29686 IFS=$as_save_IFS
29687 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029688 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29690 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029692 break 2
29693 fi
29694done
cristy8b350f62009-11-15 23:12:43 +000029695 done
cristy3ed852e2009-09-05 21:47:34 +000029696IFS=$as_save_IFS
29697
29698 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
29699 ;;
29700esac
29701fi
29702TXTDelegate=$ac_cv_path_TXTDelegate
29703if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029705$as_echo "$TXTDelegate" >&6; }
29706else
cristy8b350f62009-11-15 23:12:43 +000029707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029708$as_echo "no" >&6; }
29709fi
29710
29711
29712# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
29713set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029715$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029716if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029717 $as_echo_n "(cached) " >&6
29718else
29719 case $WMFDecodeDelegate in
29720 [\\/]* | ?:[\\/]*)
29721 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
29722 ;;
29723 *)
29724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29725for as_dir in $PATH
29726do
29727 IFS=$as_save_IFS
29728 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029729 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29731 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029733 break 2
29734 fi
29735done
cristy8b350f62009-11-15 23:12:43 +000029736 done
cristy3ed852e2009-09-05 21:47:34 +000029737IFS=$as_save_IFS
29738
29739 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
29740 ;;
29741esac
29742fi
29743WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
29744if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029746$as_echo "$WMFDecodeDelegate" >&6; }
29747else
cristy8b350f62009-11-15 23:12:43 +000029748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029749$as_echo "no" >&6; }
29750fi
29751
29752
29753# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
29754set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029756$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029757if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029758 $as_echo_n "(cached) " >&6
29759else
29760 case $WWWDecodeDelegate in
29761 [\\/]* | ?:[\\/]*)
29762 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
29763 ;;
29764 *)
29765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29766for as_dir in $PATH
29767do
29768 IFS=$as_save_IFS
29769 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029770 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29772 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029774 break 2
29775 fi
29776done
cristy8b350f62009-11-15 23:12:43 +000029777 done
cristy3ed852e2009-09-05 21:47:34 +000029778IFS=$as_save_IFS
29779
29780 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
29781 ;;
29782esac
29783fi
29784WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
29785if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029787$as_echo "$WWWDecodeDelegate" >&6; }
29788else
cristy8b350f62009-11-15 23:12:43 +000029789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029790$as_echo "no" >&6; }
29791fi
29792
29793
29794# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
29795set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029797$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029798if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029799 $as_echo_n "(cached) " >&6
29800else
29801 case $XPSDelegate in
29802 [\\/]* | ?:[\\/]*)
29803 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
29804 ;;
29805 *)
29806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29807for as_dir in $PATH
29808do
29809 IFS=$as_save_IFS
29810 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029811 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29813 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029815 break 2
29816 fi
29817done
cristy8b350f62009-11-15 23:12:43 +000029818 done
cristy3ed852e2009-09-05 21:47:34 +000029819IFS=$as_save_IFS
29820
29821 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
29822 ;;
29823esac
29824fi
29825XPSDelegate=$ac_cv_path_XPSDelegate
29826if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029828$as_echo "$XPSDelegate" >&6; }
29829else
cristy8b350f62009-11-15 23:12:43 +000029830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029831$as_echo "no" >&6; }
29832fi
29833
29834
29835# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
29836set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029838$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029839if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029840 $as_echo_n "(cached) " >&6
29841else
29842 case $ZipDelegate in
29843 [\\/]* | ?:[\\/]*)
29844 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
29845 ;;
29846 *)
29847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29848for as_dir in $PATH
29849do
29850 IFS=$as_save_IFS
29851 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29854 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029856 break 2
29857 fi
29858done
cristy8b350f62009-11-15 23:12:43 +000029859 done
cristy3ed852e2009-09-05 21:47:34 +000029860IFS=$as_save_IFS
29861
29862 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
29863 ;;
29864esac
29865fi
29866ZipDelegate=$ac_cv_path_ZipDelegate
29867if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029869$as_echo "$ZipDelegate" >&6; }
29870else
cristy8b350f62009-11-15 23:12:43 +000029871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029872$as_echo "no" >&6; }
29873fi
29874
29875
29876
29877# Prefer lpr to lp; lp needs options tacked on.
29878if test "$LPRDelegate" != no; then
29879 PrintDelegate="$LPRDelegate"
29880else
29881 PrintDelegate="$LPDelegate -c -s"
29882fi
29883
29884
29885# Installed ImageMagick utiltity paths
29886ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
29887DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
29888MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
29889
29890# Set delegate booleans
29891have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
29892have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
29893have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
29894have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
29895have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
29896have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
29897have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
29898have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
29899have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
29900have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
29901have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
29902
29903#
29904# Test for font directories
29905#
29906type_include_files=''
29907
29908# Windows
29909windows_font_dir=''
29910if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
29911 windows_font_dir="${with_windows_font_dir}/"
29912fi
29913if test -n "$windows_font_dir"; then
29914 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
29915 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
29916 fi
29917 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
29918 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
29919 fi
29920 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
29921 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
29922 fi
29923fi
29924if test -n "$windows_font_dir"; then
29925 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
29926fi
29927
29928
29929# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000029930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000029931$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
29932ghostscript_font_dir=''
29933if test "${with_gs_font_dir}" != 'default'; then
29934 ghostscript_font_dir="${with_gs_font_dir}/"
29935else
29936 if test "${native_win32_build}" = 'yes'; then
29937 # Native Windows Build
29938 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
29939 if test -f "${font_dir}a010013l.pfb"; then
29940 ghostscript_font_dir="$font_dir"
29941 break 1
29942 fi
29943 done
29944 if test "${PSDelegate}" != 'gswin32c'; then
29945 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
29946 fi
29947 else
29948 # Linux / Mac OS X / Unix Build
29949 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
29950 if test -f "${font_dir}a010013l.pfb"; then
29951 ghostscript_font_dir="${font_dir}"
29952 break 1
29953 fi
29954 done
29955 if test "${ghostscript_font_dir}x" = 'x'; then
29956 if test "$PSDelegate" != 'gs'; then
29957 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
29958 fi
29959 fi
29960 fi
29961fi
29962if test "${ghostscript_font_dir}x" != 'x'; then
29963 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000029964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000029965$as_echo "$ghostscript_font_dir" >&6; }
29966else
cristy8b350f62009-11-15 23:12:43 +000029967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000029968$as_echo "not found!" >&6; };
29969fi
29970
29971case "${build_os}" in
29972 mingw* )
29973 PSDelegate=`$WinPathScript "$PSDelegate" 1`
29974 ;;
29975esac
29976
29977
29978
29979#
29980# Handle case where user doesn't want frozen paths
29981#
29982if test "$with_frozenpaths" != 'yes'; then
29983 # Re-set delegate definitions to default (no paths)
29984 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
29985 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
29986 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
29987 BZIPDelegate="$BZIPDelegateDefault"
29988 BrowseDelegate="$BrowseDelegateDefault"
29989 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
29990 CatDelegate="$CatDelegateDefault"
29991 ConvertDelegate="$ConvertDelegateDefault"
29992 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
29993 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
29994 EchoDelegate="$EchoDelegateDefault"
29995 EditorDelegate="$EditorDelegateDefault"
29996 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
29997 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
29998 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
29999 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
30000 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
30001 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
30002 LPDelegate="$LPDelegateDefault"
30003 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
30004 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
30005 LaunchDelegate="$LaunchDelegateDefault"
30006 MANDelegate="$MANDelegateDefault"
30007 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
30008 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
30009 MVDelegate="$MVDelegateDefault"
30010 MogrifyDelegate="$MogrifyDelegateDefault"
30011 PCLDelegate="$PCLDelegateDefault"
30012 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
30013 POVDelegate="$POVDelegateDefault"
30014 PSDelegate="$PSDelegateDefault"
30015 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
30016 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
30017 RMDelegate="$RMDelegateDefault"
30018 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
30019 ShowImageDelegate="$ShowImageDelegateDefault"
30020 TXTDelegate="$TXTDelegateDefault"
30021 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
30022 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
30023 XPSDelegate="$XPSDelegateDefault"
30024 ZipDelegate="$ZipDelegateDefault"
30025fi
30026
30027# Delegate substitutions
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070#
30071# RPM support.
30072#
30073RPM=''
30074for ac_prog in gnutar gtar tar
30075do
30076 # Extract the first word of "$ac_prog", so it can be a program name with args.
30077set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030079$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030080if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030081 $as_echo_n "(cached) " >&6
30082else
30083 if test -n "$TAR"; then
30084 ac_cv_prog_TAR="$TAR" # Let the user override the test.
30085else
30086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30087for as_dir in $PATH
30088do
30089 IFS=$as_save_IFS
30090 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30093 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030095 break 2
30096 fi
30097done
cristy8b350f62009-11-15 23:12:43 +000030098 done
cristy3ed852e2009-09-05 21:47:34 +000030099IFS=$as_save_IFS
30100
30101fi
30102fi
30103TAR=$ac_cv_prog_TAR
30104if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000030105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000030106$as_echo "$TAR" >&6; }
30107else
cristy8b350f62009-11-15 23:12:43 +000030108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030109$as_echo "no" >&6; }
30110fi
30111
30112
30113 test -n "$TAR" && break
30114done
30115
30116for ac_prog in perl
30117do
30118 # Extract the first word of "$ac_prog", so it can be a program name with args.
30119set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030121$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030122if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030123 $as_echo_n "(cached) " >&6
30124else
30125 if test -n "$PERL"; then
30126 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30127else
30128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30129for as_dir in $PATH
30130do
30131 IFS=$as_save_IFS
30132 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30135 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030137 break 2
30138 fi
30139done
cristy8b350f62009-11-15 23:12:43 +000030140 done
cristy3ed852e2009-09-05 21:47:34 +000030141IFS=$as_save_IFS
30142
30143fi
30144fi
30145PERL=$ac_cv_prog_PERL
30146if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030148$as_echo "$PERL" >&6; }
30149else
cristy8b350f62009-11-15 23:12:43 +000030150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030151$as_echo "no" >&6; }
30152fi
30153
30154
30155 test -n "$PERL" && break
30156done
30157
30158for ac_prog in rpmbuild rpm
30159do
30160 # Extract the first word of "$ac_prog", so it can be a program name with args.
30161set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030163$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030164if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030165 $as_echo_n "(cached) " >&6
30166else
30167 if test -n "$RPM"; then
30168 ac_cv_prog_RPM="$RPM" # Let the user override the test.
30169else
30170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30171for as_dir in $PATH
30172do
30173 IFS=$as_save_IFS
30174 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030175 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30177 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030179 break 2
30180 fi
30181done
cristy8b350f62009-11-15 23:12:43 +000030182 done
cristy3ed852e2009-09-05 21:47:34 +000030183IFS=$as_save_IFS
30184
30185fi
30186fi
30187RPM=$ac_cv_prog_RPM
30188if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000030189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000030190$as_echo "$RPM" >&6; }
30191else
cristy8b350f62009-11-15 23:12:43 +000030192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030193$as_echo "no" >&6; }
30194fi
30195
30196
30197 test -n "$RPM" && break
30198done
30199
30200
30201ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30202
30203
30204AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30205
30206
30207AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30208
30209
30210AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30211
30212
30213 if test "x$RPM" != "x" ; then
30214 RPM_DELEGATE_TRUE=
30215 RPM_DELEGATE_FALSE='#'
30216else
30217 RPM_DELEGATE_TRUE='#'
30218 RPM_DELEGATE_FALSE=
30219fi
30220
30221
30222#
30223# 7ZIP support (http://p7zip.sourceforge.net/)
30224#
30225P7ZIP=''
30226for ac_prog in 7za
30227do
30228 # Extract the first word of "$ac_prog", so it can be a program name with args.
30229set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030231$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030232if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030233 $as_echo_n "(cached) " >&6
30234else
30235 if test -n "$P7ZIP"; then
30236 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
30237else
30238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30239for as_dir in $PATH
30240do
30241 IFS=$as_save_IFS
30242 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030243 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30245 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030247 break 2
30248 fi
30249done
cristy8b350f62009-11-15 23:12:43 +000030250 done
cristy3ed852e2009-09-05 21:47:34 +000030251IFS=$as_save_IFS
30252
30253fi
30254fi
30255P7ZIP=$ac_cv_prog_P7ZIP
30256if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030258$as_echo "$P7ZIP" >&6; }
30259else
cristy8b350f62009-11-15 23:12:43 +000030260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030261$as_echo "no" >&6; }
30262fi
30263
30264
30265 test -n "$P7ZIP" && break
30266done
30267
30268
30269 if test "x$P7ZIP" != "x" ; then
30270 P7ZIP_DELEGATE_TRUE=
30271 P7ZIP_DELEGATE_FALSE='#'
30272else
30273 P7ZIP_DELEGATE_TRUE='#'
30274 P7ZIP_DELEGATE_FALSE=
30275fi
30276
30277
30278#
30279# ZIP support (http://www.info-zip.org/Zip.html)
30280#
30281ZIP=''
30282for ac_prog in zip
30283do
30284 # Extract the first word of "$ac_prog", so it can be a program name with args.
30285set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030287$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030288if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030289 $as_echo_n "(cached) " >&6
30290else
30291 if test -n "$ZIP"; then
30292 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
30293else
30294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30295for as_dir in $PATH
30296do
30297 IFS=$as_save_IFS
30298 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030299 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30301 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030303 break 2
30304 fi
30305done
cristy8b350f62009-11-15 23:12:43 +000030306 done
cristy3ed852e2009-09-05 21:47:34 +000030307IFS=$as_save_IFS
30308
30309fi
30310fi
30311ZIP=$ac_cv_prog_ZIP
30312if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030314$as_echo "$ZIP" >&6; }
30315else
cristy8b350f62009-11-15 23:12:43 +000030316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030317$as_echo "no" >&6; }
30318fi
30319
30320
30321 test -n "$ZIP" && break
30322done
30323
30324
30325 if test "x$ZIP" != "x" ; then
30326 ZIP_DELEGATE_TRUE=
30327 ZIP_DELEGATE_FALSE='#'
30328else
30329 ZIP_DELEGATE_TRUE='#'
30330 ZIP_DELEGATE_FALSE=
30331fi
30332
30333
30334#
30335# GhostPCL related configuration.
30336#
30337PCLColorDevice=ppmraw
30338PCLCMYKDevice=bmpsep8
30339PCLMonoDevice=pbmraw
30340if test -z "$PCLVersion"; then
30341 PCLVersion='unknown'
30342fi
30343if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030345$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030347$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030349$as_echo "" >&6; }
30350 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000030351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030352$as_echo_n "checking for pcl color device... " >&6; }
30353 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30354 :
30355 else
30356 PCLColorDevice=ppmraw
30357 fi
cristy8b350f62009-11-15 23:12:43 +000030358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030359$as_echo "$PCLColorDevice" >&6; }
30360
30361 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030363$as_echo_n "checking for pcl CMYK device... " >&6; }
30364 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30365 :
30366 else
30367 PCLCMYKDevice=$PCLColorDevice
30368 fi
cristy8b350f62009-11-15 23:12:43 +000030369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030370$as_echo "$PCLCMYKDevice" >&6; }
30371
30372 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030374$as_echo_n "checking for pcl mono device... " >&6; }
30375 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30376 :
30377 else
30378 PCLMonoDevice=$PCLColorDevice
30379 fi
cristy8b350f62009-11-15 23:12:43 +000030380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030381$as_echo "$PCLMonoDevice" >&6; }
30382fi
30383
30384
30385
30386
30387
30388
30389#
30390# GhostXPS related configuration.
30391#
30392XPSColorDevice=ppmraw
30393XPSCMYKDevice=bmpsep8
30394XPSMonoDevice=pbmraw
30395if test -z "$XPSVersion"; then
30396 XPSVersion='unknown'
30397fi
30398if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030400$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000030402$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030404$as_echo "" >&6; }
30405 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030407$as_echo_n "checking for xps color device... " >&6; }
30408 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30409 :
30410 else
30411 XPSColorDevice=ppmraw
30412 fi
cristy8b350f62009-11-15 23:12:43 +000030413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030414$as_echo "$XPSColorDevice" >&6; }
30415
30416 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030418$as_echo_n "checking for xps CMYK device... " >&6; }
30419 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30420 :
30421 else
30422 XPSCMYKDevice=$XPSColorDevice
30423 fi
cristy8b350f62009-11-15 23:12:43 +000030424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030425$as_echo "$XPSCMYKDevice" >&6; }
30426
30427 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030429$as_echo_n "checking for xps mono device... " >&6; }
30430 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30431 :
30432 else
30433 XPSMonoDevice=$XPSColorDevice
30434 fi
cristy8b350f62009-11-15 23:12:43 +000030435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030436$as_echo "$XPSMonoDevice" >&6; }
30437fi
30438
30439
30440
30441
30442
30443
30444#
30445# Ghostscript related configuration.
30446#
30447if test "$have_png" = 'yes'; then
30448 GSAlphaDevice=pngalpha
30449else
30450 GSAlphaDevice=pnmraw
30451fi
30452GSColorDevice=pnmraw
30453GSCMYKDevice=pam
30454GSMonoDevice=pbmraw
30455GSPDFDevice=pdfwrite
30456GSPSDevice=pswrite
30457GSEPSDevice=epswrite
30458GSVersion='unknown'
30459if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030461$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000030463$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030465$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000030467$as_echo_n "checking for Ghostscript version... " >&6; }
30468 if GSVersion=`$PSDelegate --version`; then
30469 :
30470 else
30471 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
30472 fi
cristy8b350f62009-11-15 23:12:43 +000030473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000030474$as_echo "$GSVersion" >&6; }
30475
30476 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000030477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030478$as_echo_n "checking for gs alpha device... " >&6; }
30479 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30480 :
30481 else
30482 GSAlphaDevice=pnmraw
30483 fi
cristy8b350f62009-11-15 23:12:43 +000030484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030485$as_echo "$GSAlphaDevice" >&6; }
30486
30487 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030489$as_echo_n "checking for gs color device... " >&6; }
30490 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30491 :
30492 else
30493 GSColorDevice=pnmraw
30494 fi
cristy8b350f62009-11-15 23:12:43 +000030495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030496$as_echo "$GSColorDevice" >&6; }
30497
30498 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030500$as_echo_n "checking for gs CMYK device... " >&6; }
30501 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30502 :
30503 else
30504 GSCMYKDevice=bmpsep8
30505 fi
cristy8b350f62009-11-15 23:12:43 +000030506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030507$as_echo "$GSCMYKDevice" >&6; }
30508
30509 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030511$as_echo_n "checking for gs mono device... " >&6; }
30512 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30513 :
30514 else
30515 GSMonoDevice=$GSColorDevice
30516 fi
cristy8b350f62009-11-15 23:12:43 +000030517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030518$as_echo "$GSMonoDevice" >&6; }
30519
30520 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000030521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030522$as_echo_n "checking for gs PDF writing device... " >&6; }
30523 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30524 :
30525 else
30526 GSPDFDevice=nodevice
30527 fi
cristy8b350f62009-11-15 23:12:43 +000030528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030529$as_echo "$GSPDFDevice" >&6; }
30530
30531 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000030532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030533$as_echo_n "checking for gs PS writing device... " >&6; }
30534 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30535 :
30536 else
30537 GSPSDevice=nodevice
30538 fi
cristy8b350f62009-11-15 23:12:43 +000030539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030540$as_echo "$GSPSDevice" >&6; }
30541
30542 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000030543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030544$as_echo_n "checking for gs EPS writing device... " >&6; }
30545 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30546 :
30547 else
30548 GSEPSDevice=nodevice
30549 fi
cristy8b350f62009-11-15 23:12:43 +000030550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030551$as_echo "$GSEPSDevice" >&6; }
30552fi
30553
30554
30555
30556
30557
30558
30559
30560
30561
30562
30563#
30564# PerlMagick-related configuration
30565#
30566
30567# Look for PERL if PerlMagick requested
30568# If name/path of desired PERL interpreter is specified, look for that one first
30569have_perl='no'
30570if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030572$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030574$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030576$as_echo "" >&6; }
30577 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030579$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030580if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030581 $as_echo_n "(cached) " >&6
30582else
30583 ac_cv_path_PERL="$with_perl"
30584fi
cristy8b350f62009-11-15 23:12:43 +000030585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030586$as_echo "$ac_cv_path_PERL" >&6; };
30587 PERL=$ac_cv_path_PERL
30588 have_perl="$ac_cv_path_PERL"
30589 else
30590 for ac_prog in perl perl5
30591do
30592 # Extract the first word of "$ac_prog", so it can be a program name with args.
30593set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030595$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030596if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030597 $as_echo_n "(cached) " >&6
30598else
30599 case $PERL in
30600 [\\/]* | ?:[\\/]*)
30601 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30602 ;;
30603 *)
30604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30605for as_dir in $PATH
30606do
30607 IFS=$as_save_IFS
30608 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30611 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030613 break 2
30614 fi
30615done
cristy8b350f62009-11-15 23:12:43 +000030616 done
cristy3ed852e2009-09-05 21:47:34 +000030617IFS=$as_save_IFS
30618
30619 ;;
30620esac
30621fi
30622PERL=$ac_cv_path_PERL
30623if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030625$as_echo "$PERL" >&6; }
30626else
cristy8b350f62009-11-15 23:12:43 +000030627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030628$as_echo "no" >&6; }
30629fi
30630
30631
30632 test -n "$PERL" && break
30633done
30634 if test "$ac_cv_path_PERL"; then
30635 have_perl="$ac_cv_path_PERL"
30636 fi
30637 fi
30638fi
30639
30640with_perl_static='no'
30641with_perl_dynamic='no'
30642if test "$have_perl" != 'no'; then
30643 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
30644 with_perl_static='yes'
30645 fi
30646 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
30647 with_perl_dynamic='yes'
30648 fi
30649 # Is PERL's MakeMaker new enough to support DESTDIR?
30650 # Make sure we have perl
30651if test -z "$PERL"; then
30652# Extract the first word of "perl", so it can be a program name with args.
30653set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030655$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030656if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030657 $as_echo_n "(cached) " >&6
30658else
30659 if test -n "$PERL"; then
30660 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30661else
30662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30663for as_dir in $PATH
30664do
30665 IFS=$as_save_IFS
30666 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030667 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30669 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000030670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030671 break 2
30672 fi
30673done
cristy8b350f62009-11-15 23:12:43 +000030674 done
cristy3ed852e2009-09-05 21:47:34 +000030675IFS=$as_save_IFS
30676
30677fi
30678fi
30679PERL=$ac_cv_prog_PERL
30680if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030682$as_echo "$PERL" >&6; }
30683else
cristy8b350f62009-11-15 23:12:43 +000030684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030685$as_echo "no" >&6; }
30686fi
30687
30688
30689fi
30690
30691# Check if version of Perl is sufficient
30692ac_perl_version="5.8.1"
30693
30694if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000030695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
cristy3ed852e2009-09-05 21:47:34 +000030696$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
30697 # NB: It would be nice to log the error if there is one, but we cannot rely
30698 # on autoconf internals
30699 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
30700 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000030701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030702$as_echo "no" >&6; };
30703 PERL_SUPPORTS_DESTDIR='no'
30704 else
cristy8b350f62009-11-15 23:12:43 +000030705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030706$as_echo "ok" >&6; };
30707 PERL_SUPPORTS_DESTDIR='yes'
30708 fi
30709else
cristy8b350f62009-11-15 23:12:43 +000030710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030711$as_echo "$as_me: WARNING: could not find perl" >&2;}
30712fi
30713
30714fi
30715 if test "$have_perl" != 'no'; then
30716 WITH_PERL_TRUE=
30717 WITH_PERL_FALSE='#'
30718else
30719 WITH_PERL_TRUE='#'
30720 WITH_PERL_FALSE=
30721fi
30722
30723 if test $with_perl_static = 'yes'; then
30724 WITH_PERL_STATIC_TRUE=
30725 WITH_PERL_STATIC_FALSE='#'
30726else
30727 WITH_PERL_STATIC_TRUE='#'
30728 WITH_PERL_STATIC_FALSE=
30729fi
30730
30731 if test $with_perl_dynamic = 'yes'; then
30732 WITH_PERL_DYNAMIC_TRUE=
30733 WITH_PERL_DYNAMIC_FALSE='#'
30734else
30735 WITH_PERL_DYNAMIC_TRUE='#'
30736 WITH_PERL_DYNAMIC_FALSE=
30737fi
30738
30739
30740
30741# Determine path to pick up MagickCore library from for use with building PerlMagick
30742MAGICKCORE_PATH="${LIB_DIR}"
30743if test $with_perl_static = 'yes'; then
30744 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
30745 libtool_objdir=$objdir
30746
30747 # Linker search path to library, followed by -lMagickCore
30748 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
30749fi
30750
30751
30752# Create a simple string containing format names for all delegate libraries
30753DELEGATES=''
30754if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
30755if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
30756if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
30757if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
30758if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
30759if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
30760if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
30761if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
30762if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
30763if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
30764if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
30765if test "$have_jpeg" = 'yes'; then
30766 DELEGATES="$DELEGATES jpeg";
30767 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
30768fi
30769if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
30770if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
30771if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
30772if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
30773if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
30774if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
30775if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
30776if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
30777if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
30778if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
30779if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
30780if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
30781
30782
30783
30784#
30785# Handle special compiler flags
30786#
30787
30788# Add '-p' if prof source profiling support enabled
30789if test "$enable_prof" = 'yes'; then
30790 CFLAGS="-p $CFLAGS"
30791 CXXFLAGS="-p $CXXFLAGS"
30792 LDFLAGS="-p $LDFLAGS"
30793fi
30794
30795# Add '-pg' if gprof source profiling support enabled
30796if test "$enable_gprof" = 'yes'; then
30797 CFLAGS="-pg $CFLAGS"
30798 CXXFLAGS="-pg $CXXFLAGS"
30799 LDFLAGS="-pg $LDFLAGS"
30800fi
30801
30802# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
30803# This is a gcc-specific feature
30804if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030806$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030807if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030808 $as_echo_n "(cached) " >&6
30809else
30810 ac_check_lib_save_LIBS=$LIBS
30811LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030813/* end confdefs.h. */
30814
30815/* Override any GCC internal prototype to avoid an error.
30816 Use char because int might match the return type of a GCC
30817 builtin and then its argument prototype would still apply. */
30818#ifdef __cplusplus
30819extern "C"
30820#endif
30821char _gcov_init ();
30822int
30823main ()
30824{
30825return _gcov_init ();
30826 ;
30827 return 0;
30828}
30829_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030830if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030831 ac_cv_lib_gcov__gcov_init=yes
30832else
cristy8b350f62009-11-15 23:12:43 +000030833 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030834fi
cristy8b350f62009-11-15 23:12:43 +000030835rm -f core conftest.err conftest.$ac_objext \
30836 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030837LIBS=$ac_check_lib_save_LIBS
30838fi
cristy8b350f62009-11-15 23:12:43 +000030839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030840$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030841if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030842 cat >>confdefs.h <<_ACEOF
30843#define HAVE_LIBGCOV 1
30844_ACEOF
30845
30846 LIBS="-lgcov $LIBS"
30847
30848fi
30849
cristy8b350f62009-11-15 23:12:43 +000030850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030851$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030852if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030853 $as_echo_n "(cached) " >&6
30854else
30855 ac_check_lib_save_LIBS=$LIBS
30856LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030858/* end confdefs.h. */
30859
30860/* Override any GCC internal prototype to avoid an error.
30861 Use char because int might match the return type of a GCC
30862 builtin and then its argument prototype would still apply. */
30863#ifdef __cplusplus
30864extern "C"
30865#endif
30866char __gcov_init ();
30867int
30868main ()
30869{
30870return __gcov_init ();
30871 ;
30872 return 0;
30873}
30874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030875if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030876 ac_cv_lib_gcov___gcov_init=yes
30877else
cristy8b350f62009-11-15 23:12:43 +000030878 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030879fi
cristy8b350f62009-11-15 23:12:43 +000030880rm -f core conftest.err conftest.$ac_objext \
30881 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030882LIBS=$ac_check_lib_save_LIBS
30883fi
cristy8b350f62009-11-15 23:12:43 +000030884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030885$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030886if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030887 cat >>confdefs.h <<_ACEOF
30888#define HAVE_LIBGCOV 1
30889_ACEOF
30890
30891 LIBS="-lgcov $LIBS"
30892
30893fi
30894
30895 case "$target_os" in
30896 darwin*)
30897 OSX_GCOV_LDFLAG="-Wl,-single_module"
30898 ;;
30899 *)
30900 OSX_GCOV_LDFLAG=""
30901 ;;
30902 esac
30903
30904 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
30905 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
30906 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
30907fi
30908
30909#
30910# Build library dependency list for libMagickCore
30911#
30912
30913MAGICK_LIBLTDL='' # Libltdl for build
30914MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
30915MAGICK_LTDLDEPS='' # extra libltdl dependencies
30916if test "$with_ltdl" != 'no'
30917then
30918 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
30919 MAGICK_API_LIBLTDL='-lltdl'
30920 fi
30921 MAGICK_LIBLTDL=${LIBLTDL}
30922 MAGICK_LTDLDEPS=${LTDLDEPS}
30923fi
30924
30925
30926
30927if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000030928 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 +000030929else
cristy2e8b51d2009-10-17 18:26:15 +000030930 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 +000030931fi
30932
30933
30934#
30935# Remove extraneous spaces from output variables (asthetic)
30936#
30937X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
30938X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
30939X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
30940X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
30941
30942CC=`echo $CC | sed -e 's/ */ /g'`
30943CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
30944CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
30945CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
30946DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
30947DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
30948LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
30949TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30950MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
30951#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30952
30953# Pass only user-provided LIBS as "global" libraries
30954LIBS=$USER_LIBS
30955
30956#AC_SUBST(CPPFLAGS)
30957
30958#AC_SUBST(LDFLAGS)
30959#AC_SUBST(X_PRE_LIBS)
30960#AC_SUBST(X_LIBS)
30961#AC_SUBST(X_EXTRA_LIBS)
30962
30963MAGICK_CFLAGS=$CFLAGS
30964MAGICK_CXXFLAGS="$CXXFLAGS"
30965MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
30966MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
30967MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
30968MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
30969
30970
30971
30972
30973
30974
30975
30976
30977# Set configured scripts to executable.
30978ac_config_commands="$ac_config_commands default"
30979
30980ac_config_commands="$ac_config_commands MagickCore-config.in"
30981
30982ac_config_commands="$ac_config_commands Magick-config.in"
30983
30984ac_config_commands="$ac_config_commands MagickWand-config.in"
30985
30986ac_config_commands="$ac_config_commands Wand-config.in"
30987
30988ac_config_commands="$ac_config_commands Magick++-config.in"
30989
30990ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
30991
30992
cristy8b350f62009-11-15 23:12:43 +000030993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030994$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000030996$as_echo "Update ImageMagick configuration" >&6; }
30997cat >confcache <<\_ACEOF
30998# This file is a shell script that caches the results of configure
30999# tests run on this system so they can be shared between configure
31000# scripts and configure runs, see configure's option --config-cache.
31001# It is not useful on other systems. If it contains results you don't
31002# want to keep, you may remove or edit it.
31003#
31004# config.status only pays attention to the cache file if you give it
31005# the --recheck option to rerun configure.
31006#
31007# `ac_cv_env_foo' variables (set or unset) will be overridden when
31008# loading this file, other *unset* `ac_cv_foo' will be assigned the
31009# following values.
31010
31011_ACEOF
31012
31013# The following way of writing the cache mishandles newlines in values,
31014# but we know of no workaround that is simple, portable, and efficient.
31015# So, we kill variables containing newlines.
31016# Ultrix sh set writes to stderr and can't be redirected directly,
31017# and sets the high bit in the cache file unless we assign to the vars.
31018(
31019 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31020 eval ac_val=\$$ac_var
31021 case $ac_val in #(
31022 *${as_nl}*)
31023 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000031024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000031025$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31026 esac
31027 case $ac_var in #(
31028 _ | IFS | as_nl) ;; #(
31029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000031030 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000031031 esac ;;
31032 esac
31033 done
31034
31035 (set) 2>&1 |
31036 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31037 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000031038 # `set' does not quote correctly, so add quotes: double-quote
31039 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000031040 sed -n \
31041 "s/'/'\\\\''/g;
31042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31043 ;; #(
31044 *)
31045 # `set' quotes correctly as required by POSIX, so do not add quotes.
31046 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31047 ;;
31048 esac |
31049 sort
31050) |
31051 sed '
31052 /^ac_cv_env_/b end
31053 t clear
31054 :clear
31055 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31056 t end
31057 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31058 :end' >>confcache
31059if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31060 if test -w "$cache_file"; then
31061 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000031062 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031063$as_echo "$as_me: updating cache $cache_file" >&6;}
31064 cat confcache >$cache_file
31065 else
cristy8b350f62009-11-15 23:12:43 +000031066 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031067$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31068 fi
31069fi
31070rm -f confcache
31071
31072test "x$prefix" = xNONE && prefix=$ac_default_prefix
31073# Let make expand exec_prefix.
31074test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31075
31076DEFS=-DHAVE_CONFIG_H
31077
31078ac_libobjs=
31079ac_ltlibobjs=
31080for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31081 # 1. Remove the extension, and $U if already installed.
31082 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31083 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31084 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31085 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000031086 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31087 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000031088done
31089LIBOBJS=$ac_libobjs
31090
31091LTLIBOBJS=$ac_ltlibobjs
31092
31093
31094 if test -n "$EXEEXT"; then
31095 am__EXEEXT_TRUE=
31096 am__EXEEXT_FALSE='#'
31097else
31098 am__EXEEXT_TRUE='#'
31099 am__EXEEXT_FALSE=
31100fi
31101
31102if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031103 as_fn_error "conditional \"AMDEP\" was never defined.
31104Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031105fi
31106if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031107 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31108Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031109fi
31110if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031111 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31112Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031113fi
31114if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031115 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
31116Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031117fi
31118if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031119 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
31120Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031121fi
31122if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031123 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
31124Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031125fi
31126if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031127 as_fn_error "conditional \"USING_CL\" was never defined.
31128Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031129fi
cristy18304f92009-11-22 15:48:26 +000031130if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31131 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31132Usually this means the macro was only invoked conditionally." "$LINENO" 5
31133fi
cristy3ed852e2009-09-05 21:47:34 +000031134if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031135 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
31136Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031137fi
31138if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031139 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
31140Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031141fi
31142LT_CONFIG_H=config/config.h
31143
31144 _ltdl_libobjs=
31145 _ltdl_ltlibobjs=
31146 if test -n "$_LT_LIBOBJS"; then
31147 # Remove the extension.
31148 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
31149 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
31150 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
31151 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
31152 done
31153 fi
31154 ltdl_LIBOBJS=$_ltdl_libobjs
31155
31156 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
31157
31158
31159if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031160 as_fn_error "conditional \"WITH_MODULES\" was never defined.
31161Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031162fi
31163if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031164 as_fn_error "conditional \"WITH_LTDL\" was never defined.
31165Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031166fi
31167if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031168 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
31169Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031170fi
31171
31172if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031173 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31174Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031175fi
31176if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031177 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
31178Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031179fi
31180if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031181 as_fn_error "conditional \"HasUMEM\" was never defined.
31182Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031183fi
31184if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031185 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
31186Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031187fi
31188if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031189 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
31190Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031191fi
31192if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031193 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
31194Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031195fi
31196if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031197 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
31198Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031199fi
31200if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031201 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
31202Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031203fi
31204if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031205 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
31206Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031207fi
31208if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031209 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
31210Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031211fi
31212if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031213 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
31214Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031215fi
31216if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031217 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
31218Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031219fi
31220if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031221 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
31222Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031223fi
31224if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031225 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
31226Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031227fi
31228if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031229 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
31230Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031231fi
31232if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031233 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
31234Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031235fi
31236if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031237 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
31238Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031239fi
31240if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031241 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
31242Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031243fi
31244if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031245 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
31246Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031247fi
31248if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031249 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
31250Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031251fi
31252if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031253 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
31254Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031255fi
31256if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031257 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
31258Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031259fi
31260if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031261 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
31262Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031263fi
31264if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031265 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
31266Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031267fi
31268if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031269 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
31270Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031271fi
31272if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031273 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
31274Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031275fi
31276if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031277 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
31278Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031279fi
31280if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031281 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
31282Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031283fi
31284if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031285 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
31286Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031287fi
31288if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031289 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
31290Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031291fi
31292if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031293 as_fn_error "conditional \"WITH_PERL\" was never defined.
31294Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031295fi
31296if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031297 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
31298Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031299fi
31300if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031301 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
31302Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031303fi
31304
31305: ${CONFIG_STATUS=./config.status}
31306ac_write_fail=0
31307ac_clean_files_save=$ac_clean_files
31308ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000031309{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031310$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031311as_write_fail=0
31312cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031313#! $SHELL
31314# Generated by $as_me.
31315# Run this file to recreate the current configuration.
31316# Compiler output produced by configure, useful for debugging
31317# configure, is in config.log if it exists.
31318
31319debug=false
31320ac_cs_recheck=false
31321ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000031322
cristy8b350f62009-11-15 23:12:43 +000031323SHELL=\${CONFIG_SHELL-$SHELL}
31324export SHELL
31325_ASEOF
31326cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31327## -------------------- ##
31328## M4sh Initialization. ##
31329## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000031330
31331# Be more Bourne compatible
31332DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000031333if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000031334 emulate sh
31335 NULLCMD=:
31336 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31337 # is contrary to our usage. Disable this feature.
31338 alias -g '${1+"$@"}'='"$@"'
31339 setopt NO_GLOB_SUBST
31340else
cristy8b350f62009-11-15 23:12:43 +000031341 case `(set -o) 2>/dev/null` in #(
31342 *posix*) :
31343 set -o posix ;; #(
31344 *) :
31345 ;;
cristy3ed852e2009-09-05 21:47:34 +000031346esac
cristy3ed852e2009-09-05 21:47:34 +000031347fi
31348
31349
cristy3ed852e2009-09-05 21:47:34 +000031350as_nl='
31351'
31352export as_nl
31353# Printing a long string crashes Solaris 7 /usr/bin/printf.
31354as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31355as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31356as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000031357# Prefer a ksh shell builtin over an external printf program on Solaris,
31358# but without wasting forks for bash or zsh.
31359if test -z "$BASH_VERSION$ZSH_VERSION" \
31360 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31361 as_echo='print -r --'
31362 as_echo_n='print -rn --'
31363elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000031364 as_echo='printf %s\n'
31365 as_echo_n='printf %s'
31366else
31367 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31368 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31369 as_echo_n='/usr/ucb/echo -n'
31370 else
31371 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31372 as_echo_n_body='eval
31373 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000031374 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000031375 *"$as_nl"*)
31376 expr "X$arg" : "X\\(.*\\)$as_nl";
31377 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31378 esac;
31379 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31380 '
31381 export as_echo_n_body
31382 as_echo_n='sh -c $as_echo_n_body as_echo'
31383 fi
31384 export as_echo_body
31385 as_echo='sh -c $as_echo_body as_echo'
31386fi
31387
31388# The user is always right.
31389if test "${PATH_SEPARATOR+set}" != set; then
31390 PATH_SEPARATOR=:
31391 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31392 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31393 PATH_SEPARATOR=';'
31394 }
31395fi
31396
cristy3ed852e2009-09-05 21:47:34 +000031397
31398# IFS
31399# We need space, tab and new line, in precisely that order. Quoting is
31400# there to prevent editors from complaining about space-tab.
31401# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31402# splitting by setting IFS to empty value.)
31403IFS=" "" $as_nl"
31404
31405# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000031406case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000031407 *[\\/]* ) as_myself=$0 ;;
31408 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31409for as_dir in $PATH
31410do
31411 IFS=$as_save_IFS
31412 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031413 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31414 done
cristy3ed852e2009-09-05 21:47:34 +000031415IFS=$as_save_IFS
31416
31417 ;;
31418esac
31419# We did not find ourselves, most probably we were run as `sh COMMAND'
31420# in which case we are not to be found in the path.
31421if test "x$as_myself" = x; then
31422 as_myself=$0
31423fi
31424if test ! -f "$as_myself"; then
31425 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000031426 exit 1
cristy3ed852e2009-09-05 21:47:34 +000031427fi
31428
cristy8b350f62009-11-15 23:12:43 +000031429# Unset variables that we do not need and which cause bugs (e.g. in
31430# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31431# suppresses any "Segmentation fault" message there. '((' could
31432# trigger a bug in pdksh 5.2.14.
31433for as_var in BASH_ENV ENV MAIL MAILPATH
31434do eval test x\${$as_var+set} = xset \
31435 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000031436done
31437PS1='$ '
31438PS2='> '
31439PS4='+ '
31440
31441# NLS nuisances.
31442LC_ALL=C
31443export LC_ALL
31444LANGUAGE=C
31445export LANGUAGE
31446
cristy8b350f62009-11-15 23:12:43 +000031447# CDPATH.
31448(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31449
31450
31451# as_fn_error ERROR [LINENO LOG_FD]
31452# ---------------------------------
31453# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31454# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31455# script with status $?, using 1 if that was 0.
31456as_fn_error ()
31457{
31458 as_status=$?; test $as_status -eq 0 && as_status=1
31459 if test "$3"; then
31460 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31461 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
31462 fi
31463 $as_echo "$as_me: error: $1" >&2
31464 as_fn_exit $as_status
31465} # as_fn_error
31466
31467
31468# as_fn_set_status STATUS
31469# -----------------------
31470# Set $? to STATUS, without forking.
31471as_fn_set_status ()
31472{
31473 return $1
31474} # as_fn_set_status
31475
31476# as_fn_exit STATUS
31477# -----------------
31478# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31479as_fn_exit ()
31480{
31481 set +e
31482 as_fn_set_status $1
31483 exit $1
31484} # as_fn_exit
31485
31486# as_fn_unset VAR
31487# ---------------
31488# Portably unset VAR.
31489as_fn_unset ()
31490{
31491 { eval $1=; unset $1;}
31492}
31493as_unset=as_fn_unset
31494# as_fn_append VAR VALUE
31495# ----------------------
31496# Append the text in VALUE to the end of the definition contained in VAR. Take
31497# advantage of any shell optimizations that allow amortized linear growth over
31498# repeated appends, instead of the typical quadratic growth present in naive
31499# implementations.
31500if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31501 eval 'as_fn_append ()
31502 {
31503 eval $1+=\$2
31504 }'
31505else
31506 as_fn_append ()
31507 {
31508 eval $1=\$$1\$2
31509 }
31510fi # as_fn_append
31511
31512# as_fn_arith ARG...
31513# ------------------
31514# Perform arithmetic evaluation on the ARGs, and store the result in the
31515# global $as_val. Take advantage of shells that can avoid forks. The arguments
31516# must be portable across $(()) and expr.
31517if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31518 eval 'as_fn_arith ()
31519 {
31520 as_val=$(( $* ))
31521 }'
31522else
31523 as_fn_arith ()
31524 {
31525 as_val=`expr "$@" || test $? -eq 1`
31526 }
31527fi # as_fn_arith
31528
31529
cristy3ed852e2009-09-05 21:47:34 +000031530if expr a : '\(a\)' >/dev/null 2>&1 &&
31531 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31532 as_expr=expr
31533else
31534 as_expr=false
31535fi
31536
31537if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31538 as_basename=basename
31539else
31540 as_basename=false
31541fi
31542
cristy8b350f62009-11-15 23:12:43 +000031543if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31544 as_dirname=dirname
31545else
31546 as_dirname=false
31547fi
cristy3ed852e2009-09-05 21:47:34 +000031548
cristy3ed852e2009-09-05 21:47:34 +000031549as_me=`$as_basename -- "$0" ||
31550$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31551 X"$0" : 'X\(//\)$' \| \
31552 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31553$as_echo X/"$0" |
31554 sed '/^.*\/\([^/][^/]*\)\/*$/{
31555 s//\1/
31556 q
31557 }
31558 /^X\/\(\/\/\)$/{
31559 s//\1/
31560 q
31561 }
31562 /^X\/\(\/\).*/{
31563 s//\1/
31564 q
31565 }
31566 s/.*/./; q'`
31567
cristy8b350f62009-11-15 23:12:43 +000031568# Avoid depending upon Character Ranges.
31569as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31570as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31571as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31572as_cr_digits='0123456789'
31573as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000031574
31575ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000031576case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000031577-n*)
cristy8b350f62009-11-15 23:12:43 +000031578 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000031579 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000031580 xy) ECHO_C='\c';;
31581 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31582 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000031583 esac;;
31584*)
31585 ECHO_N='-n';;
31586esac
cristy3ed852e2009-09-05 21:47:34 +000031587
31588rm -f conf$$ conf$$.exe conf$$.file
31589if test -d conf$$.dir; then
31590 rm -f conf$$.dir/conf$$.file
31591else
31592 rm -f conf$$.dir
31593 mkdir conf$$.dir 2>/dev/null
31594fi
31595if (echo >conf$$.file) 2>/dev/null; then
31596 if ln -s conf$$.file conf$$ 2>/dev/null; then
31597 as_ln_s='ln -s'
31598 # ... but there are two gotchas:
31599 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31600 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31601 # In both cases, we have to default to `cp -p'.
31602 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31603 as_ln_s='cp -p'
31604 elif ln conf$$.file conf$$ 2>/dev/null; then
31605 as_ln_s=ln
31606 else
31607 as_ln_s='cp -p'
31608 fi
31609else
31610 as_ln_s='cp -p'
31611fi
31612rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31613rmdir conf$$.dir 2>/dev/null
31614
cristy8b350f62009-11-15 23:12:43 +000031615
31616# as_fn_mkdir_p
31617# -------------
31618# Create "$as_dir" as a directory, including parents if necessary.
31619as_fn_mkdir_p ()
31620{
31621
31622 case $as_dir in #(
31623 -*) as_dir=./$as_dir;;
31624 esac
31625 test -d "$as_dir" || eval $as_mkdir_p || {
31626 as_dirs=
31627 while :; do
31628 case $as_dir in #(
31629 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31630 *) as_qdir=$as_dir;;
31631 esac
31632 as_dirs="'$as_qdir' $as_dirs"
31633 as_dir=`$as_dirname -- "$as_dir" ||
31634$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31635 X"$as_dir" : 'X\(//\)[^/]' \| \
31636 X"$as_dir" : 'X\(//\)$' \| \
31637 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31638$as_echo X"$as_dir" |
31639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31640 s//\1/
31641 q
31642 }
31643 /^X\(\/\/\)[^/].*/{
31644 s//\1/
31645 q
31646 }
31647 /^X\(\/\/\)$/{
31648 s//\1/
31649 q
31650 }
31651 /^X\(\/\).*/{
31652 s//\1/
31653 q
31654 }
31655 s/.*/./; q'`
31656 test -d "$as_dir" && break
31657 done
31658 test -z "$as_dirs" || eval "mkdir $as_dirs"
31659 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
31660
31661
31662} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000031663if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000031664 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000031665else
31666 test -d ./-p && rmdir ./-p
31667 as_mkdir_p=false
31668fi
31669
31670if test -x / >/dev/null 2>&1; then
31671 as_test_x='test -x'
31672else
31673 if ls -dL / >/dev/null 2>&1; then
31674 as_ls_L_option=L
31675 else
31676 as_ls_L_option=
31677 fi
31678 as_test_x='
31679 eval sh -c '\''
31680 if test -d "$1"; then
31681 test -d "$1/.";
31682 else
cristy8b350f62009-11-15 23:12:43 +000031683 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000031684 -*)set "./$1";;
31685 esac;
cristy8b350f62009-11-15 23:12:43 +000031686 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000031687 ???[sx]*):;;*)false;;esac;fi
31688 '\'' sh
31689 '
31690fi
31691as_executable_p=$as_test_x
31692
31693# Sed expression to map a string onto a valid CPP name.
31694as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31695
31696# Sed expression to map a string onto a valid variable name.
31697as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31698
31699
31700exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000031701## ----------------------------------- ##
31702## Main body of $CONFIG_STATUS script. ##
31703## ----------------------------------- ##
31704_ASEOF
31705test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031706
cristy8b350f62009-11-15 23:12:43 +000031707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31708# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000031709# report actual input values of CONFIG_FILES etc. instead of their
31710# values after options handling.
31711ac_log="
cristy89effd22009-11-24 20:56:45 +000031712This file was extended by ImageMagick $as_me 6.5.8, which was
cristycd4c5312009-11-22 01:19:08 +000031713generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000031714
31715 CONFIG_FILES = $CONFIG_FILES
31716 CONFIG_HEADERS = $CONFIG_HEADERS
31717 CONFIG_LINKS = $CONFIG_LINKS
31718 CONFIG_COMMANDS = $CONFIG_COMMANDS
31719 $ $0 $@
31720
31721on `(hostname || uname -n) 2>/dev/null | sed 1q`
31722"
31723
31724_ACEOF
31725
31726case $ac_config_files in *"
31727"*) set x $ac_config_files; shift; ac_config_files=$*;;
31728esac
31729
31730case $ac_config_headers in *"
31731"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31732esac
31733
31734
31735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31736# Files that config.status was made for.
31737config_files="$ac_config_files"
31738config_headers="$ac_config_headers"
31739config_commands="$ac_config_commands"
31740
31741_ACEOF
31742
31743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31744ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000031745\`$as_me' instantiates files and other configuration actions
31746from templates according to the current configuration. Unless the files
31747and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000031748
cristy8b350f62009-11-15 23:12:43 +000031749Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000031750
31751 -h, --help print this help, then exit
31752 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000031753 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000031754 -q, --quiet, --silent
31755 do not print progress messages
31756 -d, --debug don't remove temporary files
31757 --recheck update $as_me by reconfiguring in the same conditions
31758 --file=FILE[:TEMPLATE]
31759 instantiate the configuration file FILE
31760 --header=FILE[:TEMPLATE]
31761 instantiate the configuration header FILE
31762
31763Configuration files:
31764$config_files
31765
31766Configuration headers:
31767$config_headers
31768
31769Configuration commands:
31770$config_commands
31771
cristy8b350f62009-11-15 23:12:43 +000031772Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000031773
31774_ACEOF
31775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000031776ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000031777ac_cs_version="\\
cristy89effd22009-11-24 20:56:45 +000031778ImageMagick config.status 6.5.8
cristycd4c5312009-11-22 01:19:08 +000031779configured by $0, generated by GNU Autoconf 2.65,
31780 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000031781
cristy8b350f62009-11-15 23:12:43 +000031782Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000031783This config.status script is free software; the Free Software Foundation
31784gives unlimited permission to copy, distribute and modify it."
31785
31786ac_pwd='$ac_pwd'
31787srcdir='$srcdir'
31788INSTALL='$INSTALL'
31789MKDIR_P='$MKDIR_P'
31790AWK='$AWK'
31791test -n "\$AWK" || AWK=awk
31792_ACEOF
31793
31794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31795# The default lists apply if the user does not specify any file.
31796ac_need_defaults=:
31797while test $# != 0
31798do
31799 case $1 in
31800 --*=*)
31801 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31802 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31803 ac_shift=:
31804 ;;
31805 *)
31806 ac_option=$1
31807 ac_optarg=$2
31808 ac_shift=shift
31809 ;;
31810 esac
31811
31812 case $ac_option in
31813 # Handling of the options.
31814 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31815 ac_cs_recheck=: ;;
31816 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31817 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000031818 --config | --confi | --conf | --con | --co | --c )
31819 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000031820 --debug | --debu | --deb | --de | --d | -d )
31821 debug=: ;;
31822 --file | --fil | --fi | --f )
31823 $ac_shift
31824 case $ac_optarg in
31825 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31826 esac
cristy8b350f62009-11-15 23:12:43 +000031827 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031828 ac_need_defaults=false;;
31829 --header | --heade | --head | --hea )
31830 $ac_shift
31831 case $ac_optarg in
31832 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31833 esac
cristy8b350f62009-11-15 23:12:43 +000031834 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031835 ac_need_defaults=false;;
31836 --he | --h)
31837 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000031838 as_fn_error "ambiguous option: \`$1'
31839Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000031840 --help | --hel | -h )
31841 $as_echo "$ac_cs_usage"; exit ;;
31842 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31843 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31844 ac_cs_silent=: ;;
31845
31846 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000031847 -*) as_fn_error "unrecognized option: \`$1'
31848Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000031849
cristy8b350f62009-11-15 23:12:43 +000031850 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000031851 ac_need_defaults=false ;;
31852
31853 esac
31854 shift
31855done
31856
31857ac_configure_extra_args=
31858
31859if $ac_cs_silent; then
31860 exec 6>/dev/null
31861 ac_configure_extra_args="$ac_configure_extra_args --silent"
31862fi
31863
31864_ACEOF
31865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31866if \$ac_cs_recheck; then
31867 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31868 shift
31869 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31870 CONFIG_SHELL='$SHELL'
31871 export CONFIG_SHELL
31872 exec "\$@"
31873fi
31874
31875_ACEOF
31876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31877exec 5>>config.log
31878{
31879 echo
31880 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31881## Running $as_me. ##
31882_ASBOX
31883 $as_echo "$ac_log"
31884} >&5
31885
31886_ACEOF
31887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31888#
31889# INIT-COMMANDS
31890#
31891PACKAGE="$PACKAGE"
31892AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31893
31894
31895# The HP-UX ksh and POSIX shell print the target directory to stdout
31896# if CDPATH is set.
31897(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31898
31899sed_quote_subst='$sed_quote_subst'
31900double_quote_subst='$double_quote_subst'
31901delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000031902SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
31903Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
31904GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
31905EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
31906FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
31907LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
31908macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
31909macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
31910AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
31911DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31912OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
31913enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
31914enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
31915pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
31916enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
31917host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
31918host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
31919host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
31920build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
31921build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
31922build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
31923NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
31924LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
31925max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
31926ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
31927exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
31928lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
31929lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
31930lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
31931reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
31932reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31933deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
31934file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
31935AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
31936AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31937STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
31938RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
31939old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31940old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31941old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31942CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
31943CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31944compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
31945GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
31946lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
31947lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
31948lt_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"`'
31949lt_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"`'
31950objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
31951SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
31952ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
31953MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
31954lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
31955lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
31956lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
31957lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
31958lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
31959need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
31960DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
31961NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
31962LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
31963OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31964OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
31965libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
31966shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31967extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31968archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
31969enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
31970export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31971whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31972compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
31973old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31974old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31975archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31976archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31977module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31978module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31979with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
31980allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31981no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31982hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31983hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
31984hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
31985hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
31986hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
31987hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
31988hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31989hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
31990inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
31991link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
31992fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
31993always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
31994export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31995exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31996include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31997prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31998file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
31999variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
32000need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32001need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
32002version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
32003runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32004shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32005shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
32006libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32007library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
32008soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32009postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32010postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32011finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32012finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
32013hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
32014sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32015sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32016hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
32017enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
32018enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
32019enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
32020old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
32021striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
32022compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
32023predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32024postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32025predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
32026postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
32027compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
32028LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32029old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32030compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32031GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32032lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32033lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32034lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32035lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32036lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32037archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32038enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32039export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32040whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32041compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32042old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32043old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32044archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32045archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32046module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32047module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32048with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32049allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32050no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32051hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32052hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32053hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32054hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32055hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32056hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32057hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32058hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32059inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32060link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32061fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32062always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32063export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32064exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32065include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32066prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32067file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32068hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32069compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32070predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32071postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32072predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32073postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32074compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000032075
32076LTCC='$LTCC'
32077LTCFLAGS='$LTCFLAGS'
32078compiler='$compiler_DEFAULT'
32079
32080# Quote evaled strings.
32081for var in SED \
32082GREP \
32083EGREP \
32084FGREP \
32085LD \
32086NM \
32087LN_S \
32088lt_SP2NL \
32089lt_NL2SP \
32090reload_flag \
32091deplibs_check_method \
32092file_magic_cmd \
32093AR \
32094AR_FLAGS \
32095STRIP \
32096RANLIB \
32097CC \
32098CFLAGS \
32099compiler \
32100lt_cv_sys_global_symbol_pipe \
32101lt_cv_sys_global_symbol_to_cdecl \
32102lt_cv_sys_global_symbol_to_c_name_address \
32103lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000032104SHELL \
32105ECHO \
cristy3ed852e2009-09-05 21:47:34 +000032106lt_prog_compiler_no_builtin_flag \
32107lt_prog_compiler_wl \
32108lt_prog_compiler_pic \
32109lt_prog_compiler_static \
32110lt_cv_prog_compiler_c_o \
32111need_locks \
32112DSYMUTIL \
32113NMEDIT \
32114LIPO \
32115OTOOL \
32116OTOOL64 \
32117shrext_cmds \
32118export_dynamic_flag_spec \
32119whole_archive_flag_spec \
32120compiler_needs_object \
32121with_gnu_ld \
32122allow_undefined_flag \
32123no_undefined_flag \
32124hardcode_libdir_flag_spec \
32125hardcode_libdir_flag_spec_ld \
32126hardcode_libdir_separator \
32127fix_srcfile_path \
32128exclude_expsyms \
32129include_expsyms \
32130file_list_spec \
32131variables_saved_for_relink \
32132libname_spec \
32133library_names_spec \
32134soname_spec \
32135finish_eval \
32136old_striplib \
32137striplib \
32138compiler_lib_search_dirs \
32139predep_objects \
32140postdep_objects \
32141predeps \
32142postdeps \
32143compiler_lib_search_path \
32144LD_CXX \
32145compiler_CXX \
32146lt_prog_compiler_no_builtin_flag_CXX \
32147lt_prog_compiler_wl_CXX \
32148lt_prog_compiler_pic_CXX \
32149lt_prog_compiler_static_CXX \
32150lt_cv_prog_compiler_c_o_CXX \
32151export_dynamic_flag_spec_CXX \
32152whole_archive_flag_spec_CXX \
32153compiler_needs_object_CXX \
32154with_gnu_ld_CXX \
32155allow_undefined_flag_CXX \
32156no_undefined_flag_CXX \
32157hardcode_libdir_flag_spec_CXX \
32158hardcode_libdir_flag_spec_ld_CXX \
32159hardcode_libdir_separator_CXX \
32160fix_srcfile_path_CXX \
32161exclude_expsyms_CXX \
32162include_expsyms_CXX \
32163file_list_spec_CXX \
32164compiler_lib_search_dirs_CXX \
32165predep_objects_CXX \
32166postdep_objects_CXX \
32167predeps_CXX \
32168postdeps_CXX \
32169compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000032170 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032171 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032172 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000032173 ;;
32174 *)
32175 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32176 ;;
32177 esac
32178done
32179
32180# Double-quote double-evaled strings.
32181for var in reload_cmds \
32182old_postinstall_cmds \
32183old_postuninstall_cmds \
32184old_archive_cmds \
32185extract_expsyms_cmds \
32186old_archive_from_new_cmds \
32187old_archive_from_expsyms_cmds \
32188archive_cmds \
32189archive_expsym_cmds \
32190module_cmds \
32191module_expsym_cmds \
32192export_symbols_cmds \
32193prelink_cmds \
32194postinstall_cmds \
32195postuninstall_cmds \
32196finish_cmds \
32197sys_lib_search_path_spec \
32198sys_lib_dlsearch_path_spec \
32199old_archive_cmds_CXX \
32200old_archive_from_new_cmds_CXX \
32201old_archive_from_expsyms_cmds_CXX \
32202archive_cmds_CXX \
32203archive_expsym_cmds_CXX \
32204module_cmds_CXX \
32205module_expsym_cmds_CXX \
32206export_symbols_cmds_CXX \
32207prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000032208 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032209 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032210 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000032211 ;;
32212 *)
32213 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32214 ;;
32215 esac
32216done
32217
cristy18304f92009-11-22 15:48:26 +000032218# Fix-up fallback echo if it was mangled by the above quoting rules.
32219case \$lt_ECHO in
32220*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
32221 ;;
32222esac
32223
cristy3ed852e2009-09-05 21:47:34 +000032224ac_aux_dir='$ac_aux_dir'
32225xsi_shell='$xsi_shell'
32226lt_shell_append='$lt_shell_append'
32227
32228# See if we are running on zsh, and set the options which allow our
32229# commands through without removal of \ escapes INIT.
32230if test -n "\${ZSH_VERSION+set}" ; then
32231 setopt NO_GLOB_SUBST
32232fi
32233
32234
32235 PACKAGE='$PACKAGE'
32236 VERSION='$VERSION'
32237 TIMESTAMP='$TIMESTAMP'
32238 RM='$RM'
32239 ofile='$ofile'
32240
32241
32242
32243
32244
32245
32246_ACEOF
32247
32248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32249
32250# Handling of arguments.
32251for ac_config_target in $ac_config_targets
32252do
32253 case $ac_config_target in
32254 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32255 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32256 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32257 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32258 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32259 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32260 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
32261 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32262 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
32263 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
32264 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
32265 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
32266 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
32267 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
32268 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
32269 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
32270 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
32271 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
32272 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
32273 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32274 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
32275 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
32276 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
32277 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
32278 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
32279 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
32280 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
32281 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
32282 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
32283 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
32284 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
32285 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
32286 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
32287 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
32288 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
32289 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
32290 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
32291 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
32292 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
32293 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
32294 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32295 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32296 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32297 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
32298 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
32299 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
32300 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
32301 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
32302 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
32303
cristy8b350f62009-11-15 23:12:43 +000032304 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032305 esac
32306done
32307
32308
32309# If the user did not use the arguments to specify the items to instantiate,
32310# then the envvar interface is used. Set only those that are not.
32311# We use the long form for the default assignment because of an extremely
32312# bizarre bug on SunOS 4.1.3.
32313if $ac_need_defaults; then
32314 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32315 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32316 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32317fi
32318
32319# Have a temporary directory for convenience. Make it in the build tree
32320# simply because there is no reason against having it here, and in addition,
32321# creating and moving files from /tmp can sometimes cause problems.
32322# Hook for its removal unless debugging.
32323# Note that there is a small window in which the directory will not be cleaned:
32324# after its creation but before its name has been assigned to `$tmp'.
32325$debug ||
32326{
32327 tmp=
32328 trap 'exit_status=$?
32329 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32330' 0
cristy8b350f62009-11-15 23:12:43 +000032331 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000032332}
32333# Create a (secure) tmp directory for tmp files.
32334
32335{
32336 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32337 test -n "$tmp" && test -d "$tmp"
32338} ||
32339{
32340 tmp=./conf$$-$RANDOM
32341 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000032342} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032343
32344# Set up the scripts for CONFIG_FILES section.
32345# No need to generate them if there are no CONFIG_FILES.
32346# This happens for instance with `./config.status config.h'.
32347if test -n "$CONFIG_FILES"; then
32348
32349
cristy8b350f62009-11-15 23:12:43 +000032350ac_cr=`echo X | tr X '\015'`
32351# On cygwin, bash can eat \r inside `` if the user requested igncr.
32352# But we know of no other shell where ac_cr would be empty at this
32353# point, so we can use a bashism as a fallback.
32354if test "x$ac_cr" = x; then
32355 eval ac_cr=\$\'\\r\'
32356fi
cristy3ed852e2009-09-05 21:47:34 +000032357ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32358if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000032359 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000032360else
32361 ac_cs_awk_cr=$ac_cr
32362fi
32363
32364echo 'BEGIN {' >"$tmp/subs1.awk" &&
32365_ACEOF
32366
32367
32368{
32369 echo "cat >conf$$subs.awk <<_ACEOF" &&
32370 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32371 echo "_ACEOF"
32372} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032373 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032374ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32375ac_delim='%!_!# '
32376for ac_last_try in false false false false false :; do
32377 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032378 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032379
32380 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32381 if test $ac_delim_n = $ac_delim_num; then
32382 break
32383 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032384 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032385 else
32386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32387 fi
32388done
32389rm -f conf$$subs.sh
32390
32391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32392cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32393_ACEOF
32394sed -n '
32395h
32396s/^/S["/; s/!.*/"]=/
32397p
32398g
32399s/^[^!]*!//
32400:repl
32401t repl
32402s/'"$ac_delim"'$//
32403t delim
32404:nl
32405h
cristycd4c5312009-11-22 01:19:08 +000032406s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032407t more1
32408s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32409p
32410n
32411b repl
32412:more1
32413s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32414p
32415g
32416s/.\{148\}//
32417t nl
32418:delim
32419h
cristycd4c5312009-11-22 01:19:08 +000032420s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032421t more2
32422s/["\\]/\\&/g; s/^/"/; s/$/"/
32423p
32424b
32425:more2
32426s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32427p
32428g
32429s/.\{148\}//
32430t delim
32431' <conf$$subs.awk | sed '
32432/^[^""]/{
32433 N
32434 s/\n//
32435}
32436' >>$CONFIG_STATUS || ac_write_fail=1
32437rm -f conf$$subs.awk
32438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32439_ACAWK
32440cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32441 for (key in S) S_is_set[key] = 1
32442 FS = ""
32443
32444}
32445{
32446 line = $ 0
32447 nfields = split(line, field, "@")
32448 substed = 0
32449 len = length(field[1])
32450 for (i = 2; i < nfields; i++) {
32451 key = field[i]
32452 keylen = length(key)
32453 if (S_is_set[key]) {
32454 value = S[key]
32455 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32456 len += length(value) + length(field[++i])
32457 substed = 1
32458 } else
32459 len += 1 + keylen
32460 }
32461
32462 print line
32463}
32464
32465_ACAWK
32466_ACEOF
32467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32468if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32469 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32470else
32471 cat
32472fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000032473 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032474_ACEOF
32475
32476# VPATH may cause trouble with some makes, so we remove $(srcdir),
32477# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32478# trailing colons and then remove the whole line if VPATH becomes empty
32479# (actually we leave an empty line to preserve line numbers).
32480if test "x$srcdir" = x.; then
32481 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32482s/:*\$(srcdir):*/:/
32483s/:*\${srcdir}:*/:/
32484s/:*@srcdir@:*/:/
32485s/^\([^=]*=[ ]*\):*/\1/
32486s/:*$//
32487s/^[^=]*=[ ]*$//
32488}'
32489fi
32490
32491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32492fi # test -n "$CONFIG_FILES"
32493
32494# Set up the scripts for CONFIG_HEADERS section.
32495# No need to generate them if there are no CONFIG_HEADERS.
32496# This happens for instance with `./config.status Makefile'.
32497if test -n "$CONFIG_HEADERS"; then
32498cat >"$tmp/defines.awk" <<\_ACAWK ||
32499BEGIN {
32500_ACEOF
32501
32502# Transform confdefs.h into an awk script `defines.awk', embedded as
32503# here-document in config.status, that substitutes the proper values into
32504# config.h.in to produce config.h.
32505
32506# Create a delimiter string that does not exist in confdefs.h, to ease
32507# handling of long lines.
32508ac_delim='%!_!# '
32509for ac_last_try in false false :; do
32510 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32511 if test -z "$ac_t"; then
32512 break
32513 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032514 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032515 else
32516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32517 fi
32518done
32519
32520# For the awk script, D is an array of macro values keyed by name,
32521# likewise P contains macro parameters if any. Preserve backslash
32522# newline sequences.
32523
32524ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32525sed -n '
32526s/.\{148\}/&'"$ac_delim"'/g
32527t rset
32528:rset
32529s/^[ ]*#[ ]*define[ ][ ]*/ /
32530t def
32531d
32532:def
32533s/\\$//
32534t bsnl
32535s/["\\]/\\&/g
32536s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32537D["\1"]=" \3"/p
32538s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32539d
32540:bsnl
32541s/["\\]/\\&/g
32542s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32543D["\1"]=" \3\\\\\\n"\\/p
32544t cont
32545s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32546t cont
32547d
32548:cont
32549n
32550s/.\{148\}/&'"$ac_delim"'/g
32551t clear
32552:clear
32553s/\\$//
32554t bsnlc
32555s/["\\]/\\&/g; s/^/"/; s/$/"/p
32556d
32557:bsnlc
32558s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32559b cont
32560' <confdefs.h | sed '
32561s/'"$ac_delim"'/"\\\
32562"/g' >>$CONFIG_STATUS || ac_write_fail=1
32563
32564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32565 for (key in D) D_is_set[key] = 1
32566 FS = ""
32567}
32568/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32569 line = \$ 0
32570 split(line, arg, " ")
32571 if (arg[1] == "#") {
32572 defundef = arg[2]
32573 mac1 = arg[3]
32574 } else {
32575 defundef = substr(arg[1], 2)
32576 mac1 = arg[2]
32577 }
32578 split(mac1, mac2, "(") #)
32579 macro = mac2[1]
32580 prefix = substr(line, 1, index(line, defundef) - 1)
32581 if (D_is_set[macro]) {
32582 # Preserve the white space surrounding the "#".
32583 print prefix "define", macro P[macro] D[macro]
32584 next
32585 } else {
32586 # Replace #undef with comments. This is necessary, for example,
32587 # in the case of _POSIX_SOURCE, which is predefined and required
32588 # on some systems where configure will not decide to define it.
32589 if (defundef == "undef") {
32590 print "/*", prefix defundef, macro, "*/"
32591 next
32592 }
32593 }
32594}
32595{ print }
32596_ACAWK
32597_ACEOF
32598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000032599 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032600fi # test -n "$CONFIG_HEADERS"
32601
32602
32603eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32604shift
32605for ac_tag
32606do
32607 case $ac_tag in
32608 :[FHLC]) ac_mode=$ac_tag; continue;;
32609 esac
32610 case $ac_mode$ac_tag in
32611 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000032612 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032613 :[FH]-) ac_tag=-:-;;
32614 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32615 esac
32616 ac_save_IFS=$IFS
32617 IFS=:
32618 set x $ac_tag
32619 IFS=$ac_save_IFS
32620 shift
32621 ac_file=$1
32622 shift
32623
32624 case $ac_mode in
32625 :L) ac_source=$1;;
32626 :[FH])
32627 ac_file_inputs=
32628 for ac_f
32629 do
32630 case $ac_f in
32631 -) ac_f="$tmp/stdin";;
32632 *) # Look for the file first in the build tree, then in the source tree
32633 # (if the path is not absolute). The absolute path cannot be DOS-style,
32634 # because $ac_f cannot contain `:'.
32635 test -f "$ac_f" ||
32636 case $ac_f in
32637 [\\/$]*) false;;
32638 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32639 esac ||
cristy8b350f62009-11-15 23:12:43 +000032640 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032641 esac
32642 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000032643 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000032644 done
32645
32646 # Let's still pretend it is `configure' which instantiates (i.e., don't
32647 # use $as_me), people would be surprised to read:
32648 # /* config.h. Generated by config.status. */
32649 configure_input='Generated from '`
32650 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32651 `' by configure.'
32652 if test x"$ac_file" != x-; then
32653 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000032654 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032655$as_echo "$as_me: creating $ac_file" >&6;}
32656 fi
32657 # Neutralize special characters interpreted by sed in replacement strings.
32658 case $configure_input in #(
32659 *\&* | *\|* | *\\* )
32660 ac_sed_conf_input=`$as_echo "$configure_input" |
32661 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32662 *) ac_sed_conf_input=$configure_input;;
32663 esac
32664
32665 case $ac_tag in
32666 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000032667 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000032668 esac
32669 ;;
32670 esac
32671
32672 ac_dir=`$as_dirname -- "$ac_file" ||
32673$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32674 X"$ac_file" : 'X\(//\)[^/]' \| \
32675 X"$ac_file" : 'X\(//\)$' \| \
32676 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32677$as_echo X"$ac_file" |
32678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32679 s//\1/
32680 q
32681 }
32682 /^X\(\/\/\)[^/].*/{
32683 s//\1/
32684 q
32685 }
32686 /^X\(\/\/\)$/{
32687 s//\1/
32688 q
32689 }
32690 /^X\(\/\).*/{
32691 s//\1/
32692 q
32693 }
32694 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032695 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032696 ac_builddir=.
32697
32698case "$ac_dir" in
32699.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32700*)
32701 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32702 # A ".." for each directory in $ac_dir_suffix.
32703 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32704 case $ac_top_builddir_sub in
32705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32707 esac ;;
32708esac
32709ac_abs_top_builddir=$ac_pwd
32710ac_abs_builddir=$ac_pwd$ac_dir_suffix
32711# for backward compatibility:
32712ac_top_builddir=$ac_top_build_prefix
32713
32714case $srcdir in
32715 .) # We are building in place.
32716 ac_srcdir=.
32717 ac_top_srcdir=$ac_top_builddir_sub
32718 ac_abs_top_srcdir=$ac_pwd ;;
32719 [\\/]* | ?:[\\/]* ) # Absolute name.
32720 ac_srcdir=$srcdir$ac_dir_suffix;
32721 ac_top_srcdir=$srcdir
32722 ac_abs_top_srcdir=$srcdir ;;
32723 *) # Relative name.
32724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32725 ac_top_srcdir=$ac_top_build_prefix$srcdir
32726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32727esac
32728ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32729
32730
32731 case $ac_mode in
32732 :F)
32733 #
32734 # CONFIG_FILE
32735 #
32736
32737 case $INSTALL in
32738 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32739 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32740 esac
32741 ac_MKDIR_P=$MKDIR_P
32742 case $MKDIR_P in
32743 [\\/$]* | ?:[\\/]* ) ;;
32744 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32745 esac
32746_ACEOF
32747
32748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32749# If the template does not know about datarootdir, expand it.
32750# FIXME: This hack should be removed a few years after 2.60.
32751ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000032752ac_sed_dataroot='
32753/datarootdir/ {
32754 p
32755 q
32756}
32757/@datadir@/p
32758/@docdir@/p
32759/@infodir@/p
32760/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000032761/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000032762case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32763*datarootdir*) ac_datarootdir_seen=yes;;
32764*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000032765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000032766$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32767_ACEOF
32768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32769 ac_datarootdir_hack='
32770 s&@datadir@&$datadir&g
32771 s&@docdir@&$docdir&g
32772 s&@infodir@&$infodir&g
32773 s&@localedir@&$localedir&g
32774 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000032775 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000032776esac
32777_ACEOF
32778
32779# Neutralize VPATH when `$srcdir' = `.'.
32780# Shell code in configure.ac might set extrasub.
32781# FIXME: do we really want to maintain this feature?
32782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32783ac_sed_extra="$ac_vpsub
32784$extrasub
32785_ACEOF
32786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32787:t
32788/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32789s|@configure_input@|$ac_sed_conf_input|;t t
32790s&@top_builddir@&$ac_top_builddir_sub&;t t
32791s&@top_build_prefix@&$ac_top_build_prefix&;t t
32792s&@srcdir@&$ac_srcdir&;t t
32793s&@abs_srcdir@&$ac_abs_srcdir&;t t
32794s&@top_srcdir@&$ac_top_srcdir&;t t
32795s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32796s&@builddir@&$ac_builddir&;t t
32797s&@abs_builddir@&$ac_abs_builddir&;t t
32798s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32799s&@INSTALL@&$ac_INSTALL&;t t
32800s&@MKDIR_P@&$ac_MKDIR_P&;t t
32801$ac_datarootdir_hack
32802"
32803eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000032804 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032805
32806test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32807 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32808 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000032809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000032810which seems to be undefined. Please make sure it is defined." >&5
32811$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32812which seems to be undefined. Please make sure it is defined." >&2;}
32813
32814 rm -f "$tmp/stdin"
32815 case $ac_file in
32816 -) cat "$tmp/out" && rm -f "$tmp/out";;
32817 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32818 esac \
cristy8b350f62009-11-15 23:12:43 +000032819 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032820 ;;
32821 :H)
32822 #
32823 # CONFIG_HEADER
32824 #
32825 if test x"$ac_file" != x-; then
32826 {
32827 $as_echo "/* $configure_input */" \
32828 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32829 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000032830 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032831 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000032832 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032833$as_echo "$as_me: $ac_file is unchanged" >&6;}
32834 else
32835 rm -f "$ac_file"
32836 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000032837 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032838 fi
32839 else
32840 $as_echo "/* $configure_input */" \
32841 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000032842 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032843 fi
32844# Compute "$ac_file"'s index in $config_headers.
32845_am_arg="$ac_file"
32846_am_stamp_count=1
32847for _am_header in $config_headers :; do
32848 case $_am_header in
32849 $_am_arg | $_am_arg:* )
32850 break ;;
32851 * )
32852 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32853 esac
32854done
32855echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32856$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32857 X"$_am_arg" : 'X\(//\)[^/]' \| \
32858 X"$_am_arg" : 'X\(//\)$' \| \
32859 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32860$as_echo X"$_am_arg" |
32861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32862 s//\1/
32863 q
32864 }
32865 /^X\(\/\/\)[^/].*/{
32866 s//\1/
32867 q
32868 }
32869 /^X\(\/\/\)$/{
32870 s//\1/
32871 q
32872 }
32873 /^X\(\/\).*/{
32874 s//\1/
32875 q
32876 }
32877 s/.*/./; q'`/stamp-h$_am_stamp_count
32878 ;;
32879
cristy8b350f62009-11-15 23:12:43 +000032880 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000032881$as_echo "$as_me: executing $ac_file commands" >&6;}
32882 ;;
32883 esac
32884
32885
32886 case $ac_file$ac_mode in
32887 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
32888ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
32889ac_prefix_conf_PKG=`echo MagickCore`
32890ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
32891ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
32892ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
32893if test ".$ac_prefix_conf_INP" = "."; then
32894 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
32895 case "$ac_file" in
32896 *.h) ac_prefix_conf_INP=$ac_file ;;
32897 *)
32898 esac
32899 test ".$ac_prefix_conf_INP" != "." && break
32900 done
32901fi
32902if test ".$ac_prefix_conf_INP" = "."; then
32903 case "$ac_prefix_conf_OUT" in
32904 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
32905 ;;
32906 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
32907 ;;
32908 *) ac_prefix_conf_INP=config.h
32909 ;;
32910 esac
32911fi
32912if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000032913 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032914else
32915 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
32916 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
32917 fi fi
cristy8b350f62009-11-15 23:12:43 +000032918 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
cristy3ed852e2009-09-05 21:47:34 +000032919$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
32920 if test -f $ac_prefix_conf_INP ; then
32921 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
32922 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
32923 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
32924 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
32925 echo "#endif/" >>conftest.prefix
32926 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
32927 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
32928 echo "#endif/" >> conftest.prefix
32929 # now executing _script on _DEF input to create _OUT output file
32930 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
32931 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
32932 echo ' ' >>$tmp/pconfig.h
32933 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
32934
32935 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
32936 echo ' ' >>$tmp/pconfig.h
32937 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
32938 echo "#endif" >>$tmp/pconfig.h
32939 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032940 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032941$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
32942 else
32943 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
32944$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32945 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
32946 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
32947 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
32948$as_echo X"$ac_prefix_conf_OUT" |
32949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32950 s//\1/
32951 q
32952 }
32953 /^X\(\/\/\)[^/].*/{
32954 s//\1/
32955 q
32956 }
32957 /^X\(\/\/\)$/{
32958 s//\1/
32959 q
32960 }
32961 /^X\(\/\).*/{
32962 s//\1/
32963 q
32964 }
32965 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032966 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032967 rm -f "$ac_prefix_conf_OUT"
32968 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
32969 fi
32970 cp conftest.prefix _configs.sed
32971 else
cristy8b350f62009-11-15 23:12:43 +000032972 as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032973 fi
32974 rm -f conftest.*
32975fi
32976 ;;
32977 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32978 # Autoconf 2.62 quotes --file arguments for eval, but not when files
32979 # are listed without --file. Let's play safe and only enable the eval
32980 # if we detect the quoting.
32981 case $CONFIG_FILES in
32982 *\'*) eval set x "$CONFIG_FILES" ;;
32983 *) set x $CONFIG_FILES ;;
32984 esac
32985 shift
32986 for mf
32987 do
32988 # Strip MF so we end up with the name of the file.
32989 mf=`echo "$mf" | sed -e 's/:.*$//'`
32990 # Check whether this is an Automake generated Makefile or not.
32991 # We used to match only the files named `Makefile.in', but
32992 # some people rename them; so instead we look at the file content.
32993 # Grep'ing the first line is not enough: some people post-process
32994 # each Makefile.in and add a new line on top of each file to say so.
32995 # Grep'ing the whole file is not good either: AIX grep has a line
32996 # limit of 2048, but all sed's we know have understand at least 4000.
32997 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32998 dirpart=`$as_dirname -- "$mf" ||
32999$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33000 X"$mf" : 'X\(//\)[^/]' \| \
33001 X"$mf" : 'X\(//\)$' \| \
33002 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33003$as_echo X"$mf" |
33004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33005 s//\1/
33006 q
33007 }
33008 /^X\(\/\/\)[^/].*/{
33009 s//\1/
33010 q
33011 }
33012 /^X\(\/\/\)$/{
33013 s//\1/
33014 q
33015 }
33016 /^X\(\/\).*/{
33017 s//\1/
33018 q
33019 }
33020 s/.*/./; q'`
33021 else
33022 continue
33023 fi
33024 # Extract the definition of DEPDIR, am__include, and am__quote
33025 # from the Makefile without running `make'.
33026 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33027 test -z "$DEPDIR" && continue
33028 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33029 test -z "am__include" && continue
33030 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33031 # When using ansi2knr, U may be empty or an underscore; expand it
33032 U=`sed -n 's/^U = //p' < "$mf"`
33033 # Find all dependency output files, they are included files with
33034 # $(DEPDIR) in their names. We invoke sed twice because it is the
33035 # simplest approach to changing $(DEPDIR) to its actual value in the
33036 # expansion.
33037 for file in `sed -n "
33038 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33039 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33040 # Make sure the directory exists.
33041 test -f "$dirpart/$file" && continue
33042 fdir=`$as_dirname -- "$file" ||
33043$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33044 X"$file" : 'X\(//\)[^/]' \| \
33045 X"$file" : 'X\(//\)$' \| \
33046 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33047$as_echo X"$file" |
33048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33049 s//\1/
33050 q
33051 }
33052 /^X\(\/\/\)[^/].*/{
33053 s//\1/
33054 q
33055 }
33056 /^X\(\/\/\)$/{
33057 s//\1/
33058 q
33059 }
33060 /^X\(\/\).*/{
33061 s//\1/
33062 q
33063 }
33064 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033065 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033066 # echo "creating $dirpart/$file"
33067 echo '# dummy' > "$dirpart/$file"
33068 done
33069 done
33070}
33071 ;;
33072 "libtool":C)
33073
33074 # See if we are running on zsh, and set the options which allow our
33075 # commands through without removal of \ escapes.
33076 if test -n "${ZSH_VERSION+set}" ; then
33077 setopt NO_GLOB_SUBST
33078 fi
33079
33080 cfgfile="${ofile}T"
33081 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33082 $RM "$cfgfile"
33083
33084 cat <<_LT_EOF >> "$cfgfile"
33085#! $SHELL
33086
33087# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33088# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33089# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33090# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33091#
33092# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000033093# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033094# Written by Gordon Matzigkeit, 1996
33095#
33096# This file is part of GNU Libtool.
33097#
33098# GNU Libtool is free software; you can redistribute it and/or
33099# modify it under the terms of the GNU General Public License as
33100# published by the Free Software Foundation; either version 2 of
33101# the License, or (at your option) any later version.
33102#
33103# As a special exception to the GNU General Public License,
33104# if you distribute this file as part of a program or library that
33105# is built using GNU Libtool, you may include this file under the
33106# same distribution terms that you use for the rest of that program.
33107#
33108# GNU Libtool is distributed in the hope that it will be useful,
33109# but WITHOUT ANY WARRANTY; without even the implied warranty of
33110# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33111# GNU General Public License for more details.
33112#
33113# You should have received a copy of the GNU General Public License
33114# along with GNU Libtool; see the file COPYING. If not, a copy
33115# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33116# obtained by writing to the Free Software Foundation, Inc.,
33117# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33118
33119
33120# The names of the tagged configurations supported by this script.
33121available_tags="CXX "
33122
33123# ### BEGIN LIBTOOL CONFIG
33124
33125# A sed program that does not truncate output.
33126SED=$lt_SED
33127
33128# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33129Xsed="\$SED -e 1s/^X//"
33130
33131# A grep program that handles long lines.
33132GREP=$lt_GREP
33133
33134# An ERE matcher.
33135EGREP=$lt_EGREP
33136
33137# A literal string matcher.
33138FGREP=$lt_FGREP
33139
33140# Which release of libtool.m4 was used?
33141macro_version=$macro_version
33142macro_revision=$macro_revision
33143
33144# Assembler program.
cristy18304f92009-11-22 15:48:26 +000033145AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000033146
33147# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000033148DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000033149
33150# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000033151OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000033152
33153# Whether or not to build shared libraries.
33154build_libtool_libs=$enable_shared
33155
33156# Whether or not to build static libraries.
33157build_old_libs=$enable_static
33158
33159# What type of objects to build.
33160pic_mode=$pic_mode
33161
33162# Whether or not to optimize for fast installation.
33163fast_install=$enable_fast_install
33164
33165# The host system.
33166host_alias=$host_alias
33167host=$host
33168host_os=$host_os
33169
33170# The build system.
33171build_alias=$build_alias
33172build=$build
33173build_os=$build_os
33174
33175# A BSD- or MS-compatible name lister.
33176NM=$lt_NM
33177
33178# Whether we need soft or hard links.
33179LN_S=$lt_LN_S
33180
33181# What is the maximum length of a command?
33182max_cmd_len=$max_cmd_len
33183
33184# Object file suffix (normally "o").
33185objext=$ac_objext
33186
33187# Executable file suffix (normally "").
33188exeext=$exeext
33189
33190# whether the shell understands "unset".
33191lt_unset=$lt_unset
33192
33193# turn spaces into newlines.
33194SP2NL=$lt_lt_SP2NL
33195
33196# turn newlines into spaces.
33197NL2SP=$lt_lt_NL2SP
33198
cristy18304f92009-11-22 15:48:26 +000033199# How to create reloadable object files.
33200reload_flag=$lt_reload_flag
33201reload_cmds=$lt_reload_cmds
33202
cristy3ed852e2009-09-05 21:47:34 +000033203# Method to check whether dependent libraries are shared objects.
33204deplibs_check_method=$lt_deplibs_check_method
33205
33206# Command to use when deplibs_check_method == "file_magic".
33207file_magic_cmd=$lt_file_magic_cmd
33208
33209# The archiver.
33210AR=$lt_AR
33211AR_FLAGS=$lt_AR_FLAGS
33212
33213# A symbol stripping program.
33214STRIP=$lt_STRIP
33215
33216# Commands used to install an old-style archive.
33217RANLIB=$lt_RANLIB
33218old_postinstall_cmds=$lt_old_postinstall_cmds
33219old_postuninstall_cmds=$lt_old_postuninstall_cmds
33220
33221# A C compiler.
33222LTCC=$lt_CC
33223
33224# LTCC compiler flags.
33225LTCFLAGS=$lt_CFLAGS
33226
33227# Take the output of nm and produce a listing of raw symbols and C names.
33228global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33229
33230# Transform the output of nm in a proper C declaration.
33231global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33232
33233# Transform the output of nm in a C name address pair.
33234global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33235
33236# Transform the output of nm in a C name address pair when lib prefix is needed.
33237global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33238
33239# The name of the directory that contains temporary libtool files.
33240objdir=$objdir
33241
cristy18304f92009-11-22 15:48:26 +000033242# Shell to use when invoking shell scripts.
33243SHELL=$lt_SHELL
33244
33245# An echo program that does not interpret backslashes.
33246ECHO=$lt_ECHO
33247
cristy3ed852e2009-09-05 21:47:34 +000033248# Used to examine libraries when file_magic_cmd begins with "file".
33249MAGIC_CMD=$MAGIC_CMD
33250
33251# Must we lock files when doing compilation?
33252need_locks=$lt_need_locks
33253
33254# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33255DSYMUTIL=$lt_DSYMUTIL
33256
33257# Tool to change global to local symbols on Mac OS X.
33258NMEDIT=$lt_NMEDIT
33259
33260# Tool to manipulate fat objects and archives on Mac OS X.
33261LIPO=$lt_LIPO
33262
33263# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33264OTOOL=$lt_OTOOL
33265
33266# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33267OTOOL64=$lt_OTOOL64
33268
33269# Old archive suffix (normally "a").
33270libext=$libext
33271
33272# Shared library suffix (normally ".so").
33273shrext_cmds=$lt_shrext_cmds
33274
33275# The commands to extract the exported symbol list from a shared archive.
33276extract_expsyms_cmds=$lt_extract_expsyms_cmds
33277
33278# Variables whose values should be saved in libtool wrapper scripts and
33279# restored at link time.
33280variables_saved_for_relink=$lt_variables_saved_for_relink
33281
33282# Do we need the "lib" prefix for modules?
33283need_lib_prefix=$need_lib_prefix
33284
33285# Do we need a version for libraries?
33286need_version=$need_version
33287
33288# Library versioning type.
33289version_type=$version_type
33290
33291# Shared library runtime path variable.
33292runpath_var=$runpath_var
33293
33294# Shared library path variable.
33295shlibpath_var=$shlibpath_var
33296
33297# Is shlibpath searched before the hard-coded library search path?
33298shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33299
33300# Format of library name prefix.
33301libname_spec=$lt_libname_spec
33302
33303# List of archive names. First name is the real one, the rest are links.
33304# The last name is the one that the linker finds with -lNAME
33305library_names_spec=$lt_library_names_spec
33306
33307# The coded name of the library, if different from the real name.
33308soname_spec=$lt_soname_spec
33309
33310# Command to use after installation of a shared archive.
33311postinstall_cmds=$lt_postinstall_cmds
33312
33313# Command to use after uninstallation of a shared archive.
33314postuninstall_cmds=$lt_postuninstall_cmds
33315
33316# Commands used to finish a libtool library installation in a directory.
33317finish_cmds=$lt_finish_cmds
33318
33319# As "finish_cmds", except a single script fragment to be evaled but
33320# not shown.
33321finish_eval=$lt_finish_eval
33322
33323# Whether we should hardcode library paths into libraries.
33324hardcode_into_libs=$hardcode_into_libs
33325
33326# Compile-time system search path for libraries.
33327sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33328
33329# Run-time system search path for libraries.
33330sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33331
33332# Whether dlopen is supported.
33333dlopen_support=$enable_dlopen
33334
33335# Whether dlopen of programs is supported.
33336dlopen_self=$enable_dlopen_self
33337
33338# Whether dlopen of statically linked programs is supported.
33339dlopen_self_static=$enable_dlopen_self_static
33340
33341# Commands to strip libraries.
33342old_striplib=$lt_old_striplib
33343striplib=$lt_striplib
33344
33345
33346# The linker used to build libraries.
33347LD=$lt_LD
33348
33349# Commands used to build an old-style archive.
33350old_archive_cmds=$lt_old_archive_cmds
33351
33352# A language specific compiler.
33353CC=$lt_compiler
33354
33355# Is the compiler the GNU compiler?
33356with_gcc=$GCC
33357
33358# Compiler flag to turn off builtin functions.
33359no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33360
33361# How to pass a linker flag through the compiler.
33362wl=$lt_lt_prog_compiler_wl
33363
33364# Additional compiler flags for building library objects.
33365pic_flag=$lt_lt_prog_compiler_pic
33366
33367# Compiler flag to prevent dynamic linking.
33368link_static_flag=$lt_lt_prog_compiler_static
33369
33370# Does compiler simultaneously support -c and -o options?
33371compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33372
33373# Whether or not to add -lc for building shared libraries.
33374build_libtool_need_lc=$archive_cmds_need_lc
33375
33376# Whether or not to disallow shared libs when runtime libs are static.
33377allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33378
33379# Compiler flag to allow reflexive dlopens.
33380export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33381
33382# Compiler flag to generate shared objects directly from archives.
33383whole_archive_flag_spec=$lt_whole_archive_flag_spec
33384
33385# Whether the compiler copes with passing no objects directly.
33386compiler_needs_object=$lt_compiler_needs_object
33387
33388# Create an old-style archive from a shared archive.
33389old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33390
33391# Create a temporary old-style archive to link instead of a shared archive.
33392old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33393
33394# Commands used to build a shared archive.
33395archive_cmds=$lt_archive_cmds
33396archive_expsym_cmds=$lt_archive_expsym_cmds
33397
33398# Commands used to build a loadable module if different from building
33399# a shared archive.
33400module_cmds=$lt_module_cmds
33401module_expsym_cmds=$lt_module_expsym_cmds
33402
33403# Whether we are building with GNU ld or not.
33404with_gnu_ld=$lt_with_gnu_ld
33405
33406# Flag that allows shared libraries with undefined symbols to be built.
33407allow_undefined_flag=$lt_allow_undefined_flag
33408
33409# Flag that enforces no undefined symbols.
33410no_undefined_flag=$lt_no_undefined_flag
33411
33412# Flag to hardcode \$libdir into a binary during linking.
33413# This must work even if \$libdir does not exist
33414hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33415
33416# If ld is used when linking, flag to hardcode \$libdir into a binary
33417# during linking. This must work even if \$libdir does not exist.
33418hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33419
33420# Whether we need a single "-rpath" flag with a separated argument.
33421hardcode_libdir_separator=$lt_hardcode_libdir_separator
33422
33423# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33424# DIR into the resulting binary.
33425hardcode_direct=$hardcode_direct
33426
33427# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33428# DIR into the resulting binary and the resulting library dependency is
33429# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33430# library is relocated.
33431hardcode_direct_absolute=$hardcode_direct_absolute
33432
33433# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33434# into the resulting binary.
33435hardcode_minus_L=$hardcode_minus_L
33436
33437# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33438# into the resulting binary.
33439hardcode_shlibpath_var=$hardcode_shlibpath_var
33440
33441# Set to "yes" if building a shared library automatically hardcodes DIR
33442# into the library and all subsequent libraries and executables linked
33443# against it.
33444hardcode_automatic=$hardcode_automatic
33445
33446# Set to yes if linker adds runtime paths of dependent libraries
33447# to runtime path list.
33448inherit_rpath=$inherit_rpath
33449
33450# Whether libtool must link a program against all its dependency libraries.
33451link_all_deplibs=$link_all_deplibs
33452
33453# Fix the shell variable \$srcfile for the compiler.
33454fix_srcfile_path=$lt_fix_srcfile_path
33455
33456# Set to "yes" if exported symbols are required.
33457always_export_symbols=$always_export_symbols
33458
33459# The commands to list exported symbols.
33460export_symbols_cmds=$lt_export_symbols_cmds
33461
33462# Symbols that should not be listed in the preloaded symbols.
33463exclude_expsyms=$lt_exclude_expsyms
33464
33465# Symbols that must always be exported.
33466include_expsyms=$lt_include_expsyms
33467
33468# Commands necessary for linking programs (against libraries) with templates.
33469prelink_cmds=$lt_prelink_cmds
33470
33471# Specify filename containing input files.
33472file_list_spec=$lt_file_list_spec
33473
33474# How to hardcode a shared library path into an executable.
33475hardcode_action=$hardcode_action
33476
33477# The directories searched by this compiler when creating a shared library.
33478compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33479
33480# Dependencies to place before and after the objects being linked to
33481# create a shared library.
33482predep_objects=$lt_predep_objects
33483postdep_objects=$lt_postdep_objects
33484predeps=$lt_predeps
33485postdeps=$lt_postdeps
33486
33487# The library search path used internally by the compiler when linking
33488# a shared library.
33489compiler_lib_search_path=$lt_compiler_lib_search_path
33490
33491# ### END LIBTOOL CONFIG
33492
33493_LT_EOF
33494
33495 case $host_os in
33496 aix3*)
33497 cat <<\_LT_EOF >> "$cfgfile"
33498# AIX sometimes has problems with the GCC collect2 program. For some
33499# reason, if we set the COLLECT_NAMES environment variable, the problems
33500# vanish in a puff of smoke.
33501if test "X${COLLECT_NAMES+set}" != Xset; then
33502 COLLECT_NAMES=
33503 export COLLECT_NAMES
33504fi
33505_LT_EOF
33506 ;;
33507 esac
33508
33509
33510ltmain="$ac_aux_dir/ltmain.sh"
33511
33512
33513 # We use sed instead of cat because bash on DJGPP gets confused if
33514 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33515 # text mode, it properly converts lines to CR/LF. This bash problem
33516 # is reportedly fixed, but why not run on old versions too?
33517 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33518 || (rm -f "$cfgfile"; exit 1)
33519
33520 case $xsi_shell in
33521 yes)
33522 cat << \_LT_EOF >> "$cfgfile"
33523
33524# func_dirname file append nondir_replacement
33525# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33526# otherwise set result to NONDIR_REPLACEMENT.
33527func_dirname ()
33528{
33529 case ${1} in
33530 */*) func_dirname_result="${1%/*}${2}" ;;
33531 * ) func_dirname_result="${3}" ;;
33532 esac
33533}
33534
33535# func_basename file
33536func_basename ()
33537{
33538 func_basename_result="${1##*/}"
33539}
33540
33541# func_dirname_and_basename file append nondir_replacement
33542# perform func_basename and func_dirname in a single function
33543# call:
33544# dirname: Compute the dirname of FILE. If nonempty,
33545# add APPEND to the result, otherwise set result
33546# to NONDIR_REPLACEMENT.
33547# value returned in "$func_dirname_result"
33548# basename: Compute filename of FILE.
33549# value retuned in "$func_basename_result"
33550# Implementation must be kept synchronized with func_dirname
33551# and func_basename. For efficiency, we do not delegate to
33552# those functions but instead duplicate the functionality here.
33553func_dirname_and_basename ()
33554{
33555 case ${1} in
33556 */*) func_dirname_result="${1%/*}${2}" ;;
33557 * ) func_dirname_result="${3}" ;;
33558 esac
33559 func_basename_result="${1##*/}"
33560}
33561
33562# func_stripname prefix suffix name
33563# strip PREFIX and SUFFIX off of NAME.
33564# PREFIX and SUFFIX must not contain globbing or regex special
33565# characters, hashes, percent signs, but SUFFIX may contain a leading
33566# dot (in which case that matches only a dot).
33567func_stripname ()
33568{
33569 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33570 # positional parameters, so assign one to ordinary parameter first.
33571 func_stripname_result=${3}
33572 func_stripname_result=${func_stripname_result#"${1}"}
33573 func_stripname_result=${func_stripname_result%"${2}"}
33574}
33575
33576# func_opt_split
33577func_opt_split ()
33578{
33579 func_opt_split_opt=${1%%=*}
33580 func_opt_split_arg=${1#*=}
33581}
33582
33583# func_lo2o object
33584func_lo2o ()
33585{
33586 case ${1} in
33587 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33588 *) func_lo2o_result=${1} ;;
33589 esac
33590}
33591
33592# func_xform libobj-or-source
33593func_xform ()
33594{
33595 func_xform_result=${1%.*}.lo
33596}
33597
33598# func_arith arithmetic-term...
33599func_arith ()
33600{
33601 func_arith_result=$(( $* ))
33602}
33603
33604# func_len string
33605# STRING may not start with a hyphen.
33606func_len ()
33607{
33608 func_len_result=${#1}
33609}
33610
33611_LT_EOF
33612 ;;
33613 *) # Bourne compatible functions.
33614 cat << \_LT_EOF >> "$cfgfile"
33615
33616# func_dirname file append nondir_replacement
33617# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33618# otherwise set result to NONDIR_REPLACEMENT.
33619func_dirname ()
33620{
33621 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000033622 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000033623 if test "X$func_dirname_result" = "X${1}"; then
33624 func_dirname_result="${3}"
33625 else
33626 func_dirname_result="$func_dirname_result${2}"
33627 fi
33628}
33629
33630# func_basename file
33631func_basename ()
33632{
cristy18304f92009-11-22 15:48:26 +000033633 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000033634}
33635
33636
33637# func_stripname prefix suffix name
33638# strip PREFIX and SUFFIX off of NAME.
33639# PREFIX and SUFFIX must not contain globbing or regex special
33640# characters, hashes, percent signs, but SUFFIX may contain a leading
33641# dot (in which case that matches only a dot).
33642# func_strip_suffix prefix name
33643func_stripname ()
33644{
33645 case ${2} in
cristy18304f92009-11-22 15:48:26 +000033646 .*) func_stripname_result=`$ECHO "X${3}" \
33647 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
33648 *) func_stripname_result=`$ECHO "X${3}" \
33649 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000033650 esac
33651}
33652
33653# sed scripts:
33654my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33655my_sed_long_arg='1s/^-[^=]*=//'
33656
33657# func_opt_split
33658func_opt_split ()
33659{
cristy18304f92009-11-22 15:48:26 +000033660 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
33661 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000033662}
33663
33664# func_lo2o object
33665func_lo2o ()
33666{
cristy18304f92009-11-22 15:48:26 +000033667 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000033668}
33669
33670# func_xform libobj-or-source
33671func_xform ()
33672{
cristy18304f92009-11-22 15:48:26 +000033673 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000033674}
33675
33676# func_arith arithmetic-term...
33677func_arith ()
33678{
33679 func_arith_result=`expr "$@"`
33680}
33681
33682# func_len string
33683# STRING may not start with a hyphen.
33684func_len ()
33685{
33686 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33687}
33688
33689_LT_EOF
33690esac
33691
33692case $lt_shell_append in
33693 yes)
33694 cat << \_LT_EOF >> "$cfgfile"
33695
33696# func_append var value
33697# Append VALUE to the end of shell variable VAR.
33698func_append ()
33699{
33700 eval "$1+=\$2"
33701}
33702_LT_EOF
33703 ;;
33704 *)
33705 cat << \_LT_EOF >> "$cfgfile"
33706
33707# func_append var value
33708# Append VALUE to the end of shell variable VAR.
33709func_append ()
33710{
33711 eval "$1=\$$1\$2"
33712}
33713
33714_LT_EOF
33715 ;;
33716 esac
33717
33718
33719 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33720 || (rm -f "$cfgfile"; exit 1)
33721
33722 mv -f "$cfgfile" "$ofile" ||
33723 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33724 chmod +x "$ofile"
33725
33726
33727 cat <<_LT_EOF >> "$ofile"
33728
33729# ### BEGIN LIBTOOL TAG CONFIG: CXX
33730
33731# The linker used to build libraries.
33732LD=$lt_LD_CXX
33733
33734# Commands used to build an old-style archive.
33735old_archive_cmds=$lt_old_archive_cmds_CXX
33736
33737# A language specific compiler.
33738CC=$lt_compiler_CXX
33739
33740# Is the compiler the GNU compiler?
33741with_gcc=$GCC_CXX
33742
33743# Compiler flag to turn off builtin functions.
33744no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33745
33746# How to pass a linker flag through the compiler.
33747wl=$lt_lt_prog_compiler_wl_CXX
33748
33749# Additional compiler flags for building library objects.
33750pic_flag=$lt_lt_prog_compiler_pic_CXX
33751
33752# Compiler flag to prevent dynamic linking.
33753link_static_flag=$lt_lt_prog_compiler_static_CXX
33754
33755# Does compiler simultaneously support -c and -o options?
33756compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33757
33758# Whether or not to add -lc for building shared libraries.
33759build_libtool_need_lc=$archive_cmds_need_lc_CXX
33760
33761# Whether or not to disallow shared libs when runtime libs are static.
33762allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33763
33764# Compiler flag to allow reflexive dlopens.
33765export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33766
33767# Compiler flag to generate shared objects directly from archives.
33768whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33769
33770# Whether the compiler copes with passing no objects directly.
33771compiler_needs_object=$lt_compiler_needs_object_CXX
33772
33773# Create an old-style archive from a shared archive.
33774old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33775
33776# Create a temporary old-style archive to link instead of a shared archive.
33777old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33778
33779# Commands used to build a shared archive.
33780archive_cmds=$lt_archive_cmds_CXX
33781archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33782
33783# Commands used to build a loadable module if different from building
33784# a shared archive.
33785module_cmds=$lt_module_cmds_CXX
33786module_expsym_cmds=$lt_module_expsym_cmds_CXX
33787
33788# Whether we are building with GNU ld or not.
33789with_gnu_ld=$lt_with_gnu_ld_CXX
33790
33791# Flag that allows shared libraries with undefined symbols to be built.
33792allow_undefined_flag=$lt_allow_undefined_flag_CXX
33793
33794# Flag that enforces no undefined symbols.
33795no_undefined_flag=$lt_no_undefined_flag_CXX
33796
33797# Flag to hardcode \$libdir into a binary during linking.
33798# This must work even if \$libdir does not exist
33799hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33800
33801# If ld is used when linking, flag to hardcode \$libdir into a binary
33802# during linking. This must work even if \$libdir does not exist.
33803hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33804
33805# Whether we need a single "-rpath" flag with a separated argument.
33806hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33807
33808# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33809# DIR into the resulting binary.
33810hardcode_direct=$hardcode_direct_CXX
33811
33812# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33813# DIR into the resulting binary and the resulting library dependency is
33814# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33815# library is relocated.
33816hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33817
33818# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33819# into the resulting binary.
33820hardcode_minus_L=$hardcode_minus_L_CXX
33821
33822# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33823# into the resulting binary.
33824hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33825
33826# Set to "yes" if building a shared library automatically hardcodes DIR
33827# into the library and all subsequent libraries and executables linked
33828# against it.
33829hardcode_automatic=$hardcode_automatic_CXX
33830
33831# Set to yes if linker adds runtime paths of dependent libraries
33832# to runtime path list.
33833inherit_rpath=$inherit_rpath_CXX
33834
33835# Whether libtool must link a program against all its dependency libraries.
33836link_all_deplibs=$link_all_deplibs_CXX
33837
33838# Fix the shell variable \$srcfile for the compiler.
33839fix_srcfile_path=$lt_fix_srcfile_path_CXX
33840
33841# Set to "yes" if exported symbols are required.
33842always_export_symbols=$always_export_symbols_CXX
33843
33844# The commands to list exported symbols.
33845export_symbols_cmds=$lt_export_symbols_cmds_CXX
33846
33847# Symbols that should not be listed in the preloaded symbols.
33848exclude_expsyms=$lt_exclude_expsyms_CXX
33849
33850# Symbols that must always be exported.
33851include_expsyms=$lt_include_expsyms_CXX
33852
33853# Commands necessary for linking programs (against libraries) with templates.
33854prelink_cmds=$lt_prelink_cmds_CXX
33855
33856# Specify filename containing input files.
33857file_list_spec=$lt_file_list_spec_CXX
33858
33859# How to hardcode a shared library path into an executable.
33860hardcode_action=$hardcode_action_CXX
33861
33862# The directories searched by this compiler when creating a shared library.
33863compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33864
33865# Dependencies to place before and after the objects being linked to
33866# create a shared library.
33867predep_objects=$lt_predep_objects_CXX
33868postdep_objects=$lt_postdep_objects_CXX
33869predeps=$lt_predeps_CXX
33870postdeps=$lt_postdeps_CXX
33871
33872# The library search path used internally by the compiler when linking
33873# a shared library.
33874compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33875
33876# ### END LIBTOOL TAG CONFIG: CXX
33877_LT_EOF
33878
33879 ;;
33880 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
33881 "Magick-config.in":C) chmod +x magick/Magick-config ;;
33882 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
33883 "Wand-config.in":C) chmod +x wand/Wand-config ;;
33884 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
33885 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
33886
33887 esac
33888done # for ac_tag
33889
33890
cristy8b350f62009-11-15 23:12:43 +000033891as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000033892_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000033893ac_clean_files=$ac_clean_files_save
33894
33895test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000033896 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033897
33898
33899# configure is writing to config.log, and then calls config.status.
33900# config.status does its own redirection, appending to config.log.
33901# Unfortunately, on DOS this fails, as config.log is still kept open
33902# by configure, so config.status won't be able to write to it; its
33903# output is simply discarded. So we exec the FD to /dev/null,
33904# effectively closing config.log, so it can be properly (re)opened and
33905# appended to by config.status. When coming back to configure, we
33906# need to make the FD available again.
33907if test "$no_create" != yes; then
33908 ac_cs_success=:
33909 ac_config_status_args=
33910 test "$silent" = yes &&
33911 ac_config_status_args="$ac_config_status_args --quiet"
33912 exec 5>/dev/null
33913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33914 exec 5>>config.log
33915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33916 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000033917 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000033918fi
33919if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000033920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000033921$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33922fi
33923
33924
33925rm -f magick-version
33926
33927result_ghostscript_font_dir='none'
33928if test "${ghostscript_font_dir}x" != 'x'; then
33929 result_ghostscript_font_dir=$ghostscript_font_dir
33930fi
33931
33932result_windows_font_dir='none'
33933if test "${windows_font_dir}x" != 'x'; then
33934 result_windows_font_dir=${windows_font_dir}
33935fi
33936
cristy8b350f62009-11-15 23:12:43 +000033937{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000033938ImageMagick is configured as follows. Please verify that this configuration
33939matches your expectations.
33940
33941Host system type: $host
33942Build system type: $build
33943
33944 Option Value
33945-------------------------------------------------------------------------------
33946Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33947Static libraries --enable-static=$enable_static $libtool_build_static_libs
33948Module support --with-modules=$with_modules $with_modules
33949GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33950Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33951High Dynamic Range Imagery
33952 --enable-hdri=$enable_hdri $enable_hdri
33953
33954Delegate Configuration:
33955BZLIB --with-bzlib=$with_bzlib $have_bzlib
33956Autotrace --with-autotrace=$with_autotrace $have_autotrace
33957DJVU --with-djvu=$with_djvu $have_djvu
33958DPS --with-dps=$with_dps $have_dps
33959FFTW --with-fftw=$with_fftw $have_fftw
33960FlashPIX --with-fpx=$with_fpx $have_fpx
33961FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33962FreeType --with-freetype=$with_freetype $have_freetype
33963GhostPCL None $PCLDelegate ($PCLVersion)
33964GhostXPS None $XPSDelegate ($XPSVersion)
33965Ghostscript None $PSDelegate ($GSVersion)
33966Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33967Ghostscript lib --with-gslib=$with_gslib $have_gslib
33968Graphviz --with-gvc=$with_gvc $have_gvc
33969JBIG --with-jbig=$with_jbig $have_jbig
33970JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33971JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33972LCMS --with-lcms=$with_lcms $have_lcms
33973LQR --with-lqr=$with_lqr $have_lqr
33974Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33975OpenEXR --with-openexr=$with_openexr $have_openexr
33976PERL --with-perl=$with_perl $have_perl
33977PNG --with-png=$with_png $have_png
33978RSVG --with-rsvg=$with_rsvg $have_rsvg
33979TIFF --with-tiff=$with_tiff $have_tiff
33980Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33981WMF --with-wmf=$with_wmf $have_wmf
33982X11 --with-x=$with_x $have_x
33983XML --with-xml=$with_xml $have_xml
33984ZLIB --with-zlib=$with_zlib $have_zlib
33985
33986X11 Configuration:
33987 X_CFLAGS = $X_CFLAGS
33988 X_PRE_LIBS = $X_PRE_LIBS
33989 X_LIBS = $X_LIBS
33990 X_EXTRA_LIBS = $X_EXTRA_LIBS
33991
33992Options used to compile and link:
33993 PREFIX = $PREFIX_DIR
33994 EXEC-PREFIX = $EXEC_PREFIX_DIR
33995 VERSION = $PACKAGE_VERSION
33996 CC = $CC
33997 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000033998 CPPFLAGS = $MAGICK_CPPFLAGS
33999 PCFLAGS = $MAGICK_PCFLAGS
34000 DEFS = $DEFS
34001 LDFLAGS = $LDFLAGS
34002 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34003 LIBS = $MAGICK_LIBS
34004 CXX = $CXX
34005 CXXFLAGS = $CXXFLAGS
34006" >&5
34007$as_echo "
34008ImageMagick is configured as follows. Please verify that this configuration
34009matches your expectations.
34010
34011Host system type: $host
34012Build system type: $build
34013
34014 Option Value
34015-------------------------------------------------------------------------------
34016Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34017Static libraries --enable-static=$enable_static $libtool_build_static_libs
34018Module support --with-modules=$with_modules $with_modules
34019GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34020Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34021High Dynamic Range Imagery
34022 --enable-hdri=$enable_hdri $enable_hdri
34023
34024Delegate Configuration:
34025BZLIB --with-bzlib=$with_bzlib $have_bzlib
34026Autotrace --with-autotrace=$with_autotrace $have_autotrace
34027DJVU --with-djvu=$with_djvu $have_djvu
34028DPS --with-dps=$with_dps $have_dps
34029FFTW --with-fftw=$with_fftw $have_fftw
34030FlashPIX --with-fpx=$with_fpx $have_fpx
34031FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34032FreeType --with-freetype=$with_freetype $have_freetype
34033GhostPCL None $PCLDelegate ($PCLVersion)
34034GhostXPS None $XPSDelegate ($XPSVersion)
34035Ghostscript None $PSDelegate ($GSVersion)
34036Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34037Ghostscript lib --with-gslib=$with_gslib $have_gslib
34038Graphviz --with-gvc=$with_gvc $have_gvc
34039JBIG --with-jbig=$with_jbig $have_jbig
34040JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34041JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34042LCMS --with-lcms=$with_lcms $have_lcms
34043LQR --with-lqr=$with_lqr $have_lqr
34044Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34045OpenEXR --with-openexr=$with_openexr $have_openexr
34046PERL --with-perl=$with_perl $have_perl
34047PNG --with-png=$with_png $have_png
34048RSVG --with-rsvg=$with_rsvg $have_rsvg
34049TIFF --with-tiff=$with_tiff $have_tiff
34050Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
34051WMF --with-wmf=$with_wmf $have_wmf
34052X11 --with-x=$with_x $have_x
34053XML --with-xml=$with_xml $have_xml
34054ZLIB --with-zlib=$with_zlib $have_zlib
34055
34056X11 Configuration:
34057 X_CFLAGS = $X_CFLAGS
34058 X_PRE_LIBS = $X_PRE_LIBS
34059 X_LIBS = $X_LIBS
34060 X_EXTRA_LIBS = $X_EXTRA_LIBS
34061
34062Options used to compile and link:
34063 PREFIX = $PREFIX_DIR
34064 EXEC-PREFIX = $EXEC_PREFIX_DIR
34065 VERSION = $PACKAGE_VERSION
34066 CC = $CC
34067 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034068 CPPFLAGS = $MAGICK_CPPFLAGS
34069 PCFLAGS = $MAGICK_PCFLAGS
34070 DEFS = $DEFS
34071 LDFLAGS = $LDFLAGS
34072 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34073 LIBS = $MAGICK_LIBS
34074 CXX = $CXX
34075 CXXFLAGS = $CXXFLAGS
34076" >&6; }