blob: c059d7c1d0b9b554ae3eda40207db85c2096b699 [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
cristy3ed852e2009-09-05 21:47:34 +00001040RANLIB
1041LD
1042FGREP
1043EGREP
1044GREP
1045SED
1046CPP
cristy95646052009-11-28 23:05:30 +00001047am__fastdepCXX_FALSE
1048am__fastdepCXX_TRUE
1049CXXDEPMODE
1050ac_ct_CXX
1051CXXFLAGS
1052CXX
cristy3ed852e2009-09-05 21:47:34 +00001053am__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
cristy3ed852e2009-09-05 21:47:34 +00001258CXX
1259CXXFLAGS
1260CCC
cristy95646052009-11-28 23:05:30 +00001261CPP
cristy3ed852e2009-09-05 21:47:34 +00001262PKG_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>
cristy3ed852e2009-09-05 21:47:34 +00002002 CXX C++ compiler command
2003 CXXFLAGS C++ compiler flags
cristy95646052009-11-28 23:05:30 +00002004 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002005 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
cristy8b350f62009-11-15 23:12:43 +00002149# ac_fn_cxx_try_compile LINENO
2150# ----------------------------
2151# Try to compile conftest.$ac_ext, and return whether this succeeded.
2152ac_fn_cxx_try_compile ()
2153{
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 rm -f conftest.$ac_objext
2156 if { { ac_try="$ac_compile"
2157case "(($ac_try" in
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2160esac
2161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162$as_echo "$ac_try_echo"; } >&5
2163 (eval "$ac_compile") 2>conftest.err
2164 ac_status=$?
2165 if test -s conftest.err; then
2166 grep -v '^ *+' conftest.err >conftest.er1
2167 cat conftest.er1 >&5
2168 mv -f conftest.er1 conftest.err
2169 fi
2170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171 test $ac_status = 0; } && {
2172 test -z "$ac_cxx_werror_flag" ||
2173 test ! -s conftest.err
2174 } && test -s conftest.$ac_objext; then :
2175 ac_retval=0
2176else
2177 $as_echo "$as_me: failed program was:" >&5
2178sed 's/^/| /' conftest.$ac_ext >&5
2179
2180 ac_retval=1
2181fi
2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002183 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002184
2185} # ac_fn_cxx_try_compile
2186
cristy95646052009-11-28 23:05:30 +00002187# ac_fn_c_try_cpp LINENO
2188# ----------------------
2189# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2190ac_fn_c_try_cpp ()
2191{
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } >/dev/null && {
2209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2210 test ! -s conftest.err
2211 }; 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;}
2220 as_fn_set_status $ac_retval
2221
2222} # ac_fn_c_try_cpp
2223
cristy8b350f62009-11-15 23:12:43 +00002224# 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#
cristy679ed8e2009-12-05 02:37:41 +00003992# Standards compliance definitions
3993#
3994
3995$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3996
3997
3998$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3999
4000
4001#
cristy3ed852e2009-09-05 21:47:34 +00004002# Evaluate shell variable equivalents to Makefile directory variables
4003#
4004if test "x$prefix" = xNONE; then
4005 prefix=$ac_default_prefix
4006fi
4007# Let make expand exec_prefix.
4008if test "x$exec_prefix" = xNONE; then
4009 exec_prefix='${prefix}'
4010fi
4011
4012#
4013eval "eval PREFIX_DIR=${prefix}"
4014
4015eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4016
4017eval "eval BIN_DIR=$bindir"
4018
4019eval "eval SBIN_DIR=$sbindir"
4020
4021eval "eval LIBEXEC_DIR=$libexecdir"
4022
4023eval "eval DATA_DIR=$datadir"
4024
4025eval "eval SYSCONF_DIR=$sysconfdir"
4026
4027eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4028
4029eval "eval LOCALSTATE_DIR=$localstatedir"
4030
4031eval "eval LIB_DIR=$libdir"
4032
4033eval "eval INCLUDE_DIR=$includedir"
4034
4035eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4036
4037eval "eval INFO_DIR=$infodir"
4038
4039eval "eval MAN_DIR=$mandir"
4040
4041
4042# Get full paths to source and build directories
4043srcdirfull="`cd $srcdir && pwd`"
4044builddir="`pwd`"
4045
4046#
4047# Compute variables useful for running uninstalled software.
4048#
4049MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4050MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4051MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4052MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4053DIRSEP=':'
4054case "${build_os}" in
4055 mingw* )
4056 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4057 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4058 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4059 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4060 DIRSEP=';'
4061 ;;
4062esac
4063case "${host_os}" in
4064 mingw* )
4065 DIRSEP=';'
4066 ;;
4067esac
4068
4069
4070
4071
4072
4073
4074# Check for programs
4075ac_ext=c
4076ac_cpp='$CPP $CPPFLAGS'
4077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080if test -n "$ac_tool_prefix"; then
4081 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4082set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004084$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004085if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004086 $as_echo_n "(cached) " >&6
4087else
4088 if test -n "$CC"; then
4089 ac_cv_prog_CC="$CC" # Let the user override the test.
4090else
4091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092for as_dir in $PATH
4093do
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004096 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4098 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004100 break 2
4101 fi
4102done
cristy8b350f62009-11-15 23:12:43 +00004103 done
cristy3ed852e2009-09-05 21:47:34 +00004104IFS=$as_save_IFS
4105
4106fi
4107fi
4108CC=$ac_cv_prog_CC
4109if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004111$as_echo "$CC" >&6; }
4112else
cristy8b350f62009-11-15 23:12:43 +00004113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004114$as_echo "no" >&6; }
4115fi
4116
4117
4118fi
4119if test -z "$ac_cv_prog_CC"; then
4120 ac_ct_CC=$CC
4121 # Extract the first word of "gcc", so it can be a program name with args.
4122set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004124$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004125if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004126 $as_echo_n "(cached) " >&6
4127else
4128 if test -n "$ac_ct_CC"; then
4129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4130else
4131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132for as_dir in $PATH
4133do
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004136 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4138 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004140 break 2
4141 fi
4142done
cristy8b350f62009-11-15 23:12:43 +00004143 done
cristy3ed852e2009-09-05 21:47:34 +00004144IFS=$as_save_IFS
4145
4146fi
4147fi
4148ac_ct_CC=$ac_cv_prog_ac_ct_CC
4149if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004151$as_echo "$ac_ct_CC" >&6; }
4152else
cristy8b350f62009-11-15 23:12:43 +00004153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004154$as_echo "no" >&6; }
4155fi
4156
4157 if test "x$ac_ct_CC" = x; then
4158 CC=""
4159 else
4160 case $cross_compiling:$ac_tool_warned in
4161yes:)
cristy8b350f62009-11-15 23:12:43 +00004162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4164ac_tool_warned=yes ;;
4165esac
4166 CC=$ac_ct_CC
4167 fi
4168else
4169 CC="$ac_cv_prog_CC"
4170fi
4171
4172if test -z "$CC"; then
4173 if test -n "$ac_tool_prefix"; then
4174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4175set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004177$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004178if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004179 $as_echo_n "(cached) " >&6
4180else
4181 if test -n "$CC"; then
4182 ac_cv_prog_CC="$CC" # Let the user override the test.
4183else
4184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH
4186do
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004189 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004193 break 2
4194 fi
4195done
cristy8b350f62009-11-15 23:12:43 +00004196 done
cristy3ed852e2009-09-05 21:47:34 +00004197IFS=$as_save_IFS
4198
4199fi
4200fi
4201CC=$ac_cv_prog_CC
4202if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004204$as_echo "$CC" >&6; }
4205else
cristy8b350f62009-11-15 23:12:43 +00004206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004207$as_echo "no" >&6; }
4208fi
4209
4210
4211 fi
4212fi
4213if test -z "$CC"; then
4214 # Extract the first word of "cc", so it can be a program name with args.
4215set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004217$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004218if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004219 $as_echo_n "(cached) " >&6
4220else
4221 if test -n "$CC"; then
4222 ac_cv_prog_CC="$CC" # Let the user override the test.
4223else
4224 ac_prog_rejected=no
4225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH
4227do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004230 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4233 ac_prog_rejected=yes
4234 continue
4235 fi
4236 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004238 break 2
4239 fi
4240done
cristy8b350f62009-11-15 23:12:43 +00004241 done
cristy3ed852e2009-09-05 21:47:34 +00004242IFS=$as_save_IFS
4243
4244if test $ac_prog_rejected = yes; then
4245 # We found a bogon in the path, so make sure we never use it.
4246 set dummy $ac_cv_prog_CC
4247 shift
4248 if test $# != 0; then
4249 # We chose a different compiler from the bogus one.
4250 # However, it has the same basename, so the bogon will be chosen
4251 # first if we set CC to just the basename; use the full file name.
4252 shift
4253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4254 fi
4255fi
4256fi
4257fi
4258CC=$ac_cv_prog_CC
4259if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004261$as_echo "$CC" >&6; }
4262else
cristy8b350f62009-11-15 23:12:43 +00004263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004264$as_echo "no" >&6; }
4265fi
4266
4267
4268fi
4269if test -z "$CC"; then
4270 if test -n "$ac_tool_prefix"; then
4271 for ac_prog in cl.exe
4272 do
4273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4274set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004276$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004277if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004278 $as_echo_n "(cached) " >&6
4279else
4280 if test -n "$CC"; then
4281 ac_cv_prog_CC="$CC" # Let the user override the test.
4282else
4283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284for as_dir in $PATH
4285do
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004288 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004292 break 2
4293 fi
4294done
cristy8b350f62009-11-15 23:12:43 +00004295 done
cristy3ed852e2009-09-05 21:47:34 +00004296IFS=$as_save_IFS
4297
4298fi
4299fi
4300CC=$ac_cv_prog_CC
4301if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004303$as_echo "$CC" >&6; }
4304else
cristy8b350f62009-11-15 23:12:43 +00004305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004306$as_echo "no" >&6; }
4307fi
4308
4309
4310 test -n "$CC" && break
4311 done
4312fi
4313if test -z "$CC"; then
4314 ac_ct_CC=$CC
4315 for ac_prog in cl.exe
4316do
4317 # Extract the first word of "$ac_prog", so it can be a program name with args.
4318set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004320$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004321if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004322 $as_echo_n "(cached) " >&6
4323else
4324 if test -n "$ac_ct_CC"; then
4325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4326else
4327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH
4329do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004332 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004336 break 2
4337 fi
4338done
cristy8b350f62009-11-15 23:12:43 +00004339 done
cristy3ed852e2009-09-05 21:47:34 +00004340IFS=$as_save_IFS
4341
4342fi
4343fi
4344ac_ct_CC=$ac_cv_prog_ac_ct_CC
4345if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004347$as_echo "$ac_ct_CC" >&6; }
4348else
cristy8b350f62009-11-15 23:12:43 +00004349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004350$as_echo "no" >&6; }
4351fi
4352
4353
4354 test -n "$ac_ct_CC" && break
4355done
4356
4357 if test "x$ac_ct_CC" = x; then
4358 CC=""
4359 else
4360 case $cross_compiling:$ac_tool_warned in
4361yes:)
cristy8b350f62009-11-15 23:12:43 +00004362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4364ac_tool_warned=yes ;;
4365esac
4366 CC=$ac_ct_CC
4367 fi
4368fi
4369
4370fi
4371
4372
cristy8b350f62009-11-15 23:12:43 +00004373test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004375as_fn_error "no acceptable C compiler found in \$PATH
4376See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004377
4378# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004379$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004380set X $ac_compile
4381ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004382for ac_option in --version -v -V -qversion; do
4383 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004384case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387esac
cristy8b350f62009-11-15 23:12:43 +00004388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389$as_echo "$ac_try_echo"; } >&5
4390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004391 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004392 if test -s conftest.err; then
4393 sed '10a\
4394... rest of stderr output deleted ...
4395 10q' conftest.err >conftest.er1
4396 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004397 fi
cristycd4c5312009-11-22 01:19:08 +00004398 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }
4401done
cristy3ed852e2009-09-05 21:47:34 +00004402
cristy8b350f62009-11-15 23:12:43 +00004403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004404/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004405
cristy3ed852e2009-09-05 21:47:34 +00004406int
4407main ()
4408{
4409
4410 ;
4411 return 0;
4412}
4413_ACEOF
4414ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004415ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004416# Try to create an executable without -o first, disregard a.out.
4417# It will help us diagnose broken compilers, and finding out an intuition
4418# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4420$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004421ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4422
4423# The possible output files:
4424ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4425
4426ac_rmfiles=
4427for ac_file in $ac_files
4428do
4429 case $ac_file in
4430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4431 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4432 esac
4433done
4434rm -f $ac_rmfiles
4435
cristy8b350f62009-11-15 23:12:43 +00004436if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004437case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440esac
cristy8b350f62009-11-15 23:12:43 +00004441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004443 (eval "$ac_link_default") 2>&5
4444 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004447 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4448# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4449# in a Makefile. We should not override ac_cv_exeext if it was cached,
4450# so that the user can short-circuit this test for compilers unknown to
4451# Autoconf.
4452for ac_file in $ac_files ''
4453do
4454 test -f "$ac_file" || continue
4455 case $ac_file in
4456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4457 ;;
4458 [ab].out )
4459 # We found the default executable, but exeext='' is most
4460 # certainly right.
4461 break;;
4462 *.* )
cristy8b350f62009-11-15 23:12:43 +00004463 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004464 then :; else
4465 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4466 fi
4467 # We set ac_cv_exeext here because the later test for it is not
4468 # safe: cross compilers may not add the suffix if given an `-o'
4469 # argument, so we may need to know it at that point already.
4470 # Even if this section looks crufty: it has the advantage of
4471 # actually working.
4472 break;;
4473 * )
4474 break;;
4475 esac
4476done
4477test "$ac_cv_exeext" = no && ac_cv_exeext=
4478
4479else
4480 ac_file=''
4481fi
cristy8b350f62009-11-15 23:12:43 +00004482if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484$as_echo "no" >&6; }
4485$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004486sed 's/^/| /' conftest.$ac_ext >&5
4487
cristy8b350f62009-11-15 23:12:43 +00004488{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004490{ as_fn_set_status 77
4491as_fn_error "C compiler cannot create executables
4492See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004493else
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4495$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004496fi
cristycd4c5312009-11-22 01:19:08 +00004497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4498$as_echo_n "checking for C compiler default output file name... " >&6; }
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4500$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004501ac_exeext=$ac_cv_exeext
4502
cristycd4c5312009-11-22 01:19:08 +00004503rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004504ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004506$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004507if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004508case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511esac
cristy8b350f62009-11-15 23:12:43 +00004512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004514 (eval "$ac_link") 2>&5
4515 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004518 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4519# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4520# work properly (i.e., refer to `conftest.exe'), while it won't with
4521# `rm'.
4522for ac_file in conftest.exe conftest conftest.*; do
4523 test -f "$ac_file" || continue
4524 case $ac_file in
4525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4526 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4527 break;;
4528 * ) break;;
4529 esac
4530done
4531else
cristy8b350f62009-11-15 23:12:43 +00004532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004534as_fn_error "cannot compute suffix of executables: cannot compile and link
4535See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004536fi
cristycd4c5312009-11-22 01:19:08 +00004537rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004539$as_echo "$ac_cv_exeext" >&6; }
4540
4541rm -f conftest.$ac_ext
4542EXEEXT=$ac_cv_exeext
4543ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545/* end confdefs.h. */
4546#include <stdio.h>
4547int
4548main ()
4549{
4550FILE *f = fopen ("conftest.out", "w");
4551 return ferror (f) || fclose (f) != 0;
4552
4553 ;
4554 return 0;
4555}
4556_ACEOF
4557ac_clean_files="$ac_clean_files conftest.out"
4558# Check that the compiler produces executables we can run. If not, either
4559# the compiler is broken, or we cross compile.
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4561$as_echo_n "checking whether we are cross compiling... " >&6; }
4562if test "$cross_compiling" != yes; then
4563 { { ac_try="$ac_link"
4564case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567esac
4568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569$as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_link") 2>&5
4571 ac_status=$?
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }
4574 if { ac_try='./conftest$ac_cv_exeext'
4575 { { case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578esac
4579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4580$as_echo "$ac_try_echo"; } >&5
4581 (eval "$ac_try") 2>&5
4582 ac_status=$?
4583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4584 test $ac_status = 0; }; }; then
4585 cross_compiling=no
4586 else
4587 if test "$cross_compiling" = maybe; then
4588 cross_compiling=yes
4589 else
4590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4592as_fn_error "cannot run C compiled programs.
4593If you meant to cross compile, use \`--host'.
4594See \`config.log' for more details." "$LINENO" 5; }
4595 fi
4596 fi
4597fi
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4599$as_echo "$cross_compiling" >&6; }
4600
4601rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4602ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004604$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004605if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004606 $as_echo_n "(cached) " >&6
4607else
cristy8b350f62009-11-15 23:12:43 +00004608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004609/* end confdefs.h. */
4610
4611int
4612main ()
4613{
4614
4615 ;
4616 return 0;
4617}
4618_ACEOF
4619rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004620if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004621case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624esac
cristy8b350f62009-11-15 23:12:43 +00004625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004627 (eval "$ac_compile") 2>&5
4628 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004631 for ac_file in conftest.o conftest.obj conftest.*; do
4632 test -f "$ac_file" || continue;
4633 case $ac_file in
4634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4635 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4636 break;;
4637 esac
4638done
4639else
4640 $as_echo "$as_me: failed program was:" >&5
4641sed 's/^/| /' conftest.$ac_ext >&5
4642
cristy8b350f62009-11-15 23:12:43 +00004643{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004645as_fn_error "cannot compute suffix of object files: cannot compile
4646See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004647fi
cristy3ed852e2009-09-05 21:47:34 +00004648rm -f conftest.$ac_cv_objext conftest.$ac_ext
4649fi
cristy8b350f62009-11-15 23:12:43 +00004650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004651$as_echo "$ac_cv_objext" >&6; }
4652OBJEXT=$ac_cv_objext
4653ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004655$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004656if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004657 $as_echo_n "(cached) " >&6
4658else
cristy8b350f62009-11-15 23:12:43 +00004659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004660/* end confdefs.h. */
4661
4662int
4663main ()
4664{
4665#ifndef __GNUC__
4666 choke me
4667#endif
4668
4669 ;
4670 return 0;
4671}
4672_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004673if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004674 ac_compiler_gnu=yes
4675else
cristy8b350f62009-11-15 23:12:43 +00004676 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004677fi
cristy3ed852e2009-09-05 21:47:34 +00004678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679ac_cv_c_compiler_gnu=$ac_compiler_gnu
4680
4681fi
cristy8b350f62009-11-15 23:12:43 +00004682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004683$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4684if test $ac_compiler_gnu = yes; then
4685 GCC=yes
4686else
4687 GCC=
4688fi
4689ac_test_CFLAGS=${CFLAGS+set}
4690ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004692$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004693if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004694 $as_echo_n "(cached) " >&6
4695else
4696 ac_save_c_werror_flag=$ac_c_werror_flag
4697 ac_c_werror_flag=yes
4698 ac_cv_prog_cc_g=no
4699 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004701/* end confdefs.h. */
4702
4703int
4704main ()
4705{
4706
4707 ;
4708 return 0;
4709}
4710_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004711if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004712 ac_cv_prog_cc_g=yes
4713else
cristy8b350f62009-11-15 23:12:43 +00004714 CFLAGS=""
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004716/* end confdefs.h. */
4717
4718int
4719main ()
4720{
4721
4722 ;
4723 return 0;
4724}
4725_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004726if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004727
cristy8b350f62009-11-15 23:12:43 +00004728else
4729 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004730 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004732/* end confdefs.h. */
4733
4734int
4735main ()
4736{
4737
4738 ;
4739 return 0;
4740}
4741_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004742if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004743 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004744fi
cristy3ed852e2009-09-05 21:47:34 +00004745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746fi
cristy3ed852e2009-09-05 21:47:34 +00004747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748fi
cristy3ed852e2009-09-05 21:47:34 +00004749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 ac_c_werror_flag=$ac_save_c_werror_flag
4751fi
cristy8b350f62009-11-15 23:12:43 +00004752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004753$as_echo "$ac_cv_prog_cc_g" >&6; }
4754if test "$ac_test_CFLAGS" = set; then
4755 CFLAGS=$ac_save_CFLAGS
4756elif test $ac_cv_prog_cc_g = yes; then
4757 if test "$GCC" = yes; then
4758 CFLAGS="-g -O2"
4759 else
4760 CFLAGS="-g"
4761 fi
4762else
4763 if test "$GCC" = yes; then
4764 CFLAGS="-O2"
4765 else
4766 CFLAGS=
4767 fi
4768fi
cristy8b350f62009-11-15 23:12:43 +00004769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004770$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004771if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004772 $as_echo_n "(cached) " >&6
4773else
4774 ac_cv_prog_cc_c89=no
4775ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004777/* end confdefs.h. */
4778#include <stdarg.h>
4779#include <stdio.h>
4780#include <sys/types.h>
4781#include <sys/stat.h>
4782/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4783struct buf { int x; };
4784FILE * (*rcsopen) (struct buf *, struct stat *, int);
4785static char *e (p, i)
4786 char **p;
4787 int i;
4788{
4789 return p[i];
4790}
4791static char *f (char * (*g) (char **, int), char **p, ...)
4792{
4793 char *s;
4794 va_list v;
4795 va_start (v,p);
4796 s = g (p, va_arg (v,int));
4797 va_end (v);
4798 return s;
4799}
4800
4801/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4802 function prototypes and stuff, but not '\xHH' hex character constants.
4803 These don't provoke an error unfortunately, instead are silently treated
4804 as 'x'. The following induces an error, until -std is added to get
4805 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4806 array size at least. It's necessary to write '\x00'==0 to get something
4807 that's true only with -std. */
4808int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4809
4810/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4811 inside strings and character constants. */
4812#define FOO(x) 'x'
4813int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4814
4815int test (int i, double x);
4816struct s1 {int (*f) (int a);};
4817struct s2 {int (*f) (double a);};
4818int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4819int argc;
4820char **argv;
4821int
4822main ()
4823{
4824return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4825 ;
4826 return 0;
4827}
4828_ACEOF
4829for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4830 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4831do
4832 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004833 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004834 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004835fi
cristy3ed852e2009-09-05 21:47:34 +00004836rm -f core conftest.err conftest.$ac_objext
4837 test "x$ac_cv_prog_cc_c89" != "xno" && break
4838done
4839rm -f conftest.$ac_ext
4840CC=$ac_save_CC
4841
4842fi
4843# AC_CACHE_VAL
4844case "x$ac_cv_prog_cc_c89" in
4845 x)
cristy8b350f62009-11-15 23:12:43 +00004846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004847$as_echo "none needed" >&6; } ;;
4848 xno)
cristy8b350f62009-11-15 23:12:43 +00004849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004850$as_echo "unsupported" >&6; } ;;
4851 *)
4852 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004854$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4855esac
cristy8b350f62009-11-15 23:12:43 +00004856if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004857
cristy8b350f62009-11-15 23:12:43 +00004858fi
cristy3ed852e2009-09-05 21:47:34 +00004859
4860ac_ext=c
4861ac_cpp='$CPP $CPPFLAGS'
4862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864ac_compiler_gnu=$ac_cv_c_compiler_gnu
4865DEPDIR="${am__leading_dot}deps"
4866
4867ac_config_commands="$ac_config_commands depfiles"
4868
4869
4870am_make=${MAKE-make}
4871cat > confinc << 'END'
4872am__doit:
4873 @echo this is the am__doit target
4874.PHONY: am__doit
4875END
4876# If we don't find an include directive, just comment out the code.
cristy8b350f62009-11-15 23:12:43 +00004877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cristy3ed852e2009-09-05 21:47:34 +00004878$as_echo_n "checking for style of include used by $am_make... " >&6; }
4879am__include="#"
4880am__quote=
4881_am_result=none
4882# First try GNU make style include.
4883echo "include confinc" > confmf
4884# Ignore all kinds of additional output from `make'.
4885case `$am_make -s -f confmf 2> /dev/null` in #(
4886*the\ am__doit\ target*)
4887 am__include=include
4888 am__quote=
4889 _am_result=GNU
4890 ;;
4891esac
4892# Now try BSD make style include.
4893if test "$am__include" = "#"; then
4894 echo '.include "confinc"' > confmf
4895 case `$am_make -s -f confmf 2> /dev/null` in #(
4896 *the\ am__doit\ target*)
4897 am__include=.include
4898 am__quote="\""
4899 _am_result=BSD
4900 ;;
4901 esac
4902fi
4903
4904
cristy8b350f62009-11-15 23:12:43 +00004905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cristy3ed852e2009-09-05 21:47:34 +00004906$as_echo "$_am_result" >&6; }
4907rm -f confinc confmf
4908
4909# Check whether --enable-dependency-tracking was given.
cristy8b350f62009-11-15 23:12:43 +00004910if test "${enable_dependency_tracking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004911 enableval=$enable_dependency_tracking;
4912fi
4913
4914if test "x$enable_dependency_tracking" != xno; then
4915 am_depcomp="$ac_aux_dir/depcomp"
4916 AMDEPBACKSLASH='\'
4917fi
4918 if test "x$enable_dependency_tracking" != xno; then
4919 AMDEP_TRUE=
4920 AMDEP_FALSE='#'
4921else
4922 AMDEP_TRUE='#'
4923 AMDEP_FALSE=
4924fi
4925
4926
4927
4928depcc="$CC" am_compiler_list=
4929
cristy8b350f62009-11-15 23:12:43 +00004930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00004931$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004932if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004933 $as_echo_n "(cached) " >&6
4934else
4935 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4936 # We make a subdir and do the tests there. Otherwise we can end up
4937 # making bogus files that we don't know about and never remove. For
4938 # instance it was reported that on HP-UX the gcc test will end up
4939 # making a dummy file named `D' -- because `-MD' means `put the output
4940 # in D'.
4941 mkdir conftest.dir
4942 # Copy depcomp to subdir because otherwise we won't find it if we're
4943 # using a relative directory.
4944 cp "$am_depcomp" conftest.dir
4945 cd conftest.dir
4946 # We will build objects and dependencies in a subdirectory because
4947 # it helps to detect inapplicable dependency modes. For instance
4948 # both Tru64's cc and ICC support -MD to output dependencies as a
4949 # side effect of compilation, but ICC will put the dependencies in
4950 # the current directory while Tru64 will put them in the object
4951 # directory.
4952 mkdir sub
4953
4954 am_cv_CC_dependencies_compiler_type=none
4955 if test "$am_compiler_list" = ""; then
4956 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4957 fi
4958 am__universal=false
4959 case " $depcc " in #(
4960 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4961 esac
4962
4963 for depmode in $am_compiler_list; do
4964 # Setup a source with many dependencies, because some compilers
4965 # like to wrap large dependency lists on column 80 (with \), and
4966 # we should not choose a depcomp mode which is confused by this.
4967 #
4968 # We need to recreate these files for each test, as the compiler may
4969 # overwrite some of them when testing with obscure command lines.
4970 # This happens at least with the AIX C compiler.
4971 : > sub/conftest.c
4972 for i in 1 2 3 4 5 6; do
4973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4975 # Solaris 8's {/usr,}/bin/sh.
4976 touch sub/conftst$i.h
4977 done
4978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4979
4980 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4981 # mode. It turns out that the SunPro C++ compiler does not properly
4982 # handle `-M -o', and we need to detect this. Also, some Intel
4983 # versions had trouble with output in subdirs
4984 am__obj=sub/conftest.${OBJEXT-o}
4985 am__minus_obj="-o $am__obj"
4986 case $depmode in
4987 gcc)
4988 # This depmode causes a compiler race in universal mode.
4989 test "$am__universal" = false || continue
4990 ;;
4991 nosideeffect)
4992 # after this tag, mechanisms are not by side-effect, so they'll
4993 # only be used when explicitly requested
4994 if test "x$enable_dependency_tracking" = xyes; then
4995 continue
4996 else
4997 break
4998 fi
4999 ;;
5000 msvisualcpp | msvcmsys)
5001 # This compiler won't grok `-c -o', but also, the minuso test has
5002 # not run yet. These depmodes are late enough in the game, and
5003 # so weak that their functioning should not be impacted.
5004 am__obj=conftest.${OBJEXT-o}
5005 am__minus_obj=
5006 ;;
5007 none) break ;;
5008 esac
5009 if depmode=$depmode \
5010 source=sub/conftest.c object=$am__obj \
5011 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5012 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5013 >/dev/null 2>conftest.err &&
5014 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5015 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5016 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5017 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5018 # icc doesn't choke on unknown options, it will just issue warnings
5019 # or remarks (even with -Werror). So we grep stderr for any message
5020 # that says an option was ignored or not supported.
5021 # When given -MP, icc 7.0 and 7.1 complain thusly:
5022 # icc: Command line warning: ignoring option '-M'; no argument required
5023 # The diagnosis changed in icc 8.0:
5024 # icc: Command line remark: option '-MP' not supported
5025 if (grep 'ignoring option' conftest.err ||
5026 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5027 am_cv_CC_dependencies_compiler_type=$depmode
5028 break
5029 fi
5030 fi
5031 done
5032
5033 cd ..
5034 rm -rf conftest.dir
5035else
5036 am_cv_CC_dependencies_compiler_type=none
5037fi
5038
5039fi
cristy8b350f62009-11-15 23:12:43 +00005040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00005041$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5042CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5043
5044 if
5045 test "x$enable_dependency_tracking" != xno \
5046 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5047 am__fastdepCC_TRUE=
5048 am__fastdepCC_FALSE='#'
5049else
5050 am__fastdepCC_TRUE='#'
5051 am__fastdepCC_FALSE=
5052fi
5053
5054
cristy95646052009-11-28 23:05:30 +00005055ac_ext=cpp
5056ac_cpp='$CXXCPP $CPPFLAGS'
5057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5060if test -z "$CXX"; then
5061 if test -n "$CCC"; then
5062 CXX=$CCC
5063 else
5064 if test -n "$ac_tool_prefix"; then
5065 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5066 do
5067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5068set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070$as_echo_n "checking for $ac_word... " >&6; }
5071if test "${ac_cv_prog_CXX+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5073else
5074 if test -n "$CXX"; then
5075 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5076else
5077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078for as_dir in $PATH
5079do
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5087 fi
5088done
5089 done
5090IFS=$as_save_IFS
5091
5092fi
5093fi
5094CXX=$ac_cv_prog_CXX
5095if test -n "$CXX"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5097$as_echo "$CXX" >&6; }
5098else
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100$as_echo "no" >&6; }
5101fi
5102
5103
5104 test -n "$CXX" && break
5105 done
5106fi
5107if test -z "$CXX"; then
5108 ac_ct_CXX=$CXX
5109 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5110do
5111 # Extract the first word of "$ac_prog", so it can be a program name with args.
5112set dummy $ac_prog; ac_word=$2
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114$as_echo_n "checking for $ac_word... " >&6; }
5115if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5117else
5118 if test -n "$ac_ct_CXX"; then
5119 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5120else
5121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122for as_dir in $PATH
5123do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_ac_ct_CXX="$ac_prog"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132done
5133 done
5134IFS=$as_save_IFS
5135
5136fi
5137fi
5138ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5139if test -n "$ac_ct_CXX"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5141$as_echo "$ac_ct_CXX" >&6; }
5142else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144$as_echo "no" >&6; }
5145fi
5146
5147
5148 test -n "$ac_ct_CXX" && break
5149done
5150
5151 if test "x$ac_ct_CXX" = x; then
5152 CXX="g++"
5153 else
5154 case $cross_compiling:$ac_tool_warned in
5155yes:)
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5158ac_tool_warned=yes ;;
5159esac
5160 CXX=$ac_ct_CXX
5161 fi
5162fi
5163
5164 fi
5165fi
5166# Provide some information about the compiler.
5167$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5168set X $ac_compile
5169ac_compiler=$2
5170for ac_option in --version -v -V -qversion; do
5171 { { ac_try="$ac_compiler $ac_option >&5"
5172case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5175esac
5176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5177$as_echo "$ac_try_echo"; } >&5
5178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5179 ac_status=$?
5180 if test -s conftest.err; then
5181 sed '10a\
5182... rest of stderr output deleted ...
5183 10q' conftest.err >conftest.er1
5184 cat conftest.er1 >&5
5185 fi
5186 rm -f conftest.er1 conftest.err
5187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5188 test $ac_status = 0; }
5189done
5190
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5192$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5193if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5195else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197/* end confdefs.h. */
5198
5199int
5200main ()
5201{
5202#ifndef __GNUC__
5203 choke me
5204#endif
5205
5206 ;
5207 return 0;
5208}
5209_ACEOF
5210if ac_fn_cxx_try_compile "$LINENO"; then :
5211 ac_compiler_gnu=yes
5212else
5213 ac_compiler_gnu=no
5214fi
5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5217
5218fi
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5220$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5221if test $ac_compiler_gnu = yes; then
5222 GXX=yes
5223else
5224 GXX=
5225fi
5226ac_test_CXXFLAGS=${CXXFLAGS+set}
5227ac_save_CXXFLAGS=$CXXFLAGS
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5229$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5230if test "${ac_cv_prog_cxx_g+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5232else
5233 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5234 ac_cxx_werror_flag=yes
5235 ac_cv_prog_cxx_g=no
5236 CXXFLAGS="-g"
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238/* end confdefs.h. */
5239
5240int
5241main ()
5242{
5243
5244 ;
5245 return 0;
5246}
5247_ACEOF
5248if ac_fn_cxx_try_compile "$LINENO"; then :
5249 ac_cv_prog_cxx_g=yes
5250else
5251 CXXFLAGS=""
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253/* end confdefs.h. */
5254
5255int
5256main ()
5257{
5258
5259 ;
5260 return 0;
5261}
5262_ACEOF
5263if ac_fn_cxx_try_compile "$LINENO"; then :
5264
5265else
5266 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5267 CXXFLAGS="-g"
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269/* end confdefs.h. */
5270
5271int
5272main ()
5273{
5274
5275 ;
5276 return 0;
5277}
5278_ACEOF
5279if ac_fn_cxx_try_compile "$LINENO"; then :
5280 ac_cv_prog_cxx_g=yes
5281fi
5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283fi
5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285fi
5286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5290$as_echo "$ac_cv_prog_cxx_g" >&6; }
5291if test "$ac_test_CXXFLAGS" = set; then
5292 CXXFLAGS=$ac_save_CXXFLAGS
5293elif test $ac_cv_prog_cxx_g = yes; then
5294 if test "$GXX" = yes; then
5295 CXXFLAGS="-g -O2"
5296 else
5297 CXXFLAGS="-g"
5298 fi
5299else
5300 if test "$GXX" = yes; then
5301 CXXFLAGS="-O2"
5302 else
5303 CXXFLAGS=
5304 fi
5305fi
5306ac_ext=c
5307ac_cpp='$CPP $CPPFLAGS'
5308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311
5312depcc="$CXX" am_compiler_list=
5313
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5315$as_echo_n "checking dependency style of $depcc... " >&6; }
5316if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5318else
5319 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5320 # We make a subdir and do the tests there. Otherwise we can end up
5321 # making bogus files that we don't know about and never remove. For
5322 # instance it was reported that on HP-UX the gcc test will end up
5323 # making a dummy file named `D' -- because `-MD' means `put the output
5324 # in D'.
5325 mkdir conftest.dir
5326 # Copy depcomp to subdir because otherwise we won't find it if we're
5327 # using a relative directory.
5328 cp "$am_depcomp" conftest.dir
5329 cd conftest.dir
5330 # We will build objects and dependencies in a subdirectory because
5331 # it helps to detect inapplicable dependency modes. For instance
5332 # both Tru64's cc and ICC support -MD to output dependencies as a
5333 # side effect of compilation, but ICC will put the dependencies in
5334 # the current directory while Tru64 will put them in the object
5335 # directory.
5336 mkdir sub
5337
5338 am_cv_CXX_dependencies_compiler_type=none
5339 if test "$am_compiler_list" = ""; then
5340 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5341 fi
5342 am__universal=false
5343 case " $depcc " in #(
5344 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5345 esac
5346
5347 for depmode in $am_compiler_list; do
5348 # Setup a source with many dependencies, because some compilers
5349 # like to wrap large dependency lists on column 80 (with \), and
5350 # we should not choose a depcomp mode which is confused by this.
5351 #
5352 # We need to recreate these files for each test, as the compiler may
5353 # overwrite some of them when testing with obscure command lines.
5354 # This happens at least with the AIX C compiler.
5355 : > sub/conftest.c
5356 for i in 1 2 3 4 5 6; do
5357 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5358 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5359 # Solaris 8's {/usr,}/bin/sh.
5360 touch sub/conftst$i.h
5361 done
5362 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5363
5364 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5365 # mode. It turns out that the SunPro C++ compiler does not properly
5366 # handle `-M -o', and we need to detect this. Also, some Intel
5367 # versions had trouble with output in subdirs
5368 am__obj=sub/conftest.${OBJEXT-o}
5369 am__minus_obj="-o $am__obj"
5370 case $depmode in
5371 gcc)
5372 # This depmode causes a compiler race in universal mode.
5373 test "$am__universal" = false || continue
5374 ;;
5375 nosideeffect)
5376 # after this tag, mechanisms are not by side-effect, so they'll
5377 # only be used when explicitly requested
5378 if test "x$enable_dependency_tracking" = xyes; then
5379 continue
5380 else
5381 break
5382 fi
5383 ;;
5384 msvisualcpp | msvcmsys)
5385 # This compiler won't grok `-c -o', but also, the minuso test has
5386 # not run yet. These depmodes are late enough in the game, and
5387 # so weak that their functioning should not be impacted.
5388 am__obj=conftest.${OBJEXT-o}
5389 am__minus_obj=
5390 ;;
5391 none) break ;;
5392 esac
5393 if depmode=$depmode \
5394 source=sub/conftest.c object=$am__obj \
5395 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5396 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5397 >/dev/null 2>conftest.err &&
5398 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5399 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5400 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5401 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5402 # icc doesn't choke on unknown options, it will just issue warnings
5403 # or remarks (even with -Werror). So we grep stderr for any message
5404 # that says an option was ignored or not supported.
5405 # When given -MP, icc 7.0 and 7.1 complain thusly:
5406 # icc: Command line warning: ignoring option '-M'; no argument required
5407 # The diagnosis changed in icc 8.0:
5408 # icc: Command line remark: option '-MP' not supported
5409 if (grep 'ignoring option' conftest.err ||
5410 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5411 am_cv_CXX_dependencies_compiler_type=$depmode
5412 break
5413 fi
5414 fi
5415 done
5416
5417 cd ..
5418 rm -rf conftest.dir
5419else
5420 am_cv_CXX_dependencies_compiler_type=none
5421fi
5422
5423fi
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5425$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5426CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5427
5428 if
5429 test "x$enable_dependency_tracking" != xno \
5430 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5431 am__fastdepCXX_TRUE=
5432 am__fastdepCXX_FALSE='#'
5433else
5434 am__fastdepCXX_TRUE='#'
5435 am__fastdepCXX_FALSE=
5436fi
5437
5438
cristy8b350f62009-11-15 23:12:43 +00005439 case $ac_cv_prog_cc_stdc in #(
5440 no) :
5441 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5442 *) :
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005444$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005445if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005446 $as_echo_n "(cached) " >&6
5447else
5448 ac_cv_prog_cc_c99=no
5449ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005451/* end confdefs.h. */
5452#include <stdarg.h>
5453#include <stdbool.h>
5454#include <stdlib.h>
5455#include <wchar.h>
5456#include <stdio.h>
5457
5458// Check varargs macros. These examples are taken from C99 6.10.3.5.
5459#define debug(...) fprintf (stderr, __VA_ARGS__)
5460#define showlist(...) puts (#__VA_ARGS__)
5461#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5462static void
5463test_varargs_macros (void)
5464{
5465 int x = 1234;
5466 int y = 5678;
5467 debug ("Flag");
5468 debug ("X = %d\n", x);
5469 showlist (The first, second, and third items.);
5470 report (x>y, "x is %d but y is %d", x, y);
5471}
5472
5473// Check long long types.
5474#define BIG64 18446744073709551615ull
5475#define BIG32 4294967295ul
5476#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5477#if !BIG_OK
5478 your preprocessor is broken;
5479#endif
5480#if BIG_OK
5481#else
5482 your preprocessor is broken;
5483#endif
5484static long long int bignum = -9223372036854775807LL;
5485static unsigned long long int ubignum = BIG64;
5486
5487struct incomplete_array
5488{
5489 int datasize;
5490 double data[];
5491};
5492
5493struct named_init {
5494 int number;
5495 const wchar_t *name;
5496 double average;
5497};
5498
5499typedef const char *ccp;
5500
5501static inline int
5502test_restrict (ccp restrict text)
5503{
5504 // See if C++-style comments work.
5505 // Iterate through items via the restricted pointer.
5506 // Also check for declarations in for loops.
5507 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5508 continue;
5509 return 0;
5510}
5511
5512// Check varargs and va_copy.
5513static void
5514test_varargs (const char *format, ...)
5515{
5516 va_list args;
5517 va_start (args, format);
5518 va_list args_copy;
5519 va_copy (args_copy, args);
5520
5521 const char *str;
5522 int number;
5523 float fnumber;
5524
5525 while (*format)
5526 {
5527 switch (*format++)
5528 {
5529 case 's': // string
5530 str = va_arg (args_copy, const char *);
5531 break;
5532 case 'd': // int
5533 number = va_arg (args_copy, int);
5534 break;
5535 case 'f': // float
5536 fnumber = va_arg (args_copy, double);
5537 break;
5538 default:
5539 break;
5540 }
5541 }
5542 va_end (args_copy);
5543 va_end (args);
5544}
5545
5546int
5547main ()
5548{
5549
5550 // Check bool.
5551 _Bool success = false;
5552
5553 // Check restrict.
5554 if (test_restrict ("String literal") == 0)
5555 success = true;
5556 char *restrict newvar = "Another string";
5557
5558 // Check varargs.
5559 test_varargs ("s, d' f .", "string", 65, 34.234);
5560 test_varargs_macros ();
5561
5562 // Check flexible array members.
5563 struct incomplete_array *ia =
5564 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5565 ia->datasize = 10;
5566 for (int i = 0; i < ia->datasize; ++i)
5567 ia->data[i] = i * 1.234;
5568
5569 // Check named initializers.
5570 struct named_init ni = {
5571 .number = 34,
5572 .name = L"Test wide string",
5573 .average = 543.34343,
5574 };
5575
5576 ni.number = 58;
5577
5578 int dynamic_array[ni.number];
5579 dynamic_array[ni.number - 1] = 543;
5580
5581 // work around unused variable warnings
5582 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5583 || dynamic_array[ni.number - 1] != 543);
5584
5585 ;
5586 return 0;
5587}
5588_ACEOF
5589for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5590do
5591 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005592 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005593 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005594fi
cristy3ed852e2009-09-05 21:47:34 +00005595rm -f core conftest.err conftest.$ac_objext
5596 test "x$ac_cv_prog_cc_c99" != "xno" && break
5597done
5598rm -f conftest.$ac_ext
5599CC=$ac_save_CC
5600
5601fi
5602# AC_CACHE_VAL
5603case "x$ac_cv_prog_cc_c99" in
5604 x)
cristy8b350f62009-11-15 23:12:43 +00005605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005606$as_echo "none needed" >&6; } ;;
5607 xno)
cristy8b350f62009-11-15 23:12:43 +00005608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005609$as_echo "unsupported" >&6; } ;;
5610 *)
5611 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00005612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005613$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5614esac
cristy8b350f62009-11-15 23:12:43 +00005615if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005616 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5617else
cristy8b350f62009-11-15 23:12:43 +00005618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005619$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005620if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005621 $as_echo_n "(cached) " >&6
5622else
5623 ac_cv_prog_cc_c89=no
5624ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005626/* end confdefs.h. */
5627#include <stdarg.h>
5628#include <stdio.h>
5629#include <sys/types.h>
5630#include <sys/stat.h>
5631/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5632struct buf { int x; };
5633FILE * (*rcsopen) (struct buf *, struct stat *, int);
5634static char *e (p, i)
5635 char **p;
5636 int i;
5637{
5638 return p[i];
5639}
5640static char *f (char * (*g) (char **, int), char **p, ...)
5641{
5642 char *s;
5643 va_list v;
5644 va_start (v,p);
5645 s = g (p, va_arg (v,int));
5646 va_end (v);
5647 return s;
5648}
5649
5650/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5651 function prototypes and stuff, but not '\xHH' hex character constants.
5652 These don't provoke an error unfortunately, instead are silently treated
5653 as 'x'. The following induces an error, until -std is added to get
5654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5655 array size at least. It's necessary to write '\x00'==0 to get something
5656 that's true only with -std. */
5657int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5658
5659/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5660 inside strings and character constants. */
5661#define FOO(x) 'x'
5662int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5663
5664int test (int i, double x);
5665struct s1 {int (*f) (int a);};
5666struct s2 {int (*f) (double a);};
5667int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5668int argc;
5669char **argv;
5670int
5671main ()
5672{
5673return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5674 ;
5675 return 0;
5676}
5677_ACEOF
5678for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5679 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5680do
5681 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005682 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005683 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005684fi
cristy3ed852e2009-09-05 21:47:34 +00005685rm -f core conftest.err conftest.$ac_objext
5686 test "x$ac_cv_prog_cc_c89" != "xno" && break
5687done
5688rm -f conftest.$ac_ext
5689CC=$ac_save_CC
5690
5691fi
5692# AC_CACHE_VAL
5693case "x$ac_cv_prog_cc_c89" in
5694 x)
cristy8b350f62009-11-15 23:12:43 +00005695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005696$as_echo "none needed" >&6; } ;;
5697 xno)
cristy8b350f62009-11-15 23:12:43 +00005698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005699$as_echo "unsupported" >&6; } ;;
5700 *)
5701 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005703$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5704esac
cristy8b350f62009-11-15 23:12:43 +00005705if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005706 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5707else
5708 ac_cv_prog_cc_stdc=no
5709fi
5710
cristy3ed852e2009-09-05 21:47:34 +00005711fi
cristy3ed852e2009-09-05 21:47:34 +00005712 ;;
5713esac
cristy8b350f62009-11-15 23:12:43 +00005714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00005715$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005716 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005717 $as_echo_n "(cached) " >&6
5718fi
5719
cristy8b350f62009-11-15 23:12:43 +00005720 case $ac_cv_prog_cc_stdc in #(
5721 no) :
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5723$as_echo "unsupported" >&6; } ;; #(
5724 '') :
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5726$as_echo "none needed" >&6; } ;; #(
5727 *) :
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00005729$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5730esac
5731
cristy3ed852e2009-09-05 21:47:34 +00005732ac_ext=c
5733ac_cpp='$CPP $CPPFLAGS'
5734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00005737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00005738$as_echo_n "checking how to run the C preprocessor... " >&6; }
5739# On Suns, sometimes $CPP names a directory.
5740if test -n "$CPP" && test -d "$CPP"; then
5741 CPP=
5742fi
5743if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00005744 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005745 $as_echo_n "(cached) " >&6
5746else
5747 # Double quotes because CPP needs to be expanded
5748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5749 do
5750 ac_preproc_ok=false
5751for ac_c_preproc_warn_flag in '' yes
5752do
5753 # Use a header file that comes with gcc, so configuring glibc
5754 # with a fresh cross-compiler works.
5755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5756 # <limits.h> exists even on freestanding compilers.
5757 # On the NeXT, cc -E runs the code through the compiler's parser,
5758 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005760/* end confdefs.h. */
5761#ifdef __STDC__
5762# include <limits.h>
5763#else
5764# include <assert.h>
5765#endif
5766 Syntax error
5767_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005768if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005769
cristy8b350f62009-11-15 23:12:43 +00005770else
cristy3ed852e2009-09-05 21:47:34 +00005771 # Broken: fails on valid input.
5772continue
5773fi
cristy3ed852e2009-09-05 21:47:34 +00005774rm -f conftest.err conftest.$ac_ext
5775
5776 # OK, works on sane cases. Now check whether nonexistent headers
5777 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005779/* end confdefs.h. */
5780#include <ac_nonexistent.h>
5781_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005782if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005783 # Broken: success on invalid input.
5784continue
5785else
cristy3ed852e2009-09-05 21:47:34 +00005786 # Passes both tests.
5787ac_preproc_ok=:
5788break
5789fi
cristy3ed852e2009-09-05 21:47:34 +00005790rm -f conftest.err conftest.$ac_ext
5791
5792done
5793# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5794rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005795if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00005796 break
5797fi
5798
5799 done
5800 ac_cv_prog_CPP=$CPP
5801
5802fi
5803 CPP=$ac_cv_prog_CPP
5804else
5805 ac_cv_prog_CPP=$CPP
5806fi
cristy8b350f62009-11-15 23:12:43 +00005807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005808$as_echo "$CPP" >&6; }
5809ac_preproc_ok=false
5810for ac_c_preproc_warn_flag in '' yes
5811do
5812 # Use a header file that comes with gcc, so configuring glibc
5813 # with a fresh cross-compiler works.
5814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5815 # <limits.h> exists even on freestanding compilers.
5816 # On the NeXT, cc -E runs the code through the compiler's parser,
5817 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005819/* end confdefs.h. */
5820#ifdef __STDC__
5821# include <limits.h>
5822#else
5823# include <assert.h>
5824#endif
5825 Syntax error
5826_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005827if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005828
cristy8b350f62009-11-15 23:12:43 +00005829else
cristy3ed852e2009-09-05 21:47:34 +00005830 # Broken: fails on valid input.
5831continue
5832fi
cristy3ed852e2009-09-05 21:47:34 +00005833rm -f conftest.err conftest.$ac_ext
5834
5835 # OK, works on sane cases. Now check whether nonexistent headers
5836 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005838/* end confdefs.h. */
5839#include <ac_nonexistent.h>
5840_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005841if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005842 # Broken: success on invalid input.
5843continue
5844else
cristy3ed852e2009-09-05 21:47:34 +00005845 # Passes both tests.
5846ac_preproc_ok=:
5847break
5848fi
cristy3ed852e2009-09-05 21:47:34 +00005849rm -f conftest.err conftest.$ac_ext
5850
5851done
5852# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5853rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005854if $ac_preproc_ok; then :
5855
cristy3ed852e2009-09-05 21:47:34 +00005856else
cristy8b350f62009-11-15 23:12:43 +00005857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00005859as_fn_error "C preprocessor \"$CPP\" fails sanity check
5860See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005861fi
5862
5863ac_ext=c
5864ac_cpp='$CPP $CPPFLAGS'
5865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867ac_compiler_gnu=$ac_cv_c_compiler_gnu
5868
cristy8b350f62009-11-15 23:12:43 +00005869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00005870$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005871if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005872 $as_echo_n "(cached) " >&6
5873else
5874 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5875 for ac_i in 1 2 3 4 5 6 7; do
5876 ac_script="$ac_script$as_nl$ac_script"
5877 done
5878 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00005879 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00005880 if test -z "$SED"; then
5881 ac_path_SED_found=false
5882 # Loop through the user's path and test for each of PROGNAME-LIST
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005888 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00005889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5891 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5892# Check for GNU ac_path_SED and select it if it is found.
5893 # Check for GNU $ac_path_SED
5894case `"$ac_path_SED" --version 2>&1` in
5895*GNU*)
5896 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5897*)
5898 ac_count=0
5899 $as_echo_n 0123456789 >"conftest.in"
5900 while :
5901 do
5902 cat "conftest.in" "conftest.in" >"conftest.tmp"
5903 mv "conftest.tmp" "conftest.in"
5904 cp "conftest.in" "conftest.nl"
5905 $as_echo '' >> "conftest.nl"
5906 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005908 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005909 if test $ac_count -gt ${ac_path_SED_max-0}; then
5910 # Best one so far, save it but keep looking for a better one
5911 ac_cv_path_SED="$ac_path_SED"
5912 ac_path_SED_max=$ac_count
5913 fi
5914 # 10*(2^10) chars as input seems more than enough
5915 test $ac_count -gt 10 && break
5916 done
5917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5918esac
5919
5920 $ac_path_SED_found && break 3
5921 done
5922 done
cristy8b350f62009-11-15 23:12:43 +00005923 done
cristy3ed852e2009-09-05 21:47:34 +00005924IFS=$as_save_IFS
5925 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00005926 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005927 fi
5928else
5929 ac_cv_path_SED=$SED
5930fi
5931
5932fi
cristy8b350f62009-11-15 23:12:43 +00005933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00005934$as_echo "$ac_cv_path_SED" >&6; }
5935 SED="$ac_cv_path_SED"
5936 rm -f conftest.sed
5937
5938test -z "$SED" && SED=sed
5939Xsed="$SED -e 1s/^X//"
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
cristy8b350f62009-11-15 23:12:43 +00005951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cristy3ed852e2009-09-05 21:47:34 +00005952$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005953if test "${ac_cv_path_GREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005954 $as_echo_n "(cached) " >&6
5955else
5956 if test -z "$GREP"; then
5957 ac_path_GREP_found=false
5958 # Loop through the user's path and test for each of PROGNAME-LIST
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5961do
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005964 for ac_prog in grep ggrep; do
cristy3ed852e2009-09-05 21:47:34 +00005965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5967 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5968# Check for GNU ac_path_GREP and select it if it is found.
5969 # Check for GNU $ac_path_GREP
5970case `"$ac_path_GREP" --version 2>&1` in
5971*GNU*)
5972 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5973*)
5974 ac_count=0
5975 $as_echo_n 0123456789 >"conftest.in"
5976 while :
5977 do
5978 cat "conftest.in" "conftest.in" >"conftest.tmp"
5979 mv "conftest.tmp" "conftest.in"
5980 cp "conftest.in" "conftest.nl"
5981 $as_echo 'GREP' >> "conftest.nl"
5982 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005984 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005985 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5986 # Best one so far, save it but keep looking for a better one
5987 ac_cv_path_GREP="$ac_path_GREP"
5988 ac_path_GREP_max=$ac_count
5989 fi
5990 # 10*(2^10) chars as input seems more than enough
5991 test $ac_count -gt 10 && break
5992 done
5993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5994esac
5995
5996 $ac_path_GREP_found && break 3
5997 done
5998 done
cristy8b350f62009-11-15 23:12:43 +00005999 done
cristy3ed852e2009-09-05 21:47:34 +00006000IFS=$as_save_IFS
6001 if test -z "$ac_cv_path_GREP"; then
cristy8b350f62009-11-15 23:12:43 +00006002 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006003 fi
6004else
6005 ac_cv_path_GREP=$GREP
6006fi
6007
6008fi
cristy8b350f62009-11-15 23:12:43 +00006009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006010$as_echo "$ac_cv_path_GREP" >&6; }
6011 GREP="$ac_cv_path_GREP"
6012
6013
cristy8b350f62009-11-15 23:12:43 +00006014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00006015$as_echo_n "checking for egrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006016if test "${ac_cv_path_EGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006017 $as_echo_n "(cached) " >&6
6018else
6019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6020 then ac_cv_path_EGREP="$GREP -E"
6021 else
6022 if test -z "$EGREP"; then
6023 ac_path_EGREP_found=false
6024 # Loop through the user's path and test for each of PROGNAME-LIST
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6027do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006030 for ac_prog in egrep; do
cristy3ed852e2009-09-05 21:47:34 +00006031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6033 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6034# Check for GNU ac_path_EGREP and select it if it is found.
6035 # Check for GNU $ac_path_EGREP
6036case `"$ac_path_EGREP" --version 2>&1` in
6037*GNU*)
6038 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6039*)
6040 ac_count=0
6041 $as_echo_n 0123456789 >"conftest.in"
6042 while :
6043 do
6044 cat "conftest.in" "conftest.in" >"conftest.tmp"
6045 mv "conftest.tmp" "conftest.in"
6046 cp "conftest.in" "conftest.nl"
6047 $as_echo 'EGREP' >> "conftest.nl"
6048 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006050 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006051 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6052 # Best one so far, save it but keep looking for a better one
6053 ac_cv_path_EGREP="$ac_path_EGREP"
6054 ac_path_EGREP_max=$ac_count
6055 fi
6056 # 10*(2^10) chars as input seems more than enough
6057 test $ac_count -gt 10 && break
6058 done
6059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6060esac
6061
6062 $ac_path_EGREP_found && break 3
6063 done
6064 done
cristy8b350f62009-11-15 23:12:43 +00006065 done
cristy3ed852e2009-09-05 21:47:34 +00006066IFS=$as_save_IFS
6067 if test -z "$ac_cv_path_EGREP"; then
cristy8b350f62009-11-15 23:12:43 +00006068 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006069 fi
6070else
6071 ac_cv_path_EGREP=$EGREP
6072fi
6073
6074 fi
6075fi
cristy8b350f62009-11-15 23:12:43 +00006076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006077$as_echo "$ac_cv_path_EGREP" >&6; }
6078 EGREP="$ac_cv_path_EGREP"
6079
6080
cristy8b350f62009-11-15 23:12:43 +00006081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00006082$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006083if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006084 $as_echo_n "(cached) " >&6
6085else
6086 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6087 then ac_cv_path_FGREP="$GREP -F"
6088 else
6089 if test -z "$FGREP"; then
6090 ac_path_FGREP_found=false
6091 # Loop through the user's path and test for each of PROGNAME-LIST
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6094do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006097 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00006098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6100 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6101# Check for GNU ac_path_FGREP and select it if it is found.
6102 # Check for GNU $ac_path_FGREP
6103case `"$ac_path_FGREP" --version 2>&1` in
6104*GNU*)
6105 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6106*)
6107 ac_count=0
6108 $as_echo_n 0123456789 >"conftest.in"
6109 while :
6110 do
6111 cat "conftest.in" "conftest.in" >"conftest.tmp"
6112 mv "conftest.tmp" "conftest.in"
6113 cp "conftest.in" "conftest.nl"
6114 $as_echo 'FGREP' >> "conftest.nl"
6115 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006117 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006118 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6119 # Best one so far, save it but keep looking for a better one
6120 ac_cv_path_FGREP="$ac_path_FGREP"
6121 ac_path_FGREP_max=$ac_count
6122 fi
6123 # 10*(2^10) chars as input seems more than enough
6124 test $ac_count -gt 10 && break
6125 done
6126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6127esac
6128
6129 $ac_path_FGREP_found && break 3
6130 done
6131 done
cristy8b350f62009-11-15 23:12:43 +00006132 done
cristy3ed852e2009-09-05 21:47:34 +00006133IFS=$as_save_IFS
6134 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00006135 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006136 fi
6137else
6138 ac_cv_path_FGREP=$FGREP
6139fi
6140
6141 fi
6142fi
cristy8b350f62009-11-15 23:12:43 +00006143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006144$as_echo "$ac_cv_path_FGREP" >&6; }
6145 FGREP="$ac_cv_path_FGREP"
6146
6147
6148test -z "$GREP" && GREP=grep
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00006169if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006170 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6171else
6172 with_gnu_ld=no
6173fi
6174
6175ac_prog=ld
6176if test "$GCC" = yes; then
6177 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00006178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00006179$as_echo_n "checking for ld used by $CC... " >&6; }
6180 case $host in
6181 *-*-mingw*)
6182 # gcc leaves a trailing carriage return which upsets mingw
6183 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6184 *)
6185 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6186 esac
6187 case $ac_prog in
6188 # Accept absolute paths.
6189 [\\/]* | ?:[\\/]*)
6190 re_direlt='/[^/][^/]*/\.\./'
6191 # Canonicalize the pathname of ld
6192 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6193 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6194 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6195 done
6196 test -z "$LD" && LD="$ac_prog"
6197 ;;
6198 "")
6199 # If it fails, then pretend we aren't using GCC.
6200 ac_prog=ld
6201 ;;
6202 *)
6203 # If it is relative, then search for the first ld in PATH.
6204 with_gnu_ld=unknown
6205 ;;
6206 esac
6207elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006209$as_echo_n "checking for GNU ld... " >&6; }
6210else
cristy8b350f62009-11-15 23:12:43 +00006211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006212$as_echo_n "checking for non-GNU ld... " >&6; }
6213fi
cristy8b350f62009-11-15 23:12:43 +00006214if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006215 $as_echo_n "(cached) " >&6
6216else
6217 if test -z "$LD"; then
6218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6219 for ac_dir in $PATH; do
6220 IFS="$lt_save_ifs"
6221 test -z "$ac_dir" && ac_dir=.
6222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6223 lt_cv_path_LD="$ac_dir/$ac_prog"
6224 # Check to see if the program is GNU ld. I'd rather use --version,
6225 # but apparently some variants of GNU ld only accept -v.
6226 # Break only if it was the GNU/non-GNU ld that we prefer.
6227 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6228 *GNU* | *'with BFD'*)
6229 test "$with_gnu_ld" != no && break
6230 ;;
6231 *)
6232 test "$with_gnu_ld" != yes && break
6233 ;;
6234 esac
6235 fi
6236 done
6237 IFS="$lt_save_ifs"
6238else
6239 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6240fi
6241fi
6242
6243LD="$lt_cv_path_LD"
6244if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00006245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00006246$as_echo "$LD" >&6; }
6247else
cristy8b350f62009-11-15 23:12:43 +00006248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006249$as_echo "no" >&6; }
6250fi
cristy8b350f62009-11-15 23:12:43 +00006251test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006253$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006254if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006255 $as_echo_n "(cached) " >&6
6256else
6257 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6258case `$LD -v 2>&1 </dev/null` in
6259*GNU* | *'with BFD'*)
6260 lt_cv_prog_gnu_ld=yes
6261 ;;
6262*)
6263 lt_cv_prog_gnu_ld=no
6264 ;;
6265esac
6266fi
cristy8b350f62009-11-15 23:12:43 +00006267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006268$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6269with_gnu_ld=$lt_cv_prog_gnu_ld
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6281set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006283$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006284if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006285 $as_echo_n "(cached) " >&6
6286else
6287 if test -n "$RANLIB"; then
6288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00006298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006299 break 2
6300 fi
6301done
cristy8b350f62009-11-15 23:12:43 +00006302 done
cristy3ed852e2009-09-05 21:47:34 +00006303IFS=$as_save_IFS
6304
6305fi
6306fi
6307RANLIB=$ac_cv_prog_RANLIB
6308if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00006309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00006310$as_echo "$RANLIB" >&6; }
6311else
cristy8b350f62009-11-15 23:12:43 +00006312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006313$as_echo "no" >&6; }
6314fi
6315
6316
6317fi
6318if test -z "$ac_cv_prog_RANLIB"; then
6319 ac_ct_RANLIB=$RANLIB
6320 # Extract the first word of "ranlib", so it can be a program name with args.
6321set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006323$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006324if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006325 $as_echo_n "(cached) " >&6
6326else
6327 if test -n "$ac_ct_RANLIB"; then
6328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00006338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006339 break 2
6340 fi
6341done
cristy8b350f62009-11-15 23:12:43 +00006342 done
cristy3ed852e2009-09-05 21:47:34 +00006343IFS=$as_save_IFS
6344
6345fi
6346fi
6347ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6348if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00006349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00006350$as_echo "$ac_ct_RANLIB" >&6; }
6351else
cristy8b350f62009-11-15 23:12:43 +00006352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006353$as_echo "no" >&6; }
6354fi
6355
6356 if test "x$ac_ct_RANLIB" = x; then
6357 RANLIB=":"
6358 else
6359 case $cross_compiling:$ac_tool_warned in
6360yes:)
cristy8b350f62009-11-15 23:12:43 +00006361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363ac_tool_warned=yes ;;
6364esac
6365 RANLIB=$ac_ct_RANLIB
6366 fi
6367else
6368 RANLIB="$ac_cv_prog_RANLIB"
6369fi
6370
6371
6372if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00006373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00006374$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6375else
cristy8b350f62009-11-15 23:12:43 +00006376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00006377$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6378fi
6379set dummy $CC; ac_cc=`$as_echo "$2" |
6380 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00006381if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00006382 $as_echo_n "(cached) " >&6
6383else
cristy8b350f62009-11-15 23:12:43 +00006384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006385/* end confdefs.h. */
6386
6387int
6388main ()
6389{
6390
6391 ;
6392 return 0;
6393}
6394_ACEOF
6395# Make sure it works both with $CC and with simple cc.
6396# We do the test twice because some compilers refuse to overwrite an
6397# existing .o file with -o, though they will create one.
6398ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6399rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00006400if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6403esac
cristy8b350f62009-11-15 23:12:43 +00006404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6405$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006406 (eval "$ac_try") 2>&5
6407 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; } &&
6410 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413esac
cristy8b350f62009-11-15 23:12:43 +00006414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6415$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006416 (eval "$ac_try") 2>&5
6417 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6419 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00006420then
6421 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6422 if test "x$CC" != xcc; then
6423 # Test first that cc exists at all.
6424 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00006425 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428esac
cristy8b350f62009-11-15 23:12:43 +00006429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6430$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006431 (eval "$ac_try") 2>&5
6432 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6434 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00006435 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6436 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00006437 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440esac
cristy8b350f62009-11-15 23:12:43 +00006441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6442$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006443 (eval "$ac_try") 2>&5
6444 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446 test $ac_status = 0; } &&
6447 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450esac
cristy8b350f62009-11-15 23:12:43 +00006451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6452$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006453 (eval "$ac_try") 2>&5
6454 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6456 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00006457 then
6458 # cc works too.
6459 :
6460 else
6461 # cc exists but doesn't like -o.
6462 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6463 fi
6464 fi
6465 fi
6466else
6467 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6468fi
6469rm -f core conftest*
6470
6471fi
6472if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00006473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006474$as_echo "yes" >&6; }
6475else
cristy8b350f62009-11-15 23:12:43 +00006476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006477$as_echo "no" >&6; }
6478
cristy8b350f62009-11-15 23:12:43 +00006479$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006480
6481fi
6482
6483# FIXME: we rely on the cache variable name because
6484# there is no other way.
6485set dummy $CC
6486am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6487eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6488if test "$am_t" != yes; then
6489 # Losing compiler, so override with the script.
6490 # FIXME: It is wrong to rewrite CC.
6491 # But if we don't then we get into trouble of one sort or another.
6492 # A longer-term fix would be to have automake use am__CC in this case,
6493 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6494 CC="$am_aux_dir/compile $CC"
6495fi
6496
6497
cristy3ed852e2009-09-05 21:47:34 +00006498
cristy8b350f62009-11-15 23:12:43 +00006499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00006500$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6501set x ${MAKE-make}
6502ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00006503if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00006504 $as_echo_n "(cached) " >&6
6505else
6506 cat >conftest.make <<\_ACEOF
6507SHELL = /bin/sh
6508all:
6509 @echo '@@@%%%=$(MAKE)=@@@%%%'
6510_ACEOF
6511# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6512case `${MAKE-make} -f conftest.make 2>/dev/null` in
6513 *@@@%%%=?*=@@@%%%*)
6514 eval ac_cv_prog_make_${ac_make}_set=yes;;
6515 *)
6516 eval ac_cv_prog_make_${ac_make}_set=no;;
6517esac
6518rm -f conftest.make
6519fi
6520if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00006521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006522$as_echo "yes" >&6; }
6523 SET_MAKE=
6524else
cristy8b350f62009-11-15 23:12:43 +00006525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006526$as_echo "no" >&6; }
6527 SET_MAKE="MAKE=${MAKE-make}"
6528fi
6529
cristy3ed852e2009-09-05 21:47:34 +00006530
cristy8b350f62009-11-15 23:12:43 +00006531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006532$as_echo_n "checking maximum warning verbosity option... " >&6; }
6533
6534
6535
6536
6537# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00006538if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006539 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6540else
6541 ac_compile_warnings_on=""
6542fi
6543
6544
6545 if test x"$ac_compile_warnings_on" = xno
6546 then
6547 ac_compile_warnings_msg=no
6548 else
6549 if test -n "$CXX"
6550 then
6551 if test "$GXX" = "yes"
6552 then
6553 ac_compile_warnings_opt='-Wall -W'
6554 fi
6555 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6556 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6557 fi
6558
6559 if test -n "$CC"
6560 then
6561 if test "$GCC" = "yes"
6562 then
6563 ac_compile_warnings_opt='-Wall -W'
6564 fi
6565 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6566 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6567 fi
6568 fi
cristy8b350f62009-11-15 23:12:43 +00006569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00006570$as_echo "$ac_compile_warnings_msg" >&6; }
6571 unset ac_compile_warnings_msg
6572 unset ac_compile_warnings_opt
6573
cristy8b350f62009-11-15 23:12:43 +00006574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00006575$as_echo_n "checking whether ln -s works... " >&6; }
6576LN_S=$as_ln_s
6577if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00006578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006579$as_echo "yes" >&6; }
6580else
cristy8b350f62009-11-15 23:12:43 +00006581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00006582$as_echo "no, using $LN_S" >&6; }
6583fi
6584
cristy8b350f62009-11-15 23:12:43 +00006585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00006586$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6587
6588# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00006589if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006590 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006592$as_echo "yes" >&6; }
6593
cristy8b350f62009-11-15 23:12:43 +00006594$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006595
6596 LIBS="$LIBS -ldmalloc"
6597 LDFLAGS="$LDFLAGS -g"
6598else
cristy8b350f62009-11-15 23:12:43 +00006599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006600$as_echo "no" >&6; }
6601fi
6602else
cristy8b350f62009-11-15 23:12:43 +00006603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006604$as_echo "no" >&6; }
6605fi
6606
6607
6608
6609
6610if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6611 if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6613set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006615$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006616if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006617 $as_echo_n "(cached) " >&6
6618else
6619 case $PKG_CONFIG in
6620 [\\/]* | ?:[\\/]*)
6621 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6622 ;;
6623 *)
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006629 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006633 break 2
6634 fi
6635done
cristy8b350f62009-11-15 23:12:43 +00006636 done
cristy3ed852e2009-09-05 21:47:34 +00006637IFS=$as_save_IFS
6638
6639 ;;
6640esac
6641fi
6642PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6643if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006645$as_echo "$PKG_CONFIG" >&6; }
6646else
cristy8b350f62009-11-15 23:12:43 +00006647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006648$as_echo "no" >&6; }
6649fi
6650
6651
6652fi
6653if test -z "$ac_cv_path_PKG_CONFIG"; then
6654 ac_pt_PKG_CONFIG=$PKG_CONFIG
6655 # Extract the first word of "pkg-config", so it can be a program name with args.
6656set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006658$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006659if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006660 $as_echo_n "(cached) " >&6
6661else
6662 case $ac_pt_PKG_CONFIG in
6663 [\\/]* | ?:[\\/]*)
6664 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6665 ;;
6666 *)
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006672 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006676 break 2
6677 fi
6678done
cristy8b350f62009-11-15 23:12:43 +00006679 done
cristy3ed852e2009-09-05 21:47:34 +00006680IFS=$as_save_IFS
6681
6682 ;;
6683esac
6684fi
6685ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6686if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006688$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6689else
cristy8b350f62009-11-15 23:12:43 +00006690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006691$as_echo "no" >&6; }
6692fi
6693
6694 if test "x$ac_pt_PKG_CONFIG" = x; then
6695 PKG_CONFIG=""
6696 else
6697 case $cross_compiling:$ac_tool_warned in
6698yes:)
cristy8b350f62009-11-15 23:12:43 +00006699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6701ac_tool_warned=yes ;;
6702esac
6703 PKG_CONFIG=$ac_pt_PKG_CONFIG
6704 fi
6705else
6706 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6707fi
6708
6709fi
6710if test -n "$PKG_CONFIG"; then
6711 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00006712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00006713$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6714 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00006715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006716$as_echo "yes" >&6; }
6717 else
cristy8b350f62009-11-15 23:12:43 +00006718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006719$as_echo "no" >&6; }
6720 PKG_CONFIG=""
6721 fi
6722
6723fi
6724
6725#
6726# Enable OS features.
6727#
6728
6729
cristy8b350f62009-11-15 23:12:43 +00006730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +00006731$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006732if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006733 $as_echo_n "(cached) " >&6
6734else
cristy8b350f62009-11-15 23:12:43 +00006735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006736/* end confdefs.h. */
6737#include <stdlib.h>
6738#include <stdarg.h>
6739#include <string.h>
6740#include <float.h>
6741
6742int
6743main ()
6744{
6745
6746 ;
6747 return 0;
6748}
6749_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006750if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006751 ac_cv_header_stdc=yes
6752else
cristy8b350f62009-11-15 23:12:43 +00006753 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006754fi
cristy3ed852e2009-09-05 21:47:34 +00006755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756
6757if test $ac_cv_header_stdc = yes; then
6758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006760/* end confdefs.h. */
6761#include <string.h>
6762
6763_ACEOF
6764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006765 $EGREP "memchr" >/dev/null 2>&1; then :
6766
cristy3ed852e2009-09-05 21:47:34 +00006767else
6768 ac_cv_header_stdc=no
6769fi
6770rm -f conftest*
6771
6772fi
6773
6774if test $ac_cv_header_stdc = yes; then
6775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006777/* end confdefs.h. */
6778#include <stdlib.h>
6779
6780_ACEOF
6781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006782 $EGREP "free" >/dev/null 2>&1; then :
6783
cristy3ed852e2009-09-05 21:47:34 +00006784else
6785 ac_cv_header_stdc=no
6786fi
6787rm -f conftest*
6788
6789fi
6790
6791if test $ac_cv_header_stdc = yes; then
6792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +00006793 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006794 :
6795else
cristy8b350f62009-11-15 23:12:43 +00006796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006797/* end confdefs.h. */
6798#include <ctype.h>
6799#include <stdlib.h>
6800#if ((' ' & 0x0FF) == 0x020)
6801# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6802# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6803#else
6804# define ISLOWER(c) \
6805 (('a' <= (c) && (c) <= 'i') \
6806 || ('j' <= (c) && (c) <= 'r') \
6807 || ('s' <= (c) && (c) <= 'z'))
6808# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6809#endif
6810
6811#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6812int
6813main ()
6814{
6815 int i;
6816 for (i = 0; i < 256; i++)
6817 if (XOR (islower (i), ISLOWER (i))
6818 || toupper (i) != TOUPPER (i))
6819 return 2;
6820 return 0;
6821}
6822_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006823if ac_fn_c_try_run "$LINENO"; then :
6824
cristy3ed852e2009-09-05 21:47:34 +00006825else
cristy8b350f62009-11-15 23:12:43 +00006826 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006827fi
cristy8b350f62009-11-15 23:12:43 +00006828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6829 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006830fi
6831
cristy3ed852e2009-09-05 21:47:34 +00006832fi
6833fi
cristy8b350f62009-11-15 23:12:43 +00006834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006835$as_echo "$ac_cv_header_stdc" >&6; }
6836if test $ac_cv_header_stdc = yes; then
6837
cristy8b350f62009-11-15 23:12:43 +00006838$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006839
6840fi
6841
6842# On IRIX 5.3, sys/types and inttypes.h are conflicting.
cristy3ed852e2009-09-05 21:47:34 +00006843for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6844 inttypes.h stdint.h unistd.h
cristy8b350f62009-11-15 23:12:43 +00006845do :
6846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6847ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6848"
6849eval as_val=\$$as_ac_Header
6850 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006851 cat >>confdefs.h <<_ACEOF
6852#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6853_ACEOF
6854
6855fi
6856
6857done
6858
6859
6860
cristy8b350f62009-11-15 23:12:43 +00006861 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6862if test "x$ac_cv_header_minix_config_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006863 MINIX=yes
6864else
6865 MINIX=
6866fi
6867
6868
6869 if test "$MINIX" = yes; then
6870
cristy8b350f62009-11-15 23:12:43 +00006871$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006872
6873
cristy8b350f62009-11-15 23:12:43 +00006874$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006875
6876
cristy8b350f62009-11-15 23:12:43 +00006877$as_echo "#define _MINIX 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006878
6879 fi
6880
6881
cristy8b350f62009-11-15 23:12:43 +00006882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006883$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006884if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006885 $as_echo_n "(cached) " >&6
6886else
cristy8b350f62009-11-15 23:12:43 +00006887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006888/* end confdefs.h. */
6889
6890# define __EXTENSIONS__ 1
6891 $ac_includes_default
6892int
6893main ()
6894{
6895
6896 ;
6897 return 0;
6898}
6899_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006900if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006901 ac_cv_safe_to_define___extensions__=yes
6902else
cristy8b350f62009-11-15 23:12:43 +00006903 ac_cv_safe_to_define___extensions__=no
cristy3ed852e2009-09-05 21:47:34 +00006904fi
cristy3ed852e2009-09-05 21:47:34 +00006905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906fi
cristy8b350f62009-11-15 23:12:43 +00006907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006908$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6909 test $ac_cv_safe_to_define___extensions__ = yes &&
cristy8b350f62009-11-15 23:12:43 +00006910 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006911
cristy8b350f62009-11-15 23:12:43 +00006912 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006913
cristy8b350f62009-11-15 23:12:43 +00006914 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006915
cristy8b350f62009-11-15 23:12:43 +00006916 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006917
cristy8b350f62009-11-15 23:12:43 +00006918 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6919
cristy3ed852e2009-09-05 21:47:34 +00006920
6921
cristy3ed852e2009-09-05 21:47:34 +00006922#
6923# Enable run-time checking.
6924#
6925# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00006926if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006927 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6928else
6929 enable_bounds_checking='no'
6930fi
6931
6932
6933if test "$enable_bounds_checking" = yes; then
6934
cristy8b350f62009-11-15 23:12:43 +00006935$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006936
6937fi
6938
6939#
6940# Tests for Windows
6941#
6942
6943
6944
6945GDI32_LIBS=''
6946StaticCplusPlusLibraries='no'
6947native_win32_build='no'
6948cygwin_build='no'
6949case "${host_os}" in
6950 cygwin* )
6951 StaticCplusPlusLibraries='yes'
6952 cygwin_build='yes'
6953 GDI32_LIBS='-lgdi32'
6954 ;;
6955 mingw* )
6956 StaticCplusPlusLibraries='yes'
6957 native_win32_build='yes'
6958 GDI32_LIBS='-lgdi32'
6959 ;;
6960esac
6961if test "${GDI32_LIBS}x" != 'x'; then
6962
cristy8b350f62009-11-15 23:12:43 +00006963$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006964
6965fi
6966
6967 if test "${GDI32_LIBS}x" != 'x' ; then
6968 WINGDI32_DELEGATE_TRUE=
6969 WINGDI32_DELEGATE_FALSE='#'
6970else
6971 WINGDI32_DELEGATE_TRUE='#'
6972 WINGDI32_DELEGATE_FALSE=
6973fi
6974
6975 if test "${native_win32_build}" = 'yes' ; then
6976 WIN32_NATIVE_BUILD_TRUE=
6977 WIN32_NATIVE_BUILD_FALSE='#'
6978else
6979 WIN32_NATIVE_BUILD_TRUE='#'
6980 WIN32_NATIVE_BUILD_FALSE=
6981fi
6982
6983 if test "${cygwin_build}" = 'yes' ; then
6984 CYGWIN_BUILD_TRUE=
6985 CYGWIN_BUILD_FALSE='#'
6986else
6987 CYGWIN_BUILD_TRUE='#'
6988 CYGWIN_BUILD_FALSE=
6989fi
6990
6991 if test "x${CC}" = 'xcl.exe' ; then
6992 USING_CL_TRUE=
6993 USING_CL_FALSE='#'
6994else
6995 USING_CL_TRUE='#'
6996 USING_CL_FALSE=
6997fi
6998
6999
7000WinPathScript="${srcdirfull}/winpath.sh"
7001
7002
7003#
7004# Compiler flags tweaks
7005#
7006if test "${GCC}" != "yes"; then
7007 case "${host}" in
7008 *-*-hpux* )
7009 # aCC: HP ANSI C++ B3910B A.03.34
7010 CFLAGS="${CFLAGS} -Wp,-H30000"
7011 if test -n "${CXXFLAGS}"; then
7012 CXXFLAGS='-AA'
7013 else
7014 CXXFLAGS="${CXXFLAGS} -AA"
7015 fi
7016 ;;
7017 *-dec-osf5.* )
7018 # Compaq alphaev68-dec-osf5.1 compiler
7019 if test -n "${CXXFLAGS}"; then
7020 CXXFLAGS='-std strict_ansi -noimplicit_include'
7021 else
7022 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7023 fi
7024 esac
7025fi
7026
7027# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00007028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007029$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007030if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007031 $as_echo_n "(cached) " >&6
7032else
7033
7034im_cv_ld_lazyload='none'
7035case "${host}" in
7036 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7037 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7038 im_cv_ld_lazyload='-Wl,-zlazyload'
7039 fi
7040 ;;
7041esac
7042
7043fi
cristy8b350f62009-11-15 23:12:43 +00007044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00007045$as_echo "$im_cv_ld_lazyload" >&6; }
7046if test "${im_cv_ld_lazyload}" != 'none' ; then
7047 if test -z "${LDFLAGS}" ; then
7048 LDFLAGS="${im_cv_ld_lazyload}"
7049 else
7050 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7051 fi
7052fi
7053
7054case "$host" in
7055*darwin* | *-macos10*)
7056 if test -d /opt/local ; then
7057 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7058 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7059 elif test -d /sw ; then
7060 CPPFLAGS="$CPPFLAGS -I/sw/include"
7061 LDFLAGS="$LDFLAGS -L/sw/lib"
7062 fi
7063 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00007064if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007065 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7066else
7067 build_osxuniversal=no
7068fi
7069
7070
7071 if test "${build_osxuniversal}" != no ; then
7072 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00007073 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00007074Please re-run configure with these options:
7075 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00007076 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007077 fi
7078 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7079 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7080 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7081 fi
7082 ;;
7083esac
7084
7085# Enable support for threads
7086
7087# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00007088if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007089 withval=$with_threads; with_threads=$withval
7090else
7091 with_threads='yes'
7092fi
7093
7094
7095have_threads=no
7096if test "$with_threads" != 'no'; then
7097
7098
7099
7100ac_ext=c
7101ac_cpp='$CPP $CPPFLAGS'
7102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104ac_compiler_gnu=$ac_cv_c_compiler_gnu
7105
7106acx_pthread_ok=no
7107
7108# We used to check for pthread.h first, but this fails if pthread.h
7109# requires special compiler flags (e.g. on True64 or Sequent).
7110# It gets checked for in the link test anyway.
7111
7112# First of all, check if the user has set any of the PTHREAD_LIBS,
7113# etcetera environment variables, and if threads linking works using
7114# them:
7115if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7116 save_CFLAGS="$CFLAGS"
7117 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7118 save_LIBS="$LIBS"
7119 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00007120 { $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 +00007121$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007123/* end confdefs.h. */
7124
7125/* Override any GCC internal prototype to avoid an error.
7126 Use char because int might match the return type of a GCC
7127 builtin and then its argument prototype would still apply. */
7128#ifdef __cplusplus
7129extern "C"
7130#endif
7131char pthread_join ();
7132int
7133main ()
7134{
7135return pthread_join ();
7136 ;
7137 return 0;
7138}
7139_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007140if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007141 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007142fi
cristy8b350f62009-11-15 23:12:43 +00007143rm -f core conftest.err conftest.$ac_objext \
7144 conftest$ac_exeext conftest.$ac_ext
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007146$as_echo "$acx_pthread_ok" >&6; }
7147 if test x"$acx_pthread_ok" = xno; then
7148 PTHREAD_LIBS=""
7149 PTHREAD_CFLAGS=""
7150 fi
7151 LIBS="$save_LIBS"
7152 CFLAGS="$save_CFLAGS"
7153fi
7154
7155# We must check for the threads library under a number of different
7156# names; the ordering is very important because some systems
7157# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7158# libraries is broken (non-POSIX).
7159
7160# Create a list of thread flags to try. Items starting with a "-" are
7161# C compiler flags, and other items are library names, except for "none"
7162# which indicates that we try without any flags at all, and "pthread-config"
7163# which is a program returning the flags for the Pth emulation library.
7164
7165acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7166
7167# The ordering *is* (sometimes) important. Some notes on the
7168# individual items follow:
7169
7170# pthreads: AIX (must check this before -lpthread)
7171# none: in case threads are in libc; should be tried before -Kthread and
7172# other compiler flags to prevent continual compiler warnings
7173# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7174# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7175# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7176# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7177# -pthreads: Solaris/gcc
7178# -mthreads: Mingw32/gcc, Lynx/gcc
7179# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7180# doesn't hurt to check since this sometimes defines pthreads too;
7181# also defines -D_REENTRANT)
7182# ... -mt is also the pthreads flag for HP/aCC
7183# pthread: Linux, etcetera
7184# --thread-safe: KAI C++
7185# pthread-config: use pthread-config program (for GNU Pth library)
7186
7187case "${host_cpu}-${host_os}" in
7188 *solaris*)
7189
7190 # On Solaris (at least, for some versions), libc contains stubbed
7191 # (non-functional) versions of the pthreads routines, so link-based
7192 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7193 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7194 # a function called by this macro, so we could check for that, but
7195 # who knows whether they'll stub that too in a future libc.) So,
7196 # we'll just look for -pthreads and -lpthread first:
7197
7198 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7199 ;;
cristy3ed852e2009-09-05 21:47:34 +00007200esac
7201
7202if test x"$acx_pthread_ok" = xno; then
7203for flag in $acx_pthread_flags; do
7204
7205 case $flag in
7206 none)
cristy8b350f62009-11-15 23:12:43 +00007207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00007208$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7209 ;;
7210
7211 -*)
cristy8b350f62009-11-15 23:12:43 +00007212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007213$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7214 PTHREAD_CFLAGS="$flag"
7215 ;;
7216
7217 pthread-config)
7218 # Extract the first word of "pthread-config", so it can be a program name with args.
7219set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007221$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007222if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007223 $as_echo_n "(cached) " >&6
7224else
7225 if test -n "$acx_pthread_config"; then
7226 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7227else
7228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229for as_dir in $PATH
7230do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00007236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007237 break 2
7238 fi
7239done
cristy8b350f62009-11-15 23:12:43 +00007240 done
cristy3ed852e2009-09-05 21:47:34 +00007241IFS=$as_save_IFS
7242
7243 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7244fi
7245fi
7246acx_pthread_config=$ac_cv_prog_acx_pthread_config
7247if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00007248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00007249$as_echo "$acx_pthread_config" >&6; }
7250else
cristy8b350f62009-11-15 23:12:43 +00007251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007252$as_echo "no" >&6; }
7253fi
7254
7255
7256 if test x"$acx_pthread_config" = xno; then continue; fi
7257 PTHREAD_CFLAGS="`pthread-config --cflags`"
7258 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7259 ;;
7260
7261 *)
cristy8b350f62009-11-15 23:12:43 +00007262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007263$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7264 PTHREAD_LIBS="-l$flag"
7265 ;;
7266 esac
7267
7268 save_LIBS="$LIBS"
7269 save_CFLAGS="$CFLAGS"
7270 LIBS="$PTHREAD_LIBS $LIBS"
7271 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7272
7273 # Check for various functions. We must include pthread.h,
7274 # since some functions may be macros. (On the Sequent, we
7275 # need a special flag -Kthread to make this header compile.)
7276 # We check for pthread_join because it is in -lpthread on IRIX
7277 # while pthread_create is in libc. We check for pthread_attr_init
7278 # due to DEC craziness with -lpthreads. We check for
7279 # pthread_cleanup_push because it is one of the few pthread
7280 # functions on Solaris that doesn't have a non-functional libc stub.
7281 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00007282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007283/* end confdefs.h. */
7284#include <pthread.h>
7285int
7286main ()
7287{
7288pthread_t th; pthread_join(th, 0);
7289 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7290 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7291 ;
7292 return 0;
7293}
7294_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007295if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007296 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007297fi
cristy8b350f62009-11-15 23:12:43 +00007298rm -f core conftest.err conftest.$ac_objext \
7299 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007300
7301 LIBS="$save_LIBS"
7302 CFLAGS="$save_CFLAGS"
7303
cristy8b350f62009-11-15 23:12:43 +00007304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007305$as_echo "$acx_pthread_ok" >&6; }
7306 if test "x$acx_pthread_ok" = xyes; then
7307 break;
7308 fi
7309
7310 PTHREAD_LIBS=""
7311 PTHREAD_CFLAGS=""
7312done
7313fi
7314
7315# Various other checks:
7316if test "x$acx_pthread_ok" = xyes; then
7317 save_LIBS="$LIBS"
7318 LIBS="$PTHREAD_LIBS $LIBS"
7319 save_CFLAGS="$CFLAGS"
7320 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7321
7322 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00007323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00007324$as_echo_n "checking for joinable pthread attribute... " >&6; }
7325 attr_name=unknown
7326 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00007327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007328/* end confdefs.h. */
7329#include <pthread.h>
7330int
7331main ()
7332{
7333int attr=$attr; return attr;
7334 ;
7335 return 0;
7336}
7337_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007338if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007339 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00007340fi
cristy8b350f62009-11-15 23:12:43 +00007341rm -f core conftest.err conftest.$ac_objext \
7342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007343 done
cristy8b350f62009-11-15 23:12:43 +00007344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00007345$as_echo "$attr_name" >&6; }
7346 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7347
7348cat >>confdefs.h <<_ACEOF
7349#define PTHREAD_CREATE_JOINABLE $attr_name
7350_ACEOF
7351
7352 fi
7353
cristy8b350f62009-11-15 23:12:43 +00007354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00007355$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7356 flag=no
7357 case "${host_cpu}-${host_os}" in
7358 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7359 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7360 esac
cristy8b350f62009-11-15 23:12:43 +00007361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00007362$as_echo "${flag}" >&6; }
7363 if test "x$flag" != xno; then
7364 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7365 fi
7366
7367 LIBS="$save_LIBS"
7368 CFLAGS="$save_CFLAGS"
7369
7370 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00007371 if test x"$GCC" != xyes; then
7372 for ac_prog in xlc_r cc_r
7373do
7374 # Extract the first word of "$ac_prog", so it can be a program name with args.
7375set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007377$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007378if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007379 $as_echo_n "(cached) " >&6
7380else
7381 if test -n "$PTHREAD_CC"; then
7382 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7383else
7384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385for as_dir in $PATH
7386do
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007390 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 +00007391 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00007392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007393 break 2
7394 fi
7395done
cristy8b350f62009-11-15 23:12:43 +00007396 done
cristy3ed852e2009-09-05 21:47:34 +00007397IFS=$as_save_IFS
7398
cristy3ed852e2009-09-05 21:47:34 +00007399fi
7400fi
7401PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7402if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007404$as_echo "$PTHREAD_CC" >&6; }
7405else
cristy8b350f62009-11-15 23:12:43 +00007406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007407$as_echo "no" >&6; }
7408fi
7409
cristy736173a2009-09-20 21:18:22 +00007410
7411 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00007412done
cristy736173a2009-09-20 21:18:22 +00007413test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00007414
cristy736173a2009-09-20 21:18:22 +00007415 else
7416 PTHREAD_CC=$CC
7417 fi
cristy3ed852e2009-09-05 21:47:34 +00007418else
cristy736173a2009-09-20 21:18:22 +00007419 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00007420fi
7421
cristy3ed852e2009-09-05 21:47:34 +00007422
7423
7424
7425
7426# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7427if test x"$acx_pthread_ok" = xyes; then
7428
cristy8b350f62009-11-15 23:12:43 +00007429$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007430
7431 :
7432else
7433 acx_pthread_ok=no
7434
7435fi
7436ac_ext=c
7437ac_cpp='$CPP $CPPFLAGS'
7438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7440ac_compiler_gnu=$ac_cv_c_compiler_gnu
7441
7442
7443 if test "$acx_pthread_ok" = yes; then
7444 have_threads=yes
7445 DEF_THREAD="$PTHREAD_CFLAGS"
7446 CFLAGS="$CFLAGS $DEF_THREAD"
7447 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7448 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007449 { $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 +00007450$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7451 CC="$PTHREAD_CC"
7452 fi
7453 fi
7454fi
7455
7456# Enable support for OpenMP
7457if test "$have_threads" != 'yes'; then
7458 ac_cv_prog_c_openmp=unsupported
7459fi
7460
7461 OPENMP_CFLAGS=
7462 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00007463if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007464 enableval=$enable_openmp;
7465fi
7466
7467 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00007468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007469$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007470if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007471 $as_echo_n "(cached) " >&6
7472else
cristy8b350f62009-11-15 23:12:43 +00007473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007475
7476#ifndef _OPENMP
7477 choke me
7478#endif
7479#include <omp.h>
7480int main () { return omp_get_num_threads (); }
7481
7482_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007483if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007484 ac_cv_prog_c_openmp='none needed'
7485else
cristy8b350f62009-11-15 23:12:43 +00007486 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00007487 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7488 ac_save_CFLAGS=$CFLAGS
7489 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00007490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007492
7493#ifndef _OPENMP
7494 choke me
7495#endif
7496#include <omp.h>
7497int main () { return omp_get_num_threads (); }
7498
7499_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007500if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007501 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00007502fi
cristy8b350f62009-11-15 23:12:43 +00007503rm -f core conftest.err conftest.$ac_objext \
7504 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007505 CFLAGS=$ac_save_CFLAGS
7506 if test "$ac_cv_prog_c_openmp" != unsupported; then
7507 break
7508 fi
7509 done
7510fi
cristy8b350f62009-11-15 23:12:43 +00007511rm -f core conftest.err conftest.$ac_objext \
7512 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007513fi
cristy8b350f62009-11-15 23:12:43 +00007514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00007515$as_echo "$ac_cv_prog_c_openmp" >&6; }
7516 case $ac_cv_prog_c_openmp in #(
7517 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00007518 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00007519 *)
cristy8b350f62009-11-15 23:12:43 +00007520 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00007521 esac
7522 fi
7523
7524
7525CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7526MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7527
7528
cristy736173a2009-09-20 21:18:22 +00007529# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00007530
7531ac_ext=c
7532ac_cpp='$CPP $CPPFLAGS'
7533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535ac_compiler_gnu=$ac_cv_c_compiler_gnu
7536
cristy8b350f62009-11-15 23:12:43 +00007537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00007538$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007539if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007540 $as_echo_n "(cached) " >&6
7541else
cristy8b350f62009-11-15 23:12:43 +00007542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007543/* end confdefs.h. */
7544
7545int
7546main ()
7547{
7548#ifndef _MSC_VER
7549 choke me
7550#endif
7551
7552 ;
7553 return 0;
7554}
7555_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007556if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007557 ax_compiler_ms=yes
7558else
cristy8b350f62009-11-15 23:12:43 +00007559 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00007560fi
cristy736173a2009-09-20 21:18:22 +00007561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562ax_cv_c_compiler_ms=$ax_compiler_ms
7563
7564fi
cristy8b350f62009-11-15 23:12:43 +00007565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00007566$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy8b350f62009-11-15 23:12:43 +00007567if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007568 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7569fi
7570
cristy736173a2009-09-20 21:18:22 +00007571ax_save_CPPFLAGS=$CPPFLAGS
7572CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +00007573for ac_header in CL/opencl.h OpenCL/OpenCL.h
cristy8b350f62009-11-15 23:12:43 +00007574do :
7575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7576ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7577eval as_val=\$$as_ac_Header
7578 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007579 cat >>confdefs.h <<_ACEOF
7580#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7581_ACEOF
7582
7583fi
7584
7585done
7586
7587CPPFLAGS=$ax_save_CPPFLAGS
7588
cristy736173a2009-09-20 21:18:22 +00007589for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00007590do :
7591 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7592if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007593 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007594#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00007595_ACEOF
7596
7597fi
7598
7599done
7600
7601
7602
7603
cristy8b350f62009-11-15 23:12:43 +00007604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00007605$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007606if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007607 $as_echo_n "(cached) " >&6
7608else
7609 ax_cv_check_cl_libcl=no
7610case $host_cpu in
7611 x86_64) ax_check_cl_libdir=lib64 ;;
7612 *) ax_check_cl_libdir=lib ;;
7613esac
7614ax_save_CPPFLAGS=$CPPFLAGS
7615CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7616ax_save_LIBS=$LIBS
7617LIBS=""
cristya49aa422009-09-20 23:40:10 +00007618ax_check_libs="-lOpenCL -lCL"
cristy736173a2009-09-20 21:18:22 +00007619for ax_lib in $ax_check_libs; do
cristy8b350f62009-11-15 23:12:43 +00007620 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007621 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
7622else
7623 ax_try_lib=$ax_lib
7624fi
cristy736173a2009-09-20 21:18:22 +00007625 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
cristy8b350f62009-11-15 23:12:43 +00007626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007627/* end confdefs.h. */
7628
7629# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7630# include <windows.h>
7631# endif
cristya03a0852009-10-13 02:02:39 +00007632# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007633# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007634# elif defined(HAVE_OPENCL_OPENCL_H)
7635# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007636# else
cristya03a0852009-10-13 02:02:39 +00007637# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007638# endif
7639int
7640main ()
7641{
cristyc7083c12009-10-14 03:16:55 +00007642clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007643 ;
7644 return 0;
7645}
7646_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007647if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007648 ax_cv_check_cl_libcl=$ax_try_lib; break
7649else
cristy8b350f62009-11-15 23:12:43 +00007650 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"
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007652/* end confdefs.h. */
7653
7654# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7655# include <windows.h>
7656# endif
cristya03a0852009-10-13 02:02:39 +00007657# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007658# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007659# elif defined(HAVE_OPENCL_OPENCL_H)
7660# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007661# else
cristya03a0852009-10-13 02:02:39 +00007662# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007663# endif
7664int
7665main ()
7666{
cristyc7083c12009-10-14 03:16:55 +00007667clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007668 ;
7669 return 0;
7670}
7671_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007672if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007673 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
7674else
cristy8b350f62009-11-15 23:12:43 +00007675 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"
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007677/* end confdefs.h. */
7678
7679# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7680# include <windows.h>
7681# endif
cristya03a0852009-10-13 02:02:39 +00007682# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007683# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007684# elif defined(HAVE_OPENCL_OPENCL_H)
7685# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007686# else
cristya03a0852009-10-13 02:02:39 +00007687# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007688# endif
7689int
7690main ()
7691{
cristyc7083c12009-10-14 03:16:55 +00007692clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007693 ;
7694 return 0;
7695}
7696_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007697if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007698 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00007699fi
cristy8b350f62009-11-15 23:12:43 +00007700rm -f core conftest.err conftest.$ac_objext \
7701 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007702fi
cristy8b350f62009-11-15 23:12:43 +00007703rm -f core conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007705fi
cristy8b350f62009-11-15 23:12:43 +00007706rm -f core conftest.err conftest.$ac_objext \
7707 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007708done
7709
cristy8b350f62009-11-15 23:12:43 +00007710if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007711 LIBS='-framework OpenCL'
cristy8b350f62009-11-15 23:12:43 +00007712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007713/* end confdefs.h. */
7714
7715# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7716# include <windows.h>
7717# endif
cristya03a0852009-10-13 02:02:39 +00007718# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007719# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007720# elif defined(HAVE_OPENCL_OPENCL_H)
7721# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007722# else
cristya03a0852009-10-13 02:02:39 +00007723# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007724# endif
7725int
7726main ()
7727{
cristyc7083c12009-10-14 03:16:55 +00007728clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007729 ;
7730 return 0;
7731}
7732_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007733if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007734 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00007735fi
cristy8b350f62009-11-15 23:12:43 +00007736rm -f core conftest.err conftest.$ac_objext \
7737 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007738fi
7739
cristy736173a2009-09-20 21:18:22 +00007740LIBS=$ax_save_LIBS
7741CPPFLAGS=$ax_save_CPPFLAGS
7742fi
cristy8b350f62009-11-15 23:12:43 +00007743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00007744$as_echo "$ax_cv_check_cl_libcl" >&6; }
7745
cristy8b350f62009-11-15 23:12:43 +00007746if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007747 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
7748else
7749 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
7750fi
cristy736173a2009-09-20 21:18:22 +00007751ac_ext=c
7752ac_cpp='$CPP $CPPFLAGS'
7753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756
7757
7758
7759
7760
cristyc7083c12009-10-14 03:16:55 +00007761CFLAGS="$CL_CFLAGS $CFLAGS"
7762LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00007763
cristy2e8b51d2009-10-17 18:26:15 +00007764
cristy3ed852e2009-09-05 21:47:34 +00007765########
7766#
7767# Check for large file support
7768#
7769########
7770# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00007771if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007772 enableval=$enable_largefile;
7773fi
7774
7775if test "$enable_largefile" != no; then
7776
cristy8b350f62009-11-15 23:12:43 +00007777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007778$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007779if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007780 $as_echo_n "(cached) " >&6
7781else
7782 ac_cv_sys_largefile_CC=no
7783 if test "$GCC" != yes; then
7784 ac_save_CC=$CC
7785 while :; do
7786 # IRIX 6.2 and later do not support large files by default,
7787 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00007788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007789/* end confdefs.h. */
7790#include <sys/types.h>
7791 /* Check that off_t can represent 2**63 - 1 correctly.
7792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7793 since some C++ compilers masquerading as C compilers
7794 incorrectly reject 9223372036854775807. */
7795#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7797 && LARGE_OFF_T % 2147483647 == 1)
7798 ? 1 : -1];
7799int
7800main ()
7801{
7802
7803 ;
7804 return 0;
7805}
7806_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007807 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007808 break
cristy3ed852e2009-09-05 21:47:34 +00007809fi
cristy3ed852e2009-09-05 21:47:34 +00007810rm -f core conftest.err conftest.$ac_objext
7811 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00007812 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007813 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00007814fi
cristy3ed852e2009-09-05 21:47:34 +00007815rm -f core conftest.err conftest.$ac_objext
7816 break
7817 done
7818 CC=$ac_save_CC
7819 rm -f conftest.$ac_ext
7820 fi
7821fi
cristy8b350f62009-11-15 23:12:43 +00007822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007823$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7824 if test "$ac_cv_sys_largefile_CC" != no; then
7825 CC=$CC$ac_cv_sys_largefile_CC
7826 fi
7827
cristy8b350f62009-11-15 23:12:43 +00007828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007829$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007830if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007831 $as_echo_n "(cached) " >&6
7832else
7833 while :; do
cristy8b350f62009-11-15 23:12:43 +00007834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007835/* end confdefs.h. */
7836#include <sys/types.h>
7837 /* Check that off_t can represent 2**63 - 1 correctly.
7838 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7839 since some C++ compilers masquerading as C compilers
7840 incorrectly reject 9223372036854775807. */
7841#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7842 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7843 && LARGE_OFF_T % 2147483647 == 1)
7844 ? 1 : -1];
7845int
7846main ()
7847{
7848
7849 ;
7850 return 0;
7851}
7852_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007853if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007854 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00007855fi
cristy3ed852e2009-09-05 21:47:34 +00007856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007858/* end confdefs.h. */
7859#define _FILE_OFFSET_BITS 64
7860#include <sys/types.h>
7861 /* Check that off_t can represent 2**63 - 1 correctly.
7862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7863 since some C++ compilers masquerading as C compilers
7864 incorrectly reject 9223372036854775807. */
7865#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7867 && LARGE_OFF_T % 2147483647 == 1)
7868 ? 1 : -1];
7869int
7870main ()
7871{
7872
7873 ;
7874 return 0;
7875}
7876_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007877if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007878 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00007879fi
cristy3ed852e2009-09-05 21:47:34 +00007880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881 ac_cv_sys_file_offset_bits=unknown
7882 break
7883done
7884fi
cristy8b350f62009-11-15 23:12:43 +00007885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00007886$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7887case $ac_cv_sys_file_offset_bits in #(
7888 no | unknown) ;;
7889 *)
7890cat >>confdefs.h <<_ACEOF
7891#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7892_ACEOF
7893;;
7894esac
7895rm -rf conftest*
7896 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00007897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007898$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007899if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007900 $as_echo_n "(cached) " >&6
7901else
7902 while :; do
cristy8b350f62009-11-15 23:12:43 +00007903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007904/* end confdefs.h. */
7905#include <sys/types.h>
7906 /* Check that off_t can represent 2**63 - 1 correctly.
7907 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7908 since some C++ compilers masquerading as C compilers
7909 incorrectly reject 9223372036854775807. */
7910#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7911 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7912 && LARGE_OFF_T % 2147483647 == 1)
7913 ? 1 : -1];
7914int
7915main ()
7916{
7917
7918 ;
7919 return 0;
7920}
7921_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007922if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007923 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00007924fi
cristy3ed852e2009-09-05 21:47:34 +00007925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007927/* end confdefs.h. */
7928#define _LARGE_FILES 1
7929#include <sys/types.h>
7930 /* Check that off_t can represent 2**63 - 1 correctly.
7931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7932 since some C++ compilers masquerading as C compilers
7933 incorrectly reject 9223372036854775807. */
7934#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7936 && LARGE_OFF_T % 2147483647 == 1)
7937 ? 1 : -1];
7938int
7939main ()
7940{
7941
7942 ;
7943 return 0;
7944}
7945_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007946if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007947 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00007948fi
cristy3ed852e2009-09-05 21:47:34 +00007949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 ac_cv_sys_large_files=unknown
7951 break
7952done
7953fi
cristy8b350f62009-11-15 23:12:43 +00007954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007955$as_echo "$ac_cv_sys_large_files" >&6; }
7956case $ac_cv_sys_large_files in #(
7957 no | unknown) ;;
7958 *)
7959cat >>confdefs.h <<_ACEOF
7960#define _LARGE_FILES $ac_cv_sys_large_files
7961_ACEOF
7962;;
7963esac
7964rm -rf conftest*
7965 fi
7966fi
7967
cristy8b350f62009-11-15 23:12:43 +00007968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007969$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007970if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007971 $as_echo_n "(cached) " >&6
7972else
7973 while :; do
cristy8b350f62009-11-15 23:12:43 +00007974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007975/* end confdefs.h. */
7976#include <sys/types.h> /* for off_t */
7977 #include <stdio.h>
7978int
7979main ()
7980{
7981int (*fp) (FILE *, off_t, int) = fseeko;
7982 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7983 ;
7984 return 0;
7985}
7986_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007987if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007988 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00007989fi
cristy8b350f62009-11-15 23:12:43 +00007990rm -f core conftest.err conftest.$ac_objext \
7991 conftest$ac_exeext conftest.$ac_ext
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007993/* end confdefs.h. */
7994#define _LARGEFILE_SOURCE 1
7995#include <sys/types.h> /* for off_t */
7996 #include <stdio.h>
7997int
7998main ()
7999{
8000int (*fp) (FILE *, off_t, int) = fseeko;
8001 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8002 ;
8003 return 0;
8004}
8005_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008006if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008007 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00008008fi
cristy8b350f62009-11-15 23:12:43 +00008009rm -f core conftest.err conftest.$ac_objext \
8010 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008011 ac_cv_sys_largefile_source=unknown
8012 break
8013done
8014fi
cristy8b350f62009-11-15 23:12:43 +00008015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00008016$as_echo "$ac_cv_sys_largefile_source" >&6; }
8017case $ac_cv_sys_largefile_source in #(
8018 no | unknown) ;;
8019 *)
8020cat >>confdefs.h <<_ACEOF
8021#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8022_ACEOF
8023;;
8024esac
8025rm -rf conftest*
8026
8027# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8028# in glibc 2.1.3, but that breaks too many other things.
8029# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8030if test $ac_cv_sys_largefile_source != unknown; then
8031
cristy8b350f62009-11-15 23:12:43 +00008032$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008033
8034fi
8035
8036LFS_CPPFLAGS=''
8037if test "$enable_largefile" != no; then
8038 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8039 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8040 else
cristy8b350f62009-11-15 23:12:43 +00008041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00008042$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008043 if test "$cross_compiling" = yes; then :
8044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00008046as_fn_error "cannot run test program while cross compiling
8047See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00008048else
cristy8b350f62009-11-15 23:12:43 +00008049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008051#include <unistd.h>
8052 main () {
8053 exit(!(sizeof(off_t) == 8));
8054 }
8055_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008056if ac_fn_c_try_run "$LINENO"; then :
8057 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008058
cristy8b350f62009-11-15 23:12:43 +00008059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008060$as_echo "yes" >&6; }
8061else
cristy8b350f62009-11-15 23:12:43 +00008062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008063$as_echo "no" >&6; }
8064fi
cristy8b350f62009-11-15 23:12:43 +00008065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8066 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008067fi
8068
cristy3ed852e2009-09-05 21:47:34 +00008069 fi
8070 if test "$ac_cv_sys_large_files" != 'no'; then
8071 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8072 fi
8073 if test "$ac_cv_sys_largefile_source" != 'no'; then
8074 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8075 fi
8076fi
8077
8078
8079#
8080# Configure libtool & libltdl
8081#
8082# Configure libtool
8083enable_dlopen=yes
8084
8085
8086
8087case `pwd` in
8088 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00008089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00008090$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8091esac
8092
8093
8094
cristy18304f92009-11-22 15:48:26 +00008095macro_version='2.2.6b'
8096macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00008097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110ltmain="$ac_aux_dir/ltmain.sh"
8111
cristy8b350f62009-11-15 23:12:43 +00008112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00008113$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008114if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008115 $as_echo_n "(cached) " >&6
8116else
8117 if test -n "$NM"; then
8118 # Let the user override the test.
8119 lt_cv_path_NM="$NM"
8120else
8121 lt_nm_to_check="${ac_tool_prefix}nm"
8122 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8123 lt_nm_to_check="$lt_nm_to_check nm"
8124 fi
8125 for lt_tmp_nm in $lt_nm_to_check; do
8126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8127 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8128 IFS="$lt_save_ifs"
8129 test -z "$ac_dir" && ac_dir=.
8130 tmp_nm="$ac_dir/$lt_tmp_nm"
8131 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8132 # Check to see if the nm accepts a BSD-compat flag.
8133 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8134 # nm: unknown option "B" ignored
8135 # Tru64's nm complains that /dev/null is an invalid object file
8136 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8137 */dev/null* | *'Invalid file or object type'*)
8138 lt_cv_path_NM="$tmp_nm -B"
8139 break
8140 ;;
8141 *)
8142 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8143 */dev/null*)
8144 lt_cv_path_NM="$tmp_nm -p"
8145 break
8146 ;;
8147 *)
8148 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8149 continue # so that we can try to find one that supports BSD flags
8150 ;;
8151 esac
8152 ;;
8153 esac
8154 fi
8155 done
8156 IFS="$lt_save_ifs"
8157 done
8158 : ${lt_cv_path_NM=no}
8159fi
8160fi
cristy8b350f62009-11-15 23:12:43 +00008161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00008162$as_echo "$lt_cv_path_NM" >&6; }
8163if test "$lt_cv_path_NM" != "no"; then
8164 NM="$lt_cv_path_NM"
8165else
8166 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00008167 if test -n "$ac_tool_prefix"; then
8168 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008169 do
8170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008173$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008174if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008175 $as_echo_n "(cached) " >&6
8176else
8177 if test -n "$DUMPBIN"; then
8178 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8179else
8180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181for as_dir in $PATH
8182do
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8187 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008189 break 2
8190 fi
8191done
cristy8b350f62009-11-15 23:12:43 +00008192 done
cristy3ed852e2009-09-05 21:47:34 +00008193IFS=$as_save_IFS
8194
8195fi
8196fi
8197DUMPBIN=$ac_cv_prog_DUMPBIN
8198if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008200$as_echo "$DUMPBIN" >&6; }
8201else
cristy8b350f62009-11-15 23:12:43 +00008202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008203$as_echo "no" >&6; }
8204fi
8205
8206
8207 test -n "$DUMPBIN" && break
8208 done
8209fi
8210if test -z "$DUMPBIN"; then
8211 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00008212 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008213do
8214 # Extract the first word of "$ac_prog", so it can be a program name with args.
8215set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008217$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008218if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008219 $as_echo_n "(cached) " >&6
8220else
8221 if test -n "$ac_ct_DUMPBIN"; then
8222 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8223else
8224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225for as_dir in $PATH
8226do
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008229 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8231 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008233 break 2
8234 fi
8235done
cristy8b350f62009-11-15 23:12:43 +00008236 done
cristy3ed852e2009-09-05 21:47:34 +00008237IFS=$as_save_IFS
8238
8239fi
8240fi
8241ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8242if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008244$as_echo "$ac_ct_DUMPBIN" >&6; }
8245else
cristy8b350f62009-11-15 23:12:43 +00008246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008247$as_echo "no" >&6; }
8248fi
8249
8250
8251 test -n "$ac_ct_DUMPBIN" && break
8252done
8253
8254 if test "x$ac_ct_DUMPBIN" = x; then
8255 DUMPBIN=":"
8256 else
8257 case $cross_compiling:$ac_tool_warned in
8258yes:)
cristy8b350f62009-11-15 23:12:43 +00008259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8261ac_tool_warned=yes ;;
8262esac
8263 DUMPBIN=$ac_ct_DUMPBIN
8264 fi
8265fi
8266
8267
8268 if test "$DUMPBIN" != ":"; then
8269 NM="$DUMPBIN"
8270 fi
8271fi
8272test -z "$NM" && NM=nm
8273
8274
8275
8276
8277
8278
cristy8b350f62009-11-15 23:12:43 +00008279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008280$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008281if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008282 $as_echo_n "(cached) " >&6
8283else
8284 lt_cv_nm_interface="BSD nm"
8285 echo "int some_variable = 0;" > conftest.$ac_ext
cristy47fa4622009-12-28 01:52:31 +00008286 (eval echo "\"\$as_me:8286: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008287 (eval "$ac_compile" 2>conftest.err)
8288 cat conftest.err >&5
cristy47fa4622009-12-28 01:52:31 +00008289 (eval echo "\"\$as_me:8289: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008290 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8291 cat conftest.err >&5
cristy47fa4622009-12-28 01:52:31 +00008292 (eval echo "\"\$as_me:8292: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008293 cat conftest.out >&5
8294 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8295 lt_cv_nm_interface="MS dumpbin"
8296 fi
8297 rm -f conftest*
8298fi
cristy8b350f62009-11-15 23:12:43 +00008299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008300$as_echo "$lt_cv_nm_interface" >&6; }
8301
8302# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00008303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00008304$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008305if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008306 $as_echo_n "(cached) " >&6
8307else
8308 i=0
8309 teststring="ABCD"
8310
8311 case $build_os in
8312 msdosdjgpp*)
8313 # On DJGPP, this test can blow up pretty badly due to problems in libc
8314 # (any single argument exceeding 2000 bytes causes a buffer overrun
8315 # during glob expansion). Even if it were fixed, the result of this
8316 # check would be larger than it should be.
8317 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8318 ;;
8319
8320 gnu*)
8321 # Under GNU Hurd, this test is not required because there is
8322 # no limit to the length of command line arguments.
8323 # Libtool will interpret -1 as no limit whatsoever
8324 lt_cv_sys_max_cmd_len=-1;
8325 ;;
8326
8327 cygwin* | mingw* | cegcc*)
8328 # On Win9x/ME, this test blows up -- it succeeds, but takes
8329 # about 5 minutes as the teststring grows exponentially.
8330 # Worse, since 9x/ME are not pre-emptively multitasking,
8331 # you end up with a "frozen" computer, even though with patience
8332 # the test eventually succeeds (with a max line length of 256k).
8333 # Instead, let's just punt: use the minimum linelength reported by
8334 # all of the supported platforms: 8192 (on NT/2K/XP).
8335 lt_cv_sys_max_cmd_len=8192;
8336 ;;
8337
8338 amigaos*)
8339 # On AmigaOS with pdksh, this test takes hours, literally.
8340 # So we just punt and use a minimum line length of 8192.
8341 lt_cv_sys_max_cmd_len=8192;
8342 ;;
8343
8344 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8345 # This has been around since 386BSD, at least. Likely further.
8346 if test -x /sbin/sysctl; then
8347 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8348 elif test -x /usr/sbin/sysctl; then
8349 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8350 else
8351 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8352 fi
8353 # And add a safety zone
8354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8356 ;;
8357
8358 interix*)
8359 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8360 lt_cv_sys_max_cmd_len=196608
8361 ;;
8362
8363 osf*)
8364 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8365 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8366 # nice to cause kernel panics so lets avoid the loop below.
8367 # First set a reasonable default.
8368 lt_cv_sys_max_cmd_len=16384
8369 #
8370 if test -x /sbin/sysconfig; then
8371 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8372 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8373 esac
8374 fi
8375 ;;
8376 sco3.2v5*)
8377 lt_cv_sys_max_cmd_len=102400
8378 ;;
8379 sysv5* | sco5v6* | sysv4.2uw2*)
8380 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8381 if test -n "$kargmax"; then
8382 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8383 else
8384 lt_cv_sys_max_cmd_len=32768
8385 fi
8386 ;;
8387 *)
8388 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8389 if test -n "$lt_cv_sys_max_cmd_len"; then
8390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8392 else
8393 # Make teststring a little bigger before we do anything with it.
8394 # a 1K string should be a reasonable start.
8395 for i in 1 2 3 4 5 6 7 8 ; do
8396 teststring=$teststring$teststring
8397 done
8398 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8399 # If test is not a shell built-in, we'll probably end up computing a
8400 # maximum length that is only half of the actual maximum length, but
8401 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00008402 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8403 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00008404 test $i != 17 # 1/2 MB should be enough
8405 do
8406 i=`expr $i + 1`
8407 teststring=$teststring$teststring
8408 done
8409 # Only check the string length outside the loop.
8410 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8411 teststring=
8412 # Add a significant safety factor because C++ compilers can tack on
8413 # massive amounts of additional arguments before passing them to the
8414 # linker. It appears as though 1/2 is a usable value.
8415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8416 fi
8417 ;;
8418 esac
8419
8420fi
8421
8422if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00008423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00008424$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8425else
cristy8b350f62009-11-15 23:12:43 +00008426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00008427$as_echo "none" >&6; }
8428fi
8429max_cmd_len=$lt_cv_sys_max_cmd_len
8430
8431
8432
8433
8434
8435
8436: ${CP="cp -f"}
8437: ${MV="mv -f"}
8438: ${RM="rm -f"}
8439
cristy8b350f62009-11-15 23:12:43 +00008440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00008441$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8442# Try some XSI features
8443xsi_shell=no
8444( _lt_dummy="a/b/c"
8445 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8446 = c,a/b,, \
8447 && eval 'test $(( 1 + 1 )) -eq 2 \
8448 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8449 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00008450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00008451$as_echo "$xsi_shell" >&6; }
8452
8453
cristy8b350f62009-11-15 23:12:43 +00008454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00008455$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8456lt_shell_append=no
8457( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8458 >/dev/null 2>&1 \
8459 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00008460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00008461$as_echo "$lt_shell_append" >&6; }
8462
8463
8464if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8465 lt_unset=unset
8466else
8467 lt_unset=false
8468fi
8469
8470
8471
8472
8473
8474# test EBCDIC or ASCII
8475case `echo X|tr X '\101'` in
8476 A) # ASCII based system
8477 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8478 lt_SP2NL='tr \040 \012'
8479 lt_NL2SP='tr \015\012 \040\040'
8480 ;;
8481 *) # EBCDIC based system
8482 lt_SP2NL='tr \100 \n'
8483 lt_NL2SP='tr \r\n \100\100'
8484 ;;
8485esac
8486
8487
8488
8489
8490
8491
8492
8493
8494
cristy8b350f62009-11-15 23:12:43 +00008495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008496$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008497if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008498 $as_echo_n "(cached) " >&6
8499else
8500 lt_cv_ld_reload_flag='-r'
8501fi
cristy8b350f62009-11-15 23:12:43 +00008502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008503$as_echo "$lt_cv_ld_reload_flag" >&6; }
8504reload_flag=$lt_cv_ld_reload_flag
8505case $reload_flag in
8506"" | " "*) ;;
8507*) reload_flag=" $reload_flag" ;;
8508esac
8509reload_cmds='$LD$reload_flag -o $output$reload_objs'
8510case $host_os in
8511 darwin*)
8512 if test "$GCC" = yes; then
8513 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8514 else
8515 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8516 fi
8517 ;;
8518esac
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528if test -n "$ac_tool_prefix"; then
8529 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8530set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008532$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008533if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008534 $as_echo_n "(cached) " >&6
8535else
8536 if test -n "$OBJDUMP"; then
8537 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8538else
8539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540for as_dir in $PATH
8541do
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008544 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8546 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00008547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008548 break 2
8549 fi
8550done
cristy8b350f62009-11-15 23:12:43 +00008551 done
cristy3ed852e2009-09-05 21:47:34 +00008552IFS=$as_save_IFS
8553
8554fi
8555fi
8556OBJDUMP=$ac_cv_prog_OBJDUMP
8557if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008559$as_echo "$OBJDUMP" >&6; }
8560else
cristy8b350f62009-11-15 23:12:43 +00008561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008562$as_echo "no" >&6; }
8563fi
8564
8565
8566fi
8567if test -z "$ac_cv_prog_OBJDUMP"; then
8568 ac_ct_OBJDUMP=$OBJDUMP
8569 # Extract the first word of "objdump", so it can be a program name with args.
8570set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008572$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008573if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008574 $as_echo_n "(cached) " >&6
8575else
8576 if test -n "$ac_ct_OBJDUMP"; then
8577 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8578else
8579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580for as_dir in $PATH
8581do
8582 IFS=$as_save_IFS
8583 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008584 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8586 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00008587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008588 break 2
8589 fi
8590done
cristy8b350f62009-11-15 23:12:43 +00008591 done
cristy3ed852e2009-09-05 21:47:34 +00008592IFS=$as_save_IFS
8593
8594fi
8595fi
8596ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8597if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008599$as_echo "$ac_ct_OBJDUMP" >&6; }
8600else
cristy8b350f62009-11-15 23:12:43 +00008601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008602$as_echo "no" >&6; }
8603fi
8604
8605 if test "x$ac_ct_OBJDUMP" = x; then
8606 OBJDUMP="false"
8607 else
8608 case $cross_compiling:$ac_tool_warned in
8609yes:)
cristy8b350f62009-11-15 23:12:43 +00008610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8612ac_tool_warned=yes ;;
8613esac
8614 OBJDUMP=$ac_ct_OBJDUMP
8615 fi
8616else
8617 OBJDUMP="$ac_cv_prog_OBJDUMP"
8618fi
8619
8620test -z "$OBJDUMP" && OBJDUMP=objdump
8621
8622
8623
8624
8625
8626
cristy8b350f62009-11-15 23:12:43 +00008627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00008628$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008629if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008630 $as_echo_n "(cached) " >&6
8631else
8632 lt_cv_file_magic_cmd='$MAGIC_CMD'
8633lt_cv_file_magic_test_file=
8634lt_cv_deplibs_check_method='unknown'
8635# Need to set the preceding variable on all platforms that support
8636# interlibrary dependencies.
8637# 'none' -- dependencies not supported.
8638# `unknown' -- same as none, but documents that we really don't know.
8639# 'pass_all' -- all dependencies passed with no checks.
8640# 'test_compile' -- check by making test program.
8641# 'file_magic [[regex]]' -- check by looking for files in library path
8642# which responds to the $file_magic_cmd with a given extended regex.
8643# If you have `file' or equivalent on your system and you're not sure
8644# whether `pass_all' will *always* work, you probably want this one.
8645
8646case $host_os in
8647aix[4-9]*)
8648 lt_cv_deplibs_check_method=pass_all
8649 ;;
8650
8651beos*)
8652 lt_cv_deplibs_check_method=pass_all
8653 ;;
8654
8655bsdi[45]*)
8656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8657 lt_cv_file_magic_cmd='/usr/bin/file -L'
8658 lt_cv_file_magic_test_file=/shlib/libc.so
8659 ;;
8660
8661cygwin*)
8662 # func_win32_libid is a shell function defined in ltmain.sh
8663 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8664 lt_cv_file_magic_cmd='func_win32_libid'
8665 ;;
8666
8667mingw* | pw32*)
8668 # Base MSYS/MinGW do not provide the 'file' command needed by
8669 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8670 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +00008671 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00008672 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8673 lt_cv_file_magic_cmd='func_win32_libid'
8674 else
8675 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8676 lt_cv_file_magic_cmd='$OBJDUMP -f'
8677 fi
8678 ;;
8679
cristy18304f92009-11-22 15:48:26 +00008680cegcc)
cristy3ed852e2009-09-05 21:47:34 +00008681 # use the weaker test based on 'objdump'. See mingw*.
8682 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8683 lt_cv_file_magic_cmd='$OBJDUMP -f'
8684 ;;
8685
8686darwin* | rhapsody*)
8687 lt_cv_deplibs_check_method=pass_all
8688 ;;
8689
8690freebsd* | dragonfly*)
8691 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8692 case $host_cpu in
8693 i*86 )
8694 # Not sure whether the presence of OpenBSD here was a mistake.
8695 # Let's accept both of them until this is cleared up.
8696 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8697 lt_cv_file_magic_cmd=/usr/bin/file
8698 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8699 ;;
8700 esac
8701 else
8702 lt_cv_deplibs_check_method=pass_all
8703 fi
8704 ;;
8705
8706gnu*)
8707 lt_cv_deplibs_check_method=pass_all
8708 ;;
8709
8710hpux10.20* | hpux11*)
8711 lt_cv_file_magic_cmd=/usr/bin/file
8712 case $host_cpu in
8713 ia64*)
8714 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8715 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8716 ;;
8717 hppa*64*)
cristy18304f92009-11-22 15:48:26 +00008718 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 +00008719 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8720 ;;
8721 *)
cristy18304f92009-11-22 15:48:26 +00008722 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 +00008723 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8724 ;;
8725 esac
8726 ;;
8727
8728interix[3-9]*)
8729 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8731 ;;
8732
8733irix5* | irix6* | nonstopux*)
8734 case $LD in
8735 *-32|*"-32 ") libmagic=32-bit;;
8736 *-n32|*"-n32 ") libmagic=N32;;
8737 *-64|*"-64 ") libmagic=64-bit;;
8738 *) libmagic=never-match;;
8739 esac
8740 lt_cv_deplibs_check_method=pass_all
8741 ;;
8742
8743# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +00008744linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00008745 lt_cv_deplibs_check_method=pass_all
8746 ;;
8747
8748netbsd*)
8749 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8751 else
8752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8753 fi
8754 ;;
8755
8756newos6*)
8757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8758 lt_cv_file_magic_cmd=/usr/bin/file
8759 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8760 ;;
8761
8762*nto* | *qnx*)
8763 lt_cv_deplibs_check_method=pass_all
8764 ;;
8765
8766openbsd*)
8767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8768 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8769 else
8770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8771 fi
8772 ;;
8773
8774osf3* | osf4* | osf5*)
8775 lt_cv_deplibs_check_method=pass_all
8776 ;;
8777
8778rdos*)
8779 lt_cv_deplibs_check_method=pass_all
8780 ;;
8781
8782solaris*)
8783 lt_cv_deplibs_check_method=pass_all
8784 ;;
8785
8786sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8787 lt_cv_deplibs_check_method=pass_all
8788 ;;
8789
8790sysv4 | sysv4.3*)
8791 case $host_vendor in
8792 motorola)
8793 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]'
8794 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8795 ;;
8796 ncr)
8797 lt_cv_deplibs_check_method=pass_all
8798 ;;
8799 sequent)
8800 lt_cv_file_magic_cmd='/bin/file'
8801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8802 ;;
8803 sni)
8804 lt_cv_file_magic_cmd='/bin/file'
8805 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8806 lt_cv_file_magic_test_file=/lib/libc.so
8807 ;;
8808 siemens)
8809 lt_cv_deplibs_check_method=pass_all
8810 ;;
8811 pc)
8812 lt_cv_deplibs_check_method=pass_all
8813 ;;
8814 esac
8815 ;;
8816
8817tpf*)
8818 lt_cv_deplibs_check_method=pass_all
8819 ;;
8820esac
8821
8822fi
cristy8b350f62009-11-15 23:12:43 +00008823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00008824$as_echo "$lt_cv_deplibs_check_method" >&6; }
8825file_magic_cmd=$lt_cv_file_magic_cmd
8826deplibs_check_method=$lt_cv_deplibs_check_method
8827test -z "$deplibs_check_method" && deplibs_check_method=unknown
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840if test -n "$ac_tool_prefix"; then
8841 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8842set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008844$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008845if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008846 $as_echo_n "(cached) " >&6
8847else
8848 if test -n "$AR"; then
8849 ac_cv_prog_AR="$AR" # Let the user override the test.
8850else
8851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852for as_dir in $PATH
8853do
8854 IFS=$as_save_IFS
8855 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008856 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8858 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00008859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008860 break 2
8861 fi
8862done
cristy8b350f62009-11-15 23:12:43 +00008863 done
cristy3ed852e2009-09-05 21:47:34 +00008864IFS=$as_save_IFS
8865
8866fi
8867fi
8868AR=$ac_cv_prog_AR
8869if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00008870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008871$as_echo "$AR" >&6; }
8872else
cristy8b350f62009-11-15 23:12:43 +00008873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008874$as_echo "no" >&6; }
8875fi
8876
8877
8878fi
8879if test -z "$ac_cv_prog_AR"; then
8880 ac_ct_AR=$AR
8881 # Extract the first word of "ar", so it can be a program name with args.
8882set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008884$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008885if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008886 $as_echo_n "(cached) " >&6
8887else
8888 if test -n "$ac_ct_AR"; then
8889 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8890else
8891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892for as_dir in $PATH
8893do
8894 IFS=$as_save_IFS
8895 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008896 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8898 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00008899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008900 break 2
8901 fi
8902done
cristy8b350f62009-11-15 23:12:43 +00008903 done
cristy3ed852e2009-09-05 21:47:34 +00008904IFS=$as_save_IFS
8905
8906fi
8907fi
8908ac_ct_AR=$ac_cv_prog_ac_ct_AR
8909if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00008910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008911$as_echo "$ac_ct_AR" >&6; }
8912else
cristy8b350f62009-11-15 23:12:43 +00008913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008914$as_echo "no" >&6; }
8915fi
8916
8917 if test "x$ac_ct_AR" = x; then
8918 AR="false"
8919 else
8920 case $cross_compiling:$ac_tool_warned in
8921yes:)
cristy8b350f62009-11-15 23:12:43 +00008922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8924ac_tool_warned=yes ;;
8925esac
8926 AR=$ac_ct_AR
8927 fi
8928else
8929 AR="$ac_cv_prog_AR"
8930fi
8931
8932test -z "$AR" && AR=ar
8933test -z "$AR_FLAGS" && AR_FLAGS=cru
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945if test -n "$ac_tool_prefix"; then
8946 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8947set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008949$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008950if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008951 $as_echo_n "(cached) " >&6
8952else
8953 if test -n "$STRIP"; then
8954 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8955else
8956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957for as_dir in $PATH
8958do
8959 IFS=$as_save_IFS
8960 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8963 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00008964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008965 break 2
8966 fi
8967done
cristy8b350f62009-11-15 23:12:43 +00008968 done
cristy3ed852e2009-09-05 21:47:34 +00008969IFS=$as_save_IFS
8970
8971fi
8972fi
8973STRIP=$ac_cv_prog_STRIP
8974if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00008975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008976$as_echo "$STRIP" >&6; }
8977else
cristy8b350f62009-11-15 23:12:43 +00008978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008979$as_echo "no" >&6; }
8980fi
8981
8982
8983fi
8984if test -z "$ac_cv_prog_STRIP"; then
8985 ac_ct_STRIP=$STRIP
8986 # Extract the first word of "strip", so it can be a program name with args.
8987set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008989$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008990if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008991 $as_echo_n "(cached) " >&6
8992else
8993 if test -n "$ac_ct_STRIP"; then
8994 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8995else
8996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997for as_dir in $PATH
8998do
8999 IFS=$as_save_IFS
9000 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009001 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9003 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00009004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009005 break 2
9006 fi
9007done
cristy8b350f62009-11-15 23:12:43 +00009008 done
cristy3ed852e2009-09-05 21:47:34 +00009009IFS=$as_save_IFS
9010
9011fi
9012fi
9013ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9014if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009016$as_echo "$ac_ct_STRIP" >&6; }
9017else
cristy8b350f62009-11-15 23:12:43 +00009018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009019$as_echo "no" >&6; }
9020fi
9021
9022 if test "x$ac_ct_STRIP" = x; then
9023 STRIP=":"
9024 else
9025 case $cross_compiling:$ac_tool_warned in
9026yes:)
cristy8b350f62009-11-15 23:12:43 +00009027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9029ac_tool_warned=yes ;;
9030esac
9031 STRIP=$ac_ct_STRIP
9032 fi
9033else
9034 STRIP="$ac_cv_prog_STRIP"
9035fi
9036
9037test -z "$STRIP" && STRIP=:
9038
9039
9040
9041
9042
9043
9044if test -n "$ac_tool_prefix"; then
9045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9046set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009048$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009049if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009050 $as_echo_n "(cached) " >&6
9051else
9052 if test -n "$RANLIB"; then
9053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9054else
9055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056for as_dir in $PATH
9057do
9058 IFS=$as_save_IFS
9059 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009060 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00009063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009064 break 2
9065 fi
9066done
cristy8b350f62009-11-15 23:12:43 +00009067 done
cristy3ed852e2009-09-05 21:47:34 +00009068IFS=$as_save_IFS
9069
9070fi
9071fi
9072RANLIB=$ac_cv_prog_RANLIB
9073if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009075$as_echo "$RANLIB" >&6; }
9076else
cristy8b350f62009-11-15 23:12:43 +00009077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009078$as_echo "no" >&6; }
9079fi
9080
9081
9082fi
9083if test -z "$ac_cv_prog_RANLIB"; then
9084 ac_ct_RANLIB=$RANLIB
9085 # Extract the first word of "ranlib", so it can be a program name with args.
9086set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009088$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009089if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009090 $as_echo_n "(cached) " >&6
9091else
9092 if test -n "$ac_ct_RANLIB"; then
9093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9094else
9095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096for as_dir in $PATH
9097do
9098 IFS=$as_save_IFS
9099 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009100 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9102 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00009103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009104 break 2
9105 fi
9106done
cristy8b350f62009-11-15 23:12:43 +00009107 done
cristy3ed852e2009-09-05 21:47:34 +00009108IFS=$as_save_IFS
9109
9110fi
9111fi
9112ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9113if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009115$as_echo "$ac_ct_RANLIB" >&6; }
9116else
cristy8b350f62009-11-15 23:12:43 +00009117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009118$as_echo "no" >&6; }
9119fi
9120
9121 if test "x$ac_ct_RANLIB" = x; then
9122 RANLIB=":"
9123 else
9124 case $cross_compiling:$ac_tool_warned in
9125yes:)
cristy8b350f62009-11-15 23:12:43 +00009126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9128ac_tool_warned=yes ;;
9129esac
9130 RANLIB=$ac_ct_RANLIB
9131 fi
9132else
9133 RANLIB="$ac_cv_prog_RANLIB"
9134fi
9135
9136test -z "$RANLIB" && RANLIB=:
9137
9138
9139
9140
9141
9142
9143# Determine commands to create old-style static archives.
9144old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9145old_postinstall_cmds='chmod 644 $oldlib'
9146old_postuninstall_cmds=
9147
9148if test -n "$RANLIB"; then
9149 case $host_os in
9150 openbsd*)
9151 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9152 ;;
9153 *)
9154 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9155 ;;
9156 esac
9157 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9158fi
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
9185
9186
9187
9188
9189
9190
9191
9192
9193# If no C compiler was specified, use CC.
9194LTCC=${LTCC-"$CC"}
9195
9196# If no C compiler flags were specified, use CFLAGS.
9197LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9198
9199# Allow CC to be a program name with arguments.
9200compiler=$CC
9201
9202
9203# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +00009204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +00009205$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009206if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009207 $as_echo_n "(cached) " >&6
9208else
9209
9210# These are sane defaults that work on at least a few old systems.
9211# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9212
9213# Character class describing NM global symbol codes.
9214symcode='[BCDEGRST]'
9215
9216# Regexp to match symbols that can be accessed directly from C.
9217sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9218
9219# Define system-specific variables.
9220case $host_os in
9221aix*)
9222 symcode='[BCDT]'
9223 ;;
9224cygwin* | mingw* | pw32* | cegcc*)
9225 symcode='[ABCDGISTW]'
9226 ;;
9227hpux*)
9228 if test "$host_cpu" = ia64; then
9229 symcode='[ABCDEGRST]'
9230 fi
9231 ;;
9232irix* | nonstopux*)
9233 symcode='[BCDEGRST]'
9234 ;;
9235osf*)
9236 symcode='[BCDEGQRST]'
9237 ;;
9238solaris*)
9239 symcode='[BDRT]'
9240 ;;
9241sco3.2v5*)
9242 symcode='[DT]'
9243 ;;
9244sysv4.2uw2*)
9245 symcode='[DT]'
9246 ;;
9247sysv5* | sco5v6* | unixware* | OpenUNIX*)
9248 symcode='[ABDT]'
9249 ;;
9250sysv4)
9251 symcode='[DFNSTU]'
9252 ;;
9253esac
9254
9255# If we're using GNU nm, then use its standard symbol codes.
9256case `$NM -V 2>&1` in
9257*GNU* | *'with BFD'*)
9258 symcode='[ABCDGIRSTW]' ;;
9259esac
9260
9261# Transform an extracted symbol line into a proper C declaration.
9262# Some systems (esp. on ia64) link data and code symbols differently,
9263# so use this general approach.
9264lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9265
9266# Transform an extracted symbol line into symbol name and symbol address
9267lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9268lt_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'"
9269
9270# Handle CRLF in mingw tool chain
9271opt_cr=
9272case $build_os in
9273mingw*)
9274 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9275 ;;
9276esac
9277
9278# Try without a prefix underscore, then with it.
9279for ac_symprfx in "" "_"; do
9280
9281 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9282 symxfrm="\\1 $ac_symprfx\\2 \\2"
9283
9284 # Write the raw and C identifiers.
9285 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9286 # Fake it for dumpbin and say T for any non-static function
9287 # and D for any global variable.
9288 # Also find C++ and __fastcall symbols from MSVC++,
9289 # which start with @ or ?.
9290 lt_cv_sys_global_symbol_pipe="$AWK '"\
9291" {last_section=section; section=\$ 3};"\
9292" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9293" \$ 0!~/External *\|/{next};"\
9294" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9295" {if(hide[section]) next};"\
9296" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9297" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9298" s[1]~/^[@?]/{print s[1], s[1]; next};"\
9299" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9300" ' prfx=^$ac_symprfx"
9301 else
9302 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9303 fi
9304
9305 # Check to see that the pipe works correctly.
9306 pipe_works=no
9307
9308 rm -f conftest*
9309 cat > conftest.$ac_ext <<_LT_EOF
9310#ifdef __cplusplus
9311extern "C" {
9312#endif
9313char nm_test_var;
9314void nm_test_func(void);
9315void nm_test_func(void){}
9316#ifdef __cplusplus
9317}
9318#endif
9319int main(){nm_test_var='a';nm_test_func();return(0);}
9320_LT_EOF
9321
cristy8b350f62009-11-15 23:12:43 +00009322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009323 (eval $ac_compile) 2>&5
9324 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9326 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009327 # Now try to grab the symbols.
9328 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +00009329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9330 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +00009331 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9333 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +00009334 # Try sorting and uniquifying the output.
9335 if sort "$nlist" | uniq > "$nlist"T; then
9336 mv -f "$nlist"T "$nlist"
9337 else
9338 rm -f "$nlist"T
9339 fi
9340
9341 # Make sure that we snagged all the symbols we need.
9342 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9343 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9344 cat <<_LT_EOF > conftest.$ac_ext
9345#ifdef __cplusplus
9346extern "C" {
9347#endif
9348
9349_LT_EOF
9350 # Now generate the symbol file.
9351 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9352
9353 cat <<_LT_EOF >> conftest.$ac_ext
9354
9355/* The mapping between symbol names and symbols. */
9356const struct {
9357 const char *name;
9358 void *address;
9359}
9360lt__PROGRAM__LTX_preloaded_symbols[] =
9361{
9362 { "@PROGRAM@", (void *) 0 },
9363_LT_EOF
9364 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9365 cat <<\_LT_EOF >> conftest.$ac_ext
9366 {0, (void *) 0}
9367};
9368
9369/* This works around a problem in FreeBSD linker */
9370#ifdef FREEBSD_WORKAROUND
9371static const void *lt_preloaded_setup() {
9372 return lt__PROGRAM__LTX_preloaded_symbols;
9373}
9374#endif
9375
9376#ifdef __cplusplus
9377}
9378#endif
9379_LT_EOF
9380 # Now try linking the two files.
9381 mv conftest.$ac_objext conftstm.$ac_objext
9382 lt_save_LIBS="$LIBS"
9383 lt_save_CFLAGS="$CFLAGS"
9384 LIBS="conftstm.$ac_objext"
9385 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +00009386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009387 (eval $ac_link) 2>&5
9388 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9390 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +00009391 pipe_works=yes
9392 fi
9393 LIBS="$lt_save_LIBS"
9394 CFLAGS="$lt_save_CFLAGS"
9395 else
9396 echo "cannot find nm_test_func in $nlist" >&5
9397 fi
9398 else
9399 echo "cannot find nm_test_var in $nlist" >&5
9400 fi
9401 else
9402 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9403 fi
9404 else
9405 echo "$progname: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9407 fi
9408 rm -rf conftest* conftst*
9409
9410 # Do not use the global_symbol_pipe unless it works.
9411 if test "$pipe_works" = yes; then
9412 break
9413 else
9414 lt_cv_sys_global_symbol_pipe=
9415 fi
9416done
9417
9418fi
9419
9420if test -z "$lt_cv_sys_global_symbol_pipe"; then
9421 lt_cv_sys_global_symbol_to_cdecl=
9422fi
9423if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +00009424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +00009425$as_echo "failed" >&6; }
9426else
cristy8b350f62009-11-15 23:12:43 +00009427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00009428$as_echo "ok" >&6; }
9429fi
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +00009453if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009454 enableval=$enable_libtool_lock;
9455fi
9456
9457test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9458
9459# Some flags need to be propagated to the compiler or linker for good
9460# libtool support.
9461case $host in
9462ia64-*-hpux*)
9463 # Find out which ABI we are using.
9464 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009466 (eval $ac_compile) 2>&5
9467 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9469 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009470 case `/usr/bin/file conftest.$ac_objext` in
9471 *ELF-32*)
9472 HPUX_IA64_MODE="32"
9473 ;;
9474 *ELF-64*)
9475 HPUX_IA64_MODE="64"
9476 ;;
9477 esac
9478 fi
9479 rm -rf conftest*
9480 ;;
9481*-*-irix6*)
9482 # Find out which ABI we are using.
cristy47fa4622009-12-28 01:52:31 +00009483 echo '#line 9483 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009485 (eval $ac_compile) 2>&5
9486 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9488 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009489 if test "$lt_cv_prog_gnu_ld" = yes; then
9490 case `/usr/bin/file conftest.$ac_objext` in
9491 *32-bit*)
9492 LD="${LD-ld} -melf32bsmip"
9493 ;;
9494 *N32*)
9495 LD="${LD-ld} -melf32bmipn32"
9496 ;;
9497 *64-bit*)
9498 LD="${LD-ld} -melf64bmip"
9499 ;;
9500 esac
9501 else
9502 case `/usr/bin/file conftest.$ac_objext` in
9503 *32-bit*)
9504 LD="${LD-ld} -32"
9505 ;;
9506 *N32*)
9507 LD="${LD-ld} -n32"
9508 ;;
9509 *64-bit*)
9510 LD="${LD-ld} -64"
9511 ;;
9512 esac
9513 fi
9514 fi
9515 rm -rf conftest*
9516 ;;
9517
9518x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9519s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9520 # Find out which ABI we are using.
9521 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009523 (eval $ac_compile) 2>&5
9524 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9526 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009527 case `/usr/bin/file conftest.o` in
9528 *32-bit*)
9529 case $host in
9530 x86_64-*kfreebsd*-gnu)
9531 LD="${LD-ld} -m elf_i386_fbsd"
9532 ;;
9533 x86_64-*linux*)
9534 LD="${LD-ld} -m elf_i386"
9535 ;;
9536 ppc64-*linux*|powerpc64-*linux*)
9537 LD="${LD-ld} -m elf32ppclinux"
9538 ;;
9539 s390x-*linux*)
9540 LD="${LD-ld} -m elf_s390"
9541 ;;
9542 sparc64-*linux*)
9543 LD="${LD-ld} -m elf32_sparc"
9544 ;;
9545 esac
9546 ;;
9547 *64-bit*)
9548 case $host in
9549 x86_64-*kfreebsd*-gnu)
9550 LD="${LD-ld} -m elf_x86_64_fbsd"
9551 ;;
9552 x86_64-*linux*)
9553 LD="${LD-ld} -m elf_x86_64"
9554 ;;
9555 ppc*-*linux*|powerpc*-*linux*)
9556 LD="${LD-ld} -m elf64ppc"
9557 ;;
9558 s390*-*linux*|s390*-*tpf*)
9559 LD="${LD-ld} -m elf64_s390"
9560 ;;
9561 sparc*-*linux*)
9562 LD="${LD-ld} -m elf64_sparc"
9563 ;;
9564 esac
9565 ;;
9566 esac
9567 fi
9568 rm -rf conftest*
9569 ;;
9570
9571*-*-sco3.2v5*)
9572 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9573 SAVE_CFLAGS="$CFLAGS"
9574 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +00009575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009576$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009577if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009578 $as_echo_n "(cached) " >&6
9579else
9580 ac_ext=c
9581ac_cpp='$CPP $CPPFLAGS'
9582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9584ac_compiler_gnu=$ac_cv_c_compiler_gnu
9585
cristy8b350f62009-11-15 23:12:43 +00009586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009587/* end confdefs.h. */
9588
9589int
9590main ()
9591{
9592
9593 ;
9594 return 0;
9595}
9596_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009597if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009598 lt_cv_cc_needs_belf=yes
9599else
cristy8b350f62009-11-15 23:12:43 +00009600 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +00009601fi
cristy8b350f62009-11-15 23:12:43 +00009602rm -f core conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009604 ac_ext=c
9605ac_cpp='$CPP $CPPFLAGS'
9606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9608ac_compiler_gnu=$ac_cv_c_compiler_gnu
9609
9610fi
cristy8b350f62009-11-15 23:12:43 +00009611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009612$as_echo "$lt_cv_cc_needs_belf" >&6; }
9613 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9614 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9615 CFLAGS="$SAVE_CFLAGS"
9616 fi
9617 ;;
9618sparc*-*solaris*)
9619 # Find out which ABI we are using.
9620 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009622 (eval $ac_compile) 2>&5
9623 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9625 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009626 case `/usr/bin/file conftest.o` in
9627 *64-bit*)
9628 case $lt_cv_prog_gnu_ld in
9629 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9630 *)
9631 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9632 LD="${LD-ld} -64"
9633 fi
9634 ;;
9635 esac
9636 ;;
9637 esac
9638 fi
9639 rm -rf conftest*
9640 ;;
9641esac
9642
9643need_locks="$enable_libtool_lock"
9644
9645
9646 case $host_os in
9647 rhapsody* | darwin*)
9648 if test -n "$ac_tool_prefix"; then
9649 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9650set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009652$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009653if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009654 $as_echo_n "(cached) " >&6
9655else
9656 if test -n "$DSYMUTIL"; then
9657 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9658else
9659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660for as_dir in $PATH
9661do
9662 IFS=$as_save_IFS
9663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9666 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009668 break 2
9669 fi
9670done
cristy8b350f62009-11-15 23:12:43 +00009671 done
cristy3ed852e2009-09-05 21:47:34 +00009672IFS=$as_save_IFS
9673
9674fi
9675fi
9676DSYMUTIL=$ac_cv_prog_DSYMUTIL
9677if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009679$as_echo "$DSYMUTIL" >&6; }
9680else
cristy8b350f62009-11-15 23:12:43 +00009681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009682$as_echo "no" >&6; }
9683fi
9684
9685
9686fi
9687if test -z "$ac_cv_prog_DSYMUTIL"; then
9688 ac_ct_DSYMUTIL=$DSYMUTIL
9689 # Extract the first word of "dsymutil", so it can be a program name with args.
9690set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009692$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009693if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009694 $as_echo_n "(cached) " >&6
9695else
9696 if test -n "$ac_ct_DSYMUTIL"; then
9697 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9698else
9699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700for as_dir in $PATH
9701do
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009704 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9706 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009708 break 2
9709 fi
9710done
cristy8b350f62009-11-15 23:12:43 +00009711 done
cristy3ed852e2009-09-05 21:47:34 +00009712IFS=$as_save_IFS
9713
9714fi
9715fi
9716ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9717if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009719$as_echo "$ac_ct_DSYMUTIL" >&6; }
9720else
cristy8b350f62009-11-15 23:12:43 +00009721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009722$as_echo "no" >&6; }
9723fi
9724
9725 if test "x$ac_ct_DSYMUTIL" = x; then
9726 DSYMUTIL=":"
9727 else
9728 case $cross_compiling:$ac_tool_warned in
9729yes:)
cristy8b350f62009-11-15 23:12:43 +00009730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9732ac_tool_warned=yes ;;
9733esac
9734 DSYMUTIL=$ac_ct_DSYMUTIL
9735 fi
9736else
9737 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9738fi
9739
9740 if test -n "$ac_tool_prefix"; then
9741 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9742set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009744$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009745if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009746 $as_echo_n "(cached) " >&6
9747else
9748 if test -n "$NMEDIT"; then
9749 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9750else
9751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752for as_dir in $PATH
9753do
9754 IFS=$as_save_IFS
9755 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009756 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9758 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +00009759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009760 break 2
9761 fi
9762done
cristy8b350f62009-11-15 23:12:43 +00009763 done
cristy3ed852e2009-09-05 21:47:34 +00009764IFS=$as_save_IFS
9765
9766fi
9767fi
9768NMEDIT=$ac_cv_prog_NMEDIT
9769if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009771$as_echo "$NMEDIT" >&6; }
9772else
cristy8b350f62009-11-15 23:12:43 +00009773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009774$as_echo "no" >&6; }
9775fi
9776
9777
9778fi
9779if test -z "$ac_cv_prog_NMEDIT"; then
9780 ac_ct_NMEDIT=$NMEDIT
9781 # Extract the first word of "nmedit", so it can be a program name with args.
9782set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009784$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009785if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009786 $as_echo_n "(cached) " >&6
9787else
9788 if test -n "$ac_ct_NMEDIT"; then
9789 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9790else
9791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792for as_dir in $PATH
9793do
9794 IFS=$as_save_IFS
9795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9798 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +00009799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009800 break 2
9801 fi
9802done
cristy8b350f62009-11-15 23:12:43 +00009803 done
cristy3ed852e2009-09-05 21:47:34 +00009804IFS=$as_save_IFS
9805
9806fi
9807fi
9808ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9809if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009811$as_echo "$ac_ct_NMEDIT" >&6; }
9812else
cristy8b350f62009-11-15 23:12:43 +00009813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009814$as_echo "no" >&6; }
9815fi
9816
9817 if test "x$ac_ct_NMEDIT" = x; then
9818 NMEDIT=":"
9819 else
9820 case $cross_compiling:$ac_tool_warned in
9821yes:)
cristy8b350f62009-11-15 23:12:43 +00009822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9824ac_tool_warned=yes ;;
9825esac
9826 NMEDIT=$ac_ct_NMEDIT
9827 fi
9828else
9829 NMEDIT="$ac_cv_prog_NMEDIT"
9830fi
9831
9832 if test -n "$ac_tool_prefix"; then
9833 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9834set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009836$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009837if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009838 $as_echo_n "(cached) " >&6
9839else
9840 if test -n "$LIPO"; then
9841 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9842else
9843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844for as_dir in $PATH
9845do
9846 IFS=$as_save_IFS
9847 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009848 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9850 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +00009851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009852 break 2
9853 fi
9854done
cristy8b350f62009-11-15 23:12:43 +00009855 done
cristy3ed852e2009-09-05 21:47:34 +00009856IFS=$as_save_IFS
9857
9858fi
9859fi
9860LIPO=$ac_cv_prog_LIPO
9861if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009863$as_echo "$LIPO" >&6; }
9864else
cristy8b350f62009-11-15 23:12:43 +00009865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009866$as_echo "no" >&6; }
9867fi
9868
9869
9870fi
9871if test -z "$ac_cv_prog_LIPO"; then
9872 ac_ct_LIPO=$LIPO
9873 # Extract the first word of "lipo", so it can be a program name with args.
9874set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009876$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009877if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009878 $as_echo_n "(cached) " >&6
9879else
9880 if test -n "$ac_ct_LIPO"; then
9881 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9882else
9883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884for as_dir in $PATH
9885do
9886 IFS=$as_save_IFS
9887 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009888 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9890 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +00009891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009892 break 2
9893 fi
9894done
cristy8b350f62009-11-15 23:12:43 +00009895 done
cristy3ed852e2009-09-05 21:47:34 +00009896IFS=$as_save_IFS
9897
9898fi
9899fi
9900ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9901if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009903$as_echo "$ac_ct_LIPO" >&6; }
9904else
cristy8b350f62009-11-15 23:12:43 +00009905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009906$as_echo "no" >&6; }
9907fi
9908
9909 if test "x$ac_ct_LIPO" = x; then
9910 LIPO=":"
9911 else
9912 case $cross_compiling:$ac_tool_warned in
9913yes:)
cristy8b350f62009-11-15 23:12:43 +00009914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9916ac_tool_warned=yes ;;
9917esac
9918 LIPO=$ac_ct_LIPO
9919 fi
9920else
9921 LIPO="$ac_cv_prog_LIPO"
9922fi
9923
9924 if test -n "$ac_tool_prefix"; then
9925 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9926set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009928$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009929if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009930 $as_echo_n "(cached) " >&6
9931else
9932 if test -n "$OTOOL"; then
9933 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9934else
9935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936for as_dir in $PATH
9937do
9938 IFS=$as_save_IFS
9939 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9942 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +00009943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009944 break 2
9945 fi
9946done
cristy8b350f62009-11-15 23:12:43 +00009947 done
cristy3ed852e2009-09-05 21:47:34 +00009948IFS=$as_save_IFS
9949
9950fi
9951fi
9952OTOOL=$ac_cv_prog_OTOOL
9953if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009955$as_echo "$OTOOL" >&6; }
9956else
cristy8b350f62009-11-15 23:12:43 +00009957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009958$as_echo "no" >&6; }
9959fi
9960
9961
9962fi
9963if test -z "$ac_cv_prog_OTOOL"; then
9964 ac_ct_OTOOL=$OTOOL
9965 # Extract the first word of "otool", so it can be a program name with args.
9966set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009968$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009969if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009970 $as_echo_n "(cached) " >&6
9971else
9972 if test -n "$ac_ct_OTOOL"; then
9973 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9974else
9975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976for as_dir in $PATH
9977do
9978 IFS=$as_save_IFS
9979 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9982 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +00009983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009984 break 2
9985 fi
9986done
cristy8b350f62009-11-15 23:12:43 +00009987 done
cristy3ed852e2009-09-05 21:47:34 +00009988IFS=$as_save_IFS
9989
9990fi
9991fi
9992ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9993if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009995$as_echo "$ac_ct_OTOOL" >&6; }
9996else
cristy8b350f62009-11-15 23:12:43 +00009997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009998$as_echo "no" >&6; }
9999fi
10000
10001 if test "x$ac_ct_OTOOL" = x; then
10002 OTOOL=":"
10003 else
10004 case $cross_compiling:$ac_tool_warned in
10005yes:)
cristy8b350f62009-11-15 23:12:43 +000010006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10008ac_tool_warned=yes ;;
10009esac
10010 OTOOL=$ac_ct_OTOOL
10011 fi
10012else
10013 OTOOL="$ac_cv_prog_OTOOL"
10014fi
10015
10016 if test -n "$ac_tool_prefix"; then
10017 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10018set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010020$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010021if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010022 $as_echo_n "(cached) " >&6
10023else
10024 if test -n "$OTOOL64"; then
10025 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10026else
10027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028for as_dir in $PATH
10029do
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010032 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000010035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010036 break 2
10037 fi
10038done
cristy8b350f62009-11-15 23:12:43 +000010039 done
cristy3ed852e2009-09-05 21:47:34 +000010040IFS=$as_save_IFS
10041
10042fi
10043fi
10044OTOOL64=$ac_cv_prog_OTOOL64
10045if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010047$as_echo "$OTOOL64" >&6; }
10048else
cristy8b350f62009-11-15 23:12:43 +000010049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010050$as_echo "no" >&6; }
10051fi
10052
10053
10054fi
10055if test -z "$ac_cv_prog_OTOOL64"; then
10056 ac_ct_OTOOL64=$OTOOL64
10057 # Extract the first word of "otool64", so it can be a program name with args.
10058set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010060$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010061if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010062 $as_echo_n "(cached) " >&6
10063else
10064 if test -n "$ac_ct_OTOOL64"; then
10065 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10066else
10067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10068for as_dir in $PATH
10069do
10070 IFS=$as_save_IFS
10071 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010072 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10074 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000010075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010076 break 2
10077 fi
10078done
cristy8b350f62009-11-15 23:12:43 +000010079 done
cristy3ed852e2009-09-05 21:47:34 +000010080IFS=$as_save_IFS
10081
10082fi
10083fi
10084ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10085if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010087$as_echo "$ac_ct_OTOOL64" >&6; }
10088else
cristy8b350f62009-11-15 23:12:43 +000010089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010090$as_echo "no" >&6; }
10091fi
10092
10093 if test "x$ac_ct_OTOOL64" = x; then
10094 OTOOL64=":"
10095 else
10096 case $cross_compiling:$ac_tool_warned in
10097yes:)
cristy8b350f62009-11-15 23:12:43 +000010098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10100ac_tool_warned=yes ;;
10101esac
10102 OTOOL64=$ac_ct_OTOOL64
10103 fi
10104else
10105 OTOOL64="$ac_cv_prog_OTOOL64"
10106fi
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
cristy8b350f62009-11-15 23:12:43 +000010134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010135$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010136if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010137 $as_echo_n "(cached) " >&6
10138else
10139 lt_cv_apple_cc_single_mod=no
10140 if test -z "${LT_MULTI_MODULE}"; then
10141 # By default we will add the -single_module flag. You can override
10142 # by either setting the environment variable LT_MULTI_MODULE
10143 # non-empty at configure time, or by adding -multi_module to the
10144 # link flags.
10145 rm -rf libconftest.dylib*
10146 echo "int foo(void){return 1;}" > conftest.c
10147 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10148-dynamiclib -Wl,-single_module conftest.c" >&5
10149 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10150 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10151 _lt_result=$?
10152 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10153 lt_cv_apple_cc_single_mod=yes
10154 else
10155 cat conftest.err >&5
10156 fi
10157 rm -rf libconftest.dylib*
10158 rm -f conftest.*
10159 fi
10160fi
cristy8b350f62009-11-15 23:12:43 +000010161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000010162$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010164$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010165if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010166 $as_echo_n "(cached) " >&6
10167else
10168 lt_cv_ld_exported_symbols_list=no
10169 save_LDFLAGS=$LDFLAGS
10170 echo "_main" > conftest.sym
10171 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000010172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010173/* end confdefs.h. */
10174
10175int
10176main ()
10177{
10178
10179 ;
10180 return 0;
10181}
10182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010183if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010184 lt_cv_ld_exported_symbols_list=yes
10185else
cristy8b350f62009-11-15 23:12:43 +000010186 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000010187fi
cristy8b350f62009-11-15 23:12:43 +000010188rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010190 LDFLAGS="$save_LDFLAGS"
10191
10192fi
cristy8b350f62009-11-15 23:12:43 +000010193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000010194$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10195 case $host_os in
10196 rhapsody* | darwin1.[012])
10197 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10198 darwin1.*)
10199 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10200 darwin*) # darwin 5.x on
10201 # if running on 10.5 or later, the deployment target defaults
10202 # to the OS version, if on x86, and 10.4, the deployment
10203 # target defaults to 10.4. Don't you love it?
10204 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10205 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10206 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10207 10.[012]*)
10208 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10209 10.*)
10210 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10211 esac
10212 ;;
10213 esac
10214 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10215 _lt_dar_single_mod='$single_module'
10216 fi
10217 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10218 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10219 else
10220 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10221 fi
cristy18304f92009-11-22 15:48:26 +000010222 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000010223 _lt_dsymutil='~$DSYMUTIL $lib || :'
10224 else
10225 _lt_dsymutil=
10226 fi
10227 ;;
10228 esac
10229
cristy3ed852e2009-09-05 21:47:34 +000010230for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000010231do :
10232 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10233"
10234if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010235 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010236#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000010237_ACEOF
10238
10239fi
10240
10241done
10242
10243
10244
cristy18304f92009-11-22 15:48:26 +000010245ac_ext=cpp
10246ac_cpp='$CXXCPP $CPPFLAGS'
10247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10250if test -z "$CXX"; then
10251 if test -n "$CCC"; then
10252 CXX=$CCC
10253 else
10254 if test -n "$ac_tool_prefix"; then
10255 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10256 do
10257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10258set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10260$as_echo_n "checking for $ac_word... " >&6; }
10261if test "${ac_cv_prog_CXX+set}" = set; then :
10262 $as_echo_n "(cached) " >&6
10263else
10264 if test -n "$CXX"; then
10265 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10266else
10267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268for as_dir in $PATH
10269do
10270 IFS=$as_save_IFS
10271 test -z "$as_dir" && as_dir=.
10272 for ac_exec_ext in '' $ac_executable_extensions; do
10273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10274 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276 break 2
10277 fi
10278done
10279 done
10280IFS=$as_save_IFS
10281
10282fi
10283fi
10284CXX=$ac_cv_prog_CXX
10285if test -n "$CXX"; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10287$as_echo "$CXX" >&6; }
10288else
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290$as_echo "no" >&6; }
10291fi
10292
10293
10294 test -n "$CXX" && break
10295 done
10296fi
10297if test -z "$CXX"; then
10298 ac_ct_CXX=$CXX
10299 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10300do
10301 # Extract the first word of "$ac_prog", so it can be a program name with args.
10302set dummy $ac_prog; ac_word=$2
10303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304$as_echo_n "checking for $ac_word... " >&6; }
10305if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10306 $as_echo_n "(cached) " >&6
10307else
10308 if test -n "$ac_ct_CXX"; then
10309 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10310else
10311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312for as_dir in $PATH
10313do
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10318 ac_cv_prog_ac_ct_CXX="$ac_prog"
10319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 break 2
10321 fi
10322done
10323 done
10324IFS=$as_save_IFS
10325
10326fi
10327fi
10328ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10329if test -n "$ac_ct_CXX"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10331$as_echo "$ac_ct_CXX" >&6; }
10332else
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334$as_echo "no" >&6; }
10335fi
10336
10337
10338 test -n "$ac_ct_CXX" && break
10339done
10340
10341 if test "x$ac_ct_CXX" = x; then
10342 CXX="g++"
10343 else
10344 case $cross_compiling:$ac_tool_warned in
10345yes:)
10346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10348ac_tool_warned=yes ;;
10349esac
10350 CXX=$ac_ct_CXX
10351 fi
10352fi
10353
10354 fi
10355fi
10356# Provide some information about the compiler.
10357$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10358set X $ac_compile
10359ac_compiler=$2
10360for ac_option in --version -v -V -qversion; do
10361 { { ac_try="$ac_compiler $ac_option >&5"
10362case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10365esac
10366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10367$as_echo "$ac_try_echo"; } >&5
10368 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10369 ac_status=$?
10370 if test -s conftest.err; then
10371 sed '10a\
10372... rest of stderr output deleted ...
10373 10q' conftest.err >conftest.er1
10374 cat conftest.er1 >&5
10375 fi
10376 rm -f conftest.er1 conftest.err
10377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10378 test $ac_status = 0; }
10379done
10380
10381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10382$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10383if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10385else
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387/* end confdefs.h. */
10388
10389int
10390main ()
10391{
10392#ifndef __GNUC__
10393 choke me
10394#endif
10395
10396 ;
10397 return 0;
10398}
10399_ACEOF
10400if ac_fn_cxx_try_compile "$LINENO"; then :
10401 ac_compiler_gnu=yes
10402else
10403 ac_compiler_gnu=no
10404fi
10405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10406ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10407
10408fi
10409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10410$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10411if test $ac_compiler_gnu = yes; then
10412 GXX=yes
10413else
10414 GXX=
10415fi
10416ac_test_CXXFLAGS=${CXXFLAGS+set}
10417ac_save_CXXFLAGS=$CXXFLAGS
10418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10419$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10420if test "${ac_cv_prog_cxx_g+set}" = set; then :
10421 $as_echo_n "(cached) " >&6
10422else
10423 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10424 ac_cxx_werror_flag=yes
10425 ac_cv_prog_cxx_g=no
10426 CXXFLAGS="-g"
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428/* end confdefs.h. */
10429
10430int
10431main ()
10432{
10433
10434 ;
10435 return 0;
10436}
10437_ACEOF
10438if ac_fn_cxx_try_compile "$LINENO"; then :
10439 ac_cv_prog_cxx_g=yes
10440else
10441 CXXFLAGS=""
10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443/* end confdefs.h. */
10444
10445int
10446main ()
10447{
10448
10449 ;
10450 return 0;
10451}
10452_ACEOF
10453if ac_fn_cxx_try_compile "$LINENO"; then :
10454
10455else
10456 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10457 CXXFLAGS="-g"
10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459/* end confdefs.h. */
10460
10461int
10462main ()
10463{
10464
10465 ;
10466 return 0;
10467}
10468_ACEOF
10469if ac_fn_cxx_try_compile "$LINENO"; then :
10470 ac_cv_prog_cxx_g=yes
10471fi
10472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473fi
10474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10475fi
10476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10477 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10478fi
10479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10480$as_echo "$ac_cv_prog_cxx_g" >&6; }
10481if test "$ac_test_CXXFLAGS" = set; then
10482 CXXFLAGS=$ac_save_CXXFLAGS
10483elif test $ac_cv_prog_cxx_g = yes; then
10484 if test "$GXX" = yes; then
10485 CXXFLAGS="-g -O2"
10486 else
10487 CXXFLAGS="-g"
10488 fi
10489else
10490 if test "$GXX" = yes; then
10491 CXXFLAGS="-O2"
10492 else
10493 CXXFLAGS=
10494 fi
10495fi
10496ac_ext=c
10497ac_cpp='$CPP $CPPFLAGS'
10498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10500ac_compiler_gnu=$ac_cv_c_compiler_gnu
10501
10502depcc="$CXX" am_compiler_list=
10503
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10505$as_echo_n "checking dependency style of $depcc... " >&6; }
10506if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
10508else
10509 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10510 # We make a subdir and do the tests there. Otherwise we can end up
10511 # making bogus files that we don't know about and never remove. For
10512 # instance it was reported that on HP-UX the gcc test will end up
10513 # making a dummy file named `D' -- because `-MD' means `put the output
10514 # in D'.
10515 mkdir conftest.dir
10516 # Copy depcomp to subdir because otherwise we won't find it if we're
10517 # using a relative directory.
10518 cp "$am_depcomp" conftest.dir
10519 cd conftest.dir
10520 # We will build objects and dependencies in a subdirectory because
10521 # it helps to detect inapplicable dependency modes. For instance
10522 # both Tru64's cc and ICC support -MD to output dependencies as a
10523 # side effect of compilation, but ICC will put the dependencies in
10524 # the current directory while Tru64 will put them in the object
10525 # directory.
10526 mkdir sub
10527
10528 am_cv_CXX_dependencies_compiler_type=none
10529 if test "$am_compiler_list" = ""; then
10530 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10531 fi
10532 am__universal=false
10533 case " $depcc " in #(
10534 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10535 esac
10536
10537 for depmode in $am_compiler_list; do
10538 # Setup a source with many dependencies, because some compilers
10539 # like to wrap large dependency lists on column 80 (with \), and
10540 # we should not choose a depcomp mode which is confused by this.
10541 #
10542 # We need to recreate these files for each test, as the compiler may
10543 # overwrite some of them when testing with obscure command lines.
10544 # This happens at least with the AIX C compiler.
10545 : > sub/conftest.c
10546 for i in 1 2 3 4 5 6; do
10547 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10548 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10549 # Solaris 8's {/usr,}/bin/sh.
10550 touch sub/conftst$i.h
10551 done
10552 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10553
10554 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10555 # mode. It turns out that the SunPro C++ compiler does not properly
10556 # handle `-M -o', and we need to detect this. Also, some Intel
10557 # versions had trouble with output in subdirs
10558 am__obj=sub/conftest.${OBJEXT-o}
10559 am__minus_obj="-o $am__obj"
10560 case $depmode in
10561 gcc)
10562 # This depmode causes a compiler race in universal mode.
10563 test "$am__universal" = false || continue
10564 ;;
10565 nosideeffect)
10566 # after this tag, mechanisms are not by side-effect, so they'll
10567 # only be used when explicitly requested
10568 if test "x$enable_dependency_tracking" = xyes; then
10569 continue
10570 else
10571 break
10572 fi
10573 ;;
10574 msvisualcpp | msvcmsys)
10575 # This compiler won't grok `-c -o', but also, the minuso test has
10576 # not run yet. These depmodes are late enough in the game, and
10577 # so weak that their functioning should not be impacted.
10578 am__obj=conftest.${OBJEXT-o}
10579 am__minus_obj=
10580 ;;
10581 none) break ;;
10582 esac
10583 if depmode=$depmode \
10584 source=sub/conftest.c object=$am__obj \
10585 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10586 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10587 >/dev/null 2>conftest.err &&
10588 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10589 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10590 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10591 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10592 # icc doesn't choke on unknown options, it will just issue warnings
10593 # or remarks (even with -Werror). So we grep stderr for any message
10594 # that says an option was ignored or not supported.
10595 # When given -MP, icc 7.0 and 7.1 complain thusly:
10596 # icc: Command line warning: ignoring option '-M'; no argument required
10597 # The diagnosis changed in icc 8.0:
10598 # icc: Command line remark: option '-MP' not supported
10599 if (grep 'ignoring option' conftest.err ||
10600 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10601 am_cv_CXX_dependencies_compiler_type=$depmode
10602 break
10603 fi
10604 fi
10605 done
10606
10607 cd ..
10608 rm -rf conftest.dir
10609else
10610 am_cv_CXX_dependencies_compiler_type=none
10611fi
10612
10613fi
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10615$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10616CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10617
10618 if
10619 test "x$enable_dependency_tracking" != xno \
10620 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10621 am__fastdepCXX_TRUE=
10622 am__fastdepCXX_FALSE='#'
10623else
10624 am__fastdepCXX_TRUE='#'
10625 am__fastdepCXX_FALSE=
10626fi
10627
10628
10629if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10630 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10631 (test "X$CXX" != "Xg++"))) ; then
10632 ac_ext=cpp
10633ac_cpp='$CXXCPP $CPPFLAGS'
10634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10638$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10639if test -z "$CXXCPP"; then
10640 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10641 $as_echo_n "(cached) " >&6
10642else
10643 # Double quotes because CXXCPP needs to be expanded
10644 for CXXCPP in "$CXX -E" "/lib/cpp"
10645 do
10646 ac_preproc_ok=false
10647for ac_cxx_preproc_warn_flag in '' yes
10648do
10649 # Use a header file that comes with gcc, so configuring glibc
10650 # with a fresh cross-compiler works.
10651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10652 # <limits.h> exists even on freestanding compilers.
10653 # On the NeXT, cc -E runs the code through the compiler's parser,
10654 # not just through cpp. "Syntax error" is here to catch this case.
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656/* end confdefs.h. */
10657#ifdef __STDC__
10658# include <limits.h>
10659#else
10660# include <assert.h>
10661#endif
10662 Syntax error
10663_ACEOF
10664if ac_fn_cxx_try_cpp "$LINENO"; then :
10665
10666else
10667 # Broken: fails on valid input.
10668continue
10669fi
10670rm -f conftest.err conftest.$ac_ext
10671
10672 # OK, works on sane cases. Now check whether nonexistent headers
10673 # can be detected and how.
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675/* end confdefs.h. */
10676#include <ac_nonexistent.h>
10677_ACEOF
10678if ac_fn_cxx_try_cpp "$LINENO"; then :
10679 # Broken: success on invalid input.
10680continue
10681else
10682 # Passes both tests.
10683ac_preproc_ok=:
10684break
10685fi
10686rm -f conftest.err conftest.$ac_ext
10687
10688done
10689# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10690rm -f conftest.err conftest.$ac_ext
10691if $ac_preproc_ok; then :
10692 break
10693fi
10694
10695 done
10696 ac_cv_prog_CXXCPP=$CXXCPP
10697
10698fi
10699 CXXCPP=$ac_cv_prog_CXXCPP
10700else
10701 ac_cv_prog_CXXCPP=$CXXCPP
10702fi
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10704$as_echo "$CXXCPP" >&6; }
10705ac_preproc_ok=false
10706for ac_cxx_preproc_warn_flag in '' yes
10707do
10708 # Use a header file that comes with gcc, so configuring glibc
10709 # with a fresh cross-compiler works.
10710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10711 # <limits.h> exists even on freestanding compilers.
10712 # On the NeXT, cc -E runs the code through the compiler's parser,
10713 # not just through cpp. "Syntax error" is here to catch this case.
10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715/* end confdefs.h. */
10716#ifdef __STDC__
10717# include <limits.h>
10718#else
10719# include <assert.h>
10720#endif
10721 Syntax error
10722_ACEOF
10723if ac_fn_cxx_try_cpp "$LINENO"; then :
10724
10725else
10726 # Broken: fails on valid input.
10727continue
10728fi
10729rm -f conftest.err conftest.$ac_ext
10730
10731 # OK, works on sane cases. Now check whether nonexistent headers
10732 # can be detected and how.
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734/* end confdefs.h. */
10735#include <ac_nonexistent.h>
10736_ACEOF
10737if ac_fn_cxx_try_cpp "$LINENO"; then :
10738 # Broken: success on invalid input.
10739continue
10740else
10741 # Passes both tests.
10742ac_preproc_ok=:
10743break
10744fi
10745rm -f conftest.err conftest.$ac_ext
10746
10747done
10748# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10749rm -f conftest.err conftest.$ac_ext
10750if $ac_preproc_ok; then :
10751
10752else
10753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10755_lt_caught_CXX_error=yes; }
10756fi
10757
10758ac_ext=c
10759ac_cpp='$CPP $CPPFLAGS'
10760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10762ac_compiler_gnu=$ac_cv_c_compiler_gnu
10763
10764else
10765 _lt_caught_CXX_error=yes
10766fi
10767
10768
cristy3ed852e2009-09-05 21:47:34 +000010769
10770
10771
10772# Set options
10773enable_win32_dll=yes
10774
10775case $host in
cristy18304f92009-11-22 15:48:26 +000010776*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010777 if test -n "$ac_tool_prefix"; then
10778 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10779set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010781$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010782if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010783 $as_echo_n "(cached) " >&6
10784else
10785 if test -n "$AS"; then
10786 ac_cv_prog_AS="$AS" # Let the user override the test.
10787else
10788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789for as_dir in $PATH
10790do
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000010796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010797 break 2
10798 fi
10799done
cristy8b350f62009-11-15 23:12:43 +000010800 done
cristy3ed852e2009-09-05 21:47:34 +000010801IFS=$as_save_IFS
10802
10803fi
10804fi
10805AS=$ac_cv_prog_AS
10806if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000010807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010808$as_echo "$AS" >&6; }
10809else
cristy8b350f62009-11-15 23:12:43 +000010810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010811$as_echo "no" >&6; }
10812fi
10813
10814
10815fi
10816if test -z "$ac_cv_prog_AS"; then
10817 ac_ct_AS=$AS
10818 # Extract the first word of "as", so it can be a program name with args.
10819set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010821$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010822if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010823 $as_echo_n "(cached) " >&6
10824else
10825 if test -n "$ac_ct_AS"; then
10826 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10827else
10828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829for as_dir in $PATH
10830do
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010833 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10835 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000010836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010837 break 2
10838 fi
10839done
cristy8b350f62009-11-15 23:12:43 +000010840 done
cristy3ed852e2009-09-05 21:47:34 +000010841IFS=$as_save_IFS
10842
10843fi
10844fi
10845ac_ct_AS=$ac_cv_prog_ac_ct_AS
10846if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000010847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010848$as_echo "$ac_ct_AS" >&6; }
10849else
cristy8b350f62009-11-15 23:12:43 +000010850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010851$as_echo "no" >&6; }
10852fi
10853
10854 if test "x$ac_ct_AS" = x; then
10855 AS="false"
10856 else
10857 case $cross_compiling:$ac_tool_warned in
10858yes:)
cristy8b350f62009-11-15 23:12:43 +000010859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10861ac_tool_warned=yes ;;
10862esac
10863 AS=$ac_ct_AS
10864 fi
10865else
10866 AS="$ac_cv_prog_AS"
10867fi
10868
10869 if test -n "$ac_tool_prefix"; then
10870 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10871set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010873$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010874if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010875 $as_echo_n "(cached) " >&6
10876else
10877 if test -n "$DLLTOOL"; then
10878 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10879else
10880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881for as_dir in $PATH
10882do
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010885 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10887 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000010888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010889 break 2
10890 fi
10891done
cristy8b350f62009-11-15 23:12:43 +000010892 done
cristy3ed852e2009-09-05 21:47:34 +000010893IFS=$as_save_IFS
10894
10895fi
10896fi
10897DLLTOOL=$ac_cv_prog_DLLTOOL
10898if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010900$as_echo "$DLLTOOL" >&6; }
10901else
cristy8b350f62009-11-15 23:12:43 +000010902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010903$as_echo "no" >&6; }
10904fi
10905
10906
10907fi
10908if test -z "$ac_cv_prog_DLLTOOL"; then
10909 ac_ct_DLLTOOL=$DLLTOOL
10910 # Extract the first word of "dlltool", so it can be a program name with args.
10911set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010913$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010914if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010915 $as_echo_n "(cached) " >&6
10916else
10917 if test -n "$ac_ct_DLLTOOL"; then
10918 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10919else
10920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921for as_dir in $PATH
10922do
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010925 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10927 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000010928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010929 break 2
10930 fi
10931done
cristy8b350f62009-11-15 23:12:43 +000010932 done
cristy3ed852e2009-09-05 21:47:34 +000010933IFS=$as_save_IFS
10934
10935fi
10936fi
10937ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10938if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010940$as_echo "$ac_ct_DLLTOOL" >&6; }
10941else
cristy8b350f62009-11-15 23:12:43 +000010942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010943$as_echo "no" >&6; }
10944fi
10945
10946 if test "x$ac_ct_DLLTOOL" = x; then
10947 DLLTOOL="false"
10948 else
10949 case $cross_compiling:$ac_tool_warned in
10950yes:)
cristy8b350f62009-11-15 23:12:43 +000010951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10953ac_tool_warned=yes ;;
10954esac
10955 DLLTOOL=$ac_ct_DLLTOOL
10956 fi
10957else
10958 DLLTOOL="$ac_cv_prog_DLLTOOL"
10959fi
10960
10961 if test -n "$ac_tool_prefix"; then
10962 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10963set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010965$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010966if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010967 $as_echo_n "(cached) " >&6
10968else
10969 if test -n "$OBJDUMP"; then
10970 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10971else
10972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973for as_dir in $PATH
10974do
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010977 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10979 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000010980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010981 break 2
10982 fi
10983done
cristy8b350f62009-11-15 23:12:43 +000010984 done
cristy3ed852e2009-09-05 21:47:34 +000010985IFS=$as_save_IFS
10986
10987fi
10988fi
10989OBJDUMP=$ac_cv_prog_OBJDUMP
10990if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010992$as_echo "$OBJDUMP" >&6; }
10993else
cristy8b350f62009-11-15 23:12:43 +000010994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010995$as_echo "no" >&6; }
10996fi
10997
10998
10999fi
11000if test -z "$ac_cv_prog_OBJDUMP"; then
11001 ac_ct_OBJDUMP=$OBJDUMP
11002 # Extract the first word of "objdump", so it can be a program name with args.
11003set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011005$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011006if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011007 $as_echo_n "(cached) " >&6
11008else
11009 if test -n "$ac_ct_OBJDUMP"; then
11010 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11011else
11012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013for as_dir in $PATH
11014do
11015 IFS=$as_save_IFS
11016 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011017 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11019 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011021 break 2
11022 fi
11023done
cristy8b350f62009-11-15 23:12:43 +000011024 done
cristy3ed852e2009-09-05 21:47:34 +000011025IFS=$as_save_IFS
11026
11027fi
11028fi
11029ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11030if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011032$as_echo "$ac_ct_OBJDUMP" >&6; }
11033else
cristy8b350f62009-11-15 23:12:43 +000011034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011035$as_echo "no" >&6; }
11036fi
11037
11038 if test "x$ac_ct_OBJDUMP" = x; then
11039 OBJDUMP="false"
11040 else
11041 case $cross_compiling:$ac_tool_warned in
11042yes:)
cristy8b350f62009-11-15 23:12:43 +000011043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11045ac_tool_warned=yes ;;
11046esac
11047 OBJDUMP=$ac_ct_OBJDUMP
11048 fi
11049else
11050 OBJDUMP="$ac_cv_prog_OBJDUMP"
11051fi
11052
11053 ;;
11054esac
11055
11056test -z "$AS" && AS=as
11057
11058
11059
11060
11061
11062test -z "$DLLTOOL" && DLLTOOL=dlltool
11063
11064
11065
11066
11067
11068test -z "$OBJDUMP" && OBJDUMP=objdump
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011079if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011080 enableval=$enable_shared; p=${PACKAGE-default}
11081 case $enableval in
11082 yes) enable_shared=yes ;;
11083 no) enable_shared=no ;;
11084 *)
11085 enable_shared=no
11086 # Look at the argument we got. We use all the common list separators.
11087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11088 for pkg in $enableval; do
11089 IFS="$lt_save_ifs"
11090 if test "X$pkg" = "X$p"; then
11091 enable_shared=yes
11092 fi
11093 done
11094 IFS="$lt_save_ifs"
11095 ;;
11096 esac
11097else
11098 enable_shared=yes
11099fi
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000011110if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011111 enableval=$enable_static; p=${PACKAGE-default}
11112 case $enableval in
11113 yes) enable_static=yes ;;
11114 no) enable_static=no ;;
11115 *)
11116 enable_static=no
11117 # Look at the argument we got. We use all the common list separators.
11118 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11119 for pkg in $enableval; do
11120 IFS="$lt_save_ifs"
11121 if test "X$pkg" = "X$p"; then
11122 enable_static=yes
11123 fi
11124 done
11125 IFS="$lt_save_ifs"
11126 ;;
11127 esac
11128else
11129 enable_static=yes
11130fi
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000011142if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011143 withval=$with_pic; pic_mode="$withval"
11144else
11145 pic_mode=default
11146fi
11147
11148
11149test -z "$pic_mode" && pic_mode=default
11150
11151
11152
11153
11154
11155
11156
11157 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000011158if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011159 enableval=$enable_fast_install; p=${PACKAGE-default}
11160 case $enableval in
11161 yes) enable_fast_install=yes ;;
11162 no) enable_fast_install=no ;;
11163 *)
11164 enable_fast_install=no
11165 # Look at the argument we got. We use all the common list separators.
11166 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11167 for pkg in $enableval; do
11168 IFS="$lt_save_ifs"
11169 if test "X$pkg" = "X$p"; then
11170 enable_fast_install=yes
11171 fi
11172 done
11173 IFS="$lt_save_ifs"
11174 ;;
11175 esac
11176else
11177 enable_fast_install=yes
11178fi
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190# This can be used to rebuild libtool when needed
11191LIBTOOL_DEPS="$ltmain"
11192
11193# Always use our own libtool.
11194LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220test -z "$LN_S" && LN_S="ln -s"
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235if test -n "${ZSH_VERSION+set}" ; then
11236 setopt NO_GLOB_SUBST
11237fi
11238
cristy8b350f62009-11-15 23:12:43 +000011239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011240$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011241if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011242 $as_echo_n "(cached) " >&6
11243else
11244 rm -f .libs 2>/dev/null
11245mkdir .libs 2>/dev/null
11246if test -d .libs; then
11247 lt_cv_objdir=.libs
11248else
11249 # MS-DOS does not allow filenames that begin with a dot.
11250 lt_cv_objdir=_libs
11251fi
11252rmdir .libs 2>/dev/null
11253fi
cristy8b350f62009-11-15 23:12:43 +000011254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011255$as_echo "$lt_cv_objdir" >&6; }
11256objdir=$lt_cv_objdir
11257
11258
11259
11260
11261
11262cat >>confdefs.h <<_ACEOF
11263#define LT_OBJDIR "$lt_cv_objdir/"
11264_ACEOF
11265
11266
11267
11268
cristy18304f92009-11-22 15:48:26 +000011269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
cristy3ed852e2009-09-05 21:47:34 +000011282case $host_os in
11283aix3*)
11284 # AIX sometimes has problems with the GCC collect2 program. For some
11285 # reason, if we set the COLLECT_NAMES environment variable, the problems
11286 # vanish in a puff of smoke.
11287 if test "X${COLLECT_NAMES+set}" != Xset; then
11288 COLLECT_NAMES=
11289 export COLLECT_NAMES
11290 fi
11291 ;;
11292esac
11293
cristy18304f92009-11-22 15:48:26 +000011294# Sed substitution that helps us do robust quoting. It backslashifies
11295# metacharacters that are still active within double-quoted strings.
11296sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11297
11298# Same as above, but do not quote variable references.
11299double_quote_subst='s/\(["`\\]\)/\\\1/g'
11300
11301# Sed substitution to delay expansion of an escaped shell variable in a
11302# double_quote_subst'ed string.
11303delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11304
11305# Sed substitution to delay expansion of an escaped single quote.
11306delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11307
11308# Sed substitution to avoid accidental globbing in evaled expressions
11309no_glob_subst='s/\*/\\\*/g'
11310
cristy3ed852e2009-09-05 21:47:34 +000011311# Global variables:
11312ofile=libtool
11313can_build_shared=yes
11314
11315# All known linkers require a `.a' archive for static linking (except MSVC,
11316# which needs '.lib').
11317libext=a
11318
11319with_gnu_ld="$lt_cv_prog_gnu_ld"
11320
11321old_CC="$CC"
11322old_CFLAGS="$CFLAGS"
11323
11324# Set sane defaults for various variables
11325test -z "$CC" && CC=cc
11326test -z "$LTCC" && LTCC=$CC
11327test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11328test -z "$LD" && LD=ld
11329test -z "$ac_objext" && ac_objext=o
11330
11331for cc_temp in $compiler""; do
11332 case $cc_temp in
11333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11335 \-*) ;;
11336 *) break;;
11337 esac
11338done
cristy18304f92009-11-22 15:48:26 +000011339cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000011340
11341
11342# Only perform the check for file, if the check method requires it
11343test -z "$MAGIC_CMD" && MAGIC_CMD=file
11344case $deplibs_check_method in
11345file_magic*)
11346 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000011347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011348$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011349if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011350 $as_echo_n "(cached) " >&6
11351else
11352 case $MAGIC_CMD in
11353[\\/*] | ?:[\\/]*)
11354 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11355 ;;
11356*)
11357 lt_save_MAGIC_CMD="$MAGIC_CMD"
11358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11359 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11360 for ac_dir in $ac_dummy; do
11361 IFS="$lt_save_ifs"
11362 test -z "$ac_dir" && ac_dir=.
11363 if test -f $ac_dir/${ac_tool_prefix}file; then
11364 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11365 if test -n "$file_magic_test_file"; then
11366 case $deplibs_check_method in
11367 "file_magic "*)
11368 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11371 $EGREP "$file_magic_regex" > /dev/null; then
11372 :
11373 else
11374 cat <<_LT_EOF 1>&2
11375
11376*** Warning: the command libtool uses to detect shared libraries,
11377*** $file_magic_cmd, produces output that libtool cannot recognize.
11378*** The result is that libtool may fail to recognize shared libraries
11379*** as such. This will affect the creation of libtool libraries that
11380*** depend on shared libraries, but programs linked with such libtool
11381*** libraries will work regardless of this problem. Nevertheless, you
11382*** may want to report the problem to your system manager and/or to
11383*** bug-libtool@gnu.org
11384
11385_LT_EOF
11386 fi ;;
11387 esac
11388 fi
11389 break
11390 fi
11391 done
11392 IFS="$lt_save_ifs"
11393 MAGIC_CMD="$lt_save_MAGIC_CMD"
11394 ;;
11395esac
11396fi
11397
11398MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11399if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011401$as_echo "$MAGIC_CMD" >&6; }
11402else
cristy8b350f62009-11-15 23:12:43 +000011403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011404$as_echo "no" >&6; }
11405fi
11406
11407
11408
11409
11410
11411if test -z "$lt_cv_path_MAGIC_CMD"; then
11412 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000011413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011414$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011415if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011416 $as_echo_n "(cached) " >&6
11417else
11418 case $MAGIC_CMD in
11419[\\/*] | ?:[\\/]*)
11420 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11421 ;;
11422*)
11423 lt_save_MAGIC_CMD="$MAGIC_CMD"
11424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11425 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11426 for ac_dir in $ac_dummy; do
11427 IFS="$lt_save_ifs"
11428 test -z "$ac_dir" && ac_dir=.
11429 if test -f $ac_dir/file; then
11430 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11431 if test -n "$file_magic_test_file"; then
11432 case $deplibs_check_method in
11433 "file_magic "*)
11434 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11436 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11437 $EGREP "$file_magic_regex" > /dev/null; then
11438 :
11439 else
11440 cat <<_LT_EOF 1>&2
11441
11442*** Warning: the command libtool uses to detect shared libraries,
11443*** $file_magic_cmd, produces output that libtool cannot recognize.
11444*** The result is that libtool may fail to recognize shared libraries
11445*** as such. This will affect the creation of libtool libraries that
11446*** depend on shared libraries, but programs linked with such libtool
11447*** libraries will work regardless of this problem. Nevertheless, you
11448*** may want to report the problem to your system manager and/or to
11449*** bug-libtool@gnu.org
11450
11451_LT_EOF
11452 fi ;;
11453 esac
11454 fi
11455 break
11456 fi
11457 done
11458 IFS="$lt_save_ifs"
11459 MAGIC_CMD="$lt_save_MAGIC_CMD"
11460 ;;
11461esac
11462fi
11463
11464MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11465if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011467$as_echo "$MAGIC_CMD" >&6; }
11468else
cristy8b350f62009-11-15 23:12:43 +000011469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011470$as_echo "no" >&6; }
11471fi
11472
11473
11474 else
11475 MAGIC_CMD=:
11476 fi
11477fi
11478
11479 fi
11480 ;;
11481esac
11482
11483# Use C for the default configuration in the libtool script
11484
11485lt_save_CC="$CC"
11486ac_ext=c
11487ac_cpp='$CPP $CPPFLAGS'
11488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11490ac_compiler_gnu=$ac_cv_c_compiler_gnu
11491
11492
11493# Source file extension for C test sources.
11494ac_ext=c
11495
11496# Object file extension for compiled C test sources.
11497objext=o
11498objext=$objext
11499
11500# Code to be used in simple compile tests
11501lt_simple_compile_test_code="int some_variable = 0;"
11502
11503# Code to be used in simple link tests
11504lt_simple_link_test_code='int main(){return(0);}'
11505
11506
11507
11508
11509
11510
11511
11512# If no C compiler was specified, use CC.
11513LTCC=${LTCC-"$CC"}
11514
11515# If no C compiler flags were specified, use CFLAGS.
11516LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11517
11518# Allow CC to be a program name with arguments.
11519compiler=$CC
11520
11521# Save the default compiler, since it gets overwritten when the other
11522# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11523compiler_DEFAULT=$CC
11524
11525# save warnings/boilerplate of simple test code
11526ac_outfile=conftest.$ac_objext
11527echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11528eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11529_lt_compiler_boilerplate=`cat conftest.err`
11530$RM conftest*
11531
11532ac_outfile=conftest.$ac_objext
11533echo "$lt_simple_link_test_code" >conftest.$ac_ext
11534eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11535_lt_linker_boilerplate=`cat conftest.err`
11536$RM -r conftest*
11537
11538
11539## CAVEAT EMPTOR:
11540## There is no encapsulation within the following macros, do not change
11541## the running order or otherwise move them around unless you know exactly
11542## what you are doing...
11543if test -n "$compiler"; then
11544
11545lt_prog_compiler_no_builtin_flag=
11546
11547if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000011548 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000011549
cristy8b350f62009-11-15 23:12:43 +000011550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011551$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011552if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011553 $as_echo_n "(cached) " >&6
11554else
11555 lt_cv_prog_compiler_rtti_exceptions=no
11556 ac_outfile=conftest.$ac_objext
11557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11558 lt_compiler_flag="-fno-rtti -fno-exceptions"
11559 # Insert the option either (1) after the last *FLAGS variable, or
11560 # (2) before a word containing "conftest.", or (3) at the end.
11561 # Note that $ac_compile itself does not contain backslashes and begins
11562 # with a dollar sign (not a hyphen), so the echo should work correctly.
11563 # The option is referenced via a variable to avoid confusing sed.
11564 lt_compile=`echo "$ac_compile" | $SED \
11565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11567 -e 's:$: $lt_compiler_flag:'`
cristy47fa4622009-12-28 01:52:31 +000011568 (eval echo "\"\$as_me:11568: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011569 (eval "$lt_compile" 2>conftest.err)
11570 ac_status=$?
11571 cat conftest.err >&5
cristy47fa4622009-12-28 01:52:31 +000011572 echo "$as_me:11572: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011573 if (exit $ac_status) && test -s "$ac_outfile"; then
11574 # The compiler can only warn and ignore the option if not recognized
11575 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000011576 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11578 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11579 lt_cv_prog_compiler_rtti_exceptions=yes
11580 fi
11581 fi
11582 $RM conftest*
11583
11584fi
cristy8b350f62009-11-15 23:12:43 +000011585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011586$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11587
11588if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11589 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11590else
11591 :
11592fi
11593
11594fi
11595
11596
11597
11598
11599
11600
11601 lt_prog_compiler_wl=
11602lt_prog_compiler_pic=
11603lt_prog_compiler_static=
11604
cristy8b350f62009-11-15 23:12:43 +000011605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011606$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11607
11608 if test "$GCC" = yes; then
11609 lt_prog_compiler_wl='-Wl,'
11610 lt_prog_compiler_static='-static'
11611
11612 case $host_os in
11613 aix*)
11614 # All AIX code is PIC.
11615 if test "$host_cpu" = ia64; then
11616 # AIX 5 now supports IA64 processor
11617 lt_prog_compiler_static='-Bstatic'
11618 fi
11619 ;;
11620
11621 amigaos*)
11622 case $host_cpu in
11623 powerpc)
11624 # see comment about AmigaOS4 .so support
11625 lt_prog_compiler_pic='-fPIC'
11626 ;;
11627 m68k)
11628 # FIXME: we need at least 68020 code to build shared libraries, but
11629 # adding the `-m68020' flag to GCC prevents building anything better,
11630 # like `-m68040'.
11631 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11632 ;;
11633 esac
11634 ;;
11635
11636 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11637 # PIC is the default for these OSes.
11638 ;;
11639
11640 mingw* | cygwin* | pw32* | os2* | cegcc*)
11641 # This hack is so that the source file can tell whether it is being
11642 # built for inclusion in a dll (and should export symbols for example).
11643 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11644 # (--disable-auto-import) libraries
11645 lt_prog_compiler_pic='-DDLL_EXPORT'
11646 ;;
11647
11648 darwin* | rhapsody*)
11649 # PIC is the default on this platform
11650 # Common symbols not allowed in MH_DYLIB files
11651 lt_prog_compiler_pic='-fno-common'
11652 ;;
11653
11654 hpux*)
11655 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11656 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11657 # sets the default TLS model and affects inlining.
11658 case $host_cpu in
11659 hppa*64*)
11660 # +Z the default
11661 ;;
11662 *)
11663 lt_prog_compiler_pic='-fPIC'
11664 ;;
11665 esac
11666 ;;
11667
11668 interix[3-9]*)
11669 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11670 # Instead, we relocate shared libraries at runtime.
11671 ;;
11672
11673 msdosdjgpp*)
11674 # Just because we use GCC doesn't mean we suddenly get shared libraries
11675 # on systems that don't support them.
11676 lt_prog_compiler_can_build_shared=no
11677 enable_shared=no
11678 ;;
11679
11680 *nto* | *qnx*)
11681 # QNX uses GNU C++, but need to define -shared option too, otherwise
11682 # it will coredump.
11683 lt_prog_compiler_pic='-fPIC -shared'
11684 ;;
11685
11686 sysv4*MP*)
11687 if test -d /usr/nec; then
11688 lt_prog_compiler_pic=-Kconform_pic
11689 fi
11690 ;;
11691
11692 *)
11693 lt_prog_compiler_pic='-fPIC'
11694 ;;
11695 esac
11696 else
11697 # PORTME Check for flag to pass linker flags through the system compiler.
11698 case $host_os in
11699 aix*)
11700 lt_prog_compiler_wl='-Wl,'
11701 if test "$host_cpu" = ia64; then
11702 # AIX 5 now supports IA64 processor
11703 lt_prog_compiler_static='-Bstatic'
11704 else
11705 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11706 fi
11707 ;;
11708
11709 mingw* | cygwin* | pw32* | os2* | cegcc*)
11710 # This hack is so that the source file can tell whether it is being
11711 # built for inclusion in a dll (and should export symbols for example).
11712 lt_prog_compiler_pic='-DDLL_EXPORT'
11713 ;;
11714
11715 hpux9* | hpux10* | hpux11*)
11716 lt_prog_compiler_wl='-Wl,'
11717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11718 # not for PA HP-UX.
11719 case $host_cpu in
11720 hppa*64*|ia64*)
11721 # +Z the default
11722 ;;
11723 *)
11724 lt_prog_compiler_pic='+Z'
11725 ;;
11726 esac
11727 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11728 lt_prog_compiler_static='${wl}-a ${wl}archive'
11729 ;;
11730
11731 irix5* | irix6* | nonstopux*)
11732 lt_prog_compiler_wl='-Wl,'
11733 # PIC (with -KPIC) is the default.
11734 lt_prog_compiler_static='-non_shared'
11735 ;;
11736
cristy18304f92009-11-22 15:48:26 +000011737 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000011738 case $cc_basename in
11739 # old Intel for x86_64 which still supported -KPIC.
11740 ecc*)
11741 lt_prog_compiler_wl='-Wl,'
11742 lt_prog_compiler_pic='-KPIC'
11743 lt_prog_compiler_static='-static'
11744 ;;
11745 # icc used to be incompatible with GCC.
11746 # ICC 10 doesn't accept -KPIC any more.
11747 icc* | ifort*)
11748 lt_prog_compiler_wl='-Wl,'
11749 lt_prog_compiler_pic='-fPIC'
11750 lt_prog_compiler_static='-static'
11751 ;;
11752 # Lahey Fortran 8.1.
11753 lf95*)
11754 lt_prog_compiler_wl='-Wl,'
11755 lt_prog_compiler_pic='--shared'
11756 lt_prog_compiler_static='--static'
11757 ;;
cristy18304f92009-11-22 15:48:26 +000011758 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000011759 # Portland Group compilers (*not* the Pentium gcc compiler,
11760 # which looks to be a dead project)
11761 lt_prog_compiler_wl='-Wl,'
11762 lt_prog_compiler_pic='-fpic'
11763 lt_prog_compiler_static='-Bstatic'
11764 ;;
11765 ccc*)
11766 lt_prog_compiler_wl='-Wl,'
11767 # All Alpha code is PIC.
11768 lt_prog_compiler_static='-non_shared'
11769 ;;
cristy18304f92009-11-22 15:48:26 +000011770 xl*)
11771 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000011772 lt_prog_compiler_wl='-Wl,'
11773 lt_prog_compiler_pic='-qpic'
11774 lt_prog_compiler_static='-qstaticlink'
11775 ;;
11776 *)
11777 case `$CC -V 2>&1 | sed 5q` in
11778 *Sun\ C*)
11779 # Sun C 5.9
11780 lt_prog_compiler_pic='-KPIC'
11781 lt_prog_compiler_static='-Bstatic'
11782 lt_prog_compiler_wl='-Wl,'
11783 ;;
cristy18304f92009-11-22 15:48:26 +000011784 *Sun\ F*)
11785 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11786 lt_prog_compiler_pic='-KPIC'
11787 lt_prog_compiler_static='-Bstatic'
11788 lt_prog_compiler_wl=''
11789 ;;
cristy3ed852e2009-09-05 21:47:34 +000011790 esac
11791 ;;
11792 esac
11793 ;;
11794
11795 newsos6)
11796 lt_prog_compiler_pic='-KPIC'
11797 lt_prog_compiler_static='-Bstatic'
11798 ;;
11799
11800 *nto* | *qnx*)
11801 # QNX uses GNU C++, but need to define -shared option too, otherwise
11802 # it will coredump.
11803 lt_prog_compiler_pic='-fPIC -shared'
11804 ;;
11805
11806 osf3* | osf4* | osf5*)
11807 lt_prog_compiler_wl='-Wl,'
11808 # All OSF/1 code is PIC.
11809 lt_prog_compiler_static='-non_shared'
11810 ;;
11811
11812 rdos*)
11813 lt_prog_compiler_static='-non_shared'
11814 ;;
11815
11816 solaris*)
11817 lt_prog_compiler_pic='-KPIC'
11818 lt_prog_compiler_static='-Bstatic'
11819 case $cc_basename in
11820 f77* | f90* | f95*)
11821 lt_prog_compiler_wl='-Qoption ld ';;
11822 *)
11823 lt_prog_compiler_wl='-Wl,';;
11824 esac
11825 ;;
11826
11827 sunos4*)
11828 lt_prog_compiler_wl='-Qoption ld '
11829 lt_prog_compiler_pic='-PIC'
11830 lt_prog_compiler_static='-Bstatic'
11831 ;;
11832
11833 sysv4 | sysv4.2uw2* | sysv4.3*)
11834 lt_prog_compiler_wl='-Wl,'
11835 lt_prog_compiler_pic='-KPIC'
11836 lt_prog_compiler_static='-Bstatic'
11837 ;;
11838
11839 sysv4*MP*)
11840 if test -d /usr/nec ;then
11841 lt_prog_compiler_pic='-Kconform_pic'
11842 lt_prog_compiler_static='-Bstatic'
11843 fi
11844 ;;
11845
11846 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11847 lt_prog_compiler_wl='-Wl,'
11848 lt_prog_compiler_pic='-KPIC'
11849 lt_prog_compiler_static='-Bstatic'
11850 ;;
11851
11852 unicos*)
11853 lt_prog_compiler_wl='-Wl,'
11854 lt_prog_compiler_can_build_shared=no
11855 ;;
11856
11857 uts4*)
11858 lt_prog_compiler_pic='-pic'
11859 lt_prog_compiler_static='-Bstatic'
11860 ;;
11861
11862 *)
11863 lt_prog_compiler_can_build_shared=no
11864 ;;
11865 esac
11866 fi
11867
11868case $host_os in
11869 # For platforms which do not support PIC, -DPIC is meaningless:
11870 *djgpp*)
11871 lt_prog_compiler_pic=
11872 ;;
11873 *)
11874 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11875 ;;
11876esac
cristy8b350f62009-11-15 23:12:43 +000011877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000011878$as_echo "$lt_prog_compiler_pic" >&6; }
11879
11880
11881
11882
11883
11884
11885#
11886# Check to make sure the PIC flag actually works.
11887#
11888if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000011889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011890$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011891if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011892 $as_echo_n "(cached) " >&6
11893else
11894 lt_cv_prog_compiler_pic_works=no
11895 ac_outfile=conftest.$ac_objext
11896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11897 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11898 # Insert the option either (1) after the last *FLAGS variable, or
11899 # (2) before a word containing "conftest.", or (3) at the end.
11900 # Note that $ac_compile itself does not contain backslashes and begins
11901 # with a dollar sign (not a hyphen), so the echo should work correctly.
11902 # The option is referenced via a variable to avoid confusing sed.
11903 lt_compile=`echo "$ac_compile" | $SED \
11904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11906 -e 's:$: $lt_compiler_flag:'`
cristy47fa4622009-12-28 01:52:31 +000011907 (eval echo "\"\$as_me:11907: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011908 (eval "$lt_compile" 2>conftest.err)
11909 ac_status=$?
11910 cat conftest.err >&5
cristy47fa4622009-12-28 01:52:31 +000011911 echo "$as_me:11911: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011912 if (exit $ac_status) && test -s "$ac_outfile"; then
11913 # The compiler can only warn and ignore the option if not recognized
11914 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000011915 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11917 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11918 lt_cv_prog_compiler_pic_works=yes
11919 fi
11920 fi
11921 $RM conftest*
11922
11923fi
cristy8b350f62009-11-15 23:12:43 +000011924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011925$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11926
11927if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11928 case $lt_prog_compiler_pic in
11929 "" | " "*) ;;
11930 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11931 esac
11932else
11933 lt_prog_compiler_pic=
11934 lt_prog_compiler_can_build_shared=no
11935fi
11936
11937fi
11938
11939
11940
11941
11942
11943
11944#
11945# Check to make sure the static flag actually works.
11946#
11947wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000011948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011949$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011950if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011951 $as_echo_n "(cached) " >&6
11952else
11953 lt_cv_prog_compiler_static_works=no
11954 save_LDFLAGS="$LDFLAGS"
11955 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11956 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11957 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11958 # The linker can only warn and ignore the option if not recognized
11959 # So say no if there are warnings
11960 if test -s conftest.err; then
11961 # Append any errors to the config.log.
11962 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000011963 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11965 if diff conftest.exp conftest.er2 >/dev/null; then
11966 lt_cv_prog_compiler_static_works=yes
11967 fi
11968 else
11969 lt_cv_prog_compiler_static_works=yes
11970 fi
11971 fi
11972 $RM -r conftest*
11973 LDFLAGS="$save_LDFLAGS"
11974
11975fi
cristy8b350f62009-11-15 23:12:43 +000011976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011977$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11978
11979if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11980 :
11981else
11982 lt_prog_compiler_static=
11983fi
11984
11985
11986
11987
11988
11989
11990
cristy8b350f62009-11-15 23:12:43 +000011991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011992$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011993if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011994 $as_echo_n "(cached) " >&6
11995else
11996 lt_cv_prog_compiler_c_o=no
11997 $RM -r conftest 2>/dev/null
11998 mkdir conftest
11999 cd conftest
12000 mkdir out
12001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12002
12003 lt_compiler_flag="-o out/conftest2.$ac_objext"
12004 # Insert the option either (1) after the last *FLAGS variable, or
12005 # (2) before a word containing "conftest.", or (3) at the end.
12006 # Note that $ac_compile itself does not contain backslashes and begins
12007 # with a dollar sign (not a hyphen), so the echo should work correctly.
12008 lt_compile=`echo "$ac_compile" | $SED \
12009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12011 -e 's:$: $lt_compiler_flag:'`
cristy47fa4622009-12-28 01:52:31 +000012012 (eval echo "\"\$as_me:12012: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012013 (eval "$lt_compile" 2>out/conftest.err)
12014 ac_status=$?
12015 cat out/conftest.err >&5
cristy47fa4622009-12-28 01:52:31 +000012016 echo "$as_me:12016: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12018 then
12019 # The compiler can only warn and ignore the option if not recognized
12020 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012021 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012022 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12023 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12024 lt_cv_prog_compiler_c_o=yes
12025 fi
12026 fi
12027 chmod u+w . 2>&5
12028 $RM conftest*
12029 # SGI C++ compiler will create directory out/ii_files/ for
12030 # template instantiation
12031 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12032 $RM out/* && rmdir out
12033 cd ..
12034 $RM -r conftest
12035 $RM conftest*
12036
12037fi
cristy8b350f62009-11-15 23:12:43 +000012038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012039$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12040
12041
12042
12043
12044
12045
cristy8b350f62009-11-15 23:12:43 +000012046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012047$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012048if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012049 $as_echo_n "(cached) " >&6
12050else
12051 lt_cv_prog_compiler_c_o=no
12052 $RM -r conftest 2>/dev/null
12053 mkdir conftest
12054 cd conftest
12055 mkdir out
12056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12057
12058 lt_compiler_flag="-o out/conftest2.$ac_objext"
12059 # Insert the option either (1) after the last *FLAGS variable, or
12060 # (2) before a word containing "conftest.", or (3) at the end.
12061 # Note that $ac_compile itself does not contain backslashes and begins
12062 # with a dollar sign (not a hyphen), so the echo should work correctly.
12063 lt_compile=`echo "$ac_compile" | $SED \
12064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12066 -e 's:$: $lt_compiler_flag:'`
cristy47fa4622009-12-28 01:52:31 +000012067 (eval echo "\"\$as_me:12067: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012068 (eval "$lt_compile" 2>out/conftest.err)
12069 ac_status=$?
12070 cat out/conftest.err >&5
cristy47fa4622009-12-28 01:52:31 +000012071 echo "$as_me:12071: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012072 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12073 then
12074 # The compiler can only warn and ignore the option if not recognized
12075 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012076 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012077 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12078 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12079 lt_cv_prog_compiler_c_o=yes
12080 fi
12081 fi
12082 chmod u+w . 2>&5
12083 $RM conftest*
12084 # SGI C++ compiler will create directory out/ii_files/ for
12085 # template instantiation
12086 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12087 $RM out/* && rmdir out
12088 cd ..
12089 $RM -r conftest
12090 $RM conftest*
12091
12092fi
cristy8b350f62009-11-15 23:12:43 +000012093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012094$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12095
12096
12097
12098
12099hard_links="nottested"
12100if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12101 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000012102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012103$as_echo_n "checking if we can lock with hard links... " >&6; }
12104 hard_links=yes
12105 $RM conftest*
12106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12107 touch conftest.a
12108 ln conftest.a conftest.b 2>&5 || hard_links=no
12109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000012110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012111$as_echo "$hard_links" >&6; }
12112 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000012113 { $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 +000012114$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12115 need_locks=warn
12116 fi
12117else
12118 need_locks=no
12119fi
12120
12121
12122
12123
12124
12125
cristy8b350f62009-11-15 23:12:43 +000012126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000012127$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12128
12129 runpath_var=
12130 allow_undefined_flag=
12131 always_export_symbols=no
12132 archive_cmds=
12133 archive_expsym_cmds=
12134 compiler_needs_object=no
12135 enable_shared_with_static_runtimes=no
12136 export_dynamic_flag_spec=
12137 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12138 hardcode_automatic=no
12139 hardcode_direct=no
12140 hardcode_direct_absolute=no
12141 hardcode_libdir_flag_spec=
12142 hardcode_libdir_flag_spec_ld=
12143 hardcode_libdir_separator=
12144 hardcode_minus_L=no
12145 hardcode_shlibpath_var=unsupported
12146 inherit_rpath=no
12147 link_all_deplibs=unknown
12148 module_cmds=
12149 module_expsym_cmds=
12150 old_archive_from_new_cmds=
12151 old_archive_from_expsyms_cmds=
12152 thread_safe_flag_spec=
12153 whole_archive_flag_spec=
12154 # include_expsyms should be a list of space-separated symbols to be *always*
12155 # included in the symbol list
12156 include_expsyms=
12157 # exclude_expsyms can be an extended regexp of symbols to exclude
12158 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12159 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12160 # as well as any symbol that contains `d'.
12161 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12162 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12163 # platforms (ab)use it in PIC code, but their linkers get confused if
12164 # the symbol is explicitly referenced. Since portable code cannot
12165 # rely on this symbol name, it's probably fine to never include it in
12166 # preloaded symbol tables.
12167 # Exclude shared library initialization/finalization symbols.
12168 extract_expsyms_cmds=
12169
12170 case $host_os in
12171 cygwin* | mingw* | pw32* | cegcc*)
12172 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12173 # When not using gcc, we currently assume that we are using
12174 # Microsoft Visual C++.
12175 if test "$GCC" != yes; then
12176 with_gnu_ld=no
12177 fi
12178 ;;
12179 interix*)
12180 # we just hope/assume this is gcc and not c89 (= MSVC++)
12181 with_gnu_ld=yes
12182 ;;
12183 openbsd*)
12184 with_gnu_ld=no
12185 ;;
12186 esac
12187
12188 ld_shlibs=yes
12189 if test "$with_gnu_ld" = yes; then
12190 # If archive_cmds runs LD, not CC, wlarc should be empty
12191 wlarc='${wl}'
12192
12193 # Set some defaults for GNU ld with shared library support. These
12194 # are reset later if shared libraries are not supported. Putting them
12195 # here allows them to be overridden if necessary.
12196 runpath_var=LD_RUN_PATH
12197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12198 export_dynamic_flag_spec='${wl}--export-dynamic'
12199 # ancient GNU ld didn't support --whole-archive et. al.
12200 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12201 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12202 else
12203 whole_archive_flag_spec=
12204 fi
12205 supports_anon_versioning=no
12206 case `$LD -v 2>&1` in
12207 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12208 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12209 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12210 *\ 2.11.*) ;; # other 2.11 versions
12211 *) supports_anon_versioning=yes ;;
12212 esac
12213
12214 # See if GNU ld supports shared libraries.
12215 case $host_os in
12216 aix[3-9]*)
12217 # On AIX/PPC, the GNU linker is very broken
12218 if test "$host_cpu" != ia64; then
12219 ld_shlibs=no
12220 cat <<_LT_EOF 1>&2
12221
cristy18304f92009-11-22 15:48:26 +000012222*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000012223*** to be unable to reliably create shared libraries on AIX.
12224*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000012225*** really care for shared libraries, you may want to modify your PATH
12226*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000012227
12228_LT_EOF
12229 fi
12230 ;;
12231
12232 amigaos*)
12233 case $host_cpu in
12234 powerpc)
12235 # see comment about AmigaOS4 .so support
12236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237 archive_expsym_cmds=''
12238 ;;
12239 m68k)
12240 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)'
12241 hardcode_libdir_flag_spec='-L$libdir'
12242 hardcode_minus_L=yes
12243 ;;
12244 esac
12245 ;;
12246
12247 beos*)
12248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12249 allow_undefined_flag=unsupported
12250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12251 # support --undefined. This deserves some investigation. FIXME
12252 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12253 else
12254 ld_shlibs=no
12255 fi
12256 ;;
12257
12258 cygwin* | mingw* | pw32* | cegcc*)
12259 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12260 # as there is no search path for DLLs.
12261 hardcode_libdir_flag_spec='-L$libdir'
12262 allow_undefined_flag=unsupported
12263 always_export_symbols=no
12264 enable_shared_with_static_runtimes=yes
12265 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12266
12267 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12269 # If the export-symbols file already is a .def file (1st line
12270 # is EXPORTS), use it as is; otherwise, prepend...
12271 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12272 cp $export_symbols $output_objdir/$soname.def;
12273 else
12274 echo EXPORTS > $output_objdir/$soname.def;
12275 cat $export_symbols >> $output_objdir/$soname.def;
12276 fi~
12277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12278 else
12279 ld_shlibs=no
12280 fi
12281 ;;
12282
12283 interix[3-9]*)
12284 hardcode_direct=no
12285 hardcode_shlibpath_var=no
12286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12287 export_dynamic_flag_spec='${wl}-E'
12288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12289 # Instead, shared libraries are loaded at an image base (0x10000000 by
12290 # default) and relocated if they conflict, which is a slow very memory
12291 # consuming and fragmenting process. To avoid this, we pick a random,
12292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12295 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'
12296 ;;
12297
cristy18304f92009-11-22 15:48:26 +000012298 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012299 tmp_diet=no
12300 if test "$host_os" = linux-dietlibc; then
12301 case $cc_basename in
12302 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12303 esac
12304 fi
12305 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12306 && test "$tmp_diet" = no
12307 then
12308 tmp_addflag=
12309 tmp_sharedflag='-shared'
12310 case $cc_basename,$host_cpu in
12311 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000012312 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 +000012313 tmp_addflag=' $pic_flag'
12314 ;;
cristy18304f92009-11-22 15:48:26 +000012315 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12316 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 +000012317 tmp_addflag=' $pic_flag -Mnomain' ;;
12318 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12319 tmp_addflag=' -i_dynamic' ;;
12320 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12321 tmp_addflag=' -i_dynamic -nofor_main' ;;
12322 ifc* | ifort*) # Intel Fortran compiler
12323 tmp_addflag=' -nofor_main' ;;
12324 lf95*) # Lahey Fortran 8.1
12325 whole_archive_flag_spec=
12326 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000012327 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000012328 tmp_sharedflag='-qmkshrobj'
12329 tmp_addflag= ;;
12330 esac
12331 case `$CC -V 2>&1 | sed 5q` in
12332 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000012333 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 +000012334 compiler_needs_object=yes
12335 tmp_sharedflag='-G' ;;
12336 *Sun\ F*) # Sun Fortran 8.3
12337 tmp_sharedflag='-G' ;;
12338 esac
12339 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12340
12341 if test "x$supports_anon_versioning" = xyes; then
12342 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12343 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12344 echo "local: *; };" >> $output_objdir/$libname.ver~
12345 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12346 fi
12347
12348 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000012349 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000012350 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12351 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12352 hardcode_libdir_flag_spec=
12353 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12354 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12355 if test "x$supports_anon_versioning" = xyes; then
12356 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12357 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12358 echo "local: *; };" >> $output_objdir/$libname.ver~
12359 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12360 fi
12361 ;;
12362 esac
12363 else
12364 ld_shlibs=no
12365 fi
12366 ;;
12367
12368 netbsd*)
12369 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12370 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12371 wlarc=
12372 else
12373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12375 fi
12376 ;;
12377
12378 solaris*)
12379 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12380 ld_shlibs=no
12381 cat <<_LT_EOF 1>&2
12382
12383*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12384*** create shared libraries on Solaris systems. Therefore, libtool
12385*** is disabling shared libraries support. We urge you to upgrade GNU
12386*** binutils to release 2.9.1 or newer. Another option is to modify
12387*** your PATH or compiler configuration so that the native linker is
12388*** used, and then restart.
12389
12390_LT_EOF
12391 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12394 else
12395 ld_shlibs=no
12396 fi
12397 ;;
12398
12399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12400 case `$LD -v 2>&1` in
12401 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12402 ld_shlibs=no
12403 cat <<_LT_EOF 1>&2
12404
12405*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12406*** reliably create shared libraries on SCO systems. Therefore, libtool
12407*** is disabling shared libraries support. We urge you to upgrade GNU
12408*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12409*** your PATH or compiler configuration so that the native linker is
12410*** used, and then restart.
12411
12412_LT_EOF
12413 ;;
12414 *)
12415 # For security reasons, it is highly recommended that you always
12416 # use absolute paths for naming shared libraries, and exclude the
12417 # DT_RUNPATH tag from executables and libraries. But doing so
12418 # requires that you compile everything twice, which is a pain.
12419 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12423 else
12424 ld_shlibs=no
12425 fi
12426 ;;
12427 esac
12428 ;;
12429
12430 sunos4*)
12431 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12432 wlarc=
12433 hardcode_direct=yes
12434 hardcode_shlibpath_var=no
12435 ;;
12436
12437 *)
12438 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12440 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12441 else
12442 ld_shlibs=no
12443 fi
12444 ;;
12445 esac
12446
12447 if test "$ld_shlibs" = no; then
12448 runpath_var=
12449 hardcode_libdir_flag_spec=
12450 export_dynamic_flag_spec=
12451 whole_archive_flag_spec=
12452 fi
12453 else
12454 # PORTME fill in a description of your system's linker (not GNU ld)
12455 case $host_os in
12456 aix3*)
12457 allow_undefined_flag=unsupported
12458 always_export_symbols=yes
12459 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'
12460 # Note: this linker hardcodes the directories in LIBPATH if there
12461 # are no directories specified by -L.
12462 hardcode_minus_L=yes
12463 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12464 # Neither direct hardcoding nor static linking is supported with a
12465 # broken collect2.
12466 hardcode_direct=unsupported
12467 fi
12468 ;;
12469
12470 aix[4-9]*)
12471 if test "$host_cpu" = ia64; then
12472 # On IA64, the linker does run time linking by default, so we don't
12473 # have to do anything special.
12474 aix_use_runtimelinking=no
12475 exp_sym_flag='-Bexport'
12476 no_entry_flag=""
12477 else
12478 # If we're using GNU nm, then we don't want the "-C" option.
12479 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12480 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000012481 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 +000012482 else
12483 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'
12484 fi
12485 aix_use_runtimelinking=no
12486
12487 # Test if we are trying to use run time linking or normal
12488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12489 # need to do runtime linking.
12490 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12491 for ld_flag in $LDFLAGS; do
12492 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12493 aix_use_runtimelinking=yes
12494 break
12495 fi
12496 done
12497 ;;
12498 esac
12499
12500 exp_sym_flag='-bexport'
12501 no_entry_flag='-bnoentry'
12502 fi
12503
12504 # When large executables or shared objects are built, AIX ld can
12505 # have problems creating the table of contents. If linking a library
12506 # or program results in "error TOC overflow" add -mminimal-toc to
12507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12509
12510 archive_cmds=''
12511 hardcode_direct=yes
12512 hardcode_direct_absolute=yes
12513 hardcode_libdir_separator=':'
12514 link_all_deplibs=yes
12515 file_list_spec='${wl}-f,'
12516
12517 if test "$GCC" = yes; then
12518 case $host_os in aix4.[012]|aix4.[012].*)
12519 # We only want to do this on AIX 4.2 and lower, the check
12520 # below for broken collect2 doesn't work under 4.3+
12521 collect2name=`${CC} -print-prog-name=collect2`
12522 if test -f "$collect2name" &&
12523 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12524 then
12525 # We have reworked collect2
12526 :
12527 else
12528 # We have old collect2
12529 hardcode_direct=unsupported
12530 # It fails to find uninstalled libraries when the uninstalled
12531 # path is not listed in the libpath. Setting hardcode_minus_L
12532 # to unsupported forces relinking
12533 hardcode_minus_L=yes
12534 hardcode_libdir_flag_spec='-L$libdir'
12535 hardcode_libdir_separator=
12536 fi
12537 ;;
12538 esac
12539 shared_flag='-shared'
12540 if test "$aix_use_runtimelinking" = yes; then
12541 shared_flag="$shared_flag "'${wl}-G'
12542 fi
12543 else
12544 # not using gcc
12545 if test "$host_cpu" = ia64; then
12546 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12547 # chokes on -Wl,-G. The following line is correct:
12548 shared_flag='-G'
12549 else
12550 if test "$aix_use_runtimelinking" = yes; then
12551 shared_flag='${wl}-G'
12552 else
12553 shared_flag='${wl}-bM:SRE'
12554 fi
12555 fi
12556 fi
12557
12558 export_dynamic_flag_spec='${wl}-bexpall'
12559 # It seems that -bexpall does not export symbols beginning with
12560 # underscore (_), so it is better to generate a list of symbols to export.
12561 always_export_symbols=yes
12562 if test "$aix_use_runtimelinking" = yes; then
12563 # Warning - without using the other runtime loading flags (-brtl),
12564 # -berok will link without error, but may produce a broken library.
12565 allow_undefined_flag='-berok'
12566 # Determine the default libpath from the value encoded in an
12567 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012569/* end confdefs.h. */
12570
12571int
12572main ()
12573{
12574
12575 ;
12576 return 0;
12577}
12578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012579if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012580
12581lt_aix_libpath_sed='
12582 /Import File Strings/,/^$/ {
12583 /^0/ {
12584 s/^0 *\(.*\)$/\1/
12585 p
12586 }
12587 }'
12588aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12589# Check for a 64-bit object if we didn't find anything.
12590if test -z "$aix_libpath"; then
12591 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12592fi
cristy3ed852e2009-09-05 21:47:34 +000012593fi
cristy8b350f62009-11-15 23:12:43 +000012594rm -f core conftest.err conftest.$ac_objext \
12595 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012596if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12597
12598 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000012599 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 +000012600 else
12601 if test "$host_cpu" = ia64; then
12602 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12603 allow_undefined_flag="-z nodefs"
12604 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"
12605 else
12606 # Determine the default libpath from the value encoded in an
12607 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012609/* end confdefs.h. */
12610
12611int
12612main ()
12613{
12614
12615 ;
12616 return 0;
12617}
12618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012619if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012620
12621lt_aix_libpath_sed='
12622 /Import File Strings/,/^$/ {
12623 /^0/ {
12624 s/^0 *\(.*\)$/\1/
12625 p
12626 }
12627 }'
12628aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12629# Check for a 64-bit object if we didn't find anything.
12630if test -z "$aix_libpath"; then
12631 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12632fi
cristy3ed852e2009-09-05 21:47:34 +000012633fi
cristy8b350f62009-11-15 23:12:43 +000012634rm -f core conftest.err conftest.$ac_objext \
12635 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012636if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12637
12638 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12639 # Warning - without using the other run time loading flags,
12640 # -berok will link without error, but may produce a broken library.
12641 no_undefined_flag=' ${wl}-bernotok'
12642 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000012643 # Exported symbols can be pulled into shared objects from archives
12644 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000012645 archive_cmds_need_lc=yes
12646 # This is similar to how AIX traditionally builds its shared libraries.
12647 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'
12648 fi
12649 fi
12650 ;;
12651
12652 amigaos*)
12653 case $host_cpu in
12654 powerpc)
12655 # see comment about AmigaOS4 .so support
12656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12657 archive_expsym_cmds=''
12658 ;;
12659 m68k)
12660 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)'
12661 hardcode_libdir_flag_spec='-L$libdir'
12662 hardcode_minus_L=yes
12663 ;;
12664 esac
12665 ;;
12666
12667 bsdi[45]*)
12668 export_dynamic_flag_spec=-rdynamic
12669 ;;
12670
12671 cygwin* | mingw* | pw32* | cegcc*)
12672 # When not using gcc, we currently assume that we are using
12673 # Microsoft Visual C++.
12674 # hardcode_libdir_flag_spec is actually meaningless, as there is
12675 # no search path for DLLs.
12676 hardcode_libdir_flag_spec=' '
12677 allow_undefined_flag=unsupported
12678 # Tell ltmain to make .lib files, not .a files.
12679 libext=lib
12680 # Tell ltmain to make .dll files, not .so files.
12681 shrext_cmds=".dll"
12682 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000012683 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000012684 # The linker will automatically build a .lib file if we build a DLL.
12685 old_archive_from_new_cmds='true'
12686 # FIXME: Should let the user specify the lib program.
12687 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12688 fix_srcfile_path='`cygpath -w "$srcfile"`'
12689 enable_shared_with_static_runtimes=yes
12690 ;;
12691
12692 darwin* | rhapsody*)
12693
12694
12695 archive_cmds_need_lc=no
12696 hardcode_direct=no
12697 hardcode_automatic=yes
12698 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000012699 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000012700 link_all_deplibs=yes
12701 allow_undefined_flag="$_lt_dar_allow_undefined"
12702 case $cc_basename in
12703 ifort*) _lt_dar_can_shared=yes ;;
12704 *) _lt_dar_can_shared=$GCC ;;
12705 esac
12706 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000012707 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000012708 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12709 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12710 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}"
12711 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}"
12712
12713 else
12714 ld_shlibs=no
12715 fi
12716
12717 ;;
12718
12719 dgux*)
12720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12721 hardcode_libdir_flag_spec='-L$libdir'
12722 hardcode_shlibpath_var=no
12723 ;;
12724
12725 freebsd1*)
12726 ld_shlibs=no
12727 ;;
12728
12729 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12730 # support. Future versions do this automatically, but an explicit c++rt0.o
12731 # does not break anything, and helps significantly (at the cost of a little
12732 # extra space).
12733 freebsd2.2*)
12734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12735 hardcode_libdir_flag_spec='-R$libdir'
12736 hardcode_direct=yes
12737 hardcode_shlibpath_var=no
12738 ;;
12739
12740 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12741 freebsd2*)
12742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12743 hardcode_direct=yes
12744 hardcode_minus_L=yes
12745 hardcode_shlibpath_var=no
12746 ;;
12747
12748 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12749 freebsd* | dragonfly*)
12750 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12751 hardcode_libdir_flag_spec='-R$libdir'
12752 hardcode_direct=yes
12753 hardcode_shlibpath_var=no
12754 ;;
12755
12756 hpux9*)
12757 if test "$GCC" = yes; then
12758 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'
12759 else
12760 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'
12761 fi
12762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12763 hardcode_libdir_separator=:
12764 hardcode_direct=yes
12765
12766 # hardcode_minus_L: Not really in the search PATH,
12767 # but as the default location of the library.
12768 hardcode_minus_L=yes
12769 export_dynamic_flag_spec='${wl}-E'
12770 ;;
12771
12772 hpux10*)
cristy18304f92009-11-22 15:48:26 +000012773 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012774 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12775 else
12776 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12777 fi
12778 if test "$with_gnu_ld" = no; then
12779 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12780 hardcode_libdir_flag_spec_ld='+b $libdir'
12781 hardcode_libdir_separator=:
12782 hardcode_direct=yes
12783 hardcode_direct_absolute=yes
12784 export_dynamic_flag_spec='${wl}-E'
12785 # hardcode_minus_L: Not really in the search PATH,
12786 # but as the default location of the library.
12787 hardcode_minus_L=yes
12788 fi
12789 ;;
12790
12791 hpux11*)
cristy18304f92009-11-22 15:48:26 +000012792 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012793 case $host_cpu in
12794 hppa*64*)
12795 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12796 ;;
12797 ia64*)
12798 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12799 ;;
12800 *)
12801 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12802 ;;
12803 esac
12804 else
12805 case $host_cpu in
12806 hppa*64*)
12807 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12808 ;;
12809 ia64*)
12810 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12811 ;;
12812 *)
cristy18304f92009-11-22 15:48:26 +000012813 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 +000012814 ;;
12815 esac
12816 fi
12817 if test "$with_gnu_ld" = no; then
12818 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12819 hardcode_libdir_separator=:
12820
12821 case $host_cpu in
12822 hppa*64*|ia64*)
12823 hardcode_direct=no
12824 hardcode_shlibpath_var=no
12825 ;;
12826 *)
12827 hardcode_direct=yes
12828 hardcode_direct_absolute=yes
12829 export_dynamic_flag_spec='${wl}-E'
12830
12831 # hardcode_minus_L: Not really in the search PATH,
12832 # but as the default location of the library.
12833 hardcode_minus_L=yes
12834 ;;
12835 esac
12836 fi
12837 ;;
12838
12839 irix5* | irix6* | nonstopux*)
12840 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012841 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 +000012842 # Try to use the -exported_symbol ld option, if it does not
12843 # work, assume that -exports_file does not work either and
12844 # implicitly export all symbols.
12845 save_LDFLAGS="$LDFLAGS"
12846 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000012847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000012849int foo(void) {}
12850_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012851if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000012852 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 +000012853
cristy3ed852e2009-09-05 21:47:34 +000012854fi
cristy8b350f62009-11-15 23:12:43 +000012855rm -f core conftest.err conftest.$ac_objext \
12856 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012857 LDFLAGS="$save_LDFLAGS"
12858 else
cristy18304f92009-11-22 15:48:26 +000012859 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'
12860 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 +000012861 fi
12862 archive_cmds_need_lc='no'
12863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12864 hardcode_libdir_separator=:
12865 inherit_rpath=yes
12866 link_all_deplibs=yes
12867 ;;
12868
12869 netbsd*)
12870 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12872 else
12873 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12874 fi
12875 hardcode_libdir_flag_spec='-R$libdir'
12876 hardcode_direct=yes
12877 hardcode_shlibpath_var=no
12878 ;;
12879
12880 newsos6)
12881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12882 hardcode_direct=yes
12883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12884 hardcode_libdir_separator=:
12885 hardcode_shlibpath_var=no
12886 ;;
12887
12888 *nto* | *qnx*)
12889 ;;
12890
12891 openbsd*)
12892 if test -f /usr/libexec/ld.so; then
12893 hardcode_direct=yes
12894 hardcode_shlibpath_var=no
12895 hardcode_direct_absolute=yes
12896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12897 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12898 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12899 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12900 export_dynamic_flag_spec='${wl}-E'
12901 else
12902 case $host_os in
12903 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12905 hardcode_libdir_flag_spec='-R$libdir'
12906 ;;
12907 *)
12908 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12909 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12910 ;;
12911 esac
12912 fi
12913 else
12914 ld_shlibs=no
12915 fi
12916 ;;
12917
12918 os2*)
12919 hardcode_libdir_flag_spec='-L$libdir'
12920 hardcode_minus_L=yes
12921 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000012922 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 +000012923 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12924 ;;
12925
12926 osf3*)
12927 if test "$GCC" = yes; then
12928 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000012929 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 +000012930 else
12931 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000012932 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 +000012933 fi
12934 archive_cmds_need_lc='no'
12935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12936 hardcode_libdir_separator=:
12937 ;;
12938
12939 osf4* | osf5*) # as osf3* with the addition of -msym flag
12940 if test "$GCC" = yes; then
12941 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000012942 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 +000012943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12944 else
12945 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000012946 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 +000012947 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 +000012948 $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 +000012949
12950 # Both c and cxx compiler support -rpath directly
12951 hardcode_libdir_flag_spec='-rpath $libdir'
12952 fi
12953 archive_cmds_need_lc='no'
12954 hardcode_libdir_separator=:
12955 ;;
12956
12957 solaris*)
12958 no_undefined_flag=' -z defs'
12959 if test "$GCC" = yes; then
12960 wlarc='${wl}'
12961 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12962 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12963 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12964 else
12965 case `$CC -V 2>&1` in
12966 *"Compilers 5.0"*)
12967 wlarc=''
12968 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12969 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12970 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12971 ;;
12972 *)
12973 wlarc='${wl}'
12974 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12975 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12976 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12977 ;;
12978 esac
12979 fi
12980 hardcode_libdir_flag_spec='-R$libdir'
12981 hardcode_shlibpath_var=no
12982 case $host_os in
12983 solaris2.[0-5] | solaris2.[0-5].*) ;;
12984 *)
12985 # The compiler driver will combine and reorder linker options,
12986 # but understands `-z linker_flag'. GCC discards it without `$wl',
12987 # but is careful enough not to reorder.
12988 # Supported since Solaris 2.6 (maybe 2.5.1?)
12989 if test "$GCC" = yes; then
12990 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12991 else
12992 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12993 fi
12994 ;;
12995 esac
12996 link_all_deplibs=yes
12997 ;;
12998
12999 sunos4*)
13000 if test "x$host_vendor" = xsequent; then
13001 # Use $CC to link under sequent, because it throws in some extra .o
13002 # files that make .init and .fini sections work.
13003 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13004 else
13005 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13006 fi
13007 hardcode_libdir_flag_spec='-L$libdir'
13008 hardcode_direct=yes
13009 hardcode_minus_L=yes
13010 hardcode_shlibpath_var=no
13011 ;;
13012
13013 sysv4)
13014 case $host_vendor in
13015 sni)
13016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13017 hardcode_direct=yes # is this really true???
13018 ;;
13019 siemens)
13020 ## LD is ld it makes a PLAMLIB
13021 ## CC just makes a GrossModule.
13022 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13023 reload_cmds='$CC -r -o $output$reload_objs'
13024 hardcode_direct=no
13025 ;;
13026 motorola)
13027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13028 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13029 ;;
13030 esac
13031 runpath_var='LD_RUN_PATH'
13032 hardcode_shlibpath_var=no
13033 ;;
13034
13035 sysv4.3*)
13036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13037 hardcode_shlibpath_var=no
13038 export_dynamic_flag_spec='-Bexport'
13039 ;;
13040
13041 sysv4*MP*)
13042 if test -d /usr/nec; then
13043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13044 hardcode_shlibpath_var=no
13045 runpath_var=LD_RUN_PATH
13046 hardcode_runpath_var=yes
13047 ld_shlibs=yes
13048 fi
13049 ;;
13050
13051 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13052 no_undefined_flag='${wl}-z,text'
13053 archive_cmds_need_lc=no
13054 hardcode_shlibpath_var=no
13055 runpath_var='LD_RUN_PATH'
13056
13057 if test "$GCC" = yes; then
13058 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13059 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13060 else
13061 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13062 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13063 fi
13064 ;;
13065
13066 sysv5* | sco3.2v5* | sco5v6*)
13067 # Note: We can NOT use -z defs as we might desire, because we do not
13068 # link with -lc, and that would cause any symbols used from libc to
13069 # always be unresolved, which means just about no library would
13070 # ever link correctly. If we're not using GNU ld we use -z text
13071 # though, which does catch some bad symbols but isn't as heavy-handed
13072 # as -z defs.
13073 no_undefined_flag='${wl}-z,text'
13074 allow_undefined_flag='${wl}-z,nodefs'
13075 archive_cmds_need_lc=no
13076 hardcode_shlibpath_var=no
13077 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13078 hardcode_libdir_separator=':'
13079 link_all_deplibs=yes
13080 export_dynamic_flag_spec='${wl}-Bexport'
13081 runpath_var='LD_RUN_PATH'
13082
13083 if test "$GCC" = yes; then
13084 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13085 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13086 else
13087 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13088 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13089 fi
13090 ;;
13091
13092 uts4*)
13093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13094 hardcode_libdir_flag_spec='-L$libdir'
13095 hardcode_shlibpath_var=no
13096 ;;
13097
13098 *)
13099 ld_shlibs=no
13100 ;;
13101 esac
13102
13103 if test x$host_vendor = xsni; then
13104 case $host in
13105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13106 export_dynamic_flag_spec='${wl}-Blargedynsym'
13107 ;;
13108 esac
13109 fi
13110 fi
13111
cristy8b350f62009-11-15 23:12:43 +000013112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000013113$as_echo "$ld_shlibs" >&6; }
13114test "$ld_shlibs" = no && can_build_shared=no
13115
13116with_gnu_ld=$with_gnu_ld
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132#
13133# Do we need to explicitly link libc?
13134#
13135case "x$archive_cmds_need_lc" in
13136x|xyes)
13137 # Assume -lc should be added
13138 archive_cmds_need_lc=yes
13139
13140 if test "$enable_shared" = yes && test "$GCC" = yes; then
13141 case $archive_cmds in
13142 *'~'*)
13143 # FIXME: we may have to deal with multi-command sequences.
13144 ;;
13145 '$CC '*)
13146 # Test whether the compiler implicitly links with -lc since on some
13147 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13148 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000013149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000013150$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000013151 $RM conftest*
13152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013153
cristy18304f92009-11-22 15:48:26 +000013154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000013155 (eval $ac_compile) 2>&5
13156 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13158 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000013159 soname=conftest
13160 lib=conftest
13161 libobjs=conftest.$ac_objext
13162 deplibs=
13163 wl=$lt_prog_compiler_wl
13164 pic_flag=$lt_prog_compiler_pic
13165 compiler_flags=-v
13166 linker_flags=-v
13167 verstring=
13168 output_objdir=.
13169 libname=conftest
13170 lt_save_allow_undefined_flag=$allow_undefined_flag
13171 allow_undefined_flag=
13172 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 +000013173 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13174 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000013177 then
13178 archive_cmds_need_lc=no
13179 else
13180 archive_cmds_need_lc=yes
13181 fi
13182 allow_undefined_flag=$lt_save_allow_undefined_flag
13183 else
13184 cat conftest.err 1>&5
13185 fi
13186 $RM conftest*
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13188$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000013189 ;;
13190 esac
13191 fi
13192 ;;
13193esac
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
13342
13343
13344
13345
13346
13347
13348
13349
13350
cristy8b350f62009-11-15 23:12:43 +000013351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000013352$as_echo_n "checking dynamic linker characteristics... " >&6; }
13353
13354if test "$GCC" = yes; then
13355 case $host_os in
13356 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13357 *) lt_awk_arg="/^libraries:/" ;;
13358 esac
cristy18304f92009-11-22 15:48:26 +000013359 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13360 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000013361 # if the path contains ";" then we assume it to be the separator
13362 # otherwise default to the standard path separator (i.e. ":") - it is
13363 # assumed that no part of a normal pathname contains ";" but that should
13364 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000013365 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13366 else
13367 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13368 fi
cristy3ed852e2009-09-05 21:47:34 +000013369 # Ok, now we have the path, separated by spaces, we can step through it
13370 # and add multilib dir if necessary.
13371 lt_tmp_lt_search_path_spec=
13372 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13373 for lt_sys_path in $lt_search_path_spec; do
13374 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13375 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13376 else
13377 test -d "$lt_sys_path" && \
13378 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13379 fi
13380 done
cristy18304f92009-11-22 15:48:26 +000013381 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000013382BEGIN {RS=" "; FS="/|\n";} {
13383 lt_foo="";
13384 lt_count=0;
13385 for (lt_i = NF; lt_i > 0; lt_i--) {
13386 if ($lt_i != "" && $lt_i != ".") {
13387 if ($lt_i == "..") {
13388 lt_count++;
13389 } else {
13390 if (lt_count == 0) {
13391 lt_foo="/" $lt_i lt_foo;
13392 } else {
13393 lt_count--;
13394 }
13395 }
13396 }
13397 }
13398 if (lt_foo != "") { lt_freq[lt_foo]++; }
13399 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13400}'`
cristy18304f92009-11-22 15:48:26 +000013401 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000013402else
13403 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13404fi
13405library_names_spec=
13406libname_spec='lib$name'
13407soname_spec=
13408shrext_cmds=".so"
13409postinstall_cmds=
13410postuninstall_cmds=
13411finish_cmds=
13412finish_eval=
13413shlibpath_var=
13414shlibpath_overrides_runpath=unknown
13415version_type=none
13416dynamic_linker="$host_os ld.so"
13417sys_lib_dlsearch_path_spec="/lib /usr/lib"
13418need_lib_prefix=unknown
13419hardcode_into_libs=no
13420
13421# when you set need_version to no, make sure it does not cause -set_version
13422# flags to be left without arguments
13423need_version=unknown
13424
13425case $host_os in
13426aix3*)
13427 version_type=linux
13428 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13429 shlibpath_var=LIBPATH
13430
13431 # AIX 3 has no versioning support, so we append a major version to the name.
13432 soname_spec='${libname}${release}${shared_ext}$major'
13433 ;;
13434
13435aix[4-9]*)
13436 version_type=linux
13437 need_lib_prefix=no
13438 need_version=no
13439 hardcode_into_libs=yes
13440 if test "$host_cpu" = ia64; then
13441 # AIX 5 supports IA64
13442 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 else
13445 # With GCC up to 2.95.x, collect2 would create an import file
13446 # for dependence libraries. The import file would start with
13447 # the line `#! .'. This would cause the generated library to
13448 # depend on `.', always an invalid library. This was fixed in
13449 # development snapshots of GCC prior to 3.0.
13450 case $host_os in
13451 aix4 | aix4.[01] | aix4.[01].*)
13452 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13453 echo ' yes '
13454 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13455 :
13456 else
13457 can_build_shared=no
13458 fi
13459 ;;
13460 esac
13461 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13462 # soname into executable. Probably we can add versioning support to
13463 # collect2, so additional links can be useful in future.
13464 if test "$aix_use_runtimelinking" = yes; then
13465 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13466 # instead of lib<name>.a to let people know that these are not
13467 # typical AIX shared libraries.
13468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13469 else
13470 # We preserve .a as extension for shared libraries through AIX4.2
13471 # and later when we are not doing run time linking.
13472 library_names_spec='${libname}${release}.a $libname.a'
13473 soname_spec='${libname}${release}${shared_ext}$major'
13474 fi
13475 shlibpath_var=LIBPATH
13476 fi
13477 ;;
13478
13479amigaos*)
13480 case $host_cpu in
13481 powerpc)
13482 # Since July 2007 AmigaOS4 officially supports .so libraries.
13483 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13485 ;;
13486 m68k)
13487 library_names_spec='$libname.ixlibrary $libname.a'
13488 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000013489 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 +000013490 ;;
13491 esac
13492 ;;
13493
13494beos*)
13495 library_names_spec='${libname}${shared_ext}'
13496 dynamic_linker="$host_os ld.so"
13497 shlibpath_var=LIBRARY_PATH
13498 ;;
13499
13500bsdi[45]*)
13501 version_type=linux
13502 need_version=no
13503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13504 soname_spec='${libname}${release}${shared_ext}$major'
13505 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13506 shlibpath_var=LD_LIBRARY_PATH
13507 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13508 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13509 # the default ld.so.conf also contains /usr/contrib/lib and
13510 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13511 # libtool to hard-code these into programs
13512 ;;
13513
13514cygwin* | mingw* | pw32* | cegcc*)
13515 version_type=windows
13516 shrext_cmds=".dll"
13517 need_version=no
13518 need_lib_prefix=no
13519
13520 case $GCC,$host_os in
13521 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13522 library_names_spec='$libname.dll.a'
13523 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13524 postinstall_cmds='base_file=`basename \${file}`~
13525 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13526 dldir=$destdir/`dirname \$dlpath`~
13527 test -d \$dldir || mkdir -p \$dldir~
13528 $install_prog $dir/$dlname \$dldir/$dlname~
13529 chmod a+x \$dldir/$dlname~
13530 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13531 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13532 fi'
13533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13534 dlpath=$dir/\$dldll~
13535 $RM \$dlpath'
13536 shlibpath_overrides_runpath=yes
13537
13538 case $host_os in
13539 cygwin*)
13540 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13541 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000013542 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000013543 ;;
13544 mingw* | cegcc*)
13545 # MinGW DLLs use traditional 'lib' prefix
13546 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000013547 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13548 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13549 # It is most probably a Windows format PATH printed by
13550 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13551 # path with ; separators, and with drive letters. We can handle the
13552 # drive letters (cygwin fileutils understands them), so leave them,
13553 # especially as we might pass files found there to a mingw objdump,
13554 # which wouldn't understand a cygwinified path. Ahh.
13555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13556 else
13557 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13558 fi
cristy3ed852e2009-09-05 21:47:34 +000013559 ;;
13560 pw32*)
13561 # pw32 DLLs use 'pw' prefix rather than 'lib'
13562 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13563 ;;
13564 esac
13565 ;;
13566
13567 *)
13568 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13569 ;;
13570 esac
13571 dynamic_linker='Win32 ld.exe'
13572 # FIXME: first we should search . and the directory the executable is in
13573 shlibpath_var=PATH
13574 ;;
13575
13576darwin* | rhapsody*)
13577 dynamic_linker="$host_os dyld"
13578 version_type=darwin
13579 need_lib_prefix=no
13580 need_version=no
13581 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13582 soname_spec='${libname}${release}${major}$shared_ext'
13583 shlibpath_overrides_runpath=yes
13584 shlibpath_var=DYLD_LIBRARY_PATH
13585 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13586
13587 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13588 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13589 ;;
13590
13591dgux*)
13592 version_type=linux
13593 need_lib_prefix=no
13594 need_version=no
13595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13596 soname_spec='${libname}${release}${shared_ext}$major'
13597 shlibpath_var=LD_LIBRARY_PATH
13598 ;;
13599
13600freebsd1*)
13601 dynamic_linker=no
13602 ;;
13603
13604freebsd* | dragonfly*)
13605 # DragonFly does not have aout. When/if they implement a new
13606 # versioning mechanism, adjust this.
13607 if test -x /usr/bin/objformat; then
13608 objformat=`/usr/bin/objformat`
13609 else
13610 case $host_os in
13611 freebsd[123]*) objformat=aout ;;
13612 *) objformat=elf ;;
13613 esac
13614 fi
13615 version_type=freebsd-$objformat
13616 case $version_type in
13617 freebsd-elf*)
13618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13619 need_version=no
13620 need_lib_prefix=no
13621 ;;
13622 freebsd-*)
13623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13624 need_version=yes
13625 ;;
13626 esac
13627 shlibpath_var=LD_LIBRARY_PATH
13628 case $host_os in
13629 freebsd2*)
13630 shlibpath_overrides_runpath=yes
13631 ;;
13632 freebsd3.[01]* | freebsdelf3.[01]*)
13633 shlibpath_overrides_runpath=yes
13634 hardcode_into_libs=yes
13635 ;;
13636 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13637 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13638 shlibpath_overrides_runpath=no
13639 hardcode_into_libs=yes
13640 ;;
13641 *) # from 4.6 on, and DragonFly
13642 shlibpath_overrides_runpath=yes
13643 hardcode_into_libs=yes
13644 ;;
13645 esac
13646 ;;
13647
13648gnu*)
13649 version_type=linux
13650 need_lib_prefix=no
13651 need_version=no
13652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13653 soname_spec='${libname}${release}${shared_ext}$major'
13654 shlibpath_var=LD_LIBRARY_PATH
13655 hardcode_into_libs=yes
13656 ;;
13657
13658hpux9* | hpux10* | hpux11*)
13659 # Give a soname corresponding to the major version so that dld.sl refuses to
13660 # link against other versions.
13661 version_type=sunos
13662 need_lib_prefix=no
13663 need_version=no
13664 case $host_cpu in
13665 ia64*)
13666 shrext_cmds='.so'
13667 hardcode_into_libs=yes
13668 dynamic_linker="$host_os dld.so"
13669 shlibpath_var=LD_LIBRARY_PATH
13670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13672 soname_spec='${libname}${release}${shared_ext}$major'
13673 if test "X$HPUX_IA64_MODE" = X32; then
13674 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13675 else
13676 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13677 fi
13678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13679 ;;
13680 hppa*64*)
13681 shrext_cmds='.sl'
13682 hardcode_into_libs=yes
13683 dynamic_linker="$host_os dld.sl"
13684 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13687 soname_spec='${libname}${release}${shared_ext}$major'
13688 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13690 ;;
13691 *)
13692 shrext_cmds='.sl'
13693 dynamic_linker="$host_os dld.sl"
13694 shlibpath_var=SHLIB_PATH
13695 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13697 soname_spec='${libname}${release}${shared_ext}$major'
13698 ;;
13699 esac
cristy18304f92009-11-22 15:48:26 +000013700 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000013701 postinstall_cmds='chmod 555 $lib'
13702 ;;
13703
13704interix[3-9]*)
13705 version_type=linux
13706 need_lib_prefix=no
13707 need_version=no
13708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13709 soname_spec='${libname}${release}${shared_ext}$major'
13710 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13711 shlibpath_var=LD_LIBRARY_PATH
13712 shlibpath_overrides_runpath=no
13713 hardcode_into_libs=yes
13714 ;;
13715
13716irix5* | irix6* | nonstopux*)
13717 case $host_os in
13718 nonstopux*) version_type=nonstopux ;;
13719 *)
13720 if test "$lt_cv_prog_gnu_ld" = yes; then
13721 version_type=linux
13722 else
13723 version_type=irix
13724 fi ;;
13725 esac
13726 need_lib_prefix=no
13727 need_version=no
13728 soname_spec='${libname}${release}${shared_ext}$major'
13729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13730 case $host_os in
13731 irix5* | nonstopux*)
13732 libsuff= shlibsuff=
13733 ;;
13734 *)
13735 case $LD in # libtool.m4 will add one of these switches to LD
13736 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13737 libsuff= shlibsuff= libmagic=32-bit;;
13738 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13739 libsuff=32 shlibsuff=N32 libmagic=N32;;
13740 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13741 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13742 *) libsuff= shlibsuff= libmagic=never-match;;
13743 esac
13744 ;;
13745 esac
13746 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13747 shlibpath_overrides_runpath=no
13748 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13749 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13750 hardcode_into_libs=yes
13751 ;;
13752
13753# No shared lib support for Linux oldld, aout, or coff.
13754linux*oldld* | linux*aout* | linux*coff*)
13755 dynamic_linker=no
13756 ;;
13757
13758# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000013759linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013760 version_type=linux
13761 need_lib_prefix=no
13762 need_version=no
13763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764 soname_spec='${libname}${release}${shared_ext}$major'
13765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13766 shlibpath_var=LD_LIBRARY_PATH
13767 shlibpath_overrides_runpath=no
13768 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000013769 save_LDFLAGS=$LDFLAGS
13770 save_libdir=$libdir
13771 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13772 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013774/* end confdefs.h. */
13775
13776int
13777main ()
13778{
13779
13780 ;
13781 return 0;
13782}
13783_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013784if ac_fn_c_try_link "$LINENO"; then :
13785 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000013786 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000013787fi
cristy3ed852e2009-09-05 21:47:34 +000013788fi
cristy8b350f62009-11-15 23:12:43 +000013789rm -f core conftest.err conftest.$ac_objext \
13790 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000013791 LDFLAGS=$save_LDFLAGS
13792 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000013793
13794 # This implies no fast_install, which is unacceptable.
13795 # Some rework will be needed to allow for fast_install
13796 # before this can be enabled.
13797 hardcode_into_libs=yes
13798
cristy679ed8e2009-12-05 02:37:41 +000013799 # Add ABI-specific directories to the system library path.
13800 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13801
cristy3ed852e2009-09-05 21:47:34 +000013802 # Append ld.so.conf contents to the search path
13803 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000013804 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' ' '`
cristy679ed8e2009-12-05 02:37:41 +000013805 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000013806 fi
13807
13808 # We used to test for /lib/ld.so.1 and disable shared libraries on
13809 # powerpc, because MkLinux only supported shared libraries with the
13810 # GNU dynamic linker. Since this was broken with cross compilers,
13811 # most powerpc-linux boxes support dynamic linking these days and
13812 # people can always --disable-shared, the test was removed, and we
13813 # assume the GNU/Linux dynamic linker is in use.
13814 dynamic_linker='GNU/Linux ld.so'
13815 ;;
13816
13817netbsd*)
13818 version_type=sunos
13819 need_lib_prefix=no
13820 need_version=no
13821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13824 dynamic_linker='NetBSD (a.out) ld.so'
13825 else
13826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13827 soname_spec='${libname}${release}${shared_ext}$major'
13828 dynamic_linker='NetBSD ld.elf_so'
13829 fi
13830 shlibpath_var=LD_LIBRARY_PATH
13831 shlibpath_overrides_runpath=yes
13832 hardcode_into_libs=yes
13833 ;;
13834
13835newsos6)
13836 version_type=linux
13837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13838 shlibpath_var=LD_LIBRARY_PATH
13839 shlibpath_overrides_runpath=yes
13840 ;;
13841
13842*nto* | *qnx*)
13843 version_type=qnx
13844 need_lib_prefix=no
13845 need_version=no
13846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13847 soname_spec='${libname}${release}${shared_ext}$major'
13848 shlibpath_var=LD_LIBRARY_PATH
13849 shlibpath_overrides_runpath=no
13850 hardcode_into_libs=yes
13851 dynamic_linker='ldqnx.so'
13852 ;;
13853
13854openbsd*)
13855 version_type=sunos
13856 sys_lib_dlsearch_path_spec="/usr/lib"
13857 need_lib_prefix=no
13858 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13859 case $host_os in
13860 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13861 *) need_version=no ;;
13862 esac
13863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13865 shlibpath_var=LD_LIBRARY_PATH
13866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13867 case $host_os in
13868 openbsd2.[89] | openbsd2.[89].*)
13869 shlibpath_overrides_runpath=no
13870 ;;
13871 *)
13872 shlibpath_overrides_runpath=yes
13873 ;;
13874 esac
13875 else
13876 shlibpath_overrides_runpath=yes
13877 fi
13878 ;;
13879
13880os2*)
13881 libname_spec='$name'
13882 shrext_cmds=".dll"
13883 need_lib_prefix=no
13884 library_names_spec='$libname${shared_ext} $libname.a'
13885 dynamic_linker='OS/2 ld.exe'
13886 shlibpath_var=LIBPATH
13887 ;;
13888
13889osf3* | osf4* | osf5*)
13890 version_type=osf
13891 need_lib_prefix=no
13892 need_version=no
13893 soname_spec='${libname}${release}${shared_ext}$major'
13894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13895 shlibpath_var=LD_LIBRARY_PATH
13896 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13897 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13898 ;;
13899
13900rdos*)
13901 dynamic_linker=no
13902 ;;
13903
13904solaris*)
13905 version_type=linux
13906 need_lib_prefix=no
13907 need_version=no
13908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909 soname_spec='${libname}${release}${shared_ext}$major'
13910 shlibpath_var=LD_LIBRARY_PATH
13911 shlibpath_overrides_runpath=yes
13912 hardcode_into_libs=yes
13913 # ldd complains unless libraries are executable
13914 postinstall_cmds='chmod +x $lib'
13915 ;;
13916
13917sunos4*)
13918 version_type=sunos
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13921 shlibpath_var=LD_LIBRARY_PATH
13922 shlibpath_overrides_runpath=yes
13923 if test "$with_gnu_ld" = yes; then
13924 need_lib_prefix=no
13925 fi
13926 need_version=yes
13927 ;;
13928
13929sysv4 | sysv4.3*)
13930 version_type=linux
13931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13932 soname_spec='${libname}${release}${shared_ext}$major'
13933 shlibpath_var=LD_LIBRARY_PATH
13934 case $host_vendor in
13935 sni)
13936 shlibpath_overrides_runpath=no
13937 need_lib_prefix=no
13938 runpath_var=LD_RUN_PATH
13939 ;;
13940 siemens)
13941 need_lib_prefix=no
13942 ;;
13943 motorola)
13944 need_lib_prefix=no
13945 need_version=no
13946 shlibpath_overrides_runpath=no
13947 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13948 ;;
13949 esac
13950 ;;
13951
13952sysv4*MP*)
13953 if test -d /usr/nec ;then
13954 version_type=linux
13955 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13956 soname_spec='$libname${shared_ext}.$major'
13957 shlibpath_var=LD_LIBRARY_PATH
13958 fi
13959 ;;
13960
13961sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13962 version_type=freebsd-elf
13963 need_lib_prefix=no
13964 need_version=no
13965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13966 soname_spec='${libname}${release}${shared_ext}$major'
13967 shlibpath_var=LD_LIBRARY_PATH
13968 shlibpath_overrides_runpath=yes
13969 hardcode_into_libs=yes
13970 if test "$with_gnu_ld" = yes; then
13971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13972 else
13973 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13974 case $host_os in
13975 sco3.2v5*)
13976 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13977 ;;
13978 esac
13979 fi
13980 sys_lib_dlsearch_path_spec='/usr/lib'
13981 ;;
13982
13983tpf*)
13984 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13985 version_type=linux
13986 need_lib_prefix=no
13987 need_version=no
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13989 shlibpath_var=LD_LIBRARY_PATH
13990 shlibpath_overrides_runpath=no
13991 hardcode_into_libs=yes
13992 ;;
13993
13994uts4*)
13995 version_type=linux
13996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13997 soname_spec='${libname}${release}${shared_ext}$major'
13998 shlibpath_var=LD_LIBRARY_PATH
13999 ;;
14000
14001*)
14002 dynamic_linker=no
14003 ;;
14004esac
cristy8b350f62009-11-15 23:12:43 +000014005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000014006$as_echo "$dynamic_linker" >&6; }
14007test "$dynamic_linker" = no && can_build_shared=no
14008
14009variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14010if test "$GCC" = yes; then
14011 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14012fi
14013
14014if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14015 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14016fi
14017if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14018 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14019fi
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
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
cristy8b350f62009-11-15 23:12:43 +000014107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014108$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14109hardcode_action=
14110if test -n "$hardcode_libdir_flag_spec" ||
14111 test -n "$runpath_var" ||
14112 test "X$hardcode_automatic" = "Xyes" ; then
14113
14114 # We can hardcode non-existent directories.
14115 if test "$hardcode_direct" != no &&
14116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14117 # have to relink, otherwise we might link with an installed library
14118 # when we should be linking with a yet-to-be-installed one
14119 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14120 test "$hardcode_minus_L" != no; then
14121 # Linking always hardcodes the temporary library directory.
14122 hardcode_action=relink
14123 else
14124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14125 hardcode_action=immediate
14126 fi
14127else
14128 # We cannot hardcode anything, or else we can only hardcode existing
14129 # directories.
14130 hardcode_action=unsupported
14131fi
cristy8b350f62009-11-15 23:12:43 +000014132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000014133$as_echo "$hardcode_action" >&6; }
14134
14135if test "$hardcode_action" = relink ||
14136 test "$inherit_rpath" = yes; then
14137 # Fast installation is not supported
14138 enable_fast_install=no
14139elif test "$shlibpath_overrides_runpath" = yes ||
14140 test "$enable_shared" = no; then
14141 # Fast installation is not necessary
14142 enable_fast_install=needless
14143fi
14144
14145
14146
14147
14148
14149
14150 if test "x$enable_dlopen" != xyes; then
14151 enable_dlopen=unknown
14152 enable_dlopen_self=unknown
14153 enable_dlopen_self_static=unknown
14154else
14155 lt_cv_dlopen=no
14156 lt_cv_dlopen_libs=
14157
14158 case $host_os in
14159 beos*)
14160 lt_cv_dlopen="load_add_on"
14161 lt_cv_dlopen_libs=
14162 lt_cv_dlopen_self=yes
14163 ;;
14164
14165 mingw* | pw32* | cegcc*)
14166 lt_cv_dlopen="LoadLibrary"
14167 lt_cv_dlopen_libs=
14168 ;;
14169
14170 cygwin*)
14171 lt_cv_dlopen="dlopen"
14172 lt_cv_dlopen_libs=
14173 ;;
14174
14175 darwin*)
14176 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000014177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014178$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014179if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014180 $as_echo_n "(cached) " >&6
14181else
14182 ac_check_lib_save_LIBS=$LIBS
14183LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014185/* end confdefs.h. */
14186
14187/* Override any GCC internal prototype to avoid an error.
14188 Use char because int might match the return type of a GCC
14189 builtin and then its argument prototype would still apply. */
14190#ifdef __cplusplus
14191extern "C"
14192#endif
14193char dlopen ();
14194int
14195main ()
14196{
14197return dlopen ();
14198 ;
14199 return 0;
14200}
14201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014202if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014203 ac_cv_lib_dl_dlopen=yes
14204else
cristy8b350f62009-11-15 23:12:43 +000014205 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014206fi
cristy8b350f62009-11-15 23:12:43 +000014207rm -f core conftest.err conftest.$ac_objext \
14208 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014209LIBS=$ac_check_lib_save_LIBS
14210fi
cristy8b350f62009-11-15 23:12:43 +000014211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014212$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014213if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014214 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14215else
14216
14217 lt_cv_dlopen="dyld"
14218 lt_cv_dlopen_libs=
14219 lt_cv_dlopen_self=yes
14220
14221fi
14222
14223 ;;
14224
14225 *)
cristy8b350f62009-11-15 23:12:43 +000014226 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14227if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014228 lt_cv_dlopen="shl_load"
14229else
cristy8b350f62009-11-15 23:12:43 +000014230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014231$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014232if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014233 $as_echo_n "(cached) " >&6
14234else
14235 ac_check_lib_save_LIBS=$LIBS
14236LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014238/* end confdefs.h. */
14239
14240/* Override any GCC internal prototype to avoid an error.
14241 Use char because int might match the return type of a GCC
14242 builtin and then its argument prototype would still apply. */
14243#ifdef __cplusplus
14244extern "C"
14245#endif
14246char shl_load ();
14247int
14248main ()
14249{
14250return shl_load ();
14251 ;
14252 return 0;
14253}
14254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014255if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014256 ac_cv_lib_dld_shl_load=yes
14257else
cristy8b350f62009-11-15 23:12:43 +000014258 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000014259fi
cristy8b350f62009-11-15 23:12:43 +000014260rm -f core conftest.err conftest.$ac_objext \
14261 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014262LIBS=$ac_check_lib_save_LIBS
14263fi
cristy8b350f62009-11-15 23:12:43 +000014264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000014265$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014266if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014267 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14268else
cristy8b350f62009-11-15 23:12:43 +000014269 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14270if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014271 lt_cv_dlopen="dlopen"
14272else
cristy8b350f62009-11-15 23:12:43 +000014273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014274$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014275if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014276 $as_echo_n "(cached) " >&6
14277else
14278 ac_check_lib_save_LIBS=$LIBS
14279LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014281/* end confdefs.h. */
14282
14283/* Override any GCC internal prototype to avoid an error.
14284 Use char because int might match the return type of a GCC
14285 builtin and then its argument prototype would still apply. */
14286#ifdef __cplusplus
14287extern "C"
14288#endif
14289char dlopen ();
14290int
14291main ()
14292{
14293return dlopen ();
14294 ;
14295 return 0;
14296}
14297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014298if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014299 ac_cv_lib_dl_dlopen=yes
14300else
cristy8b350f62009-11-15 23:12:43 +000014301 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014302fi
cristy8b350f62009-11-15 23:12:43 +000014303rm -f core conftest.err conftest.$ac_objext \
14304 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014305LIBS=$ac_check_lib_save_LIBS
14306fi
cristy8b350f62009-11-15 23:12:43 +000014307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014308$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014309if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14311else
cristy8b350f62009-11-15 23:12:43 +000014312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014313$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014314if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014315 $as_echo_n "(cached) " >&6
14316else
14317 ac_check_lib_save_LIBS=$LIBS
14318LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014320/* end confdefs.h. */
14321
14322/* Override any GCC internal prototype to avoid an error.
14323 Use char because int might match the return type of a GCC
14324 builtin and then its argument prototype would still apply. */
14325#ifdef __cplusplus
14326extern "C"
14327#endif
14328char dlopen ();
14329int
14330main ()
14331{
14332return dlopen ();
14333 ;
14334 return 0;
14335}
14336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014337if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014338 ac_cv_lib_svld_dlopen=yes
14339else
cristy8b350f62009-11-15 23:12:43 +000014340 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014341fi
cristy8b350f62009-11-15 23:12:43 +000014342rm -f core conftest.err conftest.$ac_objext \
14343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014344LIBS=$ac_check_lib_save_LIBS
14345fi
cristy8b350f62009-11-15 23:12:43 +000014346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014347$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014348if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14350else
cristy8b350f62009-11-15 23:12:43 +000014351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014352$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014353if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014354 $as_echo_n "(cached) " >&6
14355else
14356 ac_check_lib_save_LIBS=$LIBS
14357LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014359/* end confdefs.h. */
14360
14361/* Override any GCC internal prototype to avoid an error.
14362 Use char because int might match the return type of a GCC
14363 builtin and then its argument prototype would still apply. */
14364#ifdef __cplusplus
14365extern "C"
14366#endif
14367char dld_link ();
14368int
14369main ()
14370{
14371return dld_link ();
14372 ;
14373 return 0;
14374}
14375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014376if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014377 ac_cv_lib_dld_dld_link=yes
14378else
cristy8b350f62009-11-15 23:12:43 +000014379 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000014380fi
cristy8b350f62009-11-15 23:12:43 +000014381rm -f core conftest.err conftest.$ac_objext \
14382 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014383LIBS=$ac_check_lib_save_LIBS
14384fi
cristy8b350f62009-11-15 23:12:43 +000014385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000014386$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014387if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014388 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14389fi
14390
14391
14392fi
14393
14394
14395fi
14396
14397
14398fi
14399
14400
14401fi
14402
14403
14404fi
14405
14406 ;;
14407 esac
14408
14409 if test "x$lt_cv_dlopen" != xno; then
14410 enable_dlopen=yes
14411 else
14412 enable_dlopen=no
14413 fi
14414
14415 case $lt_cv_dlopen in
14416 dlopen)
14417 save_CPPFLAGS="$CPPFLAGS"
14418 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14419
14420 save_LDFLAGS="$LDFLAGS"
14421 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14422
14423 save_LIBS="$LIBS"
14424 LIBS="$lt_cv_dlopen_libs $LIBS"
14425
cristy8b350f62009-11-15 23:12:43 +000014426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014427$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014428if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014429 $as_echo_n "(cached) " >&6
14430else
14431 if test "$cross_compiling" = yes; then :
14432 lt_cv_dlopen_self=cross
14433else
14434 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14435 lt_status=$lt_dlunknown
14436 cat > conftest.$ac_ext <<_LT_EOF
cristy47fa4622009-12-28 01:52:31 +000014437#line 14437 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014438#include "confdefs.h"
14439
14440#if HAVE_DLFCN_H
14441#include <dlfcn.h>
14442#endif
14443
14444#include <stdio.h>
14445
14446#ifdef RTLD_GLOBAL
14447# define LT_DLGLOBAL RTLD_GLOBAL
14448#else
14449# ifdef DL_GLOBAL
14450# define LT_DLGLOBAL DL_GLOBAL
14451# else
14452# define LT_DLGLOBAL 0
14453# endif
14454#endif
14455
14456/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14457 find out it does not work in some platform. */
14458#ifndef LT_DLLAZY_OR_NOW
14459# ifdef RTLD_LAZY
14460# define LT_DLLAZY_OR_NOW RTLD_LAZY
14461# else
14462# ifdef DL_LAZY
14463# define LT_DLLAZY_OR_NOW DL_LAZY
14464# else
14465# ifdef RTLD_NOW
14466# define LT_DLLAZY_OR_NOW RTLD_NOW
14467# else
14468# ifdef DL_NOW
14469# define LT_DLLAZY_OR_NOW DL_NOW
14470# else
14471# define LT_DLLAZY_OR_NOW 0
14472# endif
14473# endif
14474# endif
14475# endif
14476#endif
14477
cristy18304f92009-11-22 15:48:26 +000014478void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000014479int main ()
14480{
14481 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14482 int status = $lt_dlunknown;
14483
14484 if (self)
14485 {
14486 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000014487 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000014488 /* dlclose (self); */
14489 }
14490 else
14491 puts (dlerror ());
14492
14493 return status;
14494}
14495_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014497 (eval $ac_link) 2>&5
14498 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14500 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014501 (./conftest; exit; ) >&5 2>/dev/null
14502 lt_status=$?
14503 case x$lt_status in
14504 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14505 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14506 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14507 esac
14508 else :
14509 # compilation failed
14510 lt_cv_dlopen_self=no
14511 fi
14512fi
14513rm -fr conftest*
14514
14515
14516fi
cristy8b350f62009-11-15 23:12:43 +000014517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000014518$as_echo "$lt_cv_dlopen_self" >&6; }
14519
14520 if test "x$lt_cv_dlopen_self" = xyes; then
14521 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000014522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014523$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014524if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014525 $as_echo_n "(cached) " >&6
14526else
14527 if test "$cross_compiling" = yes; then :
14528 lt_cv_dlopen_self_static=cross
14529else
14530 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14531 lt_status=$lt_dlunknown
14532 cat > conftest.$ac_ext <<_LT_EOF
cristy47fa4622009-12-28 01:52:31 +000014533#line 14533 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014534#include "confdefs.h"
14535
14536#if HAVE_DLFCN_H
14537#include <dlfcn.h>
14538#endif
14539
14540#include <stdio.h>
14541
14542#ifdef RTLD_GLOBAL
14543# define LT_DLGLOBAL RTLD_GLOBAL
14544#else
14545# ifdef DL_GLOBAL
14546# define LT_DLGLOBAL DL_GLOBAL
14547# else
14548# define LT_DLGLOBAL 0
14549# endif
14550#endif
14551
14552/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14553 find out it does not work in some platform. */
14554#ifndef LT_DLLAZY_OR_NOW
14555# ifdef RTLD_LAZY
14556# define LT_DLLAZY_OR_NOW RTLD_LAZY
14557# else
14558# ifdef DL_LAZY
14559# define LT_DLLAZY_OR_NOW DL_LAZY
14560# else
14561# ifdef RTLD_NOW
14562# define LT_DLLAZY_OR_NOW RTLD_NOW
14563# else
14564# ifdef DL_NOW
14565# define LT_DLLAZY_OR_NOW DL_NOW
14566# else
14567# define LT_DLLAZY_OR_NOW 0
14568# endif
14569# endif
14570# endif
14571# endif
14572#endif
14573
cristy18304f92009-11-22 15:48:26 +000014574void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000014575int main ()
14576{
14577 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14578 int status = $lt_dlunknown;
14579
14580 if (self)
14581 {
14582 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000014583 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000014584 /* dlclose (self); */
14585 }
14586 else
14587 puts (dlerror ());
14588
14589 return status;
14590}
14591_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014593 (eval $ac_link) 2>&5
14594 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14596 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014597 (./conftest; exit; ) >&5 2>/dev/null
14598 lt_status=$?
14599 case x$lt_status in
14600 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14601 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14602 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14603 esac
14604 else :
14605 # compilation failed
14606 lt_cv_dlopen_self_static=no
14607 fi
14608fi
14609rm -fr conftest*
14610
14611
14612fi
cristy8b350f62009-11-15 23:12:43 +000014613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014614$as_echo "$lt_cv_dlopen_self_static" >&6; }
14615 fi
14616
14617 CPPFLAGS="$save_CPPFLAGS"
14618 LDFLAGS="$save_LDFLAGS"
14619 LIBS="$save_LIBS"
14620 ;;
14621 esac
14622
14623 case $lt_cv_dlopen_self in
14624 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14625 *) enable_dlopen_self=unknown ;;
14626 esac
14627
14628 case $lt_cv_dlopen_self_static in
14629 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14630 *) enable_dlopen_self_static=unknown ;;
14631 esac
14632fi
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650striplib=
14651old_striplib=
cristy8b350f62009-11-15 23:12:43 +000014652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000014653$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14654if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14655 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14656 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000014657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014658$as_echo "yes" >&6; }
14659else
14660# FIXME - insert some real tests, host_os isn't really good enough
14661 case $host_os in
14662 darwin*)
14663 if test -n "$STRIP" ; then
14664 striplib="$STRIP -x"
14665 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000014666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014667$as_echo "yes" >&6; }
14668 else
cristy8b350f62009-11-15 23:12:43 +000014669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014670$as_echo "no" >&6; }
14671 fi
14672 ;;
14673 *)
cristy8b350f62009-11-15 23:12:43 +000014674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014675$as_echo "no" >&6; }
14676 ;;
14677 esac
14678fi
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000014692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014693$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014695$as_echo "$can_build_shared" >&6; }
14696
cristy8b350f62009-11-15 23:12:43 +000014697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014698$as_echo_n "checking whether to build shared libraries... " >&6; }
14699 test "$can_build_shared" = "no" && enable_shared=no
14700
14701 # On AIX, shared libraries and static libraries use the same namespace, and
14702 # are all built from PIC.
14703 case $host_os in
14704 aix3*)
14705 test "$enable_shared" = yes && enable_static=no
14706 if test -n "$RANLIB"; then
14707 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14708 postinstall_cmds='$RANLIB $lib'
14709 fi
14710 ;;
14711
14712 aix[4-9]*)
14713 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14714 test "$enable_shared" = yes && enable_static=no
14715 fi
14716 ;;
14717 esac
cristy8b350f62009-11-15 23:12:43 +000014718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014719$as_echo "$enable_shared" >&6; }
14720
cristy8b350f62009-11-15 23:12:43 +000014721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014722$as_echo_n "checking whether to build static libraries... " >&6; }
14723 # Make sure either enable_shared or enable_static is yes.
14724 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000014725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014726$as_echo "$enable_static" >&6; }
14727
14728
14729
14730
14731fi
14732ac_ext=c
14733ac_cpp='$CPP $CPPFLAGS'
14734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14736ac_compiler_gnu=$ac_cv_c_compiler_gnu
14737
14738CC="$lt_save_CC"
14739
14740
14741ac_ext=cpp
14742ac_cpp='$CXXCPP $CPPFLAGS'
14743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14746
14747archive_cmds_need_lc_CXX=no
14748allow_undefined_flag_CXX=
14749always_export_symbols_CXX=no
14750archive_expsym_cmds_CXX=
14751compiler_needs_object_CXX=no
14752export_dynamic_flag_spec_CXX=
14753hardcode_direct_CXX=no
14754hardcode_direct_absolute_CXX=no
14755hardcode_libdir_flag_spec_CXX=
14756hardcode_libdir_flag_spec_ld_CXX=
14757hardcode_libdir_separator_CXX=
14758hardcode_minus_L_CXX=no
14759hardcode_shlibpath_var_CXX=unsupported
14760hardcode_automatic_CXX=no
14761inherit_rpath_CXX=no
14762module_cmds_CXX=
14763module_expsym_cmds_CXX=
14764link_all_deplibs_CXX=unknown
14765old_archive_cmds_CXX=$old_archive_cmds
14766no_undefined_flag_CXX=
14767whole_archive_flag_spec_CXX=
14768enable_shared_with_static_runtimes_CXX=no
14769
14770# Source file extension for C++ test sources.
14771ac_ext=cpp
14772
14773# Object file extension for compiled C++ test sources.
14774objext=o
14775objext_CXX=$objext
14776
14777# No sense in running all these tests if we already determined that
14778# the CXX compiler isn't working. Some variables (like enable_shared)
14779# are currently assumed to apply to all compilers on this platform,
14780# and will be corrupted by setting them based on a non-working compiler.
14781if test "$_lt_caught_CXX_error" != yes; then
14782 # Code to be used in simple compile tests
14783 lt_simple_compile_test_code="int some_variable = 0;"
14784
14785 # Code to be used in simple link tests
14786 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14787
14788 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14789
14790
14791
14792
14793
14794
14795# If no C compiler was specified, use CC.
14796LTCC=${LTCC-"$CC"}
14797
14798# If no C compiler flags were specified, use CFLAGS.
14799LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14800
14801# Allow CC to be a program name with arguments.
14802compiler=$CC
14803
14804
14805 # save warnings/boilerplate of simple test code
14806 ac_outfile=conftest.$ac_objext
14807echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14808eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14809_lt_compiler_boilerplate=`cat conftest.err`
14810$RM conftest*
14811
14812 ac_outfile=conftest.$ac_objext
14813echo "$lt_simple_link_test_code" >conftest.$ac_ext
14814eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14815_lt_linker_boilerplate=`cat conftest.err`
14816$RM -r conftest*
14817
14818
14819 # Allow CC to be a program name with arguments.
14820 lt_save_CC=$CC
14821 lt_save_LD=$LD
14822 lt_save_GCC=$GCC
14823 GCC=$GXX
14824 lt_save_with_gnu_ld=$with_gnu_ld
14825 lt_save_path_LD=$lt_cv_path_LD
14826 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14827 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14828 else
14829 $as_unset lt_cv_prog_gnu_ld
14830 fi
14831 if test -n "${lt_cv_path_LDCXX+set}"; then
14832 lt_cv_path_LD=$lt_cv_path_LDCXX
14833 else
14834 $as_unset lt_cv_path_LD
14835 fi
14836 test -z "${LDCXX+set}" || LD=$LDCXX
14837 CC=${CXX-"c++"}
14838 compiler=$CC
14839 compiler_CXX=$CC
14840 for cc_temp in $compiler""; do
14841 case $cc_temp in
14842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14844 \-*) ;;
14845 *) break;;
14846 esac
14847done
cristy18304f92009-11-22 15:48:26 +000014848cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000014849
14850
14851 if test -n "$compiler"; then
14852 # We don't want -fno-exception when compiling C++ code, so set the
14853 # no_builtin_flag separately
14854 if test "$GXX" = yes; then
14855 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14856 else
14857 lt_prog_compiler_no_builtin_flag_CXX=
14858 fi
14859
14860 if test "$GXX" = yes; then
14861 # Set up default GNU C++ configuration
14862
14863
14864
14865# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000014866if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014867 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14868else
14869 with_gnu_ld=no
14870fi
14871
14872ac_prog=ld
14873if test "$GCC" = yes; then
14874 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000014875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000014876$as_echo_n "checking for ld used by $CC... " >&6; }
14877 case $host in
14878 *-*-mingw*)
14879 # gcc leaves a trailing carriage return which upsets mingw
14880 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14881 *)
14882 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14883 esac
14884 case $ac_prog in
14885 # Accept absolute paths.
14886 [\\/]* | ?:[\\/]*)
14887 re_direlt='/[^/][^/]*/\.\./'
14888 # Canonicalize the pathname of ld
14889 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14890 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14891 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14892 done
14893 test -z "$LD" && LD="$ac_prog"
14894 ;;
14895 "")
14896 # If it fails, then pretend we aren't using GCC.
14897 ac_prog=ld
14898 ;;
14899 *)
14900 # If it is relative, then search for the first ld in PATH.
14901 with_gnu_ld=unknown
14902 ;;
14903 esac
14904elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000014905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014906$as_echo_n "checking for GNU ld... " >&6; }
14907else
cristy8b350f62009-11-15 23:12:43 +000014908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014909$as_echo_n "checking for non-GNU ld... " >&6; }
14910fi
cristy8b350f62009-11-15 23:12:43 +000014911if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014912 $as_echo_n "(cached) " >&6
14913else
14914 if test -z "$LD"; then
14915 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14916 for ac_dir in $PATH; do
14917 IFS="$lt_save_ifs"
14918 test -z "$ac_dir" && ac_dir=.
14919 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14920 lt_cv_path_LD="$ac_dir/$ac_prog"
14921 # Check to see if the program is GNU ld. I'd rather use --version,
14922 # but apparently some variants of GNU ld only accept -v.
14923 # Break only if it was the GNU/non-GNU ld that we prefer.
14924 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14925 *GNU* | *'with BFD'*)
14926 test "$with_gnu_ld" != no && break
14927 ;;
14928 *)
14929 test "$with_gnu_ld" != yes && break
14930 ;;
14931 esac
14932 fi
14933 done
14934 IFS="$lt_save_ifs"
14935else
14936 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14937fi
14938fi
14939
14940LD="$lt_cv_path_LD"
14941if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000014942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000014943$as_echo "$LD" >&6; }
14944else
cristy8b350f62009-11-15 23:12:43 +000014945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014946$as_echo "no" >&6; }
14947fi
cristy8b350f62009-11-15 23:12:43 +000014948test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014950$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014951if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014952 $as_echo_n "(cached) " >&6
14953else
14954 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14955case `$LD -v 2>&1 </dev/null` in
14956*GNU* | *'with BFD'*)
14957 lt_cv_prog_gnu_ld=yes
14958 ;;
14959*)
14960 lt_cv_prog_gnu_ld=no
14961 ;;
14962esac
14963fi
cristy8b350f62009-11-15 23:12:43 +000014964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014965$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14966with_gnu_ld=$lt_cv_prog_gnu_ld
14967
14968
14969
14970
14971
14972
14973
14974 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14975 # archiving commands below assume that GNU ld is being used.
14976 if test "$with_gnu_ld" = yes; then
14977 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14978 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'
14979
14980 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14982
14983 # If archive_cmds runs LD, not CC, wlarc should be empty
14984 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14985 # investigate it a little bit more. (MM)
14986 wlarc='${wl}'
14987
14988 # ancient GNU ld didn't support --whole-archive et. al.
14989 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14990 $GREP 'no-whole-archive' > /dev/null; then
14991 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14992 else
14993 whole_archive_flag_spec_CXX=
14994 fi
14995 else
14996 with_gnu_ld=no
14997 wlarc=
14998
14999 # A generic and very simple default shared library creation
15000 # command for GNU C++ for the case where it uses the native
15001 # linker, instead of GNU ld. If possible, this setting should
15002 # overridden to take advantage of the native linker features on
15003 # the platform it is being used on.
15004 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15005 fi
15006
15007 # Commands to make compiler produce verbose output that lists
15008 # what "hidden" libraries, object files and flags are used when
15009 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015010 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015011
15012 else
15013 GXX=no
15014 with_gnu_ld=no
15015 wlarc=
15016 fi
15017
15018 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000015019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015020$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15021 ld_shlibs_CXX=yes
15022 case $host_os in
15023 aix3*)
15024 # FIXME: insert proper C++ library support
15025 ld_shlibs_CXX=no
15026 ;;
15027 aix[4-9]*)
15028 if test "$host_cpu" = ia64; then
15029 # On IA64, the linker does run time linking by default, so we don't
15030 # have to do anything special.
15031 aix_use_runtimelinking=no
15032 exp_sym_flag='-Bexport'
15033 no_entry_flag=""
15034 else
15035 aix_use_runtimelinking=no
15036
15037 # Test if we are trying to use run time linking or normal
15038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15039 # need to do runtime linking.
15040 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15041 for ld_flag in $LDFLAGS; do
15042 case $ld_flag in
15043 *-brtl*)
15044 aix_use_runtimelinking=yes
15045 break
15046 ;;
15047 esac
15048 done
15049 ;;
15050 esac
15051
15052 exp_sym_flag='-bexport'
15053 no_entry_flag='-bnoentry'
15054 fi
15055
15056 # When large executables or shared objects are built, AIX ld can
15057 # have problems creating the table of contents. If linking a library
15058 # or program results in "error TOC overflow" add -mminimal-toc to
15059 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15060 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15061
15062 archive_cmds_CXX=''
15063 hardcode_direct_CXX=yes
15064 hardcode_direct_absolute_CXX=yes
15065 hardcode_libdir_separator_CXX=':'
15066 link_all_deplibs_CXX=yes
15067 file_list_spec_CXX='${wl}-f,'
15068
15069 if test "$GXX" = yes; then
15070 case $host_os in aix4.[012]|aix4.[012].*)
15071 # We only want to do this on AIX 4.2 and lower, the check
15072 # below for broken collect2 doesn't work under 4.3+
15073 collect2name=`${CC} -print-prog-name=collect2`
15074 if test -f "$collect2name" &&
15075 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15076 then
15077 # We have reworked collect2
15078 :
15079 else
15080 # We have old collect2
15081 hardcode_direct_CXX=unsupported
15082 # It fails to find uninstalled libraries when the uninstalled
15083 # path is not listed in the libpath. Setting hardcode_minus_L
15084 # to unsupported forces relinking
15085 hardcode_minus_L_CXX=yes
15086 hardcode_libdir_flag_spec_CXX='-L$libdir'
15087 hardcode_libdir_separator_CXX=
15088 fi
15089 esac
15090 shared_flag='-shared'
15091 if test "$aix_use_runtimelinking" = yes; then
15092 shared_flag="$shared_flag "'${wl}-G'
15093 fi
15094 else
15095 # not using gcc
15096 if test "$host_cpu" = ia64; then
15097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15098 # chokes on -Wl,-G. The following line is correct:
15099 shared_flag='-G'
15100 else
15101 if test "$aix_use_runtimelinking" = yes; then
15102 shared_flag='${wl}-G'
15103 else
15104 shared_flag='${wl}-bM:SRE'
15105 fi
15106 fi
15107 fi
15108
15109 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15110 # It seems that -bexpall does not export symbols beginning with
15111 # underscore (_), so it is better to generate a list of symbols to
15112 # export.
15113 always_export_symbols_CXX=yes
15114 if test "$aix_use_runtimelinking" = yes; then
15115 # Warning - without using the other runtime loading flags (-brtl),
15116 # -berok will link without error, but may produce a broken library.
15117 allow_undefined_flag_CXX='-berok'
15118 # Determine the default libpath from the value encoded in an empty
15119 # executable.
cristy8b350f62009-11-15 23:12:43 +000015120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015121/* end confdefs.h. */
15122
15123int
15124main ()
15125{
15126
15127 ;
15128 return 0;
15129}
15130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015131if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015132
15133lt_aix_libpath_sed='
15134 /Import File Strings/,/^$/ {
15135 /^0/ {
15136 s/^0 *\(.*\)$/\1/
15137 p
15138 }
15139 }'
15140aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15141# Check for a 64-bit object if we didn't find anything.
15142if test -z "$aix_libpath"; then
15143 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15144fi
cristy3ed852e2009-09-05 21:47:34 +000015145fi
cristy8b350f62009-11-15 23:12:43 +000015146rm -f core conftest.err conftest.$ac_objext \
15147 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015148if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15149
15150 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15151
cristy18304f92009-11-22 15:48:26 +000015152 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 +000015153 else
15154 if test "$host_cpu" = ia64; then
15155 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15156 allow_undefined_flag_CXX="-z nodefs"
15157 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"
15158 else
15159 # Determine the default libpath from the value encoded in an
15160 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000015161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015162/* end confdefs.h. */
15163
15164int
15165main ()
15166{
15167
15168 ;
15169 return 0;
15170}
15171_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015172if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015173
15174lt_aix_libpath_sed='
15175 /Import File Strings/,/^$/ {
15176 /^0/ {
15177 s/^0 *\(.*\)$/\1/
15178 p
15179 }
15180 }'
15181aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15182# Check for a 64-bit object if we didn't find anything.
15183if test -z "$aix_libpath"; then
15184 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15185fi
cristy3ed852e2009-09-05 21:47:34 +000015186fi
cristy8b350f62009-11-15 23:12:43 +000015187rm -f core conftest.err conftest.$ac_objext \
15188 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015189if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15190
15191 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15192 # Warning - without using the other run time loading flags,
15193 # -berok will link without error, but may produce a broken library.
15194 no_undefined_flag_CXX=' ${wl}-bernotok'
15195 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000015196 # Exported symbols can be pulled into shared objects from archives
15197 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000015198 archive_cmds_need_lc_CXX=yes
15199 # This is similar to how AIX traditionally builds its shared
15200 # libraries.
15201 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'
15202 fi
15203 fi
15204 ;;
15205
15206 beos*)
15207 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15208 allow_undefined_flag_CXX=unsupported
15209 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15210 # support --undefined. This deserves some investigation. FIXME
15211 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15212 else
15213 ld_shlibs_CXX=no
15214 fi
15215 ;;
15216
15217 chorus*)
15218 case $cc_basename in
15219 *)
15220 # FIXME: insert proper C++ library support
15221 ld_shlibs_CXX=no
15222 ;;
15223 esac
15224 ;;
15225
15226 cygwin* | mingw* | pw32* | cegcc*)
15227 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15228 # as there is no search path for DLLs.
15229 hardcode_libdir_flag_spec_CXX='-L$libdir'
15230 allow_undefined_flag_CXX=unsupported
15231 always_export_symbols_CXX=no
15232 enable_shared_with_static_runtimes_CXX=yes
15233
15234 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15235 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'
15236 # If the export-symbols file already is a .def file (1st line
15237 # is EXPORTS), use it as is; otherwise, prepend...
15238 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15239 cp $export_symbols $output_objdir/$soname.def;
15240 else
15241 echo EXPORTS > $output_objdir/$soname.def;
15242 cat $export_symbols >> $output_objdir/$soname.def;
15243 fi~
15244 $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'
15245 else
15246 ld_shlibs_CXX=no
15247 fi
15248 ;;
15249 darwin* | rhapsody*)
15250
15251
15252 archive_cmds_need_lc_CXX=no
15253 hardcode_direct_CXX=no
15254 hardcode_automatic_CXX=yes
15255 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000015256 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000015257 link_all_deplibs_CXX=yes
15258 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15259 case $cc_basename in
15260 ifort*) _lt_dar_can_shared=yes ;;
15261 *) _lt_dar_can_shared=$GCC ;;
15262 esac
15263 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000015264 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015265 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}"
15266 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15267 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}"
15268 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}"
15269 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15270 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}"
15271 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}"
15272 fi
15273
15274 else
15275 ld_shlibs_CXX=no
15276 fi
15277
15278 ;;
15279
15280 dgux*)
15281 case $cc_basename in
15282 ec++*)
15283 # FIXME: insert proper C++ library support
15284 ld_shlibs_CXX=no
15285 ;;
15286 ghcx*)
15287 # Green Hills C++ Compiler
15288 # FIXME: insert proper C++ library support
15289 ld_shlibs_CXX=no
15290 ;;
15291 *)
15292 # FIXME: insert proper C++ library support
15293 ld_shlibs_CXX=no
15294 ;;
15295 esac
15296 ;;
15297
15298 freebsd[12]*)
15299 # C++ shared libraries reported to be fairly broken before
15300 # switch to ELF
15301 ld_shlibs_CXX=no
15302 ;;
15303
15304 freebsd-elf*)
15305 archive_cmds_need_lc_CXX=no
15306 ;;
15307
15308 freebsd* | dragonfly*)
15309 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15310 # conventions
15311 ld_shlibs_CXX=yes
15312 ;;
15313
15314 gnu*)
15315 ;;
15316
15317 hpux9*)
15318 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15319 hardcode_libdir_separator_CXX=:
15320 export_dynamic_flag_spec_CXX='${wl}-E'
15321 hardcode_direct_CXX=yes
15322 hardcode_minus_L_CXX=yes # Not in the search PATH,
15323 # but as the default
15324 # location of the library.
15325
15326 case $cc_basename in
15327 CC*)
15328 # FIXME: insert proper C++ library support
15329 ld_shlibs_CXX=no
15330 ;;
15331 aCC*)
15332 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'
15333 # Commands to make compiler produce verbose output that lists
15334 # what "hidden" libraries, object files and flags are used when
15335 # linking a shared library.
15336 #
15337 # There doesn't appear to be a way to prevent this compiler from
15338 # explicitly linking system object files so we need to strip them
15339 # from the output so that they don't get included in the library
15340 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015341 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 +000015342 ;;
15343 *)
15344 if test "$GXX" = yes; then
15345 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'
15346 else
15347 # FIXME: insert proper C++ library support
15348 ld_shlibs_CXX=no
15349 fi
15350 ;;
15351 esac
15352 ;;
15353
15354 hpux10*|hpux11*)
15355 if test $with_gnu_ld = no; then
15356 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15357 hardcode_libdir_separator_CXX=:
15358
15359 case $host_cpu in
15360 hppa*64*|ia64*)
15361 ;;
15362 *)
15363 export_dynamic_flag_spec_CXX='${wl}-E'
15364 ;;
15365 esac
15366 fi
15367 case $host_cpu in
15368 hppa*64*|ia64*)
15369 hardcode_direct_CXX=no
15370 hardcode_shlibpath_var_CXX=no
15371 ;;
15372 *)
15373 hardcode_direct_CXX=yes
15374 hardcode_direct_absolute_CXX=yes
15375 hardcode_minus_L_CXX=yes # Not in the search PATH,
15376 # but as the default
15377 # location of the library.
15378 ;;
15379 esac
15380
15381 case $cc_basename in
15382 CC*)
15383 # FIXME: insert proper C++ library support
15384 ld_shlibs_CXX=no
15385 ;;
15386 aCC*)
15387 case $host_cpu in
15388 hppa*64*)
15389 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15390 ;;
15391 ia64*)
15392 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15393 ;;
15394 *)
15395 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15396 ;;
15397 esac
15398 # Commands to make compiler produce verbose output that lists
15399 # what "hidden" libraries, object files and flags are used when
15400 # linking a shared library.
15401 #
15402 # There doesn't appear to be a way to prevent this compiler from
15403 # explicitly linking system object files so we need to strip them
15404 # from the output so that they don't get included in the library
15405 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015406 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 +000015407 ;;
15408 *)
15409 if test "$GXX" = yes; then
15410 if test $with_gnu_ld = no; then
15411 case $host_cpu in
15412 hppa*64*)
15413 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15414 ;;
15415 ia64*)
15416 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15417 ;;
15418 *)
15419 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'
15420 ;;
15421 esac
15422 fi
15423 else
15424 # FIXME: insert proper C++ library support
15425 ld_shlibs_CXX=no
15426 fi
15427 ;;
15428 esac
15429 ;;
15430
15431 interix[3-9]*)
15432 hardcode_direct_CXX=no
15433 hardcode_shlibpath_var_CXX=no
15434 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15435 export_dynamic_flag_spec_CXX='${wl}-E'
15436 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15437 # Instead, shared libraries are loaded at an image base (0x10000000 by
15438 # default) and relocated if they conflict, which is a slow very memory
15439 # consuming and fragmenting process. To avoid this, we pick a random,
15440 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15441 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15442 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'
15443 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'
15444 ;;
15445 irix5* | irix6*)
15446 case $cc_basename in
15447 CC*)
15448 # SGI C++
cristy18304f92009-11-22 15:48:26 +000015449 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 +000015450
15451 # Archives containing C++ object files must be created using
15452 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15453 # necessary to make sure instantiated templates are included
15454 # in the archive.
15455 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15456 ;;
15457 *)
15458 if test "$GXX" = yes; then
15459 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000015460 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 +000015461 else
cristy18304f92009-11-22 15:48:26 +000015462 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 +000015463 fi
15464 fi
15465 link_all_deplibs_CXX=yes
15466 ;;
15467 esac
15468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15469 hardcode_libdir_separator_CXX=:
15470 inherit_rpath_CXX=yes
15471 ;;
15472
cristy18304f92009-11-22 15:48:26 +000015473 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015474 case $cc_basename in
15475 KCC*)
15476 # Kuck and Associates, Inc. (KAI) C++ Compiler
15477
15478 # KCC will only create a shared library if the output file
15479 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15480 # to its proper name (with version) after linking.
15481 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'
15482 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'
15483 # Commands to make compiler produce verbose output that lists
15484 # what "hidden" libraries, object files and flags are used when
15485 # linking a shared library.
15486 #
15487 # There doesn't appear to be a way to prevent this compiler from
15488 # explicitly linking system object files so we need to strip them
15489 # from the output so that they don't get included in the library
15490 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015491 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 +000015492
15493 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15494 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15495
15496 # Archives containing C++ object files must be created using
15497 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15498 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15499 ;;
15500 icpc* | ecpc* )
15501 # Intel C++
15502 with_gnu_ld=yes
15503 # version 8.0 and above of icpc choke on multiply defined symbols
15504 # if we add $predep_objects and $postdep_objects, however 7.1 and
15505 # earlier do not add the objects themselves.
15506 case `$CC -V 2>&1` in
15507 *"Version 7."*)
15508 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15509 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'
15510 ;;
15511 *) # Version 8.0 or newer
15512 tmp_idyn=
15513 case $host_cpu in
15514 ia64*) tmp_idyn=' -i_dynamic';;
15515 esac
15516 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15517 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'
15518 ;;
15519 esac
15520 archive_cmds_need_lc_CXX=no
15521 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15522 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15523 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15524 ;;
15525 pgCC* | pgcpp*)
15526 # Portland Group C++ compiler
15527 case `$CC -V` in
15528 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15529 prelink_cmds_CXX='tpldir=Template.dir~
15530 rm -rf $tpldir~
15531 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15532 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15533 old_archive_cmds_CXX='tpldir=Template.dir~
15534 rm -rf $tpldir~
15535 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15536 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15537 $RANLIB $oldlib'
15538 archive_cmds_CXX='tpldir=Template.dir~
15539 rm -rf $tpldir~
15540 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15541 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15542 archive_expsym_cmds_CXX='tpldir=Template.dir~
15543 rm -rf $tpldir~
15544 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15545 $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'
15546 ;;
15547 *) # Version 6 will use weak symbols
15548 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15549 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'
15550 ;;
15551 esac
15552
15553 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15554 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000015555 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 +000015556 ;;
15557 cxx*)
15558 # Compaq C++
15559 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15560 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'
15561
15562 runpath_var=LD_RUN_PATH
15563 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15564 hardcode_libdir_separator_CXX=:
15565
15566 # Commands to make compiler produce verbose output that lists
15567 # what "hidden" libraries, object files and flags are used when
15568 # linking a shared library.
15569 #
15570 # There doesn't appear to be a way to prevent this compiler from
15571 # explicitly linking system object files so we need to strip them
15572 # from the output so that they don't get included in the library
15573 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015574 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 +000015575 ;;
cristy18304f92009-11-22 15:48:26 +000015576 xl*)
cristy3ed852e2009-09-05 21:47:34 +000015577 # IBM XL 8.0 on PPC, with GNU ld
15578 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15580 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15581 if test "x$supports_anon_versioning" = xyes; then
15582 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15583 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15584 echo "local: *; };" >> $output_objdir/$libname.ver~
15585 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15586 fi
15587 ;;
15588 *)
15589 case `$CC -V 2>&1 | sed 5q` in
15590 *Sun\ C*)
15591 # Sun C++ 5.9
15592 no_undefined_flag_CXX=' -zdefs'
15593 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15594 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'
15595 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000015596 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 +000015597 compiler_needs_object_CXX=yes
15598
15599 # Not sure whether something based on
15600 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15601 # would be better.
cristy18304f92009-11-22 15:48:26 +000015602 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000015603
15604 # Archives containing C++ object files must be created using
15605 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15606 # necessary to make sure instantiated templates are included
15607 # in the archive.
15608 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15609 ;;
15610 esac
15611 ;;
15612 esac
15613 ;;
15614
15615 lynxos*)
15616 # FIXME: insert proper C++ library support
15617 ld_shlibs_CXX=no
15618 ;;
15619
15620 m88k*)
15621 # FIXME: insert proper C++ library support
15622 ld_shlibs_CXX=no
15623 ;;
15624
15625 mvs*)
15626 case $cc_basename in
15627 cxx*)
15628 # FIXME: insert proper C++ library support
15629 ld_shlibs_CXX=no
15630 ;;
15631 *)
15632 # FIXME: insert proper C++ library support
15633 ld_shlibs_CXX=no
15634 ;;
15635 esac
15636 ;;
15637
15638 netbsd*)
15639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15640 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15641 wlarc=
15642 hardcode_libdir_flag_spec_CXX='-R$libdir'
15643 hardcode_direct_CXX=yes
15644 hardcode_shlibpath_var_CXX=no
15645 fi
15646 # Workaround some broken pre-1.5 toolchains
15647 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15648 ;;
15649
15650 *nto* | *qnx*)
15651 ld_shlibs_CXX=yes
15652 ;;
15653
15654 openbsd2*)
15655 # C++ shared libraries are fairly broken
15656 ld_shlibs_CXX=no
15657 ;;
15658
15659 openbsd*)
15660 if test -f /usr/libexec/ld.so; then
15661 hardcode_direct_CXX=yes
15662 hardcode_shlibpath_var_CXX=no
15663 hardcode_direct_absolute_CXX=yes
15664 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15665 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15667 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15668 export_dynamic_flag_spec_CXX='${wl}-E'
15669 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15670 fi
cristy18304f92009-11-22 15:48:26 +000015671 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015672 else
15673 ld_shlibs_CXX=no
15674 fi
15675 ;;
15676
15677 osf3* | osf4* | osf5*)
15678 case $cc_basename in
15679 KCC*)
15680 # Kuck and Associates, Inc. (KAI) C++ Compiler
15681
15682 # KCC will only create a shared library if the output file
15683 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15684 # to its proper name (with version) after linking.
15685 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'
15686
15687 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15688 hardcode_libdir_separator_CXX=:
15689
15690 # Archives containing C++ object files must be created using
15691 # the KAI C++ compiler.
15692 case $host in
15693 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15694 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15695 esac
15696 ;;
15697 RCC*)
15698 # Rational C++ 2.4.1
15699 # FIXME: insert proper C++ library support
15700 ld_shlibs_CXX=no
15701 ;;
15702 cxx*)
15703 case $host in
15704 osf3*)
15705 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000015706 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 +000015707 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15708 ;;
15709 *)
15710 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000015711 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 +000015712 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15713 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000015714 $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 +000015715 $RM $lib.exp'
15716 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15717 ;;
15718 esac
15719
15720 hardcode_libdir_separator_CXX=:
15721
15722 # Commands to make compiler produce verbose output that lists
15723 # what "hidden" libraries, object files and flags are used when
15724 # linking a shared library.
15725 #
15726 # There doesn't appear to be a way to prevent this compiler from
15727 # explicitly linking system object files so we need to strip them
15728 # from the output so that they don't get included in the library
15729 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015730 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 +000015731 ;;
15732 *)
15733 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15734 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15735 case $host in
15736 osf3*)
cristy18304f92009-11-22 15:48:26 +000015737 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 +000015738 ;;
15739 *)
cristy18304f92009-11-22 15:48:26 +000015740 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 +000015741 ;;
15742 esac
15743
15744 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15745 hardcode_libdir_separator_CXX=:
15746
15747 # Commands to make compiler produce verbose output that lists
15748 # what "hidden" libraries, object files and flags are used when
15749 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015750 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015751
15752 else
15753 # FIXME: insert proper C++ library support
15754 ld_shlibs_CXX=no
15755 fi
15756 ;;
15757 esac
15758 ;;
15759
15760 psos*)
15761 # FIXME: insert proper C++ library support
15762 ld_shlibs_CXX=no
15763 ;;
15764
15765 sunos4*)
15766 case $cc_basename in
15767 CC*)
15768 # Sun C++ 4.x
15769 # FIXME: insert proper C++ library support
15770 ld_shlibs_CXX=no
15771 ;;
15772 lcc*)
15773 # Lucid
15774 # FIXME: insert proper C++ library support
15775 ld_shlibs_CXX=no
15776 ;;
15777 *)
15778 # FIXME: insert proper C++ library support
15779 ld_shlibs_CXX=no
15780 ;;
15781 esac
15782 ;;
15783
15784 solaris*)
15785 case $cc_basename in
15786 CC*)
15787 # Sun C++ 4.2, 5.x and Centerline C++
15788 archive_cmds_need_lc_CXX=yes
15789 no_undefined_flag_CXX=' -zdefs'
15790 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15791 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15792 $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'
15793
15794 hardcode_libdir_flag_spec_CXX='-R$libdir'
15795 hardcode_shlibpath_var_CXX=no
15796 case $host_os in
15797 solaris2.[0-5] | solaris2.[0-5].*) ;;
15798 *)
15799 # The compiler driver will combine and reorder linker options,
15800 # but understands `-z linker_flag'.
15801 # Supported since Solaris 2.6 (maybe 2.5.1?)
15802 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15803 ;;
15804 esac
15805 link_all_deplibs_CXX=yes
15806
cristy18304f92009-11-22 15:48:26 +000015807 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000015808
15809 # Archives containing C++ object files must be created using
15810 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15811 # necessary to make sure instantiated templates are included
15812 # in the archive.
15813 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15814 ;;
15815 gcx*)
15816 # Green Hills C++ Compiler
15817 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15818
15819 # The C++ compiler must be used to create the archive.
15820 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15821 ;;
15822 *)
15823 # GNU C++ compiler with Solaris linker
15824 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15825 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15826 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15827 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15828 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15829 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15830
15831 # Commands to make compiler produce verbose output that lists
15832 # what "hidden" libraries, object files and flags are used when
15833 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015834 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015835 else
15836 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15837 # platform.
15838 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15839 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15840 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15841
15842 # Commands to make compiler produce verbose output that lists
15843 # what "hidden" libraries, object files and flags are used when
15844 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015845 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015846 fi
15847
15848 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15849 case $host_os in
15850 solaris2.[0-5] | solaris2.[0-5].*) ;;
15851 *)
15852 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15853 ;;
15854 esac
15855 fi
15856 ;;
15857 esac
15858 ;;
15859
15860 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15861 no_undefined_flag_CXX='${wl}-z,text'
15862 archive_cmds_need_lc_CXX=no
15863 hardcode_shlibpath_var_CXX=no
15864 runpath_var='LD_RUN_PATH'
15865
15866 case $cc_basename in
15867 CC*)
15868 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15869 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15870 ;;
15871 *)
15872 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15873 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15874 ;;
15875 esac
15876 ;;
15877
15878 sysv5* | sco3.2v5* | sco5v6*)
15879 # Note: We can NOT use -z defs as we might desire, because we do not
15880 # link with -lc, and that would cause any symbols used from libc to
15881 # always be unresolved, which means just about no library would
15882 # ever link correctly. If we're not using GNU ld we use -z text
15883 # though, which does catch some bad symbols but isn't as heavy-handed
15884 # as -z defs.
15885 no_undefined_flag_CXX='${wl}-z,text'
15886 allow_undefined_flag_CXX='${wl}-z,nodefs'
15887 archive_cmds_need_lc_CXX=no
15888 hardcode_shlibpath_var_CXX=no
15889 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15890 hardcode_libdir_separator_CXX=':'
15891 link_all_deplibs_CXX=yes
15892 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15893 runpath_var='LD_RUN_PATH'
15894
15895 case $cc_basename in
15896 CC*)
15897 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15898 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15899 ;;
15900 *)
15901 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15902 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 ;;
15904 esac
15905 ;;
15906
15907 tandem*)
15908 case $cc_basename in
15909 NCC*)
15910 # NonStop-UX NCC 3.20
15911 # FIXME: insert proper C++ library support
15912 ld_shlibs_CXX=no
15913 ;;
15914 *)
15915 # FIXME: insert proper C++ library support
15916 ld_shlibs_CXX=no
15917 ;;
15918 esac
15919 ;;
15920
15921 vxworks*)
15922 # FIXME: insert proper C++ library support
15923 ld_shlibs_CXX=no
15924 ;;
15925
15926 *)
15927 # FIXME: insert proper C++ library support
15928 ld_shlibs_CXX=no
15929 ;;
15930 esac
15931
cristy8b350f62009-11-15 23:12:43 +000015932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000015933$as_echo "$ld_shlibs_CXX" >&6; }
15934 test "$ld_shlibs_CXX" = no && can_build_shared=no
15935
15936 GCC_CXX="$GXX"
15937 LD_CXX="$LD"
15938
15939 ## CAVEAT EMPTOR:
15940 ## There is no encapsulation within the following macros, do not change
15941 ## the running order or otherwise move them around unless you know exactly
15942 ## what you are doing...
15943 # Dependencies to place before and after the object being linked:
15944predep_objects_CXX=
15945postdep_objects_CXX=
15946predeps_CXX=
15947postdeps_CXX=
15948compiler_lib_search_path_CXX=
15949
15950cat > conftest.$ac_ext <<_LT_EOF
15951class Foo
15952{
15953public:
15954 Foo (void) { a = 0; }
15955private:
15956 int a;
15957};
15958_LT_EOF
15959
cristy8b350f62009-11-15 23:12:43 +000015960if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015961 (eval $ac_compile) 2>&5
15962 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15964 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000015965 # Parse the compiler output and extract the necessary
15966 # objects, libraries and library flags.
15967
15968 # Sentinel used to keep track of whether or not we are before
15969 # the conftest object file.
15970 pre_test_object_deps_done=no
15971
15972 for p in `eval "$output_verbose_link_cmd"`; do
15973 case $p in
15974
15975 -L* | -R* | -l*)
15976 # Some compilers place space between "-{L,R}" and the path.
15977 # Remove the space.
15978 if test $p = "-L" ||
15979 test $p = "-R"; then
15980 prev=$p
15981 continue
15982 else
15983 prev=
15984 fi
15985
15986 if test "$pre_test_object_deps_done" = no; then
15987 case $p in
15988 -L* | -R*)
15989 # Internal compiler library paths should come after those
15990 # provided the user. The postdeps already come after the
15991 # user supplied libs so there is no need to process them.
15992 if test -z "$compiler_lib_search_path_CXX"; then
15993 compiler_lib_search_path_CXX="${prev}${p}"
15994 else
15995 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15996 fi
15997 ;;
15998 # The "-l" case would never come before the object being
15999 # linked, so don't bother handling this case.
16000 esac
16001 else
16002 if test -z "$postdeps_CXX"; then
16003 postdeps_CXX="${prev}${p}"
16004 else
16005 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16006 fi
16007 fi
16008 ;;
16009
16010 *.$objext)
16011 # This assumes that the test object file only shows up
16012 # once in the compiler output.
16013 if test "$p" = "conftest.$objext"; then
16014 pre_test_object_deps_done=yes
16015 continue
16016 fi
16017
16018 if test "$pre_test_object_deps_done" = no; then
16019 if test -z "$predep_objects_CXX"; then
16020 predep_objects_CXX="$p"
16021 else
16022 predep_objects_CXX="$predep_objects_CXX $p"
16023 fi
16024 else
16025 if test -z "$postdep_objects_CXX"; then
16026 postdep_objects_CXX="$p"
16027 else
16028 postdep_objects_CXX="$postdep_objects_CXX $p"
16029 fi
16030 fi
16031 ;;
16032
16033 *) ;; # Ignore the rest.
16034
16035 esac
16036 done
16037
16038 # Clean up.
16039 rm -f a.out a.exe
16040else
16041 echo "libtool.m4: error: problem compiling CXX test program"
16042fi
16043
16044$RM -f confest.$objext
16045
16046# PORTME: override above test on systems where it is broken
16047case $host_os in
16048interix[3-9]*)
16049 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16050 # hack all around it, let's just trust "g++" to DTRT.
16051 predep_objects_CXX=
16052 postdep_objects_CXX=
16053 postdeps_CXX=
16054 ;;
16055
16056linux*)
16057 case `$CC -V 2>&1 | sed 5q` in
16058 *Sun\ C*)
16059 # Sun C++ 5.9
16060
16061 # The more standards-conforming stlport4 library is
16062 # incompatible with the Cstd library. Avoid specifying
16063 # it if it's in CXXFLAGS. Ignore libCrun as
16064 # -library=stlport4 depends on it.
16065 case " $CXX $CXXFLAGS " in
16066 *" -library=stlport4 "*)
16067 solaris_use_stlport4=yes
16068 ;;
16069 esac
16070
16071 if test "$solaris_use_stlport4" != yes; then
16072 postdeps_CXX='-library=Cstd -library=Crun'
16073 fi
16074 ;;
16075 esac
16076 ;;
16077
16078solaris*)
16079 case $cc_basename in
16080 CC*)
16081 # The more standards-conforming stlport4 library is
16082 # incompatible with the Cstd library. Avoid specifying
16083 # it if it's in CXXFLAGS. Ignore libCrun as
16084 # -library=stlport4 depends on it.
16085 case " $CXX $CXXFLAGS " in
16086 *" -library=stlport4 "*)
16087 solaris_use_stlport4=yes
16088 ;;
16089 esac
16090
16091 # Adding this requires a known-good setup of shared libraries for
16092 # Sun compiler versions before 5.6, else PIC objects from an old
16093 # archive will be linked into the output, leading to subtle bugs.
16094 if test "$solaris_use_stlport4" != yes; then
16095 postdeps_CXX='-library=Cstd -library=Crun'
16096 fi
16097 ;;
16098 esac
16099 ;;
16100esac
16101
16102
16103case " $postdeps_CXX " in
16104*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16105esac
16106 compiler_lib_search_dirs_CXX=
16107if test -n "${compiler_lib_search_path_CXX}"; then
16108 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16109fi
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141 lt_prog_compiler_wl_CXX=
16142lt_prog_compiler_pic_CXX=
16143lt_prog_compiler_static_CXX=
16144
cristy8b350f62009-11-15 23:12:43 +000016145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016146$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16147
16148 # C++ specific cases for pic, static, wl, etc.
16149 if test "$GXX" = yes; then
16150 lt_prog_compiler_wl_CXX='-Wl,'
16151 lt_prog_compiler_static_CXX='-static'
16152
16153 case $host_os in
16154 aix*)
16155 # All AIX code is PIC.
16156 if test "$host_cpu" = ia64; then
16157 # AIX 5 now supports IA64 processor
16158 lt_prog_compiler_static_CXX='-Bstatic'
16159 fi
16160 ;;
16161
16162 amigaos*)
16163 case $host_cpu in
16164 powerpc)
16165 # see comment about AmigaOS4 .so support
16166 lt_prog_compiler_pic_CXX='-fPIC'
16167 ;;
16168 m68k)
16169 # FIXME: we need at least 68020 code to build shared libraries, but
16170 # adding the `-m68020' flag to GCC prevents building anything better,
16171 # like `-m68040'.
16172 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16173 ;;
16174 esac
16175 ;;
16176
16177 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16178 # PIC is the default for these OSes.
16179 ;;
16180 mingw* | cygwin* | os2* | pw32* | cegcc*)
16181 # This hack is so that the source file can tell whether it is being
16182 # built for inclusion in a dll (and should export symbols for example).
16183 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16184 # (--disable-auto-import) libraries
16185 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16186 ;;
16187 darwin* | rhapsody*)
16188 # PIC is the default on this platform
16189 # Common symbols not allowed in MH_DYLIB files
16190 lt_prog_compiler_pic_CXX='-fno-common'
16191 ;;
16192 *djgpp*)
16193 # DJGPP does not support shared libraries at all
16194 lt_prog_compiler_pic_CXX=
16195 ;;
16196 interix[3-9]*)
16197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16198 # Instead, we relocate shared libraries at runtime.
16199 ;;
16200 sysv4*MP*)
16201 if test -d /usr/nec; then
16202 lt_prog_compiler_pic_CXX=-Kconform_pic
16203 fi
16204 ;;
16205 hpux*)
16206 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16207 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16208 # sets the default TLS model and affects inlining.
16209 case $host_cpu in
16210 hppa*64*)
16211 ;;
16212 *)
16213 lt_prog_compiler_pic_CXX='-fPIC'
16214 ;;
16215 esac
16216 ;;
16217 *qnx* | *nto*)
16218 # QNX uses GNU C++, but need to define -shared option too, otherwise
16219 # it will coredump.
16220 lt_prog_compiler_pic_CXX='-fPIC -shared'
16221 ;;
16222 *)
16223 lt_prog_compiler_pic_CXX='-fPIC'
16224 ;;
16225 esac
16226 else
16227 case $host_os in
16228 aix[4-9]*)
16229 # All AIX code is PIC.
16230 if test "$host_cpu" = ia64; then
16231 # AIX 5 now supports IA64 processor
16232 lt_prog_compiler_static_CXX='-Bstatic'
16233 else
16234 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16235 fi
16236 ;;
16237 chorus*)
16238 case $cc_basename in
16239 cxch68*)
16240 # Green Hills C++ Compiler
16241 # _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"
16242 ;;
16243 esac
16244 ;;
16245 dgux*)
16246 case $cc_basename in
16247 ec++*)
16248 lt_prog_compiler_pic_CXX='-KPIC'
16249 ;;
16250 ghcx*)
16251 # Green Hills C++ Compiler
16252 lt_prog_compiler_pic_CXX='-pic'
16253 ;;
16254 *)
16255 ;;
16256 esac
16257 ;;
16258 freebsd* | dragonfly*)
16259 # FreeBSD uses GNU C++
16260 ;;
16261 hpux9* | hpux10* | hpux11*)
16262 case $cc_basename in
16263 CC*)
16264 lt_prog_compiler_wl_CXX='-Wl,'
16265 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16266 if test "$host_cpu" != ia64; then
16267 lt_prog_compiler_pic_CXX='+Z'
16268 fi
16269 ;;
16270 aCC*)
16271 lt_prog_compiler_wl_CXX='-Wl,'
16272 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16273 case $host_cpu in
16274 hppa*64*|ia64*)
16275 # +Z the default
16276 ;;
16277 *)
16278 lt_prog_compiler_pic_CXX='+Z'
16279 ;;
16280 esac
16281 ;;
16282 *)
16283 ;;
16284 esac
16285 ;;
16286 interix*)
16287 # This is c89, which is MS Visual C++ (no shared libs)
16288 # Anyone wants to do a port?
16289 ;;
16290 irix5* | irix6* | nonstopux*)
16291 case $cc_basename in
16292 CC*)
16293 lt_prog_compiler_wl_CXX='-Wl,'
16294 lt_prog_compiler_static_CXX='-non_shared'
16295 # CC pic flag -KPIC is the default.
16296 ;;
16297 *)
16298 ;;
16299 esac
16300 ;;
cristy18304f92009-11-22 15:48:26 +000016301 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016302 case $cc_basename in
16303 KCC*)
16304 # KAI C++ Compiler
16305 lt_prog_compiler_wl_CXX='--backend -Wl,'
16306 lt_prog_compiler_pic_CXX='-fPIC'
16307 ;;
16308 ecpc* )
16309 # old Intel C++ for x86_64 which still supported -KPIC.
16310 lt_prog_compiler_wl_CXX='-Wl,'
16311 lt_prog_compiler_pic_CXX='-KPIC'
16312 lt_prog_compiler_static_CXX='-static'
16313 ;;
16314 icpc* )
16315 # Intel C++, used to be incompatible with GCC.
16316 # ICC 10 doesn't accept -KPIC any more.
16317 lt_prog_compiler_wl_CXX='-Wl,'
16318 lt_prog_compiler_pic_CXX='-fPIC'
16319 lt_prog_compiler_static_CXX='-static'
16320 ;;
16321 pgCC* | pgcpp*)
16322 # Portland Group C++ compiler
16323 lt_prog_compiler_wl_CXX='-Wl,'
16324 lt_prog_compiler_pic_CXX='-fpic'
16325 lt_prog_compiler_static_CXX='-Bstatic'
16326 ;;
16327 cxx*)
16328 # Compaq C++
16329 # Make sure the PIC flag is empty. It appears that all Alpha
16330 # Linux and Compaq Tru64 Unix objects are PIC.
16331 lt_prog_compiler_pic_CXX=
16332 lt_prog_compiler_static_CXX='-non_shared'
16333 ;;
cristy18304f92009-11-22 15:48:26 +000016334 xlc* | xlC*)
16335 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000016336 lt_prog_compiler_wl_CXX='-Wl,'
16337 lt_prog_compiler_pic_CXX='-qpic'
16338 lt_prog_compiler_static_CXX='-qstaticlink'
16339 ;;
16340 *)
16341 case `$CC -V 2>&1 | sed 5q` in
16342 *Sun\ C*)
16343 # Sun C++ 5.9
16344 lt_prog_compiler_pic_CXX='-KPIC'
16345 lt_prog_compiler_static_CXX='-Bstatic'
16346 lt_prog_compiler_wl_CXX='-Qoption ld '
16347 ;;
16348 esac
16349 ;;
16350 esac
16351 ;;
16352 lynxos*)
16353 ;;
16354 m88k*)
16355 ;;
16356 mvs*)
16357 case $cc_basename in
16358 cxx*)
16359 lt_prog_compiler_pic_CXX='-W c,exportall'
16360 ;;
16361 *)
16362 ;;
16363 esac
16364 ;;
16365 netbsd*)
16366 ;;
16367 *qnx* | *nto*)
16368 # QNX uses GNU C++, but need to define -shared option too, otherwise
16369 # it will coredump.
16370 lt_prog_compiler_pic_CXX='-fPIC -shared'
16371 ;;
16372 osf3* | osf4* | osf5*)
16373 case $cc_basename in
16374 KCC*)
16375 lt_prog_compiler_wl_CXX='--backend -Wl,'
16376 ;;
16377 RCC*)
16378 # Rational C++ 2.4.1
16379 lt_prog_compiler_pic_CXX='-pic'
16380 ;;
16381 cxx*)
16382 # Digital/Compaq C++
16383 lt_prog_compiler_wl_CXX='-Wl,'
16384 # Make sure the PIC flag is empty. It appears that all Alpha
16385 # Linux and Compaq Tru64 Unix objects are PIC.
16386 lt_prog_compiler_pic_CXX=
16387 lt_prog_compiler_static_CXX='-non_shared'
16388 ;;
16389 *)
16390 ;;
16391 esac
16392 ;;
16393 psos*)
16394 ;;
16395 solaris*)
16396 case $cc_basename in
16397 CC*)
16398 # Sun C++ 4.2, 5.x and Centerline C++
16399 lt_prog_compiler_pic_CXX='-KPIC'
16400 lt_prog_compiler_static_CXX='-Bstatic'
16401 lt_prog_compiler_wl_CXX='-Qoption ld '
16402 ;;
16403 gcx*)
16404 # Green Hills C++ Compiler
16405 lt_prog_compiler_pic_CXX='-PIC'
16406 ;;
16407 *)
16408 ;;
16409 esac
16410 ;;
16411 sunos4*)
16412 case $cc_basename in
16413 CC*)
16414 # Sun C++ 4.x
16415 lt_prog_compiler_pic_CXX='-pic'
16416 lt_prog_compiler_static_CXX='-Bstatic'
16417 ;;
16418 lcc*)
16419 # Lucid
16420 lt_prog_compiler_pic_CXX='-pic'
16421 ;;
16422 *)
16423 ;;
16424 esac
16425 ;;
16426 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16427 case $cc_basename in
16428 CC*)
16429 lt_prog_compiler_wl_CXX='-Wl,'
16430 lt_prog_compiler_pic_CXX='-KPIC'
16431 lt_prog_compiler_static_CXX='-Bstatic'
16432 ;;
16433 esac
16434 ;;
16435 tandem*)
16436 case $cc_basename in
16437 NCC*)
16438 # NonStop-UX NCC 3.20
16439 lt_prog_compiler_pic_CXX='-KPIC'
16440 ;;
16441 *)
16442 ;;
16443 esac
16444 ;;
16445 vxworks*)
16446 ;;
16447 *)
16448 lt_prog_compiler_can_build_shared_CXX=no
16449 ;;
16450 esac
16451 fi
16452
16453case $host_os in
16454 # For platforms which do not support PIC, -DPIC is meaningless:
16455 *djgpp*)
16456 lt_prog_compiler_pic_CXX=
16457 ;;
16458 *)
16459 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16460 ;;
16461esac
cristy8b350f62009-11-15 23:12:43 +000016462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016463$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16464
16465
16466
16467#
16468# Check to make sure the PIC flag actually works.
16469#
16470if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000016471 { $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 +000016472$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016473if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016474 $as_echo_n "(cached) " >&6
16475else
16476 lt_cv_prog_compiler_pic_works_CXX=no
16477 ac_outfile=conftest.$ac_objext
16478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16479 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16480 # Insert the option either (1) after the last *FLAGS variable, or
16481 # (2) before a word containing "conftest.", or (3) at the end.
16482 # Note that $ac_compile itself does not contain backslashes and begins
16483 # with a dollar sign (not a hyphen), so the echo should work correctly.
16484 # The option is referenced via a variable to avoid confusing sed.
16485 lt_compile=`echo "$ac_compile" | $SED \
16486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16488 -e 's:$: $lt_compiler_flag:'`
cristy47fa4622009-12-28 01:52:31 +000016489 (eval echo "\"\$as_me:16489: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016490 (eval "$lt_compile" 2>conftest.err)
16491 ac_status=$?
16492 cat conftest.err >&5
cristy47fa4622009-12-28 01:52:31 +000016493 echo "$as_me:16493: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016494 if (exit $ac_status) && test -s "$ac_outfile"; then
16495 # The compiler can only warn and ignore the option if not recognized
16496 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000016497 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16499 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16500 lt_cv_prog_compiler_pic_works_CXX=yes
16501 fi
16502 fi
16503 $RM conftest*
16504
16505fi
cristy8b350f62009-11-15 23:12:43 +000016506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016507$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16508
16509if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16510 case $lt_prog_compiler_pic_CXX in
16511 "" | " "*) ;;
16512 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16513 esac
16514else
16515 lt_prog_compiler_pic_CXX=
16516 lt_prog_compiler_can_build_shared_CXX=no
16517fi
16518
16519fi
16520
16521
16522
16523#
16524# Check to make sure the static flag actually works.
16525#
16526wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000016527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000016528$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016529if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016530 $as_echo_n "(cached) " >&6
16531else
16532 lt_cv_prog_compiler_static_works_CXX=no
16533 save_LDFLAGS="$LDFLAGS"
16534 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16535 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16536 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16537 # The linker can only warn and ignore the option if not recognized
16538 # So say no if there are warnings
16539 if test -s conftest.err; then
16540 # Append any errors to the config.log.
16541 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000016542 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16544 if diff conftest.exp conftest.er2 >/dev/null; then
16545 lt_cv_prog_compiler_static_works_CXX=yes
16546 fi
16547 else
16548 lt_cv_prog_compiler_static_works_CXX=yes
16549 fi
16550 fi
16551 $RM -r conftest*
16552 LDFLAGS="$save_LDFLAGS"
16553
16554fi
cristy8b350f62009-11-15 23:12:43 +000016555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016556$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16557
16558if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16559 :
16560else
16561 lt_prog_compiler_static_CXX=
16562fi
16563
16564
16565
16566
cristy8b350f62009-11-15 23:12:43 +000016567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016568$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016569if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016570 $as_echo_n "(cached) " >&6
16571else
16572 lt_cv_prog_compiler_c_o_CXX=no
16573 $RM -r conftest 2>/dev/null
16574 mkdir conftest
16575 cd conftest
16576 mkdir out
16577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16578
16579 lt_compiler_flag="-o out/conftest2.$ac_objext"
16580 # Insert the option either (1) after the last *FLAGS variable, or
16581 # (2) before a word containing "conftest.", or (3) at the end.
16582 # Note that $ac_compile itself does not contain backslashes and begins
16583 # with a dollar sign (not a hyphen), so the echo should work correctly.
16584 lt_compile=`echo "$ac_compile" | $SED \
16585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16587 -e 's:$: $lt_compiler_flag:'`
cristy47fa4622009-12-28 01:52:31 +000016588 (eval echo "\"\$as_me:16588: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016589 (eval "$lt_compile" 2>out/conftest.err)
16590 ac_status=$?
16591 cat out/conftest.err >&5
cristy47fa4622009-12-28 01:52:31 +000016592 echo "$as_me:16592: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016593 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16594 then
16595 # The compiler can only warn and ignore the option if not recognized
16596 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000016597 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016598 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16599 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16600 lt_cv_prog_compiler_c_o_CXX=yes
16601 fi
16602 fi
16603 chmod u+w . 2>&5
16604 $RM conftest*
16605 # SGI C++ compiler will create directory out/ii_files/ for
16606 # template instantiation
16607 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16608 $RM out/* && rmdir out
16609 cd ..
16610 $RM -r conftest
16611 $RM conftest*
16612
16613fi
cristy8b350f62009-11-15 23:12:43 +000016614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016615$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16616
16617
16618
cristy8b350f62009-11-15 23:12:43 +000016619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016620$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016621if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016622 $as_echo_n "(cached) " >&6
16623else
16624 lt_cv_prog_compiler_c_o_CXX=no
16625 $RM -r conftest 2>/dev/null
16626 mkdir conftest
16627 cd conftest
16628 mkdir out
16629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16630
16631 lt_compiler_flag="-o out/conftest2.$ac_objext"
16632 # Insert the option either (1) after the last *FLAGS variable, or
16633 # (2) before a word containing "conftest.", or (3) at the end.
16634 # Note that $ac_compile itself does not contain backslashes and begins
16635 # with a dollar sign (not a hyphen), so the echo should work correctly.
16636 lt_compile=`echo "$ac_compile" | $SED \
16637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16639 -e 's:$: $lt_compiler_flag:'`
cristy47fa4622009-12-28 01:52:31 +000016640 (eval echo "\"\$as_me:16640: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016641 (eval "$lt_compile" 2>out/conftest.err)
16642 ac_status=$?
16643 cat out/conftest.err >&5
cristy47fa4622009-12-28 01:52:31 +000016644 echo "$as_me:16644: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016645 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16646 then
16647 # The compiler can only warn and ignore the option if not recognized
16648 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000016649 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016650 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16651 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16652 lt_cv_prog_compiler_c_o_CXX=yes
16653 fi
16654 fi
16655 chmod u+w . 2>&5
16656 $RM conftest*
16657 # SGI C++ compiler will create directory out/ii_files/ for
16658 # template instantiation
16659 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16660 $RM out/* && rmdir out
16661 cd ..
16662 $RM -r conftest
16663 $RM conftest*
16664
16665fi
cristy8b350f62009-11-15 23:12:43 +000016666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016667$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16668
16669
16670
16671
16672hard_links="nottested"
16673if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16674 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000016675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016676$as_echo_n "checking if we can lock with hard links... " >&6; }
16677 hard_links=yes
16678 $RM conftest*
16679 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16680 touch conftest.a
16681 ln conftest.a conftest.b 2>&5 || hard_links=no
16682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000016683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016684$as_echo "$hard_links" >&6; }
16685 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000016686 { $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 +000016687$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16688 need_locks=warn
16689 fi
16690else
16691 need_locks=no
16692fi
16693
16694
16695
cristy8b350f62009-11-15 23:12:43 +000016696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016697$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16698
16699 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16700 case $host_os in
16701 aix[4-9]*)
16702 # If we're using GNU nm, then we don't want the "-C" option.
16703 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16704 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000016705 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 +000016706 else
16707 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'
16708 fi
16709 ;;
16710 pw32*)
16711 export_symbols_cmds_CXX="$ltdll_cmds"
16712 ;;
16713 cygwin* | mingw* | cegcc*)
16714 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'
16715 ;;
16716 *)
16717 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16718 ;;
16719 esac
16720 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16721
cristy8b350f62009-11-15 23:12:43 +000016722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016723$as_echo "$ld_shlibs_CXX" >&6; }
16724test "$ld_shlibs_CXX" = no && can_build_shared=no
16725
16726with_gnu_ld_CXX=$with_gnu_ld
16727
16728
16729
16730
16731
16732
16733#
16734# Do we need to explicitly link libc?
16735#
16736case "x$archive_cmds_need_lc_CXX" in
16737x|xyes)
16738 # Assume -lc should be added
16739 archive_cmds_need_lc_CXX=yes
16740
16741 if test "$enable_shared" = yes && test "$GCC" = yes; then
16742 case $archive_cmds_CXX in
16743 *'~'*)
16744 # FIXME: we may have to deal with multi-command sequences.
16745 ;;
16746 '$CC '*)
16747 # Test whether the compiler implicitly links with -lc since on some
16748 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16749 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000016750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000016751$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000016752 $RM conftest*
16753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016754
cristy18304f92009-11-22 15:48:26 +000016755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016756 (eval $ac_compile) 2>&5
16757 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16759 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000016760 soname=conftest
16761 lib=conftest
16762 libobjs=conftest.$ac_objext
16763 deplibs=
16764 wl=$lt_prog_compiler_wl_CXX
16765 pic_flag=$lt_prog_compiler_pic_CXX
16766 compiler_flags=-v
16767 linker_flags=-v
16768 verstring=
16769 output_objdir=.
16770 libname=conftest
16771 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16772 allow_undefined_flag_CXX=
16773 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 +000016774 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16775 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16777 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000016778 then
16779 archive_cmds_need_lc_CXX=no
16780 else
16781 archive_cmds_need_lc_CXX=yes
16782 fi
16783 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16784 else
16785 cat conftest.err 1>&5
16786 fi
16787 $RM conftest*
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16789$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000016790 ;;
16791 esac
16792 fi
16793 ;;
16794esac
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
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
cristy8b350f62009-11-15 23:12:43 +000016859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000016860$as_echo_n "checking dynamic linker characteristics... " >&6; }
16861
16862library_names_spec=
16863libname_spec='lib$name'
16864soname_spec=
16865shrext_cmds=".so"
16866postinstall_cmds=
16867postuninstall_cmds=
16868finish_cmds=
16869finish_eval=
16870shlibpath_var=
16871shlibpath_overrides_runpath=unknown
16872version_type=none
16873dynamic_linker="$host_os ld.so"
16874sys_lib_dlsearch_path_spec="/lib /usr/lib"
16875need_lib_prefix=unknown
16876hardcode_into_libs=no
16877
16878# when you set need_version to no, make sure it does not cause -set_version
16879# flags to be left without arguments
16880need_version=unknown
16881
16882case $host_os in
16883aix3*)
16884 version_type=linux
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16886 shlibpath_var=LIBPATH
16887
16888 # AIX 3 has no versioning support, so we append a major version to the name.
16889 soname_spec='${libname}${release}${shared_ext}$major'
16890 ;;
16891
16892aix[4-9]*)
16893 version_type=linux
16894 need_lib_prefix=no
16895 need_version=no
16896 hardcode_into_libs=yes
16897 if test "$host_cpu" = ia64; then
16898 # AIX 5 supports IA64
16899 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16900 shlibpath_var=LD_LIBRARY_PATH
16901 else
16902 # With GCC up to 2.95.x, collect2 would create an import file
16903 # for dependence libraries. The import file would start with
16904 # the line `#! .'. This would cause the generated library to
16905 # depend on `.', always an invalid library. This was fixed in
16906 # development snapshots of GCC prior to 3.0.
16907 case $host_os in
16908 aix4 | aix4.[01] | aix4.[01].*)
16909 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16910 echo ' yes '
16911 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16912 :
16913 else
16914 can_build_shared=no
16915 fi
16916 ;;
16917 esac
16918 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16919 # soname into executable. Probably we can add versioning support to
16920 # collect2, so additional links can be useful in future.
16921 if test "$aix_use_runtimelinking" = yes; then
16922 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16923 # instead of lib<name>.a to let people know that these are not
16924 # typical AIX shared libraries.
16925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16926 else
16927 # We preserve .a as extension for shared libraries through AIX4.2
16928 # and later when we are not doing run time linking.
16929 library_names_spec='${libname}${release}.a $libname.a'
16930 soname_spec='${libname}${release}${shared_ext}$major'
16931 fi
16932 shlibpath_var=LIBPATH
16933 fi
16934 ;;
16935
16936amigaos*)
16937 case $host_cpu in
16938 powerpc)
16939 # Since July 2007 AmigaOS4 officially supports .so libraries.
16940 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942 ;;
16943 m68k)
16944 library_names_spec='$libname.ixlibrary $libname.a'
16945 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000016946 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 +000016947 ;;
16948 esac
16949 ;;
16950
16951beos*)
16952 library_names_spec='${libname}${shared_ext}'
16953 dynamic_linker="$host_os ld.so"
16954 shlibpath_var=LIBRARY_PATH
16955 ;;
16956
16957bsdi[45]*)
16958 version_type=linux
16959 need_version=no
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961 soname_spec='${libname}${release}${shared_ext}$major'
16962 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16963 shlibpath_var=LD_LIBRARY_PATH
16964 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16965 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16966 # the default ld.so.conf also contains /usr/contrib/lib and
16967 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16968 # libtool to hard-code these into programs
16969 ;;
16970
16971cygwin* | mingw* | pw32* | cegcc*)
16972 version_type=windows
16973 shrext_cmds=".dll"
16974 need_version=no
16975 need_lib_prefix=no
16976
16977 case $GCC,$host_os in
16978 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16979 library_names_spec='$libname.dll.a'
16980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16981 postinstall_cmds='base_file=`basename \${file}`~
16982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16983 dldir=$destdir/`dirname \$dlpath`~
16984 test -d \$dldir || mkdir -p \$dldir~
16985 $install_prog $dir/$dlname \$dldir/$dlname~
16986 chmod a+x \$dldir/$dlname~
16987 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16988 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16989 fi'
16990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16991 dlpath=$dir/\$dldll~
16992 $RM \$dlpath'
16993 shlibpath_overrides_runpath=yes
16994
16995 case $host_os in
16996 cygwin*)
16997 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16998 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000016999 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000017000 ;;
17001 mingw* | cegcc*)
17002 # MinGW DLLs use traditional 'lib' prefix
17003 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000017004 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17005 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17006 # It is most probably a Windows format PATH printed by
17007 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17008 # path with ; separators, and with drive letters. We can handle the
17009 # drive letters (cygwin fileutils understands them), so leave them,
17010 # especially as we might pass files found there to a mingw objdump,
17011 # which wouldn't understand a cygwinified path. Ahh.
17012 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17013 else
17014 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17015 fi
cristy3ed852e2009-09-05 21:47:34 +000017016 ;;
17017 pw32*)
17018 # pw32 DLLs use 'pw' prefix rather than 'lib'
17019 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17020 ;;
17021 esac
17022 ;;
17023
17024 *)
17025 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17026 ;;
17027 esac
17028 dynamic_linker='Win32 ld.exe'
17029 # FIXME: first we should search . and the directory the executable is in
17030 shlibpath_var=PATH
17031 ;;
17032
17033darwin* | rhapsody*)
17034 dynamic_linker="$host_os dyld"
17035 version_type=darwin
17036 need_lib_prefix=no
17037 need_version=no
17038 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17039 soname_spec='${libname}${release}${major}$shared_ext'
17040 shlibpath_overrides_runpath=yes
17041 shlibpath_var=DYLD_LIBRARY_PATH
17042 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17043
17044 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17045 ;;
17046
17047dgux*)
17048 version_type=linux
17049 need_lib_prefix=no
17050 need_version=no
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17052 soname_spec='${libname}${release}${shared_ext}$major'
17053 shlibpath_var=LD_LIBRARY_PATH
17054 ;;
17055
17056freebsd1*)
17057 dynamic_linker=no
17058 ;;
17059
17060freebsd* | dragonfly*)
17061 # DragonFly does not have aout. When/if they implement a new
17062 # versioning mechanism, adjust this.
17063 if test -x /usr/bin/objformat; then
17064 objformat=`/usr/bin/objformat`
17065 else
17066 case $host_os in
17067 freebsd[123]*) objformat=aout ;;
17068 *) objformat=elf ;;
17069 esac
17070 fi
17071 version_type=freebsd-$objformat
17072 case $version_type in
17073 freebsd-elf*)
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17075 need_version=no
17076 need_lib_prefix=no
17077 ;;
17078 freebsd-*)
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17080 need_version=yes
17081 ;;
17082 esac
17083 shlibpath_var=LD_LIBRARY_PATH
17084 case $host_os in
17085 freebsd2*)
17086 shlibpath_overrides_runpath=yes
17087 ;;
17088 freebsd3.[01]* | freebsdelf3.[01]*)
17089 shlibpath_overrides_runpath=yes
17090 hardcode_into_libs=yes
17091 ;;
17092 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17093 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17094 shlibpath_overrides_runpath=no
17095 hardcode_into_libs=yes
17096 ;;
17097 *) # from 4.6 on, and DragonFly
17098 shlibpath_overrides_runpath=yes
17099 hardcode_into_libs=yes
17100 ;;
17101 esac
17102 ;;
17103
17104gnu*)
17105 version_type=linux
17106 need_lib_prefix=no
17107 need_version=no
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17109 soname_spec='${libname}${release}${shared_ext}$major'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 hardcode_into_libs=yes
17112 ;;
17113
17114hpux9* | hpux10* | hpux11*)
17115 # Give a soname corresponding to the major version so that dld.sl refuses to
17116 # link against other versions.
17117 version_type=sunos
17118 need_lib_prefix=no
17119 need_version=no
17120 case $host_cpu in
17121 ia64*)
17122 shrext_cmds='.so'
17123 hardcode_into_libs=yes
17124 dynamic_linker="$host_os dld.so"
17125 shlibpath_var=LD_LIBRARY_PATH
17126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 if test "X$HPUX_IA64_MODE" = X32; then
17130 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17131 else
17132 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17133 fi
17134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17135 ;;
17136 hppa*64*)
17137 shrext_cmds='.sl'
17138 hardcode_into_libs=yes
17139 dynamic_linker="$host_os dld.sl"
17140 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143 soname_spec='${libname}${release}${shared_ext}$major'
17144 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17146 ;;
17147 *)
17148 shrext_cmds='.sl'
17149 dynamic_linker="$host_os dld.sl"
17150 shlibpath_var=SHLIB_PATH
17151 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
17155 esac
cristy18304f92009-11-22 15:48:26 +000017156 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000017157 postinstall_cmds='chmod 555 $lib'
17158 ;;
17159
17160interix[3-9]*)
17161 version_type=linux
17162 need_lib_prefix=no
17163 need_version=no
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17165 soname_spec='${libname}${release}${shared_ext}$major'
17166 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 shlibpath_overrides_runpath=no
17169 hardcode_into_libs=yes
17170 ;;
17171
17172irix5* | irix6* | nonstopux*)
17173 case $host_os in
17174 nonstopux*) version_type=nonstopux ;;
17175 *)
17176 if test "$lt_cv_prog_gnu_ld" = yes; then
17177 version_type=linux
17178 else
17179 version_type=irix
17180 fi ;;
17181 esac
17182 need_lib_prefix=no
17183 need_version=no
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17186 case $host_os in
17187 irix5* | nonstopux*)
17188 libsuff= shlibsuff=
17189 ;;
17190 *)
17191 case $LD in # libtool.m4 will add one of these switches to LD
17192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17193 libsuff= shlibsuff= libmagic=32-bit;;
17194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17195 libsuff=32 shlibsuff=N32 libmagic=N32;;
17196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17197 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17198 *) libsuff= shlibsuff= libmagic=never-match;;
17199 esac
17200 ;;
17201 esac
17202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17203 shlibpath_overrides_runpath=no
17204 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17205 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17206 hardcode_into_libs=yes
17207 ;;
17208
17209# No shared lib support for Linux oldld, aout, or coff.
17210linux*oldld* | linux*aout* | linux*coff*)
17211 dynamic_linker=no
17212 ;;
17213
17214# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000017215linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017216 version_type=linux
17217 need_lib_prefix=no
17218 need_version=no
17219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220 soname_spec='${libname}${release}${shared_ext}$major'
17221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17222 shlibpath_var=LD_LIBRARY_PATH
17223 shlibpath_overrides_runpath=no
17224 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000017225 save_LDFLAGS=$LDFLAGS
17226 save_libdir=$libdir
17227 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17228 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017230/* end confdefs.h. */
17231
17232int
17233main ()
17234{
17235
17236 ;
17237 return 0;
17238}
17239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017240if ac_fn_cxx_try_link "$LINENO"; then :
17241 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000017242 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000017243fi
cristy3ed852e2009-09-05 21:47:34 +000017244fi
cristy8b350f62009-11-15 23:12:43 +000017245rm -f core conftest.err conftest.$ac_objext \
17246 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000017247 LDFLAGS=$save_LDFLAGS
17248 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000017249
17250 # This implies no fast_install, which is unacceptable.
17251 # Some rework will be needed to allow for fast_install
17252 # before this can be enabled.
17253 hardcode_into_libs=yes
17254
cristy679ed8e2009-12-05 02:37:41 +000017255 # Add ABI-specific directories to the system library path.
17256 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17257
cristy3ed852e2009-09-05 21:47:34 +000017258 # Append ld.so.conf contents to the search path
17259 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000017260 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' ' '`
cristy679ed8e2009-12-05 02:37:41 +000017261 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000017262 fi
17263
17264 # We used to test for /lib/ld.so.1 and disable shared libraries on
17265 # powerpc, because MkLinux only supported shared libraries with the
17266 # GNU dynamic linker. Since this was broken with cross compilers,
17267 # most powerpc-linux boxes support dynamic linking these days and
17268 # people can always --disable-shared, the test was removed, and we
17269 # assume the GNU/Linux dynamic linker is in use.
17270 dynamic_linker='GNU/Linux ld.so'
17271 ;;
17272
17273netbsd*)
17274 version_type=sunos
17275 need_lib_prefix=no
17276 need_version=no
17277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17280 dynamic_linker='NetBSD (a.out) ld.so'
17281 else
17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17283 soname_spec='${libname}${release}${shared_ext}$major'
17284 dynamic_linker='NetBSD ld.elf_so'
17285 fi
17286 shlibpath_var=LD_LIBRARY_PATH
17287 shlibpath_overrides_runpath=yes
17288 hardcode_into_libs=yes
17289 ;;
17290
17291newsos6)
17292 version_type=linux
17293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17294 shlibpath_var=LD_LIBRARY_PATH
17295 shlibpath_overrides_runpath=yes
17296 ;;
17297
17298*nto* | *qnx*)
17299 version_type=qnx
17300 need_lib_prefix=no
17301 need_version=no
17302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303 soname_spec='${libname}${release}${shared_ext}$major'
17304 shlibpath_var=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath=no
17306 hardcode_into_libs=yes
17307 dynamic_linker='ldqnx.so'
17308 ;;
17309
17310openbsd*)
17311 version_type=sunos
17312 sys_lib_dlsearch_path_spec="/usr/lib"
17313 need_lib_prefix=no
17314 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17315 case $host_os in
17316 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17317 *) need_version=no ;;
17318 esac
17319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17321 shlibpath_var=LD_LIBRARY_PATH
17322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17323 case $host_os in
17324 openbsd2.[89] | openbsd2.[89].*)
17325 shlibpath_overrides_runpath=no
17326 ;;
17327 *)
17328 shlibpath_overrides_runpath=yes
17329 ;;
17330 esac
17331 else
17332 shlibpath_overrides_runpath=yes
17333 fi
17334 ;;
17335
17336os2*)
17337 libname_spec='$name'
17338 shrext_cmds=".dll"
17339 need_lib_prefix=no
17340 library_names_spec='$libname${shared_ext} $libname.a'
17341 dynamic_linker='OS/2 ld.exe'
17342 shlibpath_var=LIBPATH
17343 ;;
17344
17345osf3* | osf4* | osf5*)
17346 version_type=osf
17347 need_lib_prefix=no
17348 need_version=no
17349 soname_spec='${libname}${release}${shared_ext}$major'
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17351 shlibpath_var=LD_LIBRARY_PATH
17352 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17353 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17354 ;;
17355
17356rdos*)
17357 dynamic_linker=no
17358 ;;
17359
17360solaris*)
17361 version_type=linux
17362 need_lib_prefix=no
17363 need_version=no
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365 soname_spec='${libname}${release}${shared_ext}$major'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 shlibpath_overrides_runpath=yes
17368 hardcode_into_libs=yes
17369 # ldd complains unless libraries are executable
17370 postinstall_cmds='chmod +x $lib'
17371 ;;
17372
17373sunos4*)
17374 version_type=sunos
17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17376 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17377 shlibpath_var=LD_LIBRARY_PATH
17378 shlibpath_overrides_runpath=yes
17379 if test "$with_gnu_ld" = yes; then
17380 need_lib_prefix=no
17381 fi
17382 need_version=yes
17383 ;;
17384
17385sysv4 | sysv4.3*)
17386 version_type=linux
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388 soname_spec='${libname}${release}${shared_ext}$major'
17389 shlibpath_var=LD_LIBRARY_PATH
17390 case $host_vendor in
17391 sni)
17392 shlibpath_overrides_runpath=no
17393 need_lib_prefix=no
17394 runpath_var=LD_RUN_PATH
17395 ;;
17396 siemens)
17397 need_lib_prefix=no
17398 ;;
17399 motorola)
17400 need_lib_prefix=no
17401 need_version=no
17402 shlibpath_overrides_runpath=no
17403 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17404 ;;
17405 esac
17406 ;;
17407
17408sysv4*MP*)
17409 if test -d /usr/nec ;then
17410 version_type=linux
17411 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17412 soname_spec='$libname${shared_ext}.$major'
17413 shlibpath_var=LD_LIBRARY_PATH
17414 fi
17415 ;;
17416
17417sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17418 version_type=freebsd-elf
17419 need_lib_prefix=no
17420 need_version=no
17421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17422 soname_spec='${libname}${release}${shared_ext}$major'
17423 shlibpath_var=LD_LIBRARY_PATH
17424 shlibpath_overrides_runpath=yes
17425 hardcode_into_libs=yes
17426 if test "$with_gnu_ld" = yes; then
17427 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17428 else
17429 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17430 case $host_os in
17431 sco3.2v5*)
17432 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17433 ;;
17434 esac
17435 fi
17436 sys_lib_dlsearch_path_spec='/usr/lib'
17437 ;;
17438
17439tpf*)
17440 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17441 version_type=linux
17442 need_lib_prefix=no
17443 need_version=no
17444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445 shlibpath_var=LD_LIBRARY_PATH
17446 shlibpath_overrides_runpath=no
17447 hardcode_into_libs=yes
17448 ;;
17449
17450uts4*)
17451 version_type=linux
17452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17453 soname_spec='${libname}${release}${shared_ext}$major'
17454 shlibpath_var=LD_LIBRARY_PATH
17455 ;;
17456
17457*)
17458 dynamic_linker=no
17459 ;;
17460esac
cristy8b350f62009-11-15 23:12:43 +000017461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000017462$as_echo "$dynamic_linker" >&6; }
17463test "$dynamic_linker" = no && can_build_shared=no
17464
17465variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17466if test "$GCC" = yes; then
17467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17468fi
17469
17470if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17471 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17472fi
17473if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17474 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17475fi
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
cristy8b350f62009-11-15 23:12:43 +000017512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000017513$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17514hardcode_action_CXX=
17515if test -n "$hardcode_libdir_flag_spec_CXX" ||
17516 test -n "$runpath_var_CXX" ||
17517 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17518
17519 # We can hardcode non-existent directories.
17520 if test "$hardcode_direct_CXX" != no &&
17521 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17522 # have to relink, otherwise we might link with an installed library
17523 # when we should be linking with a yet-to-be-installed one
17524 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17525 test "$hardcode_minus_L_CXX" != no; then
17526 # Linking always hardcodes the temporary library directory.
17527 hardcode_action_CXX=relink
17528 else
17529 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17530 hardcode_action_CXX=immediate
17531 fi
17532else
17533 # We cannot hardcode anything, or else we can only hardcode existing
17534 # directories.
17535 hardcode_action_CXX=unsupported
17536fi
cristy8b350f62009-11-15 23:12:43 +000017537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017538$as_echo "$hardcode_action_CXX" >&6; }
17539
17540if test "$hardcode_action_CXX" = relink ||
17541 test "$inherit_rpath_CXX" = yes; then
17542 # Fast installation is not supported
17543 enable_fast_install=no
17544elif test "$shlibpath_overrides_runpath" = yes ||
17545 test "$enable_shared" = no; then
17546 # Fast installation is not necessary
17547 enable_fast_install=needless
17548fi
17549
17550
17551
17552
17553
17554
17555
17556 fi # test -n "$compiler"
17557
17558 CC=$lt_save_CC
17559 LDCXX=$LD
17560 LD=$lt_save_LD
17561 GCC=$lt_save_GCC
17562 with_gnu_ld=$lt_save_with_gnu_ld
17563 lt_cv_path_LDCXX=$lt_cv_path_LD
17564 lt_cv_path_LD=$lt_save_path_LD
17565 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17566 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17567fi # test "$_lt_caught_CXX_error" != yes
17568
17569ac_ext=c
17570ac_cpp='$CPP $CPPFLAGS'
17571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17573ac_compiler_gnu=$ac_cv_c_compiler_gnu
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587 ac_config_commands="$ac_config_commands libtool"
17588
17589
17590
17591
17592# Only expand once:
17593
17594
17595
17596
17597
17598# Configure libltdl
17599
17600
17601
17602
17603
17604
17605
cristy18304f92009-11-22 15:48:26 +000017606
cristy8b350f62009-11-15 23:12:43 +000017607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000017608$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017609if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017610 $as_echo_n "(cached) " >&6
17611else
17612
17613module=yes
17614eval libltdl_cv_shlibext=$shrext_cmds
17615
17616fi
cristy8b350f62009-11-15 23:12:43 +000017617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017618$as_echo "$libltdl_cv_shlibext" >&6; }
17619if test -n "$libltdl_cv_shlibext"; then
17620
17621cat >>confdefs.h <<_ACEOF
17622#define LT_MODULE_EXT "$libltdl_cv_shlibext"
17623_ACEOF
17624
17625fi
17626
cristy8b350f62009-11-15 23:12:43 +000017627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017628$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017629if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017630 $as_echo_n "(cached) " >&6
17631else
17632 lt_cv_module_path_var="$shlibpath_var"
17633fi
cristy8b350f62009-11-15 23:12:43 +000017634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000017635$as_echo "$lt_cv_module_path_var" >&6; }
17636if test -n "$lt_cv_module_path_var"; then
17637
17638cat >>confdefs.h <<_ACEOF
17639#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
17640_ACEOF
17641
17642fi
17643
cristy8b350f62009-11-15 23:12:43 +000017644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017645$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017646if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017647 $as_echo_n "(cached) " >&6
17648else
17649 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
17650fi
cristy8b350f62009-11-15 23:12:43 +000017651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017652$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
17653if test -n "$lt_cv_sys_dlsearch_path"; then
17654 sys_dlsearch_path=
17655 for dir in $lt_cv_sys_dlsearch_path; do
17656 if test -z "$sys_dlsearch_path"; then
17657 sys_dlsearch_path="$dir"
17658 else
17659 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
17660 fi
17661 done
17662
17663cat >>confdefs.h <<_ACEOF
17664#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
17665_ACEOF
17666
17667fi
17668
17669
17670LT_DLLOADERS=
17671
17672
17673ac_ext=c
17674ac_cpp='$CPP $CPPFLAGS'
17675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17677ac_compiler_gnu=$ac_cv_c_compiler_gnu
17678
17679
17680LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000017681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017682$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017683if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017684 $as_echo_n "(cached) " >&6
17685else
17686 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000017687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017688/* end confdefs.h. */
17689
17690/* Override any GCC internal prototype to avoid an error.
17691 Use char because int might match the return type of a GCC
17692 builtin and then its argument prototype would still apply. */
17693#ifdef __cplusplus
17694extern "C"
17695#endif
17696char dlopen ();
17697int
17698main ()
17699{
17700return dlopen ();
17701 ;
17702 return 0;
17703}
17704_ACEOF
17705for ac_lib in '' dl; do
17706 if test -z "$ac_lib"; then
17707 ac_res="none required"
17708 else
17709 ac_res=-l$ac_lib
17710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17711 fi
cristy8b350f62009-11-15 23:12:43 +000017712 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017713 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000017714fi
cristy8b350f62009-11-15 23:12:43 +000017715rm -f core conftest.err conftest.$ac_objext \
17716 conftest$ac_exeext
17717 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017718 break
17719fi
17720done
cristy8b350f62009-11-15 23:12:43 +000017721if test "${ac_cv_search_dlopen+set}" = set; then :
17722
cristy3ed852e2009-09-05 21:47:34 +000017723else
17724 ac_cv_search_dlopen=no
17725fi
17726rm conftest.$ac_ext
17727LIBS=$ac_func_search_save_LIBS
17728fi
cristy8b350f62009-11-15 23:12:43 +000017729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017730$as_echo "$ac_cv_search_dlopen" >&6; }
17731ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000017732if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000017733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17734
cristy8b350f62009-11-15 23:12:43 +000017735$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017736
17737 if test "$ac_cv_search_dlopen" != "none required" ; then
17738 LIBADD_DLOPEN="-ldl"
17739 fi
17740 libltdl_cv_lib_dl_dlopen="yes"
17741 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17742else
cristy8b350f62009-11-15 23:12:43 +000017743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017744/* end confdefs.h. */
17745#if HAVE_DLFCN_H
17746# include <dlfcn.h>
17747#endif
17748
17749int
17750main ()
17751{
17752dlopen(0, 0);
17753 ;
17754 return 0;
17755}
17756_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017757if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017758
cristy8b350f62009-11-15 23:12:43 +000017759$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017760
17761 libltdl_cv_func_dlopen="yes"
17762 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17763else
cristy8b350f62009-11-15 23:12:43 +000017764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017765$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017766if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017767 $as_echo_n "(cached) " >&6
17768else
17769 ac_check_lib_save_LIBS=$LIBS
17770LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017772/* end confdefs.h. */
17773
17774/* Override any GCC internal prototype to avoid an error.
17775 Use char because int might match the return type of a GCC
17776 builtin and then its argument prototype would still apply. */
17777#ifdef __cplusplus
17778extern "C"
17779#endif
17780char dlopen ();
17781int
17782main ()
17783{
17784return dlopen ();
17785 ;
17786 return 0;
17787}
17788_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017789if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017790 ac_cv_lib_svld_dlopen=yes
17791else
cristy8b350f62009-11-15 23:12:43 +000017792 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000017793fi
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 +000017796LIBS=$ac_check_lib_save_LIBS
17797fi
cristy8b350f62009-11-15 23:12:43 +000017798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017799$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017800if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017801
cristy8b350f62009-11-15 23:12:43 +000017802$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017803
17804 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
17805 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17806fi
17807
17808fi
cristy8b350f62009-11-15 23:12:43 +000017809rm -f core conftest.err conftest.$ac_objext \
17810 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017811fi
17812
17813if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17814then
17815 lt_save_LIBS="$LIBS"
17816 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000017817 for ac_func in dlerror
17818do :
17819 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
17820if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017821 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017822#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000017823_ACEOF
17824
17825fi
17826done
17827
17828 LIBS="$lt_save_LIBS"
17829fi
17830
17831
17832LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000017833ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17834if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017835
cristy8b350f62009-11-15 23:12:43 +000017836$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017837
17838 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17839else
cristy8b350f62009-11-15 23:12:43 +000017840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017841$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017842if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017843 $as_echo_n "(cached) " >&6
17844else
17845 ac_check_lib_save_LIBS=$LIBS
17846LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017848/* end confdefs.h. */
17849
17850/* Override any GCC internal prototype to avoid an error.
17851 Use char because int might match the return type of a GCC
17852 builtin and then its argument prototype would still apply. */
17853#ifdef __cplusplus
17854extern "C"
17855#endif
17856char shl_load ();
17857int
17858main ()
17859{
17860return shl_load ();
17861 ;
17862 return 0;
17863}
17864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017865if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017866 ac_cv_lib_dld_shl_load=yes
17867else
cristy8b350f62009-11-15 23:12:43 +000017868 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000017869fi
cristy8b350f62009-11-15 23:12:43 +000017870rm -f core conftest.err conftest.$ac_objext \
17871 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017872LIBS=$ac_check_lib_save_LIBS
17873fi
cristy8b350f62009-11-15 23:12:43 +000017874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000017875$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017876if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017877
cristy8b350f62009-11-15 23:12:43 +000017878$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017879
17880 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17881 LIBADD_SHL_LOAD="-ldld"
17882fi
17883
17884fi
17885
17886
17887
17888case $host_os in
17889darwin[1567].*)
17890# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000017891 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
17892if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017893
cristy8b350f62009-11-15 23:12:43 +000017894$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017895
17896 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
17897fi
17898
17899 ;;
17900beos*)
17901 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
17902 ;;
17903cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000017904 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
17905"
17906if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
17907 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000017908else
cristy8b350f62009-11-15 23:12:43 +000017909 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000017910fi
17911
cristy3ed852e2009-09-05 21:47:34 +000017912cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017913#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000017914_ACEOF
17915
cristy3ed852e2009-09-05 21:47:34 +000017916 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
17917 ;;
17918esac
17919
cristy8b350f62009-11-15 23:12:43 +000017920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017921$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017922if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017923 $as_echo_n "(cached) " >&6
17924else
17925 ac_check_lib_save_LIBS=$LIBS
17926LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017928/* end confdefs.h. */
17929
17930/* Override any GCC internal prototype to avoid an error.
17931 Use char because int might match the return type of a GCC
17932 builtin and then its argument prototype would still apply. */
17933#ifdef __cplusplus
17934extern "C"
17935#endif
17936char dld_link ();
17937int
17938main ()
17939{
17940return dld_link ();
17941 ;
17942 return 0;
17943}
17944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017946 ac_cv_lib_dld_dld_link=yes
17947else
cristy8b350f62009-11-15 23:12:43 +000017948 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000017949fi
cristy8b350f62009-11-15 23:12:43 +000017950rm -f core conftest.err conftest.$ac_objext \
17951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017952LIBS=$ac_check_lib_save_LIBS
17953fi
cristy8b350f62009-11-15 23:12:43 +000017954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000017955$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017956if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017957
cristy8b350f62009-11-15 23:12:43 +000017958$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017959
17960 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
17961fi
17962
17963
17964
17965
17966LT_DLPREOPEN=
17967if test -n "$LT_DLLOADERS"
17968then
17969 for lt_loader in $LT_DLLOADERS; do
17970 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
17971 done
17972
cristy8b350f62009-11-15 23:12:43 +000017973$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017974
17975fi
17976
17977
17978LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
17979
17980
17981ac_ext=c
17982ac_cpp='$CPP $CPPFLAGS'
17983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17985ac_compiler_gnu=$ac_cv_c_compiler_gnu
17986
17987
cristy8b350f62009-11-15 23:12:43 +000017988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000017989$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017990if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017991 $as_echo_n "(cached) " >&6
17992else
17993 lt_cv_sys_symbol_underscore=no
17994 cat > conftest.$ac_ext <<_LT_EOF
17995void nm_test_func(){}
17996int main(){nm_test_func;return 0;}
17997_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000017998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017999 (eval $ac_compile) 2>&5
18000 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18002 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000018003 # Now try to grab the symbols.
18004 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000018005 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 +000018006 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18007 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18009 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000018010 # See whether the symbols have a leading underscore.
18011 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18012 lt_cv_sys_symbol_underscore=yes
18013 else
18014 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18015 :
18016 else
18017 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18018 fi
18019 fi
18020 else
18021 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18022 fi
18023 else
18024 echo "configure: failed program was:" >&5
18025 cat conftest.c >&5
18026 fi
18027 rm -rf conftest*
18028
18029fi
cristy8b350f62009-11-15 23:12:43 +000018030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018031$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18032 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18033
18034
18035if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18036 if test x"$libltdl_cv_func_dlopen" = xyes ||
18037 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000018038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000018039$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018040if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018041 $as_echo_n "(cached) " >&6
18042else
18043 libltdl_cv_need_uscore=unknown
18044 save_LIBS="$LIBS"
18045 LIBS="$LIBS $LIBADD_DLOPEN"
18046 if test "$cross_compiling" = yes; then :
18047 libltdl_cv_need_uscore=cross
18048else
18049 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18050 lt_status=$lt_dlunknown
18051 cat > conftest.$ac_ext <<_LT_EOF
cristy47fa4622009-12-28 01:52:31 +000018052#line 18052 "configure"
cristy3ed852e2009-09-05 21:47:34 +000018053#include "confdefs.h"
18054
18055#if HAVE_DLFCN_H
18056#include <dlfcn.h>
18057#endif
18058
18059#include <stdio.h>
18060
18061#ifdef RTLD_GLOBAL
18062# define LT_DLGLOBAL RTLD_GLOBAL
18063#else
18064# ifdef DL_GLOBAL
18065# define LT_DLGLOBAL DL_GLOBAL
18066# else
18067# define LT_DLGLOBAL 0
18068# endif
18069#endif
18070
18071/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18072 find out it does not work in some platform. */
18073#ifndef LT_DLLAZY_OR_NOW
18074# ifdef RTLD_LAZY
18075# define LT_DLLAZY_OR_NOW RTLD_LAZY
18076# else
18077# ifdef DL_LAZY
18078# define LT_DLLAZY_OR_NOW DL_LAZY
18079# else
18080# ifdef RTLD_NOW
18081# define LT_DLLAZY_OR_NOW RTLD_NOW
18082# else
18083# ifdef DL_NOW
18084# define LT_DLLAZY_OR_NOW DL_NOW
18085# else
18086# define LT_DLLAZY_OR_NOW 0
18087# endif
18088# endif
18089# endif
18090# endif
18091#endif
18092
cristy18304f92009-11-22 15:48:26 +000018093void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000018094int main ()
18095{
18096 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18097 int status = $lt_dlunknown;
18098
18099 if (self)
18100 {
18101 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000018102 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000018103 /* dlclose (self); */
18104 }
18105 else
18106 puts (dlerror ());
18107
18108 return status;
18109}
18110_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018112 (eval $ac_link) 2>&5
18113 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18115 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000018116 (./conftest; exit; ) >&5 2>/dev/null
18117 lt_status=$?
18118 case x$lt_status in
18119 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
18120 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
18121 x$lt_dlunknown|x*) ;;
18122 esac
18123 else :
18124 # compilation failed
18125
18126 fi
18127fi
18128rm -fr conftest*
18129
18130 LIBS="$save_LIBS"
18131
18132fi
cristy8b350f62009-11-15 23:12:43 +000018133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018134$as_echo "$libltdl_cv_need_uscore" >&6; }
18135 fi
18136fi
18137
18138if test x"$libltdl_cv_need_uscore" = xyes; then
18139
cristy8b350f62009-11-15 23:12:43 +000018140$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018141
18142fi
18143
cristy8b350f62009-11-15 23:12:43 +000018144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018145$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018146if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018147 $as_echo_n "(cached) " >&6
18148else
18149 # PORTME does your system automatically load deplibs for dlopen?
18150 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18151 # For now, we just catch OSes we know something about -- in the
18152 # future, we'll try test this programmatically.
18153 lt_cv_sys_dlopen_deplibs=unknown
18154 case $host_os in
18155 aix3*|aix4.1.*|aix4.2.*)
18156 # Unknown whether this is true for these versions of AIX, but
18157 # we want this `case' here to explicitly catch those versions.
18158 lt_cv_sys_dlopen_deplibs=unknown
18159 ;;
18160 aix[4-9]*)
18161 lt_cv_sys_dlopen_deplibs=yes
18162 ;;
18163 amigaos*)
18164 case $host_cpu in
18165 powerpc)
18166 lt_cv_sys_dlopen_deplibs=no
18167 ;;
18168 esac
18169 ;;
18170 darwin*)
18171 # Assuming the user has installed a libdl from somewhere, this is true
18172 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
18173 lt_cv_sys_dlopen_deplibs=yes
18174 ;;
18175 freebsd* | dragonfly*)
18176 lt_cv_sys_dlopen_deplibs=yes
18177 ;;
cristy18304f92009-11-22 15:48:26 +000018178 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018179 # GNU and its variants, using gnu ld.so (Glibc)
18180 lt_cv_sys_dlopen_deplibs=yes
18181 ;;
18182 hpux10*|hpux11*)
18183 lt_cv_sys_dlopen_deplibs=yes
18184 ;;
18185 interix*)
18186 lt_cv_sys_dlopen_deplibs=yes
18187 ;;
18188 irix[12345]*|irix6.[01]*)
18189 # Catch all versions of IRIX before 6.2, and indicate that we don't
18190 # know how it worked for any of those versions.
18191 lt_cv_sys_dlopen_deplibs=unknown
18192 ;;
18193 irix*)
18194 # The case above catches anything before 6.2, and it's known that
18195 # at 6.2 and later dlopen does load deplibs.
18196 lt_cv_sys_dlopen_deplibs=yes
18197 ;;
18198 netbsd*)
18199 lt_cv_sys_dlopen_deplibs=yes
18200 ;;
18201 openbsd*)
18202 lt_cv_sys_dlopen_deplibs=yes
18203 ;;
18204 osf[1234]*)
18205 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18206 # it did *not* use an RPATH in a shared library to find objects the
18207 # library depends on, so we explicitly say `no'.
18208 lt_cv_sys_dlopen_deplibs=no
18209 ;;
18210 osf5.0|osf5.0a|osf5.1)
18211 # dlopen *does* load deplibs and with the right loader patch applied
18212 # it even uses RPATH in a shared library to search for shared objects
18213 # that the library depends on, but there's no easy way to know if that
18214 # patch is installed. Since this is the case, all we can really
18215 # say is unknown -- it depends on the patch being installed. If
18216 # it is, this changes to `yes'. Without it, it would be `no'.
18217 lt_cv_sys_dlopen_deplibs=unknown
18218 ;;
18219 osf*)
18220 # the two cases above should catch all versions of osf <= 5.1. Read
18221 # the comments above for what we know about them.
18222 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18223 # is used to find them so we can finally say `yes'.
18224 lt_cv_sys_dlopen_deplibs=yes
18225 ;;
18226 qnx*)
18227 lt_cv_sys_dlopen_deplibs=yes
18228 ;;
18229 solaris*)
18230 lt_cv_sys_dlopen_deplibs=yes
18231 ;;
18232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18233 libltdl_cv_sys_dlopen_deplibs=yes
18234 ;;
18235 esac
18236
18237fi
cristy8b350f62009-11-15 23:12:43 +000018238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018239$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18240if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18241
cristy8b350f62009-11-15 23:12:43 +000018242$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018243
18244fi
18245
18246:
18247
cristy3ed852e2009-09-05 21:47:34 +000018248for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000018249do :
18250 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18251"
18252if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018253 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018254#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000018255_ACEOF
18256
18257fi
18258
18259done
18260
18261
cristy8b350f62009-11-15 23:12:43 +000018262ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000018263# include <argz.h>
18264#endif
cristy8b350f62009-11-15 23:12:43 +000018265"
18266if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018267
18268cat >>confdefs.h <<_ACEOF
18269#define HAVE_ERROR_T 1
18270_ACEOF
18271
18272
18273else
18274
cristy8b350f62009-11-15 23:12:43 +000018275$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018276
18277
cristy8b350f62009-11-15 23:12:43 +000018278$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018279
18280fi
18281
18282
18283ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000018284for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
18285 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000018286do :
18287 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18288ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18289eval as_val=\$$as_ac_var
18290 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018291 cat >>confdefs.h <<_ACEOF
18292#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18293_ACEOF
18294
18295else
18296 ARGZ_H=argz.h;
18297
18298 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18299
18300fi
18301done
18302
18303
cristy8b350f62009-11-15 23:12:43 +000018304if test -z "$ARGZ_H"; then :
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018306$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018307if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018308 $as_echo_n "(cached) " >&6
18309else
18310 case $host_os in #(
18311 *cygwin*)
18312 lt_cv_sys_argz_works=no
18313 if test "$cross_compiling" != no; then
18314 lt_cv_sys_argz_works="guessing no"
18315 else
18316 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
18317 save_IFS=$IFS
18318 IFS=-.
18319 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
18320 IFS=$save_IFS
18321 lt_os_major=${2-0}
18322 lt_os_minor=${3-0}
18323 lt_os_micro=${4-0}
18324 if test "$lt_os_major" -gt 1 \
18325 || { test "$lt_os_major" -eq 1 \
18326 && { test "$lt_os_minor" -gt 5 \
18327 || { test "$lt_os_minor" -eq 5 \
18328 && test "$lt_os_micro" -gt 24; }; }; }; then
18329 lt_cv_sys_argz_works=yes
18330 fi
18331 fi
18332 ;; #(
18333 *) lt_cv_sys_argz_works=yes ;;
18334 esac
18335fi
cristy8b350f62009-11-15 23:12:43 +000018336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018337$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018338 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018339
cristy8b350f62009-11-15 23:12:43 +000018340$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018341
18342else
18343 ARGZ_H=argz.h
18344
18345
18346 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18347
18348fi
cristy3ed852e2009-09-05 21:47:34 +000018349fi
18350
18351
18352
cristy8b350f62009-11-15 23:12:43 +000018353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018354$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018355if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018356 $as_echo_n "(cached) " >&6
18357else
18358 if test -n "$lt_cv_sys_global_symbol_pipe"; then
18359 libltdl_cv_preloaded_symbols=yes
18360 else
18361 libltdl_cv_preloaded_symbols=no
18362 fi
18363
18364fi
cristy8b350f62009-11-15 23:12:43 +000018365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018366$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
18367if test x"$libltdl_cv_preloaded_symbols" = xyes; then
18368
cristy8b350f62009-11-15 23:12:43 +000018369$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018370
18371fi
18372
18373# Set options
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000018386if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018387 withval=$with_included_ltdl;
18388fi
18389
18390
18391if test "x$with_included_ltdl" != xyes; then
18392 # We are not being forced to use the included libltdl sources, so
18393 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000018394 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000018395
cristy8b350f62009-11-15 23:12:43 +000018396"
18397if test "x$ac_cv_header_ltdl_h" = x""yes; then :
18398 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 +000018399 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000018400"
18401if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000018403$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018404if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018405 $as_echo_n "(cached) " >&6
18406else
18407 ac_check_lib_save_LIBS=$LIBS
18408LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018410/* end confdefs.h. */
18411
18412/* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
18415#ifdef __cplusplus
18416extern "C"
18417#endif
18418char lt_dladvise_preload ();
18419int
18420main ()
18421{
18422return lt_dladvise_preload ();
18423 ;
18424 return 0;
18425}
18426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018427if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018428 ac_cv_lib_ltdl_lt_dladvise_preload=yes
18429else
cristy8b350f62009-11-15 23:12:43 +000018430 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000018431fi
cristy8b350f62009-11-15 23:12:43 +000018432rm -f core conftest.err conftest.$ac_objext \
18433 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018434LIBS=$ac_check_lib_save_LIBS
18435fi
cristy8b350f62009-11-15 23:12:43 +000018436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000018437$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018438if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018439 with_included_ltdl=no
18440else
18441 with_included_ltdl=yes
18442fi
18443
18444else
18445 with_included_ltdl=yes
18446fi
18447
18448else
18449 with_included_ltdl=yes
18450fi
18451
18452
18453fi
18454
18455
18456
18457
18458# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000018459if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018460 withval=$with_ltdl_include;
18461fi
18462
18463
18464if test -n "$with_ltdl_include"; then
18465 if test -f "$with_ltdl_include/ltdl.h"; then :
18466 else
cristy8b350f62009-11-15 23:12:43 +000018467 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018468 fi
18469else
18470 with_ltdl_include=no
18471fi
18472
18473
18474# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000018475if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018476 withval=$with_ltdl_lib;
18477fi
18478
18479
18480if test -n "$with_ltdl_lib"; then
18481 if test -f "$with_ltdl_lib/libltdl.la"; then :
18482 else
cristy8b350f62009-11-15 23:12:43 +000018483 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018484 fi
18485else
18486 with_ltdl_lib=no
18487fi
18488
18489case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
18490 ,yes,no,no,)
18491 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000018492 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000018493 "") enable_ltdl_convenience=yes
18494 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
18495esac
18496LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
18497LTDLDEPS=$LIBLTDL
18498LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
18499
18500
18501
18502
18503
18504# For backwards non-gettext consistent compatibility...
18505INCLTDL="$LTDLINCL"
18506
18507
18508 ;;
18509 ,no,no,no,)
18510 # If the included ltdl is not to be used, then use the
18511 # preinstalled libltdl we found.
18512
cristy8b350f62009-11-15 23:12:43 +000018513$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018514
18515 LIBLTDL=-lltdl
18516 LTDLDEPS=
18517 LTDLINCL=
18518 ;;
18519 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000018520 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018521 ;;
18522 *) with_included_ltdl=no
18523 LIBLTDL="-L$with_ltdl_lib -lltdl"
18524 LTDLDEPS=
18525 LTDLINCL="-I$with_ltdl_include"
18526 ;;
18527esac
18528INCLTDL="$LTDLINCL"
18529
18530# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000018531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000018532$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018534$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000018536$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018538$as_echo "$LIBLTDL" >&6; }
18539
18540
18541
18542# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000018543if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018544 enableval=$enable_ltdl_install;
18545fi
18546
18547
18548case ,${enable_ltdl_install},${enable_ltdl_convenience} in
18549 *yes*) ;;
18550 *) enable_ltdl_convenience=yes ;;
18551esac
18552
18553 if test x"${enable_ltdl_install-no}" != xno; then
18554 INSTALL_LTDL_TRUE=
18555 INSTALL_LTDL_FALSE='#'
18556else
18557 INSTALL_LTDL_TRUE='#'
18558 INSTALL_LTDL_FALSE=
18559fi
18560
18561 if test x"${enable_ltdl_convenience-no}" != xno; then
18562 CONVENIENCE_LTDL_TRUE=
18563 CONVENIENCE_LTDL_FALSE='#'
18564else
18565 CONVENIENCE_LTDL_TRUE='#'
18566 CONVENIENCE_LTDL_FALSE=
18567fi
18568
18569
18570
18571
18572
18573
cristy18304f92009-11-22 15:48:26 +000018574
cristy3ed852e2009-09-05 21:47:34 +000018575# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
18576# the user used. This is so that ltdl.h can pick up the parent projects
18577# config.h file, The first file in AC_CONFIG_HEADERS must contain the
18578# definitions required by ltdl.c.
18579# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
18580
18581
18582
cristy3ed852e2009-09-05 21:47:34 +000018583for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000018584do :
18585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18586ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18587"
18588eval as_val=\$$as_ac_Header
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_header" | $as_tr_cpp` 1
18592_ACEOF
18593
18594fi
18595
18596done
18597
18598
cristy3ed852e2009-09-05 21:47:34 +000018599for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000018600do :
18601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18602ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18603eval as_val=\$$as_ac_var
18604 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018605 cat >>confdefs.h <<_ACEOF
18606#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18607_ACEOF
18608
18609else
18610
18611
18612 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
18613
18614fi
18615done
18616
cristy3ed852e2009-09-05 21:47:34 +000018617for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000018618do :
18619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18620ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18621eval as_val=\$$as_ac_var
18622 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018623 cat >>confdefs.h <<_ACEOF
18624#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18625_ACEOF
18626
18627else
18628
18629
18630 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
18631
18632fi
18633done
18634
18635
18636
18637cat >>confdefs.h <<_ACEOF
18638#define LT_LIBEXT "$libext"
18639_ACEOF
18640
18641
18642name=ltdl
18643LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
18644
18645
18646
18647
18648
18649
18650
18651
18652# Only expand once:
18653
18654
18655
18656# Check to see if building shared libraries
18657libtool_build_shared_libs='no'
18658if test "$enable_shared" = 'yes'; then
18659 libtool_build_shared_libs='yes'
18660fi
18661
18662# Check to see if building static libraries
18663libtool_build_static_libs='no'
18664if test "$enable_static" = 'yes'; then
18665 libtool_build_static_libs='yes'
18666fi
18667
18668# MinGW and Cygwin can't build C++ DLLs which support exceptions.
18669if test "${StaticCplusPlusLibraries}" = 'yes'; then
18670 LTCXXLIBOPTS='--static'
18671
18672fi
18673
18674#
18675# Enable support for building loadable modules
18676#
18677
18678# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000018679if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018680 withval=$with_modules; with_modules=$withval
18681else
18682 with_modules=$libtool_build_shared_libs
18683fi
18684
18685
18686# Only allow building loadable modules if we are building shared libraries
18687if test "$with_modules" != 'no' ; then
18688 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000018689 { $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 +000018690$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
18691 with_modules='no'
18692 fi
18693fi
18694if test "$with_modules" != 'no'; then
18695
cristy8b350f62009-11-15 23:12:43 +000018696$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018697
18698fi
18699 if test "$with_modules" != 'no'; then
18700 WITH_MODULES_TRUE=
18701 WITH_MODULES_FALSE='#'
18702else
18703 WITH_MODULES_TRUE='#'
18704 WITH_MODULES_FALSE=
18705fi
18706
18707
18708# Enable building/use of libltdl if we are building shared libraries regardless
18709# of whether modules are built or not.
18710with_ltdl='no'
18711if test "$libtool_build_shared_libs" != 'no'; then
18712 with_ltdl='yes'
18713fi
18714
18715 if test "$with_ltdl" != 'no'; then
18716 WITH_LTDL_TRUE=
18717 WITH_LTDL_FALSE='#'
18718else
18719 WITH_LTDL_TRUE='#'
18720 WITH_LTDL_FALSE=
18721fi
18722
18723if test "$with_ltdl" != 'no'; then
18724
cristy8b350f62009-11-15 23:12:43 +000018725$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018726
18727
18728 # Set DLLDFLAGS
18729 if test X"$enable_shared" = Xyes; then
18730 DLLDFLAGS=-export-dynamic
18731
18732 fi
18733fi
18734
18735# Enable build using delegate libraries built in subdirectories rather than installed
18736# delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
18737# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000018738if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018739 enableval=$enable_delegate_build; enable_delegate_build=$enableval
18740else
18741 enable_delegate_build='no'
18742fi
18743
18744
18745# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000018746if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018747 enableval=$enable_deprecated; enable_deprecated=$enableval
18748else
18749 enable_deprecated='no'
18750fi
18751
18752
18753if test "$enable_deprecated" = 'yes'; then
18754
cristy8b350f62009-11-15 23:12:43 +000018755$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018756
18757else
18758 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
18759fi
18760
18761# Build a version of ImageMagick which operates uninstalled.
18762# Used to build distributions located via MAGICK_HOME / executable path
18763# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000018764if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018765 enableval=$enable_installed; enable_installed=$enableval
18766else
18767 enable_installed='yes'
18768fi
18769
18770
18771if test "$enable_installed" = 'yes'; then
18772
cristy8b350f62009-11-15 23:12:43 +000018773$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018774
18775else
18776 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
18777fi
18778
18779# Permit enciphering and deciphering image pixels.
18780# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000018781if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018782 enableval=$enable_cipher; enable_cipher=$enableval
18783else
18784 enable_cipher='yes'
18785fi
18786
18787
18788if test "$enable_cipher" = 'yes'; then
18789
cristy8b350f62009-11-15 23:12:43 +000018790$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018791
18792fi
18793
18794# Build an embeddable version of ImageMagick.
18795# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000018796if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018797 enableval=$enable_embeddable; enable_embeddable=$enableval
18798else
18799 enable_embeddable='no'
18800fi
18801
18802
18803if test "$enable_embeddable" = 'yes'; then
18804
cristy8b350f62009-11-15 23:12:43 +000018805$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018806
18807fi
18808
18809# Build a high dynamic range version of ImageMagick.
18810# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000018811if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018812 enableval=$enable_hdri; enable_hdri=$enableval
18813else
18814 enable_hdri='no'
18815fi
18816
18817
18818MAGICK_HDRI=""
18819if test "$enable_hdri" = 'yes'; then
18820 MAGICK_HDRI="HDRI"
18821
cristy8b350f62009-11-15 23:12:43 +000018822$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018823
18824fi
18825
cristy3ed852e2009-09-05 21:47:34 +000018826# Build a version of ImageMagick with assert statements.
18827# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000018828if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018829 enableval=$enable_assert; enable_assert=$enableval
18830else
18831 enable_assert='yes'
18832fi
18833
18834
18835if test "$enable_assert" = 'no'; then
18836
cristy8b350f62009-11-15 23:12:43 +000018837$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018838
18839fi
18840
18841# Add configure option --enable-maintainer-mode which enables dependency
18842# checking and generation useful to package maintainers. This is made an
18843# option to avoid confusing end users.
18844
cristy8b350f62009-11-15 23:12:43 +000018845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000018846$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18847 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000018848if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018849 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18850else
18851 USE_MAINTAINER_MODE=no
18852fi
18853
cristy8b350f62009-11-15 23:12:43 +000018854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000018855$as_echo "$USE_MAINTAINER_MODE" >&6; }
18856 if test $USE_MAINTAINER_MODE = yes; then
18857 MAINTAINER_MODE_TRUE=
18858 MAINTAINER_MODE_FALSE='#'
18859else
18860 MAINTAINER_MODE_TRUE='#'
18861 MAINTAINER_MODE_FALSE=
18862fi
18863
18864 MAINT=$MAINTAINER_MODE_TRUE
18865
18866
18867
18868
18869# Enable ccmalloc memory debugging support
18870# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000018871if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018872 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
18873else
18874 enable_ccmalloc='no'
18875fi
18876
18877
18878# Enable Electric Fence memory debugging support
18879# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000018880if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018881 enableval=$enable_efence; enable_efence=$enableval
18882else
18883 enable_efence='no'
18884fi
18885
18886
18887# Enable prof-based profiling support
18888# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000018889if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018890 enableval=$enable_prof; enable_prof=$enableval
18891else
18892 enable_prof='no'
18893fi
18894
18895
18896# Enable gprof-based profiling support
18897# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000018898if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018899 enableval=$enable_gprof; enable_gprof=$enableval
18900else
18901 enable_gprof='no'
18902fi
18903
18904
18905# Enable gcov-based profiling support
18906# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000018907if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018908 enableval=$enable_gcov; enable_gcov=$enableval
18909else
18910 enable_gcov='no'
18911fi
18912
18913
18914enable_profiling='no'
18915if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
18916 enable_profiling='yes'
18917 if test "$libtool_build_shared_libs" = 'yes'; then
18918 echo "Warning: Can not profile code using shared libraries"
18919 fi
18920fi
18921
18922# Magick API method prefix
18923
18924# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000018925if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018926 withval=$with_method_prefix; with_method_prefix=$enableval
18927else
18928 with_method_prefix=''
18929fi
18930
18931
18932if test "$with_method_prefix" != ''; then
18933
18934cat >>confdefs.h <<_ACEOF
18935#define NAMESPACE_PREFIX $with_method_prefix
18936_ACEOF
18937
18938fi
18939
18940# Number of bits in a Quantum
18941
18942# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000018943if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018944 withval=$with_quantum_depth; with_quantum_depth=$withval
18945else
18946 with_quantum_depth=16
18947fi
18948
18949
18950if test "$with_quantum_depth" != '8'; then
18951 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
18952fi
18953
18954case "${with_quantum_depth}" in
18955 8 ) ;;
18956 16 ) ;;
18957 32 ) ;;
18958 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000018959 * ) { as_fn_set_status 16
18960as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000018961esac
18962QUANTUM_DEPTH="$with_quantum_depth"
18963
18964cat >>confdefs.h <<_ACEOF
18965#define QUANTUM_DEPTH $QUANTUM_DEPTH
18966_ACEOF
18967
18968
18969# Set pixel cache threshold
18970
18971# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000018972if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018973 withval=$with_cache; with_cache=$withval
18974else
18975 with_cache=''
18976fi
18977
18978
18979if test "$with_cache" != ''; then
18980
18981cat >>confdefs.h <<_ACEOF
18982#define PixelCacheThreshold $with_cache
18983_ACEOF
18984
18985 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
18986fi
18987
18988# Disable/Enable support for full delegate paths
18989
18990# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000018991if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018992 withval=$with_frozenpaths; with_frozenpaths=$withval
18993else
18994 with_frozenpaths='no'
18995fi
18996
18997
18998# Enable build/install of Magick++
18999
19000# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000019001if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019002 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
19003else
19004 with_magick_plus_plus='yes'
19005fi
19006
19007
19008# Disable build/install of PerlMagick.
19009
19010# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000019011if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019012 withval=$with_perl; with_perl=$withval
19013else
19014 with_perl=$libtool_build_shared_libs
19015fi
19016
19017
19018# Options to pass when configuring PerlMagick
19019
19020# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000019021if test "${with_perl_options+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019022 withval=$with_perl_options;
19023fi
19024
19025
19026PERL_MAKE_OPTIONS=$with_perl_options
19027
19028
19029
19030# Enable umem, object-caching memory allocation library.
19031
19032# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000019033if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019034 withval=$with_umem; with_umem=$withval
19035else
19036 with_umem='no'
19037fi
19038
19039if test "$with_umem" != 'yes' ; then
19040 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19041fi
19042
19043#
19044# Specify path to shared libstdc++ if not in normal location
19045#
19046
19047# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000019048if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019049 withval=$with_libstdc; with_libstdc=$withval
19050else
19051 with_libstdc=''
19052fi
19053
19054
19055if test "$with_libstdc" != ''; then
19056 if test -d "$with_libstdc"; then
19057 LIBSTDCLDFLAGS="-L$with_libstdc"
19058 fi
19059fi
19060
19061
19062# Does gcc required -traditional?
19063if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000019064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019065$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019066if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019067 $as_echo_n "(cached) " >&6
19068else
19069 ac_pattern="Autoconf.*'x'"
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 <sgtty.h>
19073Autoconf TIOCGETP
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
19078else
19079 ac_cv_prog_gcc_traditional=no
19080fi
19081rm -f conftest*
19082
19083
19084 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000019085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019086/* end confdefs.h. */
19087#include <termio.h>
19088Autoconf TCGETA
19089_ACEOF
19090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019091 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019092 ac_cv_prog_gcc_traditional=yes
19093fi
19094rm -f conftest*
19095
19096 fi
19097fi
cristy8b350f62009-11-15 23:12:43 +000019098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019099$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19100 if test $ac_cv_prog_gcc_traditional = yes; then
19101 CC="$CC -traditional"
19102 fi
19103fi
19104
19105
19106########
19107#
19108# Set defines required to build DLLs and modules using MinGW
19109#
19110########
19111# These options are set for multi-thread DLL module build
19112# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
19113# module: _DLL
19114# executable/Magick++: _DLL _MAGICKMOD_
19115MODULE_EXTRA_CPPFLAGS=''
19116LIBRARY_EXTRA_CPPFLAGS=''
19117if test "${native_win32_build}" = 'yes'; then
19118 if test "${libtool_build_shared_libs}" = 'yes'; then
19119 CPPFLAGS="$CPPFLAGS -D_DLL"
19120 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
19121 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
19122 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19123 if test "$with_modules" = 'yes'; then
19124 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
19125 else
19126 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19127 fi
19128 else
19129 CPPFLAGS="$CPPFLAGS -D_LIB"
19130 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
19131 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
19132 fi
19133 if test "$with_threads" = 'yes'; then
19134 CPPFLAGS="$CPPFLAGS -D_MT"
19135 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
19136 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
19137 fi
19138fi
19139
19140
19141
19142# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000019143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000019144$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019145if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019146 $as_echo_n "(cached) " >&6
19147else
cristy8b350f62009-11-15 23:12:43 +000019148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019149/* end confdefs.h. */
19150#include <stdlib.h>
19151#include <stdarg.h>
19152#include <string.h>
19153#include <float.h>
19154
19155int
19156main ()
19157{
19158
19159 ;
19160 return 0;
19161}
19162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019163if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019164 ac_cv_header_stdc=yes
19165else
cristy8b350f62009-11-15 23:12:43 +000019166 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019167fi
cristy3ed852e2009-09-05 21:47:34 +000019168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19169
19170if test $ac_cv_header_stdc = yes; then
19171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019173/* end confdefs.h. */
19174#include <string.h>
19175
19176_ACEOF
19177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019178 $EGREP "memchr" >/dev/null 2>&1; then :
19179
cristy3ed852e2009-09-05 21:47:34 +000019180else
19181 ac_cv_header_stdc=no
19182fi
19183rm -f conftest*
19184
19185fi
19186
19187if test $ac_cv_header_stdc = yes; then
19188 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019190/* end confdefs.h. */
19191#include <stdlib.h>
19192
19193_ACEOF
19194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019195 $EGREP "free" >/dev/null 2>&1; then :
19196
cristy3ed852e2009-09-05 21:47:34 +000019197else
19198 ac_cv_header_stdc=no
19199fi
19200rm -f conftest*
19201
19202fi
19203
19204if test $ac_cv_header_stdc = yes; then
19205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000019206 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019207 :
19208else
cristy8b350f62009-11-15 23:12:43 +000019209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019210/* end confdefs.h. */
19211#include <ctype.h>
19212#include <stdlib.h>
19213#if ((' ' & 0x0FF) == 0x020)
19214# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19215# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19216#else
19217# define ISLOWER(c) \
19218 (('a' <= (c) && (c) <= 'i') \
19219 || ('j' <= (c) && (c) <= 'r') \
19220 || ('s' <= (c) && (c) <= 'z'))
19221# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19222#endif
19223
19224#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19225int
19226main ()
19227{
19228 int i;
19229 for (i = 0; i < 256; i++)
19230 if (XOR (islower (i), ISLOWER (i))
19231 || toupper (i) != TOUPPER (i))
19232 return 2;
19233 return 0;
19234}
19235_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019236if ac_fn_c_try_run "$LINENO"; then :
19237
cristy3ed852e2009-09-05 21:47:34 +000019238else
cristy8b350f62009-11-15 23:12:43 +000019239 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019240fi
cristy8b350f62009-11-15 23:12:43 +000019241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19242 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019243fi
19244
cristy3ed852e2009-09-05 21:47:34 +000019245fi
19246fi
cristy8b350f62009-11-15 23:12:43 +000019247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000019248$as_echo "$ac_cv_header_stdc" >&6; }
19249if test $ac_cv_header_stdc = yes; then
19250
cristy8b350f62009-11-15 23:12:43 +000019251$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019252
19253fi
19254
19255if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000019256 { $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 +000019257 header files. Compilation cannot proceed. Please install the ANSI C
19258 headers and rerun this script." >&5
19259$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19260 header files. Compilation cannot proceed. Please install the ANSI C
19261 headers and rerun this script." >&2;};
19262fi
cristy3ed852e2009-09-05 21:47:34 +000019263ac_header_dirent=no
19264for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19265 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000019266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000019267$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000019269 $as_echo_n "(cached) " >&6
19270else
cristy8b350f62009-11-15 23:12:43 +000019271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019272/* end confdefs.h. */
19273#include <sys/types.h>
19274#include <$ac_hdr>
19275
19276int
19277main ()
19278{
19279if ((DIR *) 0)
19280return 0;
19281 ;
19282 return 0;
19283}
19284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019285if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019286 eval "$as_ac_Header=yes"
19287else
cristy8b350f62009-11-15 23:12:43 +000019288 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000019289fi
cristy3ed852e2009-09-05 21:47:34 +000019290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19291fi
cristy8b350f62009-11-15 23:12:43 +000019292eval ac_res=\$$as_ac_Header
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000019294$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019295eval as_val=\$$as_ac_Header
19296 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019297 cat >>confdefs.h <<_ACEOF
19298#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19299_ACEOF
19300
19301ac_header_dirent=$ac_hdr; break
19302fi
19303
19304done
19305# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19306if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000019307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019308$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019309if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019310 $as_echo_n "(cached) " >&6
19311else
19312 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019314/* end confdefs.h. */
19315
19316/* Override any GCC internal prototype to avoid an error.
19317 Use char because int might match the return type of a GCC
19318 builtin and then its argument prototype would still apply. */
19319#ifdef __cplusplus
19320extern "C"
19321#endif
19322char opendir ();
19323int
19324main ()
19325{
19326return opendir ();
19327 ;
19328 return 0;
19329}
19330_ACEOF
19331for ac_lib in '' dir; do
19332 if test -z "$ac_lib"; then
19333 ac_res="none required"
19334 else
19335 ac_res=-l$ac_lib
19336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19337 fi
cristy8b350f62009-11-15 23:12:43 +000019338 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019339 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019340fi
cristy8b350f62009-11-15 23:12:43 +000019341rm -f core conftest.err conftest.$ac_objext \
19342 conftest$ac_exeext
19343 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019344 break
19345fi
19346done
cristy8b350f62009-11-15 23:12:43 +000019347if test "${ac_cv_search_opendir+set}" = set; then :
19348
cristy3ed852e2009-09-05 21:47:34 +000019349else
19350 ac_cv_search_opendir=no
19351fi
19352rm conftest.$ac_ext
19353LIBS=$ac_func_search_save_LIBS
19354fi
cristy8b350f62009-11-15 23:12:43 +000019355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019356$as_echo "$ac_cv_search_opendir" >&6; }
19357ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019358if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19360
19361fi
19362
19363else
cristy8b350f62009-11-15 23:12:43 +000019364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019365$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019366if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019367 $as_echo_n "(cached) " >&6
19368else
19369 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019371/* end confdefs.h. */
19372
19373/* Override any GCC internal prototype to avoid an error.
19374 Use char because int might match the return type of a GCC
19375 builtin and then its argument prototype would still apply. */
19376#ifdef __cplusplus
19377extern "C"
19378#endif
19379char opendir ();
19380int
19381main ()
19382{
19383return opendir ();
19384 ;
19385 return 0;
19386}
19387_ACEOF
19388for ac_lib in '' x; do
19389 if test -z "$ac_lib"; then
19390 ac_res="none required"
19391 else
19392 ac_res=-l$ac_lib
19393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19394 fi
cristy8b350f62009-11-15 23:12:43 +000019395 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019396 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019397fi
cristy8b350f62009-11-15 23:12:43 +000019398rm -f core conftest.err conftest.$ac_objext \
19399 conftest$ac_exeext
19400 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019401 break
19402fi
19403done
cristy8b350f62009-11-15 23:12:43 +000019404if test "${ac_cv_search_opendir+set}" = set; then :
19405
cristy3ed852e2009-09-05 21:47:34 +000019406else
19407 ac_cv_search_opendir=no
19408fi
19409rm conftest.$ac_ext
19410LIBS=$ac_func_search_save_LIBS
19411fi
cristy8b350f62009-11-15 23:12:43 +000019412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019413$as_echo "$ac_cv_search_opendir" >&6; }
19414ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019415if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19417
19418fi
19419
19420fi
19421
19422
19423# Check additional headers
cristy3ed852e2009-09-05 21:47:34 +000019424for 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 +000019425do :
19426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19427ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19428eval as_val=\$$as_ac_Header
19429 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019430 cat >>confdefs.h <<_ACEOF
19431#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19432_ACEOF
19433
19434fi
19435
19436done
19437
19438
19439########
19440#
19441# Checks for typedefs, structures, and compiler characteristics.
19442#
19443########
19444
cristy8b350f62009-11-15 23:12:43 +000019445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000019446$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019447if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019448 $as_echo_n "(cached) " >&6
19449else
cristy8b350f62009-11-15 23:12:43 +000019450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019451/* end confdefs.h. */
19452
19453#include <stdbool.h>
19454#ifndef bool
19455 "error: bool is not defined"
19456#endif
19457#ifndef false
19458 "error: false is not defined"
19459#endif
19460#if false
19461 "error: false is not 0"
19462#endif
19463#ifndef true
19464 "error: true is not defined"
19465#endif
19466#if true != 1
19467 "error: true is not 1"
19468#endif
19469#ifndef __bool_true_false_are_defined
19470 "error: __bool_true_false_are_defined is not defined"
19471#endif
19472
19473 struct s { _Bool s: 1; _Bool t; } s;
19474
19475 char a[true == 1 ? 1 : -1];
19476 char b[false == 0 ? 1 : -1];
19477 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19478 char d[(bool) 0.5 == true ? 1 : -1];
19479 bool e = &s;
19480 char f[(_Bool) 0.0 == false ? 1 : -1];
19481 char g[true];
19482 char h[sizeof (_Bool)];
19483 char i[sizeof s.t];
19484 enum { j = false, k = true, l = false * true, m = true * 256 };
19485 /* The following fails for
19486 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19487 _Bool n[m];
19488 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19489 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19490# if defined __xlc__ || defined __GNUC__
19491 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19492 reported by James Lemley on 2005-10-05; see
19493 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19494 This test is not quite right, since xlc is allowed to
19495 reject this program, as the initializer for xlcbug is
19496 not one of the forms that C requires support for.
19497 However, doing the test right would require a runtime
19498 test, and that would make cross-compilation harder.
19499 Let us hope that IBM fixes the xlc bug, and also adds
19500 support for this kind of constant expression. In the
19501 meantime, this test will reject xlc, which is OK, since
19502 our stdbool.h substitute should suffice. We also test
19503 this with GCC, where it should work, to detect more
19504 quickly whether someone messes up the test in the
19505 future. */
19506 char digs[] = "0123456789";
19507 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19508# endif
19509 /* Catch a bug in an HP-UX C compiler. See
19510 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19511 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19512 */
19513 _Bool q = true;
19514 _Bool *pq = &q;
19515
19516int
19517main ()
19518{
19519
19520 *pq |= q;
19521 *pq |= ! q;
19522 /* Refer to every declared value, to avoid compiler optimizations. */
19523 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19524 + !m + !n + !o + !p + !q + !pq);
19525
19526 ;
19527 return 0;
19528}
19529_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019530if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019531 ac_cv_header_stdbool_h=yes
19532else
cristy8b350f62009-11-15 23:12:43 +000019533 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000019534fi
cristy3ed852e2009-09-05 21:47:34 +000019535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19536fi
cristy8b350f62009-11-15 23:12:43 +000019537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000019538$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019539ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19540if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019541
19542cat >>confdefs.h <<_ACEOF
19543#define HAVE__BOOL 1
19544_ACEOF
19545
19546
19547fi
19548
19549if test $ac_cv_header_stdbool_h = yes; then
19550
cristy8b350f62009-11-15 23:12:43 +000019551$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019552
19553fi
19554
cristy8b350f62009-11-15 23:12:43 +000019555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019556$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019557if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019558 $as_echo_n "(cached) " >&6
19559else
cristy8b350f62009-11-15 23:12:43 +000019560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019561/* end confdefs.h. */
19562
19563int
19564main ()
19565{
19566
19567volatile int x;
19568int * volatile y = (int *) 0;
19569return !x && !y;
19570 ;
19571 return 0;
19572}
19573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019574if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019575 ac_cv_c_volatile=yes
19576else
cristy8b350f62009-11-15 23:12:43 +000019577 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000019578fi
cristy3ed852e2009-09-05 21:47:34 +000019579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19580fi
cristy8b350f62009-11-15 23:12:43 +000019581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019582$as_echo "$ac_cv_c_volatile" >&6; }
19583if test $ac_cv_c_volatile = no; then
19584
cristy8b350f62009-11-15 23:12:43 +000019585$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019586
19587fi
19588
cristy8b350f62009-11-15 23:12:43 +000019589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000019590$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019591if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019592 $as_echo_n "(cached) " >&6
19593else
cristy8b350f62009-11-15 23:12:43 +000019594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019595/* end confdefs.h. */
19596#define x(y) #y
19597
19598char *s = x(teststring);
19599_ACEOF
19600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019601 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019602 ac_cv_c_stringize=no
19603else
19604 ac_cv_c_stringize=yes
19605fi
19606rm -f conftest*
19607
19608fi
cristy8b350f62009-11-15 23:12:43 +000019609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000019610$as_echo "$ac_cv_c_stringize" >&6; }
19611if test $ac_cv_c_stringize = yes; then
19612
cristy8b350f62009-11-15 23:12:43 +000019613$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019614
19615fi
19616
cristy8b350f62009-11-15 23:12:43 +000019617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019618$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019619if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019620 $as_echo_n "(cached) " >&6
19621else
cristy8b350f62009-11-15 23:12:43 +000019622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019623/* end confdefs.h. */
19624#include <sys/types.h>
19625#include <sys/stat.h>
19626
19627#if defined S_ISBLK && defined S_IFDIR
19628extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19629#endif
19630
19631#if defined S_ISBLK && defined S_IFCHR
19632extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19633#endif
19634
19635#if defined S_ISLNK && defined S_IFREG
19636extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19637#endif
19638
19639#if defined S_ISSOCK && defined S_IFREG
19640extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19641#endif
19642
19643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019644if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019645 ac_cv_header_stat_broken=no
19646else
cristy8b350f62009-11-15 23:12:43 +000019647 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000019648fi
cristy3ed852e2009-09-05 21:47:34 +000019649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19650fi
cristy8b350f62009-11-15 23:12:43 +000019651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019652$as_echo "$ac_cv_header_stat_broken" >&6; }
19653if test $ac_cv_header_stat_broken = yes; then
19654
cristy8b350f62009-11-15 23:12:43 +000019655$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019656
19657fi
19658
cristy8b350f62009-11-15 23:12:43 +000019659{ $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 +000019660$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019661if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019662 $as_echo_n "(cached) " >&6
19663else
cristy8b350f62009-11-15 23:12:43 +000019664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019665/* end confdefs.h. */
19666#include <sys/types.h>
19667#include <sys/time.h>
19668#include <time.h>
19669
19670int
19671main ()
19672{
19673if ((struct tm *) 0)
19674return 0;
19675 ;
19676 return 0;
19677}
19678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019679if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019680 ac_cv_header_time=yes
19681else
cristy8b350f62009-11-15 23:12:43 +000019682 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000019683fi
cristy3ed852e2009-09-05 21:47:34 +000019684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19685fi
cristy8b350f62009-11-15 23:12:43 +000019686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000019687$as_echo "$ac_cv_header_time" >&6; }
19688if test $ac_cv_header_time = yes; then
19689
cristy8b350f62009-11-15 23:12:43 +000019690$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019691
19692fi
19693
cristy8b350f62009-11-15 23:12:43 +000019694{ $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 +000019695$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019696if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019697 $as_echo_n "(cached) " >&6
19698else
cristy8b350f62009-11-15 23:12:43 +000019699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019700/* end confdefs.h. */
19701#include <sys/types.h>
19702#include <time.h>
19703
19704int
19705main ()
19706{
19707struct tm tm;
19708 int *p = &tm.tm_sec;
19709 return !p;
19710 ;
19711 return 0;
19712}
19713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019714if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019715 ac_cv_struct_tm=time.h
19716else
cristy8b350f62009-11-15 23:12:43 +000019717 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000019718fi
cristy3ed852e2009-09-05 21:47:34 +000019719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19720fi
cristy8b350f62009-11-15 23:12:43 +000019721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000019722$as_echo "$ac_cv_struct_tm" >&6; }
19723if test $ac_cv_struct_tm = sys/time.h; then
19724
cristy8b350f62009-11-15 23:12:43 +000019725$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019726
19727fi
19728
cristy8b350f62009-11-15 23:12:43 +000019729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000019730$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019731if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019732 $as_echo_n "(cached) " >&6
19733else
19734 echo '#! /bin/cat
19735exit 69
19736' >conftest
19737chmod u+x conftest
19738(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
19739if test $? -ne 69; then
19740 ac_cv_sys_interpreter=yes
19741else
19742 ac_cv_sys_interpreter=no
19743fi
19744rm -f conftest
19745fi
cristy8b350f62009-11-15 23:12:43 +000019746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000019747$as_echo "$ac_cv_sys_interpreter" >&6; }
19748interpval=$ac_cv_sys_interpreter
19749
19750
19751# If the C compiler does not fully support the ANSI C qualifier const,
19752# define const to be empty.
cristy8b350f62009-11-15 23:12:43 +000019753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019754$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019755if test "${ac_cv_c_const+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019756 $as_echo_n "(cached) " >&6
19757else
cristy8b350f62009-11-15 23:12:43 +000019758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019759/* end confdefs.h. */
19760
19761int
19762main ()
19763{
19764/* FIXME: Include the comments suggested by Paul. */
19765#ifndef __cplusplus
19766 /* Ultrix mips cc rejects this. */
19767 typedef int charset[2];
19768 const charset cs;
19769 /* SunOS 4.1.1 cc rejects this. */
19770 char const *const *pcpcc;
19771 char **ppc;
19772 /* NEC SVR4.0.2 mips cc rejects this. */
19773 struct point {int x, y;};
19774 static struct point const zero = {0,0};
19775 /* AIX XL C 1.02.0.0 rejects this.
19776 It does not let you subtract one const X* pointer from another in
19777 an arm of an if-expression whose if-part is not a constant
19778 expression */
19779 const char *g = "string";
19780 pcpcc = &g + (g ? g-g : 0);
19781 /* HPUX 7.0 cc rejects these. */
19782 ++pcpcc;
19783 ppc = (char**) pcpcc;
19784 pcpcc = (char const *const *) ppc;
19785 { /* SCO 3.2v4 cc rejects this. */
19786 char *t;
19787 char const *s = 0 ? (char *) 0 : (char const *) 0;
19788
19789 *t++ = 0;
19790 if (s) return 0;
19791 }
19792 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19793 int x[] = {25, 17};
19794 const int *foo = &x[0];
19795 ++foo;
19796 }
19797 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19798 typedef const int *iptr;
19799 iptr p = 0;
19800 ++p;
19801 }
19802 { /* AIX XL C 1.02.0.0 rejects this saying
19803 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19804 struct s { int j; const int *ap[3]; };
19805 struct s *b; b->j = 5;
19806 }
19807 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19808 const int foo = 10;
19809 if (!foo) return 0;
19810 }
19811 return !cs[0] && !zero.x;
19812#endif
19813
19814 ;
19815 return 0;
19816}
19817_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019818if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019819 ac_cv_c_const=yes
19820else
cristy8b350f62009-11-15 23:12:43 +000019821 ac_cv_c_const=no
cristy3ed852e2009-09-05 21:47:34 +000019822fi
cristy3ed852e2009-09-05 21:47:34 +000019823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19824fi
cristy8b350f62009-11-15 23:12:43 +000019825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019826$as_echo "$ac_cv_c_const" >&6; }
19827if test $ac_cv_c_const = no; then
19828
cristy8b350f62009-11-15 23:12:43 +000019829$as_echo "#define const /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019830
19831fi
19832
19833
19834# If the C compiler supports the keyword inline, do nothing. Otherwise
19835# define inline to __inline__ or __inline if it accepts one of those,
19836# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000019837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019838$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019839if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019840 $as_echo_n "(cached) " >&6
19841else
19842 ac_cv_c_inline=no
19843for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000019844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019845/* end confdefs.h. */
19846#ifndef __cplusplus
19847typedef int foo_t;
19848static $ac_kw foo_t static_foo () {return 0; }
19849$ac_kw foo_t foo () {return 0; }
19850#endif
19851
19852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019853if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019854 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019855fi
cristy3ed852e2009-09-05 21:47:34 +000019856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19857 test "$ac_cv_c_inline" != no && break
19858done
19859
19860fi
cristy8b350f62009-11-15 23:12:43 +000019861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019862$as_echo "$ac_cv_c_inline" >&6; }
19863
cristy3ed852e2009-09-05 21:47:34 +000019864case $ac_cv_c_inline in
19865 inline | yes) ;;
19866 *)
19867 case $ac_cv_c_inline in
19868 no) ac_val=;;
19869 *) ac_val=$ac_cv_c_inline;;
19870 esac
19871 cat >>confdefs.h <<_ACEOF
19872#ifndef __cplusplus
19873#define inline $ac_val
19874#endif
19875_ACEOF
19876 ;;
19877esac
19878
19879
19880# If the C compiler supports the keyword restrict, do nothing. Otherwise
19881# define restrict to __restrict__ or __restrict if it accepts one of those,
19882# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000019883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000019884$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019885if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019886 $as_echo_n "(cached) " >&6
19887else
19888 ac_cv_c_restrict=no
19889 # The order here caters to the fact that C++ does not require restrict.
19890 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000019891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019892/* end confdefs.h. */
19893typedef int * int_ptr;
19894 int foo (int_ptr $ac_kw ip) {
19895 return ip[0];
19896 }
19897int
19898main ()
19899{
19900int s[1];
19901 int * $ac_kw t = s;
19902 t[0] = 0;
19903 return foo(t)
19904 ;
19905 return 0;
19906}
19907_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019908if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019909 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019910fi
cristy3ed852e2009-09-05 21:47:34 +000019911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19912 test "$ac_cv_c_restrict" != no && break
19913 done
19914
19915fi
cristy8b350f62009-11-15 23:12:43 +000019916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000019917$as_echo "$ac_cv_c_restrict" >&6; }
19918
cristy3ed852e2009-09-05 21:47:34 +000019919 case $ac_cv_c_restrict in
19920 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000019921 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019922 ;;
19923 *) cat >>confdefs.h <<_ACEOF
19924#define restrict $ac_cv_c_restrict
19925_ACEOF
19926 ;;
19927 esac
19928
19929
19930# If words are stored with the most significant byte first (like
19931# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000019932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000019933$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019934if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019935 $as_echo_n "(cached) " >&6
19936else
19937 ac_cv_c_bigendian=unknown
19938 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000019939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019940/* end confdefs.h. */
19941#ifndef __APPLE_CC__
19942 not a universal capable compiler
19943 #endif
19944 typedef int dummy;
19945
19946_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019947if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019948
19949 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000019950 # there are at least two -arch flags with different values.
19951 ac_arch=
19952 ac_prev=
19953 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19954 if test -n "$ac_prev"; then
19955 case $ac_word in
19956 i?86 | x86_64 | ppc | ppc64)
19957 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19958 ac_arch=$ac_word
19959 else
19960 ac_cv_c_bigendian=universal
19961 break
19962 fi
19963 ;;
19964 esac
19965 ac_prev=
19966 elif test "x$ac_word" = "x-arch"; then
19967 ac_prev=arch
19968 fi
19969 done
cristy3ed852e2009-09-05 21:47:34 +000019970fi
cristy3ed852e2009-09-05 21:47:34 +000019971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19972 if test $ac_cv_c_bigendian = unknown; then
19973 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000019974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019975/* end confdefs.h. */
19976#include <sys/types.h>
19977 #include <sys/param.h>
19978
19979int
19980main ()
19981{
19982#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19983 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19984 && LITTLE_ENDIAN)
19985 bogus endian macros
19986 #endif
19987
19988 ;
19989 return 0;
19990}
19991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019992if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019993 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000019994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019995/* end confdefs.h. */
19996#include <sys/types.h>
19997 #include <sys/param.h>
19998
19999int
20000main ()
20001{
20002#if BYTE_ORDER != BIG_ENDIAN
20003 not big endian
20004 #endif
20005
20006 ;
20007 return 0;
20008}
20009_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020010if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020011 ac_cv_c_bigendian=yes
20012else
cristy8b350f62009-11-15 23:12:43 +000020013 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020014fi
cristy3ed852e2009-09-05 21:47:34 +000020015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020016fi
cristy3ed852e2009-09-05 21:47:34 +000020017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20018 fi
20019 if test $ac_cv_c_bigendian = unknown; then
20020 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000020021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020022/* end confdefs.h. */
20023#include <limits.h>
20024
20025int
20026main ()
20027{
20028#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20029 bogus endian macros
20030 #endif
20031
20032 ;
20033 return 0;
20034}
20035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020036if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020037 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020039/* end confdefs.h. */
20040#include <limits.h>
20041
20042int
20043main ()
20044{
20045#ifndef _BIG_ENDIAN
20046 not big endian
20047 #endif
20048
20049 ;
20050 return 0;
20051}
20052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020053if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020054 ac_cv_c_bigendian=yes
20055else
cristy8b350f62009-11-15 23:12:43 +000020056 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020057fi
cristy3ed852e2009-09-05 21:47:34 +000020058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020059fi
cristy3ed852e2009-09-05 21:47:34 +000020060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20061 fi
20062 if test $ac_cv_c_bigendian = unknown; then
20063 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000020064 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020065 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000020066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020067/* end confdefs.h. */
20068short int ascii_mm[] =
20069 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20070 short int ascii_ii[] =
20071 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20072 int use_ascii (int i) {
20073 return ascii_mm[i] + ascii_ii[i];
20074 }
20075 short int ebcdic_ii[] =
20076 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20077 short int ebcdic_mm[] =
20078 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20079 int use_ebcdic (int i) {
20080 return ebcdic_mm[i] + ebcdic_ii[i];
20081 }
20082 extern int foo;
20083
20084int
20085main ()
20086{
20087return use_ascii (foo) == use_ebcdic (foo);
20088 ;
20089 return 0;
20090}
20091_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020092if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020093 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20094 ac_cv_c_bigendian=yes
20095 fi
20096 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20097 if test "$ac_cv_c_bigendian" = unknown; then
20098 ac_cv_c_bigendian=no
20099 else
20100 # finding both strings is unlikely to happen, but who knows?
20101 ac_cv_c_bigendian=unknown
20102 fi
20103 fi
cristy3ed852e2009-09-05 21:47:34 +000020104fi
cristy3ed852e2009-09-05 21:47:34 +000020105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20106else
cristy8b350f62009-11-15 23:12:43 +000020107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020108/* end confdefs.h. */
20109$ac_includes_default
20110int
20111main ()
20112{
20113
20114 /* Are we little or big endian? From Harbison&Steele. */
20115 union
20116 {
20117 long int l;
20118 char c[sizeof (long int)];
20119 } u;
20120 u.l = 1;
20121 return u.c[sizeof (long int) - 1] == 1;
20122
20123 ;
20124 return 0;
20125}
20126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020127if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020128 ac_cv_c_bigendian=no
20129else
cristy8b350f62009-11-15 23:12:43 +000020130 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000020131fi
cristy8b350f62009-11-15 23:12:43 +000020132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20133 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020134fi
20135
cristy3ed852e2009-09-05 21:47:34 +000020136 fi
20137fi
cristy8b350f62009-11-15 23:12:43 +000020138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020139$as_echo "$ac_cv_c_bigendian" >&6; }
20140 case $ac_cv_c_bigendian in #(
20141 yes)
cristy8b350f62009-11-15 23:12:43 +000020142 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020143;; #(
20144 no)
20145 ;; #(
20146 universal)
20147
cristy8b350f62009-11-15 23:12:43 +000020148$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020149
20150 ;; #(
20151 *)
cristy8b350f62009-11-15 23:12:43 +000020152 as_fn_error "unknown endianness
20153 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020154 esac
20155
20156
20157# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020158ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20159if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020160
cristy3ed852e2009-09-05 21:47:34 +000020161else
20162
20163cat >>confdefs.h <<_ACEOF
20164#define mode_t int
20165_ACEOF
20166
20167fi
20168
20169
20170# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020171ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20172if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020173
cristy3ed852e2009-09-05 21:47:34 +000020174else
20175
20176cat >>confdefs.h <<_ACEOF
20177#define off_t long int
20178_ACEOF
20179
20180fi
20181
20182
20183# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020184ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20185if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020186
cristy3ed852e2009-09-05 21:47:34 +000020187else
20188
20189cat >>confdefs.h <<_ACEOF
20190#define pid_t int
20191_ACEOF
20192
20193fi
20194
20195
20196# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020197ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20198if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020199
cristy3ed852e2009-09-05 21:47:34 +000020200else
20201
20202cat >>confdefs.h <<_ACEOF
20203#define size_t unsigned int
20204_ACEOF
20205
20206fi
20207
20208
20209# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020210ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20211if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020212
cristy3ed852e2009-09-05 21:47:34 +000020213else
20214
20215cat >>confdefs.h <<_ACEOF
20216#define ssize_t int
20217_ACEOF
20218
20219fi
20220
20221
20222# If the C compiler supports a working long double type with more range
20223# or precision than the double type, define HAVE_LONG_DOUBLE.
20224
cristy8b350f62009-11-15 23:12:43 +000020225 { $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 +000020226$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020227if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020228 $as_echo_n "(cached) " >&6
20229else
cristy8b350f62009-11-15 23:12:43 +000020230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020231/* end confdefs.h. */
20232#include <float.h>
20233 long double const a[] =
20234 {
20235 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20236 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20237 };
20238 long double
20239 f (long double x)
20240 {
20241 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20242 + (x ? f (x) : 'c'));
20243 }
20244
20245int
20246main ()
20247{
20248static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20249 + (DBL_MANT_DIG < LDBL_MANT_DIG)
20250 - (LDBL_MAX_EXP < DBL_MAX_EXP)
20251 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20252 && (int) LDBL_EPSILON == 0
20253 )];
20254test_array [0] = 0
20255
20256 ;
20257 return 0;
20258}
20259_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020260if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020261 ac_cv_type_long_double_wider=yes
20262else
cristy8b350f62009-11-15 23:12:43 +000020263 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000020264fi
cristy3ed852e2009-09-05 21:47:34 +000020265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20266fi
cristy8b350f62009-11-15 23:12:43 +000020267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000020268$as_echo "$ac_cv_type_long_double_wider" >&6; }
20269 if test $ac_cv_type_long_double_wider = yes; then
20270
cristy8b350f62009-11-15 23:12:43 +000020271$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020272
20273 fi
20274
20275
20276# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20277# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000020278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020279$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020280if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020281 $as_echo_n "(cached) " >&6
20282else
cristy8b350f62009-11-15 23:12:43 +000020283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020284/* end confdefs.h. */
20285$ac_includes_default
20286int
20287main ()
20288{
20289static int test_array [1 - 2 * !(((char) -1) < 0)];
20290test_array [0] = 0
20291
20292 ;
20293 return 0;
20294}
20295_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020296if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020297 ac_cv_c_char_unsigned=no
20298else
cristy8b350f62009-11-15 23:12:43 +000020299 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000020300fi
cristy3ed852e2009-09-05 21:47:34 +000020301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302fi
cristy8b350f62009-11-15 23:12:43 +000020303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020304$as_echo "$ac_cv_c_char_unsigned" >&6; }
20305if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000020306 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020307
20308fi
20309
20310
20311# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20312# The cast to long int works around a bug in the HP C Compiler
20313# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20314# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20315# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020317$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020318if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020319 $as_echo_n "(cached) " >&6
20320else
cristy8b350f62009-11-15 23:12:43 +000020321 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000020322
cristy3ed852e2009-09-05 21:47:34 +000020323else
cristy8b350f62009-11-15 23:12:43 +000020324 if test "$ac_cv_type_signed_short" = yes; then
20325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020327{ as_fn_set_status 77
20328as_fn_error "cannot compute sizeof (signed short)
20329See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020330 else
20331 ac_cv_sizeof_signed_short=0
20332 fi
20333fi
cristy8b350f62009-11-15 23:12:43 +000020334
cristy3ed852e2009-09-05 21:47:34 +000020335fi
cristy8b350f62009-11-15 23:12:43 +000020336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020337$as_echo "$ac_cv_sizeof_signed_short" >&6; }
20338
20339
20340
20341cat >>confdefs.h <<_ACEOF
20342#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
20343_ACEOF
20344
20345
20346
20347# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
20348# The cast to long int works around a bug in the HP C Compiler
20349# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20350# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20351# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020353$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020354if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020355 $as_echo_n "(cached) " >&6
20356else
cristy8b350f62009-11-15 23:12:43 +000020357 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 +000020358
cristy3ed852e2009-09-05 21:47:34 +000020359else
cristy8b350f62009-11-15 23:12:43 +000020360 if test "$ac_cv_type_unsigned_short" = yes; then
20361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020363{ as_fn_set_status 77
20364as_fn_error "cannot compute sizeof (unsigned short)
20365See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020366 else
20367 ac_cv_sizeof_unsigned_short=0
20368 fi
20369fi
cristy8b350f62009-11-15 23:12:43 +000020370
cristy3ed852e2009-09-05 21:47:34 +000020371fi
cristy8b350f62009-11-15 23:12:43 +000020372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020373$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20374
20375
20376
20377cat >>confdefs.h <<_ACEOF
20378#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20379_ACEOF
20380
20381
20382
20383# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
20384# The cast to long int works around a bug in the HP C Compiler
20385# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20386# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20387# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020389$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020390if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020391 $as_echo_n "(cached) " >&6
20392else
cristy8b350f62009-11-15 23:12:43 +000020393 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 +000020394
cristy3ed852e2009-09-05 21:47:34 +000020395else
cristy8b350f62009-11-15 23:12:43 +000020396 if test "$ac_cv_type_signed_int" = yes; then
20397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020399{ as_fn_set_status 77
20400as_fn_error "cannot compute sizeof (signed int)
20401See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020402 else
20403 ac_cv_sizeof_signed_int=0
20404 fi
20405fi
cristy8b350f62009-11-15 23:12:43 +000020406
cristy3ed852e2009-09-05 21:47:34 +000020407fi
cristy8b350f62009-11-15 23:12:43 +000020408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020409$as_echo "$ac_cv_sizeof_signed_int" >&6; }
20410
20411
20412
20413cat >>confdefs.h <<_ACEOF
20414#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
20415_ACEOF
20416
20417
20418
20419# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
20420# The cast to long int works around a bug in the HP C Compiler
20421# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20422# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20423# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020425$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020426if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020427 $as_echo_n "(cached) " >&6
20428else
cristy8b350f62009-11-15 23:12:43 +000020429 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 +000020430
cristy3ed852e2009-09-05 21:47:34 +000020431else
cristy8b350f62009-11-15 23:12:43 +000020432 if test "$ac_cv_type_unsigned_int" = yes; then
20433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020435{ as_fn_set_status 77
20436as_fn_error "cannot compute sizeof (unsigned int)
20437See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020438 else
20439 ac_cv_sizeof_unsigned_int=0
20440 fi
20441fi
cristy8b350f62009-11-15 23:12:43 +000020442
cristy3ed852e2009-09-05 21:47:34 +000020443fi
cristy8b350f62009-11-15 23:12:43 +000020444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020445$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20446
20447
20448
20449cat >>confdefs.h <<_ACEOF
20450#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20451_ACEOF
20452
20453
20454
20455# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
20456# The cast to long int works around a bug in the HP C Compiler
20457# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20458# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20459# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020461$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020462if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020463 $as_echo_n "(cached) " >&6
20464else
cristy8b350f62009-11-15 23:12:43 +000020465 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 +000020466
cristy3ed852e2009-09-05 21:47:34 +000020467else
cristy8b350f62009-11-15 23:12:43 +000020468 if test "$ac_cv_type_signed_long" = yes; then
20469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020471{ as_fn_set_status 77
20472as_fn_error "cannot compute sizeof (signed long)
20473See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020474 else
20475 ac_cv_sizeof_signed_long=0
20476 fi
20477fi
cristy8b350f62009-11-15 23:12:43 +000020478
cristy3ed852e2009-09-05 21:47:34 +000020479fi
cristy8b350f62009-11-15 23:12:43 +000020480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020481$as_echo "$ac_cv_sizeof_signed_long" >&6; }
20482
20483
20484
20485cat >>confdefs.h <<_ACEOF
20486#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
20487_ACEOF
20488
20489
20490
20491# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
20492# The cast to long int works around a bug in the HP C Compiler
20493# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20494# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20495# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020497$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020498if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020499 $as_echo_n "(cached) " >&6
20500else
cristy8b350f62009-11-15 23:12:43 +000020501 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 +000020502
cristy3ed852e2009-09-05 21:47:34 +000020503else
cristy8b350f62009-11-15 23:12:43 +000020504 if test "$ac_cv_type_unsigned_long" = yes; then
20505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020507{ as_fn_set_status 77
20508as_fn_error "cannot compute sizeof (unsigned long)
20509See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020510 else
20511 ac_cv_sizeof_unsigned_long=0
20512 fi
20513fi
cristy8b350f62009-11-15 23:12:43 +000020514
cristy3ed852e2009-09-05 21:47:34 +000020515fi
cristy8b350f62009-11-15 23:12:43 +000020516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020517$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20518
20519
20520
20521cat >>confdefs.h <<_ACEOF
20522#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20523_ACEOF
20524
20525
20526
20527# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
20528# 'signed long long' is not supported then the value defined is zero.
20529# The cast to long int works around a bug in the HP C Compiler
20530# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20531# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20532# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020534$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020535if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020536 $as_echo_n "(cached) " >&6
20537else
cristy8b350f62009-11-15 23:12:43 +000020538 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 +000020539
cristy3ed852e2009-09-05 21:47:34 +000020540else
cristy8b350f62009-11-15 23:12:43 +000020541 if test "$ac_cv_type_signed_long_long" = yes; then
20542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020544{ as_fn_set_status 77
20545as_fn_error "cannot compute sizeof (signed long long)
20546See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020547 else
20548 ac_cv_sizeof_signed_long_long=0
20549 fi
20550fi
cristy8b350f62009-11-15 23:12:43 +000020551
cristy3ed852e2009-09-05 21:47:34 +000020552fi
cristy8b350f62009-11-15 23:12:43 +000020553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020554$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
20555
20556
20557
20558cat >>confdefs.h <<_ACEOF
20559#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
20560_ACEOF
20561
20562
20563
20564# Obtain size of a 'unsigned long long' and define as
20565# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
20566# supported then the value defined is zero.
20567# The cast to long int works around a bug in the HP C Compiler
20568# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20569# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20570# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020572$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020573if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020574 $as_echo_n "(cached) " >&6
20575else
cristy8b350f62009-11-15 23:12:43 +000020576 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 +000020577
cristy3ed852e2009-09-05 21:47:34 +000020578else
cristy8b350f62009-11-15 23:12:43 +000020579 if test "$ac_cv_type_unsigned_long_long" = yes; then
20580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020582{ as_fn_set_status 77
20583as_fn_error "cannot compute sizeof (unsigned long long)
20584See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020585 else
20586 ac_cv_sizeof_unsigned_long_long=0
20587 fi
20588fi
cristy8b350f62009-11-15 23:12:43 +000020589
cristy3ed852e2009-09-05 21:47:34 +000020590fi
cristy8b350f62009-11-15 23:12:43 +000020591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020592$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20593
20594
20595
20596cat >>confdefs.h <<_ACEOF
20597#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20598_ACEOF
20599
20600
20601
20602# Obtain size of off_t and define as SIZEOF_OFF_T
20603# The cast to long int works around a bug in the HP C Compiler
20604# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20605# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20606# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020608$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020609if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020610 $as_echo_n "(cached) " >&6
20611else
cristy8b350f62009-11-15 23:12:43 +000020612 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 +000020613
cristy3ed852e2009-09-05 21:47:34 +000020614else
cristy8b350f62009-11-15 23:12:43 +000020615 if test "$ac_cv_type_off_t" = yes; then
20616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020618{ as_fn_set_status 77
20619as_fn_error "cannot compute sizeof (off_t)
20620See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020621 else
20622 ac_cv_sizeof_off_t=0
20623 fi
20624fi
cristy8b350f62009-11-15 23:12:43 +000020625
cristy3ed852e2009-09-05 21:47:34 +000020626fi
cristy8b350f62009-11-15 23:12:43 +000020627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020628$as_echo "$ac_cv_sizeof_off_t" >&6; }
20629
20630
20631
20632cat >>confdefs.h <<_ACEOF
20633#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20634_ACEOF
20635
20636
20637
20638# Obtain size of size_t and define as SIZEOF_SIZE_T
20639# The cast to long int works around a bug in the HP C Compiler
20640# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20641# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20642# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020644$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020645if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020646 $as_echo_n "(cached) " >&6
20647else
cristy8b350f62009-11-15 23:12:43 +000020648 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 +000020649
cristy3ed852e2009-09-05 21:47:34 +000020650else
cristy8b350f62009-11-15 23:12:43 +000020651 if test "$ac_cv_type_size_t" = yes; then
20652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020654{ as_fn_set_status 77
20655as_fn_error "cannot compute sizeof (size_t)
20656See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020657 else
20658 ac_cv_sizeof_size_t=0
20659 fi
20660fi
cristy8b350f62009-11-15 23:12:43 +000020661
cristy3ed852e2009-09-05 21:47:34 +000020662fi
cristy8b350f62009-11-15 23:12:43 +000020663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020664$as_echo "$ac_cv_sizeof_size_t" >&6; }
20665
20666
20667
20668cat >>confdefs.h <<_ACEOF
20669#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20670_ACEOF
20671
20672
20673
20674# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
20675# The cast to long int works around a bug in the HP C Compiler
20676# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20677# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20678# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000020680$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020681if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020682 $as_echo_n "(cached) " >&6
20683else
cristy8b350f62009-11-15 23:12:43 +000020684 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 +000020685
cristy3ed852e2009-09-05 21:47:34 +000020686else
cristy8b350f62009-11-15 23:12:43 +000020687 if test "$ac_cv_type_unsigned_intp" = yes; then
20688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020690{ as_fn_set_status 77
20691as_fn_error "cannot compute sizeof (unsigned int*)
20692See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020693 else
20694 ac_cv_sizeof_unsigned_intp=0
20695 fi
20696fi
cristy8b350f62009-11-15 23:12:43 +000020697
cristy3ed852e2009-09-05 21:47:34 +000020698fi
cristy8b350f62009-11-15 23:12:43 +000020699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000020700$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
20701
20702
20703
20704cat >>confdefs.h <<_ACEOF
20705#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
20706_ACEOF
20707
20708
20709
20710#
20711# Compute sized types for current CPU and compiler options.
20712#
20713
cristy8b350f62009-11-15 23:12:43 +000020714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020715$as_echo_n "checking for signed 8-bit type... " >&6; }
20716INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000020717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020718$as_echo "$INT8_T" >&6; }
20719
20720
cristy8b350f62009-11-15 23:12:43 +000020721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020722$as_echo_n "checking for unsigned 8-bit type... " >&6; }
20723UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000020724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020725$as_echo "$UINT8_T" >&6; }
20726
20727
cristy8b350f62009-11-15 23:12:43 +000020728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020729$as_echo_n "checking for signed 16-bit type... " >&6; }
20730INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000020731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020732$as_echo "$INT16_T" >&6; }
20733
20734
cristy8b350f62009-11-15 23:12:43 +000020735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020736$as_echo_n "checking for unsigned 16-bit type... " >&6; }
20737UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000020738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020739$as_echo "$UINT16_T" >&6; }
20740
20741
cristy8b350f62009-11-15 23:12:43 +000020742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020743$as_echo_n "checking for signed 32-bit type... " >&6; }
20744INT32_T='none'
20745if test $ac_cv_sizeof_signed_int -eq 4; then
20746 INT32_T='signed int'
20747elif test $ac_cv_sizeof_signed_long -eq 4; then
20748 INT32_T='signed long'
20749fi
cristy8b350f62009-11-15 23:12:43 +000020750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020751$as_echo "$INT32_T" >&6; }
20752
20753
cristy8b350f62009-11-15 23:12:43 +000020754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020755$as_echo_n "checking for unsigned 32-bit type... " >&6; }
20756UINT32_T='none'
20757if test $ac_cv_sizeof_unsigned_int -eq 4; then
20758 UINT32_T='unsigned int'
20759elif test $ac_cv_sizeof_unsigned_long -eq 4; then
20760 UINT32_T='unsigned long'
20761fi
cristy8b350f62009-11-15 23:12:43 +000020762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020763$as_echo "$UINT32_T" >&6; }
20764
20765
cristy8b350f62009-11-15 23:12:43 +000020766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020767$as_echo_n "checking for signed 64-bit type... " >&6; }
20768INT64_T='none'
20769if test $ac_cv_sizeof_signed_long -eq 8; then
20770 INT64_T='signed long'
20771elif test $ac_cv_sizeof_signed_long_long -eq 8; then
20772 INT64_T='signed long long'
20773fi
cristy8b350f62009-11-15 23:12:43 +000020774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020775$as_echo "$INT64_T" >&6; }
20776
20777
cristy8b350f62009-11-15 23:12:43 +000020778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020779$as_echo_n "checking for unsigned 64-bit type... " >&6; }
20780UINT64_T='none'
20781if test $ac_cv_sizeof_unsigned_long -eq 8; then
20782 UINT64_T='unsigned long'
20783elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
20784 UINT64_T='unsigned long long'
20785fi
cristy8b350f62009-11-15 23:12:43 +000020786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020787$as_echo "$UINT64_T" >&6; }
20788
20789
cristy8b350f62009-11-15 23:12:43 +000020790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020791$as_echo_n "checking for unsigned maximum type... " >&6; }
20792UINTMAX_T='none'
20793if test "$UINT64_T" != 'none'; then
20794 UINTMAX_T=$UINT64_T
20795elif test "$UINT32_T" != 'none'; then
20796 UINTMAX_T=$UINT32_T
20797fi
cristy8b350f62009-11-15 23:12:43 +000020798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020799$as_echo "$UINTMAX_T" >&6; }
20800
20801
cristy8b350f62009-11-15 23:12:43 +000020802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020803$as_echo_n "checking for pointer difference type... " >&6; }
20804UINTPTR_T='none'
20805if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
20806 UINTPTR_T='unsigned long'
20807elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
20808 UINTPTR_T='unsigned long long'
20809fi
cristy8b350f62009-11-15 23:12:43 +000020810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020811$as_echo "$UINTPTR_T" >&6; }
20812
20813
cristy8b350f62009-11-15 23:12:43 +000020814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020815$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020817/* end confdefs.h. */
20818
20819int
20820main ()
20821{
20822{ const char *func = __func__; return(func != 0 ? 0 : 1); }
20823 ;
20824 return 0;
20825}
20826_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020827if ac_fn_c_try_compile "$LINENO"; then :
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020829$as_echo "yes" >&6; }
20830else
cristy8b350f62009-11-15 23:12:43 +000020831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020832$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020834$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020836/* end confdefs.h. */
20837
20838int
20839main ()
20840{
20841{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
20842 ;
20843 return 0;
20844}
20845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020846if ac_fn_c_try_compile "$LINENO"; then :
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020848$as_echo "yes" >&6; }
20849
cristy8b350f62009-11-15 23:12:43 +000020850$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020851
20852else
cristy8b350f62009-11-15 23:12:43 +000020853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020854$as_echo "no" >&6; }
20855
cristy8b350f62009-11-15 23:12:43 +000020856$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020857
20858fi
cristy3ed852e2009-09-05 21:47:34 +000020859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20860fi
cristy3ed852e2009-09-05 21:47:34 +000020861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20862
20863########
20864#
20865# Check for functions
20866#
20867########
cristy3ed852e2009-09-05 21:47:34 +000020868for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000020869do :
20870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20871ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20872eval as_val=\$$as_ac_Header
20873 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020874 cat >>confdefs.h <<_ACEOF
20875#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20876_ACEOF
20877
20878fi
20879
20880done
20881
cristy3ed852e2009-09-05 21:47:34 +000020882for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000020883do :
20884 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20885if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020886 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020887#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000020888_ACEOF
20889
20890fi
20891done
20892
cristy8b350f62009-11-15 23:12:43 +000020893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000020894$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020895if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020896 $as_echo_n "(cached) " >&6
20897else
cristy8b350f62009-11-15 23:12:43 +000020898 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020899 magick_cv_func_mmap_fileio=no
20900else
cristy8b350f62009-11-15 23:12:43 +000020901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020902/* end confdefs.h. */
20903$ac_includes_default
20904/* malloc might have been renamed as rpl_malloc. */
20905#undef malloc
20906
20907/*
20908 This test is derived from GNU Autoconf's similar macro.
20909 The purpose of this test is to verify that files may be memory
20910 mapped, and that memory mapping and file I/O are coherent.
20911
20912 The test creates a test file, memory maps the file, updates
20913 the file using the memory map, and then reads the file using
20914 file I/O to verify that the file contains the updates.
20915*/
20916
20917#include <fcntl.h>
20918#include <sys/mman.h>
20919
20920#if !STDC_HEADERS && !HAVE_STDLIB_H
20921char *malloc ();
20922#endif
20923
20924/* This mess was copied from the GNU getpagesize.h. */
20925#if !HAVE_GETPAGESIZE
20926/* Assume that all systems that can run configure have sys/param.h. */
20927# if !HAVE_SYS_PARAM_H
20928# define HAVE_SYS_PARAM_H 1
20929# endif
20930
20931# ifdef _SC_PAGESIZE
20932# define getpagesize() sysconf(_SC_PAGESIZE)
20933# else /* no _SC_PAGESIZE */
20934# if HAVE_SYS_PARAM_H
20935# include <sys/param.h>
20936# ifdef EXEC_PAGESIZE
20937# define getpagesize() EXEC_PAGESIZE
20938# else /* no EXEC_PAGESIZE */
20939# ifdef NBPG
20940# define getpagesize() NBPG * CLSIZE
20941# ifndef CLSIZE
20942# define CLSIZE 1
20943# endif /* no CLSIZE */
20944# else /* no NBPG */
20945# ifdef NBPC
20946# define getpagesize() NBPC
20947# else /* no NBPC */
20948# ifdef PAGESIZE
20949# define getpagesize() PAGESIZE
20950# endif /* PAGESIZE */
20951# endif /* no NBPC */
20952# endif /* no NBPG */
20953# endif /* no EXEC_PAGESIZE */
20954# else /* no HAVE_SYS_PARAM_H */
20955# define getpagesize() 8192 /* punt totally */
20956# endif /* no HAVE_SYS_PARAM_H */
20957# endif /* no _SC_PAGESIZE */
20958
20959#endif /* no HAVE_GETPAGESIZE */
20960
20961int
20962main ()
20963{
20964 char *data, *data2, *data3;
20965 int i, pagesize;
20966 int fd;
20967
20968 pagesize = getpagesize ();
20969
20970 /* First, make a file with some known garbage in it. */
20971 data = (char *) malloc (pagesize);
20972 if (!data)
20973 exit (1);
20974 for (i = 0; i < pagesize; ++i)
20975 *(data + i) = rand ();
20976 umask (0);
20977 fd = creat ("conftest.mmap", 0600);
20978 if (fd < 0)
20979 exit (1);
20980 if (write (fd, data, pagesize) != pagesize)
20981 exit (1);
20982 close (fd);
20983
20984 /* Mmap the file as read/write/shared and verify that we see the
20985 same garbage. */
20986 fd = open ("conftest.mmap", O_RDWR);
20987 if (fd < 0)
20988 exit (1);
20989 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
20990 if (data2 == 0)
20991 exit (1);
20992 for (i = 0; i < pagesize; ++i)
20993 if (*(data + i) != *(data2 + i))
20994 exit (1);
20995
20996 /* Finally, make sure that changes to the mapped area
20997 percolate back to the file as seen by read(). */
20998 for (i = 0; i < pagesize; ++i)
20999 *(data2 + i) = *(data2 + i) + 1;
21000 data3 = (char *) malloc (pagesize);
21001 if (!data3)
21002 exit (1);
21003 if (read (fd, data3, pagesize) != pagesize)
21004 exit (1);
21005 for (i = 0; i < pagesize; ++i)
21006 if (*(data2 + i) != *(data3 + i))
21007 exit (1);
21008 close (fd);
21009 exit (0);
21010}
21011_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021012if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021013 magick_cv_func_mmap_fileio=yes
21014else
cristy8b350f62009-11-15 23:12:43 +000021015 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000021016fi
cristy8b350f62009-11-15 23:12:43 +000021017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21018 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021019fi
21020
cristy3ed852e2009-09-05 21:47:34 +000021021fi
cristy8b350f62009-11-15 23:12:43 +000021022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000021023$as_echo "$magick_cv_func_mmap_fileio" >&6; }
21024if test $magick_cv_func_mmap_fileio = yes; then
21025
cristy8b350f62009-11-15 23:12:43 +000021026$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021027
21028fi
21029rm -f conftest.mmap
21030
cristy8b350f62009-11-15 23:12:43 +000021031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021032$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021033if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021034 $as_echo_n "(cached) " >&6
21035else
cristy8b350f62009-11-15 23:12:43 +000021036 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021037 ac_cv_func_closedir_void=yes
21038else
cristy8b350f62009-11-15 23:12:43 +000021039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021040/* end confdefs.h. */
21041$ac_includes_default
21042#include <$ac_header_dirent>
21043#ifndef __cplusplus
21044int closedir ();
21045#endif
21046
21047int
21048main ()
21049{
21050return closedir (opendir (".")) != 0;
21051 ;
21052 return 0;
21053}
21054_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021055if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021056 ac_cv_func_closedir_void=no
21057else
cristy8b350f62009-11-15 23:12:43 +000021058 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000021059fi
cristy8b350f62009-11-15 23:12:43 +000021060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21061 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021062fi
21063
cristy3ed852e2009-09-05 21:47:34 +000021064fi
cristy8b350f62009-11-15 23:12:43 +000021065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021066$as_echo "$ac_cv_func_closedir_void" >&6; }
21067if test $ac_cv_func_closedir_void = yes; then
21068
cristy8b350f62009-11-15 23:12:43 +000021069$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021070
21071fi
21072
cristycd4c5312009-11-22 01:19:08 +000021073
21074
21075
21076 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000021077do :
21078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000021079ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21080"
cristy8b350f62009-11-15 23:12:43 +000021081eval as_val=\$$as_ac_Header
21082 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021083 cat >>confdefs.h <<_ACEOF
21084#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21085_ACEOF
21086
21087fi
21088
21089done
21090
cristycd4c5312009-11-22 01:19:08 +000021091
21092
21093
21094
21095
21096
21097
cristy3ed852e2009-09-05 21:47:34 +000021098for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021099do :
21100 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21101if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021102 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021103#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021104_ACEOF
21105
21106fi
21107done
21108
cristy8b350f62009-11-15 23:12:43 +000021109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000021110$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021111if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021112 $as_echo_n "(cached) " >&6
21113else
cristy8b350f62009-11-15 23:12:43 +000021114 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021115 ac_cv_func_mmap_fixed_mapped=no
21116else
cristy8b350f62009-11-15 23:12:43 +000021117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021118/* end confdefs.h. */
21119$ac_includes_default
21120/* malloc might have been renamed as rpl_malloc. */
21121#undef malloc
21122
21123/* Thanks to Mike Haertel and Jim Avera for this test.
21124 Here is a matrix of mmap possibilities:
21125 mmap private not fixed
21126 mmap private fixed at somewhere currently unmapped
21127 mmap private fixed at somewhere already mapped
21128 mmap shared not fixed
21129 mmap shared fixed at somewhere currently unmapped
21130 mmap shared fixed at somewhere already mapped
21131 For private mappings, we should verify that changes cannot be read()
21132 back from the file, nor mmap's back from the file at a different
21133 address. (There have been systems where private was not correctly
21134 implemented like the infamous i386 svr4.0, and systems where the
21135 VM page cache was not coherent with the file system buffer cache
21136 like early versions of FreeBSD and possibly contemporary NetBSD.)
21137 For shared mappings, we should conversely verify that changes get
21138 propagated back to all the places they're supposed to be.
21139
21140 Grep wants private fixed already mapped.
21141 The main things grep needs to know about mmap are:
21142 * does it exist and is it safe to write into the mmap'd area
21143 * how to use it (BSD variants) */
21144
21145#include <fcntl.h>
21146#include <sys/mman.h>
21147
21148#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21149char *malloc ();
21150#endif
21151
21152/* This mess was copied from the GNU getpagesize.h. */
21153#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000021154# ifdef _SC_PAGESIZE
21155# define getpagesize() sysconf(_SC_PAGESIZE)
21156# else /* no _SC_PAGESIZE */
21157# ifdef HAVE_SYS_PARAM_H
21158# include <sys/param.h>
21159# ifdef EXEC_PAGESIZE
21160# define getpagesize() EXEC_PAGESIZE
21161# else /* no EXEC_PAGESIZE */
21162# ifdef NBPG
21163# define getpagesize() NBPG * CLSIZE
21164# ifndef CLSIZE
21165# define CLSIZE 1
21166# endif /* no CLSIZE */
21167# else /* no NBPG */
21168# ifdef NBPC
21169# define getpagesize() NBPC
21170# else /* no NBPC */
21171# ifdef PAGESIZE
21172# define getpagesize() PAGESIZE
21173# endif /* PAGESIZE */
21174# endif /* no NBPC */
21175# endif /* no NBPG */
21176# endif /* no EXEC_PAGESIZE */
21177# else /* no HAVE_SYS_PARAM_H */
21178# define getpagesize() 8192 /* punt totally */
21179# endif /* no HAVE_SYS_PARAM_H */
21180# endif /* no _SC_PAGESIZE */
21181
21182#endif /* no HAVE_GETPAGESIZE */
21183
21184int
21185main ()
21186{
21187 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000021188 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000021189 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000021190 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000021191
21192 pagesize = getpagesize ();
21193
21194 /* First, make a file with some known garbage in it. */
21195 data = (char *) malloc (pagesize);
21196 if (!data)
21197 return 1;
21198 for (i = 0; i < pagesize; ++i)
21199 *(data + i) = rand ();
21200 umask (0);
21201 fd = creat ("conftest.mmap", 0600);
21202 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021203 return 2;
cristy3ed852e2009-09-05 21:47:34 +000021204 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021205 return 3;
cristy3ed852e2009-09-05 21:47:34 +000021206 close (fd);
21207
cristycd4c5312009-11-22 01:19:08 +000021208 /* Next, check that the tail of a page is zero-filled. File must have
21209 non-zero length, otherwise we risk SIGBUS for entire page. */
21210 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21211 if (fd2 < 0)
21212 return 4;
cristyc54f5d42009-11-27 21:36:31 +000021213 cdata2 = "";
21214 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000021215 return 5;
cristyc54f5d42009-11-27 21:36:31 +000021216 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000021217 if (data2 == MAP_FAILED)
21218 return 6;
21219 for (i = 0; i < pagesize; ++i)
21220 if (*(data2 + i))
21221 return 7;
21222 close (fd2);
21223 if (munmap (data2, pagesize))
21224 return 8;
21225
cristy3ed852e2009-09-05 21:47:34 +000021226 /* Next, try to mmap the file at a fixed address which already has
21227 something else allocated at it. If we can, also make sure that
21228 we see the same garbage. */
21229 fd = open ("conftest.mmap", O_RDWR);
21230 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021231 return 9;
cristy3ed852e2009-09-05 21:47:34 +000021232 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21233 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000021234 return 10;
cristy3ed852e2009-09-05 21:47:34 +000021235 for (i = 0; i < pagesize; ++i)
21236 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000021237 return 11;
cristy3ed852e2009-09-05 21:47:34 +000021238
21239 /* Finally, make sure that changes to the mapped area do not
21240 percolate back to the file as seen by read(). (This is a bug on
21241 some variants of i386 svr4.0.) */
21242 for (i = 0; i < pagesize; ++i)
21243 *(data2 + i) = *(data2 + i) + 1;
21244 data3 = (char *) malloc (pagesize);
21245 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000021246 return 12;
cristy3ed852e2009-09-05 21:47:34 +000021247 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021248 return 13;
cristy3ed852e2009-09-05 21:47:34 +000021249 for (i = 0; i < pagesize; ++i)
21250 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000021251 return 14;
cristy3ed852e2009-09-05 21:47:34 +000021252 close (fd);
21253 return 0;
21254}
21255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021256if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021257 ac_cv_func_mmap_fixed_mapped=yes
21258else
cristy8b350f62009-11-15 23:12:43 +000021259 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000021260fi
cristy8b350f62009-11-15 23:12:43 +000021261rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21262 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021263fi
21264
cristy3ed852e2009-09-05 21:47:34 +000021265fi
cristy8b350f62009-11-15 23:12:43 +000021266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000021267$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21268if test $ac_cv_func_mmap_fixed_mapped = yes; then
21269
cristy8b350f62009-11-15 23:12:43 +000021270$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021271
21272fi
cristycd4c5312009-11-22 01:19:08 +000021273rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000021274
cristy3ed852e2009-09-05 21:47:34 +000021275for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000021276do :
21277 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21278if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021279 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021280#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000021281_ACEOF
21282
21283fi
21284
21285done
21286
cristy3ed852e2009-09-05 21:47:34 +000021287for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000021288do :
21289 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21290ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21291eval as_val=\$$as_ac_var
21292 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021293 cat >>confdefs.h <<_ACEOF
21294#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21295_ACEOF
21296
21297fi
21298done
21299
21300if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021302$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021303if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021304 $as_echo_n "(cached) " >&6
21305else
cristy8b350f62009-11-15 23:12:43 +000021306 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021307 ac_cv_func_fork_works=cross
21308else
cristy8b350f62009-11-15 23:12:43 +000021309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021310/* end confdefs.h. */
21311$ac_includes_default
21312int
21313main ()
21314{
21315
21316 /* By Ruediger Kuhlmann. */
21317 return fork () < 0;
21318
21319 ;
21320 return 0;
21321}
21322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021323if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021324 ac_cv_func_fork_works=yes
21325else
cristy8b350f62009-11-15 23:12:43 +000021326 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021327fi
cristy8b350f62009-11-15 23:12:43 +000021328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21329 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021330fi
21331
cristy3ed852e2009-09-05 21:47:34 +000021332fi
cristy8b350f62009-11-15 23:12:43 +000021333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021334$as_echo "$ac_cv_func_fork_works" >&6; }
21335
21336else
21337 ac_cv_func_fork_works=$ac_cv_func_fork
21338fi
21339if test "x$ac_cv_func_fork_works" = xcross; then
21340 case $host in
21341 *-*-amigaos* | *-*-msdosdjgpp*)
21342 # Override, as these systems have only a dummy fork() stub
21343 ac_cv_func_fork_works=no
21344 ;;
21345 *)
21346 ac_cv_func_fork_works=yes
21347 ;;
21348 esac
cristy8b350f62009-11-15 23:12:43 +000021349 { $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 +000021350$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21351fi
21352ac_cv_func_vfork_works=$ac_cv_func_vfork
21353if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021355$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021356if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021357 $as_echo_n "(cached) " >&6
21358else
cristy8b350f62009-11-15 23:12:43 +000021359 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021360 ac_cv_func_vfork_works=cross
21361else
cristy8b350f62009-11-15 23:12:43 +000021362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021363/* end confdefs.h. */
21364/* Thanks to Paul Eggert for this test. */
21365$ac_includes_default
21366#include <sys/wait.h>
21367#ifdef HAVE_VFORK_H
21368# include <vfork.h>
21369#endif
21370/* On some sparc systems, changes by the child to local and incoming
21371 argument registers are propagated back to the parent. The compiler
21372 is told about this with #include <vfork.h>, but some compilers
21373 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21374 static variable whose address is put into a register that is
21375 clobbered by the vfork. */
21376static void
21377#ifdef __cplusplus
21378sparc_address_test (int arg)
21379# else
21380sparc_address_test (arg) int arg;
21381#endif
21382{
21383 static pid_t child;
21384 if (!child) {
21385 child = vfork ();
21386 if (child < 0) {
21387 perror ("vfork");
21388 _exit(2);
21389 }
21390 if (!child) {
21391 arg = getpid();
21392 write(-1, "", 0);
21393 _exit (arg);
21394 }
21395 }
21396}
21397
21398int
21399main ()
21400{
21401 pid_t parent = getpid ();
21402 pid_t child;
21403
21404 sparc_address_test (0);
21405
21406 child = vfork ();
21407
21408 if (child == 0) {
21409 /* Here is another test for sparc vfork register problems. This
21410 test uses lots of local variables, at least as many local
21411 variables as main has allocated so far including compiler
21412 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21413 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21414 reuse the register of parent for one of the local variables,
21415 since it will think that parent can't possibly be used any more
21416 in this routine. Assigning to the local variable will thus
21417 munge parent in the parent process. */
21418 pid_t
21419 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21420 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21421 /* Convince the compiler that p..p7 are live; otherwise, it might
21422 use the same hardware register for all 8 local variables. */
21423 if (p != p1 || p != p2 || p != p3 || p != p4
21424 || p != p5 || p != p6 || p != p7)
21425 _exit(1);
21426
21427 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21428 from child file descriptors. If the child closes a descriptor
21429 before it execs or exits, this munges the parent's descriptor
21430 as well. Test for this by closing stdout in the child. */
21431 _exit(close(fileno(stdout)) != 0);
21432 } else {
21433 int status;
21434 struct stat st;
21435
21436 while (wait(&status) != child)
21437 ;
21438 return (
21439 /* Was there some problem with vforking? */
21440 child < 0
21441
21442 /* Did the child fail? (This shouldn't happen.) */
21443 || status
21444
21445 /* Did the vfork/compiler bug occur? */
21446 || parent != getpid()
21447
21448 /* Did the file descriptor bug occur? */
21449 || fstat(fileno(stdout), &st) != 0
21450 );
21451 }
21452}
21453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021454if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021455 ac_cv_func_vfork_works=yes
21456else
cristy8b350f62009-11-15 23:12:43 +000021457 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021458fi
cristy8b350f62009-11-15 23:12:43 +000021459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21460 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021461fi
21462
cristy3ed852e2009-09-05 21:47:34 +000021463fi
cristy8b350f62009-11-15 23:12:43 +000021464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021465$as_echo "$ac_cv_func_vfork_works" >&6; }
21466
21467fi;
21468if test "x$ac_cv_func_fork_works" = xcross; then
21469 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000021470 { $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 +000021471$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21472fi
21473
21474if test "x$ac_cv_func_vfork_works" = xyes; then
21475
cristy8b350f62009-11-15 23:12:43 +000021476$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021477
21478else
21479
cristy8b350f62009-11-15 23:12:43 +000021480$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021481
21482fi
21483if test "x$ac_cv_func_fork_works" = xyes; then
21484
cristy8b350f62009-11-15 23:12:43 +000021485$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021486
21487fi
21488
cristy8b350f62009-11-15 23:12:43 +000021489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021490$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021491if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021492 $as_echo_n "(cached) " >&6
21493else
cristy8b350f62009-11-15 23:12:43 +000021494 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021495 ac_cv_func_memcmp_working=no
21496else
cristy8b350f62009-11-15 23:12:43 +000021497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021498/* end confdefs.h. */
21499$ac_includes_default
21500int
21501main ()
21502{
21503
21504 /* Some versions of memcmp are not 8-bit clean. */
21505 char c0 = '\100', c1 = '\200', c2 = '\201';
21506 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21507 return 1;
21508
21509 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21510 or more and with at least one buffer not starting on a 4-byte boundary.
21511 William Lewis provided this test program. */
21512 {
21513 char foo[21];
21514 char bar[21];
21515 int i;
21516 for (i = 0; i < 4; i++)
21517 {
21518 char *a = foo + i;
21519 char *b = bar + i;
21520 strcpy (a, "--------01111111");
21521 strcpy (b, "--------10000000");
21522 if (memcmp (a, b, 16) >= 0)
21523 return 1;
21524 }
21525 return 0;
21526 }
21527
21528 ;
21529 return 0;
21530}
21531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021532if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021533 ac_cv_func_memcmp_working=yes
21534else
cristy8b350f62009-11-15 23:12:43 +000021535 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000021536fi
cristy8b350f62009-11-15 23:12:43 +000021537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21538 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021539fi
21540
cristy3ed852e2009-09-05 21:47:34 +000021541fi
cristy8b350f62009-11-15 23:12:43 +000021542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000021543$as_echo "$ac_cv_func_memcmp_working" >&6; }
21544test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21545 *" memcmp.$ac_objext "* ) ;;
21546 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21547 ;;
21548esac
21549
21550
cristy3ed852e2009-09-05 21:47:34 +000021551for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000021552do :
21553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21554ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21555eval as_val=\$$as_ac_Header
21556 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021557 cat >>confdefs.h <<_ACEOF
21558#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21559_ACEOF
21560
21561fi
21562
21563done
21564
cristy8b350f62009-11-15 23:12:43 +000021565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000021566$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021567if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021568 $as_echo_n "(cached) " >&6
21569else
21570 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21571 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21572 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000021573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021574/* end confdefs.h. */
21575$ac_includes_default
21576#ifdef HAVE_SYS_SELECT_H
21577# include <sys/select.h>
21578#endif
21579#ifdef HAVE_SYS_SOCKET_H
21580# include <sys/socket.h>
21581#endif
21582
21583int
21584main ()
21585{
21586extern int select ($ac_arg1,
21587 $ac_arg234, $ac_arg234, $ac_arg234,
21588 $ac_arg5);
21589 ;
21590 return 0;
21591}
21592_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021593if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021594 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000021595fi
cristy3ed852e2009-09-05 21:47:34 +000021596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21597 done
21598 done
21599done
21600# Provide a safe default value.
21601: ${ac_cv_func_select_args='int,int *,struct timeval *'}
21602
21603fi
cristy8b350f62009-11-15 23:12:43 +000021604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000021605$as_echo "$ac_cv_func_select_args" >&6; }
21606ac_save_IFS=$IFS; IFS=','
21607set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21608IFS=$ac_save_IFS
21609shift
21610
21611cat >>confdefs.h <<_ACEOF
21612#define SELECT_TYPE_ARG1 $1
21613_ACEOF
21614
21615
21616cat >>confdefs.h <<_ACEOF
21617#define SELECT_TYPE_ARG234 ($2)
21618_ACEOF
21619
21620
21621cat >>confdefs.h <<_ACEOF
21622#define SELECT_TYPE_ARG5 ($3)
21623_ACEOF
21624
21625rm -f conftest*
21626
cristy8b350f62009-11-15 23:12:43 +000021627if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021628 $as_echo_n "(cached) " >&6
21629else
21630 ac_cv_func_setvbuf_reversed=no
21631fi
21632
21633
cristy8b350f62009-11-15 23:12:43 +000021634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000021635$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021636if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021637 $as_echo_n "(cached) " >&6
21638else
cristy8b350f62009-11-15 23:12:43 +000021639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021640/* end confdefs.h. */
21641#include <sys/types.h>
21642#include <signal.h>
21643
21644int
21645main ()
21646{
21647return *(signal (0, 0)) (0) == 1;
21648 ;
21649 return 0;
21650}
21651_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021652if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021653 ac_cv_type_signal=int
21654else
cristy8b350f62009-11-15 23:12:43 +000021655 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000021656fi
cristy3ed852e2009-09-05 21:47:34 +000021657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21658fi
cristy8b350f62009-11-15 23:12:43 +000021659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000021660$as_echo "$ac_cv_type_signal" >&6; }
21661
21662cat >>confdefs.h <<_ACEOF
21663#define RETSIGTYPE $ac_cv_type_signal
21664_ACEOF
21665
21666
cristy8b350f62009-11-15 23:12:43 +000021667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021668$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021669if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021670 $as_echo_n "(cached) " >&6
21671else
cristy8b350f62009-11-15 23:12:43 +000021672 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021673 ac_cv_func_strtod=no
21674else
cristy8b350f62009-11-15 23:12:43 +000021675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021676/* end confdefs.h. */
21677
21678$ac_includes_default
21679#ifndef strtod
21680double strtod ();
21681#endif
21682int
21683main()
21684{
21685 {
21686 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
21687 char *string = " +69";
21688 char *term;
21689 double value;
21690 value = strtod (string, &term);
21691 if (value != 69 || term != (string + 4))
21692 return 1;
21693 }
21694
21695 {
21696 /* Under Solaris 2.4, strtod returns the wrong value for the
21697 terminating character under some conditions. */
21698 char *string = "NaN";
21699 char *term;
21700 strtod (string, &term);
21701 if (term != string && *(term - 1) == 0)
21702 return 1;
21703 }
21704 return 0;
21705}
21706
21707_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021708if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021709 ac_cv_func_strtod=yes
21710else
cristy8b350f62009-11-15 23:12:43 +000021711 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000021712fi
cristy8b350f62009-11-15 23:12:43 +000021713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21714 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021715fi
21716
cristy3ed852e2009-09-05 21:47:34 +000021717fi
cristy8b350f62009-11-15 23:12:43 +000021718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021719$as_echo "$ac_cv_func_strtod" >&6; }
21720if test $ac_cv_func_strtod = no; then
21721 case " $LIBOBJS " in
21722 *" strtod.$ac_objext "* ) ;;
21723 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21724 ;;
21725esac
21726
cristy8b350f62009-11-15 23:12:43 +000021727ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21728if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021729
cristy3ed852e2009-09-05 21:47:34 +000021730fi
21731
cristy3ed852e2009-09-05 21:47:34 +000021732if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000021733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021734$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021735if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021736 $as_echo_n "(cached) " >&6
21737else
21738 ac_check_lib_save_LIBS=$LIBS
21739LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000021740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021741/* end confdefs.h. */
21742
21743/* Override any GCC internal prototype to avoid an error.
21744 Use char because int might match the return type of a GCC
21745 builtin and then its argument prototype would still apply. */
21746#ifdef __cplusplus
21747extern "C"
21748#endif
21749char pow ();
21750int
21751main ()
21752{
21753return pow ();
21754 ;
21755 return 0;
21756}
21757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021758if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021759 ac_cv_lib_m_pow=yes
21760else
cristy8b350f62009-11-15 23:12:43 +000021761 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000021762fi
cristy8b350f62009-11-15 23:12:43 +000021763rm -f core conftest.err conftest.$ac_objext \
21764 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021765LIBS=$ac_check_lib_save_LIBS
21766fi
cristy8b350f62009-11-15 23:12:43 +000021767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021768$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021769if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021770 POW_LIB=-lm
21771else
cristy8b350f62009-11-15 23:12:43 +000021772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021773$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21774fi
21775
21776fi
21777
21778fi
21779
cristy3ed852e2009-09-05 21:47:34 +000021780for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000021781do :
21782 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21783if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021784 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021785#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000021786_ACEOF
21787
cristy8b350f62009-11-15 23:12:43 +000021788ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21789if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021790
cristy8b350f62009-11-15 23:12:43 +000021791$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021792
21793fi
21794
21795fi
21796done
21797
21798
21799
cristy5131f3e2009-12-18 03:09:10 +000021800for 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 strtoul symlink sysconf sigemptyset sigaction strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000021801do :
21802 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21803ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21804eval as_val=\$$as_ac_var
21805 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021806 cat >>confdefs.h <<_ACEOF
21807#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21808_ACEOF
21809
21810fi
21811done
21812
21813
cristye43a45e2009-09-28 14:49:00 +000021814#
21815# Check for clock_gettime().
21816#
cristy8b350f62009-11-15 23:12:43 +000021817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021818$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021819if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021820 $as_echo_n "(cached) " >&6
21821else
21822 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021824/* end confdefs.h. */
21825
21826/* Override any GCC internal prototype to avoid an error.
21827 Use char because int might match the return type of a GCC
21828 builtin and then its argument prototype would still apply. */
21829#ifdef __cplusplus
21830extern "C"
21831#endif
21832char clock_gettime ();
21833int
21834main ()
21835{
21836return clock_gettime ();
21837 ;
21838 return 0;
21839}
21840_ACEOF
21841for ac_lib in '' rt; do
21842 if test -z "$ac_lib"; then
21843 ac_res="none required"
21844 else
21845 ac_res=-l$ac_lib
21846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21847 fi
cristy8b350f62009-11-15 23:12:43 +000021848 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021849 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000021850fi
cristy8b350f62009-11-15 23:12:43 +000021851rm -f core conftest.err conftest.$ac_objext \
21852 conftest$ac_exeext
21853 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021854 break
21855fi
21856done
cristy8b350f62009-11-15 23:12:43 +000021857if test "${ac_cv_search_clock_gettime+set}" = set; then :
21858
cristye43a45e2009-09-28 14:49:00 +000021859else
21860 ac_cv_search_clock_gettime=no
21861fi
21862rm conftest.$ac_ext
21863LIBS=$ac_func_search_save_LIBS
21864fi
cristy8b350f62009-11-15 23:12:43 +000021865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021866$as_echo "$ac_cv_search_clock_gettime" >&6; }
21867ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000021868if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000021869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21870
21871
cristy8b350f62009-11-15 23:12:43 +000021872$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021873
cristy8b350f62009-11-15 23:12:43 +000021874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000021875$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021877/* end confdefs.h. */
21878#include <time.h>
21879int
21880main ()
21881{
21882clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000021883 ;
21884 return 0;
21885}
21886_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021887if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021888
cristy8b350f62009-11-15 23:12:43 +000021889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000021890$as_echo "yes" >&6; }
21891
cristy8b350f62009-11-15 23:12:43 +000021892$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021893
21894
21895else
cristy8b350f62009-11-15 23:12:43 +000021896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000021897$as_echo "no" >&6; }
21898
21899fi
cristye43a45e2009-09-28 14:49:00 +000021900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21901
21902else
21903
cristy8b350f62009-11-15 23:12:43 +000021904 for ac_func in gettimeofday ftime
21905do :
21906 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21907ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21908eval as_val=\$$as_ac_var
21909 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000021910 cat >>confdefs.h <<_ACEOF
21911#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21912_ACEOF
21913 break
21914fi
21915done
21916
21917
21918
21919fi
21920
21921
cristy3ed852e2009-09-05 21:47:34 +000021922########
21923#
21924# Check for function prototypes
21925#
21926########
21927
cristy8b350f62009-11-15 23:12:43 +000021928ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000021929#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021930"
21931if test "x$ac_cv_have_decl_pread" = x""yes; then :
21932 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021933else
cristy8b350f62009-11-15 23:12:43 +000021934 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021935fi
21936
cristy3ed852e2009-09-05 21:47:34 +000021937cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021938#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021939_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021940ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000021941#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021942"
21943if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
21944 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021945else
cristy8b350f62009-11-15 23:12:43 +000021946 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021947fi
21948
cristy3ed852e2009-09-05 21:47:34 +000021949cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021950#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021951_ACEOF
21952
21953
cristy8b350f62009-11-15 23:12:43 +000021954ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000021955#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000021956"
21957if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
21958 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021959else
cristy8b350f62009-11-15 23:12:43 +000021960 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021961fi
21962
cristy3ed852e2009-09-05 21:47:34 +000021963cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021964#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021965_ACEOF
21966
21967
cristy8b350f62009-11-15 23:12:43 +000021968ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000021969#include <stdio.h>
21970#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000021971"
21972if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
21973 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021974else
cristy8b350f62009-11-15 23:12:43 +000021975 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021976fi
21977
cristy3ed852e2009-09-05 21:47:34 +000021978cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021979#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021980_ACEOF
21981
21982
cristy3ed852e2009-09-05 21:47:34 +000021983########
21984#
21985# C++ Support Tests (For Magick++)
21986#
21987########
21988have_magick_plus_plus='no'
21989if test "$with_magick_plus_plus" = 'yes'; then
21990 OLIBS="$LIBS"
21991 LIBS=''
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
21997
21998
21999 # Full set of headers used...
22000 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
22001 # functional iomanip iosfwd iostream iterator list string strstream utility
22002 ac_ext=cpp
22003ac_cpp='$CXXCPP $CPPFLAGS'
22004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22007
22008 ac_ext=cpp
22009ac_cpp='$CXXCPP $CPPFLAGS'
22010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22013if test -z "$CXX"; then
22014 if test -n "$CCC"; then
22015 CXX=$CCC
22016 else
22017 if test -n "$ac_tool_prefix"; then
22018 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22019 do
22020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22021set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022023$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022024if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022025 $as_echo_n "(cached) " >&6
22026else
22027 if test -n "$CXX"; then
22028 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22029else
22030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22031for as_dir in $PATH
22032do
22033 IFS=$as_save_IFS
22034 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22037 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022039 break 2
22040 fi
22041done
cristy8b350f62009-11-15 23:12:43 +000022042 done
cristy3ed852e2009-09-05 21:47:34 +000022043IFS=$as_save_IFS
22044
22045fi
22046fi
22047CXX=$ac_cv_prog_CXX
22048if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022050$as_echo "$CXX" >&6; }
22051else
cristy8b350f62009-11-15 23:12:43 +000022052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022053$as_echo "no" >&6; }
22054fi
22055
22056
22057 test -n "$CXX" && break
22058 done
22059fi
22060if test -z "$CXX"; then
22061 ac_ct_CXX=$CXX
22062 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22063do
22064 # Extract the first word of "$ac_prog", so it can be a program name with args.
22065set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022067$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022068if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022069 $as_echo_n "(cached) " >&6
22070else
22071 if test -n "$ac_ct_CXX"; then
22072 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22073else
22074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22075for as_dir in $PATH
22076do
22077 IFS=$as_save_IFS
22078 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022079 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22081 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022083 break 2
22084 fi
22085done
cristy8b350f62009-11-15 23:12:43 +000022086 done
cristy3ed852e2009-09-05 21:47:34 +000022087IFS=$as_save_IFS
22088
22089fi
22090fi
22091ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22092if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022094$as_echo "$ac_ct_CXX" >&6; }
22095else
cristy8b350f62009-11-15 23:12:43 +000022096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022097$as_echo "no" >&6; }
22098fi
22099
22100
22101 test -n "$ac_ct_CXX" && break
22102done
22103
22104 if test "x$ac_ct_CXX" = x; then
22105 CXX="g++"
22106 else
22107 case $cross_compiling:$ac_tool_warned in
22108yes:)
cristy8b350f62009-11-15 23:12:43 +000022109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000022110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22111ac_tool_warned=yes ;;
22112esac
22113 CXX=$ac_ct_CXX
22114 fi
22115fi
22116
22117 fi
22118fi
22119# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000022120$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000022121set X $ac_compile
22122ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000022123for ac_option in --version -v -V -qversion; do
22124 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000022125case "(($ac_try" in
22126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127 *) ac_try_echo=$ac_try;;
22128esac
cristy8b350f62009-11-15 23:12:43 +000022129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22130$as_echo "$ac_try_echo"; } >&5
22131 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000022132 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000022133 if test -s conftest.err; then
22134 sed '10a\
22135... rest of stderr output deleted ...
22136 10q' conftest.err >conftest.er1
22137 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000022138 fi
cristycd4c5312009-11-22 01:19:08 +000022139 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000022140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22141 test $ac_status = 0; }
22142done
cristy3ed852e2009-09-05 21:47:34 +000022143
cristy8b350f62009-11-15 23:12:43 +000022144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000022145$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022146if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022147 $as_echo_n "(cached) " >&6
22148else
cristy8b350f62009-11-15 23:12:43 +000022149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022150/* end confdefs.h. */
22151
22152int
22153main ()
22154{
22155#ifndef __GNUC__
22156 choke me
22157#endif
22158
22159 ;
22160 return 0;
22161}
22162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022163if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022164 ac_compiler_gnu=yes
22165else
cristy8b350f62009-11-15 23:12:43 +000022166 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000022167fi
cristy3ed852e2009-09-05 21:47:34 +000022168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22170
22171fi
cristy8b350f62009-11-15 23:12:43 +000022172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000022173$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22174if test $ac_compiler_gnu = yes; then
22175 GXX=yes
22176else
22177 GXX=
22178fi
22179ac_test_CXXFLAGS=${CXXFLAGS+set}
22180ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000022181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022182$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022183if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022184 $as_echo_n "(cached) " >&6
22185else
22186 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22187 ac_cxx_werror_flag=yes
22188 ac_cv_prog_cxx_g=no
22189 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022191/* end confdefs.h. */
22192
22193int
22194main ()
22195{
22196
22197 ;
22198 return 0;
22199}
22200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022201if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022202 ac_cv_prog_cxx_g=yes
22203else
cristy8b350f62009-11-15 23:12:43 +000022204 CXXFLAGS=""
22205 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
cristy8b350f62009-11-15 23:12:43 +000022218else
22219 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000022220 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022222/* end confdefs.h. */
22223
22224int
22225main ()
22226{
22227
22228 ;
22229 return 0;
22230}
22231_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022232if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022233 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000022234fi
cristy3ed852e2009-09-05 21:47:34 +000022235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22236fi
cristy3ed852e2009-09-05 21:47:34 +000022237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22238fi
cristy3ed852e2009-09-05 21:47:34 +000022239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22240 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22241fi
cristy8b350f62009-11-15 23:12:43 +000022242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022243$as_echo "$ac_cv_prog_cxx_g" >&6; }
22244if test "$ac_test_CXXFLAGS" = set; then
22245 CXXFLAGS=$ac_save_CXXFLAGS
22246elif test $ac_cv_prog_cxx_g = yes; then
22247 if test "$GXX" = yes; then
22248 CXXFLAGS="-g -O2"
22249 else
22250 CXXFLAGS="-g"
22251 fi
22252else
22253 if test "$GXX" = yes; then
22254 CXXFLAGS="-O2"
22255 else
22256 CXXFLAGS=
22257 fi
22258fi
22259ac_ext=cpp
22260ac_cpp='$CXXCPP $CPPFLAGS'
22261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22264
22265depcc="$CXX" am_compiler_list=
22266
cristy8b350f62009-11-15 23:12:43 +000022267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022268$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022269if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022270 $as_echo_n "(cached) " >&6
22271else
22272 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22273 # We make a subdir and do the tests there. Otherwise we can end up
22274 # making bogus files that we don't know about and never remove. For
22275 # instance it was reported that on HP-UX the gcc test will end up
22276 # making a dummy file named `D' -- because `-MD' means `put the output
22277 # in D'.
22278 mkdir conftest.dir
22279 # Copy depcomp to subdir because otherwise we won't find it if we're
22280 # using a relative directory.
22281 cp "$am_depcomp" conftest.dir
22282 cd conftest.dir
22283 # We will build objects and dependencies in a subdirectory because
22284 # it helps to detect inapplicable dependency modes. For instance
22285 # both Tru64's cc and ICC support -MD to output dependencies as a
22286 # side effect of compilation, but ICC will put the dependencies in
22287 # the current directory while Tru64 will put them in the object
22288 # directory.
22289 mkdir sub
22290
22291 am_cv_CXX_dependencies_compiler_type=none
22292 if test "$am_compiler_list" = ""; then
22293 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22294 fi
22295 am__universal=false
22296 case " $depcc " in #(
22297 *\ -arch\ *\ -arch\ *) am__universal=true ;;
22298 esac
22299
22300 for depmode in $am_compiler_list; do
22301 # Setup a source with many dependencies, because some compilers
22302 # like to wrap large dependency lists on column 80 (with \), and
22303 # we should not choose a depcomp mode which is confused by this.
22304 #
22305 # We need to recreate these files for each test, as the compiler may
22306 # overwrite some of them when testing with obscure command lines.
22307 # This happens at least with the AIX C compiler.
22308 : > sub/conftest.c
22309 for i in 1 2 3 4 5 6; do
22310 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22311 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22312 # Solaris 8's {/usr,}/bin/sh.
22313 touch sub/conftst$i.h
22314 done
22315 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22316
22317 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22318 # mode. It turns out that the SunPro C++ compiler does not properly
22319 # handle `-M -o', and we need to detect this. Also, some Intel
22320 # versions had trouble with output in subdirs
22321 am__obj=sub/conftest.${OBJEXT-o}
22322 am__minus_obj="-o $am__obj"
22323 case $depmode in
22324 gcc)
22325 # This depmode causes a compiler race in universal mode.
22326 test "$am__universal" = false || continue
22327 ;;
22328 nosideeffect)
22329 # after this tag, mechanisms are not by side-effect, so they'll
22330 # only be used when explicitly requested
22331 if test "x$enable_dependency_tracking" = xyes; then
22332 continue
22333 else
22334 break
22335 fi
22336 ;;
22337 msvisualcpp | msvcmsys)
22338 # This compiler won't grok `-c -o', but also, the minuso test has
22339 # not run yet. These depmodes are late enough in the game, and
22340 # so weak that their functioning should not be impacted.
22341 am__obj=conftest.${OBJEXT-o}
22342 am__minus_obj=
22343 ;;
22344 none) break ;;
22345 esac
22346 if depmode=$depmode \
22347 source=sub/conftest.c object=$am__obj \
22348 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22349 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
22350 >/dev/null 2>conftest.err &&
22351 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22352 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22353 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
22354 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22355 # icc doesn't choke on unknown options, it will just issue warnings
22356 # or remarks (even with -Werror). So we grep stderr for any message
22357 # that says an option was ignored or not supported.
22358 # When given -MP, icc 7.0 and 7.1 complain thusly:
22359 # icc: Command line warning: ignoring option '-M'; no argument required
22360 # The diagnosis changed in icc 8.0:
22361 # icc: Command line remark: option '-MP' not supported
22362 if (grep 'ignoring option' conftest.err ||
22363 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22364 am_cv_CXX_dependencies_compiler_type=$depmode
22365 break
22366 fi
22367 fi
22368 done
22369
22370 cd ..
22371 rm -rf conftest.dir
22372else
22373 am_cv_CXX_dependencies_compiler_type=none
22374fi
22375
22376fi
cristy8b350f62009-11-15 23:12:43 +000022377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022378$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
22379CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
22380
22381 if
22382 test "x$enable_dependency_tracking" != xno \
22383 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
22384 am__fastdepCXX_TRUE=
22385 am__fastdepCXX_FALSE='#'
22386else
22387 am__fastdepCXX_TRUE='#'
22388 am__fastdepCXX_FALSE=
22389fi
22390
22391
cristy8b350f62009-11-15 23:12:43 +000022392 { $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 +000022393$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022394if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022395 $as_echo_n "(cached) " >&6
22396else
22397
22398 ac_ext=cpp
22399ac_cpp='$CXXCPP $CPPFLAGS'
22400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22403
cristy8b350f62009-11-15 23:12:43 +000022404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022405/* end confdefs.h. */
22406
22407int f(int x){return 1;}
22408int f(char x){return 1;}
22409int f(bool x){return 1;}
22410
22411int
22412main ()
22413{
22414bool b = true; return f(b);
22415 ;
22416 return 0;
22417}
22418_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022419if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022420 ac_cv_cxx_have_bool=yes
22421else
cristy8b350f62009-11-15 23:12:43 +000022422 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000022423fi
cristy3ed852e2009-09-05 21:47:34 +000022424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22425 ac_ext=cpp
22426ac_cpp='$CXXCPP $CPPFLAGS'
22427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22430
22431
22432fi
cristy8b350f62009-11-15 23:12:43 +000022433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000022434$as_echo "$ac_cv_cxx_have_bool" >&6; }
22435if test "$ac_cv_cxx_have_bool" = yes; then
22436
cristy8b350f62009-11-15 23:12:43 +000022437$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022438
22439fi
22440
cristy8b350f62009-11-15 23:12:43 +000022441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022442$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022443if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022444 $as_echo_n "(cached) " >&6
22445else
22446
22447 ac_ext=cpp
22448ac_cpp='$CXXCPP $CPPFLAGS'
22449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22452
cristy8b350f62009-11-15 23:12:43 +000022453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022454/* end confdefs.h. */
22455namespace Outer { namespace Inner { int i = 0; }}
22456int
22457main ()
22458{
22459using namespace Outer::Inner; return i;
22460 ;
22461 return 0;
22462}
22463_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022464if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022465 ac_cv_cxx_have_namespaces=yes
22466else
cristy8b350f62009-11-15 23:12:43 +000022467 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000022468fi
cristy3ed852e2009-09-05 21:47:34 +000022469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22470 ac_ext=cpp
22471ac_cpp='$CXXCPP $CPPFLAGS'
22472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22475
22476
22477fi
cristy8b350f62009-11-15 23:12:43 +000022478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022479$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
22480if test "$ac_cv_cxx_have_namespaces" = yes; then
22481
cristy8b350f62009-11-15 23:12:43 +000022482$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022483
22484fi
22485
cristy8b350f62009-11-15 23:12:43 +000022486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022487$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022488if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022489 $as_echo_n "(cached) " >&6
22490else
22491
22492 ac_ext=cpp
22493ac_cpp='$CXXCPP $CPPFLAGS'
22494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22497
cristy8b350f62009-11-15 23:12:43 +000022498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022499/* end confdefs.h. */
22500#include <iostream>
22501 std::istream& is = std::cin;
22502
22503int
22504main ()
22505{
22506return 0;
22507 ;
22508 return 0;
22509}
22510_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022511if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022512 ac_cv_cxx_have_std_namespace=yes
22513else
cristy8b350f62009-11-15 23:12:43 +000022514 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000022515fi
cristy3ed852e2009-09-05 21:47:34 +000022516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517 ac_ext=cpp
22518ac_cpp='$CXXCPP $CPPFLAGS'
22519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22522
22523
22524fi
cristy8b350f62009-11-15 23:12:43 +000022525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022526$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
22527if test "$ac_cv_cxx_have_std_namespace" = yes; then
22528
cristy8b350f62009-11-15 23:12:43 +000022529$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022530
22531fi
22532
cristy8b350f62009-11-15 23:12:43 +000022533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000022534$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022535if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022536 $as_echo_n "(cached) " >&6
22537else
22538
22539
22540 ac_ext=cpp
22541ac_cpp='$CXXCPP $CPPFLAGS'
22542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22545
cristy8b350f62009-11-15 23:12:43 +000022546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022547/* end confdefs.h. */
22548#include <iostream>
22549#include <map>
22550#include <iomanip>
22551#include <cmath>
22552#ifdef HAVE_NAMESPACES
22553using namespace std;
22554#endif
22555int
22556main ()
22557{
22558return 0;
22559 ;
22560 return 0;
22561}
22562_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022563if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022564 ac_cv_cxx_have_std_libs=yes
22565else
cristy8b350f62009-11-15 23:12:43 +000022566 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000022567fi
cristy3ed852e2009-09-05 21:47:34 +000022568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22569 ac_ext=cpp
22570ac_cpp='$CXXCPP $CPPFLAGS'
22571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22574
22575
22576fi
cristy8b350f62009-11-15 23:12:43 +000022577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000022578$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
22579if test "$ac_cv_cxx_have_std_libs" = yes; then
22580
cristy8b350f62009-11-15 23:12:43 +000022581$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022582
22583fi
22584
cristy8b350f62009-11-15 23:12:43 +000022585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000022586$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022587if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022588 $as_echo_n "(cached) " >&6
22589else
22590
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
cristy8b350f62009-11-15 23:12:43 +000022597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022598/* end confdefs.h. */
22599const wchar_t* s=L"wide string";
22600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022601if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022602 ac_cv_cxx_have_lstring=yes
22603else
cristy8b350f62009-11-15 23:12:43 +000022604 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000022605fi
cristy3ed852e2009-09-05 21:47:34 +000022606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22607 ac_ext=cpp
22608ac_cpp='$CXXCPP $CPPFLAGS'
22609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22612
22613
22614fi
cristy8b350f62009-11-15 23:12:43 +000022615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000022616$as_echo "$ac_cv_cxx_have_lstring" >&6; }
22617if test "$ac_cv_cxx_have_lstring" = yes; then
22618
cristy8b350f62009-11-15 23:12:43 +000022619$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022620
22621fi
22622
22623
22624 OPENMP_CXXFLAGS=
22625 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000022626if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022627 enableval=$enable_openmp;
22628fi
22629
22630 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000022631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
22632$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022633if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022634 $as_echo_n "(cached) " >&6
22635else
cristy8b350f62009-11-15 23:12:43 +000022636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22637/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022638
22639#ifndef _OPENMP
22640 choke me
22641#endif
22642#include <omp.h>
22643int main () { return omp_get_num_threads (); }
22644
22645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022646if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022647 ac_cv_prog_cxx_openmp='none needed'
22648else
cristy8b350f62009-11-15 23:12:43 +000022649 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000022650 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
22651 ac_save_CXXFLAGS=$CXXFLAGS
22652 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000022653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22654/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022655
22656#ifndef _OPENMP
22657 choke me
22658#endif
22659#include <omp.h>
22660int main () { return omp_get_num_threads (); }
22661
22662_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022663if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022664 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000022665fi
cristy8b350f62009-11-15 23:12:43 +000022666rm -f core conftest.err conftest.$ac_objext \
22667 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022668 CXXFLAGS=$ac_save_CXXFLAGS
22669 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
22670 break
22671 fi
22672 done
22673fi
cristy8b350f62009-11-15 23:12:43 +000022674rm -f core conftest.err conftest.$ac_objext \
22675 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022676fi
cristy8b350f62009-11-15 23:12:43 +000022677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022678$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
22679 case $ac_cv_prog_cxx_openmp in #(
22680 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000022681 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000022682 *)
cristy8b350f62009-11-15 23:12:43 +000022683 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000022684 esac
22685 fi
22686
22687
22688 ac_ext=c
22689ac_cpp='$CPP $CPPFLAGS'
22690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22692ac_compiler_gnu=$ac_cv_c_compiler_gnu
22693
22694
cristy8b350f62009-11-15 23:12:43 +000022695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000022696$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
22697 if \
22698 test $ac_cv_cxx_have_bool = 'yes' && \
22699 test $ac_cv_cxx_have_lstring = 'yes' && \
22700 test $ac_cv_cxx_have_namespaces = 'yes' && \
22701 test $ac_cv_cxx_have_std_libs = 'yes' && \
22702 test $ac_cv_cxx_have_std_namespace = 'yes'; then
22703 have_magick_plus_plus='yes'
22704 else
22705 have_magick_plus_plus='no (failed tests)'
22706 fi
cristy8b350f62009-11-15 23:12:43 +000022707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000022708$as_echo "$have_magick_plus_plus" >&6; }
22709 LIBS="$OLIBS"
22710fi
22711 if test "$have_magick_plus_plus" = 'yes'; then
22712 WITH_MAGICK_PLUS_PLUS_TRUE=
22713 WITH_MAGICK_PLUS_PLUS_FALSE='#'
22714else
22715 WITH_MAGICK_PLUS_PLUS_TRUE='#'
22716 WITH_MAGICK_PLUS_PLUS_FALSE=
22717fi
22718
22719
22720# Only check for delegate libraries in subdirectories if requested.
22721if test "$enable_delegate_build" != 'no'; then
22722 # Check for delegate sub-directories and add -I & -L options as required.
22723 # This presumes that delegates are installed as detailed in the ImageMagick
22724 # README. If delegates are installed in a standard location where the
22725 # compiler will automatically find them then these options should not be
22726 # required.
22727
22728 #
22729 # Most delegates have includes in the same directory as the library, but not all...
22730 #
22731 # Includes
22732 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
22733 if test -d "$builddir/$dir"; then
22734 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
22735 else
22736 if test -d "$srcdirfull/$dir"; then
22737 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
22738 fi
22739 fi
22740 done
22741
22742 # Libraries
22743 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
22744 if test -d "$builddir/$dir/.libs"; then
22745 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
22746 else
22747 if test -d "$srcdirfull/$dir/.libs"; then
22748 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
22749 fi
22750 fi
22751 if test -d "$builddir/$dir"; then
22752 LDFLAGS="$LDFLAGS -L$builddir/$dir"
22753 else
22754 if test -d "$srcdirfull/$dir"; then
22755 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
22756 fi
22757 fi
22758 done
22759fi
22760
22761# Assume that delegate headers reside under same directory as ImageMagick
22762# installation prefix.
22763MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
22764
22765#
22766# Find the X11 RGB database
22767#
cristy8b350f62009-11-15 23:12:43 +000022768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022769$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022770if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022771 $as_echo_n "(cached) " >&6
22772else
22773 # Look for the header file in a standard set of common directories.
22774# Check X11 before X11Rn because it is often a symlink to the current release.
22775 for ac_dir in \
22776 /lib/usr/lib/X11 \
22777 /usr/X11/lib \
22778 /usr/X11R4/lib \
22779 /usr/X11R5/lib \
22780 /usr/X11R6/lib \
22781 /usr/X11R7/lib \
22782 /usr/X386/lib \
22783 /usr/XFree86/lib/X11 \
22784 /usr/athena/lib \
22785 /usr/lib \
22786 /usr/lib/X11 \
22787 /usr/lib/X11R4 \
22788 /usr/lib/X11R5 \
22789 /usr/lib/X11R6 \
22790 /usr/lib/X11R7 \
22791 /usr/local/X11/lib \
22792 /usr/local/X11R4/lib \
22793 /usr/local/X11R5/lib \
22794 /usr/local/X11R6/lib \
22795 /usr/local/lib \
22796 /usr/local/lib/X11 \
22797 /usr/local/lib/X11R4 \
22798 /usr/local/lib/X11R5 \
22799 /usr/local/lib/X11R6 \
22800 /usr/local/lib/X11R7 \
22801 /usr/local/x11r5/lib \
22802 /usr/lpp/Xamples/lib \
22803 /usr/openwin/lib \
22804 /usr/openwin/share/lib \
22805 /usr/unsupported/lib \
22806 /usr/x386/lib \
22807 ; do
22808 if test -f "$ac_dir/X11/rgb.txt"; then
22809 im_cv_x_configure="$ac_dir/X11/"
22810 break
22811 elif test -f "$ac_dir/rgb.txt"; then
22812 im_cv_x_configure="$ac_dir/"
22813 break
22814 fi
22815
22816 done
22817fi
cristy8b350f62009-11-15 23:12:43 +000022818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000022819$as_echo "$im_cv_x_configure" >&6; }
22820X11_CONFIGURE_PATH="$im_cv_x_configure"
22821case "${build_os}" in
22822 mingw* )
22823 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
22824 ;;
22825esac
22826
22827cat >>confdefs.h <<_ACEOF
22828#define X11_CONFIGURE_PATH "$X11ConfigurePath"
22829_ACEOF
22830
22831
22832#
22833# Find OpenMP library
22834#
22835GOMP_LIBS=''
22836if test "$enable_openmp" != 'no'; then
22837 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000022838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022839$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022840if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022841 $as_echo_n "(cached) " >&6
22842else
22843 ac_check_lib_save_LIBS=$LIBS
22844LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022846/* end confdefs.h. */
22847
22848/* Override any GCC internal prototype to avoid an error.
22849 Use char because int might match the return type of a GCC
22850 builtin and then its argument prototype would still apply. */
22851#ifdef __cplusplus
22852extern "C"
22853#endif
22854char GOMP_parallel_start ();
22855int
22856main ()
22857{
22858return GOMP_parallel_start ();
22859 ;
22860 return 0;
22861}
22862_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022863if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022864 ac_cv_lib_gomp_GOMP_parallel_start=yes
22865else
cristy8b350f62009-11-15 23:12:43 +000022866 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000022867fi
cristy8b350f62009-11-15 23:12:43 +000022868rm -f core conftest.err conftest.$ac_objext \
22869 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022870LIBS=$ac_check_lib_save_LIBS
22871fi
cristy8b350f62009-11-15 23:12:43 +000022872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000022873$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022874if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022875 GOMP_LIBS="-lgomp"
22876fi
22877 # gcc
22878 else
cristy8b350f62009-11-15 23:12:43 +000022879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000022880$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022881if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022882 $as_echo_n "(cached) " >&6
22883else
22884 ac_check_lib_save_LIBS=$LIBS
22885LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022887/* end confdefs.h. */
22888
22889/* Override any GCC internal prototype to avoid an error.
22890 Use char because int might match the return type of a GCC
22891 builtin and then its argument prototype would still apply. */
22892#ifdef __cplusplus
22893extern "C"
22894#endif
22895char sunw_mp_register_warn ();
22896int
22897main ()
22898{
22899return sunw_mp_register_warn ();
22900 ;
22901 return 0;
22902}
22903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022904if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022905 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
22906else
cristy8b350f62009-11-15 23:12:43 +000022907 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000022908fi
cristy8b350f62009-11-15 23:12:43 +000022909rm -f core conftest.err conftest.$ac_objext \
22910 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022911LIBS=$ac_check_lib_save_LIBS
22912fi
cristy8b350f62009-11-15 23:12:43 +000022913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000022914$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022915if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022916 GOMP_LIBS="-lmtsk"
22917fi
22918 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000022919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022920$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022921if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022922 $as_echo_n "(cached) " >&6
22923else
22924 ac_check_lib_save_LIBS=$LIBS
22925LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022927/* end confdefs.h. */
22928
22929/* Override any GCC internal prototype to avoid an error.
22930 Use char because int might match the return type of a GCC
22931 builtin and then its argument prototype would still apply. */
22932#ifdef __cplusplus
22933extern "C"
22934#endif
22935char _xlsmpFlush ();
22936int
22937main ()
22938{
22939return _xlsmpFlush ();
22940 ;
22941 return 0;
22942}
22943_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022944if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022945 ac_cv_lib_xlsmp__xlsmpFlush=yes
22946else
cristy8b350f62009-11-15 23:12:43 +000022947 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000022948fi
cristy8b350f62009-11-15 23:12:43 +000022949rm -f core conftest.err conftest.$ac_objext \
22950 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022951LIBS=$ac_check_lib_save_LIBS
22952fi
cristy8b350f62009-11-15 23:12:43 +000022953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000022954$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022955if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022956 GOMP_LIBS="-lxlsmp"
22957fi
22958 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000022959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022960$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022961if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022962 $as_echo_n "(cached) " >&6
22963else
22964 ac_check_lib_save_LIBS=$LIBS
22965LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022967/* end confdefs.h. */
22968
22969/* Override any GCC internal prototype to avoid an error.
22970 Use char because int might match the return type of a GCC
22971 builtin and then its argument prototype would still apply. */
22972#ifdef __cplusplus
22973extern "C"
22974#endif
22975char mp_destroy ();
22976int
22977main ()
22978{
22979return mp_destroy ();
22980 ;
22981 return 0;
22982}
22983_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022984if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022985 ac_cv_lib_mp_mp_destroy=yes
22986else
cristy8b350f62009-11-15 23:12:43 +000022987 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000022988fi
cristy8b350f62009-11-15 23:12:43 +000022989rm -f core conftest.err conftest.$ac_objext \
22990 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022991LIBS=$ac_check_lib_save_LIBS
22992fi
cristy8b350f62009-11-15 23:12:43 +000022993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000022994$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022995if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022996 GOMP_LIBS="-lmp"
22997fi
22998 # SGI IRIX 6.5 MIPSpro C/C++
22999 fi
23000 LIBS="$GOMP_LIBS $LIBS"
23001fi
23002
23003
23004#
23005# Find Posix threads library
23006#
23007THREAD_LIBS=''
23008if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
23009
23010 if test "x$PTHREAD_LIBS" = "x"; then
23011 case "${host_cpu}-${host_os}" in
23012 *-freebsd*)
23013
23014
23015
23016ac_ext=c
23017ac_cpp='$CPP $CPPFLAGS'
23018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23020ac_compiler_gnu=$ac_cv_c_compiler_gnu
23021
23022magick_pthread_lib_ok=no
23023
23024LIB=-lc_r
23025save_LIBS="$LIBS"
23026LIBS="$LIBS $LIB"
23027
cristy8b350f62009-11-15 23:12:43 +000023028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023029$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023031/* end confdefs.h. */
23032#include <pthread.h>
23033int
23034main ()
23035{
23036 pthread_t th;
23037 pthread_join(th, 0);
23038 pthread_attr_init(0);
23039 pthread_cleanup_push(0, 0);
23040 pthread_create(0,0,0,0);
23041 pthread_cleanup_pop(0);
23042 ;
23043 return 0;
23044}
23045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023046if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023047 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023048fi
cristy8b350f62009-11-15 23:12:43 +000023049rm -f core conftest.err conftest.$ac_objext \
23050 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023051
cristy8b350f62009-11-15 23:12:43 +000023052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023053$as_echo "${magick_pthread_lib_ok}" >&6; }
23054if test "$magick_pthread_lib_ok" = yes
23055then
23056 PTHREAD_LIBS=-lc_r
23057 :
23058else
23059
23060 :
23061fi
23062
23063LIBS="$save_LIBS"
23064
23065ac_ext=c
23066ac_cpp='$CPP $CPPFLAGS'
23067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23069ac_compiler_gnu=$ac_cv_c_compiler_gnu
23070
23071 ;;
23072 esac
23073 fi
23074
23075 for lib in pthread pthreads; do
23076 if test "x$PTHREAD_LIBS" = "x"; then
23077
23078
23079
23080ac_ext=c
23081ac_cpp='$CPP $CPPFLAGS'
23082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23084ac_compiler_gnu=$ac_cv_c_compiler_gnu
23085
23086magick_pthread_lib_ok=no
23087
23088LIB=-l$lib
23089save_LIBS="$LIBS"
23090LIBS="$LIBS $LIB"
23091
cristy8b350f62009-11-15 23:12:43 +000023092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023093$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023095/* end confdefs.h. */
23096#include <pthread.h>
23097int
23098main ()
23099{
23100 pthread_t th;
23101 pthread_join(th, 0);
23102 pthread_attr_init(0);
23103 pthread_cleanup_push(0, 0);
23104 pthread_create(0,0,0,0);
23105 pthread_cleanup_pop(0);
23106 ;
23107 return 0;
23108}
23109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023110if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023111 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023112fi
cristy8b350f62009-11-15 23:12:43 +000023113rm -f core conftest.err conftest.$ac_objext \
23114 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023115
cristy8b350f62009-11-15 23:12:43 +000023116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023117$as_echo "${magick_pthread_lib_ok}" >&6; }
23118if test "$magick_pthread_lib_ok" = yes
23119then
23120 PTHREAD_LIBS=-l$lib
23121 :
23122else
23123
23124 :
23125fi
23126
23127LIBS="$save_LIBS"
23128
23129ac_ext=c
23130ac_cpp='$CPP $CPPFLAGS'
23131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23133ac_compiler_gnu=$ac_cv_c_compiler_gnu
23134
23135
23136 fi
23137 done
23138
23139 THREAD_LIBS="$PTHREAD_LIBS"
23140 LIBS="$LIBS $THREAD_LIBS"
23141fi
23142
23143
23144#
23145# Check for umem.
23146#
23147have_umem='no'
23148UMEM_LIBS=''
23149if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000023150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000023151$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023153$as_echo "" >&6; }
23154 failed=0
23155 passed=0
cristy8b350f62009-11-15 23:12:43 +000023156 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
23157if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023158 passed=`expr $passed + 1`
23159else
23160 failed=`expr $failed + 1`
23161fi
23162
23163
cristy8b350f62009-11-15 23:12:43 +000023164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023165$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023166if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023167 $as_echo_n "(cached) " >&6
23168else
23169 ac_check_lib_save_LIBS=$LIBS
23170LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023172/* end confdefs.h. */
23173
23174/* Override any GCC internal prototype to avoid an error.
23175 Use char because int might match the return type of a GCC
23176 builtin and then its argument prototype would still apply. */
23177#ifdef __cplusplus
23178extern "C"
23179#endif
23180char umem_alloc ();
23181int
23182main ()
23183{
23184return umem_alloc ();
23185 ;
23186 return 0;
23187}
23188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023189if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023190 ac_cv_lib_umem_umem_alloc=yes
23191else
cristy8b350f62009-11-15 23:12:43 +000023192 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000023193fi
cristy8b350f62009-11-15 23:12:43 +000023194rm -f core conftest.err conftest.$ac_objext \
23195 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023196LIBS=$ac_check_lib_save_LIBS
23197fi
cristy8b350f62009-11-15 23:12:43 +000023198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023199$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023200if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023201 passed=`expr $passed + 1`
23202else
23203 failed=`expr $failed + 1`
23204fi
23205
cristy8b350f62009-11-15 23:12:43 +000023206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023207$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023208if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023209 $as_echo_n "(cached) " >&6
23210else
23211 ac_check_lib_save_LIBS=$LIBS
23212LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023214/* end confdefs.h. */
23215
23216/* Override any GCC internal prototype to avoid an error.
23217 Use char because int might match the return type of a GCC
23218 builtin and then its argument prototype would still apply. */
23219#ifdef __cplusplus
23220extern "C"
23221#endif
23222char umem_free ();
23223int
23224main ()
23225{
23226return umem_free ();
23227 ;
23228 return 0;
23229}
23230_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023231if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023232 ac_cv_lib_umem_umem_free=yes
23233else
cristy8b350f62009-11-15 23:12:43 +000023234 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000023235fi
cristy8b350f62009-11-15 23:12:43 +000023236rm -f core conftest.err conftest.$ac_objext \
23237 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023238LIBS=$ac_check_lib_save_LIBS
23239fi
cristy8b350f62009-11-15 23:12:43 +000023240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000023241$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023242if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023243 passed=`expr $passed + 1`
23244else
23245 failed=`expr $failed + 1`
23246fi
23247
cristy8b350f62009-11-15 23:12:43 +000023248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023249$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23250 if test $passed -gt 0; then
23251 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023253$as_echo "no -- some components failed test" >&6; }
23254 have_umem='no (failed tests)'
23255 else
23256 UMEM_LIBS='-lumem'
23257 LIBS="$UMEM_LIBS $LIBS"
23258
cristy8b350f62009-11-15 23:12:43 +000023259$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023260
cristy8b350f62009-11-15 23:12:43 +000023261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023262$as_echo "yes" >&6; }
23263 have_umem='yes'
23264 fi
23265 else
cristy8b350f62009-11-15 23:12:43 +000023266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023267$as_echo "no" >&6; }
23268 fi
23269fi
23270 if test "$have_umem" = 'yes'; then
23271 HasUMEM_TRUE=
23272 HasUMEM_FALSE='#'
23273else
23274 HasUMEM_TRUE='#'
23275 HasUMEM_FALSE=
23276fi
23277
23278
23279
23280#
23281# Add support for ccmalloc memory debugging library if requested
23282#
23283have_ccmalloc='no'
23284CCMALLOC_LIBS=''
23285if test "$enable_ccmalloc" = 'yes'; then
23286 # Extract the first word of "ccmalloc", so it can be a program name with args.
23287set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023289$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023290if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023291 $as_echo_n "(cached) " >&6
23292else
23293 case $CCMALLOCDelegate in
23294 [\\/]* | ?:[\\/]*)
23295 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23296 ;;
23297 *)
23298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23299for as_dir in $PATH
23300do
23301 IFS=$as_save_IFS
23302 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023303 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23305 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000023306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023307 break 2
23308 fi
23309done
cristy8b350f62009-11-15 23:12:43 +000023310 done
cristy3ed852e2009-09-05 21:47:34 +000023311IFS=$as_save_IFS
23312
23313 ;;
23314esac
23315fi
23316CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23317if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000023318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000023319$as_echo "$CCMALLOCDelegate" >&6; }
23320else
cristy8b350f62009-11-15 23:12:43 +000023321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023322$as_echo "no" >&6; }
23323fi
23324
23325
23326 if test -n "$CCMALLOCDelegate"; then
23327 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23328 OLIBS="$LIBS"
23329 # Assume that gcc is used with ccmalloc.
23330 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000023331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023332$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023333if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023334 $as_echo_n "(cached) " >&6
23335else
23336 ac_check_lib_save_LIBS=$LIBS
23337LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023339/* end confdefs.h. */
23340
23341/* Override any GCC internal prototype to avoid an error.
23342 Use char because int might match the return type of a GCC
23343 builtin and then its argument prototype would still apply. */
23344#ifdef __cplusplus
23345extern "C"
23346#endif
23347char ccmalloc_malloc ();
23348int
23349main ()
23350{
23351return ccmalloc_malloc ();
23352 ;
23353 return 0;
23354}
23355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023356if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023357 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
23358else
cristy8b350f62009-11-15 23:12:43 +000023359 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000023360fi
cristy8b350f62009-11-15 23:12:43 +000023361rm -f core conftest.err conftest.$ac_objext \
23362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023363LIBS=$ac_check_lib_save_LIBS
23364fi
cristy8b350f62009-11-15 23:12:43 +000023365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023366$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023367if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023368 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
23369fi
23370
23371 if test -n "$CCMALLOC_LIBS"; then
23372 LIBS="$OLIBS"
23373 LIBS="$LIBS $CCMALLOC_LIBS"
23374 have_ccmalloc='yes'
23375 else
23376 LIBS="$OLIBS"
23377 fi
23378 fi
23379fi
23380
23381#
23382# Add support for efence memory debugging library if requested
23383#
23384if test "$enable_efence" = 'yes'; then
23385 EFENCE_LIBS='-lefence'
23386 LIBS="$EFENCE_LIBS $LIBS"
23387fi
23388
23389#
23390# Find math library
23391#
23392MATH_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023394$as_echo_n "checking for sqrt in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023395if test "${ac_cv_lib_m_sqrt+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023396 $as_echo_n "(cached) " >&6
23397else
23398 ac_check_lib_save_LIBS=$LIBS
23399LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023401/* end confdefs.h. */
23402
23403/* Override any GCC internal prototype to avoid an error.
23404 Use char because int might match the return type of a GCC
23405 builtin and then its argument prototype would still apply. */
23406#ifdef __cplusplus
23407extern "C"
23408#endif
23409char sqrt ();
23410int
23411main ()
23412{
23413return sqrt ();
23414 ;
23415 return 0;
23416}
23417_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023418if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023419 ac_cv_lib_m_sqrt=yes
23420else
cristy8b350f62009-11-15 23:12:43 +000023421 ac_cv_lib_m_sqrt=no
cristy3ed852e2009-09-05 21:47:34 +000023422fi
cristy8b350f62009-11-15 23:12:43 +000023423rm -f core conftest.err conftest.$ac_objext \
23424 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023425LIBS=$ac_check_lib_save_LIBS
23426fi
cristy8b350f62009-11-15 23:12:43 +000023427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
cristy3ed852e2009-09-05 21:47:34 +000023428$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023429if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023430 MATH_LIBS="-lm"
23431fi
23432
23433LIBS="$MATH_LIBS $LIBS"
23434
23435
23436
23437#
23438# Check for BZLIB
23439#
23440
23441
23442# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000023443if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023444 withval=$with_bzlib; with_bzlib=$withval
23445else
23446 with_bzlib='yes'
23447fi
23448
23449
23450if test "$with_bzlib" != 'yes'; then
23451 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
23452fi
23453
23454have_bzlib='no'
23455if test "$with_bzlib" != 'no'; then
23456 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000023458$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023460$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023462$as_echo "" >&6; }
23463 failed=0
23464 passed=0
23465 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000023466 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
23467if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023468 passed=`expr $passed + 1`
23469else
23470 failed=`expr $failed + 1`
23471fi
23472
23473
cristy8b350f62009-11-15 23:12:43 +000023474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023475$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023476if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023477 $as_echo_n "(cached) " >&6
23478else
23479 ac_check_lib_save_LIBS=$LIBS
23480LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023482/* end confdefs.h. */
23483
23484/* Override any GCC internal prototype to avoid an error.
23485 Use char because int might match the return type of a GCC
23486 builtin and then its argument prototype would still apply. */
23487#ifdef __cplusplus
23488extern "C"
23489#endif
23490char BZ2_bzDecompress ();
23491int
23492main ()
23493{
23494return BZ2_bzDecompress ();
23495 ;
23496 return 0;
23497}
23498_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023499if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023500 ac_cv_lib_bz2_BZ2_bzDecompress=yes
23501else
cristy8b350f62009-11-15 23:12:43 +000023502 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000023503fi
cristy8b350f62009-11-15 23:12:43 +000023504rm -f core conftest.err conftest.$ac_objext \
23505 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023506LIBS=$ac_check_lib_save_LIBS
23507fi
cristy8b350f62009-11-15 23:12:43 +000023508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023509$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023510if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023511 found_libbz=`expr $found_libbz + 1`
23512fi
23513
23514 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000023515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023516$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023517if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023518 $as_echo_n "(cached) " >&6
23519else
23520 ac_check_lib_save_LIBS=$LIBS
23521LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023523/* end confdefs.h. */
23524
23525/* Override any GCC internal prototype to avoid an error.
23526 Use char because int might match the return type of a GCC
23527 builtin and then its argument prototype would still apply. */
23528#ifdef __cplusplus
23529extern "C"
23530#endif
23531char _imp__BZ2_decompress ();
23532int
23533main ()
23534{
23535return _imp__BZ2_decompress ();
23536 ;
23537 return 0;
23538}
23539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023540if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023541 ac_cv_lib_bz2__imp__BZ2_decompress=yes
23542else
cristy8b350f62009-11-15 23:12:43 +000023543 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000023544fi
cristy8b350f62009-11-15 23:12:43 +000023545rm -f core conftest.err conftest.$ac_objext \
23546 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023547LIBS=$ac_check_lib_save_LIBS
23548fi
cristy8b350f62009-11-15 23:12:43 +000023549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023550$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023551if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023552 found_libbz=`expr $found_libbz + 1`
23553fi
23554
23555 fi
23556 if test $found_libbz -gt 0; then
23557 passed=`expr $passed + 1`
23558 else
23559 failed=`expr $failed + 1`
23560 fi
cristy8b350f62009-11-15 23:12:43 +000023561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023562$as_echo_n "checking if BZLIB package is complete... " >&6; }
23563 if test $passed -gt 0; then
23564 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023566$as_echo "no -- some components failed test" >&6; }
23567 have_bzlib='no (failed tests)'
23568 else
23569 BZLIB_LIBS='-lbz2'
23570 LIBS="$BZLIB_LIBS $LIBS"
23571
cristy8b350f62009-11-15 23:12:43 +000023572$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023573
cristy8b350f62009-11-15 23:12:43 +000023574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023575$as_echo "yes" >&6; }
23576 have_bzlib='yes'
23577 fi
23578 else
cristy8b350f62009-11-15 23:12:43 +000023579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023580$as_echo "no" >&6; }
23581 fi
23582fi
23583 if test "$have_bzlib" = 'yes'; then
23584 BZLIB_DELEGATE_TRUE=
23585 BZLIB_DELEGATE_FALSE='#'
23586else
23587 BZLIB_DELEGATE_TRUE='#'
23588 BZLIB_DELEGATE_FALSE=
23589fi
23590
23591
23592
23593#
23594# Find the X11 include and library directories.
23595#
23596IPC_LIBS=''
23597X11_LIBS=''
23598XEXT_LIBS=''
23599XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000023601$as_echo_n "checking for X... " >&6; }
23602
23603
23604# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000023605if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023606 withval=$with_x;
23607fi
23608
23609# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23610if test "x$with_x" = xno; then
23611 # The user explicitly disabled X.
23612 have_x=disabled
23613else
23614 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000023615 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
23616 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023617 $as_echo_n "(cached) " >&6
23618else
23619 # One or both of the vars are not set, and there is no cached value.
23620ac_x_includes=no ac_x_libraries=no
23621rm -f -r conftest.dir
23622if mkdir conftest.dir; then
23623 cd conftest.dir
23624 cat >Imakefile <<'_ACEOF'
23625incroot:
23626 @echo incroot='${INCROOT}'
23627usrlibdir:
23628 @echo usrlibdir='${USRLIBDIR}'
23629libdir:
23630 @echo libdir='${LIBDIR}'
23631_ACEOF
23632 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23633 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23634 for ac_var in incroot usrlibdir libdir; do
23635 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23636 done
23637 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23638 for ac_extension in a so sl dylib la dll; do
23639 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23640 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23641 ac_im_usrlibdir=$ac_im_libdir; break
23642 fi
23643 done
23644 # Screen out bogus values from the imake configuration. They are
23645 # bogus both because they are the default anyway, and because
23646 # using them would break gcc on systems where it needs fixed includes.
23647 case $ac_im_incroot in
23648 /usr/include) ac_x_includes= ;;
23649 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23650 esac
23651 case $ac_im_usrlibdir in
23652 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23653 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23654 esac
23655 fi
23656 cd ..
23657 rm -f -r conftest.dir
23658fi
23659
23660# Standard set of common directories for X headers.
23661# Check X11 before X11Rn because it is often a symlink to the current release.
23662ac_x_header_dirs='
23663/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000023664/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023665/usr/X11R6/include
23666/usr/X11R5/include
23667/usr/X11R4/include
23668
23669/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000023670/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023671/usr/include/X11R6
23672/usr/include/X11R5
23673/usr/include/X11R4
23674
23675/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000023676/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023677/usr/local/X11R6/include
23678/usr/local/X11R5/include
23679/usr/local/X11R4/include
23680
23681/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000023682/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023683/usr/local/include/X11R6
23684/usr/local/include/X11R5
23685/usr/local/include/X11R4
23686
23687/usr/X386/include
23688/usr/x386/include
23689/usr/XFree86/include/X11
23690
23691/usr/include
23692/usr/local/include
23693/usr/unsupported/include
23694/usr/athena/include
23695/usr/local/x11r5/include
23696/usr/lpp/Xamples/include
23697
23698/usr/openwin/include
23699/usr/openwin/share/include'
23700
23701if test "$ac_x_includes" = no; then
23702 # Guess where to find include files, by looking for Xlib.h.
23703 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000023704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023705/* end confdefs.h. */
23706#include <X11/Xlib.h>
23707_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023708if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023709 # We can compile using X headers with no special include directory.
23710ac_x_includes=
23711else
cristyc7083c12009-10-14 03:16:55 +000023712 for ac_dir in $ac_x_header_dirs; do
23713 if test -r "$ac_dir/X11/Xlib.h"; then
23714 ac_x_includes=$ac_dir
23715 break
23716 fi
23717done
23718fi
cristyc7083c12009-10-14 03:16:55 +000023719rm -f conftest.err conftest.$ac_ext
23720fi # $ac_x_includes = no
23721
23722if test "$ac_x_libraries" = no; then
23723 # Check for the libraries.
23724 # See if we find them without any special options.
23725 # Don't add to $LIBS permanently.
23726 ac_save_LIBS=$LIBS
23727 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023729/* end confdefs.h. */
23730#include <X11/Xlib.h>
23731int
23732main ()
23733{
23734XrmInitialize ()
23735 ;
23736 return 0;
23737}
23738_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023739if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023740 LIBS=$ac_save_LIBS
23741# We can link X programs with no special library path.
23742ac_x_libraries=
23743else
cristy8b350f62009-11-15 23:12:43 +000023744 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000023745for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23746do
23747 # Don't even attempt the hair of trying to link an X program!
23748 for ac_extension in a so sl dylib la dll; do
23749 if test -r "$ac_dir/libX11.$ac_extension"; then
23750 ac_x_libraries=$ac_dir
23751 break 2
23752 fi
23753 done
23754done
23755fi
cristy8b350f62009-11-15 23:12:43 +000023756rm -f core conftest.err conftest.$ac_objext \
23757 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023758fi # $ac_x_libraries = no
23759
23760case $ac_x_includes,$ac_x_libraries in #(
23761 no,* | *,no | *\'*)
23762 # Didn't find X, or a directory has "'" in its name.
23763 ac_cv_have_x="have_x=no";; #(
23764 *)
23765 # Record where we found X for the cache.
23766 ac_cv_have_x="have_x=yes\
23767 ac_x_includes='$ac_x_includes'\
23768 ac_x_libraries='$ac_x_libraries'"
23769esac
23770fi
23771;; #(
23772 *) have_x=yes;;
23773 esac
23774 eval "$ac_cv_have_x"
23775fi # $with_x != no
23776
23777if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000023779$as_echo "$have_x" >&6; }
23780 no_x=yes
23781else
23782 # If each of the values was on the command line, it overrides each guess.
23783 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23784 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23785 # Update the cache value to reflect the command line values.
23786 ac_cv_have_x="have_x=yes\
23787 ac_x_includes='$x_includes'\
23788 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000023789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000023790$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23791fi
23792
cristy3ed852e2009-09-05 21:47:34 +000023793if test "$no_x" = yes; then
23794 # Not all programs may use this symbol, but it does not hurt to define it.
23795
cristy8b350f62009-11-15 23:12:43 +000023796$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023797
23798 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23799else
23800 if test -n "$x_includes"; then
23801 X_CFLAGS="$X_CFLAGS -I$x_includes"
23802 fi
23803
23804 # It would also be nice to do this for all -L options, not just this one.
23805 if test -n "$x_libraries"; then
23806 X_LIBS="$X_LIBS -L$x_libraries"
23807 # For Solaris; some versions of Sun CC require a space after -R and
23808 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000023809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000023810$as_echo_n "checking whether -R must be followed by a space... " >&6; }
23811 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23812 ac_xsave_c_werror_flag=$ac_c_werror_flag
23813 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000023814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023815/* end confdefs.h. */
23816
23817int
23818main ()
23819{
23820
23821 ;
23822 return 0;
23823}
23824_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023825if ac_fn_c_try_link "$LINENO"; then :
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023827$as_echo "no" >&6; }
23828 X_LIBS="$X_LIBS -R$x_libraries"
23829else
cristy8b350f62009-11-15 23:12:43 +000023830 LIBS="$ac_xsave_LIBS -R $x_libraries"
23831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023832/* end confdefs.h. */
23833
23834int
23835main ()
23836{
23837
23838 ;
23839 return 0;
23840}
23841_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023842if ac_fn_c_try_link "$LINENO"; then :
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023844$as_echo "yes" >&6; }
23845 X_LIBS="$X_LIBS -R $x_libraries"
23846else
cristy8b350f62009-11-15 23:12:43 +000023847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023848$as_echo "neither works" >&6; }
23849fi
cristy8b350f62009-11-15 23:12:43 +000023850rm -f core conftest.err conftest.$ac_objext \
23851 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023852fi
cristy8b350f62009-11-15 23:12:43 +000023853rm -f core conftest.err conftest.$ac_objext \
23854 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023855 ac_c_werror_flag=$ac_xsave_c_werror_flag
23856 LIBS=$ac_xsave_LIBS
23857 fi
23858
23859 # Check for system-dependent libraries X programs must link with.
23860 # Do this before checking for the system-independent R6 libraries
23861 # (-lICE), since we may need -lsocket or whatever for X linking.
23862
23863 if test "$ISC" = yes; then
23864 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23865 else
23866 # Martyn Johnson says this is needed for Ultrix, if the X
23867 # libraries were built with DECnet support. And Karl Berry says
23868 # the Alpha needs dnet_stub (dnet does not exist).
23869 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000023870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023871/* end confdefs.h. */
23872
23873/* Override any GCC internal prototype to avoid an error.
23874 Use char because int might match the return type of a GCC
23875 builtin and then its argument prototype would still apply. */
23876#ifdef __cplusplus
23877extern "C"
23878#endif
23879char XOpenDisplay ();
23880int
23881main ()
23882{
23883return XOpenDisplay ();
23884 ;
23885 return 0;
23886}
23887_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023888if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023889
cristy8b350f62009-11-15 23:12:43 +000023890else
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023892$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023893if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023894 $as_echo_n "(cached) " >&6
23895else
23896 ac_check_lib_save_LIBS=$LIBS
23897LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023899/* end confdefs.h. */
23900
23901/* Override any GCC internal prototype to avoid an error.
23902 Use char because int might match the return type of a GCC
23903 builtin and then its argument prototype would still apply. */
23904#ifdef __cplusplus
23905extern "C"
23906#endif
23907char dnet_ntoa ();
23908int
23909main ()
23910{
23911return dnet_ntoa ();
23912 ;
23913 return 0;
23914}
23915_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023916if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023917 ac_cv_lib_dnet_dnet_ntoa=yes
23918else
cristy8b350f62009-11-15 23:12:43 +000023919 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023920fi
cristy8b350f62009-11-15 23:12:43 +000023921rm -f core conftest.err conftest.$ac_objext \
23922 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023923LIBS=$ac_check_lib_save_LIBS
23924fi
cristy8b350f62009-11-15 23:12:43 +000023925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023926$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023927if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023928 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23929fi
23930
23931 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000023932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000023933$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023934if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023935 $as_echo_n "(cached) " >&6
23936else
23937 ac_check_lib_save_LIBS=$LIBS
23938LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023940/* end confdefs.h. */
23941
23942/* Override any GCC internal prototype to avoid an error.
23943 Use char because int might match the return type of a GCC
23944 builtin and then its argument prototype would still apply. */
23945#ifdef __cplusplus
23946extern "C"
23947#endif
23948char dnet_ntoa ();
23949int
23950main ()
23951{
23952return dnet_ntoa ();
23953 ;
23954 return 0;
23955}
23956_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023957if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023958 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23959else
cristy8b350f62009-11-15 23:12:43 +000023960 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023961fi
cristy8b350f62009-11-15 23:12:43 +000023962rm -f core conftest.err conftest.$ac_objext \
23963 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023964LIBS=$ac_check_lib_save_LIBS
23965fi
cristy8b350f62009-11-15 23:12:43 +000023966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023967$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023968if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023969 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23970fi
23971
23972 fi
23973fi
cristy8b350f62009-11-15 23:12:43 +000023974rm -f core conftest.err conftest.$ac_objext \
23975 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023976 LIBS="$ac_xsave_LIBS"
23977
23978 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23979 # to get the SysV transport functions.
23980 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23981 # needs -lnsl.
23982 # The nsl library prevents programs from opening the X display
23983 # on Irix 5.2, according to T.E. Dickey.
23984 # The functions gethostbyname, getservbyname, and inet_addr are
23985 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000023986 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23987if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023988
cristy3ed852e2009-09-05 21:47:34 +000023989fi
23990
cristy3ed852e2009-09-05 21:47:34 +000023991 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000023992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000023993$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023994if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023995 $as_echo_n "(cached) " >&6
23996else
23997 ac_check_lib_save_LIBS=$LIBS
23998LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024000/* end confdefs.h. */
24001
24002/* Override any GCC internal prototype to avoid an error.
24003 Use char because int might match the return type of a GCC
24004 builtin and then its argument prototype would still apply. */
24005#ifdef __cplusplus
24006extern "C"
24007#endif
24008char gethostbyname ();
24009int
24010main ()
24011{
24012return gethostbyname ();
24013 ;
24014 return 0;
24015}
24016_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024017if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024018 ac_cv_lib_nsl_gethostbyname=yes
24019else
cristy8b350f62009-11-15 23:12:43 +000024020 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024021fi
cristy8b350f62009-11-15 23:12:43 +000024022rm -f core conftest.err conftest.$ac_objext \
24023 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024024LIBS=$ac_check_lib_save_LIBS
24025fi
cristy8b350f62009-11-15 23:12:43 +000024026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024027$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024028if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024029 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24030fi
24031
24032 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000024034$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024035if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024036 $as_echo_n "(cached) " >&6
24037else
24038 ac_check_lib_save_LIBS=$LIBS
24039LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024041/* end confdefs.h. */
24042
24043/* Override any GCC internal prototype to avoid an error.
24044 Use char because int might match the return type of a GCC
24045 builtin and then its argument prototype would still apply. */
24046#ifdef __cplusplus
24047extern "C"
24048#endif
24049char gethostbyname ();
24050int
24051main ()
24052{
24053return gethostbyname ();
24054 ;
24055 return 0;
24056}
24057_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024058if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024059 ac_cv_lib_bsd_gethostbyname=yes
24060else
cristy8b350f62009-11-15 23:12:43 +000024061 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024062fi
cristy8b350f62009-11-15 23:12:43 +000024063rm -f core conftest.err conftest.$ac_objext \
24064 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024065LIBS=$ac_check_lib_save_LIBS
24066fi
cristy8b350f62009-11-15 23:12:43 +000024067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024068$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024069if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024070 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24071fi
24072
24073 fi
24074 fi
24075
24076 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24077 # socket/setsockopt and other routines are undefined under SCO ODT
24078 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24079 # on later versions), says Simon Leinen: it contains gethostby*
24080 # variants that don't use the name server (or something). -lsocket
24081 # must be given before -lnsl if both are needed. We assume that
24082 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000024083 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24084if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024085
cristy3ed852e2009-09-05 21:47:34 +000024086fi
24087
cristy3ed852e2009-09-05 21:47:34 +000024088 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000024089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000024090$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024091if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024092 $as_echo_n "(cached) " >&6
24093else
24094 ac_check_lib_save_LIBS=$LIBS
24095LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024097/* end confdefs.h. */
24098
24099/* Override any GCC internal prototype to avoid an error.
24100 Use char because int might match the return type of a GCC
24101 builtin and then its argument prototype would still apply. */
24102#ifdef __cplusplus
24103extern "C"
24104#endif
24105char connect ();
24106int
24107main ()
24108{
24109return connect ();
24110 ;
24111 return 0;
24112}
24113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024114if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024115 ac_cv_lib_socket_connect=yes
24116else
cristy8b350f62009-11-15 23:12:43 +000024117 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000024118fi
cristy8b350f62009-11-15 23:12:43 +000024119rm -f core conftest.err conftest.$ac_objext \
24120 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024121LIBS=$ac_check_lib_save_LIBS
24122fi
cristy8b350f62009-11-15 23:12:43 +000024123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000024124$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024125if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024126 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24127fi
24128
24129 fi
24130
24131 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000024132 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24133if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024134
cristy3ed852e2009-09-05 21:47:34 +000024135fi
24136
cristy3ed852e2009-09-05 21:47:34 +000024137 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000024138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000024139$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024140if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024141 $as_echo_n "(cached) " >&6
24142else
24143 ac_check_lib_save_LIBS=$LIBS
24144LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024146/* end confdefs.h. */
24147
24148/* Override any GCC internal prototype to avoid an error.
24149 Use char because int might match the return type of a GCC
24150 builtin and then its argument prototype would still apply. */
24151#ifdef __cplusplus
24152extern "C"
24153#endif
24154char remove ();
24155int
24156main ()
24157{
24158return remove ();
24159 ;
24160 return 0;
24161}
24162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024163if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024164 ac_cv_lib_posix_remove=yes
24165else
cristy8b350f62009-11-15 23:12:43 +000024166 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000024167fi
cristy8b350f62009-11-15 23:12:43 +000024168rm -f core conftest.err conftest.$ac_objext \
24169 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024170LIBS=$ac_check_lib_save_LIBS
24171fi
cristy8b350f62009-11-15 23:12:43 +000024172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000024173$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024174if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024175 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24176fi
24177
24178 fi
24179
24180 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000024181 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24182if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024183
cristy3ed852e2009-09-05 21:47:34 +000024184fi
24185
cristy3ed852e2009-09-05 21:47:34 +000024186 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000024187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024188$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024189if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024190 $as_echo_n "(cached) " >&6
24191else
24192 ac_check_lib_save_LIBS=$LIBS
24193LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024195/* end confdefs.h. */
24196
24197/* Override any GCC internal prototype to avoid an error.
24198 Use char because int might match the return type of a GCC
24199 builtin and then its argument prototype would still apply. */
24200#ifdef __cplusplus
24201extern "C"
24202#endif
24203char shmat ();
24204int
24205main ()
24206{
24207return shmat ();
24208 ;
24209 return 0;
24210}
24211_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024212if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024213 ac_cv_lib_ipc_shmat=yes
24214else
cristy8b350f62009-11-15 23:12:43 +000024215 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000024216fi
cristy8b350f62009-11-15 23:12:43 +000024217rm -f core conftest.err conftest.$ac_objext \
24218 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024219LIBS=$ac_check_lib_save_LIBS
24220fi
cristy8b350f62009-11-15 23:12:43 +000024221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000024222$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024223if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024224 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24225fi
24226
24227 fi
24228 fi
24229
24230 # Check for libraries that X11R6 Xt/Xaw programs need.
24231 ac_save_LDFLAGS=$LDFLAGS
24232 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24233 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24234 # check for ICE first), but we must link in the order -lSM -lICE or
24235 # we get undefined symbols. So assume we have SM if we have ICE.
24236 # These have to be linked with before -lX11, unlike the other
24237 # libraries we check for below, so use a different variable.
24238 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000024239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024240$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024241if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024242 $as_echo_n "(cached) " >&6
24243else
24244 ac_check_lib_save_LIBS=$LIBS
24245LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024247/* end confdefs.h. */
24248
24249/* Override any GCC internal prototype to avoid an error.
24250 Use char because int might match the return type of a GCC
24251 builtin and then its argument prototype would still apply. */
24252#ifdef __cplusplus
24253extern "C"
24254#endif
24255char IceConnectionNumber ();
24256int
24257main ()
24258{
24259return IceConnectionNumber ();
24260 ;
24261 return 0;
24262}
24263_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024264if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024265 ac_cv_lib_ICE_IceConnectionNumber=yes
24266else
cristy8b350f62009-11-15 23:12:43 +000024267 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000024268fi
cristy8b350f62009-11-15 23:12:43 +000024269rm -f core conftest.err conftest.$ac_objext \
24270 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024271LIBS=$ac_check_lib_save_LIBS
24272fi
cristy8b350f62009-11-15 23:12:43 +000024273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000024274$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024275if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024276 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24277fi
24278
24279 LDFLAGS=$ac_save_LDFLAGS
24280
24281fi
24282
24283if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024285$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000024287$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024289$as_echo "" >&6; }
24290 LDFLAGS="$LDFLAGS $X_LIBS"
24291 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24292 LIBS="$X11_LIBS $LIBS"
24293 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24294
24295
cristy8b350f62009-11-15 23:12:43 +000024296$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024297
24298 #
24299 # Check for X11 shared memory extension
24300 #
24301 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000024302 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24303if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024304 have_shmctl='yes'
24305fi
24306
24307 if test "$have_shmctl" != 'yes'; then
24308 PERSIST_LIBS=$LIBS
24309 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000024310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024311/* end confdefs.h. */
24312
24313/* Override any GCC internal prototype to avoid an error.
24314 Use char because int might match the return type of a GCC
24315 builtin and then its argument prototype would still apply. */
24316#ifdef __cplusplus
24317extern "C"
24318#endif
24319char shmctl ();
24320int
24321main ()
24322{
24323return shmctl ();
24324 ;
24325 return 0;
24326}
24327_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024328if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024329 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000024330fi
cristy8b350f62009-11-15 23:12:43 +000024331rm -f core conftest.err conftest.$ac_objext \
24332 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024333 LIBS=$PERSIST_LIBS
24334 fi
24335
24336 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024338$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024339if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024340 $as_echo_n "(cached) " >&6
24341else
24342 ac_check_lib_save_LIBS=$LIBS
24343LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024345/* end confdefs.h. */
24346
24347/* Override any GCC internal prototype to avoid an error.
24348 Use char because int might match the return type of a GCC
24349 builtin and then its argument prototype would still apply. */
24350#ifdef __cplusplus
24351extern "C"
24352#endif
24353char XShmAttach ();
24354int
24355main ()
24356{
24357return XShmAttach ();
24358 ;
24359 return 0;
24360}
24361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024362if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024363 ac_cv_lib_Xext_XShmAttach=yes
24364else
cristy8b350f62009-11-15 23:12:43 +000024365 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000024366fi
cristy8b350f62009-11-15 23:12:43 +000024367rm -f core conftest.err conftest.$ac_objext \
24368 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024369LIBS=$ac_check_lib_save_LIBS
24370fi
cristy8b350f62009-11-15 23:12:43 +000024371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000024372$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024373if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024374 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024375$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024376
24377fi
24378
24379 fi
24380
24381 #
24382 # Check for X11 shape extension
24383 #
cristy8b350f62009-11-15 23:12:43 +000024384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024385$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024386if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024387 $as_echo_n "(cached) " >&6
24388else
24389 ac_check_lib_save_LIBS=$LIBS
24390LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024392/* end confdefs.h. */
24393
24394/* Override any GCC internal prototype to avoid an error.
24395 Use char because int might match the return type of a GCC
24396 builtin and then its argument prototype would still apply. */
24397#ifdef __cplusplus
24398extern "C"
24399#endif
24400char XShapeCombineMask ();
24401int
24402main ()
24403{
24404return XShapeCombineMask ();
24405 ;
24406 return 0;
24407}
24408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024409if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024410 ac_cv_lib_Xext_XShapeCombineMask=yes
24411else
cristy8b350f62009-11-15 23:12:43 +000024412 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000024413fi
cristy8b350f62009-11-15 23:12:43 +000024414rm -f core conftest.err conftest.$ac_objext \
24415 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024416LIBS=$ac_check_lib_save_LIBS
24417fi
cristy8b350f62009-11-15 23:12:43 +000024418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000024419$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024420if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024421 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024422$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024423
24424fi
24425
cristy8b350f62009-11-15 23:12:43 +000024426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000024427$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024428if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024429 $as_echo_n "(cached) " >&6
24430else
24431 ac_check_lib_save_LIBS=$LIBS
24432LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024434/* end confdefs.h. */
24435
24436/* Override any GCC internal prototype to avoid an error.
24437 Use char because int might match the return type of a GCC
24438 builtin and then its argument prototype would still apply. */
24439#ifdef __cplusplus
24440extern "C"
24441#endif
24442char XtSetEventDispatcher ();
24443int
24444main ()
24445{
24446return XtSetEventDispatcher ();
24447 ;
24448 return 0;
24449}
24450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024451if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024452 ac_cv_lib_Xt_XtSetEventDispatcher=yes
24453else
cristy8b350f62009-11-15 23:12:43 +000024454 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000024455fi
cristy8b350f62009-11-15 23:12:43 +000024456rm -f core conftest.err conftest.$ac_objext \
24457 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024458LIBS=$ac_check_lib_save_LIBS
24459fi
cristy8b350f62009-11-15 23:12:43 +000024460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000024461$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024462if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024463 XT_LIBS='-lXt'
24464fi
24465
24466 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
24467fi
24468if test "$no_x" != 'yes'; then
24469 have_x='yes'
24470else
24471 have_x='no'
24472fi
24473 if test "$have_x" = 'yes'; then
24474 X11_DELEGATE_TRUE=
24475 X11_DELEGATE_FALSE='#'
24476else
24477 X11_DELEGATE_TRUE='#'
24478 X11_DELEGATE_FALSE=
24479fi
24480
24481
24482
24483
24484
24485#
24486# Check for ZLIB
24487#
24488
24489# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000024490if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024491 withval=$with_zlib; with_zlib=$withval
24492else
24493 with_zlib='yes'
24494fi
24495
24496
24497if test "$with_zlib" != 'yes'; then
24498 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
24499fi
24500
24501have_zlib='no'
24502ZLIB_LIBS=''
24503if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024505$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024507$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024509$as_echo "" >&6; }
24510 ZLIB_LIBS=''
24511 failed=0
24512 passed=0
cristy8b350f62009-11-15 23:12:43 +000024513 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
24514if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024515 passed=`expr $passed + 1`
24516else
24517 failed=`expr $failed + 1`
24518fi
24519
24520
cristy8b350f62009-11-15 23:12:43 +000024521 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24522if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024523 passed=`expr $passed + 1`
24524else
24525 failed=`expr $failed + 1`
24526fi
24527
24528
cristy8b350f62009-11-15 23:12:43 +000024529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024530$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024531if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024532 $as_echo_n "(cached) " >&6
24533else
24534 ac_check_lib_save_LIBS=$LIBS
24535LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024537/* end confdefs.h. */
24538
24539/* Override any GCC internal prototype to avoid an error.
24540 Use char because int might match the return type of a GCC
24541 builtin and then its argument prototype would still apply. */
24542#ifdef __cplusplus
24543extern "C"
24544#endif
24545char compress ();
24546int
24547main ()
24548{
24549return compress ();
24550 ;
24551 return 0;
24552}
24553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024554if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024555 ac_cv_lib_z_compress=yes
24556else
cristy8b350f62009-11-15 23:12:43 +000024557 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000024558fi
cristy8b350f62009-11-15 23:12:43 +000024559rm -f core conftest.err conftest.$ac_objext \
24560 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024561LIBS=$ac_check_lib_save_LIBS
24562fi
cristy8b350f62009-11-15 23:12:43 +000024563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024564$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024565if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024566 passed=`expr $passed + 1`
24567else
24568 failed=`expr $failed + 1`
24569fi
24570
cristy8b350f62009-11-15 23:12:43 +000024571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024572$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024573if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024574 $as_echo_n "(cached) " >&6
24575else
24576 ac_check_lib_save_LIBS=$LIBS
24577LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024579/* end confdefs.h. */
24580
24581/* Override any GCC internal prototype to avoid an error.
24582 Use char because int might match the return type of a GCC
24583 builtin and then its argument prototype would still apply. */
24584#ifdef __cplusplus
24585extern "C"
24586#endif
24587char uncompress ();
24588int
24589main ()
24590{
24591return uncompress ();
24592 ;
24593 return 0;
24594}
24595_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024596if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024597 ac_cv_lib_z_uncompress=yes
24598else
cristy8b350f62009-11-15 23:12:43 +000024599 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000024600fi
cristy8b350f62009-11-15 23:12:43 +000024601rm -f core conftest.err conftest.$ac_objext \
24602 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024603LIBS=$ac_check_lib_save_LIBS
24604fi
cristy8b350f62009-11-15 23:12:43 +000024605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024606$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024607if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024608 passed=`expr $passed + 1`
24609else
24610 failed=`expr $failed + 1`
24611fi
24612
cristy8b350f62009-11-15 23:12:43 +000024613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024614$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024615if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024616 $as_echo_n "(cached) " >&6
24617else
24618 ac_check_lib_save_LIBS=$LIBS
24619LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024621/* end confdefs.h. */
24622
24623/* Override any GCC internal prototype to avoid an error.
24624 Use char because int might match the return type of a GCC
24625 builtin and then its argument prototype would still apply. */
24626#ifdef __cplusplus
24627extern "C"
24628#endif
24629char deflate ();
24630int
24631main ()
24632{
24633return deflate ();
24634 ;
24635 return 0;
24636}
24637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024638if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024639 ac_cv_lib_z_deflate=yes
24640else
cristy8b350f62009-11-15 23:12:43 +000024641 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000024642fi
cristy8b350f62009-11-15 23:12:43 +000024643rm -f core conftest.err conftest.$ac_objext \
24644 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024645LIBS=$ac_check_lib_save_LIBS
24646fi
cristy8b350f62009-11-15 23:12:43 +000024647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024648$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024649if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024650 passed=`expr $passed + 1`
24651else
24652 failed=`expr $failed + 1`
24653fi
24654
cristy8b350f62009-11-15 23:12:43 +000024655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024656$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024657if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024658 $as_echo_n "(cached) " >&6
24659else
24660 ac_check_lib_save_LIBS=$LIBS
24661LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024663/* end confdefs.h. */
24664
24665/* Override any GCC internal prototype to avoid an error.
24666 Use char because int might match the return type of a GCC
24667 builtin and then its argument prototype would still apply. */
24668#ifdef __cplusplus
24669extern "C"
24670#endif
24671char inflate ();
24672int
24673main ()
24674{
24675return inflate ();
24676 ;
24677 return 0;
24678}
24679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024680if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024681 ac_cv_lib_z_inflate=yes
24682else
cristy8b350f62009-11-15 23:12:43 +000024683 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000024684fi
cristy8b350f62009-11-15 23:12:43 +000024685rm -f core conftest.err conftest.$ac_objext \
24686 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024687LIBS=$ac_check_lib_save_LIBS
24688fi
cristy8b350f62009-11-15 23:12:43 +000024689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024690$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024691if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024692 passed=`expr $passed + 1`
24693else
24694 failed=`expr $failed + 1`
24695fi
24696
cristy8b350f62009-11-15 23:12:43 +000024697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024698$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024699if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024700 $as_echo_n "(cached) " >&6
24701else
24702 ac_check_lib_save_LIBS=$LIBS
24703LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024705/* end confdefs.h. */
24706
24707/* Override any GCC internal prototype to avoid an error.
24708 Use char because int might match the return type of a GCC
24709 builtin and then its argument prototype would still apply. */
24710#ifdef __cplusplus
24711extern "C"
24712#endif
24713char gzseek ();
24714int
24715main ()
24716{
24717return gzseek ();
24718 ;
24719 return 0;
24720}
24721_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024722if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024723 ac_cv_lib_z_gzseek=yes
24724else
cristy8b350f62009-11-15 23:12:43 +000024725 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000024726fi
cristy8b350f62009-11-15 23:12:43 +000024727rm -f core conftest.err conftest.$ac_objext \
24728 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024729LIBS=$ac_check_lib_save_LIBS
24730fi
cristy8b350f62009-11-15 23:12:43 +000024731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000024732$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024733if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024734 passed=`expr $passed + 1`
24735else
24736 failed=`expr $failed + 1`
24737fi
24738
cristy8b350f62009-11-15 23:12:43 +000024739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024740$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024741if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024742 $as_echo_n "(cached) " >&6
24743else
24744 ac_check_lib_save_LIBS=$LIBS
24745LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024747/* end confdefs.h. */
24748
24749/* Override any GCC internal prototype to avoid an error.
24750 Use char because int might match the return type of a GCC
24751 builtin and then its argument prototype would still apply. */
24752#ifdef __cplusplus
24753extern "C"
24754#endif
24755char gztell ();
24756int
24757main ()
24758{
24759return gztell ();
24760 ;
24761 return 0;
24762}
24763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024764if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024765 ac_cv_lib_z_gztell=yes
24766else
cristy8b350f62009-11-15 23:12:43 +000024767 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000024768fi
cristy8b350f62009-11-15 23:12:43 +000024769rm -f core conftest.err conftest.$ac_objext \
24770 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024771LIBS=$ac_check_lib_save_LIBS
24772fi
cristy8b350f62009-11-15 23:12:43 +000024773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000024774$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024775if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024776 passed=`expr $passed + 1`
24777else
24778 failed=`expr $failed + 1`
24779fi
24780
cristy8b350f62009-11-15 23:12:43 +000024781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024782$as_echo_n "checking if ZLIB package is complete... " >&6; }
24783 if test $passed -gt 0; then
24784 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024786$as_echo "no -- some components failed test" >&6; }
24787 have_zlib='no (failed tests)'
24788 else
24789 ZLIB_LIBS='-lz'
24790 LIBS="$ZLIB_LIBS $LIBS"
24791
cristy8b350f62009-11-15 23:12:43 +000024792$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024793
cristy8b350f62009-11-15 23:12:43 +000024794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024795$as_echo "yes" >&6; }
24796 have_zlib='yes'
24797 fi
24798 else
cristy8b350f62009-11-15 23:12:43 +000024799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024800$as_echo "no" >&6; }
24801 fi
24802fi
24803 if test "$have_zlib" = 'yes'; then
24804 ZLIB_DELEGATE_TRUE=
24805 ZLIB_DELEGATE_FALSE='#'
24806else
24807 ZLIB_DELEGATE_TRUE='#'
24808 ZLIB_DELEGATE_FALSE=
24809fi
24810
24811
24812
24813#
24814# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
24815#
24816LIB_DL=''
24817if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024819$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024820if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024821 $as_echo_n "(cached) " >&6
24822else
24823 ac_check_lib_save_LIBS=$LIBS
24824LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024826/* end confdefs.h. */
24827
24828/* Override any GCC internal prototype to avoid an error.
24829 Use char because int might match the return type of a GCC
24830 builtin and then its argument prototype would still apply. */
24831#ifdef __cplusplus
24832extern "C"
24833#endif
24834char dlopen ();
24835int
24836main ()
24837{
24838return dlopen ();
24839 ;
24840 return 0;
24841}
24842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024843if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024844 ac_cv_lib_dl_dlopen=yes
24845else
cristy8b350f62009-11-15 23:12:43 +000024846 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000024847fi
cristy8b350f62009-11-15 23:12:43 +000024848rm -f core conftest.err conftest.$ac_objext \
24849 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024850LIBS=$ac_check_lib_save_LIBS
24851fi
cristy8b350f62009-11-15 23:12:43 +000024852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000024853$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024854if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024855 LIB_DL='-ldl'
24856fi
24857
24858 LIBS="$LIB_DL $LIBS"
24859fi
24860
24861
24862
24863#
24864# Check for Autotrace delegate library.
24865#
24866
24867# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000024868if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024869 withval=$with_autotrace; with_autotrace=$withval
24870else
24871 with_autotrace='no'
24872fi
24873
24874
24875if test "$with_autotrace" != 'yes'; then
24876 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
24877fi
24878
24879have_autotrace='no'
24880AUTOTRACE_CFLAGS=""
24881AUTOTRACE_LIBS=""
24882AUTOTRACE_PKG=""
24883if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000024884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024885$as_echo "-------------------------------------------------------------" >&6; }
24886
24887pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000024888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024889$as_echo_n "checking for AUTOTRACE... " >&6; }
24890
24891if test -n "$AUTOTRACE_CFLAGS"; then
24892 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
24901else
24902 pkg_failed=yes
24903fi
24904 else
24905 pkg_failed=untried
24906fi
24907if test -n "$AUTOTRACE_LIBS"; then
24908 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
24909 elif test -n "$PKG_CONFIG"; then
24910 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024912 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24913 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24915 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024916 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
24917else
24918 pkg_failed=yes
24919fi
24920 else
24921 pkg_failed=untried
24922fi
24923
24924
24925
24926if test $pkg_failed = yes; then
24927
24928if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24929 _pkg_short_errors_supported=yes
24930else
24931 _pkg_short_errors_supported=no
24932fi
24933 if test $_pkg_short_errors_supported = yes; then
24934 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
24935 else
24936 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
24937 fi
24938 # Put the nasty error message in config.log where it belongs
24939 echo "$AUTOTRACE_PKG_ERRORS" >&5
24940
cristy8b350f62009-11-15 23:12:43 +000024941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024942$as_echo "no" >&6; }
24943 have_autotrace=no
24944elif test $pkg_failed = untried; then
24945 have_autotrace=no
24946else
24947 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
24948 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000024949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024950$as_echo "yes" >&6; }
24951 have_autotrace=yes
24952fi
cristy8b350f62009-11-15 23:12:43 +000024953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024954$as_echo "" >&6; }
24955fi
24956
24957if test "$have_autotrace" = 'yes'; then
24958 failed=0
24959
cristy8b350f62009-11-15 23:12:43 +000024960$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024961
24962 if test "$with_modules" = 'no'; then
24963 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
24964 fi
24965fi
24966
24967 if test "$have_autotrace" = 'yes'; then
24968 AUTOTRACE_DELEGATE_TRUE=
24969 AUTOTRACE_DELEGATE_FALSE='#'
24970else
24971 AUTOTRACE_DELEGATE_TRUE='#'
24972 AUTOTRACE_DELEGATE_FALSE=
24973fi
24974
24975
24976
24977
24978
24979#
24980# Check for Display Postscript delegate library.
24981#
24982
24983# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000024984if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024985 withval=$with_dps; with_dps=$withval
24986else
24987 with_dps='yes'
24988fi
24989
24990
24991if test "$with_dps" != 'yes'; then
24992 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
24993fi
24994
24995have_dps='no'
24996DPS_LIBS=''
24997if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024999$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000025001$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025003$as_echo "" >&6; }
25004 failed=0
25005 passed=0
25006 PERSIST_CPPFLAGS="$CPPFLAGS"
25007 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000025008 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
25009if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025010 passed=`expr $passed + 1`
25011else
25012 failed=`expr $failed + 1`
25013fi
25014
25015
25016 # DPS issues:
25017 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25018 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25019 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25020 # ImageMagick itself doesn't use -lXt.
25021 have_libdps='no'
25022 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000025023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025024$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025025if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025026 $as_echo_n "(cached) " >&6
25027else
25028 ac_check_lib_save_LIBS=$LIBS
25029LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025031/* end confdefs.h. */
25032
25033/* Override any GCC internal prototype to avoid an error.
25034 Use char because int might match the return type of a GCC
25035 builtin and then its argument prototype would still apply. */
25036#ifdef __cplusplus
25037extern "C"
25038#endif
25039char DPSInitialize ();
25040int
25041main ()
25042{
25043return DPSInitialize ();
25044 ;
25045 return 0;
25046}
25047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025048if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025049 ac_cv_lib_dps_DPSInitialize=yes
25050else
cristy8b350f62009-11-15 23:12:43 +000025051 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025052fi
cristy8b350f62009-11-15 23:12:43 +000025053rm -f core conftest.err conftest.$ac_objext \
25054 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025055LIBS=$ac_check_lib_save_LIBS
25056fi
cristy8b350f62009-11-15 23:12:43 +000025057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025058$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025059if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025060 have_libdps='yes'
25061else
25062 have_libdps='no'
25063fi
25064
25065 if test "$have_libdps" != 'yes'; then
25066 # Unset cache variable so we can try again.
25067 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000025068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025069$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025070if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025071 $as_echo_n "(cached) " >&6
25072else
25073 ac_check_lib_save_LIBS=$LIBS
25074LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025076/* end confdefs.h. */
25077
25078/* Override any GCC internal prototype to avoid an error.
25079 Use char because int might match the return type of a GCC
25080 builtin and then its argument prototype would still apply. */
25081#ifdef __cplusplus
25082extern "C"
25083#endif
25084char DPSInitialize ();
25085int
25086main ()
25087{
25088return DPSInitialize ();
25089 ;
25090 return 0;
25091}
25092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025093if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025094 ac_cv_lib_dps_DPSInitialize=yes
25095else
cristy8b350f62009-11-15 23:12:43 +000025096 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025097fi
cristy8b350f62009-11-15 23:12:43 +000025098rm -f core conftest.err conftest.$ac_objext \
25099 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025100LIBS=$ac_check_lib_save_LIBS
25101fi
cristy8b350f62009-11-15 23:12:43 +000025102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025103$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025104if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025105 have_libdps='yes'
25106else
25107 have_libdps='no'
25108fi
25109
25110 if test "$have_libdps" = 'yes'; then
25111 LIBDPS_XT='-lXt'
25112 fi
25113 fi
25114 if test "$have_libdps" = 'yes'; then
25115 passed=`expr $passed + 1`
25116 else
25117 failed=`expr $failed + 1`
25118 fi
cristy8b350f62009-11-15 23:12:43 +000025119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025120$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025121if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025122 $as_echo_n "(cached) " >&6
25123else
25124 ac_check_lib_save_LIBS=$LIBS
25125LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025127/* end confdefs.h. */
25128
25129/* Override any GCC internal prototype to avoid an error.
25130 Use char because int might match the return type of a GCC
25131 builtin and then its argument prototype would still apply. */
25132#ifdef __cplusplus
25133extern "C"
25134#endif
25135char XDPSPixelsPerPoint ();
25136int
25137main ()
25138{
25139return XDPSPixelsPerPoint ();
25140 ;
25141 return 0;
25142}
25143_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025144if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025145 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25146else
cristy8b350f62009-11-15 23:12:43 +000025147 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000025148fi
cristy8b350f62009-11-15 23:12:43 +000025149rm -f core conftest.err conftest.$ac_objext \
25150 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025151LIBS=$ac_check_lib_save_LIBS
25152fi
cristy8b350f62009-11-15 23:12:43 +000025153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000025154$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025155if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025156 passed=`expr $passed + 1`
25157else
25158 failed=`expr $failed + 1`
25159fi
25160
cristy8b350f62009-11-15 23:12:43 +000025161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025162$as_echo_n "checking if DPS package is complete... " >&6; }
25163 if test $passed -gt 0; then
25164 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025166$as_echo "no -- some components failed test" >&6; }
25167 have_dps='no (failed tests)'
25168 CPPFLAGS="$PERSIST_CPPFLAGS"
25169 else
25170 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
25171 LIBS="$DPS_LIBS $LIBS"
25172
cristy8b350f62009-11-15 23:12:43 +000025173$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025174
cristy8b350f62009-11-15 23:12:43 +000025175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025176$as_echo "yes" >&6; }
25177 have_dps='yes'
25178 fi
25179 else
cristy8b350f62009-11-15 23:12:43 +000025180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025181$as_echo "no" >&6; }
25182 CPPFLAGS=$PERSIST_CPPFLAGS
25183 fi
25184fi
25185 if test "$have_dps" = 'yes'; then
25186 DPS_DELEGATE_TRUE=
25187 DPS_DELEGATE_FALSE='#'
25188else
25189 DPS_DELEGATE_TRUE='#'
25190 DPS_DELEGATE_FALSE=
25191fi
25192
25193
25194
25195
25196#
25197# Check for DJVU delegate library.
25198#
25199
25200# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000025201if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025202 withval=$with_djvu; with_djvu=$withval
25203else
25204 with_djvu='yes'
25205fi
25206
25207
25208if test "$with_djvu" != 'yes'; then
25209 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
25210fi
25211
25212have_djvu='no'
25213DJVU_LIBS=''
25214if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025216$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000025218$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025220$as_echo "" >&6; }
25221 failed=0
25222 passed=0
cristy8b350f62009-11-15 23:12:43 +000025223 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25224if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025225 passed=`expr $passed + 1`
25226else
25227 failed=`expr $failed + 1`
25228fi
25229
25230
cristy8b350f62009-11-15 23:12:43 +000025231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000025232$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025233if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025234 $as_echo_n "(cached) " >&6
25235else
25236 ac_check_lib_save_LIBS=$LIBS
25237LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025239/* end confdefs.h. */
25240
25241/* Override any GCC internal prototype to avoid an error.
25242 Use char because int might match the return type of a GCC
25243 builtin and then its argument prototype would still apply. */
25244#ifdef __cplusplus
25245extern "C"
25246#endif
25247char ddjvu_context_create ();
25248int
25249main ()
25250{
25251return ddjvu_context_create ();
25252 ;
25253 return 0;
25254}
25255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025256if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025257 ac_cv_lib_djvulibre_ddjvu_context_create=yes
25258else
cristy8b350f62009-11-15 23:12:43 +000025259 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000025260fi
cristy8b350f62009-11-15 23:12:43 +000025261rm -f core conftest.err conftest.$ac_objext \
25262 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025263LIBS=$ac_check_lib_save_LIBS
25264fi
cristy8b350f62009-11-15 23:12:43 +000025265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000025266$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025267if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025268 passed=`expr $passed + 1`
25269else
25270 failed=`expr $failed + 1`
25271fi
25272
cristy8b350f62009-11-15 23:12:43 +000025273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025274$as_echo_n "checking if DJVU package is complete... " >&6; }
25275 if test $passed -gt 0; then
25276 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025278$as_echo "no -- some components failed test" >&6; }
25279 have_djvu='no (failed tests)'
25280 else
25281 DJVU_LIBS='-ldjvulibre'
25282 LIBS="$DJVU_LIBS $LIBS"
25283
cristy8b350f62009-11-15 23:12:43 +000025284$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025285
cristy8b350f62009-11-15 23:12:43 +000025286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025287$as_echo "yes" >&6; }
25288 have_djvu='yes'
25289 fi
25290 else
cristy8b350f62009-11-15 23:12:43 +000025291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025292$as_echo "no" >&6; }
25293 fi
25294fi
25295 if test "$have_djvu" = 'yes'; then
25296 DJVU_DELEGATE_TRUE=
25297 DJVU_DELEGATE_FALSE='#'
25298else
25299 DJVU_DELEGATE_TRUE='#'
25300 DJVU_DELEGATE_FALSE=
25301fi
25302
25303
25304
25305
25306#
25307# Check for FFTW delegate library.
25308#
25309
25310# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000025311if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025312 withval=$with_fftw; with_fftw=$withval
25313else
25314 with_fftw='yes'
25315fi
25316
25317
25318if test "$with_fftw" != 'yes'; then
25319 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
25320fi
25321
25322have_fftw='no'
25323FFTW_LIBS=''
25324if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025326$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000025328$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025330$as_echo "" >&6; }
25331 failed=0
25332 passed=0
cristy8b350f62009-11-15 23:12:43 +000025333 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
25334if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025335 passed=`expr $passed + 1`
25336else
25337 failed=`expr $failed + 1`
25338fi
25339
25340
cristy8b350f62009-11-15 23:12:43 +000025341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000025342$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025343if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025344 $as_echo_n "(cached) " >&6
25345else
25346 ac_check_lib_save_LIBS=$LIBS
25347LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025349/* end confdefs.h. */
25350
25351/* Override any GCC internal prototype to avoid an error.
25352 Use char because int might match the return type of a GCC
25353 builtin and then its argument prototype would still apply. */
25354#ifdef __cplusplus
25355extern "C"
25356#endif
25357char fftw_execute ();
25358int
25359main ()
25360{
25361return fftw_execute ();
25362 ;
25363 return 0;
25364}
25365_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025366if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025367 ac_cv_lib_fftw3_fftw_execute=yes
25368else
cristy8b350f62009-11-15 23:12:43 +000025369 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000025370fi
cristy8b350f62009-11-15 23:12:43 +000025371rm -f core conftest.err conftest.$ac_objext \
25372 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025373LIBS=$ac_check_lib_save_LIBS
25374fi
cristy8b350f62009-11-15 23:12:43 +000025375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000025376$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025377if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025378 passed=`expr $passed + 1`
25379else
25380 failed=`expr $failed + 1`
25381fi
25382
cristy8b350f62009-11-15 23:12:43 +000025383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025384$as_echo_n "checking if FFTW package is complete... " >&6; }
25385 if test $passed -gt 0; then
25386 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025388$as_echo "no -- some components failed test" >&6; }
25389 have_fftw='no (failed tests)'
25390 else
25391 FFTW_LIBS='-lfftw3'
25392 LIBS="$FFTW_LIBS $LIBS"
25393
cristy8b350f62009-11-15 23:12:43 +000025394$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025395
cristy8b350f62009-11-15 23:12:43 +000025396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025397$as_echo "yes" >&6; }
25398 have_fftw='yes'
25399 fi
25400 else
cristy8b350f62009-11-15 23:12:43 +000025401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025402$as_echo "no" >&6; }
25403 fi
25404fi
25405 if test "$have_fftw" = 'yes'; then
25406 FFTW_DELEGATE_TRUE=
25407 FFTW_DELEGATE_FALSE='#'
25408else
25409 FFTW_DELEGATE_TRUE='#'
25410 FFTW_DELEGATE_FALSE=
25411fi
25412
25413
25414
25415
25416#
25417# Check for FlashPIX delegate library.
25418#
25419
25420# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000025421if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025422 withval=$with_fpx; with_fpx=$withval
25423else
25424 with_fpx='yes'
25425fi
25426
25427
25428if test "$with_fpx" != 'yes'; then
25429 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
25430fi
25431
25432have_fpx='no'
25433FPX_LIBS=''
25434if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025436$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025438$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025440$as_echo "" >&6; }
25441 failed=0
25442 passed=0
25443 ac_ext=cpp
25444ac_cpp='$CXXCPP $CPPFLAGS'
25445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25448
25449
cristy8b350f62009-11-15 23:12:43 +000025450ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
25451if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025452 passed=`expr $passed + 1`
25453else
25454 failed=`expr $failed + 1`
25455fi
25456
25457
cristy8b350f62009-11-15 23:12:43 +000025458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000025459$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025460if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025461 $as_echo_n "(cached) " >&6
25462else
25463 ac_check_lib_save_LIBS=$LIBS
25464LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025466/* end confdefs.h. */
25467
25468/* Override any GCC internal prototype to avoid an error.
25469 Use char because int might match the return type of a GCC
25470 builtin and then its argument prototype would still apply. */
25471#ifdef __cplusplus
25472extern "C"
25473#endif
25474char FPX_OpenImageByFilename ();
25475int
25476main ()
25477{
25478return FPX_OpenImageByFilename ();
25479 ;
25480 return 0;
25481}
25482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025483if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025484 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
25485else
cristy8b350f62009-11-15 23:12:43 +000025486 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000025487fi
cristy8b350f62009-11-15 23:12:43 +000025488rm -f core conftest.err conftest.$ac_objext \
25489 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025490LIBS=$ac_check_lib_save_LIBS
25491fi
cristy8b350f62009-11-15 23:12:43 +000025492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000025493$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025494if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025495 passed=`expr $passed + 1`
25496else
25497 failed=`expr $failed + 1`
25498fi
25499
25500 ac_ext=c
25501ac_cpp='$CPP $CPPFLAGS'
25502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25504ac_compiler_gnu=$ac_cv_c_compiler_gnu
25505
cristy8b350f62009-11-15 23:12:43 +000025506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025507$as_echo_n "checking if FlashPIX package is complete... " >&6; }
25508 if test $passed -gt 0; then
25509 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025511$as_echo "no -- some components failed test" >&6; }
25512 have_fpx='no (failed tests)'
25513 else
25514 FPX_LIBS='-lfpx'
25515
cristy8b350f62009-11-15 23:12:43 +000025516$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025517
cristy8b350f62009-11-15 23:12:43 +000025518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025519$as_echo "yes" >&6; }
25520 have_fpx='yes'
25521 PERLMAINCC="$CXX"
25522 fi
25523 else
cristy8b350f62009-11-15 23:12:43 +000025524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025525$as_echo "no" >&6; }
25526 fi
25527fi
25528 if test "$have_fpx" = 'yes'; then
25529 FPX_DELEGATE_TRUE=
25530 FPX_DELEGATE_FALSE='#'
25531else
25532 FPX_DELEGATE_TRUE='#'
25533 FPX_DELEGATE_FALSE=
25534fi
25535
25536
25537
25538
25539#
25540# Check for fontconfig delegate library.
25541#
25542
25543# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000025544if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025545 withval=$with_fontconfig; with_fontconfig=$withval
25546else
25547 with_fontconfig=$have_x
25548fi
25549
25550
25551if test "$with_fontconfig" != 'yes'; then
25552 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
25553fi
25554
25555have_fontconfig='no'
25556FONTCONFIG_CFLAGS=""
25557FONTCONFIG_LIBS=""
25558FONTCONFIG_PKG=""
25559if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025561$as_echo "-------------------------------------------------------------" >&6; }
25562
25563pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000025565$as_echo_n "checking for FONTCONFIG... " >&6; }
25566
25567if test -n "$FONTCONFIG_CFLAGS"; then
25568 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
25577else
25578 pkg_failed=yes
25579fi
25580 else
25581 pkg_failed=untried
25582fi
25583if test -n "$FONTCONFIG_LIBS"; then
25584 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
25585 elif test -n "$PKG_CONFIG"; then
25586 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025587 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025588 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25589 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25591 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025592 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
25593else
25594 pkg_failed=yes
25595fi
25596 else
25597 pkg_failed=untried
25598fi
25599
25600
25601
25602if test $pkg_failed = yes; then
25603
25604if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25605 _pkg_short_errors_supported=yes
25606else
25607 _pkg_short_errors_supported=no
25608fi
25609 if test $_pkg_short_errors_supported = yes; then
25610 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
25611 else
25612 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
25613 fi
25614 # Put the nasty error message in config.log where it belongs
25615 echo "$FONTCONFIG_PKG_ERRORS" >&5
25616
cristy8b350f62009-11-15 23:12:43 +000025617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025618$as_echo "no" >&6; }
25619 have_fontconfig=no
25620elif test $pkg_failed = untried; then
25621 have_fontconfig=no
25622else
25623 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
25624 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000025625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025626$as_echo "yes" >&6; }
25627 have_fontconfig=yes
25628fi
cristy8b350f62009-11-15 23:12:43 +000025629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025630$as_echo "" >&6; }
25631fi
25632
25633if test "$have_fontconfig" = 'yes'; then
25634
cristy8b350f62009-11-15 23:12:43 +000025635$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025636
25637 if test "$with_modules" = 'no'; then
25638 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
25639 fi
25640fi
25641
25642 if test "$have_fontconfig" = 'yes'; then
25643 FONTCONFIG_DELEGATE_TRUE=
25644 FONTCONFIG_DELEGATE_FALSE='#'
25645else
25646 FONTCONFIG_DELEGATE_TRUE='#'
25647 FONTCONFIG_DELEGATE_FALSE=
25648fi
25649
25650
25651
25652
25653
25654#
25655# Check for freetype delegate library.
25656#
25657
25658# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000025659if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025660 withval=$with_freetype; with_freetype=$withval
25661else
25662 with_freetype='yes'
25663fi
25664
25665
25666
25667if test "$with_freetype" != 'yes'; then
25668 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
25669fi
25670
25671have_freetype='no'
25672FREETYPE_LIBS=''
25673if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025675$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000025677$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025679$as_echo "" >&6; }
25680 failed=0
25681 passed=0
cristy66291112009-10-03 22:44:36 +000025682 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025683 PERSIST_CPPFLAGS="$CPPFLAGS"
25684 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
25685 :
25686 else
25687 freetype_config=''
25688 for ac_prog in freetype-config
25689do
25690 # Extract the first word of "$ac_prog", so it can be a program name with args.
25691set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025693$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025694if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025695 $as_echo_n "(cached) " >&6
25696else
25697 if test -n "$freetype_config"; then
25698 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
25699else
25700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25701for as_dir in $PATH
25702do
25703 IFS=$as_save_IFS
25704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25707 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025709 break 2
25710 fi
25711done
cristy8b350f62009-11-15 23:12:43 +000025712 done
cristy3ed852e2009-09-05 21:47:34 +000025713IFS=$as_save_IFS
25714
25715fi
25716fi
25717freetype_config=$ac_cv_prog_freetype_config
25718if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000025719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000025720$as_echo "$freetype_config" >&6; }
25721else
cristy8b350f62009-11-15 23:12:43 +000025722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025723$as_echo "no" >&6; }
25724fi
25725
25726
25727 test -n "$freetype_config" && break
25728done
25729 if test -n "$freetype_config"; then
25730 freetype_cflags=`$freetype_config --cflags`
25731 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000025732 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000025733 CPPFLAGS="$freetype_cflags $CPPFLAGS"
25734 fi
25735 fi
25736
25737 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000025738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000025739$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025740if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025741 $as_echo_n "(cached) " >&6
25742else
25743 ac_check_lib_save_LIBS=$LIBS
25744LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025746/* end confdefs.h. */
25747
25748/* Override any GCC internal prototype to avoid an error.
25749 Use char because int might match the return type of a GCC
25750 builtin and then its argument prototype would still apply. */
25751#ifdef __cplusplus
25752extern "C"
25753#endif
25754char FT_Init_FreeType ();
25755int
25756main ()
25757{
25758return FT_Init_FreeType ();
25759 ;
25760 return 0;
25761}
25762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025763if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025764 ac_cv_lib_freetype_FT_Init_FreeType=yes
25765else
cristy8b350f62009-11-15 23:12:43 +000025766 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000025767fi
cristy8b350f62009-11-15 23:12:43 +000025768rm -f core conftest.err conftest.$ac_objext \
25769 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025770LIBS=$ac_check_lib_save_LIBS
25771fi
cristy8b350f62009-11-15 23:12:43 +000025772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000025773$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025774if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025775 FREETYPE_LIBS='-lfreetype'
25776fi
25777
25778 if test "$FREETYPE_LIBS" != ''; then
25779 passed=`expr $passed + 1`
25780 else
25781 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000025782 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025783 fi
25784 fi
25785
cristy8b350f62009-11-15 23:12:43 +000025786 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
25787if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025788 FT2BUILD_H='#include <ft2build.h>'
25789else
25790 ft2build=''
25791fi
25792
25793
cristy8b350f62009-11-15 23:12:43 +000025794 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
25795"
25796if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025797 have_freetype_h='yes'
25798else
25799 have_freetype_h='no'
25800fi
25801
25802
25803 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
25804 passed=`expr $passed + 1`
25805 else
25806 failed=`expr $failed + 1`
25807 CPPFLAGS="$PERSIST_CPPFLAGS"
25808 fi
25809
cristy8b350f62009-11-15 23:12:43 +000025810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025811$as_echo_n "checking if FreeType package is complete... " >&6; }
25812 if test $passed -gt 0; then
25813 if test $failed -gt 0; then
25814 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025816$as_echo "no -- some components failed test" >&6; }
25817 have_freetype='no (failed tests)'
25818 else
25819 LIBS="$FREETYPE_LIBS $LIBS"
25820
cristy8b350f62009-11-15 23:12:43 +000025821$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025822
25823 if test "$ac_cv_header_ft2build_h" = 'yes'; then
25824
cristy8b350f62009-11-15 23:12:43 +000025825$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025826
25827 fi
cristy8b350f62009-11-15 23:12:43 +000025828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025829$as_echo "yes" >&6; }
25830 have_freetype='yes'
25831 fi
25832 else
cristy8b350f62009-11-15 23:12:43 +000025833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025834$as_echo "no" >&6; }
25835 fi
25836fi
25837 if test "$have_freetype" = 'yes'; then
25838 FREETYPE_DELEGATE_TRUE=
25839 FREETYPE_DELEGATE_FALSE='#'
25840else
25841 FREETYPE_DELEGATE_TRUE='#'
25842 FREETYPE_DELEGATE_FALSE=
25843fi
25844
25845
25846
25847
25848
25849#
25850# Check for Ghostscript library or framework.
25851#
25852# Test for iapi.h & test for gsapi_new_instance in -lgs
25853# or -framework Ghostscript
25854
25855
25856# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000025857if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025858 withval=$with_gslib; with_gslib=$withval
25859else
25860 with_gslib='no'
25861fi
25862
25863
cristyb7931f12009-09-25 10:22:21 +000025864gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000025865if test "$with_gslib" != 'yes'; then
25866 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
25867fi
25868
25869have_gslib='no'
25870GS_LIBS=''
25871if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025873$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000025875$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025877$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000025878 framework=0
cristy3ed852e2009-09-05 21:47:34 +000025879 failed=0
25880 passed=0
cristy8b350f62009-11-15 23:12:43 +000025881 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
25882if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025883 passed=`expr $passed + 1`
25884else
25885 failed=`expr $failed + 1`
25886fi
25887
25888
cristy8b350f62009-11-15 23:12:43 +000025889 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
25890if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025891 passed=`expr $passed + 1`
25892else
25893 failed=`expr $failed + 1`
25894fi
25895
25896
cristy8b350f62009-11-15 23:12:43 +000025897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000025898$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025899if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025900 $as_echo_n "(cached) " >&6
25901else
25902 ac_check_framework_save_LIBS=$LIBS
25903LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025905/* end confdefs.h. */
25906
25907/* Override any GCC internal prototype to avoid an error.
25908 Use char because int might match the return type of a GCC
25909 builtin and then its argument prototype would still apply. */
25910#ifdef __cplusplus
25911extern "C"
25912#endif
25913char gsapi_new_instance ();
25914int
25915main ()
25916{
25917return gsapi_new_instance ();
25918 ;
25919 return 0;
25920}
25921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025922if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025923 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
25924else
cristy8b350f62009-11-15 23:12:43 +000025925 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025926fi
cristy8b350f62009-11-15 23:12:43 +000025927rm -f core conftest.err conftest.$ac_objext \
25928 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025929LIBS=$ac_check_framework_save_LIBS
25930fi
cristy8b350f62009-11-15 23:12:43 +000025931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025932$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025933if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025934 framework=`expr $framework + 1`
25935else
cristy8b350f62009-11-15 23:12:43 +000025936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000025937$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025938if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025939 $as_echo_n "(cached) " >&6
25940else
25941 ac_check_lib_save_LIBS=$LIBS
25942LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025944/* end confdefs.h. */
25945
25946/* Override any GCC internal prototype to avoid an error.
25947 Use char because int might match the return type of a GCC
25948 builtin and then its argument prototype would still apply. */
25949#ifdef __cplusplus
25950extern "C"
25951#endif
25952char gsapi_new_instance ();
25953int
25954main ()
25955{
25956return gsapi_new_instance ();
25957 ;
25958 return 0;
25959}
25960_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025961if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025962 ac_cv_lib_gs_gsapi_new_instance=yes
25963else
cristy8b350f62009-11-15 23:12:43 +000025964 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025965fi
cristy8b350f62009-11-15 23:12:43 +000025966rm -f core conftest.err conftest.$ac_objext \
25967 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025968LIBS=$ac_check_lib_save_LIBS
25969fi
cristy8b350f62009-11-15 23:12:43 +000025970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025971$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025972if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025973 passed=`expr $passed + 1`
25974else
25975 failed=`expr $failed + 1`
25976fi
25977
25978fi
cristy8b350f62009-11-15 23:12:43 +000025979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025980$as_echo_n "checking if Ghostscript package is complete... " >&6; }
25981 if test $passed -gt 0; then
25982 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025984$as_echo "no -- some components failed test" >&6; }
25985 have_gslib='no (failed tests)'
25986 else
25987 if test $framework -gt 0; then
25988 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000025989 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000025990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000025991$as_echo "yes, using framework." >&6; }
25992 else
cristy8b350f62009-11-15 23:12:43 +000025993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000025994$as_echo "yes, using library." >&6; }
25995 GS_LIBS='-lgs'
25996 fi
25997 LIBS="$GS_LIBS $LIBS"
25998
cristy8b350f62009-11-15 23:12:43 +000025999$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026000
26001 have_gslib='yes'
26002 fi
26003 else
cristy8b350f62009-11-15 23:12:43 +000026004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026005$as_echo "no" >&6; }
26006 fi
26007fi
26008 if test "$have_gslib" = 'yes'; then
26009 GS_DELEGATE_TRUE=
26010 GS_DELEGATE_FALSE='#'
26011else
26012 GS_DELEGATE_TRUE='#'
26013 GS_DELEGATE_FALSE=
26014fi
26015
26016
26017
26018# Set default font search path
26019
26020# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000026021if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026022 withval=$with_fontpath; with_fontpath=$withval
26023else
26024 with_fontpath=''
26025fi
26026
26027
26028if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26029 with_fontpath=''
26030else
26031
26032cat >>confdefs.h <<_ACEOF
26033#define MAGICK_FONT_PATH "$with_fontpath"
26034_ACEOF
26035
26036fi
26037if test "$with_fontpath=" != ''; then
26038 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26039fi
26040
26041# Set Ghostscript font directory
26042
26043# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000026044if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026045 withval=$with_gs_font_dir; with_gs_font_dir=$withval
26046else
26047 with_gs_font_dir='default'
26048fi
26049
26050
26051if test "$with_gs_font_dir" != 'default'; then
26052 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26053fi
26054
26055
26056#
26057# Check for GVC delegate library.
26058#
26059
26060# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000026061if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026062 withval=$with_gvc; with_gvc=$withval
26063else
26064 with_gvc='yes'
26065fi
26066
26067
26068if test "$with_gvc" != 'yes'; then
26069 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26070fi
26071
26072GVC_PKG=""
26073if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026075$as_echo "-------------------------------------------------------------" >&6; }
26076
26077pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000026079$as_echo_n "checking for GVC... " >&6; }
26080
26081if test -n "$GVC_CFLAGS"; then
26082 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26091else
26092 pkg_failed=yes
26093fi
26094 else
26095 pkg_failed=untried
26096fi
26097if test -n "$GVC_LIBS"; then
26098 pkg_cv_GVC_LIBS="$GVC_LIBS"
26099 elif test -n "$PKG_CONFIG"; then
26100 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026102 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26103 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26105 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026106 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26107else
26108 pkg_failed=yes
26109fi
26110 else
26111 pkg_failed=untried
26112fi
26113
26114
26115
26116if test $pkg_failed = yes; then
26117
26118if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26119 _pkg_short_errors_supported=yes
26120else
26121 _pkg_short_errors_supported=no
26122fi
26123 if test $_pkg_short_errors_supported = yes; then
26124 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26125 else
26126 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26127 fi
26128 # Put the nasty error message in config.log where it belongs
26129 echo "$GVC_PKG_ERRORS" >&5
26130
cristy8b350f62009-11-15 23:12:43 +000026131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026132$as_echo "no" >&6; }
26133 have_gvc=no
26134elif test $pkg_failed = untried; then
26135 have_gvc=no
26136else
26137 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
26138 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000026139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026140$as_echo "yes" >&6; }
26141 have_gvc=yes
26142fi
cristy8b350f62009-11-15 23:12:43 +000026143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026144$as_echo "" >&6; }
26145fi
26146
26147if test "$have_gvc" = 'yes'; then
26148
cristy8b350f62009-11-15 23:12:43 +000026149$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026150
26151 if test "$with_modules" = 'no'; then
26152 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
26153 fi
26154fi
26155
26156 if test "$have_gvc" = 'yes'; then
26157 GVC_DELEGATE_TRUE=
26158 GVC_DELEGATE_FALSE='#'
26159else
26160 GVC_DELEGATE_TRUE='#'
26161 GVC_DELEGATE_FALSE=
26162fi
26163
26164
26165
26166
26167
26168#
26169# Check for JBIG delegate library.
26170#
26171
26172
26173# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000026174if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026175 withval=$with_jbig; with_jbig=$withval
26176else
26177 with_jbig='yes'
26178fi
26179
26180
26181have_jbig='no'
26182JBIG_LIBS=''
26183if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026185$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026187$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026189$as_echo "" >&6; }
26190 failed=0
26191 passed=0
cristy8b350f62009-11-15 23:12:43 +000026192 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
26193if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026194 passed=`expr $passed + 1`
26195else
26196 failed=`expr $failed + 1`
26197fi
26198
26199
cristy8b350f62009-11-15 23:12:43 +000026200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000026201$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026202if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026203 $as_echo_n "(cached) " >&6
26204else
26205 ac_check_lib_save_LIBS=$LIBS
26206LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026208/* end confdefs.h. */
26209
26210/* Override any GCC internal prototype to avoid an error.
26211 Use char because int might match the return type of a GCC
26212 builtin and then its argument prototype would still apply. */
26213#ifdef __cplusplus
26214extern "C"
26215#endif
26216char jbg_dec_init ();
26217int
26218main ()
26219{
26220return jbg_dec_init ();
26221 ;
26222 return 0;
26223}
26224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026225if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026226 ac_cv_lib_jbig_jbg_dec_init=yes
26227else
cristy8b350f62009-11-15 23:12:43 +000026228 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000026229fi
cristy8b350f62009-11-15 23:12:43 +000026230rm -f core conftest.err conftest.$ac_objext \
26231 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026232LIBS=$ac_check_lib_save_LIBS
26233fi
cristy8b350f62009-11-15 23:12:43 +000026234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000026235$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026236if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026237 passed=`expr $passed + 1`
26238else
26239 failed=`expr $failed + 1`
26240fi
26241
cristy8b350f62009-11-15 23:12:43 +000026242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026243$as_echo_n "checking if JBIG package is complete... " >&6; }
26244 if test $passed -gt 0; then
26245 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026247$as_echo "no -- some components failed test" >&6; }
26248 have_jbig='no (failed tests)'
26249 else
26250 JBIG_LIBS='-ljbig'
26251 LIBS="$JBIG_LIBS $LIBS"
26252
cristy8b350f62009-11-15 23:12:43 +000026253$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026254
cristy8b350f62009-11-15 23:12:43 +000026255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026256$as_echo "yes" >&6; }
26257 have_jbig='yes'
26258 fi
26259 else
cristy8b350f62009-11-15 23:12:43 +000026260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026261$as_echo "no" >&6; }
26262 fi
26263fi
26264 if test "$have_jbig" = 'yes'; then
26265 JBIG_DELEGATE_TRUE=
26266 JBIG_DELEGATE_FALSE='#'
26267else
26268 JBIG_DELEGATE_TRUE='#'
26269 JBIG_DELEGATE_FALSE=
26270fi
26271
26272
26273
26274
26275#
26276# Check for JPEG delegate library.
26277#
26278
26279# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000026280if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026281 withval=$with_jpeg; with_jpeg=$withval
26282else
26283 with_jpeg='yes'
26284fi
26285
26286
26287if test "$with_jpeg" != 'yes'; then
26288 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26289fi
26290
26291have_jpeg='no'
26292JPEG_LIBS=''
26293if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026295$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026297$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026299$as_echo "" >&6; }
26300 failed=0
26301 passed=0
cristy8b350f62009-11-15 23:12:43 +000026302 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26303if test "x$ac_cv_header_jconfig_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" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26311if test "x$ac_cv_header_jerror_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 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
26319if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026320 passed=`expr $passed + 1`
26321else
26322 failed=`expr $failed + 1`
26323fi
26324
26325
cristy8b350f62009-11-15 23:12:43 +000026326 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
26327if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026328 passed=`expr $passed + 1`
26329else
26330 failed=`expr $failed + 1`
26331fi
26332
26333
cristy8b350f62009-11-15 23:12:43 +000026334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000026335$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026336if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026337 $as_echo_n "(cached) " >&6
26338else
26339 ac_check_lib_save_LIBS=$LIBS
26340LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026342/* end confdefs.h. */
26343
26344/* Override any GCC internal prototype to avoid an error.
26345 Use char because int might match the return type of a GCC
26346 builtin and then its argument prototype would still apply. */
26347#ifdef __cplusplus
26348extern "C"
26349#endif
26350char jpeg_read_header ();
26351int
26352main ()
26353{
26354return jpeg_read_header ();
26355 ;
26356 return 0;
26357}
26358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026359if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026360 ac_cv_lib_jpeg_jpeg_read_header=yes
26361else
cristy8b350f62009-11-15 23:12:43 +000026362 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000026363fi
cristy8b350f62009-11-15 23:12:43 +000026364rm -f core conftest.err conftest.$ac_objext \
26365 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026366LIBS=$ac_check_lib_save_LIBS
26367fi
cristy8b350f62009-11-15 23:12:43 +000026368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000026369$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026370if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026371 passed=`expr $passed + 1`
26372else
26373 failed=`expr $failed + 1`
26374fi
26375
26376
26377# Test for compatible JPEG library
26378if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000026380$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026381if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026382 $as_echo_n "(cached) " >&6
26383else
cristy8b350f62009-11-15 23:12:43 +000026384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026385/* end confdefs.h. */
26386#include <stdio.h>
26387#include <stdlib.h>
26388#include <jpeglib.h>
26389
26390int
26391main ()
26392{
26393
26394#if JPEG_LIB_VERSION < 62
26395#error IJG JPEG library must be version 6b or newer!
26396#endif
26397return 0;
26398
26399 ;
26400 return 0;
26401}
26402_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026403if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026404 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
26405else
cristy8b350f62009-11-15 23:12:43 +000026406 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000026407fi
cristy3ed852e2009-09-05 21:47:34 +000026408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26409fi
cristy8b350f62009-11-15 23:12:43 +000026410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000026411$as_echo "$ac_cv_jpeg_version_ok" >&6; }
26412fi
cristy8b350f62009-11-15 23:12:43 +000026413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026414$as_echo_n "checking if JPEG package is complete... " >&6; }
26415 if test $passed -gt 0; then
26416 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026418$as_echo "no -- some components failed test" >&6; }
26419 have_jpeg='no (failed tests)'
26420 else
26421 JPEG_LIBS='-ljpeg'
26422 LIBS="$JPEG_LIBS $LIBS"
26423
cristy8b350f62009-11-15 23:12:43 +000026424$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026425
cristy8b350f62009-11-15 23:12:43 +000026426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026427$as_echo "yes" >&6; }
26428 have_jpeg='yes'
26429 fi
26430 else
cristy8b350f62009-11-15 23:12:43 +000026431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026432$as_echo "no" >&6; }
26433 fi
26434fi
26435 if test "$have_jpeg" = 'yes'; then
26436 JPEG_DELEGATE_TRUE=
26437 JPEG_DELEGATE_FALSE='#'
26438else
26439 JPEG_DELEGATE_TRUE='#'
26440 JPEG_DELEGATE_FALSE=
26441fi
26442
26443
26444
26445
26446#
26447# Check for JPEG Version 2 delegate library.
26448#
26449
26450# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000026451if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026452 withval=$with_jp2; with_jp2=$withval
26453else
26454 with_jp2='yes'
26455fi
26456
26457
26458if test "$with_jp2" != 'yes'; then
26459 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
26460fi
26461
26462have_jp2='no'
26463JP2_LIBS=''
26464if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026466$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026468$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026470$as_echo "" >&6; }
26471 failed=0
26472 passed=0
cristy8b350f62009-11-15 23:12:43 +000026473 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
26474if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026475 passed=`expr $passed + 1`
26476else
26477 failed=`expr $failed + 1`
26478fi
26479
26480
cristy8b350f62009-11-15 23:12:43 +000026481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000026482$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026483if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026484 $as_echo_n "(cached) " >&6
26485else
26486 ac_check_lib_save_LIBS=$LIBS
26487LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026489/* end confdefs.h. */
26490
26491/* Override any GCC internal prototype to avoid an error.
26492 Use char because int might match the return type of a GCC
26493 builtin and then its argument prototype would still apply. */
26494#ifdef __cplusplus
26495extern "C"
26496#endif
26497char jas_stream_fopen ();
26498int
26499main ()
26500{
26501return jas_stream_fopen ();
26502 ;
26503 return 0;
26504}
26505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026506if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026507 ac_cv_lib_jasper_jas_stream_fopen=yes
26508else
cristy8b350f62009-11-15 23:12:43 +000026509 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000026510fi
cristy8b350f62009-11-15 23:12:43 +000026511rm -f core conftest.err conftest.$ac_objext \
26512 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026513LIBS=$ac_check_lib_save_LIBS
26514fi
cristy8b350f62009-11-15 23:12:43 +000026515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026516$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026517if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026518 passed=`expr $passed + 1`
26519else
26520 failed=`expr $failed + 1`
26521fi
26522
cristy8b350f62009-11-15 23:12:43 +000026523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026524$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
26525 if test $passed -gt 0; then
26526 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026528$as_echo "no -- some components failed test" >&6; }
26529 have_jp2='no (failed tests)'
26530 else
26531 JP2_LIBS='-ljasper'
26532 LIBS="$JP2_LIBS $LIBS"
26533
cristy8b350f62009-11-15 23:12:43 +000026534$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026535
cristy8b350f62009-11-15 23:12:43 +000026536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026537$as_echo "yes" >&6; }
26538 have_jp2='yes'
26539 fi
26540 else
cristy8b350f62009-11-15 23:12:43 +000026541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026542$as_echo "no" >&6; }
26543 fi
26544fi
26545 if test "$have_jp2" = 'yes'; then
26546 JP2_DELEGATE_TRUE=
26547 JP2_DELEGATE_FALSE='#'
26548else
26549 JP2_DELEGATE_TRUE='#'
26550 JP2_DELEGATE_FALSE=
26551fi
26552
26553
26554
26555
26556#
26557# Check for LCMS delegate library.
26558#
26559
26560# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000026561if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026562 withval=$with_lcms; with_lcms=$withval
26563else
26564 with_lcms='yes'
26565fi
26566
26567
26568if test "$with_lcms" != 'yes'; then
26569 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
26570fi
26571
26572have_lcms='no'
26573LCMS_LIBS=''
26574if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026576$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026578$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026580$as_echo "" >&6; }
26581 failed=0
26582 passed=0
26583 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000026584 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
26585if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026586 have_lcms_header='yes'
26587fi
26588
26589
26590 if test "$have_lcms_header" = 'yes'; then
26591 passed=`expr $passed + 1`
26592
cristy8b350f62009-11-15 23:12:43 +000026593$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026594
26595 else
cristy8b350f62009-11-15 23:12:43 +000026596 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
26597if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026598 have_lcms_header='yes'
26599fi
26600
26601
26602 if test "$have_lcms_header" = 'yes'; then
26603 passed=`expr $passed + 1`
26604
cristy8b350f62009-11-15 23:12:43 +000026605$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026606
26607 else
26608 failed=`expr $failed + 1`
26609 fi
26610 fi
cristy8b350f62009-11-15 23:12:43 +000026611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000026612$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026613if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026614 $as_echo_n "(cached) " >&6
26615else
26616 ac_check_lib_save_LIBS=$LIBS
26617LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026619/* end confdefs.h. */
26620
26621/* Override any GCC internal prototype to avoid an error.
26622 Use char because int might match the return type of a GCC
26623 builtin and then its argument prototype would still apply. */
26624#ifdef __cplusplus
26625extern "C"
26626#endif
26627char cmsOpenProfileFromMem ();
26628int
26629main ()
26630{
26631return cmsOpenProfileFromMem ();
26632 ;
26633 return 0;
26634}
26635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026636if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026637 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
26638else
cristy8b350f62009-11-15 23:12:43 +000026639 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000026640fi
cristy8b350f62009-11-15 23:12:43 +000026641rm -f core conftest.err conftest.$ac_objext \
26642 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026643LIBS=$ac_check_lib_save_LIBS
26644fi
cristy8b350f62009-11-15 23:12:43 +000026645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026646$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026647if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026648 passed=`expr $passed + 1`
26649else
26650 failed=`expr $failed + 1`
26651fi
26652
cristy8b350f62009-11-15 23:12:43 +000026653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026654$as_echo_n "checking if LCMS package is complete... " >&6; }
26655 if test $passed -gt 0; then
26656 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026658$as_echo "no -- some components failed test" >&6; }
26659 have_lcms='no (failed tests)'
26660 else
26661 LCMS_LIBS='-llcms'
26662 LIBS="$LCMS_LIBS $LIBS"
26663
cristy8b350f62009-11-15 23:12:43 +000026664$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026665
cristy8b350f62009-11-15 23:12:43 +000026666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026667$as_echo "yes" >&6; }
26668 have_lcms='yes'
26669 fi
26670 else
cristy8b350f62009-11-15 23:12:43 +000026671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026672$as_echo "no" >&6; }
26673 fi
26674fi
26675 if test "$have_lcms" = 'yes'; then
26676 LCMS_DELEGATE_TRUE=
26677 LCMS_DELEGATE_FALSE='#'
26678else
26679 LCMS_DELEGATE_TRUE='#'
26680 LCMS_DELEGATE_FALSE=
26681fi
26682
26683
26684
26685
26686#
26687# Check for the LQR (Liquid Rescale) delegate library.
26688#
26689
26690# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000026691if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026692 withval=$with_lqr; with_lqr=$withval
26693else
26694 with_lqr='yes'
26695fi
26696
26697
26698if test "$with_lqr" != 'yes'; then
26699 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
26700fi
26701
26702have_lqr='no'
26703LQR_CFLAGS=""
26704LQR_LIBS=""
26705LQR_PKG=""
26706if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026708$as_echo "-------------------------------------------------------------" >&6; }
26709
26710pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026712$as_echo_n "checking for LQR... " >&6; }
26713
26714if test -n "$LQR_CFLAGS"; then
26715 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
26724else
26725 pkg_failed=yes
26726fi
26727 else
26728 pkg_failed=untried
26729fi
26730if test -n "$LQR_LIBS"; then
26731 pkg_cv_LQR_LIBS="$LQR_LIBS"
26732 elif test -n "$PKG_CONFIG"; then
26733 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026735 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26736 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26738 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026739 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
26740else
26741 pkg_failed=yes
26742fi
26743 else
26744 pkg_failed=untried
26745fi
26746
26747
26748
26749if test $pkg_failed = yes; then
26750
26751if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26752 _pkg_short_errors_supported=yes
26753else
26754 _pkg_short_errors_supported=no
26755fi
26756 if test $_pkg_short_errors_supported = yes; then
26757 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
26758 else
26759 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
26760 fi
26761 # Put the nasty error message in config.log where it belongs
26762 echo "$LQR_PKG_ERRORS" >&5
26763
cristy8b350f62009-11-15 23:12:43 +000026764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026765$as_echo "no" >&6; }
26766 have_lqr=no
26767elif test $pkg_failed = untried; then
26768 have_lqr=no
26769else
26770 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
26771 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026773$as_echo "yes" >&6; }
26774 have_lqr=yes
26775fi
cristy8b350f62009-11-15 23:12:43 +000026776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026777$as_echo "" >&6; }
26778fi
26779
26780if test "$have_lqr" = 'yes'; then
26781
cristy8b350f62009-11-15 23:12:43 +000026782$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026783
26784 CFLAGS="$LQR_CFLAGS $CFLAGS"
26785fi
26786
26787 if test "$have_lqr" = 'yes'; then
26788 LQR_DELEGATE_TRUE=
26789 LQR_DELEGATE_FALSE='#'
26790else
26791 LQR_DELEGATE_TRUE='#'
26792 LQR_DELEGATE_FALSE=
26793fi
26794
26795
26796
26797
26798
26799#
26800# Check for the OpenEXR delegate library.
26801#
26802
26803# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000026804if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026805 withval=$with_openexr; with_openexr=$withval
26806else
26807 with_openexr='yes'
26808fi
26809
26810
26811if test "$with_openexr" != 'yes'; then
26812 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
26813fi
26814
26815have_openexr='no'
26816OPENEXR_CFLAGS=""
26817OPENEXR_LIBS=""
26818OPENEXR_PKG=""
26819if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026821$as_echo "-------------------------------------------------------------" >&6; }
26822
26823pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026825$as_echo_n "checking for OPENEXR... " >&6; }
26826
26827if test -n "$OPENEXR_CFLAGS"; then
26828 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
26837else
26838 pkg_failed=yes
26839fi
26840 else
26841 pkg_failed=untried
26842fi
26843if test -n "$OPENEXR_LIBS"; then
26844 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
26845 elif test -n "$PKG_CONFIG"; then
26846 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026847 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026848 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26849 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26851 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026852 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
26853else
26854 pkg_failed=yes
26855fi
26856 else
26857 pkg_failed=untried
26858fi
26859
26860
26861
26862if test $pkg_failed = yes; then
26863
26864if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26865 _pkg_short_errors_supported=yes
26866else
26867 _pkg_short_errors_supported=no
26868fi
26869 if test $_pkg_short_errors_supported = yes; then
26870 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
26871 else
26872 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
26873 fi
26874 # Put the nasty error message in config.log where it belongs
26875 echo "$OPENEXR_PKG_ERRORS" >&5
26876
cristy8b350f62009-11-15 23:12:43 +000026877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026878$as_echo "no" >&6; }
26879 have_openexr=no
26880elif test $pkg_failed = untried; then
26881 have_openexr=no
26882else
26883 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
26884 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026886$as_echo "yes" >&6; }
26887 have_openexr=yes
26888fi
cristy8b350f62009-11-15 23:12:43 +000026889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026890$as_echo "" >&6; }
26891fi
26892
26893if test "$have_openexr" = 'yes'; then
26894
cristy8b350f62009-11-15 23:12:43 +000026895$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026896
26897 if test "$with_modules" = 'no'; then
26898 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
26899 fi
26900fi
26901
26902 if test "$have_openexr" = 'yes'; then
26903 OPENEXR_DELEGATE_TRUE=
26904 OPENEXR_DELEGATE_FALSE='#'
26905else
26906 OPENEXR_DELEGATE_TRUE='#'
26907 OPENEXR_DELEGATE_FALSE=
26908fi
26909
26910
26911
26912
26913
26914#
26915# Check for PNG delegate library.
26916#
26917
26918# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000026919if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026920 withval=$with_png; with_png=$withval
26921else
26922 with_png='yes'
26923fi
26924
26925
26926if test "$with_png" != 'yes'; then
26927 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
26928fi
26929
26930have_png='no'
26931PNG_LIBS=''
26932if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026934$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026936$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026938$as_echo "" >&6; }
26939 failed=0
26940 passed=0
cristy8b350f62009-11-15 23:12:43 +000026941 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
26942if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026943 passed=`expr $passed + 1`
26944else
26945 failed=`expr $failed + 1`
26946fi
26947
26948
cristy8b350f62009-11-15 23:12:43 +000026949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000026950$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026951if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026952 $as_echo_n "(cached) " >&6
26953else
26954 ac_check_lib_save_LIBS=$LIBS
26955LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026957/* end confdefs.h. */
26958
26959/* Override any GCC internal prototype to avoid an error.
26960 Use char because int might match the return type of a GCC
26961 builtin and then its argument prototype would still apply. */
26962#ifdef __cplusplus
26963extern "C"
26964#endif
26965char png_get_io_ptr ();
26966int
26967main ()
26968{
26969return png_get_io_ptr ();
26970 ;
26971 return 0;
26972}
26973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026974if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026975 ac_cv_lib_png_png_get_io_ptr=yes
26976else
cristy8b350f62009-11-15 23:12:43 +000026977 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000026978fi
cristy8b350f62009-11-15 23:12:43 +000026979rm -f core conftest.err conftest.$ac_objext \
26980 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026981LIBS=$ac_check_lib_save_LIBS
26982fi
cristy8b350f62009-11-15 23:12:43 +000026983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000026984$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026985if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026986 passed=`expr $passed + 1`
26987else
26988 failed=`expr $failed + 1`
26989fi
26990
cristy8b350f62009-11-15 23:12:43 +000026991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026992$as_echo_n "checking if PNG package is complete... " >&6; }
26993 if test $passed -gt 0; then
26994 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026996$as_echo "no -- some components failed test" >&6; }
26997 have_png='no (failed tests)'
26998 else
26999 PNG_LIBS='-lpng'
27000 LIBS="$PNG_LIBS $LIBS"
27001
cristy8b350f62009-11-15 23:12:43 +000027002$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027003
cristy8b350f62009-11-15 23:12:43 +000027004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027005$as_echo "yes" >&6; }
27006 have_png='yes'
27007 fi
27008 else
cristy8b350f62009-11-15 23:12:43 +000027009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027010$as_echo "no" >&6; }
27011 fi
27012fi
27013 if test "$have_png" = 'yes'; then
27014 PNG_DELEGATE_TRUE=
27015 PNG_DELEGATE_FALSE='#'
27016else
27017 PNG_DELEGATE_TRUE='#'
27018 PNG_DELEGATE_FALSE=
27019fi
27020
27021
27022
27023
27024#
27025# Check for RSVG delegate library.
27026#
27027
27028# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000027029if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027030 withval=$with_rsvg; with_rsvg=$withval
27031else
27032 with_rsvg=$have_x
27033fi
27034
27035
27036if test "$with_rsvg" != 'yes'; then
27037 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
27038fi
27039
27040have_rsvg='no'
27041have_cairo='no'
27042RSVG_CFLAGS=""
27043RSVG_LIBS=""
27044RSVG_PKG=""
27045if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027047$as_echo "-------------------------------------------------------------" >&6; }
27048
27049pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027051$as_echo_n "checking for RSVG... " >&6; }
27052
27053if test -n "$RSVG_CFLAGS"; then
27054 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27063else
27064 pkg_failed=yes
27065fi
27066 else
27067 pkg_failed=untried
27068fi
27069if test -n "$RSVG_LIBS"; then
27070 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
27071 elif test -n "$PKG_CONFIG"; then
27072 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027073 { { $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 +000027074 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27075 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27077 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027078 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27079else
27080 pkg_failed=yes
27081fi
27082 else
27083 pkg_failed=untried
27084fi
27085
27086
27087
27088if test $pkg_failed = yes; then
27089
27090if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27091 _pkg_short_errors_supported=yes
27092else
27093 _pkg_short_errors_supported=no
27094fi
27095 if test $_pkg_short_errors_supported = yes; then
27096 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27097 else
27098 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27099 fi
27100 # Put the nasty error message in config.log where it belongs
27101 echo "$RSVG_PKG_ERRORS" >&5
27102
cristy8b350f62009-11-15 23:12:43 +000027103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027104$as_echo "no" >&6; }
27105 have_rsvg=no
27106elif test $pkg_failed = untried; then
27107 have_rsvg=no
27108else
27109 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
27110 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027112$as_echo "yes" >&6; }
27113 have_rsvg=yes
27114fi
cristy8b350f62009-11-15 23:12:43 +000027115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027116$as_echo "" >&6; }
27117
27118pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027120$as_echo_n "checking for CAIRO_SVG... " >&6; }
27121
27122if test -n "$CAIRO_SVG_CFLAGS"; then
27123 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
27132else
27133 pkg_failed=yes
27134fi
27135 else
27136 pkg_failed=untried
27137fi
27138if test -n "$CAIRO_SVG_LIBS"; then
27139 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
27140 elif test -n "$PKG_CONFIG"; then
27141 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027143 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27144 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27146 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027147 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
27148else
27149 pkg_failed=yes
27150fi
27151 else
27152 pkg_failed=untried
27153fi
27154
27155
27156
27157if test $pkg_failed = yes; then
27158
27159if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27160 _pkg_short_errors_supported=yes
27161else
27162 _pkg_short_errors_supported=no
27163fi
27164 if test $_pkg_short_errors_supported = yes; then
27165 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
27166 else
27167 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
27168 fi
27169 # Put the nasty error message in config.log where it belongs
27170 echo "$CAIRO_SVG_PKG_ERRORS" >&5
27171
cristy8b350f62009-11-15 23:12:43 +000027172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027173$as_echo "no" >&6; }
27174 have_cairo=no
27175elif test $pkg_failed = untried; then
27176 have_cairo=no
27177else
27178 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
27179 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027181$as_echo "yes" >&6; }
27182 have_cairo=yes
27183fi
cristy8b350f62009-11-15 23:12:43 +000027184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027185$as_echo "" >&6; }
27186fi
27187
27188if test "$have_rsvg" = 'yes'; then
27189
cristy8b350f62009-11-15 23:12:43 +000027190$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027191
27192 if test "$with_modules" = 'no'; then
27193 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
27194 fi
27195fi
27196
27197if test "$have_cairo" = 'yes'; then
27198
cristy8b350f62009-11-15 23:12:43 +000027199$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027200
27201 if test "$with_modules" = 'no'; then
27202 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
27203 fi
27204fi
27205
27206 if test "$have_rsvg" = 'yes'; then
27207 RSVG_DELEGATE_TRUE=
27208 RSVG_DELEGATE_FALSE='#'
27209else
27210 RSVG_DELEGATE_TRUE='#'
27211 RSVG_DELEGATE_FALSE=
27212fi
27213
27214 if test "$have_cairo" = 'yes'; then
27215 CAIRO_DELEGATE_TRUE=
27216 CAIRO_DELEGATE_FALSE='#'
27217else
27218 CAIRO_DELEGATE_TRUE='#'
27219 CAIRO_DELEGATE_FALSE=
27220fi
27221
27222
27223
27224
27225
27226#
27227# Check for TIFF delegate library.
27228#
27229
27230# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000027231if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027232 withval=$with_tiff; with_tiff=$withval
27233else
27234 with_tiff='yes'
27235fi
27236
27237
27238if test "$with_tiff" != 'yes'; then
27239 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27240fi
27241
27242have_tiff='no'
27243TIFF_LIBS=''
27244if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027246$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027248$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027250$as_echo "" >&6; }
27251 failed=0
27252 passed=0
cristy8b350f62009-11-15 23:12:43 +000027253 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27254if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027255 passed=`expr $passed + 1`
27256else
27257 failed=`expr $failed + 1`
27258fi
27259
27260
cristy8b350f62009-11-15 23:12:43 +000027261 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27262if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027263 passed=`expr $passed + 1`
27264else
27265 failed=`expr $failed + 1`
27266fi
27267
27268
cristy8b350f62009-11-15 23:12:43 +000027269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027270$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027271if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027272 $as_echo_n "(cached) " >&6
27273else
27274 ac_check_lib_save_LIBS=$LIBS
27275LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027277/* end confdefs.h. */
27278
27279/* Override any GCC internal prototype to avoid an error.
27280 Use char because int might match the return type of a GCC
27281 builtin and then its argument prototype would still apply. */
27282#ifdef __cplusplus
27283extern "C"
27284#endif
27285char TIFFOpen ();
27286int
27287main ()
27288{
27289return TIFFOpen ();
27290 ;
27291 return 0;
27292}
27293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027294if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027295 ac_cv_lib_tiff_TIFFOpen=yes
27296else
cristy8b350f62009-11-15 23:12:43 +000027297 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027298fi
cristy8b350f62009-11-15 23:12:43 +000027299rm -f core conftest.err conftest.$ac_objext \
27300 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027301LIBS=$ac_check_lib_save_LIBS
27302fi
cristy8b350f62009-11-15 23:12:43 +000027303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027304$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027305if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027306 passed=`expr $passed + 1`
27307else
27308 failed=`expr $failed + 1`
27309fi
27310
cristy8b350f62009-11-15 23:12:43 +000027311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027312$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027313if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027314 $as_echo_n "(cached) " >&6
27315else
27316 ac_check_lib_save_LIBS=$LIBS
27317LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027319/* end confdefs.h. */
27320
27321/* Override any GCC internal prototype to avoid an error.
27322 Use char because int might match the return type of a GCC
27323 builtin and then its argument prototype would still apply. */
27324#ifdef __cplusplus
27325extern "C"
27326#endif
27327char TIFFClientOpen ();
27328int
27329main ()
27330{
27331return TIFFClientOpen ();
27332 ;
27333 return 0;
27334}
27335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027336if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027337 ac_cv_lib_tiff_TIFFClientOpen=yes
27338else
cristy8b350f62009-11-15 23:12:43 +000027339 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027340fi
cristy8b350f62009-11-15 23:12:43 +000027341rm -f core conftest.err conftest.$ac_objext \
27342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027343LIBS=$ac_check_lib_save_LIBS
27344fi
cristy8b350f62009-11-15 23:12:43 +000027345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027346$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027347if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027348 passed=`expr $passed + 1`
27349else
27350 failed=`expr $failed + 1`
27351fi
27352
cristy8b350f62009-11-15 23:12:43 +000027353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027354$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027355if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027356 $as_echo_n "(cached) " >&6
27357else
27358 ac_check_lib_save_LIBS=$LIBS
27359LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027361/* end confdefs.h. */
27362
27363/* Override any GCC internal prototype to avoid an error.
27364 Use char because int might match the return type of a GCC
27365 builtin and then its argument prototype would still apply. */
27366#ifdef __cplusplus
27367extern "C"
27368#endif
27369char TIFFIsByteSwapped ();
27370int
27371main ()
27372{
27373return TIFFIsByteSwapped ();
27374 ;
27375 return 0;
27376}
27377_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027378if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027379 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
27380else
cristy8b350f62009-11-15 23:12:43 +000027381 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000027382fi
cristy8b350f62009-11-15 23:12:43 +000027383rm -f core conftest.err conftest.$ac_objext \
27384 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027385LIBS=$ac_check_lib_save_LIBS
27386fi
cristy8b350f62009-11-15 23:12:43 +000027387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000027388$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027389if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027390 passed=`expr $passed + 1`
27391else
27392 failed=`expr $failed + 1`
27393fi
27394
cristy8b350f62009-11-15 23:12:43 +000027395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027396$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027397if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027398 $as_echo_n "(cached) " >&6
27399else
27400 ac_check_lib_save_LIBS=$LIBS
27401LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027403/* end confdefs.h. */
27404
27405/* Override any GCC internal prototype to avoid an error.
27406 Use char because int might match the return type of a GCC
27407 builtin and then its argument prototype would still apply. */
27408#ifdef __cplusplus
27409extern "C"
27410#endif
27411char TIFFReadRGBATile ();
27412int
27413main ()
27414{
27415return TIFFReadRGBATile ();
27416 ;
27417 return 0;
27418}
27419_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027420if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027421 ac_cv_lib_tiff_TIFFReadRGBATile=yes
27422else
cristy8b350f62009-11-15 23:12:43 +000027423 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000027424fi
cristy8b350f62009-11-15 23:12:43 +000027425rm -f core conftest.err conftest.$ac_objext \
27426 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027427LIBS=$ac_check_lib_save_LIBS
27428fi
cristy8b350f62009-11-15 23:12:43 +000027429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000027430$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027431if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027432 passed=`expr $passed + 1`
27433else
27434 failed=`expr $failed + 1`
27435fi
27436
cristy8b350f62009-11-15 23:12:43 +000027437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027438$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027439if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027440 $as_echo_n "(cached) " >&6
27441else
27442 ac_check_lib_save_LIBS=$LIBS
27443LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027445/* end confdefs.h. */
27446
27447/* Override any GCC internal prototype to avoid an error.
27448 Use char because int might match the return type of a GCC
27449 builtin and then its argument prototype would still apply. */
27450#ifdef __cplusplus
27451extern "C"
27452#endif
27453char TIFFReadRGBAStrip ();
27454int
27455main ()
27456{
27457return TIFFReadRGBAStrip ();
27458 ;
27459 return 0;
27460}
27461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027462if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027463 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
27464else
cristy8b350f62009-11-15 23:12:43 +000027465 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000027466fi
cristy8b350f62009-11-15 23:12:43 +000027467rm -f core conftest.err conftest.$ac_objext \
27468 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027469LIBS=$ac_check_lib_save_LIBS
27470fi
cristy8b350f62009-11-15 23:12:43 +000027471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000027472$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027473if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027474 passed=`expr $passed + 1`
27475else
27476 failed=`expr $failed + 1`
27477fi
27478
cristy8b350f62009-11-15 23:12:43 +000027479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027480$as_echo_n "checking if TIFF package is complete... " >&6; }
27481 if test $passed -gt 0; then
27482 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027484$as_echo "no -- some components failed test" >&6; }
27485 have_tiff='no (failed tests)'
27486 else
27487 TIFF_LIBS='-ltiff'
27488 LIBS="$TIFF_LIBS $LIBS"
27489
cristy8b350f62009-11-15 23:12:43 +000027490$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027491
cristy8b350f62009-11-15 23:12:43 +000027492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027493$as_echo "yes" >&6; }
27494 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000027495 for ac_header in tiffconf.h
27496do :
27497 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
27498if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027499 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027500#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000027501_ACEOF
27502
27503fi
27504
27505done
27506
cristy8b350f62009-11-15 23:12:43 +000027507 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000027508 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
27509 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000027510do :
27511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27512ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27513eval as_val=\$$as_ac_var
27514 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027515 cat >>confdefs.h <<_ACEOF
27516#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27517_ACEOF
27518
27519fi
27520done
27521
27522 fi
27523 else
cristy8b350f62009-11-15 23:12:43 +000027524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027525$as_echo "no" >&6; }
27526 fi
27527fi
27528 if test "$have_tiff" = 'yes'; then
27529 TIFF_DELEGATE_TRUE=
27530 TIFF_DELEGATE_FALSE='#'
27531else
27532 TIFF_DELEGATE_TRUE='#'
27533 TIFF_DELEGATE_FALSE=
27534fi
27535
27536
27537
27538
27539#
27540# Set Windows font directory.
27541#
27542
27543# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027544if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027545 withval=$with_windows_font_dir; with_windows_font_dir=$withval
27546else
27547 with_windows_font_dir=''
27548fi
27549
27550if test "$with_windows_font_dir" != '' ; then
27551 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
27552fi
27553
27554
27555#
27556# Check for WMF delegate library.
27557#
27558
27559# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000027560if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027561 withval=$with_wmf; with_wmf=$withval
27562else
27563 with_wmf=$with_modules
27564fi
27565
27566
27567if test "$with_wmf" != 'yes'; then
27568 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
27569fi
27570
27571have_wmf='no'
27572WMF_LIBS=''
27573WMF_LIBS_DEPS=''
27574OLIBS="$LIBS"
27575if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027577$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027579$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027581$as_echo "" >&6; }
27582 have_libwmf='no'
27583 have_libwmflite='no'
27584 have_libwmf_ipa_h='no'
27585
cristy8b350f62009-11-15 23:12:43 +000027586 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
27587"
27588if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027589 have_libwmf_ipa_h='yes'
27590fi
27591
27592
27593 if test "$have_libwmf_ipa_h" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
cristy3ed852e2009-09-05 21:47:34 +000027595$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027596if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027597 $as_echo_n "(cached) " >&6
27598else
27599 ac_check_lib_save_LIBS=$LIBS
27600LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027602/* end confdefs.h. */
27603
27604/* Override any GCC internal prototype to avoid an error.
27605 Use char because int might match the return type of a GCC
27606 builtin and then its argument prototype would still apply. */
27607#ifdef __cplusplus
27608extern "C"
27609#endif
27610char wmf_lite_create ();
27611int
27612main ()
27613{
27614return wmf_lite_create ();
27615 ;
27616 return 0;
27617}
27618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027619if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027620 ac_cv_lib_wmflite_wmf_lite_create=yes
27621else
cristy8b350f62009-11-15 23:12:43 +000027622 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000027623fi
cristy8b350f62009-11-15 23:12:43 +000027624rm -f core conftest.err conftest.$ac_objext \
27625 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027626LIBS=$ac_check_lib_save_LIBS
27627fi
cristy8b350f62009-11-15 23:12:43 +000027628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027629$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027630if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027631 have_libwmflite='yes'
27632fi
27633
27634 if test "$have_libwmflite" = 'yes'; then
27635
cristy8b350f62009-11-15 23:12:43 +000027636$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027637
27638 WMF_LIBS='-lwmflite'
27639 LIBS="$WMF_LIBS $LIBS"
27640 have_wmf='yes'
27641 else
27642 WMF_LIBS_DEPS=''
27643 WMF_CONFIG_LIBS=`libwmf-config --libs`
27644 for lib in xml2 expat freetype jpeg png z; do
27645 testlib="-l${lib}"
27646 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
27647 done
cristy8b350f62009-11-15 23:12:43 +000027648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
cristy3ed852e2009-09-05 21:47:34 +000027649$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027650if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027651 $as_echo_n "(cached) " >&6
27652else
27653 ac_check_lib_save_LIBS=$LIBS
27654LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027656/* end confdefs.h. */
27657
27658/* Override any GCC internal prototype to avoid an error.
27659 Use char because int might match the return type of a GCC
27660 builtin and then its argument prototype would still apply. */
27661#ifdef __cplusplus
27662extern "C"
27663#endif
27664char wmf_api_create ();
27665int
27666main ()
27667{
27668return wmf_api_create ();
27669 ;
27670 return 0;
27671}
27672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027673if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027674 ac_cv_lib_wmf_wmf_api_create=yes
27675else
cristy8b350f62009-11-15 23:12:43 +000027676 ac_cv_lib_wmf_wmf_api_create=no
cristy3ed852e2009-09-05 21:47:34 +000027677fi
cristy8b350f62009-11-15 23:12:43 +000027678rm -f core conftest.err conftest.$ac_objext \
27679 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027680LIBS=$ac_check_lib_save_LIBS
27681fi
cristy8b350f62009-11-15 23:12:43 +000027682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027683$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027684if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027685 have_libwmf='yes'
27686fi
27687
27688 if test "$have_libwmf" = 'yes'; then
27689
cristy8b350f62009-11-15 23:12:43 +000027690$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027691
27692 WMF_LIBS='-lwmf'
27693 LIBS="$WMF_LIBS $LIBS"
27694 have_wmf='yes'
27695 else
cristy8b350f62009-11-15 23:12:43 +000027696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027697$as_echo "no -- some components failed test" >&6; }
27698 have_wmf='no (failed tests)'
27699 have_wmflite='no (failed tests)'
27700 LIBS="$OLIBS"
27701 WMF_LIBS=''
27702 fi
27703 fi
27704 fi
cristy8b350f62009-11-15 23:12:43 +000027705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027706$as_echo_n "checking if WMF package is complete... " >&6; }
27707 if test "$have_wmf" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027709$as_echo "yes" >&6; }
27710 else
cristy8b350f62009-11-15 23:12:43 +000027711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027712$as_echo "no" >&6; }
27713 fi
27714fi
27715 if test "$have_wmf" = 'yes'; then
27716 WMF_DELEGATE_TRUE=
27717 WMF_DELEGATE_FALSE='#'
27718else
27719 WMF_DELEGATE_TRUE='#'
27720 WMF_DELEGATE_FALSE=
27721fi
27722
27723
27724
27725
27726
27727#
27728# Check for XML delegate library.
27729#
27730
27731# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000027732if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027733 withval=$with_xml; with_xml=$withval
27734else
27735 with_xml=$have_x
27736fi
27737
27738
27739if test "$with_xml" != 'yes' ; then
27740 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
27741fi
27742
27743have_xml='no'
27744XML_LIBS=''
27745if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027747$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000027749$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027751$as_echo "" >&6; }
27752 PERSIST_LDFLAGS=$LDFLAGS
27753 PERSIST_CPPFLAGS=$CPPFLAGS
27754 xml2_config=''
27755 for ac_prog in xml2-config
27756do
27757 # Extract the first word of "$ac_prog", so it can be a program name with args.
27758set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027760$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027761if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027762 $as_echo_n "(cached) " >&6
27763else
27764 if test -n "$xml2_config"; then
27765 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
27766else
27767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27768for as_dir in $PATH
27769do
27770 IFS=$as_save_IFS
27771 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027772 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27774 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027776 break 2
27777 fi
27778done
cristy8b350f62009-11-15 23:12:43 +000027779 done
cristy3ed852e2009-09-05 21:47:34 +000027780IFS=$as_save_IFS
27781
27782fi
27783fi
27784xml2_config=$ac_cv_prog_xml2_config
27785if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000027786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027787$as_echo "$xml2_config" >&6; }
27788else
cristy8b350f62009-11-15 23:12:43 +000027789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027790$as_echo "no" >&6; }
27791fi
27792
27793
27794 test -n "$xml2_config" && break
27795done
27796 if test -n "$xml2_config"; then
27797 # Debian installs libxml headers under /usr/include/libxml2/libxml with
27798 # the shared library installed under /usr/lib, whereas the package
27799 # installs itself under $prefix/libxml and $prefix/lib.
27800 xml2_prefix=`xml2-config --prefix`
27801 if test -d "${xml2_prefix}/include/libxml2"; then
27802 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
27803 fi
27804 if test "${xml2_prefix}" != '/usr'; then
27805 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
27806 fi
27807 fi
27808 failed=0
27809 passed=0
cristy8b350f62009-11-15 23:12:43 +000027810 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
27811if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027812 passed=`expr $passed + 1`
27813else
27814 failed=`expr $failed + 1`
27815fi
27816
27817
cristy8b350f62009-11-15 23:12:43 +000027818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027819$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027820if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027821 $as_echo_n "(cached) " >&6
27822else
27823 ac_check_lib_save_LIBS=$LIBS
27824LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027826/* end confdefs.h. */
27827
27828/* Override any GCC internal prototype to avoid an error.
27829 Use char because int might match the return type of a GCC
27830 builtin and then its argument prototype would still apply. */
27831#ifdef __cplusplus
27832extern "C"
27833#endif
27834char xmlParseExternalEntity ();
27835int
27836main ()
27837{
27838return xmlParseExternalEntity ();
27839 ;
27840 return 0;
27841}
27842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027843if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027844 ac_cv_lib_xml2_xmlParseExternalEntity=yes
27845else
cristy8b350f62009-11-15 23:12:43 +000027846 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000027847fi
cristy8b350f62009-11-15 23:12:43 +000027848rm -f core conftest.err conftest.$ac_objext \
27849 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027850LIBS=$ac_check_lib_save_LIBS
27851fi
cristy8b350f62009-11-15 23:12:43 +000027852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000027853$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027854if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027855 passed=`expr $passed + 1`
27856else
27857 failed=`expr $failed + 1`
27858fi
27859
cristy8b350f62009-11-15 23:12:43 +000027860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027861$as_echo_n "checking if XML package is complete... " >&6; }
27862 if test $passed -gt 0; then
27863 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027865$as_echo "no -- some components failed test" >&6; }
27866 have_xml='no (failed tests)'
27867 LDFLAGS="$PERSIST_LDFLAGS"
27868 CPPFLAGS="$PERSIST_CPPFLAGS"
27869 else
27870 XML_LIBS='-lxml2'
27871 LIBS="$XML_LIBS $LIBS"
27872
cristy8b350f62009-11-15 23:12:43 +000027873$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027874
cristy8b350f62009-11-15 23:12:43 +000027875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027876$as_echo "yes" >&6; }
27877 have_xml='yes'
27878 fi
27879 else
cristy8b350f62009-11-15 23:12:43 +000027880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027881$as_echo "no" >&6; }
27882 fi
27883fi
27884 if test "$have_xml" = 'yes'; then
27885 XML_DELEGATE_TRUE=
27886 XML_DELEGATE_FALSE='#'
27887else
27888 XML_DELEGATE_TRUE='#'
27889 XML_DELEGATE_FALSE=
27890fi
27891
27892
27893
27894
27895# Substitute compiler name to build/link PerlMagick
27896#
27897
27898
27899#
27900# Configure install Paths
27901#
27902
27903# Subdirectory under lib to place ImageMagick lib files
27904LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27905
27906cat >>confdefs.h <<_ACEOF
27907#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
27908_ACEOF
27909
27910
27911# Path to ImageMagick bin directory
27912EXECUTABLE_PATH="${BIN_DIR}"
27913DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
27914case "${build_os}" in
27915 mingw* )
27916 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
27917 ;;
27918esac
27919
27920cat >>confdefs.h <<_ACEOF
27921#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
27922_ACEOF
27923
27924
27925
27926# Path to ImageMagick lib
27927LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
27928DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
27929case "${build_os}" in
27930 mingw* )
27931 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
27932 ;;
27933esac
27934
27935cat >>confdefs.h <<_ACEOF
27936#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
27937_ACEOF
27938
27939
27940
27941# Subdirectory under lib to place ImageMagick configuration files
27942CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27943
27944cat >>confdefs.h <<_ACEOF
27945#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
27946_ACEOF
27947
27948CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27949DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27950case "${build_os}" in
27951 mingw* )
27952 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
27953 ;;
27954esac
27955
27956cat >>confdefs.h <<_ACEOF
27957#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
27958_ACEOF
27959
27960
27961
27962#
27963# Subdirectory under lib to place ImageMagick coder module files
27964CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
27965
27966cat >>confdefs.h <<_ACEOF
27967#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
27968_ACEOF
27969
27970CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
27971DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
27972case "${build_os}" in
27973 mingw* )
27974 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
27975 ;;
27976esac
27977
27978cat >>confdefs.h <<_ACEOF
27979#define CODER_PATH "$DEFINE_CODER_PATH"
27980_ACEOF
27981
27982
27983
27984#
27985# Subdirectory under lib to place ImageMagick filter module files
27986FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
27987
27988cat >>confdefs.h <<_ACEOF
27989#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
27990_ACEOF
27991
27992FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
27993DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
27994case "${build_os}" in
27995 mingw* )
27996 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
27997 ;;
27998esac
27999
28000cat >>confdefs.h <<_ACEOF
28001#define FILTER_PATH "$DEFINE_FILTER_PATH"
28002_ACEOF
28003
28004
28005
28006#
28007# Path to ImageMagick documentation files
28008DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28009DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
28010DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
28011case "${build_os}" in
28012 mingw* )
28013 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
28014 ;;
28015esac
28016
28017cat >>confdefs.h <<_ACEOF
28018#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28019_ACEOF
28020
28021
28022
28023#
28024# Path to ImageMagick share files
28025SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28026SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28027DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28028case "${build_os}" in
28029 mingw* )
28030 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28031 ;;
28032esac
28033
28034cat >>confdefs.h <<_ACEOF
28035#define SHARE_PATH "$DEFINE_SHARE_PATH"
28036_ACEOF
28037
28038
28039
28040# Subdirectory under share to place ImageMagick configuration files
28041SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28042
28043cat >>confdefs.h <<_ACEOF
28044#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28045_ACEOF
28046
28047SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28048DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28049case "${build_os}" in
28050 mingw* )
28051 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28052 ;;
28053esac
28054
28055cat >>confdefs.h <<_ACEOF
28056#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28057_ACEOF
28058
28059
28060
28061#
28062# program_transform_name is formed for use in a Makefile, so create a
28063# modified version for use in a shell script.
28064configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28065
28066# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000028067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028068$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028070$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028072$as_echo "" >&6; }
28073AutotraceDecodeDelegateDefault='autotrace'
28074AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000028075BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000028076BZIPDelegateDefault='bzip2'
28077BrowseDelegateDefault='xdg-open'
28078CGMDecodeDelegateDefault='ralcgm'
28079CatDelegateDefault='cat'
28080DNGDecodeDelegateDefault='ufraw-batch'
28081GVCDecodeDelegateDefault='dot'
28082DVIDecodeDelegateDefault='dvips'
28083EchoDelegateDefault='echo'
28084EditorDelegateDefault='xterm'
28085FIGDecodeDelegateDefault='fig2dev'
28086ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
28087DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
28088MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
28089GnuplotDecodeDelegateDefault='gnuplot'
28090HDRDecodeDelegateDefault='ra_pfm'
28091HPGLDecodeDelegateDefault='hp2xx'
28092HTMLDecodeDelegateDefault='html2ps'
28093ILBMDecodeDelegateDefault='ilbmtoppm'
28094ILBMEncodeDelegateDefault='ppmtoilbm'
28095LPDelegateDefault='lp'
28096LPRDelegateDefault='lpr'
28097LZWDecodeDelegateDefault='uncompress'
28098LZWEncodeDelegateDefault='compress'
28099LaunchDelegateDefault='gimp'
28100MANDelegateDefault='groff'
28101MPEGDecodeDelegateDefault='ffmpeg'
28102MPEGEncodeDelegateDefault='ffmpeg'
28103MVDelegateDefault='mv'
28104PCLDelegateDefault='pcl6'
28105PGPDecodeDelegateDefault='pgpv'
28106POVDelegateDefault='povray'
28107if test "$native_win32_build" = 'yes'; then
28108 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000028109elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028110 PSDelegateDefault='gsc'
28111else
28112 PSDelegateDefault='gs'
28113fi
28114RLEEncodeDelegateDefault='rawtorle'
28115RMDelegateDefault='rm'
28116SCANDecodeDelegateDefault='scanimage'
28117TXTDelegateDefault='enscript'
28118WMFDecodeDelegateDefault='wmf2eps'
28119WWWDecodeDelegateDefault='curl'
28120XPSDelegateDefault='gxps'
28121ZipDelegateDefault='gzip'
28122
28123# Search for delegates
28124# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
28125set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028127$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028128if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028129 $as_echo_n "(cached) " >&6
28130else
28131 case $AutotraceDecodeDelegate in
28132 [\\/]* | ?:[\\/]*)
28133 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
28134 ;;
28135 *)
28136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28137for as_dir in $PATH
28138do
28139 IFS=$as_save_IFS
28140 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028141 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28143 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028145 break 2
28146 fi
28147done
cristy8b350f62009-11-15 23:12:43 +000028148 done
cristy3ed852e2009-09-05 21:47:34 +000028149IFS=$as_save_IFS
28150
28151 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
28152 ;;
28153esac
28154fi
28155AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
28156if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028158$as_echo "$AutotraceDecodeDelegate" >&6; }
28159else
cristy8b350f62009-11-15 23:12:43 +000028160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028161$as_echo "no" >&6; }
28162fi
28163
28164
28165# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
28166set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028168$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028169if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028170 $as_echo_n "(cached) " >&6
28171else
28172 case $AVIDecodeDelegate in
28173 [\\/]* | ?:[\\/]*)
28174 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
28175 ;;
28176 *)
28177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28178for as_dir in $PATH
28179do
28180 IFS=$as_save_IFS
28181 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028182 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28184 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028186 break 2
28187 fi
28188done
cristy8b350f62009-11-15 23:12:43 +000028189 done
cristy3ed852e2009-09-05 21:47:34 +000028190IFS=$as_save_IFS
28191
28192 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
28193 ;;
28194esac
28195fi
28196AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
28197if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028199$as_echo "$AVIDecodeDelegate" >&6; }
28200else
cristy8b350f62009-11-15 23:12:43 +000028201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028202$as_echo "no" >&6; }
28203fi
28204
28205
28206# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
28207set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028209$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028210if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028211 $as_echo_n "(cached) " >&6
28212else
28213 case $BlenderDecodeDelegate in
28214 [\\/]* | ?:[\\/]*)
28215 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
28216 ;;
28217 *)
28218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28219for as_dir in $PATH
28220do
28221 IFS=$as_save_IFS
28222 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028223 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28225 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028227 break 2
28228 fi
28229done
cristy8b350f62009-11-15 23:12:43 +000028230 done
cristy3ed852e2009-09-05 21:47:34 +000028231IFS=$as_save_IFS
28232
28233 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28234 ;;
28235esac
28236fi
28237BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28238if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028240$as_echo "$BlenderDecodeDelegate" >&6; }
28241else
cristy8b350f62009-11-15 23:12:43 +000028242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028243$as_echo "no" >&6; }
28244fi
28245
28246
28247# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28248set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028250$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028251if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028252 $as_echo_n "(cached) " >&6
28253else
28254 case $BZIPDelegate in
28255 [\\/]* | ?:[\\/]*)
28256 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28257 ;;
28258 *)
28259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28260for as_dir in $PATH
28261do
28262 IFS=$as_save_IFS
28263 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028264 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28266 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028268 break 2
28269 fi
28270done
cristy8b350f62009-11-15 23:12:43 +000028271 done
cristy3ed852e2009-09-05 21:47:34 +000028272IFS=$as_save_IFS
28273
28274 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28275 ;;
28276esac
28277fi
28278BZIPDelegate=$ac_cv_path_BZIPDelegate
28279if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028281$as_echo "$BZIPDelegate" >&6; }
28282else
cristy8b350f62009-11-15 23:12:43 +000028283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028284$as_echo "no" >&6; }
28285fi
28286
28287
28288# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28289set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028291$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028292if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028293 $as_echo_n "(cached) " >&6
28294else
28295 case $BrowseDelegate in
28296 [\\/]* | ?:[\\/]*)
28297 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28298 ;;
28299 *)
28300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28301for as_dir in $PATH
28302do
28303 IFS=$as_save_IFS
28304 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028305 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28307 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028309 break 2
28310 fi
28311done
cristy8b350f62009-11-15 23:12:43 +000028312 done
cristy3ed852e2009-09-05 21:47:34 +000028313IFS=$as_save_IFS
28314
28315 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28316 ;;
28317esac
28318fi
28319BrowseDelegate=$ac_cv_path_BrowseDelegate
28320if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028322$as_echo "$BrowseDelegate" >&6; }
28323else
cristy8b350f62009-11-15 23:12:43 +000028324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028325$as_echo "no" >&6; }
28326fi
28327
28328
28329# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
28330set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028332$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028333if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028334 $as_echo_n "(cached) " >&6
28335else
28336 case $CGMDecodeDelegate in
28337 [\\/]* | ?:[\\/]*)
28338 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
28339 ;;
28340 *)
28341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28342for as_dir in $PATH
28343do
28344 IFS=$as_save_IFS
28345 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028346 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28348 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028350 break 2
28351 fi
28352done
cristy8b350f62009-11-15 23:12:43 +000028353 done
cristy3ed852e2009-09-05 21:47:34 +000028354IFS=$as_save_IFS
28355
28356 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
28357 ;;
28358esac
28359fi
28360CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
28361if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028363$as_echo "$CGMDecodeDelegate" >&6; }
28364else
cristy8b350f62009-11-15 23:12:43 +000028365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028366$as_echo "no" >&6; }
28367fi
28368
28369
28370# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
28371set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028373$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028374if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028375 $as_echo_n "(cached) " >&6
28376else
28377 case $CatDelegate in
28378 [\\/]* | ?:[\\/]*)
28379 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
28380 ;;
28381 *)
28382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28383for as_dir in $PATH
28384do
28385 IFS=$as_save_IFS
28386 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028387 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28389 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028391 break 2
28392 fi
28393done
cristy8b350f62009-11-15 23:12:43 +000028394 done
cristy3ed852e2009-09-05 21:47:34 +000028395IFS=$as_save_IFS
28396
28397 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
28398 ;;
28399esac
28400fi
28401CatDelegate=$ac_cv_path_CatDelegate
28402if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028404$as_echo "$CatDelegate" >&6; }
28405else
cristy8b350f62009-11-15 23:12:43 +000028406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028407$as_echo "no" >&6; }
28408fi
28409
28410
28411# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
28412set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028414$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028415if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028416 $as_echo_n "(cached) " >&6
28417else
28418 case $DNGDecodeDelegate in
28419 [\\/]* | ?:[\\/]*)
28420 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
28421 ;;
28422 *)
28423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28424for as_dir in $PATH
28425do
28426 IFS=$as_save_IFS
28427 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028428 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28430 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028432 break 2
28433 fi
28434done
cristy8b350f62009-11-15 23:12:43 +000028435 done
cristy3ed852e2009-09-05 21:47:34 +000028436IFS=$as_save_IFS
28437
28438 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
28439 ;;
28440esac
28441fi
28442DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
28443if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028445$as_echo "$DNGDecodeDelegate" >&6; }
28446else
cristy8b350f62009-11-15 23:12:43 +000028447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028448$as_echo "no" >&6; }
28449fi
28450
28451
28452# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
28453set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028455$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028456if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028457 $as_echo_n "(cached) " >&6
28458else
28459 case $GVCDecodeDelegate in
28460 [\\/]* | ?:[\\/]*)
28461 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
28462 ;;
28463 *)
28464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28465for as_dir in $PATH
28466do
28467 IFS=$as_save_IFS
28468 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028469 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28471 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028473 break 2
28474 fi
28475done
cristy8b350f62009-11-15 23:12:43 +000028476 done
cristy3ed852e2009-09-05 21:47:34 +000028477IFS=$as_save_IFS
28478
28479 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
28480 ;;
28481esac
28482fi
28483GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
28484if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028486$as_echo "$GVCDecodeDelegate" >&6; }
28487else
cristy8b350f62009-11-15 23:12:43 +000028488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028489$as_echo "no" >&6; }
28490fi
28491
28492
28493# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
28494set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028496$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028497if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028498 $as_echo_n "(cached) " >&6
28499else
28500 case $DVIDecodeDelegate in
28501 [\\/]* | ?:[\\/]*)
28502 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
28503 ;;
28504 *)
28505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28506for as_dir in $PATH
28507do
28508 IFS=$as_save_IFS
28509 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028510 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28512 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028514 break 2
28515 fi
28516done
cristy8b350f62009-11-15 23:12:43 +000028517 done
cristy3ed852e2009-09-05 21:47:34 +000028518IFS=$as_save_IFS
28519
28520 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
28521 ;;
28522esac
28523fi
28524DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
28525if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028527$as_echo "$DVIDecodeDelegate" >&6; }
28528else
cristy8b350f62009-11-15 23:12:43 +000028529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028530$as_echo "no" >&6; }
28531fi
28532
28533
28534# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
28535set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028537$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028538if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028539 $as_echo_n "(cached) " >&6
28540else
28541 case $EchoDelegate in
28542 [\\/]* | ?:[\\/]*)
28543 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
28544 ;;
28545 *)
28546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28547for as_dir in $PATH
28548do
28549 IFS=$as_save_IFS
28550 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028551 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28553 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028555 break 2
28556 fi
28557done
cristy8b350f62009-11-15 23:12:43 +000028558 done
cristy3ed852e2009-09-05 21:47:34 +000028559IFS=$as_save_IFS
28560
28561 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
28562 ;;
28563esac
28564fi
28565EchoDelegate=$ac_cv_path_EchoDelegate
28566if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028568$as_echo "$EchoDelegate" >&6; }
28569else
cristy8b350f62009-11-15 23:12:43 +000028570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028571$as_echo "no" >&6; }
28572fi
28573
28574
28575# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
28576set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028578$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028579if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028580 $as_echo_n "(cached) " >&6
28581else
28582 case $EditorDelegate in
28583 [\\/]* | ?:[\\/]*)
28584 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
28585 ;;
28586 *)
28587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28588for as_dir in $PATH
28589do
28590 IFS=$as_save_IFS
28591 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028592 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28594 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028596 break 2
28597 fi
28598done
cristy8b350f62009-11-15 23:12:43 +000028599 done
cristy3ed852e2009-09-05 21:47:34 +000028600IFS=$as_save_IFS
28601
28602 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
28603 ;;
28604esac
28605fi
28606EditorDelegate=$ac_cv_path_EditorDelegate
28607if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028609$as_echo "$EditorDelegate" >&6; }
28610else
cristy8b350f62009-11-15 23:12:43 +000028611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028612$as_echo "no" >&6; }
28613fi
28614
28615
28616# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
28617set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028619$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028620if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028621 $as_echo_n "(cached) " >&6
28622else
28623 case $FIGDecodeDelegate in
28624 [\\/]* | ?:[\\/]*)
28625 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
28626 ;;
28627 *)
28628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28629for as_dir in $PATH
28630do
28631 IFS=$as_save_IFS
28632 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028633 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28635 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028637 break 2
28638 fi
28639done
cristy8b350f62009-11-15 23:12:43 +000028640 done
cristy3ed852e2009-09-05 21:47:34 +000028641IFS=$as_save_IFS
28642
28643 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
28644 ;;
28645esac
28646fi
28647FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
28648if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028650$as_echo "$FIGDecodeDelegate" >&6; }
28651else
cristy8b350f62009-11-15 23:12:43 +000028652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028653$as_echo "no" >&6; }
28654fi
28655
28656
28657# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
28658set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028660$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028661if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028662 $as_echo_n "(cached) " >&6
28663else
28664 case $ConvertDelegate in
28665 [\\/]* | ?:[\\/]*)
28666 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
28667 ;;
28668 *)
28669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28670for as_dir in $PATH
28671do
28672 IFS=$as_save_IFS
28673 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028674 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28676 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028678 break 2
28679 fi
28680done
cristy8b350f62009-11-15 23:12:43 +000028681 done
cristy3ed852e2009-09-05 21:47:34 +000028682IFS=$as_save_IFS
28683
28684 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
28685 ;;
28686esac
28687fi
28688ConvertDelegate=$ac_cv_path_ConvertDelegate
28689if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028691$as_echo "$ConvertDelegate" >&6; }
28692else
cristy8b350f62009-11-15 23:12:43 +000028693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028694$as_echo "no" >&6; }
28695fi
28696
28697
28698# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
28699set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028701$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028702if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028703 $as_echo_n "(cached) " >&6
28704else
28705 case $DisplayDelegate in
28706 [\\/]* | ?:[\\/]*)
28707 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
28708 ;;
28709 *)
28710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28711for as_dir in $PATH
28712do
28713 IFS=$as_save_IFS
28714 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028715 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28717 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028719 break 2
28720 fi
28721done
cristy8b350f62009-11-15 23:12:43 +000028722 done
cristy3ed852e2009-09-05 21:47:34 +000028723IFS=$as_save_IFS
28724
28725 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
28726 ;;
28727esac
28728fi
28729DisplayDelegate=$ac_cv_path_DisplayDelegate
28730if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028732$as_echo "$DisplayDelegate" >&6; }
28733else
cristy8b350f62009-11-15 23:12:43 +000028734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028735$as_echo "no" >&6; }
28736fi
28737
28738
28739# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
28740set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028742$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028743if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028744 $as_echo_n "(cached) " >&6
28745else
28746 case $MogrifyDelegate in
28747 [\\/]* | ?:[\\/]*)
28748 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
28749 ;;
28750 *)
28751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28752for as_dir in $PATH
28753do
28754 IFS=$as_save_IFS
28755 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028756 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28758 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028760 break 2
28761 fi
28762done
cristy8b350f62009-11-15 23:12:43 +000028763 done
cristy3ed852e2009-09-05 21:47:34 +000028764IFS=$as_save_IFS
28765
28766 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
28767 ;;
28768esac
28769fi
28770MogrifyDelegate=$ac_cv_path_MogrifyDelegate
28771if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028773$as_echo "$MogrifyDelegate" >&6; }
28774else
cristy8b350f62009-11-15 23:12:43 +000028775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028776$as_echo "no" >&6; }
28777fi
28778
28779
28780# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
28781set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028783$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028784if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028785 $as_echo_n "(cached) " >&6
28786else
28787 case $GnuplotDecodeDelegate in
28788 [\\/]* | ?:[\\/]*)
28789 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
28790 ;;
28791 *)
28792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28793for as_dir in $PATH
28794do
28795 IFS=$as_save_IFS
28796 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028797 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28799 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028801 break 2
28802 fi
28803done
cristy8b350f62009-11-15 23:12:43 +000028804 done
cristy3ed852e2009-09-05 21:47:34 +000028805IFS=$as_save_IFS
28806
28807 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
28808 ;;
28809esac
28810fi
28811GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
28812if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028814$as_echo "$GnuplotDecodeDelegate" >&6; }
28815else
cristy8b350f62009-11-15 23:12:43 +000028816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028817$as_echo "no" >&6; }
28818fi
28819
28820
28821# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
28822set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028824$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028825if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028826 $as_echo_n "(cached) " >&6
28827else
28828 case $HDRDecodeDelegate in
28829 [\\/]* | ?:[\\/]*)
28830 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
28831 ;;
28832 *)
28833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28834for as_dir in $PATH
28835do
28836 IFS=$as_save_IFS
28837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28840 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028842 break 2
28843 fi
28844done
cristy8b350f62009-11-15 23:12:43 +000028845 done
cristy3ed852e2009-09-05 21:47:34 +000028846IFS=$as_save_IFS
28847
28848 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
28849 ;;
28850esac
28851fi
28852HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
28853if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028855$as_echo "$HDRDecodeDelegate" >&6; }
28856else
cristy8b350f62009-11-15 23:12:43 +000028857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028858$as_echo "no" >&6; }
28859fi
28860
28861
28862# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
28863set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028865$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028866if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028867 $as_echo_n "(cached) " >&6
28868else
28869 case $HPGLDecodeDelegate in
28870 [\\/]* | ?:[\\/]*)
28871 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
28872 ;;
28873 *)
28874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28875for as_dir in $PATH
28876do
28877 IFS=$as_save_IFS
28878 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028879 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28881 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028883 break 2
28884 fi
28885done
cristy8b350f62009-11-15 23:12:43 +000028886 done
cristy3ed852e2009-09-05 21:47:34 +000028887IFS=$as_save_IFS
28888
28889 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
28890 ;;
28891esac
28892fi
28893HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
28894if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028896$as_echo "$HPGLDecodeDelegate" >&6; }
28897else
cristy8b350f62009-11-15 23:12:43 +000028898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028899$as_echo "no" >&6; }
28900fi
28901
28902
28903# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
28904set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028906$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028907if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028908 $as_echo_n "(cached) " >&6
28909else
28910 case $HTMLDecodeDelegate in
28911 [\\/]* | ?:[\\/]*)
28912 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
28913 ;;
28914 *)
28915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28916for as_dir in $PATH
28917do
28918 IFS=$as_save_IFS
28919 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28922 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028924 break 2
28925 fi
28926done
cristy8b350f62009-11-15 23:12:43 +000028927 done
cristy3ed852e2009-09-05 21:47:34 +000028928IFS=$as_save_IFS
28929
28930 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
28931 ;;
28932esac
28933fi
28934HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
28935if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028937$as_echo "$HTMLDecodeDelegate" >&6; }
28938else
cristy8b350f62009-11-15 23:12:43 +000028939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028940$as_echo "no" >&6; }
28941fi
28942
28943
28944# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
28945set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028947$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028948if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028949 $as_echo_n "(cached) " >&6
28950else
28951 case $ILBMDecodeDelegate in
28952 [\\/]* | ?:[\\/]*)
28953 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
28954 ;;
28955 *)
28956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28957for as_dir in $PATH
28958do
28959 IFS=$as_save_IFS
28960 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28963 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028965 break 2
28966 fi
28967done
cristy8b350f62009-11-15 23:12:43 +000028968 done
cristy3ed852e2009-09-05 21:47:34 +000028969IFS=$as_save_IFS
28970
28971 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
28972 ;;
28973esac
28974fi
28975ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
28976if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028978$as_echo "$ILBMDecodeDelegate" >&6; }
28979else
cristy8b350f62009-11-15 23:12:43 +000028980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028981$as_echo "no" >&6; }
28982fi
28983
28984
28985# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
28986set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028988$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028989if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028990 $as_echo_n "(cached) " >&6
28991else
28992 case $ILBMEncodeDelegate in
28993 [\\/]* | ?:[\\/]*)
28994 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
28995 ;;
28996 *)
28997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28998for as_dir in $PATH
28999do
29000 IFS=$as_save_IFS
29001 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29004 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029006 break 2
29007 fi
29008done
cristy8b350f62009-11-15 23:12:43 +000029009 done
cristy3ed852e2009-09-05 21:47:34 +000029010IFS=$as_save_IFS
29011
29012 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
29013 ;;
29014esac
29015fi
29016ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29017if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029019$as_echo "$ILBMEncodeDelegate" >&6; }
29020else
cristy8b350f62009-11-15 23:12:43 +000029021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029022$as_echo "no" >&6; }
29023fi
29024
29025
29026# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29027set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029029$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029030if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029031 $as_echo_n "(cached) " >&6
29032else
29033 case $LPDelegate in
29034 [\\/]* | ?:[\\/]*)
29035 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
29036 ;;
29037 *)
29038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29039for as_dir in $PATH
29040do
29041 IFS=$as_save_IFS
29042 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029043 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29045 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029047 break 2
29048 fi
29049done
cristy8b350f62009-11-15 23:12:43 +000029050 done
cristy3ed852e2009-09-05 21:47:34 +000029051IFS=$as_save_IFS
29052
29053 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
29054 ;;
29055esac
29056fi
29057LPDelegate=$ac_cv_path_LPDelegate
29058if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029060$as_echo "$LPDelegate" >&6; }
29061else
cristy8b350f62009-11-15 23:12:43 +000029062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029063$as_echo "no" >&6; }
29064fi
29065
29066
29067# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29068set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029070$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029071if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029072 $as_echo_n "(cached) " >&6
29073else
29074 case $LPRDelegate in
29075 [\\/]* | ?:[\\/]*)
29076 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
29077 ;;
29078 *)
29079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29080for as_dir in $PATH
29081do
29082 IFS=$as_save_IFS
29083 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029084 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29086 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029088 break 2
29089 fi
29090done
cristy8b350f62009-11-15 23:12:43 +000029091 done
cristy3ed852e2009-09-05 21:47:34 +000029092IFS=$as_save_IFS
29093
29094 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
29095 ;;
29096esac
29097fi
29098LPRDelegate=$ac_cv_path_LPRDelegate
29099if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029101$as_echo "$LPRDelegate" >&6; }
29102else
cristy8b350f62009-11-15 23:12:43 +000029103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029104$as_echo "no" >&6; }
29105fi
29106
29107
29108# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
29109set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029111$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029112if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029113 $as_echo_n "(cached) " >&6
29114else
29115 case $LZWDecodeDelegate in
29116 [\\/]* | ?:[\\/]*)
29117 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
29118 ;;
29119 *)
29120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29121for as_dir in $PATH
29122do
29123 IFS=$as_save_IFS
29124 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029125 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29127 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029129 break 2
29130 fi
29131done
cristy8b350f62009-11-15 23:12:43 +000029132 done
cristy3ed852e2009-09-05 21:47:34 +000029133IFS=$as_save_IFS
29134
29135 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
29136 ;;
29137esac
29138fi
29139LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
29140if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029142$as_echo "$LZWDecodeDelegate" >&6; }
29143else
cristy8b350f62009-11-15 23:12:43 +000029144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029145$as_echo "no" >&6; }
29146fi
29147
29148
29149# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
29150set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029152$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029153if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029154 $as_echo_n "(cached) " >&6
29155else
29156 case $LZWEncodeDelegate in
29157 [\\/]* | ?:[\\/]*)
29158 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
29159 ;;
29160 *)
29161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29162for as_dir in $PATH
29163do
29164 IFS=$as_save_IFS
29165 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029166 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29168 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029170 break 2
29171 fi
29172done
cristy8b350f62009-11-15 23:12:43 +000029173 done
cristy3ed852e2009-09-05 21:47:34 +000029174IFS=$as_save_IFS
29175
29176 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
29177 ;;
29178esac
29179fi
29180LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
29181if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029183$as_echo "$LZWEncodeDelegate" >&6; }
29184else
cristy8b350f62009-11-15 23:12:43 +000029185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029186$as_echo "no" >&6; }
29187fi
29188
29189
29190# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
29191set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029193$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029194if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029195 $as_echo_n "(cached) " >&6
29196else
29197 case $LaunchDelegate in
29198 [\\/]* | ?:[\\/]*)
29199 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
29200 ;;
29201 *)
29202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29203for as_dir in $PATH
29204do
29205 IFS=$as_save_IFS
29206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29209 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029211 break 2
29212 fi
29213done
cristy8b350f62009-11-15 23:12:43 +000029214 done
cristy3ed852e2009-09-05 21:47:34 +000029215IFS=$as_save_IFS
29216
29217 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29218 ;;
29219esac
29220fi
29221LaunchDelegate=$ac_cv_path_LaunchDelegate
29222if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029224$as_echo "$LaunchDelegate" >&6; }
29225else
cristy8b350f62009-11-15 23:12:43 +000029226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029227$as_echo "no" >&6; }
29228fi
29229
29230
29231# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
29232set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029234$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029235if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029236 $as_echo_n "(cached) " >&6
29237else
29238 case $MANDelegate in
29239 [\\/]* | ?:[\\/]*)
29240 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
29241 ;;
29242 *)
29243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29244for as_dir in $PATH
29245do
29246 IFS=$as_save_IFS
29247 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029248 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29250 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029252 break 2
29253 fi
29254done
cristy8b350f62009-11-15 23:12:43 +000029255 done
cristy3ed852e2009-09-05 21:47:34 +000029256IFS=$as_save_IFS
29257
29258 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29259 ;;
29260esac
29261fi
29262MANDelegate=$ac_cv_path_MANDelegate
29263if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029265$as_echo "$MANDelegate" >&6; }
29266else
cristy8b350f62009-11-15 23:12:43 +000029267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029268$as_echo "no" >&6; }
29269fi
29270
29271
29272# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29273set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029275$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029276if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029277 $as_echo_n "(cached) " >&6
29278else
29279 case $MPEGDecodeDelegate in
29280 [\\/]* | ?:[\\/]*)
29281 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29282 ;;
29283 *)
29284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29285for as_dir in $PATH
29286do
29287 IFS=$as_save_IFS
29288 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29291 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029293 break 2
29294 fi
29295done
cristy8b350f62009-11-15 23:12:43 +000029296 done
cristy3ed852e2009-09-05 21:47:34 +000029297IFS=$as_save_IFS
29298
29299 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29300 ;;
29301esac
29302fi
29303MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29304if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029306$as_echo "$MPEGDecodeDelegate" >&6; }
29307else
cristy8b350f62009-11-15 23:12:43 +000029308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029309$as_echo "no" >&6; }
29310fi
29311
29312
29313# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29314set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029316$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029317if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029318 $as_echo_n "(cached) " >&6
29319else
29320 case $MPEGEncodeDelegate in
29321 [\\/]* | ?:[\\/]*)
29322 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
29323 ;;
29324 *)
29325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29326for as_dir in $PATH
29327do
29328 IFS=$as_save_IFS
29329 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29332 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029334 break 2
29335 fi
29336done
cristy8b350f62009-11-15 23:12:43 +000029337 done
cristy3ed852e2009-09-05 21:47:34 +000029338IFS=$as_save_IFS
29339
29340 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
29341 ;;
29342esac
29343fi
29344MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
29345if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029347$as_echo "$MPEGEncodeDelegate" >&6; }
29348else
cristy8b350f62009-11-15 23:12:43 +000029349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029350$as_echo "no" >&6; }
29351fi
29352
29353
29354# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
29355set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029357$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029358if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029359 $as_echo_n "(cached) " >&6
29360else
29361 case $MVDelegate in
29362 [\\/]* | ?:[\\/]*)
29363 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
29364 ;;
29365 *)
29366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29367for as_dir in $PATH
29368do
29369 IFS=$as_save_IFS
29370 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029371 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29373 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029375 break 2
29376 fi
29377done
cristy8b350f62009-11-15 23:12:43 +000029378 done
cristy3ed852e2009-09-05 21:47:34 +000029379IFS=$as_save_IFS
29380
29381 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
29382 ;;
29383esac
29384fi
29385MVDelegate=$ac_cv_path_MVDelegate
29386if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029388$as_echo "$MVDelegate" >&6; }
29389else
cristy8b350f62009-11-15 23:12:43 +000029390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029391$as_echo "no" >&6; }
29392fi
29393
29394
29395# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
29396set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029398$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029399if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029400 $as_echo_n "(cached) " >&6
29401else
29402 case $PCLDelegate in
29403 [\\/]* | ?:[\\/]*)
29404 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
29405 ;;
29406 *)
29407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29408for as_dir in $PATH
29409do
29410 IFS=$as_save_IFS
29411 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029412 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29414 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029416 break 2
29417 fi
29418done
cristy8b350f62009-11-15 23:12:43 +000029419 done
cristy3ed852e2009-09-05 21:47:34 +000029420IFS=$as_save_IFS
29421
29422 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
29423 ;;
29424esac
29425fi
29426PCLDelegate=$ac_cv_path_PCLDelegate
29427if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029429$as_echo "$PCLDelegate" >&6; }
29430else
cristy8b350f62009-11-15 23:12:43 +000029431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029432$as_echo "no" >&6; }
29433fi
29434
29435
29436# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
29437set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029439$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029440if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029441 $as_echo_n "(cached) " >&6
29442else
29443 case $PGPDecodeDelegate in
29444 [\\/]* | ?:[\\/]*)
29445 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
29446 ;;
29447 *)
29448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29449for as_dir in $PATH
29450do
29451 IFS=$as_save_IFS
29452 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029453 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29455 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029457 break 2
29458 fi
29459done
cristy8b350f62009-11-15 23:12:43 +000029460 done
cristy3ed852e2009-09-05 21:47:34 +000029461IFS=$as_save_IFS
29462
29463 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
29464 ;;
29465esac
29466fi
29467PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
29468if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029470$as_echo "$PGPDecodeDelegate" >&6; }
29471else
cristy8b350f62009-11-15 23:12:43 +000029472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029473$as_echo "no" >&6; }
29474fi
29475
29476
29477# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
29478set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029480$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029481if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029482 $as_echo_n "(cached) " >&6
29483else
29484 case $POVDelegate in
29485 [\\/]* | ?:[\\/]*)
29486 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
29487 ;;
29488 *)
29489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29490for as_dir in $PATH
29491do
29492 IFS=$as_save_IFS
29493 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029494 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29496 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029498 break 2
29499 fi
29500done
cristy8b350f62009-11-15 23:12:43 +000029501 done
cristy3ed852e2009-09-05 21:47:34 +000029502IFS=$as_save_IFS
29503
29504 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
29505 ;;
29506esac
29507fi
29508POVDelegate=$ac_cv_path_POVDelegate
29509if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029511$as_echo "$POVDelegate" >&6; }
29512else
cristy8b350f62009-11-15 23:12:43 +000029513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029514$as_echo "no" >&6; }
29515fi
29516
29517
29518for ac_prog in gsx gsc "$PSDelegateDefault"
29519do
29520 # Extract the first word of "$ac_prog", so it can be a program name with args.
29521set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029523$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029524if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029525 $as_echo_n "(cached) " >&6
29526else
29527 case $PSDelegate in
29528 [\\/]* | ?:[\\/]*)
29529 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
29530 ;;
29531 *)
29532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29533for as_dir in $PATH
29534do
29535 IFS=$as_save_IFS
29536 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029537 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29539 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029541 break 2
29542 fi
29543done
cristy8b350f62009-11-15 23:12:43 +000029544 done
cristy3ed852e2009-09-05 21:47:34 +000029545IFS=$as_save_IFS
29546
29547 ;;
29548esac
29549fi
29550PSDelegate=$ac_cv_path_PSDelegate
29551if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029553$as_echo "$PSDelegate" >&6; }
29554else
cristy8b350f62009-11-15 23:12:43 +000029555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029556$as_echo "no" >&6; }
29557fi
29558
29559
29560 test -n "$PSDelegate" && break
29561done
29562test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
29563
29564# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
29565set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029567$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029568if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029569 $as_echo_n "(cached) " >&6
29570else
29571 case $RLEEncodeDelegate in
29572 [\\/]* | ?:[\\/]*)
29573 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
29574 ;;
29575 *)
29576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29577for as_dir in $PATH
29578do
29579 IFS=$as_save_IFS
29580 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029581 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29583 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029585 break 2
29586 fi
29587done
cristy8b350f62009-11-15 23:12:43 +000029588 done
cristy3ed852e2009-09-05 21:47:34 +000029589IFS=$as_save_IFS
29590
29591 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
29592 ;;
29593esac
29594fi
29595RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
29596if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029598$as_echo "$RLEEncodeDelegate" >&6; }
29599else
cristy8b350f62009-11-15 23:12:43 +000029600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029601$as_echo "no" >&6; }
29602fi
29603
29604
29605# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
29606set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029608$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029609if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029610 $as_echo_n "(cached) " >&6
29611else
29612 case $RMDelegate in
29613 [\\/]* | ?:[\\/]*)
29614 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
29615 ;;
29616 *)
29617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29618for as_dir in $PATH
29619do
29620 IFS=$as_save_IFS
29621 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029622 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29624 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029626 break 2
29627 fi
29628done
cristy8b350f62009-11-15 23:12:43 +000029629 done
cristy3ed852e2009-09-05 21:47:34 +000029630IFS=$as_save_IFS
29631
29632 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
29633 ;;
29634esac
29635fi
29636RMDelegate=$ac_cv_path_RMDelegate
29637if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029639$as_echo "$RMDelegate" >&6; }
29640else
cristy8b350f62009-11-15 23:12:43 +000029641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029642$as_echo "no" >&6; }
29643fi
29644
29645
29646# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
29647set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029649$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029650if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029651 $as_echo_n "(cached) " >&6
29652else
29653 case $SCANDecodeDelegate in
29654 [\\/]* | ?:[\\/]*)
29655 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
29656 ;;
29657 *)
29658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29659for as_dir in $PATH
29660do
29661 IFS=$as_save_IFS
29662 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029663 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29665 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029667 break 2
29668 fi
29669done
cristy8b350f62009-11-15 23:12:43 +000029670 done
cristy3ed852e2009-09-05 21:47:34 +000029671IFS=$as_save_IFS
29672
29673 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
29674 ;;
29675esac
29676fi
29677SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
29678if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029680$as_echo "$SCANDecodeDelegate" >&6; }
29681else
cristy8b350f62009-11-15 23:12:43 +000029682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029683$as_echo "no" >&6; }
29684fi
29685
29686
29687# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
29688set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029690$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029691if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029692 $as_echo_n "(cached) " >&6
29693else
29694 case $TXTDelegate in
29695 [\\/]* | ?:[\\/]*)
29696 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
29697 ;;
29698 *)
29699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29700for as_dir in $PATH
29701do
29702 IFS=$as_save_IFS
29703 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029704 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29706 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029708 break 2
29709 fi
29710done
cristy8b350f62009-11-15 23:12:43 +000029711 done
cristy3ed852e2009-09-05 21:47:34 +000029712IFS=$as_save_IFS
29713
29714 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
29715 ;;
29716esac
29717fi
29718TXTDelegate=$ac_cv_path_TXTDelegate
29719if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029721$as_echo "$TXTDelegate" >&6; }
29722else
cristy8b350f62009-11-15 23:12:43 +000029723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029724$as_echo "no" >&6; }
29725fi
29726
29727
29728# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
29729set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029731$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029732if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029733 $as_echo_n "(cached) " >&6
29734else
29735 case $WMFDecodeDelegate in
29736 [\\/]* | ?:[\\/]*)
29737 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
29738 ;;
29739 *)
29740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29741for as_dir in $PATH
29742do
29743 IFS=$as_save_IFS
29744 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029745 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29747 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029749 break 2
29750 fi
29751done
cristy8b350f62009-11-15 23:12:43 +000029752 done
cristy3ed852e2009-09-05 21:47:34 +000029753IFS=$as_save_IFS
29754
29755 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
29756 ;;
29757esac
29758fi
29759WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
29760if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029762$as_echo "$WMFDecodeDelegate" >&6; }
29763else
cristy8b350f62009-11-15 23:12:43 +000029764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029765$as_echo "no" >&6; }
29766fi
29767
29768
29769# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
29770set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029772$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029773if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029774 $as_echo_n "(cached) " >&6
29775else
29776 case $WWWDecodeDelegate in
29777 [\\/]* | ?:[\\/]*)
29778 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
29779 ;;
29780 *)
29781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29782for as_dir in $PATH
29783do
29784 IFS=$as_save_IFS
29785 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029786 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29788 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029790 break 2
29791 fi
29792done
cristy8b350f62009-11-15 23:12:43 +000029793 done
cristy3ed852e2009-09-05 21:47:34 +000029794IFS=$as_save_IFS
29795
29796 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
29797 ;;
29798esac
29799fi
29800WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
29801if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029803$as_echo "$WWWDecodeDelegate" >&6; }
29804else
cristy8b350f62009-11-15 23:12:43 +000029805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029806$as_echo "no" >&6; }
29807fi
29808
29809
29810# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
29811set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029813$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029814if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029815 $as_echo_n "(cached) " >&6
29816else
29817 case $XPSDelegate in
29818 [\\/]* | ?:[\\/]*)
29819 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
29820 ;;
29821 *)
29822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29823for as_dir in $PATH
29824do
29825 IFS=$as_save_IFS
29826 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029827 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29829 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029831 break 2
29832 fi
29833done
cristy8b350f62009-11-15 23:12:43 +000029834 done
cristy3ed852e2009-09-05 21:47:34 +000029835IFS=$as_save_IFS
29836
29837 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
29838 ;;
29839esac
29840fi
29841XPSDelegate=$ac_cv_path_XPSDelegate
29842if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029844$as_echo "$XPSDelegate" >&6; }
29845else
cristy8b350f62009-11-15 23:12:43 +000029846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029847$as_echo "no" >&6; }
29848fi
29849
29850
29851# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
29852set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029854$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029855if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029856 $as_echo_n "(cached) " >&6
29857else
29858 case $ZipDelegate in
29859 [\\/]* | ?:[\\/]*)
29860 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
29861 ;;
29862 *)
29863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29864for as_dir in $PATH
29865do
29866 IFS=$as_save_IFS
29867 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029868 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29870 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029872 break 2
29873 fi
29874done
cristy8b350f62009-11-15 23:12:43 +000029875 done
cristy3ed852e2009-09-05 21:47:34 +000029876IFS=$as_save_IFS
29877
29878 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
29879 ;;
29880esac
29881fi
29882ZipDelegate=$ac_cv_path_ZipDelegate
29883if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029885$as_echo "$ZipDelegate" >&6; }
29886else
cristy8b350f62009-11-15 23:12:43 +000029887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029888$as_echo "no" >&6; }
29889fi
29890
29891
29892
29893# Prefer lpr to lp; lp needs options tacked on.
29894if test "$LPRDelegate" != no; then
29895 PrintDelegate="$LPRDelegate"
29896else
29897 PrintDelegate="$LPDelegate -c -s"
29898fi
29899
29900
29901# Installed ImageMagick utiltity paths
29902ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
29903DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
29904MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
29905
29906# Set delegate booleans
29907have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
29908have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
29909have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
29910have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
29911have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
29912have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
29913have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
29914have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
29915have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
29916have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
29917have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
29918
29919#
29920# Test for font directories
29921#
29922type_include_files=''
29923
29924# Windows
29925windows_font_dir=''
29926if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
29927 windows_font_dir="${with_windows_font_dir}/"
29928fi
29929if test -n "$windows_font_dir"; then
29930 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
29931 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
29932 fi
29933 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
29934 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
29935 fi
29936 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
29937 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
29938 fi
29939fi
29940if test -n "$windows_font_dir"; then
29941 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
29942fi
29943
29944
29945# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000029946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000029947$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
29948ghostscript_font_dir=''
29949if test "${with_gs_font_dir}" != 'default'; then
29950 ghostscript_font_dir="${with_gs_font_dir}/"
29951else
29952 if test "${native_win32_build}" = 'yes'; then
29953 # Native Windows Build
29954 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
29955 if test -f "${font_dir}a010013l.pfb"; then
29956 ghostscript_font_dir="$font_dir"
29957 break 1
29958 fi
29959 done
29960 if test "${PSDelegate}" != 'gswin32c'; then
29961 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
29962 fi
29963 else
29964 # Linux / Mac OS X / Unix Build
29965 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
29966 if test -f "${font_dir}a010013l.pfb"; then
29967 ghostscript_font_dir="${font_dir}"
29968 break 1
29969 fi
29970 done
29971 if test "${ghostscript_font_dir}x" = 'x'; then
29972 if test "$PSDelegate" != 'gs'; then
29973 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
29974 fi
29975 fi
29976 fi
29977fi
29978if test "${ghostscript_font_dir}x" != 'x'; then
29979 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000029980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000029981$as_echo "$ghostscript_font_dir" >&6; }
29982else
cristy8b350f62009-11-15 23:12:43 +000029983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000029984$as_echo "not found!" >&6; };
29985fi
29986
29987case "${build_os}" in
29988 mingw* )
29989 PSDelegate=`$WinPathScript "$PSDelegate" 1`
29990 ;;
29991esac
29992
29993
29994
29995#
29996# Handle case where user doesn't want frozen paths
29997#
29998if test "$with_frozenpaths" != 'yes'; then
29999 # Re-set delegate definitions to default (no paths)
30000 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
30001 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
30002 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
30003 BZIPDelegate="$BZIPDelegateDefault"
30004 BrowseDelegate="$BrowseDelegateDefault"
30005 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
30006 CatDelegate="$CatDelegateDefault"
30007 ConvertDelegate="$ConvertDelegateDefault"
30008 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
30009 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
30010 EchoDelegate="$EchoDelegateDefault"
30011 EditorDelegate="$EditorDelegateDefault"
30012 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
30013 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
30014 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
30015 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
30016 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
30017 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
30018 LPDelegate="$LPDelegateDefault"
30019 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
30020 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
30021 LaunchDelegate="$LaunchDelegateDefault"
30022 MANDelegate="$MANDelegateDefault"
30023 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
30024 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
30025 MVDelegate="$MVDelegateDefault"
30026 MogrifyDelegate="$MogrifyDelegateDefault"
30027 PCLDelegate="$PCLDelegateDefault"
30028 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
30029 POVDelegate="$POVDelegateDefault"
30030 PSDelegate="$PSDelegateDefault"
30031 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
30032 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
30033 RMDelegate="$RMDelegateDefault"
30034 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
30035 ShowImageDelegate="$ShowImageDelegateDefault"
30036 TXTDelegate="$TXTDelegateDefault"
30037 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
30038 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
30039 XPSDelegate="$XPSDelegateDefault"
30040 ZipDelegate="$ZipDelegateDefault"
30041fi
30042
30043# Delegate substitutions
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
30072
30073
30074
30075
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085
30086#
30087# RPM support.
30088#
30089RPM=''
30090for ac_prog in gnutar gtar tar
30091do
30092 # Extract the first word of "$ac_prog", so it can be a program name with args.
30093set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030095$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030096if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030097 $as_echo_n "(cached) " >&6
30098else
30099 if test -n "$TAR"; then
30100 ac_cv_prog_TAR="$TAR" # Let the user override the test.
30101else
30102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30103for as_dir in $PATH
30104do
30105 IFS=$as_save_IFS
30106 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030107 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30109 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030111 break 2
30112 fi
30113done
cristy8b350f62009-11-15 23:12:43 +000030114 done
cristy3ed852e2009-09-05 21:47:34 +000030115IFS=$as_save_IFS
30116
30117fi
30118fi
30119TAR=$ac_cv_prog_TAR
30120if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000030121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000030122$as_echo "$TAR" >&6; }
30123else
cristy8b350f62009-11-15 23:12:43 +000030124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030125$as_echo "no" >&6; }
30126fi
30127
30128
30129 test -n "$TAR" && break
30130done
30131
30132for ac_prog in perl
30133do
30134 # Extract the first word of "$ac_prog", so it can be a program name with args.
30135set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030137$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030138if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030139 $as_echo_n "(cached) " >&6
30140else
30141 if test -n "$PERL"; then
30142 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30143else
30144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30145for as_dir in $PATH
30146do
30147 IFS=$as_save_IFS
30148 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030149 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30151 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030153 break 2
30154 fi
30155done
cristy8b350f62009-11-15 23:12:43 +000030156 done
cristy3ed852e2009-09-05 21:47:34 +000030157IFS=$as_save_IFS
30158
30159fi
30160fi
30161PERL=$ac_cv_prog_PERL
30162if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030164$as_echo "$PERL" >&6; }
30165else
cristy8b350f62009-11-15 23:12:43 +000030166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030167$as_echo "no" >&6; }
30168fi
30169
30170
30171 test -n "$PERL" && break
30172done
30173
30174for ac_prog in rpmbuild rpm
30175do
30176 # Extract the first word of "$ac_prog", so it can be a program name with args.
30177set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030179$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030180if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030181 $as_echo_n "(cached) " >&6
30182else
30183 if test -n "$RPM"; then
30184 ac_cv_prog_RPM="$RPM" # Let the user override the test.
30185else
30186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30187for as_dir in $PATH
30188do
30189 IFS=$as_save_IFS
30190 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030191 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30193 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030195 break 2
30196 fi
30197done
cristy8b350f62009-11-15 23:12:43 +000030198 done
cristy3ed852e2009-09-05 21:47:34 +000030199IFS=$as_save_IFS
30200
30201fi
30202fi
30203RPM=$ac_cv_prog_RPM
30204if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000030205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000030206$as_echo "$RPM" >&6; }
30207else
cristy8b350f62009-11-15 23:12:43 +000030208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030209$as_echo "no" >&6; }
30210fi
30211
30212
30213 test -n "$RPM" && break
30214done
30215
30216
30217ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30218
30219
30220AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30221
30222
30223AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30224
30225
30226AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30227
30228
30229 if test "x$RPM" != "x" ; then
30230 RPM_DELEGATE_TRUE=
30231 RPM_DELEGATE_FALSE='#'
30232else
30233 RPM_DELEGATE_TRUE='#'
30234 RPM_DELEGATE_FALSE=
30235fi
30236
30237
30238#
30239# 7ZIP support (http://p7zip.sourceforge.net/)
30240#
30241P7ZIP=''
30242for ac_prog in 7za
30243do
30244 # Extract the first word of "$ac_prog", so it can be a program name with args.
30245set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030247$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030248if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030249 $as_echo_n "(cached) " >&6
30250else
30251 if test -n "$P7ZIP"; then
30252 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
30253else
30254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30255for as_dir in $PATH
30256do
30257 IFS=$as_save_IFS
30258 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030259 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30261 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030263 break 2
30264 fi
30265done
cristy8b350f62009-11-15 23:12:43 +000030266 done
cristy3ed852e2009-09-05 21:47:34 +000030267IFS=$as_save_IFS
30268
30269fi
30270fi
30271P7ZIP=$ac_cv_prog_P7ZIP
30272if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030274$as_echo "$P7ZIP" >&6; }
30275else
cristy8b350f62009-11-15 23:12:43 +000030276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030277$as_echo "no" >&6; }
30278fi
30279
30280
30281 test -n "$P7ZIP" && break
30282done
30283
30284
30285 if test "x$P7ZIP" != "x" ; then
30286 P7ZIP_DELEGATE_TRUE=
30287 P7ZIP_DELEGATE_FALSE='#'
30288else
30289 P7ZIP_DELEGATE_TRUE='#'
30290 P7ZIP_DELEGATE_FALSE=
30291fi
30292
30293
30294#
30295# ZIP support (http://www.info-zip.org/Zip.html)
30296#
30297ZIP=''
30298for ac_prog in zip
30299do
30300 # Extract the first word of "$ac_prog", so it can be a program name with args.
30301set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030303$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030304if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030305 $as_echo_n "(cached) " >&6
30306else
30307 if test -n "$ZIP"; then
30308 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
30309else
30310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30311for as_dir in $PATH
30312do
30313 IFS=$as_save_IFS
30314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30317 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030319 break 2
30320 fi
30321done
cristy8b350f62009-11-15 23:12:43 +000030322 done
cristy3ed852e2009-09-05 21:47:34 +000030323IFS=$as_save_IFS
30324
30325fi
30326fi
30327ZIP=$ac_cv_prog_ZIP
30328if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030330$as_echo "$ZIP" >&6; }
30331else
cristy8b350f62009-11-15 23:12:43 +000030332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030333$as_echo "no" >&6; }
30334fi
30335
30336
30337 test -n "$ZIP" && break
30338done
30339
30340
30341 if test "x$ZIP" != "x" ; then
30342 ZIP_DELEGATE_TRUE=
30343 ZIP_DELEGATE_FALSE='#'
30344else
30345 ZIP_DELEGATE_TRUE='#'
30346 ZIP_DELEGATE_FALSE=
30347fi
30348
30349
30350#
30351# GhostPCL related configuration.
30352#
30353PCLColorDevice=ppmraw
30354PCLCMYKDevice=bmpsep8
30355PCLMonoDevice=pbmraw
30356if test -z "$PCLVersion"; then
30357 PCLVersion='unknown'
30358fi
30359if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030361$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030363$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030365$as_echo "" >&6; }
30366 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000030367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030368$as_echo_n "checking for pcl color device... " >&6; }
30369 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30370 :
30371 else
30372 PCLColorDevice=ppmraw
30373 fi
cristy8b350f62009-11-15 23:12:43 +000030374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030375$as_echo "$PCLColorDevice" >&6; }
30376
30377 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030379$as_echo_n "checking for pcl CMYK device... " >&6; }
30380 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30381 :
30382 else
30383 PCLCMYKDevice=$PCLColorDevice
30384 fi
cristy8b350f62009-11-15 23:12:43 +000030385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030386$as_echo "$PCLCMYKDevice" >&6; }
30387
30388 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030390$as_echo_n "checking for pcl mono device... " >&6; }
30391 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30392 :
30393 else
30394 PCLMonoDevice=$PCLColorDevice
30395 fi
cristy8b350f62009-11-15 23:12:43 +000030396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030397$as_echo "$PCLMonoDevice" >&6; }
30398fi
30399
30400
30401
30402
30403
30404
30405#
30406# GhostXPS related configuration.
30407#
30408XPSColorDevice=ppmraw
30409XPSCMYKDevice=bmpsep8
30410XPSMonoDevice=pbmraw
30411if test -z "$XPSVersion"; then
30412 XPSVersion='unknown'
30413fi
30414if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030416$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000030418$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030420$as_echo "" >&6; }
30421 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030423$as_echo_n "checking for xps color device... " >&6; }
30424 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30425 :
30426 else
30427 XPSColorDevice=ppmraw
30428 fi
cristy8b350f62009-11-15 23:12:43 +000030429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030430$as_echo "$XPSColorDevice" >&6; }
30431
30432 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030434$as_echo_n "checking for xps CMYK device... " >&6; }
30435 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30436 :
30437 else
30438 XPSCMYKDevice=$XPSColorDevice
30439 fi
cristy8b350f62009-11-15 23:12:43 +000030440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030441$as_echo "$XPSCMYKDevice" >&6; }
30442
30443 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030445$as_echo_n "checking for xps mono device... " >&6; }
30446 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30447 :
30448 else
30449 XPSMonoDevice=$XPSColorDevice
30450 fi
cristy8b350f62009-11-15 23:12:43 +000030451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030452$as_echo "$XPSMonoDevice" >&6; }
30453fi
30454
30455
30456
30457
30458
30459
30460#
30461# Ghostscript related configuration.
30462#
30463if test "$have_png" = 'yes'; then
30464 GSAlphaDevice=pngalpha
30465else
30466 GSAlphaDevice=pnmraw
30467fi
30468GSColorDevice=pnmraw
30469GSCMYKDevice=pam
30470GSMonoDevice=pbmraw
30471GSPDFDevice=pdfwrite
30472GSPSDevice=pswrite
30473GSEPSDevice=epswrite
30474GSVersion='unknown'
30475if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030477$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000030479$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030481$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000030483$as_echo_n "checking for Ghostscript version... " >&6; }
30484 if GSVersion=`$PSDelegate --version`; then
30485 :
30486 else
30487 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
30488 fi
cristy8b350f62009-11-15 23:12:43 +000030489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000030490$as_echo "$GSVersion" >&6; }
30491
30492 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000030493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030494$as_echo_n "checking for gs alpha device... " >&6; }
30495 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30496 :
30497 else
30498 GSAlphaDevice=pnmraw
30499 fi
cristy8b350f62009-11-15 23:12:43 +000030500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030501$as_echo "$GSAlphaDevice" >&6; }
30502
30503 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030505$as_echo_n "checking for gs color device... " >&6; }
30506 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30507 :
30508 else
30509 GSColorDevice=pnmraw
30510 fi
cristy8b350f62009-11-15 23:12:43 +000030511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030512$as_echo "$GSColorDevice" >&6; }
30513
30514 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030516$as_echo_n "checking for gs CMYK device... " >&6; }
30517 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30518 :
30519 else
30520 GSCMYKDevice=bmpsep8
30521 fi
cristy8b350f62009-11-15 23:12:43 +000030522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030523$as_echo "$GSCMYKDevice" >&6; }
30524
30525 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030527$as_echo_n "checking for gs mono device... " >&6; }
30528 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30529 :
30530 else
30531 GSMonoDevice=$GSColorDevice
30532 fi
cristy8b350f62009-11-15 23:12:43 +000030533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030534$as_echo "$GSMonoDevice" >&6; }
30535
30536 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000030537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030538$as_echo_n "checking for gs PDF writing device... " >&6; }
30539 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30540 :
30541 else
30542 GSPDFDevice=nodevice
30543 fi
cristy8b350f62009-11-15 23:12:43 +000030544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030545$as_echo "$GSPDFDevice" >&6; }
30546
30547 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000030548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030549$as_echo_n "checking for gs PS writing device... " >&6; }
30550 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30551 :
30552 else
30553 GSPSDevice=nodevice
30554 fi
cristy8b350f62009-11-15 23:12:43 +000030555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030556$as_echo "$GSPSDevice" >&6; }
30557
30558 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000030559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030560$as_echo_n "checking for gs EPS writing device... " >&6; }
30561 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30562 :
30563 else
30564 GSEPSDevice=nodevice
30565 fi
cristy8b350f62009-11-15 23:12:43 +000030566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030567$as_echo "$GSEPSDevice" >&6; }
30568fi
30569
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579#
30580# PerlMagick-related configuration
30581#
30582
30583# Look for PERL if PerlMagick requested
30584# If name/path of desired PERL interpreter is specified, look for that one first
30585have_perl='no'
30586if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030588$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030590$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030592$as_echo "" >&6; }
30593 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030595$as_echo_n "checking for perl... " >&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 ac_cv_path_PERL="$with_perl"
30600fi
cristy8b350f62009-11-15 23:12:43 +000030601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030602$as_echo "$ac_cv_path_PERL" >&6; };
30603 PERL=$ac_cv_path_PERL
30604 have_perl="$ac_cv_path_PERL"
30605 else
30606 for ac_prog in perl perl5
30607do
30608 # Extract the first word of "$ac_prog", so it can be a program name with args.
30609set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030611$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030612if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030613 $as_echo_n "(cached) " >&6
30614else
30615 case $PERL in
30616 [\\/]* | ?:[\\/]*)
30617 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30618 ;;
30619 *)
30620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30621for as_dir in $PATH
30622do
30623 IFS=$as_save_IFS
30624 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030625 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30627 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030629 break 2
30630 fi
30631done
cristy8b350f62009-11-15 23:12:43 +000030632 done
cristy3ed852e2009-09-05 21:47:34 +000030633IFS=$as_save_IFS
30634
30635 ;;
30636esac
30637fi
30638PERL=$ac_cv_path_PERL
30639if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030641$as_echo "$PERL" >&6; }
30642else
cristy8b350f62009-11-15 23:12:43 +000030643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030644$as_echo "no" >&6; }
30645fi
30646
30647
30648 test -n "$PERL" && break
30649done
30650 if test "$ac_cv_path_PERL"; then
30651 have_perl="$ac_cv_path_PERL"
30652 fi
30653 fi
30654fi
30655
30656with_perl_static='no'
30657with_perl_dynamic='no'
30658if test "$have_perl" != 'no'; then
30659 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
30660 with_perl_static='yes'
30661 fi
30662 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
30663 with_perl_dynamic='yes'
30664 fi
30665 # Is PERL's MakeMaker new enough to support DESTDIR?
30666 # Make sure we have perl
30667if test -z "$PERL"; then
30668# Extract the first word of "perl", so it can be a program name with args.
30669set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030671$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030672if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030673 $as_echo_n "(cached) " >&6
30674else
30675 if test -n "$PERL"; then
30676 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30677else
30678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30679for as_dir in $PATH
30680do
30681 IFS=$as_save_IFS
30682 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030683 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30685 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000030686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030687 break 2
30688 fi
30689done
cristy8b350f62009-11-15 23:12:43 +000030690 done
cristy3ed852e2009-09-05 21:47:34 +000030691IFS=$as_save_IFS
30692
30693fi
30694fi
30695PERL=$ac_cv_prog_PERL
30696if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030698$as_echo "$PERL" >&6; }
30699else
cristy8b350f62009-11-15 23:12:43 +000030700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030701$as_echo "no" >&6; }
30702fi
30703
30704
30705fi
30706
30707# Check if version of Perl is sufficient
30708ac_perl_version="5.8.1"
30709
30710if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000030711 { $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 +000030712$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
30713 # NB: It would be nice to log the error if there is one, but we cannot rely
30714 # on autoconf internals
30715 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
30716 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000030717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030718$as_echo "no" >&6; };
30719 PERL_SUPPORTS_DESTDIR='no'
30720 else
cristy8b350f62009-11-15 23:12:43 +000030721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030722$as_echo "ok" >&6; };
30723 PERL_SUPPORTS_DESTDIR='yes'
30724 fi
30725else
cristy8b350f62009-11-15 23:12:43 +000030726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030727$as_echo "$as_me: WARNING: could not find perl" >&2;}
30728fi
30729
30730fi
30731 if test "$have_perl" != 'no'; then
30732 WITH_PERL_TRUE=
30733 WITH_PERL_FALSE='#'
30734else
30735 WITH_PERL_TRUE='#'
30736 WITH_PERL_FALSE=
30737fi
30738
30739 if test $with_perl_static = 'yes'; then
30740 WITH_PERL_STATIC_TRUE=
30741 WITH_PERL_STATIC_FALSE='#'
30742else
30743 WITH_PERL_STATIC_TRUE='#'
30744 WITH_PERL_STATIC_FALSE=
30745fi
30746
30747 if test $with_perl_dynamic = 'yes'; then
30748 WITH_PERL_DYNAMIC_TRUE=
30749 WITH_PERL_DYNAMIC_FALSE='#'
30750else
30751 WITH_PERL_DYNAMIC_TRUE='#'
30752 WITH_PERL_DYNAMIC_FALSE=
30753fi
30754
30755
30756
30757# Determine path to pick up MagickCore library from for use with building PerlMagick
30758MAGICKCORE_PATH="${LIB_DIR}"
30759if test $with_perl_static = 'yes'; then
30760 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
30761 libtool_objdir=$objdir
30762
30763 # Linker search path to library, followed by -lMagickCore
30764 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
30765fi
30766
30767
30768# Create a simple string containing format names for all delegate libraries
30769DELEGATES=''
30770if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
30771if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
30772if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
30773if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
30774if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
30775if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
30776if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
30777if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
30778if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
30779if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
30780if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
30781if test "$have_jpeg" = 'yes'; then
30782 DELEGATES="$DELEGATES jpeg";
30783 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
30784fi
30785if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
30786if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
30787if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
30788if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
30789if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
30790if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
30791if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
30792if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
30793if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
30794if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
30795if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
30796if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
30797
30798
30799
30800#
30801# Handle special compiler flags
30802#
30803
30804# Add '-p' if prof source profiling support enabled
30805if test "$enable_prof" = 'yes'; then
30806 CFLAGS="-p $CFLAGS"
30807 CXXFLAGS="-p $CXXFLAGS"
30808 LDFLAGS="-p $LDFLAGS"
30809fi
30810
30811# Add '-pg' if gprof source profiling support enabled
30812if test "$enable_gprof" = 'yes'; then
30813 CFLAGS="-pg $CFLAGS"
30814 CXXFLAGS="-pg $CXXFLAGS"
30815 LDFLAGS="-pg $LDFLAGS"
30816fi
30817
30818# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
30819# This is a gcc-specific feature
30820if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030822$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030823if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030824 $as_echo_n "(cached) " >&6
30825else
30826 ac_check_lib_save_LIBS=$LIBS
30827LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030829/* end confdefs.h. */
30830
30831/* Override any GCC internal prototype to avoid an error.
30832 Use char because int might match the return type of a GCC
30833 builtin and then its argument prototype would still apply. */
30834#ifdef __cplusplus
30835extern "C"
30836#endif
30837char _gcov_init ();
30838int
30839main ()
30840{
30841return _gcov_init ();
30842 ;
30843 return 0;
30844}
30845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030846if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030847 ac_cv_lib_gcov__gcov_init=yes
30848else
cristy8b350f62009-11-15 23:12:43 +000030849 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030850fi
cristy8b350f62009-11-15 23:12:43 +000030851rm -f core conftest.err conftest.$ac_objext \
30852 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030853LIBS=$ac_check_lib_save_LIBS
30854fi
cristy8b350f62009-11-15 23:12:43 +000030855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030856$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030857if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030858 cat >>confdefs.h <<_ACEOF
30859#define HAVE_LIBGCOV 1
30860_ACEOF
30861
30862 LIBS="-lgcov $LIBS"
30863
30864fi
30865
cristy8b350f62009-11-15 23:12:43 +000030866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030867$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030868if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030869 $as_echo_n "(cached) " >&6
30870else
30871 ac_check_lib_save_LIBS=$LIBS
30872LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030874/* end confdefs.h. */
30875
30876/* Override any GCC internal prototype to avoid an error.
30877 Use char because int might match the return type of a GCC
30878 builtin and then its argument prototype would still apply. */
30879#ifdef __cplusplus
30880extern "C"
30881#endif
30882char __gcov_init ();
30883int
30884main ()
30885{
30886return __gcov_init ();
30887 ;
30888 return 0;
30889}
30890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030891if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030892 ac_cv_lib_gcov___gcov_init=yes
30893else
cristy8b350f62009-11-15 23:12:43 +000030894 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030895fi
cristy8b350f62009-11-15 23:12:43 +000030896rm -f core conftest.err conftest.$ac_objext \
30897 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030898LIBS=$ac_check_lib_save_LIBS
30899fi
cristy8b350f62009-11-15 23:12:43 +000030900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030901$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030902if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030903 cat >>confdefs.h <<_ACEOF
30904#define HAVE_LIBGCOV 1
30905_ACEOF
30906
30907 LIBS="-lgcov $LIBS"
30908
30909fi
30910
30911 case "$target_os" in
30912 darwin*)
30913 OSX_GCOV_LDFLAG="-Wl,-single_module"
30914 ;;
30915 *)
30916 OSX_GCOV_LDFLAG=""
30917 ;;
30918 esac
30919
30920 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
30921 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
30922 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
30923fi
30924
30925#
30926# Build library dependency list for libMagickCore
30927#
30928
30929MAGICK_LIBLTDL='' # Libltdl for build
30930MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
30931MAGICK_LTDLDEPS='' # extra libltdl dependencies
30932if test "$with_ltdl" != 'no'
30933then
30934 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
30935 MAGICK_API_LIBLTDL='-lltdl'
30936 fi
30937 MAGICK_LIBLTDL=${LIBLTDL}
30938 MAGICK_LTDLDEPS=${LTDLDEPS}
30939fi
30940
30941
30942
30943if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000030944 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 +000030945else
cristy2e8b51d2009-10-17 18:26:15 +000030946 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 +000030947fi
30948
30949
30950#
30951# Remove extraneous spaces from output variables (asthetic)
30952#
30953X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
30954X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
30955X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
30956X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
30957
30958CC=`echo $CC | sed -e 's/ */ /g'`
30959CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
30960CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
30961CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
30962DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
30963DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
30964LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
30965TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30966MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
30967#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30968
30969# Pass only user-provided LIBS as "global" libraries
30970LIBS=$USER_LIBS
30971
30972#AC_SUBST(CPPFLAGS)
30973
30974#AC_SUBST(LDFLAGS)
30975#AC_SUBST(X_PRE_LIBS)
30976#AC_SUBST(X_LIBS)
30977#AC_SUBST(X_EXTRA_LIBS)
30978
30979MAGICK_CFLAGS=$CFLAGS
30980MAGICK_CXXFLAGS="$CXXFLAGS"
30981MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
30982MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
30983MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
30984MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
30985
30986
30987
30988
30989
30990
30991
30992
30993# Set configured scripts to executable.
30994ac_config_commands="$ac_config_commands default"
30995
30996ac_config_commands="$ac_config_commands MagickCore-config.in"
30997
30998ac_config_commands="$ac_config_commands Magick-config.in"
30999
31000ac_config_commands="$ac_config_commands MagickWand-config.in"
31001
31002ac_config_commands="$ac_config_commands Wand-config.in"
31003
31004ac_config_commands="$ac_config_commands Magick++-config.in"
31005
31006ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
31007
31008
cristy8b350f62009-11-15 23:12:43 +000031009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031010$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000031012$as_echo "Update ImageMagick configuration" >&6; }
31013cat >confcache <<\_ACEOF
31014# This file is a shell script that caches the results of configure
31015# tests run on this system so they can be shared between configure
31016# scripts and configure runs, see configure's option --config-cache.
31017# It is not useful on other systems. If it contains results you don't
31018# want to keep, you may remove or edit it.
31019#
31020# config.status only pays attention to the cache file if you give it
31021# the --recheck option to rerun configure.
31022#
31023# `ac_cv_env_foo' variables (set or unset) will be overridden when
31024# loading this file, other *unset* `ac_cv_foo' will be assigned the
31025# following values.
31026
31027_ACEOF
31028
31029# The following way of writing the cache mishandles newlines in values,
31030# but we know of no workaround that is simple, portable, and efficient.
31031# So, we kill variables containing newlines.
31032# Ultrix sh set writes to stderr and can't be redirected directly,
31033# and sets the high bit in the cache file unless we assign to the vars.
31034(
31035 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31036 eval ac_val=\$$ac_var
31037 case $ac_val in #(
31038 *${as_nl}*)
31039 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000031040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000031041$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31042 esac
31043 case $ac_var in #(
31044 _ | IFS | as_nl) ;; #(
31045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000031046 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000031047 esac ;;
31048 esac
31049 done
31050
31051 (set) 2>&1 |
31052 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31053 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000031054 # `set' does not quote correctly, so add quotes: double-quote
31055 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000031056 sed -n \
31057 "s/'/'\\\\''/g;
31058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31059 ;; #(
31060 *)
31061 # `set' quotes correctly as required by POSIX, so do not add quotes.
31062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31063 ;;
31064 esac |
31065 sort
31066) |
31067 sed '
31068 /^ac_cv_env_/b end
31069 t clear
31070 :clear
31071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31072 t end
31073 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31074 :end' >>confcache
31075if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31076 if test -w "$cache_file"; then
31077 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000031078 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031079$as_echo "$as_me: updating cache $cache_file" >&6;}
31080 cat confcache >$cache_file
31081 else
cristy8b350f62009-11-15 23:12:43 +000031082 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031083$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31084 fi
31085fi
31086rm -f confcache
31087
31088test "x$prefix" = xNONE && prefix=$ac_default_prefix
31089# Let make expand exec_prefix.
31090test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31091
31092DEFS=-DHAVE_CONFIG_H
31093
31094ac_libobjs=
31095ac_ltlibobjs=
31096for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31097 # 1. Remove the extension, and $U if already installed.
31098 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31099 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31100 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31101 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000031102 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31103 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000031104done
31105LIBOBJS=$ac_libobjs
31106
31107LTLIBOBJS=$ac_ltlibobjs
31108
31109
31110 if test -n "$EXEEXT"; then
31111 am__EXEEXT_TRUE=
31112 am__EXEEXT_FALSE='#'
31113else
31114 am__EXEEXT_TRUE='#'
31115 am__EXEEXT_FALSE=
31116fi
31117
31118if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031119 as_fn_error "conditional \"AMDEP\" was never defined.
31120Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031121fi
31122if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031123 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31124Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031125fi
31126if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031127 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31128Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031129fi
31130if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031131 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
31132Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031133fi
31134if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031135 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
31136Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031137fi
31138if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031139 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
31140Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031141fi
31142if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031143 as_fn_error "conditional \"USING_CL\" was never defined.
31144Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031145fi
cristy18304f92009-11-22 15:48:26 +000031146if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31147 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31148Usually this means the macro was only invoked conditionally." "$LINENO" 5
31149fi
cristy3ed852e2009-09-05 21:47:34 +000031150if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031151 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
31152Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031153fi
31154if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031155 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
31156Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031157fi
31158LT_CONFIG_H=config/config.h
31159
31160 _ltdl_libobjs=
31161 _ltdl_ltlibobjs=
31162 if test -n "$_LT_LIBOBJS"; then
31163 # Remove the extension.
31164 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
31165 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
31166 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
31167 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
31168 done
31169 fi
31170 ltdl_LIBOBJS=$_ltdl_libobjs
31171
31172 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
31173
31174
31175if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031176 as_fn_error "conditional \"WITH_MODULES\" was never defined.
31177Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031178fi
31179if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031180 as_fn_error "conditional \"WITH_LTDL\" was never defined.
31181Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031182fi
31183if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031184 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
31185Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031186fi
31187
31188if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031189 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31190Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031191fi
31192if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031193 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
31194Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031195fi
31196if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031197 as_fn_error "conditional \"HasUMEM\" was never defined.
31198Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031199fi
31200if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031201 as_fn_error "conditional \"BZLIB_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 "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031205 as_fn_error "conditional \"X11_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 "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031209 as_fn_error "conditional \"ZLIB_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 "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031213 as_fn_error "conditional \"AUTOTRACE_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 "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031217 as_fn_error "conditional \"DPS_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 "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031221 as_fn_error "conditional \"DJVU_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 "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031225 as_fn_error "conditional \"FFTW_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 "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031229 as_fn_error "conditional \"FPX_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 "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031233 as_fn_error "conditional \"FONTCONFIG_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 "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031237 as_fn_error "conditional \"FREETYPE_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 "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031241 as_fn_error "conditional \"GS_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 "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031245 as_fn_error "conditional \"GVC_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 "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031249 as_fn_error "conditional \"JBIG_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 "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031253 as_fn_error "conditional \"JPEG_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 "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031257 as_fn_error "conditional \"JP2_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 "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031261 as_fn_error "conditional \"LCMS_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 "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031265 as_fn_error "conditional \"LQR_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 "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031269 as_fn_error "conditional \"OPENEXR_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 "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031273 as_fn_error "conditional \"PNG_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 "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031277 as_fn_error "conditional \"RSVG_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 "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031281 as_fn_error "conditional \"CAIRO_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 "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031285 as_fn_error "conditional \"TIFF_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 "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031289 as_fn_error "conditional \"WMF_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 "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031293 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
31294Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031295fi
31296if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031297 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
31298Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031299fi
31300if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031301 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
31302Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031303fi
31304if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031305 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
31306Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031307fi
31308if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031309 as_fn_error "conditional \"WITH_PERL\" was never defined.
31310Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031311fi
31312if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031313 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
31314Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031315fi
31316if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031317 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
31318Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031319fi
31320
31321: ${CONFIG_STATUS=./config.status}
31322ac_write_fail=0
31323ac_clean_files_save=$ac_clean_files
31324ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000031325{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031326$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031327as_write_fail=0
31328cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031329#! $SHELL
31330# Generated by $as_me.
31331# Run this file to recreate the current configuration.
31332# Compiler output produced by configure, useful for debugging
31333# configure, is in config.log if it exists.
31334
31335debug=false
31336ac_cs_recheck=false
31337ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000031338
cristy8b350f62009-11-15 23:12:43 +000031339SHELL=\${CONFIG_SHELL-$SHELL}
31340export SHELL
31341_ASEOF
31342cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31343## -------------------- ##
31344## M4sh Initialization. ##
31345## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000031346
31347# Be more Bourne compatible
31348DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000031349if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000031350 emulate sh
31351 NULLCMD=:
31352 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31353 # is contrary to our usage. Disable this feature.
31354 alias -g '${1+"$@"}'='"$@"'
31355 setopt NO_GLOB_SUBST
31356else
cristy8b350f62009-11-15 23:12:43 +000031357 case `(set -o) 2>/dev/null` in #(
31358 *posix*) :
31359 set -o posix ;; #(
31360 *) :
31361 ;;
cristy3ed852e2009-09-05 21:47:34 +000031362esac
cristy3ed852e2009-09-05 21:47:34 +000031363fi
31364
31365
cristy3ed852e2009-09-05 21:47:34 +000031366as_nl='
31367'
31368export as_nl
31369# Printing a long string crashes Solaris 7 /usr/bin/printf.
31370as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31371as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31372as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000031373# Prefer a ksh shell builtin over an external printf program on Solaris,
31374# but without wasting forks for bash or zsh.
31375if test -z "$BASH_VERSION$ZSH_VERSION" \
31376 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31377 as_echo='print -r --'
31378 as_echo_n='print -rn --'
31379elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000031380 as_echo='printf %s\n'
31381 as_echo_n='printf %s'
31382else
31383 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31384 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31385 as_echo_n='/usr/ucb/echo -n'
31386 else
31387 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31388 as_echo_n_body='eval
31389 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000031390 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000031391 *"$as_nl"*)
31392 expr "X$arg" : "X\\(.*\\)$as_nl";
31393 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31394 esac;
31395 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31396 '
31397 export as_echo_n_body
31398 as_echo_n='sh -c $as_echo_n_body as_echo'
31399 fi
31400 export as_echo_body
31401 as_echo='sh -c $as_echo_body as_echo'
31402fi
31403
31404# The user is always right.
31405if test "${PATH_SEPARATOR+set}" != set; then
31406 PATH_SEPARATOR=:
31407 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31408 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31409 PATH_SEPARATOR=';'
31410 }
31411fi
31412
cristy3ed852e2009-09-05 21:47:34 +000031413
31414# IFS
31415# We need space, tab and new line, in precisely that order. Quoting is
31416# there to prevent editors from complaining about space-tab.
31417# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31418# splitting by setting IFS to empty value.)
31419IFS=" "" $as_nl"
31420
31421# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000031422case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000031423 *[\\/]* ) as_myself=$0 ;;
31424 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31425for as_dir in $PATH
31426do
31427 IFS=$as_save_IFS
31428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031429 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31430 done
cristy3ed852e2009-09-05 21:47:34 +000031431IFS=$as_save_IFS
31432
31433 ;;
31434esac
31435# We did not find ourselves, most probably we were run as `sh COMMAND'
31436# in which case we are not to be found in the path.
31437if test "x$as_myself" = x; then
31438 as_myself=$0
31439fi
31440if test ! -f "$as_myself"; then
31441 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000031442 exit 1
cristy3ed852e2009-09-05 21:47:34 +000031443fi
31444
cristy8b350f62009-11-15 23:12:43 +000031445# Unset variables that we do not need and which cause bugs (e.g. in
31446# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31447# suppresses any "Segmentation fault" message there. '((' could
31448# trigger a bug in pdksh 5.2.14.
31449for as_var in BASH_ENV ENV MAIL MAILPATH
31450do eval test x\${$as_var+set} = xset \
31451 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000031452done
31453PS1='$ '
31454PS2='> '
31455PS4='+ '
31456
31457# NLS nuisances.
31458LC_ALL=C
31459export LC_ALL
31460LANGUAGE=C
31461export LANGUAGE
31462
cristy8b350f62009-11-15 23:12:43 +000031463# CDPATH.
31464(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31465
31466
31467# as_fn_error ERROR [LINENO LOG_FD]
31468# ---------------------------------
31469# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31470# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31471# script with status $?, using 1 if that was 0.
31472as_fn_error ()
31473{
31474 as_status=$?; test $as_status -eq 0 && as_status=1
31475 if test "$3"; then
31476 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31477 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
31478 fi
31479 $as_echo "$as_me: error: $1" >&2
31480 as_fn_exit $as_status
31481} # as_fn_error
31482
31483
31484# as_fn_set_status STATUS
31485# -----------------------
31486# Set $? to STATUS, without forking.
31487as_fn_set_status ()
31488{
31489 return $1
31490} # as_fn_set_status
31491
31492# as_fn_exit STATUS
31493# -----------------
31494# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31495as_fn_exit ()
31496{
31497 set +e
31498 as_fn_set_status $1
31499 exit $1
31500} # as_fn_exit
31501
31502# as_fn_unset VAR
31503# ---------------
31504# Portably unset VAR.
31505as_fn_unset ()
31506{
31507 { eval $1=; unset $1;}
31508}
31509as_unset=as_fn_unset
31510# as_fn_append VAR VALUE
31511# ----------------------
31512# Append the text in VALUE to the end of the definition contained in VAR. Take
31513# advantage of any shell optimizations that allow amortized linear growth over
31514# repeated appends, instead of the typical quadratic growth present in naive
31515# implementations.
31516if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31517 eval 'as_fn_append ()
31518 {
31519 eval $1+=\$2
31520 }'
31521else
31522 as_fn_append ()
31523 {
31524 eval $1=\$$1\$2
31525 }
31526fi # as_fn_append
31527
31528# as_fn_arith ARG...
31529# ------------------
31530# Perform arithmetic evaluation on the ARGs, and store the result in the
31531# global $as_val. Take advantage of shells that can avoid forks. The arguments
31532# must be portable across $(()) and expr.
31533if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31534 eval 'as_fn_arith ()
31535 {
31536 as_val=$(( $* ))
31537 }'
31538else
31539 as_fn_arith ()
31540 {
31541 as_val=`expr "$@" || test $? -eq 1`
31542 }
31543fi # as_fn_arith
31544
31545
cristy3ed852e2009-09-05 21:47:34 +000031546if expr a : '\(a\)' >/dev/null 2>&1 &&
31547 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31548 as_expr=expr
31549else
31550 as_expr=false
31551fi
31552
31553if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31554 as_basename=basename
31555else
31556 as_basename=false
31557fi
31558
cristy8b350f62009-11-15 23:12:43 +000031559if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31560 as_dirname=dirname
31561else
31562 as_dirname=false
31563fi
cristy3ed852e2009-09-05 21:47:34 +000031564
cristy3ed852e2009-09-05 21:47:34 +000031565as_me=`$as_basename -- "$0" ||
31566$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31567 X"$0" : 'X\(//\)$' \| \
31568 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31569$as_echo X/"$0" |
31570 sed '/^.*\/\([^/][^/]*\)\/*$/{
31571 s//\1/
31572 q
31573 }
31574 /^X\/\(\/\/\)$/{
31575 s//\1/
31576 q
31577 }
31578 /^X\/\(\/\).*/{
31579 s//\1/
31580 q
31581 }
31582 s/.*/./; q'`
31583
cristy8b350f62009-11-15 23:12:43 +000031584# Avoid depending upon Character Ranges.
31585as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31586as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31587as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31588as_cr_digits='0123456789'
31589as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000031590
31591ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000031592case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000031593-n*)
cristy8b350f62009-11-15 23:12:43 +000031594 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000031595 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000031596 xy) ECHO_C='\c';;
31597 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31598 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000031599 esac;;
31600*)
31601 ECHO_N='-n';;
31602esac
cristy3ed852e2009-09-05 21:47:34 +000031603
31604rm -f conf$$ conf$$.exe conf$$.file
31605if test -d conf$$.dir; then
31606 rm -f conf$$.dir/conf$$.file
31607else
31608 rm -f conf$$.dir
31609 mkdir conf$$.dir 2>/dev/null
31610fi
31611if (echo >conf$$.file) 2>/dev/null; then
31612 if ln -s conf$$.file conf$$ 2>/dev/null; then
31613 as_ln_s='ln -s'
31614 # ... but there are two gotchas:
31615 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31616 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31617 # In both cases, we have to default to `cp -p'.
31618 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31619 as_ln_s='cp -p'
31620 elif ln conf$$.file conf$$ 2>/dev/null; then
31621 as_ln_s=ln
31622 else
31623 as_ln_s='cp -p'
31624 fi
31625else
31626 as_ln_s='cp -p'
31627fi
31628rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31629rmdir conf$$.dir 2>/dev/null
31630
cristy8b350f62009-11-15 23:12:43 +000031631
31632# as_fn_mkdir_p
31633# -------------
31634# Create "$as_dir" as a directory, including parents if necessary.
31635as_fn_mkdir_p ()
31636{
31637
31638 case $as_dir in #(
31639 -*) as_dir=./$as_dir;;
31640 esac
31641 test -d "$as_dir" || eval $as_mkdir_p || {
31642 as_dirs=
31643 while :; do
31644 case $as_dir in #(
31645 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31646 *) as_qdir=$as_dir;;
31647 esac
31648 as_dirs="'$as_qdir' $as_dirs"
31649 as_dir=`$as_dirname -- "$as_dir" ||
31650$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31651 X"$as_dir" : 'X\(//\)[^/]' \| \
31652 X"$as_dir" : 'X\(//\)$' \| \
31653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31654$as_echo X"$as_dir" |
31655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31656 s//\1/
31657 q
31658 }
31659 /^X\(\/\/\)[^/].*/{
31660 s//\1/
31661 q
31662 }
31663 /^X\(\/\/\)$/{
31664 s//\1/
31665 q
31666 }
31667 /^X\(\/\).*/{
31668 s//\1/
31669 q
31670 }
31671 s/.*/./; q'`
31672 test -d "$as_dir" && break
31673 done
31674 test -z "$as_dirs" || eval "mkdir $as_dirs"
31675 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
31676
31677
31678} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000031679if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000031680 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000031681else
31682 test -d ./-p && rmdir ./-p
31683 as_mkdir_p=false
31684fi
31685
31686if test -x / >/dev/null 2>&1; then
31687 as_test_x='test -x'
31688else
31689 if ls -dL / >/dev/null 2>&1; then
31690 as_ls_L_option=L
31691 else
31692 as_ls_L_option=
31693 fi
31694 as_test_x='
31695 eval sh -c '\''
31696 if test -d "$1"; then
31697 test -d "$1/.";
31698 else
cristy8b350f62009-11-15 23:12:43 +000031699 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000031700 -*)set "./$1";;
31701 esac;
cristy8b350f62009-11-15 23:12:43 +000031702 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000031703 ???[sx]*):;;*)false;;esac;fi
31704 '\'' sh
31705 '
31706fi
31707as_executable_p=$as_test_x
31708
31709# Sed expression to map a string onto a valid CPP name.
31710as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31711
31712# Sed expression to map a string onto a valid variable name.
31713as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31714
31715
31716exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000031717## ----------------------------------- ##
31718## Main body of $CONFIG_STATUS script. ##
31719## ----------------------------------- ##
31720_ASEOF
31721test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031722
cristy8b350f62009-11-15 23:12:43 +000031723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31724# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000031725# report actual input values of CONFIG_FILES etc. instead of their
31726# values after options handling.
31727ac_log="
cristy89effd22009-11-24 20:56:45 +000031728This file was extended by ImageMagick $as_me 6.5.8, which was
cristycd4c5312009-11-22 01:19:08 +000031729generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000031730
31731 CONFIG_FILES = $CONFIG_FILES
31732 CONFIG_HEADERS = $CONFIG_HEADERS
31733 CONFIG_LINKS = $CONFIG_LINKS
31734 CONFIG_COMMANDS = $CONFIG_COMMANDS
31735 $ $0 $@
31736
31737on `(hostname || uname -n) 2>/dev/null | sed 1q`
31738"
31739
31740_ACEOF
31741
31742case $ac_config_files in *"
31743"*) set x $ac_config_files; shift; ac_config_files=$*;;
31744esac
31745
31746case $ac_config_headers in *"
31747"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31748esac
31749
31750
31751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31752# Files that config.status was made for.
31753config_files="$ac_config_files"
31754config_headers="$ac_config_headers"
31755config_commands="$ac_config_commands"
31756
31757_ACEOF
31758
31759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31760ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000031761\`$as_me' instantiates files and other configuration actions
31762from templates according to the current configuration. Unless the files
31763and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000031764
cristy8b350f62009-11-15 23:12:43 +000031765Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000031766
31767 -h, --help print this help, then exit
31768 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000031769 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000031770 -q, --quiet, --silent
31771 do not print progress messages
31772 -d, --debug don't remove temporary files
31773 --recheck update $as_me by reconfiguring in the same conditions
31774 --file=FILE[:TEMPLATE]
31775 instantiate the configuration file FILE
31776 --header=FILE[:TEMPLATE]
31777 instantiate the configuration header FILE
31778
31779Configuration files:
31780$config_files
31781
31782Configuration headers:
31783$config_headers
31784
31785Configuration commands:
31786$config_commands
31787
cristy8b350f62009-11-15 23:12:43 +000031788Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000031789
31790_ACEOF
31791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000031792ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000031793ac_cs_version="\\
cristy89effd22009-11-24 20:56:45 +000031794ImageMagick config.status 6.5.8
cristycd4c5312009-11-22 01:19:08 +000031795configured by $0, generated by GNU Autoconf 2.65,
31796 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000031797
cristy8b350f62009-11-15 23:12:43 +000031798Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000031799This config.status script is free software; the Free Software Foundation
31800gives unlimited permission to copy, distribute and modify it."
31801
31802ac_pwd='$ac_pwd'
31803srcdir='$srcdir'
31804INSTALL='$INSTALL'
31805MKDIR_P='$MKDIR_P'
31806AWK='$AWK'
31807test -n "\$AWK" || AWK=awk
31808_ACEOF
31809
31810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31811# The default lists apply if the user does not specify any file.
31812ac_need_defaults=:
31813while test $# != 0
31814do
31815 case $1 in
31816 --*=*)
31817 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31818 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31819 ac_shift=:
31820 ;;
31821 *)
31822 ac_option=$1
31823 ac_optarg=$2
31824 ac_shift=shift
31825 ;;
31826 esac
31827
31828 case $ac_option in
31829 # Handling of the options.
31830 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31831 ac_cs_recheck=: ;;
31832 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31833 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000031834 --config | --confi | --conf | --con | --co | --c )
31835 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000031836 --debug | --debu | --deb | --de | --d | -d )
31837 debug=: ;;
31838 --file | --fil | --fi | --f )
31839 $ac_shift
31840 case $ac_optarg in
31841 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31842 esac
cristy8b350f62009-11-15 23:12:43 +000031843 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031844 ac_need_defaults=false;;
31845 --header | --heade | --head | --hea )
31846 $ac_shift
31847 case $ac_optarg in
31848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31849 esac
cristy8b350f62009-11-15 23:12:43 +000031850 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031851 ac_need_defaults=false;;
31852 --he | --h)
31853 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000031854 as_fn_error "ambiguous option: \`$1'
31855Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000031856 --help | --hel | -h )
31857 $as_echo "$ac_cs_usage"; exit ;;
31858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31859 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31860 ac_cs_silent=: ;;
31861
31862 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000031863 -*) as_fn_error "unrecognized option: \`$1'
31864Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000031865
cristy8b350f62009-11-15 23:12:43 +000031866 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000031867 ac_need_defaults=false ;;
31868
31869 esac
31870 shift
31871done
31872
31873ac_configure_extra_args=
31874
31875if $ac_cs_silent; then
31876 exec 6>/dev/null
31877 ac_configure_extra_args="$ac_configure_extra_args --silent"
31878fi
31879
31880_ACEOF
31881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31882if \$ac_cs_recheck; then
31883 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31884 shift
31885 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31886 CONFIG_SHELL='$SHELL'
31887 export CONFIG_SHELL
31888 exec "\$@"
31889fi
31890
31891_ACEOF
31892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31893exec 5>>config.log
31894{
31895 echo
31896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31897## Running $as_me. ##
31898_ASBOX
31899 $as_echo "$ac_log"
31900} >&5
31901
31902_ACEOF
31903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31904#
31905# INIT-COMMANDS
31906#
31907PACKAGE="$PACKAGE"
31908AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31909
31910
31911# The HP-UX ksh and POSIX shell print the target directory to stdout
31912# if CDPATH is set.
31913(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31914
31915sed_quote_subst='$sed_quote_subst'
31916double_quote_subst='$double_quote_subst'
31917delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000031918SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
31919Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
31920GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
31921EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
31922FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
31923LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
31924macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
31925macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
31926AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
31927DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31928OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
31929enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
31930enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
31931pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
31932enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
31933host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
31934host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
31935host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
31936build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
31937build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
31938build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
31939NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
31940LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
31941max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
31942ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
31943exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
31944lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
31945lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
31946lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
31947reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
31948reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31949deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
31950file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
31951AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
31952AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31953STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
31954RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
31955old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31956old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31957old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31958CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
31959CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31960compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
31961GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
31962lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
31963lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
31964lt_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"`'
31965lt_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"`'
31966objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
31967SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
31968ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
31969MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
31970lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
31971lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
31972lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
31973lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
31974lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
31975need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
31976DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
31977NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
31978LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
31979OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31980OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
31981libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
31982shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31983extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31984archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
31985enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
31986export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31987whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31988compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
31989old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31990old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31991archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31992archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31993module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31994module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31995with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
31996allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31997no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31998hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31999hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
32000hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
32001hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
32002hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
32003hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
32004hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32005hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
32006inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
32007link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
32008fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
32009always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
32010export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32011exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32012include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32013prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32014file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
32015variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
32016need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32017need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
32018version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
32019runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32020shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32021shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
32022libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32023library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
32024soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32025postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32026postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32027finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32028finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
32029hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
32030sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32031sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32032hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
32033enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
32034enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
32035enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
32036old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
32037striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
32038compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
32039predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32040postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32041predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
32042postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
32043compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
32044LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32045old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32046compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32047GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32048lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32049lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32050lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32051lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32052lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32053archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32054enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32055export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32056whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32057compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32058old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32059old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32060archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32061archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32062module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32063module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32064with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32065allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32066no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32067hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32068hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32069hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32070hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32071hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32072hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32073hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32074hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32075inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32076link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32077fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32078always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32079export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32080exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32081include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32082prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32083file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32084hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32085compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32086predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32087postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32088predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32089postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32090compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000032091
32092LTCC='$LTCC'
32093LTCFLAGS='$LTCFLAGS'
32094compiler='$compiler_DEFAULT'
32095
32096# Quote evaled strings.
32097for var in SED \
32098GREP \
32099EGREP \
32100FGREP \
32101LD \
32102NM \
32103LN_S \
32104lt_SP2NL \
32105lt_NL2SP \
32106reload_flag \
32107deplibs_check_method \
32108file_magic_cmd \
32109AR \
32110AR_FLAGS \
32111STRIP \
32112RANLIB \
32113CC \
32114CFLAGS \
32115compiler \
32116lt_cv_sys_global_symbol_pipe \
32117lt_cv_sys_global_symbol_to_cdecl \
32118lt_cv_sys_global_symbol_to_c_name_address \
32119lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000032120SHELL \
32121ECHO \
cristy3ed852e2009-09-05 21:47:34 +000032122lt_prog_compiler_no_builtin_flag \
32123lt_prog_compiler_wl \
32124lt_prog_compiler_pic \
32125lt_prog_compiler_static \
32126lt_cv_prog_compiler_c_o \
32127need_locks \
32128DSYMUTIL \
32129NMEDIT \
32130LIPO \
32131OTOOL \
32132OTOOL64 \
32133shrext_cmds \
32134export_dynamic_flag_spec \
32135whole_archive_flag_spec \
32136compiler_needs_object \
32137with_gnu_ld \
32138allow_undefined_flag \
32139no_undefined_flag \
32140hardcode_libdir_flag_spec \
32141hardcode_libdir_flag_spec_ld \
32142hardcode_libdir_separator \
32143fix_srcfile_path \
32144exclude_expsyms \
32145include_expsyms \
32146file_list_spec \
32147variables_saved_for_relink \
32148libname_spec \
32149library_names_spec \
32150soname_spec \
32151finish_eval \
32152old_striplib \
32153striplib \
32154compiler_lib_search_dirs \
32155predep_objects \
32156postdep_objects \
32157predeps \
32158postdeps \
32159compiler_lib_search_path \
32160LD_CXX \
32161compiler_CXX \
32162lt_prog_compiler_no_builtin_flag_CXX \
32163lt_prog_compiler_wl_CXX \
32164lt_prog_compiler_pic_CXX \
32165lt_prog_compiler_static_CXX \
32166lt_cv_prog_compiler_c_o_CXX \
32167export_dynamic_flag_spec_CXX \
32168whole_archive_flag_spec_CXX \
32169compiler_needs_object_CXX \
32170with_gnu_ld_CXX \
32171allow_undefined_flag_CXX \
32172no_undefined_flag_CXX \
32173hardcode_libdir_flag_spec_CXX \
32174hardcode_libdir_flag_spec_ld_CXX \
32175hardcode_libdir_separator_CXX \
32176fix_srcfile_path_CXX \
32177exclude_expsyms_CXX \
32178include_expsyms_CXX \
32179file_list_spec_CXX \
32180compiler_lib_search_dirs_CXX \
32181predep_objects_CXX \
32182postdep_objects_CXX \
32183predeps_CXX \
32184postdeps_CXX \
32185compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000032186 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032187 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032188 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000032189 ;;
32190 *)
32191 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32192 ;;
32193 esac
32194done
32195
32196# Double-quote double-evaled strings.
32197for var in reload_cmds \
32198old_postinstall_cmds \
32199old_postuninstall_cmds \
32200old_archive_cmds \
32201extract_expsyms_cmds \
32202old_archive_from_new_cmds \
32203old_archive_from_expsyms_cmds \
32204archive_cmds \
32205archive_expsym_cmds \
32206module_cmds \
32207module_expsym_cmds \
32208export_symbols_cmds \
32209prelink_cmds \
32210postinstall_cmds \
32211postuninstall_cmds \
32212finish_cmds \
32213sys_lib_search_path_spec \
32214sys_lib_dlsearch_path_spec \
32215old_archive_cmds_CXX \
32216old_archive_from_new_cmds_CXX \
32217old_archive_from_expsyms_cmds_CXX \
32218archive_cmds_CXX \
32219archive_expsym_cmds_CXX \
32220module_cmds_CXX \
32221module_expsym_cmds_CXX \
32222export_symbols_cmds_CXX \
32223prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000032224 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032225 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032226 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 +000032227 ;;
32228 *)
32229 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32230 ;;
32231 esac
32232done
32233
cristy18304f92009-11-22 15:48:26 +000032234# Fix-up fallback echo if it was mangled by the above quoting rules.
32235case \$lt_ECHO in
32236*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
32237 ;;
32238esac
32239
cristy3ed852e2009-09-05 21:47:34 +000032240ac_aux_dir='$ac_aux_dir'
32241xsi_shell='$xsi_shell'
32242lt_shell_append='$lt_shell_append'
32243
32244# See if we are running on zsh, and set the options which allow our
32245# commands through without removal of \ escapes INIT.
32246if test -n "\${ZSH_VERSION+set}" ; then
32247 setopt NO_GLOB_SUBST
32248fi
32249
32250
32251 PACKAGE='$PACKAGE'
32252 VERSION='$VERSION'
32253 TIMESTAMP='$TIMESTAMP'
32254 RM='$RM'
32255 ofile='$ofile'
32256
32257
32258
32259
32260
32261
32262_ACEOF
32263
32264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32265
32266# Handling of arguments.
32267for ac_config_target in $ac_config_targets
32268do
32269 case $ac_config_target in
32270 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32271 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32272 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32273 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32274 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32275 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32276 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
32277 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32278 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
32279 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
32280 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
32281 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
32282 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
32283 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
32284 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
32285 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
32286 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
32287 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
32288 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
32289 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32290 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
32291 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
32292 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
32293 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
32294 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
32295 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
32296 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
32297 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
32298 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
32299 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
32300 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
32301 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
32302 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
32303 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
32304 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
32305 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
32306 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
32307 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
32308 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
32309 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
32310 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32311 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32312 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32313 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
32314 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
32315 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
32316 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
32317 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
32318 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
32319
cristy8b350f62009-11-15 23:12:43 +000032320 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032321 esac
32322done
32323
32324
32325# If the user did not use the arguments to specify the items to instantiate,
32326# then the envvar interface is used. Set only those that are not.
32327# We use the long form for the default assignment because of an extremely
32328# bizarre bug on SunOS 4.1.3.
32329if $ac_need_defaults; then
32330 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32331 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32332 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32333fi
32334
32335# Have a temporary directory for convenience. Make it in the build tree
32336# simply because there is no reason against having it here, and in addition,
32337# creating and moving files from /tmp can sometimes cause problems.
32338# Hook for its removal unless debugging.
32339# Note that there is a small window in which the directory will not be cleaned:
32340# after its creation but before its name has been assigned to `$tmp'.
32341$debug ||
32342{
32343 tmp=
32344 trap 'exit_status=$?
32345 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32346' 0
cristy8b350f62009-11-15 23:12:43 +000032347 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000032348}
32349# Create a (secure) tmp directory for tmp files.
32350
32351{
32352 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32353 test -n "$tmp" && test -d "$tmp"
32354} ||
32355{
32356 tmp=./conf$$-$RANDOM
32357 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000032358} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032359
32360# Set up the scripts for CONFIG_FILES section.
32361# No need to generate them if there are no CONFIG_FILES.
32362# This happens for instance with `./config.status config.h'.
32363if test -n "$CONFIG_FILES"; then
32364
32365
cristy8b350f62009-11-15 23:12:43 +000032366ac_cr=`echo X | tr X '\015'`
32367# On cygwin, bash can eat \r inside `` if the user requested igncr.
32368# But we know of no other shell where ac_cr would be empty at this
32369# point, so we can use a bashism as a fallback.
32370if test "x$ac_cr" = x; then
32371 eval ac_cr=\$\'\\r\'
32372fi
cristy3ed852e2009-09-05 21:47:34 +000032373ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32374if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000032375 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000032376else
32377 ac_cs_awk_cr=$ac_cr
32378fi
32379
32380echo 'BEGIN {' >"$tmp/subs1.awk" &&
32381_ACEOF
32382
32383
32384{
32385 echo "cat >conf$$subs.awk <<_ACEOF" &&
32386 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32387 echo "_ACEOF"
32388} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032389 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032390ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32391ac_delim='%!_!# '
32392for ac_last_try in false false false false false :; do
32393 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032394 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032395
32396 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32397 if test $ac_delim_n = $ac_delim_num; then
32398 break
32399 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032400 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032401 else
32402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32403 fi
32404done
32405rm -f conf$$subs.sh
32406
32407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32408cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32409_ACEOF
32410sed -n '
32411h
32412s/^/S["/; s/!.*/"]=/
32413p
32414g
32415s/^[^!]*!//
32416:repl
32417t repl
32418s/'"$ac_delim"'$//
32419t delim
32420:nl
32421h
cristycd4c5312009-11-22 01:19:08 +000032422s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032423t more1
32424s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32425p
32426n
32427b repl
32428:more1
32429s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32430p
32431g
32432s/.\{148\}//
32433t nl
32434:delim
32435h
cristycd4c5312009-11-22 01:19:08 +000032436s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032437t more2
32438s/["\\]/\\&/g; s/^/"/; s/$/"/
32439p
32440b
32441:more2
32442s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32443p
32444g
32445s/.\{148\}//
32446t delim
32447' <conf$$subs.awk | sed '
32448/^[^""]/{
32449 N
32450 s/\n//
32451}
32452' >>$CONFIG_STATUS || ac_write_fail=1
32453rm -f conf$$subs.awk
32454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32455_ACAWK
32456cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32457 for (key in S) S_is_set[key] = 1
32458 FS = ""
32459
32460}
32461{
32462 line = $ 0
32463 nfields = split(line, field, "@")
32464 substed = 0
32465 len = length(field[1])
32466 for (i = 2; i < nfields; i++) {
32467 key = field[i]
32468 keylen = length(key)
32469 if (S_is_set[key]) {
32470 value = S[key]
32471 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32472 len += length(value) + length(field[++i])
32473 substed = 1
32474 } else
32475 len += 1 + keylen
32476 }
32477
32478 print line
32479}
32480
32481_ACAWK
32482_ACEOF
32483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32484if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32485 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32486else
32487 cat
32488fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000032489 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032490_ACEOF
32491
32492# VPATH may cause trouble with some makes, so we remove $(srcdir),
32493# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32494# trailing colons and then remove the whole line if VPATH becomes empty
32495# (actually we leave an empty line to preserve line numbers).
32496if test "x$srcdir" = x.; then
32497 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32498s/:*\$(srcdir):*/:/
32499s/:*\${srcdir}:*/:/
32500s/:*@srcdir@:*/:/
32501s/^\([^=]*=[ ]*\):*/\1/
32502s/:*$//
32503s/^[^=]*=[ ]*$//
32504}'
32505fi
32506
32507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32508fi # test -n "$CONFIG_FILES"
32509
32510# Set up the scripts for CONFIG_HEADERS section.
32511# No need to generate them if there are no CONFIG_HEADERS.
32512# This happens for instance with `./config.status Makefile'.
32513if test -n "$CONFIG_HEADERS"; then
32514cat >"$tmp/defines.awk" <<\_ACAWK ||
32515BEGIN {
32516_ACEOF
32517
32518# Transform confdefs.h into an awk script `defines.awk', embedded as
32519# here-document in config.status, that substitutes the proper values into
32520# config.h.in to produce config.h.
32521
32522# Create a delimiter string that does not exist in confdefs.h, to ease
32523# handling of long lines.
32524ac_delim='%!_!# '
32525for ac_last_try in false false :; do
32526 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32527 if test -z "$ac_t"; then
32528 break
32529 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032530 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032531 else
32532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32533 fi
32534done
32535
32536# For the awk script, D is an array of macro values keyed by name,
32537# likewise P contains macro parameters if any. Preserve backslash
32538# newline sequences.
32539
32540ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32541sed -n '
32542s/.\{148\}/&'"$ac_delim"'/g
32543t rset
32544:rset
32545s/^[ ]*#[ ]*define[ ][ ]*/ /
32546t def
32547d
32548:def
32549s/\\$//
32550t bsnl
32551s/["\\]/\\&/g
32552s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32553D["\1"]=" \3"/p
32554s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32555d
32556:bsnl
32557s/["\\]/\\&/g
32558s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32559D["\1"]=" \3\\\\\\n"\\/p
32560t cont
32561s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32562t cont
32563d
32564:cont
32565n
32566s/.\{148\}/&'"$ac_delim"'/g
32567t clear
32568:clear
32569s/\\$//
32570t bsnlc
32571s/["\\]/\\&/g; s/^/"/; s/$/"/p
32572d
32573:bsnlc
32574s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32575b cont
32576' <confdefs.h | sed '
32577s/'"$ac_delim"'/"\\\
32578"/g' >>$CONFIG_STATUS || ac_write_fail=1
32579
32580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32581 for (key in D) D_is_set[key] = 1
32582 FS = ""
32583}
32584/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32585 line = \$ 0
32586 split(line, arg, " ")
32587 if (arg[1] == "#") {
32588 defundef = arg[2]
32589 mac1 = arg[3]
32590 } else {
32591 defundef = substr(arg[1], 2)
32592 mac1 = arg[2]
32593 }
32594 split(mac1, mac2, "(") #)
32595 macro = mac2[1]
32596 prefix = substr(line, 1, index(line, defundef) - 1)
32597 if (D_is_set[macro]) {
32598 # Preserve the white space surrounding the "#".
32599 print prefix "define", macro P[macro] D[macro]
32600 next
32601 } else {
32602 # Replace #undef with comments. This is necessary, for example,
32603 # in the case of _POSIX_SOURCE, which is predefined and required
32604 # on some systems where configure will not decide to define it.
32605 if (defundef == "undef") {
32606 print "/*", prefix defundef, macro, "*/"
32607 next
32608 }
32609 }
32610}
32611{ print }
32612_ACAWK
32613_ACEOF
32614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000032615 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032616fi # test -n "$CONFIG_HEADERS"
32617
32618
32619eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32620shift
32621for ac_tag
32622do
32623 case $ac_tag in
32624 :[FHLC]) ac_mode=$ac_tag; continue;;
32625 esac
32626 case $ac_mode$ac_tag in
32627 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000032628 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032629 :[FH]-) ac_tag=-:-;;
32630 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32631 esac
32632 ac_save_IFS=$IFS
32633 IFS=:
32634 set x $ac_tag
32635 IFS=$ac_save_IFS
32636 shift
32637 ac_file=$1
32638 shift
32639
32640 case $ac_mode in
32641 :L) ac_source=$1;;
32642 :[FH])
32643 ac_file_inputs=
32644 for ac_f
32645 do
32646 case $ac_f in
32647 -) ac_f="$tmp/stdin";;
32648 *) # Look for the file first in the build tree, then in the source tree
32649 # (if the path is not absolute). The absolute path cannot be DOS-style,
32650 # because $ac_f cannot contain `:'.
32651 test -f "$ac_f" ||
32652 case $ac_f in
32653 [\\/$]*) false;;
32654 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32655 esac ||
cristy8b350f62009-11-15 23:12:43 +000032656 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032657 esac
32658 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000032659 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000032660 done
32661
32662 # Let's still pretend it is `configure' which instantiates (i.e., don't
32663 # use $as_me), people would be surprised to read:
32664 # /* config.h. Generated by config.status. */
32665 configure_input='Generated from '`
32666 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32667 `' by configure.'
32668 if test x"$ac_file" != x-; then
32669 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000032670 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032671$as_echo "$as_me: creating $ac_file" >&6;}
32672 fi
32673 # Neutralize special characters interpreted by sed in replacement strings.
32674 case $configure_input in #(
32675 *\&* | *\|* | *\\* )
32676 ac_sed_conf_input=`$as_echo "$configure_input" |
32677 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32678 *) ac_sed_conf_input=$configure_input;;
32679 esac
32680
32681 case $ac_tag in
32682 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000032683 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000032684 esac
32685 ;;
32686 esac
32687
32688 ac_dir=`$as_dirname -- "$ac_file" ||
32689$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32690 X"$ac_file" : 'X\(//\)[^/]' \| \
32691 X"$ac_file" : 'X\(//\)$' \| \
32692 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32693$as_echo X"$ac_file" |
32694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32695 s//\1/
32696 q
32697 }
32698 /^X\(\/\/\)[^/].*/{
32699 s//\1/
32700 q
32701 }
32702 /^X\(\/\/\)$/{
32703 s//\1/
32704 q
32705 }
32706 /^X\(\/\).*/{
32707 s//\1/
32708 q
32709 }
32710 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032711 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032712 ac_builddir=.
32713
32714case "$ac_dir" in
32715.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32716*)
32717 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32718 # A ".." for each directory in $ac_dir_suffix.
32719 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32720 case $ac_top_builddir_sub in
32721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32723 esac ;;
32724esac
32725ac_abs_top_builddir=$ac_pwd
32726ac_abs_builddir=$ac_pwd$ac_dir_suffix
32727# for backward compatibility:
32728ac_top_builddir=$ac_top_build_prefix
32729
32730case $srcdir in
32731 .) # We are building in place.
32732 ac_srcdir=.
32733 ac_top_srcdir=$ac_top_builddir_sub
32734 ac_abs_top_srcdir=$ac_pwd ;;
32735 [\\/]* | ?:[\\/]* ) # Absolute name.
32736 ac_srcdir=$srcdir$ac_dir_suffix;
32737 ac_top_srcdir=$srcdir
32738 ac_abs_top_srcdir=$srcdir ;;
32739 *) # Relative name.
32740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32741 ac_top_srcdir=$ac_top_build_prefix$srcdir
32742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32743esac
32744ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32745
32746
32747 case $ac_mode in
32748 :F)
32749 #
32750 # CONFIG_FILE
32751 #
32752
32753 case $INSTALL in
32754 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32755 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32756 esac
32757 ac_MKDIR_P=$MKDIR_P
32758 case $MKDIR_P in
32759 [\\/$]* | ?:[\\/]* ) ;;
32760 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32761 esac
32762_ACEOF
32763
32764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32765# If the template does not know about datarootdir, expand it.
32766# FIXME: This hack should be removed a few years after 2.60.
32767ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000032768ac_sed_dataroot='
32769/datarootdir/ {
32770 p
32771 q
32772}
32773/@datadir@/p
32774/@docdir@/p
32775/@infodir@/p
32776/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000032777/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000032778case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32779*datarootdir*) ac_datarootdir_seen=yes;;
32780*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000032781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000032782$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32783_ACEOF
32784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32785 ac_datarootdir_hack='
32786 s&@datadir@&$datadir&g
32787 s&@docdir@&$docdir&g
32788 s&@infodir@&$infodir&g
32789 s&@localedir@&$localedir&g
32790 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000032791 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000032792esac
32793_ACEOF
32794
32795# Neutralize VPATH when `$srcdir' = `.'.
32796# Shell code in configure.ac might set extrasub.
32797# FIXME: do we really want to maintain this feature?
32798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32799ac_sed_extra="$ac_vpsub
32800$extrasub
32801_ACEOF
32802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32803:t
32804/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32805s|@configure_input@|$ac_sed_conf_input|;t t
32806s&@top_builddir@&$ac_top_builddir_sub&;t t
32807s&@top_build_prefix@&$ac_top_build_prefix&;t t
32808s&@srcdir@&$ac_srcdir&;t t
32809s&@abs_srcdir@&$ac_abs_srcdir&;t t
32810s&@top_srcdir@&$ac_top_srcdir&;t t
32811s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32812s&@builddir@&$ac_builddir&;t t
32813s&@abs_builddir@&$ac_abs_builddir&;t t
32814s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32815s&@INSTALL@&$ac_INSTALL&;t t
32816s&@MKDIR_P@&$ac_MKDIR_P&;t t
32817$ac_datarootdir_hack
32818"
32819eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000032820 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032821
32822test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32823 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32824 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000032825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000032826which seems to be undefined. Please make sure it is defined." >&5
32827$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32828which seems to be undefined. Please make sure it is defined." >&2;}
32829
32830 rm -f "$tmp/stdin"
32831 case $ac_file in
32832 -) cat "$tmp/out" && rm -f "$tmp/out";;
32833 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32834 esac \
cristy8b350f62009-11-15 23:12:43 +000032835 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032836 ;;
32837 :H)
32838 #
32839 # CONFIG_HEADER
32840 #
32841 if test x"$ac_file" != x-; then
32842 {
32843 $as_echo "/* $configure_input */" \
32844 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32845 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000032846 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032847 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000032848 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032849$as_echo "$as_me: $ac_file is unchanged" >&6;}
32850 else
32851 rm -f "$ac_file"
32852 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000032853 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032854 fi
32855 else
32856 $as_echo "/* $configure_input */" \
32857 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000032858 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032859 fi
32860# Compute "$ac_file"'s index in $config_headers.
32861_am_arg="$ac_file"
32862_am_stamp_count=1
32863for _am_header in $config_headers :; do
32864 case $_am_header in
32865 $_am_arg | $_am_arg:* )
32866 break ;;
32867 * )
32868 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32869 esac
32870done
32871echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32872$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32873 X"$_am_arg" : 'X\(//\)[^/]' \| \
32874 X"$_am_arg" : 'X\(//\)$' \| \
32875 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32876$as_echo X"$_am_arg" |
32877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32878 s//\1/
32879 q
32880 }
32881 /^X\(\/\/\)[^/].*/{
32882 s//\1/
32883 q
32884 }
32885 /^X\(\/\/\)$/{
32886 s//\1/
32887 q
32888 }
32889 /^X\(\/\).*/{
32890 s//\1/
32891 q
32892 }
32893 s/.*/./; q'`/stamp-h$_am_stamp_count
32894 ;;
32895
cristy8b350f62009-11-15 23:12:43 +000032896 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000032897$as_echo "$as_me: executing $ac_file commands" >&6;}
32898 ;;
32899 esac
32900
32901
32902 case $ac_file$ac_mode in
32903 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
32904ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
32905ac_prefix_conf_PKG=`echo MagickCore`
32906ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
32907ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
32908ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
32909if test ".$ac_prefix_conf_INP" = "."; then
32910 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
32911 case "$ac_file" in
32912 *.h) ac_prefix_conf_INP=$ac_file ;;
32913 *)
32914 esac
32915 test ".$ac_prefix_conf_INP" != "." && break
32916 done
32917fi
32918if test ".$ac_prefix_conf_INP" = "."; then
32919 case "$ac_prefix_conf_OUT" in
32920 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
32921 ;;
32922 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
32923 ;;
32924 *) ac_prefix_conf_INP=config.h
32925 ;;
32926 esac
32927fi
32928if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000032929 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032930else
32931 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
32932 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
32933 fi fi
cristy8b350f62009-11-15 23:12:43 +000032934 { $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 +000032935$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
32936 if test -f $ac_prefix_conf_INP ; then
32937 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
32938 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
32939 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
32940 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
32941 echo "#endif/" >>conftest.prefix
32942 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
32943 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
32944 echo "#endif/" >> conftest.prefix
32945 # now executing _script on _DEF input to create _OUT output file
32946 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
32947 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
32948 echo ' ' >>$tmp/pconfig.h
32949 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
32950
32951 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
32952 echo ' ' >>$tmp/pconfig.h
32953 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
32954 echo "#endif" >>$tmp/pconfig.h
32955 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032956 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032957$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
32958 else
32959 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
32960$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32961 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
32962 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
32963 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
32964$as_echo X"$ac_prefix_conf_OUT" |
32965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32966 s//\1/
32967 q
32968 }
32969 /^X\(\/\/\)[^/].*/{
32970 s//\1/
32971 q
32972 }
32973 /^X\(\/\/\)$/{
32974 s//\1/
32975 q
32976 }
32977 /^X\(\/\).*/{
32978 s//\1/
32979 q
32980 }
32981 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032982 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032983 rm -f "$ac_prefix_conf_OUT"
32984 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
32985 fi
32986 cp conftest.prefix _configs.sed
32987 else
cristy8b350f62009-11-15 23:12:43 +000032988 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 +000032989 fi
32990 rm -f conftest.*
32991fi
32992 ;;
32993 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32994 # Autoconf 2.62 quotes --file arguments for eval, but not when files
32995 # are listed without --file. Let's play safe and only enable the eval
32996 # if we detect the quoting.
32997 case $CONFIG_FILES in
32998 *\'*) eval set x "$CONFIG_FILES" ;;
32999 *) set x $CONFIG_FILES ;;
33000 esac
33001 shift
33002 for mf
33003 do
33004 # Strip MF so we end up with the name of the file.
33005 mf=`echo "$mf" | sed -e 's/:.*$//'`
33006 # Check whether this is an Automake generated Makefile or not.
33007 # We used to match only the files named `Makefile.in', but
33008 # some people rename them; so instead we look at the file content.
33009 # Grep'ing the first line is not enough: some people post-process
33010 # each Makefile.in and add a new line on top of each file to say so.
33011 # Grep'ing the whole file is not good either: AIX grep has a line
33012 # limit of 2048, but all sed's we know have understand at least 4000.
33013 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33014 dirpart=`$as_dirname -- "$mf" ||
33015$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33016 X"$mf" : 'X\(//\)[^/]' \| \
33017 X"$mf" : 'X\(//\)$' \| \
33018 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33019$as_echo X"$mf" |
33020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33021 s//\1/
33022 q
33023 }
33024 /^X\(\/\/\)[^/].*/{
33025 s//\1/
33026 q
33027 }
33028 /^X\(\/\/\)$/{
33029 s//\1/
33030 q
33031 }
33032 /^X\(\/\).*/{
33033 s//\1/
33034 q
33035 }
33036 s/.*/./; q'`
33037 else
33038 continue
33039 fi
33040 # Extract the definition of DEPDIR, am__include, and am__quote
33041 # from the Makefile without running `make'.
33042 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33043 test -z "$DEPDIR" && continue
33044 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33045 test -z "am__include" && continue
33046 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33047 # When using ansi2knr, U may be empty or an underscore; expand it
33048 U=`sed -n 's/^U = //p' < "$mf"`
33049 # Find all dependency output files, they are included files with
33050 # $(DEPDIR) in their names. We invoke sed twice because it is the
33051 # simplest approach to changing $(DEPDIR) to its actual value in the
33052 # expansion.
33053 for file in `sed -n "
33054 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33055 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33056 # Make sure the directory exists.
33057 test -f "$dirpart/$file" && continue
33058 fdir=`$as_dirname -- "$file" ||
33059$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33060 X"$file" : 'X\(//\)[^/]' \| \
33061 X"$file" : 'X\(//\)$' \| \
33062 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33063$as_echo X"$file" |
33064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33065 s//\1/
33066 q
33067 }
33068 /^X\(\/\/\)[^/].*/{
33069 s//\1/
33070 q
33071 }
33072 /^X\(\/\/\)$/{
33073 s//\1/
33074 q
33075 }
33076 /^X\(\/\).*/{
33077 s//\1/
33078 q
33079 }
33080 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033081 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033082 # echo "creating $dirpart/$file"
33083 echo '# dummy' > "$dirpart/$file"
33084 done
33085 done
33086}
33087 ;;
33088 "libtool":C)
33089
33090 # See if we are running on zsh, and set the options which allow our
33091 # commands through without removal of \ escapes.
33092 if test -n "${ZSH_VERSION+set}" ; then
33093 setopt NO_GLOB_SUBST
33094 fi
33095
33096 cfgfile="${ofile}T"
33097 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33098 $RM "$cfgfile"
33099
33100 cat <<_LT_EOF >> "$cfgfile"
33101#! $SHELL
33102
33103# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33104# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33105# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33106# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33107#
33108# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000033109# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033110# Written by Gordon Matzigkeit, 1996
33111#
33112# This file is part of GNU Libtool.
33113#
33114# GNU Libtool is free software; you can redistribute it and/or
33115# modify it under the terms of the GNU General Public License as
33116# published by the Free Software Foundation; either version 2 of
33117# the License, or (at your option) any later version.
33118#
33119# As a special exception to the GNU General Public License,
33120# if you distribute this file as part of a program or library that
33121# is built using GNU Libtool, you may include this file under the
33122# same distribution terms that you use for the rest of that program.
33123#
33124# GNU Libtool is distributed in the hope that it will be useful,
33125# but WITHOUT ANY WARRANTY; without even the implied warranty of
33126# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33127# GNU General Public License for more details.
33128#
33129# You should have received a copy of the GNU General Public License
33130# along with GNU Libtool; see the file COPYING. If not, a copy
33131# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33132# obtained by writing to the Free Software Foundation, Inc.,
33133# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33134
33135
33136# The names of the tagged configurations supported by this script.
33137available_tags="CXX "
33138
33139# ### BEGIN LIBTOOL CONFIG
33140
33141# A sed program that does not truncate output.
33142SED=$lt_SED
33143
33144# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33145Xsed="\$SED -e 1s/^X//"
33146
33147# A grep program that handles long lines.
33148GREP=$lt_GREP
33149
33150# An ERE matcher.
33151EGREP=$lt_EGREP
33152
33153# A literal string matcher.
33154FGREP=$lt_FGREP
33155
33156# Which release of libtool.m4 was used?
33157macro_version=$macro_version
33158macro_revision=$macro_revision
33159
33160# Assembler program.
cristy18304f92009-11-22 15:48:26 +000033161AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000033162
33163# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000033164DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000033165
33166# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000033167OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000033168
33169# Whether or not to build shared libraries.
33170build_libtool_libs=$enable_shared
33171
33172# Whether or not to build static libraries.
33173build_old_libs=$enable_static
33174
33175# What type of objects to build.
33176pic_mode=$pic_mode
33177
33178# Whether or not to optimize for fast installation.
33179fast_install=$enable_fast_install
33180
33181# The host system.
33182host_alias=$host_alias
33183host=$host
33184host_os=$host_os
33185
33186# The build system.
33187build_alias=$build_alias
33188build=$build
33189build_os=$build_os
33190
33191# A BSD- or MS-compatible name lister.
33192NM=$lt_NM
33193
33194# Whether we need soft or hard links.
33195LN_S=$lt_LN_S
33196
33197# What is the maximum length of a command?
33198max_cmd_len=$max_cmd_len
33199
33200# Object file suffix (normally "o").
33201objext=$ac_objext
33202
33203# Executable file suffix (normally "").
33204exeext=$exeext
33205
33206# whether the shell understands "unset".
33207lt_unset=$lt_unset
33208
33209# turn spaces into newlines.
33210SP2NL=$lt_lt_SP2NL
33211
33212# turn newlines into spaces.
33213NL2SP=$lt_lt_NL2SP
33214
cristy18304f92009-11-22 15:48:26 +000033215# How to create reloadable object files.
33216reload_flag=$lt_reload_flag
33217reload_cmds=$lt_reload_cmds
33218
cristy3ed852e2009-09-05 21:47:34 +000033219# Method to check whether dependent libraries are shared objects.
33220deplibs_check_method=$lt_deplibs_check_method
33221
33222# Command to use when deplibs_check_method == "file_magic".
33223file_magic_cmd=$lt_file_magic_cmd
33224
33225# The archiver.
33226AR=$lt_AR
33227AR_FLAGS=$lt_AR_FLAGS
33228
33229# A symbol stripping program.
33230STRIP=$lt_STRIP
33231
33232# Commands used to install an old-style archive.
33233RANLIB=$lt_RANLIB
33234old_postinstall_cmds=$lt_old_postinstall_cmds
33235old_postuninstall_cmds=$lt_old_postuninstall_cmds
33236
33237# A C compiler.
33238LTCC=$lt_CC
33239
33240# LTCC compiler flags.
33241LTCFLAGS=$lt_CFLAGS
33242
33243# Take the output of nm and produce a listing of raw symbols and C names.
33244global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33245
33246# Transform the output of nm in a proper C declaration.
33247global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33248
33249# Transform the output of nm in a C name address pair.
33250global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33251
33252# Transform the output of nm in a C name address pair when lib prefix is needed.
33253global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33254
33255# The name of the directory that contains temporary libtool files.
33256objdir=$objdir
33257
cristy18304f92009-11-22 15:48:26 +000033258# Shell to use when invoking shell scripts.
33259SHELL=$lt_SHELL
33260
33261# An echo program that does not interpret backslashes.
33262ECHO=$lt_ECHO
33263
cristy3ed852e2009-09-05 21:47:34 +000033264# Used to examine libraries when file_magic_cmd begins with "file".
33265MAGIC_CMD=$MAGIC_CMD
33266
33267# Must we lock files when doing compilation?
33268need_locks=$lt_need_locks
33269
33270# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33271DSYMUTIL=$lt_DSYMUTIL
33272
33273# Tool to change global to local symbols on Mac OS X.
33274NMEDIT=$lt_NMEDIT
33275
33276# Tool to manipulate fat objects and archives on Mac OS X.
33277LIPO=$lt_LIPO
33278
33279# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33280OTOOL=$lt_OTOOL
33281
33282# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33283OTOOL64=$lt_OTOOL64
33284
33285# Old archive suffix (normally "a").
33286libext=$libext
33287
33288# Shared library suffix (normally ".so").
33289shrext_cmds=$lt_shrext_cmds
33290
33291# The commands to extract the exported symbol list from a shared archive.
33292extract_expsyms_cmds=$lt_extract_expsyms_cmds
33293
33294# Variables whose values should be saved in libtool wrapper scripts and
33295# restored at link time.
33296variables_saved_for_relink=$lt_variables_saved_for_relink
33297
33298# Do we need the "lib" prefix for modules?
33299need_lib_prefix=$need_lib_prefix
33300
33301# Do we need a version for libraries?
33302need_version=$need_version
33303
33304# Library versioning type.
33305version_type=$version_type
33306
33307# Shared library runtime path variable.
33308runpath_var=$runpath_var
33309
33310# Shared library path variable.
33311shlibpath_var=$shlibpath_var
33312
33313# Is shlibpath searched before the hard-coded library search path?
33314shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33315
33316# Format of library name prefix.
33317libname_spec=$lt_libname_spec
33318
33319# List of archive names. First name is the real one, the rest are links.
33320# The last name is the one that the linker finds with -lNAME
33321library_names_spec=$lt_library_names_spec
33322
33323# The coded name of the library, if different from the real name.
33324soname_spec=$lt_soname_spec
33325
33326# Command to use after installation of a shared archive.
33327postinstall_cmds=$lt_postinstall_cmds
33328
33329# Command to use after uninstallation of a shared archive.
33330postuninstall_cmds=$lt_postuninstall_cmds
33331
33332# Commands used to finish a libtool library installation in a directory.
33333finish_cmds=$lt_finish_cmds
33334
33335# As "finish_cmds", except a single script fragment to be evaled but
33336# not shown.
33337finish_eval=$lt_finish_eval
33338
33339# Whether we should hardcode library paths into libraries.
33340hardcode_into_libs=$hardcode_into_libs
33341
33342# Compile-time system search path for libraries.
33343sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33344
33345# Run-time system search path for libraries.
33346sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33347
33348# Whether dlopen is supported.
33349dlopen_support=$enable_dlopen
33350
33351# Whether dlopen of programs is supported.
33352dlopen_self=$enable_dlopen_self
33353
33354# Whether dlopen of statically linked programs is supported.
33355dlopen_self_static=$enable_dlopen_self_static
33356
33357# Commands to strip libraries.
33358old_striplib=$lt_old_striplib
33359striplib=$lt_striplib
33360
33361
33362# The linker used to build libraries.
33363LD=$lt_LD
33364
33365# Commands used to build an old-style archive.
33366old_archive_cmds=$lt_old_archive_cmds
33367
33368# A language specific compiler.
33369CC=$lt_compiler
33370
33371# Is the compiler the GNU compiler?
33372with_gcc=$GCC
33373
33374# Compiler flag to turn off builtin functions.
33375no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33376
33377# How to pass a linker flag through the compiler.
33378wl=$lt_lt_prog_compiler_wl
33379
33380# Additional compiler flags for building library objects.
33381pic_flag=$lt_lt_prog_compiler_pic
33382
33383# Compiler flag to prevent dynamic linking.
33384link_static_flag=$lt_lt_prog_compiler_static
33385
33386# Does compiler simultaneously support -c and -o options?
33387compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33388
33389# Whether or not to add -lc for building shared libraries.
33390build_libtool_need_lc=$archive_cmds_need_lc
33391
33392# Whether or not to disallow shared libs when runtime libs are static.
33393allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33394
33395# Compiler flag to allow reflexive dlopens.
33396export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33397
33398# Compiler flag to generate shared objects directly from archives.
33399whole_archive_flag_spec=$lt_whole_archive_flag_spec
33400
33401# Whether the compiler copes with passing no objects directly.
33402compiler_needs_object=$lt_compiler_needs_object
33403
33404# Create an old-style archive from a shared archive.
33405old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33406
33407# Create a temporary old-style archive to link instead of a shared archive.
33408old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33409
33410# Commands used to build a shared archive.
33411archive_cmds=$lt_archive_cmds
33412archive_expsym_cmds=$lt_archive_expsym_cmds
33413
33414# Commands used to build a loadable module if different from building
33415# a shared archive.
33416module_cmds=$lt_module_cmds
33417module_expsym_cmds=$lt_module_expsym_cmds
33418
33419# Whether we are building with GNU ld or not.
33420with_gnu_ld=$lt_with_gnu_ld
33421
33422# Flag that allows shared libraries with undefined symbols to be built.
33423allow_undefined_flag=$lt_allow_undefined_flag
33424
33425# Flag that enforces no undefined symbols.
33426no_undefined_flag=$lt_no_undefined_flag
33427
33428# Flag to hardcode \$libdir into a binary during linking.
33429# This must work even if \$libdir does not exist
33430hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33431
33432# If ld is used when linking, flag to hardcode \$libdir into a binary
33433# during linking. This must work even if \$libdir does not exist.
33434hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33435
33436# Whether we need a single "-rpath" flag with a separated argument.
33437hardcode_libdir_separator=$lt_hardcode_libdir_separator
33438
33439# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33440# DIR into the resulting binary.
33441hardcode_direct=$hardcode_direct
33442
33443# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33444# DIR into the resulting binary and the resulting library dependency is
33445# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33446# library is relocated.
33447hardcode_direct_absolute=$hardcode_direct_absolute
33448
33449# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33450# into the resulting binary.
33451hardcode_minus_L=$hardcode_minus_L
33452
33453# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33454# into the resulting binary.
33455hardcode_shlibpath_var=$hardcode_shlibpath_var
33456
33457# Set to "yes" if building a shared library automatically hardcodes DIR
33458# into the library and all subsequent libraries and executables linked
33459# against it.
33460hardcode_automatic=$hardcode_automatic
33461
33462# Set to yes if linker adds runtime paths of dependent libraries
33463# to runtime path list.
33464inherit_rpath=$inherit_rpath
33465
33466# Whether libtool must link a program against all its dependency libraries.
33467link_all_deplibs=$link_all_deplibs
33468
33469# Fix the shell variable \$srcfile for the compiler.
33470fix_srcfile_path=$lt_fix_srcfile_path
33471
33472# Set to "yes" if exported symbols are required.
33473always_export_symbols=$always_export_symbols
33474
33475# The commands to list exported symbols.
33476export_symbols_cmds=$lt_export_symbols_cmds
33477
33478# Symbols that should not be listed in the preloaded symbols.
33479exclude_expsyms=$lt_exclude_expsyms
33480
33481# Symbols that must always be exported.
33482include_expsyms=$lt_include_expsyms
33483
33484# Commands necessary for linking programs (against libraries) with templates.
33485prelink_cmds=$lt_prelink_cmds
33486
33487# Specify filename containing input files.
33488file_list_spec=$lt_file_list_spec
33489
33490# How to hardcode a shared library path into an executable.
33491hardcode_action=$hardcode_action
33492
33493# The directories searched by this compiler when creating a shared library.
33494compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33495
33496# Dependencies to place before and after the objects being linked to
33497# create a shared library.
33498predep_objects=$lt_predep_objects
33499postdep_objects=$lt_postdep_objects
33500predeps=$lt_predeps
33501postdeps=$lt_postdeps
33502
33503# The library search path used internally by the compiler when linking
33504# a shared library.
33505compiler_lib_search_path=$lt_compiler_lib_search_path
33506
33507# ### END LIBTOOL CONFIG
33508
33509_LT_EOF
33510
33511 case $host_os in
33512 aix3*)
33513 cat <<\_LT_EOF >> "$cfgfile"
33514# AIX sometimes has problems with the GCC collect2 program. For some
33515# reason, if we set the COLLECT_NAMES environment variable, the problems
33516# vanish in a puff of smoke.
33517if test "X${COLLECT_NAMES+set}" != Xset; then
33518 COLLECT_NAMES=
33519 export COLLECT_NAMES
33520fi
33521_LT_EOF
33522 ;;
33523 esac
33524
33525
33526ltmain="$ac_aux_dir/ltmain.sh"
33527
33528
33529 # We use sed instead of cat because bash on DJGPP gets confused if
33530 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33531 # text mode, it properly converts lines to CR/LF. This bash problem
33532 # is reportedly fixed, but why not run on old versions too?
33533 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33534 || (rm -f "$cfgfile"; exit 1)
33535
33536 case $xsi_shell in
33537 yes)
33538 cat << \_LT_EOF >> "$cfgfile"
33539
33540# func_dirname file append nondir_replacement
33541# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33542# otherwise set result to NONDIR_REPLACEMENT.
33543func_dirname ()
33544{
33545 case ${1} in
33546 */*) func_dirname_result="${1%/*}${2}" ;;
33547 * ) func_dirname_result="${3}" ;;
33548 esac
33549}
33550
33551# func_basename file
33552func_basename ()
33553{
33554 func_basename_result="${1##*/}"
33555}
33556
33557# func_dirname_and_basename file append nondir_replacement
33558# perform func_basename and func_dirname in a single function
33559# call:
33560# dirname: Compute the dirname of FILE. If nonempty,
33561# add APPEND to the result, otherwise set result
33562# to NONDIR_REPLACEMENT.
33563# value returned in "$func_dirname_result"
33564# basename: Compute filename of FILE.
33565# value retuned in "$func_basename_result"
33566# Implementation must be kept synchronized with func_dirname
33567# and func_basename. For efficiency, we do not delegate to
33568# those functions but instead duplicate the functionality here.
33569func_dirname_and_basename ()
33570{
33571 case ${1} in
33572 */*) func_dirname_result="${1%/*}${2}" ;;
33573 * ) func_dirname_result="${3}" ;;
33574 esac
33575 func_basename_result="${1##*/}"
33576}
33577
33578# func_stripname prefix suffix name
33579# strip PREFIX and SUFFIX off of NAME.
33580# PREFIX and SUFFIX must not contain globbing or regex special
33581# characters, hashes, percent signs, but SUFFIX may contain a leading
33582# dot (in which case that matches only a dot).
33583func_stripname ()
33584{
33585 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33586 # positional parameters, so assign one to ordinary parameter first.
33587 func_stripname_result=${3}
33588 func_stripname_result=${func_stripname_result#"${1}"}
33589 func_stripname_result=${func_stripname_result%"${2}"}
33590}
33591
33592# func_opt_split
33593func_opt_split ()
33594{
33595 func_opt_split_opt=${1%%=*}
33596 func_opt_split_arg=${1#*=}
33597}
33598
33599# func_lo2o object
33600func_lo2o ()
33601{
33602 case ${1} in
33603 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33604 *) func_lo2o_result=${1} ;;
33605 esac
33606}
33607
33608# func_xform libobj-or-source
33609func_xform ()
33610{
33611 func_xform_result=${1%.*}.lo
33612}
33613
33614# func_arith arithmetic-term...
33615func_arith ()
33616{
33617 func_arith_result=$(( $* ))
33618}
33619
33620# func_len string
33621# STRING may not start with a hyphen.
33622func_len ()
33623{
33624 func_len_result=${#1}
33625}
33626
33627_LT_EOF
33628 ;;
33629 *) # Bourne compatible functions.
33630 cat << \_LT_EOF >> "$cfgfile"
33631
33632# func_dirname file append nondir_replacement
33633# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33634# otherwise set result to NONDIR_REPLACEMENT.
33635func_dirname ()
33636{
33637 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000033638 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000033639 if test "X$func_dirname_result" = "X${1}"; then
33640 func_dirname_result="${3}"
33641 else
33642 func_dirname_result="$func_dirname_result${2}"
33643 fi
33644}
33645
33646# func_basename file
33647func_basename ()
33648{
cristy18304f92009-11-22 15:48:26 +000033649 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000033650}
33651
33652
33653# func_stripname prefix suffix name
33654# strip PREFIX and SUFFIX off of NAME.
33655# PREFIX and SUFFIX must not contain globbing or regex special
33656# characters, hashes, percent signs, but SUFFIX may contain a leading
33657# dot (in which case that matches only a dot).
33658# func_strip_suffix prefix name
33659func_stripname ()
33660{
33661 case ${2} in
cristy18304f92009-11-22 15:48:26 +000033662 .*) func_stripname_result=`$ECHO "X${3}" \
33663 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
33664 *) func_stripname_result=`$ECHO "X${3}" \
33665 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000033666 esac
33667}
33668
33669# sed scripts:
33670my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33671my_sed_long_arg='1s/^-[^=]*=//'
33672
33673# func_opt_split
33674func_opt_split ()
33675{
cristy18304f92009-11-22 15:48:26 +000033676 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
33677 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000033678}
33679
33680# func_lo2o object
33681func_lo2o ()
33682{
cristy18304f92009-11-22 15:48:26 +000033683 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000033684}
33685
33686# func_xform libobj-or-source
33687func_xform ()
33688{
cristy18304f92009-11-22 15:48:26 +000033689 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000033690}
33691
33692# func_arith arithmetic-term...
33693func_arith ()
33694{
33695 func_arith_result=`expr "$@"`
33696}
33697
33698# func_len string
33699# STRING may not start with a hyphen.
33700func_len ()
33701{
33702 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33703}
33704
33705_LT_EOF
33706esac
33707
33708case $lt_shell_append in
33709 yes)
33710 cat << \_LT_EOF >> "$cfgfile"
33711
33712# func_append var value
33713# Append VALUE to the end of shell variable VAR.
33714func_append ()
33715{
33716 eval "$1+=\$2"
33717}
33718_LT_EOF
33719 ;;
33720 *)
33721 cat << \_LT_EOF >> "$cfgfile"
33722
33723# func_append var value
33724# Append VALUE to the end of shell variable VAR.
33725func_append ()
33726{
33727 eval "$1=\$$1\$2"
33728}
33729
33730_LT_EOF
33731 ;;
33732 esac
33733
33734
33735 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33736 || (rm -f "$cfgfile"; exit 1)
33737
33738 mv -f "$cfgfile" "$ofile" ||
33739 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33740 chmod +x "$ofile"
33741
33742
33743 cat <<_LT_EOF >> "$ofile"
33744
33745# ### BEGIN LIBTOOL TAG CONFIG: CXX
33746
33747# The linker used to build libraries.
33748LD=$lt_LD_CXX
33749
33750# Commands used to build an old-style archive.
33751old_archive_cmds=$lt_old_archive_cmds_CXX
33752
33753# A language specific compiler.
33754CC=$lt_compiler_CXX
33755
33756# Is the compiler the GNU compiler?
33757with_gcc=$GCC_CXX
33758
33759# Compiler flag to turn off builtin functions.
33760no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33761
33762# How to pass a linker flag through the compiler.
33763wl=$lt_lt_prog_compiler_wl_CXX
33764
33765# Additional compiler flags for building library objects.
33766pic_flag=$lt_lt_prog_compiler_pic_CXX
33767
33768# Compiler flag to prevent dynamic linking.
33769link_static_flag=$lt_lt_prog_compiler_static_CXX
33770
33771# Does compiler simultaneously support -c and -o options?
33772compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33773
33774# Whether or not to add -lc for building shared libraries.
33775build_libtool_need_lc=$archive_cmds_need_lc_CXX
33776
33777# Whether or not to disallow shared libs when runtime libs are static.
33778allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33779
33780# Compiler flag to allow reflexive dlopens.
33781export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33782
33783# Compiler flag to generate shared objects directly from archives.
33784whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33785
33786# Whether the compiler copes with passing no objects directly.
33787compiler_needs_object=$lt_compiler_needs_object_CXX
33788
33789# Create an old-style archive from a shared archive.
33790old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33791
33792# Create a temporary old-style archive to link instead of a shared archive.
33793old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33794
33795# Commands used to build a shared archive.
33796archive_cmds=$lt_archive_cmds_CXX
33797archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33798
33799# Commands used to build a loadable module if different from building
33800# a shared archive.
33801module_cmds=$lt_module_cmds_CXX
33802module_expsym_cmds=$lt_module_expsym_cmds_CXX
33803
33804# Whether we are building with GNU ld or not.
33805with_gnu_ld=$lt_with_gnu_ld_CXX
33806
33807# Flag that allows shared libraries with undefined symbols to be built.
33808allow_undefined_flag=$lt_allow_undefined_flag_CXX
33809
33810# Flag that enforces no undefined symbols.
33811no_undefined_flag=$lt_no_undefined_flag_CXX
33812
33813# Flag to hardcode \$libdir into a binary during linking.
33814# This must work even if \$libdir does not exist
33815hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33816
33817# If ld is used when linking, flag to hardcode \$libdir into a binary
33818# during linking. This must work even if \$libdir does not exist.
33819hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33820
33821# Whether we need a single "-rpath" flag with a separated argument.
33822hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33823
33824# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33825# DIR into the resulting binary.
33826hardcode_direct=$hardcode_direct_CXX
33827
33828# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33829# DIR into the resulting binary and the resulting library dependency is
33830# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33831# library is relocated.
33832hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33833
33834# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33835# into the resulting binary.
33836hardcode_minus_L=$hardcode_minus_L_CXX
33837
33838# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33839# into the resulting binary.
33840hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33841
33842# Set to "yes" if building a shared library automatically hardcodes DIR
33843# into the library and all subsequent libraries and executables linked
33844# against it.
33845hardcode_automatic=$hardcode_automatic_CXX
33846
33847# Set to yes if linker adds runtime paths of dependent libraries
33848# to runtime path list.
33849inherit_rpath=$inherit_rpath_CXX
33850
33851# Whether libtool must link a program against all its dependency libraries.
33852link_all_deplibs=$link_all_deplibs_CXX
33853
33854# Fix the shell variable \$srcfile for the compiler.
33855fix_srcfile_path=$lt_fix_srcfile_path_CXX
33856
33857# Set to "yes" if exported symbols are required.
33858always_export_symbols=$always_export_symbols_CXX
33859
33860# The commands to list exported symbols.
33861export_symbols_cmds=$lt_export_symbols_cmds_CXX
33862
33863# Symbols that should not be listed in the preloaded symbols.
33864exclude_expsyms=$lt_exclude_expsyms_CXX
33865
33866# Symbols that must always be exported.
33867include_expsyms=$lt_include_expsyms_CXX
33868
33869# Commands necessary for linking programs (against libraries) with templates.
33870prelink_cmds=$lt_prelink_cmds_CXX
33871
33872# Specify filename containing input files.
33873file_list_spec=$lt_file_list_spec_CXX
33874
33875# How to hardcode a shared library path into an executable.
33876hardcode_action=$hardcode_action_CXX
33877
33878# The directories searched by this compiler when creating a shared library.
33879compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33880
33881# Dependencies to place before and after the objects being linked to
33882# create a shared library.
33883predep_objects=$lt_predep_objects_CXX
33884postdep_objects=$lt_postdep_objects_CXX
33885predeps=$lt_predeps_CXX
33886postdeps=$lt_postdeps_CXX
33887
33888# The library search path used internally by the compiler when linking
33889# a shared library.
33890compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33891
33892# ### END LIBTOOL TAG CONFIG: CXX
33893_LT_EOF
33894
33895 ;;
33896 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
33897 "Magick-config.in":C) chmod +x magick/Magick-config ;;
33898 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
33899 "Wand-config.in":C) chmod +x wand/Wand-config ;;
33900 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
33901 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
33902
33903 esac
33904done # for ac_tag
33905
33906
cristy8b350f62009-11-15 23:12:43 +000033907as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000033908_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000033909ac_clean_files=$ac_clean_files_save
33910
33911test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000033912 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033913
33914
33915# configure is writing to config.log, and then calls config.status.
33916# config.status does its own redirection, appending to config.log.
33917# Unfortunately, on DOS this fails, as config.log is still kept open
33918# by configure, so config.status won't be able to write to it; its
33919# output is simply discarded. So we exec the FD to /dev/null,
33920# effectively closing config.log, so it can be properly (re)opened and
33921# appended to by config.status. When coming back to configure, we
33922# need to make the FD available again.
33923if test "$no_create" != yes; then
33924 ac_cs_success=:
33925 ac_config_status_args=
33926 test "$silent" = yes &&
33927 ac_config_status_args="$ac_config_status_args --quiet"
33928 exec 5>/dev/null
33929 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33930 exec 5>>config.log
33931 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33932 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000033933 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000033934fi
33935if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000033936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000033937$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33938fi
33939
33940
33941rm -f magick-version
33942
33943result_ghostscript_font_dir='none'
33944if test "${ghostscript_font_dir}x" != 'x'; then
33945 result_ghostscript_font_dir=$ghostscript_font_dir
33946fi
33947
33948result_windows_font_dir='none'
33949if test "${windows_font_dir}x" != 'x'; then
33950 result_windows_font_dir=${windows_font_dir}
33951fi
33952
cristy8b350f62009-11-15 23:12:43 +000033953{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000033954ImageMagick is configured as follows. Please verify that this configuration
33955matches your expectations.
33956
33957Host system type: $host
33958Build system type: $build
33959
33960 Option Value
33961-------------------------------------------------------------------------------
33962Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33963Static libraries --enable-static=$enable_static $libtool_build_static_libs
33964Module support --with-modules=$with_modules $with_modules
33965GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33966Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33967High Dynamic Range Imagery
33968 --enable-hdri=$enable_hdri $enable_hdri
33969
33970Delegate Configuration:
33971BZLIB --with-bzlib=$with_bzlib $have_bzlib
33972Autotrace --with-autotrace=$with_autotrace $have_autotrace
33973DJVU --with-djvu=$with_djvu $have_djvu
33974DPS --with-dps=$with_dps $have_dps
33975FFTW --with-fftw=$with_fftw $have_fftw
33976FlashPIX --with-fpx=$with_fpx $have_fpx
33977FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33978FreeType --with-freetype=$with_freetype $have_freetype
33979GhostPCL None $PCLDelegate ($PCLVersion)
33980GhostXPS None $XPSDelegate ($XPSVersion)
33981Ghostscript None $PSDelegate ($GSVersion)
33982Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33983Ghostscript lib --with-gslib=$with_gslib $have_gslib
33984Graphviz --with-gvc=$with_gvc $have_gvc
33985JBIG --with-jbig=$with_jbig $have_jbig
33986JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33987JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33988LCMS --with-lcms=$with_lcms $have_lcms
33989LQR --with-lqr=$with_lqr $have_lqr
33990Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33991OpenEXR --with-openexr=$with_openexr $have_openexr
33992PERL --with-perl=$with_perl $have_perl
33993PNG --with-png=$with_png $have_png
33994RSVG --with-rsvg=$with_rsvg $have_rsvg
33995TIFF --with-tiff=$with_tiff $have_tiff
33996Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33997WMF --with-wmf=$with_wmf $have_wmf
33998X11 --with-x=$with_x $have_x
33999XML --with-xml=$with_xml $have_xml
34000ZLIB --with-zlib=$with_zlib $have_zlib
34001
34002X11 Configuration:
34003 X_CFLAGS = $X_CFLAGS
34004 X_PRE_LIBS = $X_PRE_LIBS
34005 X_LIBS = $X_LIBS
34006 X_EXTRA_LIBS = $X_EXTRA_LIBS
34007
34008Options used to compile and link:
34009 PREFIX = $PREFIX_DIR
34010 EXEC-PREFIX = $EXEC_PREFIX_DIR
34011 VERSION = $PACKAGE_VERSION
34012 CC = $CC
34013 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034014 CPPFLAGS = $MAGICK_CPPFLAGS
34015 PCFLAGS = $MAGICK_PCFLAGS
34016 DEFS = $DEFS
34017 LDFLAGS = $LDFLAGS
34018 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34019 LIBS = $MAGICK_LIBS
34020 CXX = $CXX
34021 CXXFLAGS = $CXXFLAGS
34022" >&5
34023$as_echo "
34024ImageMagick is configured as follows. Please verify that this configuration
34025matches your expectations.
34026
34027Host system type: $host
34028Build system type: $build
34029
34030 Option Value
34031-------------------------------------------------------------------------------
34032Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34033Static libraries --enable-static=$enable_static $libtool_build_static_libs
34034Module support --with-modules=$with_modules $with_modules
34035GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34036Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34037High Dynamic Range Imagery
34038 --enable-hdri=$enable_hdri $enable_hdri
34039
34040Delegate Configuration:
34041BZLIB --with-bzlib=$with_bzlib $have_bzlib
34042Autotrace --with-autotrace=$with_autotrace $have_autotrace
34043DJVU --with-djvu=$with_djvu $have_djvu
34044DPS --with-dps=$with_dps $have_dps
34045FFTW --with-fftw=$with_fftw $have_fftw
34046FlashPIX --with-fpx=$with_fpx $have_fpx
34047FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34048FreeType --with-freetype=$with_freetype $have_freetype
34049GhostPCL None $PCLDelegate ($PCLVersion)
34050GhostXPS None $XPSDelegate ($XPSVersion)
34051Ghostscript None $PSDelegate ($GSVersion)
34052Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34053Ghostscript lib --with-gslib=$with_gslib $have_gslib
34054Graphviz --with-gvc=$with_gvc $have_gvc
34055JBIG --with-jbig=$with_jbig $have_jbig
34056JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34057JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34058LCMS --with-lcms=$with_lcms $have_lcms
34059LQR --with-lqr=$with_lqr $have_lqr
34060Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34061OpenEXR --with-openexr=$with_openexr $have_openexr
34062PERL --with-perl=$with_perl $have_perl
34063PNG --with-png=$with_png $have_png
34064RSVG --with-rsvg=$with_rsvg $have_rsvg
34065TIFF --with-tiff=$with_tiff $have_tiff
34066Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
34067WMF --with-wmf=$with_wmf $have_wmf
34068X11 --with-x=$with_x $have_x
34069XML --with-xml=$with_xml $have_xml
34070ZLIB --with-zlib=$with_zlib $have_zlib
34071
34072X11 Configuration:
34073 X_CFLAGS = $X_CFLAGS
34074 X_PRE_LIBS = $X_PRE_LIBS
34075 X_LIBS = $X_LIBS
34076 X_EXTRA_LIBS = $X_EXTRA_LIBS
34077
34078Options used to compile and link:
34079 PREFIX = $PREFIX_DIR
34080 EXEC-PREFIX = $EXEC_PREFIX_DIR
34081 VERSION = $PACKAGE_VERSION
34082 CC = $CC
34083 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034084 CPPFLAGS = $MAGICK_CPPFLAGS
34085 PCFLAGS = $MAGICK_PCFLAGS
34086 DEFS = $DEFS
34087 LDFLAGS = $LDFLAGS
34088 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34089 LIBS = $MAGICK_LIBS
34090 CXX = $CXX
34091 CXXFLAGS = $CXXFLAGS
34092" >&6; }