blob: e73b51827571815ab8aa0b13e5a978a225658954 [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#
3992# Evaluate shell variable equivalents to Makefile directory variables
3993#
3994if test "x$prefix" = xNONE; then
3995 prefix=$ac_default_prefix
3996fi
3997# Let make expand exec_prefix.
3998if test "x$exec_prefix" = xNONE; then
3999 exec_prefix='${prefix}'
4000fi
4001
4002#
4003eval "eval PREFIX_DIR=${prefix}"
4004
4005eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4006
4007eval "eval BIN_DIR=$bindir"
4008
4009eval "eval SBIN_DIR=$sbindir"
4010
4011eval "eval LIBEXEC_DIR=$libexecdir"
4012
4013eval "eval DATA_DIR=$datadir"
4014
4015eval "eval SYSCONF_DIR=$sysconfdir"
4016
4017eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4018
4019eval "eval LOCALSTATE_DIR=$localstatedir"
4020
4021eval "eval LIB_DIR=$libdir"
4022
4023eval "eval INCLUDE_DIR=$includedir"
4024
4025eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4026
4027eval "eval INFO_DIR=$infodir"
4028
4029eval "eval MAN_DIR=$mandir"
4030
4031
4032# Get full paths to source and build directories
4033srcdirfull="`cd $srcdir && pwd`"
4034builddir="`pwd`"
4035
4036#
4037# Compute variables useful for running uninstalled software.
4038#
4039MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4040MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4041MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4042MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4043DIRSEP=':'
4044case "${build_os}" in
4045 mingw* )
4046 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4047 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4048 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4049 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4050 DIRSEP=';'
4051 ;;
4052esac
4053case "${host_os}" in
4054 mingw* )
4055 DIRSEP=';'
4056 ;;
4057esac
4058
4059
4060
4061
4062
4063
4064# Check for programs
4065ac_ext=c
4066ac_cpp='$CPP $CPPFLAGS'
4067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070if test -n "$ac_tool_prefix"; then
4071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4072set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004074$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004075if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004076 $as_echo_n "(cached) " >&6
4077else
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4080else
4081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082for as_dir in $PATH
4083do
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004086 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004090 break 2
4091 fi
4092done
cristy8b350f62009-11-15 23:12:43 +00004093 done
cristy3ed852e2009-09-05 21:47:34 +00004094IFS=$as_save_IFS
4095
4096fi
4097fi
4098CC=$ac_cv_prog_CC
4099if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004101$as_echo "$CC" >&6; }
4102else
cristy8b350f62009-11-15 23:12:43 +00004103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004104$as_echo "no" >&6; }
4105fi
4106
4107
4108fi
4109if test -z "$ac_cv_prog_CC"; then
4110 ac_ct_CC=$CC
4111 # Extract the first word of "gcc", so it can be a program name with args.
4112set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004114$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004115if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004116 $as_echo_n "(cached) " >&6
4117else
4118 if test -n "$ac_ct_CC"; then
4119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4120else
4121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH
4123do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004126 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004130 break 2
4131 fi
4132done
cristy8b350f62009-11-15 23:12:43 +00004133 done
cristy3ed852e2009-09-05 21:47:34 +00004134IFS=$as_save_IFS
4135
4136fi
4137fi
4138ac_ct_CC=$ac_cv_prog_ac_ct_CC
4139if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004141$as_echo "$ac_ct_CC" >&6; }
4142else
cristy8b350f62009-11-15 23:12:43 +00004143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004144$as_echo "no" >&6; }
4145fi
4146
4147 if test "x$ac_ct_CC" = x; then
4148 CC=""
4149 else
4150 case $cross_compiling:$ac_tool_warned in
4151yes:)
cristy8b350f62009-11-15 23:12:43 +00004152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154ac_tool_warned=yes ;;
4155esac
4156 CC=$ac_ct_CC
4157 fi
4158else
4159 CC="$ac_cv_prog_CC"
4160fi
4161
4162if test -z "$CC"; then
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4165set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004167$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004168if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004169 $as_echo_n "(cached) " >&6
4170else
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4173else
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004179 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004183 break 2
4184 fi
4185done
cristy8b350f62009-11-15 23:12:43 +00004186 done
cristy3ed852e2009-09-05 21:47:34 +00004187IFS=$as_save_IFS
4188
4189fi
4190fi
4191CC=$ac_cv_prog_CC
4192if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004194$as_echo "$CC" >&6; }
4195else
cristy8b350f62009-11-15 23:12:43 +00004196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004197$as_echo "no" >&6; }
4198fi
4199
4200
4201 fi
4202fi
4203if test -z "$CC"; then
4204 # Extract the first word of "cc", so it can be a program name with args.
4205set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004207$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004208if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004209 $as_echo_n "(cached) " >&6
4210else
4211 if test -n "$CC"; then
4212 ac_cv_prog_CC="$CC" # Let the user override the test.
4213else
4214 ac_prog_rejected=no
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004220 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4223 ac_prog_rejected=yes
4224 continue
4225 fi
4226 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004228 break 2
4229 fi
4230done
cristy8b350f62009-11-15 23:12:43 +00004231 done
cristy3ed852e2009-09-05 21:47:34 +00004232IFS=$as_save_IFS
4233
4234if test $ac_prog_rejected = yes; then
4235 # We found a bogon in the path, so make sure we never use it.
4236 set dummy $ac_cv_prog_CC
4237 shift
4238 if test $# != 0; then
4239 # We chose a different compiler from the bogus one.
4240 # However, it has the same basename, so the bogon will be chosen
4241 # first if we set CC to just the basename; use the full file name.
4242 shift
4243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4244 fi
4245fi
4246fi
4247fi
4248CC=$ac_cv_prog_CC
4249if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004251$as_echo "$CC" >&6; }
4252else
cristy8b350f62009-11-15 23:12:43 +00004253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004254$as_echo "no" >&6; }
4255fi
4256
4257
4258fi
4259if test -z "$CC"; then
4260 if test -n "$ac_tool_prefix"; then
4261 for ac_prog in cl.exe
4262 do
4263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4264set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004266$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004267if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004268 $as_echo_n "(cached) " >&6
4269else
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4272else
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004282 break 2
4283 fi
4284done
cristy8b350f62009-11-15 23:12:43 +00004285 done
cristy3ed852e2009-09-05 21:47:34 +00004286IFS=$as_save_IFS
4287
4288fi
4289fi
4290CC=$ac_cv_prog_CC
4291if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004293$as_echo "$CC" >&6; }
4294else
cristy8b350f62009-11-15 23:12:43 +00004295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004296$as_echo "no" >&6; }
4297fi
4298
4299
4300 test -n "$CC" && break
4301 done
4302fi
4303if test -z "$CC"; then
4304 ac_ct_CC=$CC
4305 for ac_prog in cl.exe
4306do
4307 # Extract the first word of "$ac_prog", so it can be a program name with args.
4308set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004310$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004311if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004312 $as_echo_n "(cached) " >&6
4313else
4314 if test -n "$ac_ct_CC"; then
4315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4316else
4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004326 break 2
4327 fi
4328done
cristy8b350f62009-11-15 23:12:43 +00004329 done
cristy3ed852e2009-09-05 21:47:34 +00004330IFS=$as_save_IFS
4331
4332fi
4333fi
4334ac_ct_CC=$ac_cv_prog_ac_ct_CC
4335if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004337$as_echo "$ac_ct_CC" >&6; }
4338else
cristy8b350f62009-11-15 23:12:43 +00004339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004340$as_echo "no" >&6; }
4341fi
4342
4343
4344 test -n "$ac_ct_CC" && break
4345done
4346
4347 if test "x$ac_ct_CC" = x; then
4348 CC=""
4349 else
4350 case $cross_compiling:$ac_tool_warned in
4351yes:)
cristy8b350f62009-11-15 23:12:43 +00004352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354ac_tool_warned=yes ;;
4355esac
4356 CC=$ac_ct_CC
4357 fi
4358fi
4359
4360fi
4361
4362
cristy8b350f62009-11-15 23:12:43 +00004363test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004365as_fn_error "no acceptable C compiler found in \$PATH
4366See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004367
4368# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004369$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004370set X $ac_compile
4371ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004372for ac_option in --version -v -V -qversion; do
4373 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004374case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377esac
cristy8b350f62009-11-15 23:12:43 +00004378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379$as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004381 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004382 if test -s conftest.err; then
4383 sed '10a\
4384... rest of stderr output deleted ...
4385 10q' conftest.err >conftest.er1
4386 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004387 fi
cristycd4c5312009-11-22 01:19:08 +00004388 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }
4391done
cristy3ed852e2009-09-05 21:47:34 +00004392
cristy8b350f62009-11-15 23:12:43 +00004393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004394/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004395
cristy3ed852e2009-09-05 21:47:34 +00004396int
4397main ()
4398{
4399
4400 ;
4401 return 0;
4402}
4403_ACEOF
4404ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004405ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004406# Try to create an executable without -o first, disregard a.out.
4407# It will help us diagnose broken compilers, and finding out an intuition
4408# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4410$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004411ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4412
4413# The possible output files:
4414ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4415
4416ac_rmfiles=
4417for ac_file in $ac_files
4418do
4419 case $ac_file in
4420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4422 esac
4423done
4424rm -f $ac_rmfiles
4425
cristy8b350f62009-11-15 23:12:43 +00004426if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004427case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4430esac
cristy8b350f62009-11-15 23:12:43 +00004431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004433 (eval "$ac_link_default") 2>&5
4434 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4438# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4439# in a Makefile. We should not override ac_cv_exeext if it was cached,
4440# so that the user can short-circuit this test for compilers unknown to
4441# Autoconf.
4442for ac_file in $ac_files ''
4443do
4444 test -f "$ac_file" || continue
4445 case $ac_file in
4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4447 ;;
4448 [ab].out )
4449 # We found the default executable, but exeext='' is most
4450 # certainly right.
4451 break;;
4452 *.* )
cristy8b350f62009-11-15 23:12:43 +00004453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004454 then :; else
4455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4456 fi
4457 # We set ac_cv_exeext here because the later test for it is not
4458 # safe: cross compilers may not add the suffix if given an `-o'
4459 # argument, so we may need to know it at that point already.
4460 # Even if this section looks crufty: it has the advantage of
4461 # actually working.
4462 break;;
4463 * )
4464 break;;
4465 esac
4466done
4467test "$ac_cv_exeext" = no && ac_cv_exeext=
4468
4469else
4470 ac_file=''
4471fi
cristy8b350f62009-11-15 23:12:43 +00004472if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474$as_echo "no" >&6; }
4475$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004476sed 's/^/| /' conftest.$ac_ext >&5
4477
cristy8b350f62009-11-15 23:12:43 +00004478{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004480{ as_fn_set_status 77
4481as_fn_error "C compiler cannot create executables
4482See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004483else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4485$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004486fi
cristycd4c5312009-11-22 01:19:08 +00004487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4488$as_echo_n "checking for C compiler default output file name... " >&6; }
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4490$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004491ac_exeext=$ac_cv_exeext
4492
cristycd4c5312009-11-22 01:19:08 +00004493rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004494ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004496$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004497if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004498case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501esac
cristy8b350f62009-11-15 23:12:43 +00004502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004504 (eval "$ac_link") 2>&5
4505 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004508 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4509# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4510# work properly (i.e., refer to `conftest.exe'), while it won't with
4511# `rm'.
4512for ac_file in conftest.exe conftest conftest.*; do
4513 test -f "$ac_file" || continue
4514 case $ac_file in
4515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4516 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4517 break;;
4518 * ) break;;
4519 esac
4520done
4521else
cristy8b350f62009-11-15 23:12:43 +00004522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004524as_fn_error "cannot compute suffix of executables: cannot compile and link
4525See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004526fi
cristycd4c5312009-11-22 01:19:08 +00004527rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004529$as_echo "$ac_cv_exeext" >&6; }
4530
4531rm -f conftest.$ac_ext
4532EXEEXT=$ac_cv_exeext
4533ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h. */
4536#include <stdio.h>
4537int
4538main ()
4539{
4540FILE *f = fopen ("conftest.out", "w");
4541 return ferror (f) || fclose (f) != 0;
4542
4543 ;
4544 return 0;
4545}
4546_ACEOF
4547ac_clean_files="$ac_clean_files conftest.out"
4548# Check that the compiler produces executables we can run. If not, either
4549# the compiler is broken, or we cross compile.
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4551$as_echo_n "checking whether we are cross compiling... " >&6; }
4552if test "$cross_compiling" != yes; then
4553 { { ac_try="$ac_link"
4554case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557esac
4558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4559$as_echo "$ac_try_echo"; } >&5
4560 (eval "$ac_link") 2>&5
4561 ac_status=$?
4562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4563 test $ac_status = 0; }
4564 if { ac_try='./conftest$ac_cv_exeext'
4565 { { case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568esac
4569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570$as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_try") 2>&5
4572 ac_status=$?
4573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574 test $ac_status = 0; }; }; then
4575 cross_compiling=no
4576 else
4577 if test "$cross_compiling" = maybe; then
4578 cross_compiling=yes
4579 else
4580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4582as_fn_error "cannot run C compiled programs.
4583If you meant to cross compile, use \`--host'.
4584See \`config.log' for more details." "$LINENO" 5; }
4585 fi
4586 fi
4587fi
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4589$as_echo "$cross_compiling" >&6; }
4590
4591rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4592ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004594$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004595if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004596 $as_echo_n "(cached) " >&6
4597else
cristy8b350f62009-11-15 23:12:43 +00004598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004599/* end confdefs.h. */
4600
4601int
4602main ()
4603{
4604
4605 ;
4606 return 0;
4607}
4608_ACEOF
4609rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004610if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004611case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614esac
cristy8b350f62009-11-15 23:12:43 +00004615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4616$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004617 (eval "$ac_compile") 2>&5
4618 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4620 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004621 for ac_file in conftest.o conftest.obj conftest.*; do
4622 test -f "$ac_file" || continue;
4623 case $ac_file in
4624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4625 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4626 break;;
4627 esac
4628done
4629else
4630 $as_echo "$as_me: failed program was:" >&5
4631sed 's/^/| /' conftest.$ac_ext >&5
4632
cristy8b350f62009-11-15 23:12:43 +00004633{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004635as_fn_error "cannot compute suffix of object files: cannot compile
4636See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004637fi
cristy3ed852e2009-09-05 21:47:34 +00004638rm -f conftest.$ac_cv_objext conftest.$ac_ext
4639fi
cristy8b350f62009-11-15 23:12:43 +00004640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004641$as_echo "$ac_cv_objext" >&6; }
4642OBJEXT=$ac_cv_objext
4643ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004645$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004646if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004647 $as_echo_n "(cached) " >&6
4648else
cristy8b350f62009-11-15 23:12:43 +00004649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004650/* end confdefs.h. */
4651
4652int
4653main ()
4654{
4655#ifndef __GNUC__
4656 choke me
4657#endif
4658
4659 ;
4660 return 0;
4661}
4662_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004663if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004664 ac_compiler_gnu=yes
4665else
cristy8b350f62009-11-15 23:12:43 +00004666 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004667fi
cristy3ed852e2009-09-05 21:47:34 +00004668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669ac_cv_c_compiler_gnu=$ac_compiler_gnu
4670
4671fi
cristy8b350f62009-11-15 23:12:43 +00004672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004673$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4674if test $ac_compiler_gnu = yes; then
4675 GCC=yes
4676else
4677 GCC=
4678fi
4679ac_test_CFLAGS=${CFLAGS+set}
4680ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004683if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004684 $as_echo_n "(cached) " >&6
4685else
4686 ac_save_c_werror_flag=$ac_c_werror_flag
4687 ac_c_werror_flag=yes
4688 ac_cv_prog_cc_g=no
4689 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004691/* end confdefs.h. */
4692
4693int
4694main ()
4695{
4696
4697 ;
4698 return 0;
4699}
4700_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004701if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004702 ac_cv_prog_cc_g=yes
4703else
cristy8b350f62009-11-15 23:12:43 +00004704 CFLAGS=""
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004706/* end confdefs.h. */
4707
4708int
4709main ()
4710{
4711
4712 ;
4713 return 0;
4714}
4715_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004716if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004717
cristy8b350f62009-11-15 23:12:43 +00004718else
4719 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004720 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004722/* end confdefs.h. */
4723
4724int
4725main ()
4726{
4727
4728 ;
4729 return 0;
4730}
4731_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004732if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004733 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004734fi
cristy3ed852e2009-09-05 21:47:34 +00004735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736fi
cristy3ed852e2009-09-05 21:47:34 +00004737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738fi
cristy3ed852e2009-09-05 21:47:34 +00004739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 ac_c_werror_flag=$ac_save_c_werror_flag
4741fi
cristy8b350f62009-11-15 23:12:43 +00004742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004743$as_echo "$ac_cv_prog_cc_g" >&6; }
4744if test "$ac_test_CFLAGS" = set; then
4745 CFLAGS=$ac_save_CFLAGS
4746elif test $ac_cv_prog_cc_g = yes; then
4747 if test "$GCC" = yes; then
4748 CFLAGS="-g -O2"
4749 else
4750 CFLAGS="-g"
4751 fi
4752else
4753 if test "$GCC" = yes; then
4754 CFLAGS="-O2"
4755 else
4756 CFLAGS=
4757 fi
4758fi
cristy8b350f62009-11-15 23:12:43 +00004759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004760$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004761if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004762 $as_echo_n "(cached) " >&6
4763else
4764 ac_cv_prog_cc_c89=no
4765ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004767/* end confdefs.h. */
4768#include <stdarg.h>
4769#include <stdio.h>
4770#include <sys/types.h>
4771#include <sys/stat.h>
4772/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4773struct buf { int x; };
4774FILE * (*rcsopen) (struct buf *, struct stat *, int);
4775static char *e (p, i)
4776 char **p;
4777 int i;
4778{
4779 return p[i];
4780}
4781static char *f (char * (*g) (char **, int), char **p, ...)
4782{
4783 char *s;
4784 va_list v;
4785 va_start (v,p);
4786 s = g (p, va_arg (v,int));
4787 va_end (v);
4788 return s;
4789}
4790
4791/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4792 function prototypes and stuff, but not '\xHH' hex character constants.
4793 These don't provoke an error unfortunately, instead are silently treated
4794 as 'x'. The following induces an error, until -std is added to get
4795 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4796 array size at least. It's necessary to write '\x00'==0 to get something
4797 that's true only with -std. */
4798int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4799
4800/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4801 inside strings and character constants. */
4802#define FOO(x) 'x'
4803int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4804
4805int test (int i, double x);
4806struct s1 {int (*f) (int a);};
4807struct s2 {int (*f) (double a);};
4808int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4809int argc;
4810char **argv;
4811int
4812main ()
4813{
4814return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4815 ;
4816 return 0;
4817}
4818_ACEOF
4819for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4820 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4821do
4822 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004823 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004824 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004825fi
cristy3ed852e2009-09-05 21:47:34 +00004826rm -f core conftest.err conftest.$ac_objext
4827 test "x$ac_cv_prog_cc_c89" != "xno" && break
4828done
4829rm -f conftest.$ac_ext
4830CC=$ac_save_CC
4831
4832fi
4833# AC_CACHE_VAL
4834case "x$ac_cv_prog_cc_c89" in
4835 x)
cristy8b350f62009-11-15 23:12:43 +00004836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004837$as_echo "none needed" >&6; } ;;
4838 xno)
cristy8b350f62009-11-15 23:12:43 +00004839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004840$as_echo "unsupported" >&6; } ;;
4841 *)
4842 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004844$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4845esac
cristy8b350f62009-11-15 23:12:43 +00004846if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004847
cristy8b350f62009-11-15 23:12:43 +00004848fi
cristy3ed852e2009-09-05 21:47:34 +00004849
4850ac_ext=c
4851ac_cpp='$CPP $CPPFLAGS'
4852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855DEPDIR="${am__leading_dot}deps"
4856
4857ac_config_commands="$ac_config_commands depfiles"
4858
4859
4860am_make=${MAKE-make}
4861cat > confinc << 'END'
4862am__doit:
4863 @echo this is the am__doit target
4864.PHONY: am__doit
4865END
4866# If we don't find an include directive, just comment out the code.
cristy8b350f62009-11-15 23:12:43 +00004867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cristy3ed852e2009-09-05 21:47:34 +00004868$as_echo_n "checking for style of include used by $am_make... " >&6; }
4869am__include="#"
4870am__quote=
4871_am_result=none
4872# First try GNU make style include.
4873echo "include confinc" > confmf
4874# Ignore all kinds of additional output from `make'.
4875case `$am_make -s -f confmf 2> /dev/null` in #(
4876*the\ am__doit\ target*)
4877 am__include=include
4878 am__quote=
4879 _am_result=GNU
4880 ;;
4881esac
4882# Now try BSD make style include.
4883if test "$am__include" = "#"; then
4884 echo '.include "confinc"' > confmf
4885 case `$am_make -s -f confmf 2> /dev/null` in #(
4886 *the\ am__doit\ target*)
4887 am__include=.include
4888 am__quote="\""
4889 _am_result=BSD
4890 ;;
4891 esac
4892fi
4893
4894
cristy8b350f62009-11-15 23:12:43 +00004895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cristy3ed852e2009-09-05 21:47:34 +00004896$as_echo "$_am_result" >&6; }
4897rm -f confinc confmf
4898
4899# Check whether --enable-dependency-tracking was given.
cristy8b350f62009-11-15 23:12:43 +00004900if test "${enable_dependency_tracking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004901 enableval=$enable_dependency_tracking;
4902fi
4903
4904if test "x$enable_dependency_tracking" != xno; then
4905 am_depcomp="$ac_aux_dir/depcomp"
4906 AMDEPBACKSLASH='\'
4907fi
4908 if test "x$enable_dependency_tracking" != xno; then
4909 AMDEP_TRUE=
4910 AMDEP_FALSE='#'
4911else
4912 AMDEP_TRUE='#'
4913 AMDEP_FALSE=
4914fi
4915
4916
4917
4918depcc="$CC" am_compiler_list=
4919
cristy8b350f62009-11-15 23:12:43 +00004920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00004921$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004922if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004923 $as_echo_n "(cached) " >&6
4924else
4925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4926 # We make a subdir and do the tests there. Otherwise we can end up
4927 # making bogus files that we don't know about and never remove. For
4928 # instance it was reported that on HP-UX the gcc test will end up
4929 # making a dummy file named `D' -- because `-MD' means `put the output
4930 # in D'.
4931 mkdir conftest.dir
4932 # Copy depcomp to subdir because otherwise we won't find it if we're
4933 # using a relative directory.
4934 cp "$am_depcomp" conftest.dir
4935 cd conftest.dir
4936 # We will build objects and dependencies in a subdirectory because
4937 # it helps to detect inapplicable dependency modes. For instance
4938 # both Tru64's cc and ICC support -MD to output dependencies as a
4939 # side effect of compilation, but ICC will put the dependencies in
4940 # the current directory while Tru64 will put them in the object
4941 # directory.
4942 mkdir sub
4943
4944 am_cv_CC_dependencies_compiler_type=none
4945 if test "$am_compiler_list" = ""; then
4946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4947 fi
4948 am__universal=false
4949 case " $depcc " in #(
4950 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4951 esac
4952
4953 for depmode in $am_compiler_list; do
4954 # Setup a source with many dependencies, because some compilers
4955 # like to wrap large dependency lists on column 80 (with \), and
4956 # we should not choose a depcomp mode which is confused by this.
4957 #
4958 # We need to recreate these files for each test, as the compiler may
4959 # overwrite some of them when testing with obscure command lines.
4960 # This happens at least with the AIX C compiler.
4961 : > sub/conftest.c
4962 for i in 1 2 3 4 5 6; do
4963 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4964 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4965 # Solaris 8's {/usr,}/bin/sh.
4966 touch sub/conftst$i.h
4967 done
4968 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4969
4970 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4971 # mode. It turns out that the SunPro C++ compiler does not properly
4972 # handle `-M -o', and we need to detect this. Also, some Intel
4973 # versions had trouble with output in subdirs
4974 am__obj=sub/conftest.${OBJEXT-o}
4975 am__minus_obj="-o $am__obj"
4976 case $depmode in
4977 gcc)
4978 # This depmode causes a compiler race in universal mode.
4979 test "$am__universal" = false || continue
4980 ;;
4981 nosideeffect)
4982 # after this tag, mechanisms are not by side-effect, so they'll
4983 # only be used when explicitly requested
4984 if test "x$enable_dependency_tracking" = xyes; then
4985 continue
4986 else
4987 break
4988 fi
4989 ;;
4990 msvisualcpp | msvcmsys)
4991 # This compiler won't grok `-c -o', but also, the minuso test has
4992 # not run yet. These depmodes are late enough in the game, and
4993 # so weak that their functioning should not be impacted.
4994 am__obj=conftest.${OBJEXT-o}
4995 am__minus_obj=
4996 ;;
4997 none) break ;;
4998 esac
4999 if depmode=$depmode \
5000 source=sub/conftest.c object=$am__obj \
5001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5002 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5003 >/dev/null 2>conftest.err &&
5004 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5005 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5006 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5007 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5008 # icc doesn't choke on unknown options, it will just issue warnings
5009 # or remarks (even with -Werror). So we grep stderr for any message
5010 # that says an option was ignored or not supported.
5011 # When given -MP, icc 7.0 and 7.1 complain thusly:
5012 # icc: Command line warning: ignoring option '-M'; no argument required
5013 # The diagnosis changed in icc 8.0:
5014 # icc: Command line remark: option '-MP' not supported
5015 if (grep 'ignoring option' conftest.err ||
5016 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5017 am_cv_CC_dependencies_compiler_type=$depmode
5018 break
5019 fi
5020 fi
5021 done
5022
5023 cd ..
5024 rm -rf conftest.dir
5025else
5026 am_cv_CC_dependencies_compiler_type=none
5027fi
5028
5029fi
cristy8b350f62009-11-15 23:12:43 +00005030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00005031$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5032CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5033
5034 if
5035 test "x$enable_dependency_tracking" != xno \
5036 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5037 am__fastdepCC_TRUE=
5038 am__fastdepCC_FALSE='#'
5039else
5040 am__fastdepCC_TRUE='#'
5041 am__fastdepCC_FALSE=
5042fi
5043
5044
cristy95646052009-11-28 23:05:30 +00005045ac_ext=cpp
5046ac_cpp='$CXXCPP $CPPFLAGS'
5047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5050if test -z "$CXX"; then
5051 if test -n "$CCC"; then
5052 CXX=$CCC
5053 else
5054 if test -n "$ac_tool_prefix"; then
5055 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5056 do
5057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5058set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060$as_echo_n "checking for $ac_word... " >&6; }
5061if test "${ac_cv_prog_CXX+set}" = set; then :
5062 $as_echo_n "(cached) " >&6
5063else
5064 if test -n "$CXX"; then
5065 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5066else
5067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068for as_dir in $PATH
5069do
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5077 fi
5078done
5079 done
5080IFS=$as_save_IFS
5081
5082fi
5083fi
5084CXX=$ac_cv_prog_CXX
5085if test -n "$CXX"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5087$as_echo "$CXX" >&6; }
5088else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090$as_echo "no" >&6; }
5091fi
5092
5093
5094 test -n "$CXX" && break
5095 done
5096fi
5097if test -z "$CXX"; then
5098 ac_ct_CXX=$CXX
5099 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5100do
5101 # Extract the first word of "$ac_prog", so it can be a program name with args.
5102set dummy $ac_prog; ac_word=$2
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104$as_echo_n "checking for $ac_word... " >&6; }
5105if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
5107else
5108 if test -n "$ac_ct_CXX"; then
5109 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5110else
5111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 ac_cv_prog_ac_ct_CXX="$ac_prog"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122done
5123 done
5124IFS=$as_save_IFS
5125
5126fi
5127fi
5128ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5129if test -n "$ac_ct_CXX"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5131$as_echo "$ac_ct_CXX" >&6; }
5132else
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134$as_echo "no" >&6; }
5135fi
5136
5137
5138 test -n "$ac_ct_CXX" && break
5139done
5140
5141 if test "x$ac_ct_CXX" = x; then
5142 CXX="g++"
5143 else
5144 case $cross_compiling:$ac_tool_warned in
5145yes:)
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148ac_tool_warned=yes ;;
5149esac
5150 CXX=$ac_ct_CXX
5151 fi
5152fi
5153
5154 fi
5155fi
5156# Provide some information about the compiler.
5157$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5158set X $ac_compile
5159ac_compiler=$2
5160for ac_option in --version -v -V -qversion; do
5161 { { ac_try="$ac_compiler $ac_option >&5"
5162case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165esac
5166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5167$as_echo "$ac_try_echo"; } >&5
5168 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5169 ac_status=$?
5170 if test -s conftest.err; then
5171 sed '10a\
5172... rest of stderr output deleted ...
5173 10q' conftest.err >conftest.er1
5174 cat conftest.er1 >&5
5175 fi
5176 rm -f conftest.er1 conftest.err
5177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5178 test $ac_status = 0; }
5179done
5180
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5182$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5183if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5185else
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h. */
5188
5189int
5190main ()
5191{
5192#ifndef __GNUC__
5193 choke me
5194#endif
5195
5196 ;
5197 return 0;
5198}
5199_ACEOF
5200if ac_fn_cxx_try_compile "$LINENO"; then :
5201 ac_compiler_gnu=yes
5202else
5203 ac_compiler_gnu=no
5204fi
5205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5206ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5207
5208fi
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5210$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5211if test $ac_compiler_gnu = yes; then
5212 GXX=yes
5213else
5214 GXX=
5215fi
5216ac_test_CXXFLAGS=${CXXFLAGS+set}
5217ac_save_CXXFLAGS=$CXXFLAGS
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5219$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5220if test "${ac_cv_prog_cxx_g+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5222else
5223 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5224 ac_cxx_werror_flag=yes
5225 ac_cv_prog_cxx_g=no
5226 CXXFLAGS="-g"
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228/* end confdefs.h. */
5229
5230int
5231main ()
5232{
5233
5234 ;
5235 return 0;
5236}
5237_ACEOF
5238if ac_fn_cxx_try_compile "$LINENO"; then :
5239 ac_cv_prog_cxx_g=yes
5240else
5241 CXXFLAGS=""
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243/* end confdefs.h. */
5244
5245int
5246main ()
5247{
5248
5249 ;
5250 return 0;
5251}
5252_ACEOF
5253if ac_fn_cxx_try_compile "$LINENO"; then :
5254
5255else
5256 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5257 CXXFLAGS="-g"
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259/* end confdefs.h. */
5260
5261int
5262main ()
5263{
5264
5265 ;
5266 return 0;
5267}
5268_ACEOF
5269if ac_fn_cxx_try_compile "$LINENO"; then :
5270 ac_cv_prog_cxx_g=yes
5271fi
5272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273fi
5274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275fi
5276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5278fi
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5280$as_echo "$ac_cv_prog_cxx_g" >&6; }
5281if test "$ac_test_CXXFLAGS" = set; then
5282 CXXFLAGS=$ac_save_CXXFLAGS
5283elif test $ac_cv_prog_cxx_g = yes; then
5284 if test "$GXX" = yes; then
5285 CXXFLAGS="-g -O2"
5286 else
5287 CXXFLAGS="-g"
5288 fi
5289else
5290 if test "$GXX" = yes; then
5291 CXXFLAGS="-O2"
5292 else
5293 CXXFLAGS=
5294 fi
5295fi
5296ac_ext=c
5297ac_cpp='$CPP $CPPFLAGS'
5298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5300ac_compiler_gnu=$ac_cv_c_compiler_gnu
5301
5302depcc="$CXX" am_compiler_list=
5303
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5305$as_echo_n "checking dependency style of $depcc... " >&6; }
5306if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5307 $as_echo_n "(cached) " >&6
5308else
5309 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5310 # We make a subdir and do the tests there. Otherwise we can end up
5311 # making bogus files that we don't know about and never remove. For
5312 # instance it was reported that on HP-UX the gcc test will end up
5313 # making a dummy file named `D' -- because `-MD' means `put the output
5314 # in D'.
5315 mkdir conftest.dir
5316 # Copy depcomp to subdir because otherwise we won't find it if we're
5317 # using a relative directory.
5318 cp "$am_depcomp" conftest.dir
5319 cd conftest.dir
5320 # We will build objects and dependencies in a subdirectory because
5321 # it helps to detect inapplicable dependency modes. For instance
5322 # both Tru64's cc and ICC support -MD to output dependencies as a
5323 # side effect of compilation, but ICC will put the dependencies in
5324 # the current directory while Tru64 will put them in the object
5325 # directory.
5326 mkdir sub
5327
5328 am_cv_CXX_dependencies_compiler_type=none
5329 if test "$am_compiler_list" = ""; then
5330 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5331 fi
5332 am__universal=false
5333 case " $depcc " in #(
5334 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5335 esac
5336
5337 for depmode in $am_compiler_list; do
5338 # Setup a source with many dependencies, because some compilers
5339 # like to wrap large dependency lists on column 80 (with \), and
5340 # we should not choose a depcomp mode which is confused by this.
5341 #
5342 # We need to recreate these files for each test, as the compiler may
5343 # overwrite some of them when testing with obscure command lines.
5344 # This happens at least with the AIX C compiler.
5345 : > sub/conftest.c
5346 for i in 1 2 3 4 5 6; do
5347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5348 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5349 # Solaris 8's {/usr,}/bin/sh.
5350 touch sub/conftst$i.h
5351 done
5352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5353
5354 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5355 # mode. It turns out that the SunPro C++ compiler does not properly
5356 # handle `-M -o', and we need to detect this. Also, some Intel
5357 # versions had trouble with output in subdirs
5358 am__obj=sub/conftest.${OBJEXT-o}
5359 am__minus_obj="-o $am__obj"
5360 case $depmode in
5361 gcc)
5362 # This depmode causes a compiler race in universal mode.
5363 test "$am__universal" = false || continue
5364 ;;
5365 nosideeffect)
5366 # after this tag, mechanisms are not by side-effect, so they'll
5367 # only be used when explicitly requested
5368 if test "x$enable_dependency_tracking" = xyes; then
5369 continue
5370 else
5371 break
5372 fi
5373 ;;
5374 msvisualcpp | msvcmsys)
5375 # This compiler won't grok `-c -o', but also, the minuso test has
5376 # not run yet. These depmodes are late enough in the game, and
5377 # so weak that their functioning should not be impacted.
5378 am__obj=conftest.${OBJEXT-o}
5379 am__minus_obj=
5380 ;;
5381 none) break ;;
5382 esac
5383 if depmode=$depmode \
5384 source=sub/conftest.c object=$am__obj \
5385 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5386 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5387 >/dev/null 2>conftest.err &&
5388 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5389 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5390 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5391 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5392 # icc doesn't choke on unknown options, it will just issue warnings
5393 # or remarks (even with -Werror). So we grep stderr for any message
5394 # that says an option was ignored or not supported.
5395 # When given -MP, icc 7.0 and 7.1 complain thusly:
5396 # icc: Command line warning: ignoring option '-M'; no argument required
5397 # The diagnosis changed in icc 8.0:
5398 # icc: Command line remark: option '-MP' not supported
5399 if (grep 'ignoring option' conftest.err ||
5400 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5401 am_cv_CXX_dependencies_compiler_type=$depmode
5402 break
5403 fi
5404 fi
5405 done
5406
5407 cd ..
5408 rm -rf conftest.dir
5409else
5410 am_cv_CXX_dependencies_compiler_type=none
5411fi
5412
5413fi
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5415$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5416CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5417
5418 if
5419 test "x$enable_dependency_tracking" != xno \
5420 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5421 am__fastdepCXX_TRUE=
5422 am__fastdepCXX_FALSE='#'
5423else
5424 am__fastdepCXX_TRUE='#'
5425 am__fastdepCXX_FALSE=
5426fi
5427
5428
cristy8b350f62009-11-15 23:12:43 +00005429 case $ac_cv_prog_cc_stdc in #(
5430 no) :
5431 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5432 *) :
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005434$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005435if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005436 $as_echo_n "(cached) " >&6
5437else
5438 ac_cv_prog_cc_c99=no
5439ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005441/* end confdefs.h. */
5442#include <stdarg.h>
5443#include <stdbool.h>
5444#include <stdlib.h>
5445#include <wchar.h>
5446#include <stdio.h>
5447
5448// Check varargs macros. These examples are taken from C99 6.10.3.5.
5449#define debug(...) fprintf (stderr, __VA_ARGS__)
5450#define showlist(...) puts (#__VA_ARGS__)
5451#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5452static void
5453test_varargs_macros (void)
5454{
5455 int x = 1234;
5456 int y = 5678;
5457 debug ("Flag");
5458 debug ("X = %d\n", x);
5459 showlist (The first, second, and third items.);
5460 report (x>y, "x is %d but y is %d", x, y);
5461}
5462
5463// Check long long types.
5464#define BIG64 18446744073709551615ull
5465#define BIG32 4294967295ul
5466#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5467#if !BIG_OK
5468 your preprocessor is broken;
5469#endif
5470#if BIG_OK
5471#else
5472 your preprocessor is broken;
5473#endif
5474static long long int bignum = -9223372036854775807LL;
5475static unsigned long long int ubignum = BIG64;
5476
5477struct incomplete_array
5478{
5479 int datasize;
5480 double data[];
5481};
5482
5483struct named_init {
5484 int number;
5485 const wchar_t *name;
5486 double average;
5487};
5488
5489typedef const char *ccp;
5490
5491static inline int
5492test_restrict (ccp restrict text)
5493{
5494 // See if C++-style comments work.
5495 // Iterate through items via the restricted pointer.
5496 // Also check for declarations in for loops.
5497 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5498 continue;
5499 return 0;
5500}
5501
5502// Check varargs and va_copy.
5503static void
5504test_varargs (const char *format, ...)
5505{
5506 va_list args;
5507 va_start (args, format);
5508 va_list args_copy;
5509 va_copy (args_copy, args);
5510
5511 const char *str;
5512 int number;
5513 float fnumber;
5514
5515 while (*format)
5516 {
5517 switch (*format++)
5518 {
5519 case 's': // string
5520 str = va_arg (args_copy, const char *);
5521 break;
5522 case 'd': // int
5523 number = va_arg (args_copy, int);
5524 break;
5525 case 'f': // float
5526 fnumber = va_arg (args_copy, double);
5527 break;
5528 default:
5529 break;
5530 }
5531 }
5532 va_end (args_copy);
5533 va_end (args);
5534}
5535
5536int
5537main ()
5538{
5539
5540 // Check bool.
5541 _Bool success = false;
5542
5543 // Check restrict.
5544 if (test_restrict ("String literal") == 0)
5545 success = true;
5546 char *restrict newvar = "Another string";
5547
5548 // Check varargs.
5549 test_varargs ("s, d' f .", "string", 65, 34.234);
5550 test_varargs_macros ();
5551
5552 // Check flexible array members.
5553 struct incomplete_array *ia =
5554 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5555 ia->datasize = 10;
5556 for (int i = 0; i < ia->datasize; ++i)
5557 ia->data[i] = i * 1.234;
5558
5559 // Check named initializers.
5560 struct named_init ni = {
5561 .number = 34,
5562 .name = L"Test wide string",
5563 .average = 543.34343,
5564 };
5565
5566 ni.number = 58;
5567
5568 int dynamic_array[ni.number];
5569 dynamic_array[ni.number - 1] = 543;
5570
5571 // work around unused variable warnings
5572 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5573 || dynamic_array[ni.number - 1] != 543);
5574
5575 ;
5576 return 0;
5577}
5578_ACEOF
5579for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5580do
5581 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005582 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005583 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005584fi
cristy3ed852e2009-09-05 21:47:34 +00005585rm -f core conftest.err conftest.$ac_objext
5586 test "x$ac_cv_prog_cc_c99" != "xno" && break
5587done
5588rm -f conftest.$ac_ext
5589CC=$ac_save_CC
5590
5591fi
5592# AC_CACHE_VAL
5593case "x$ac_cv_prog_cc_c99" in
5594 x)
cristy8b350f62009-11-15 23:12:43 +00005595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005596$as_echo "none needed" >&6; } ;;
5597 xno)
cristy8b350f62009-11-15 23:12:43 +00005598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005599$as_echo "unsupported" >&6; } ;;
5600 *)
5601 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00005602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005603$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5604esac
cristy8b350f62009-11-15 23:12:43 +00005605if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005606 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5607else
cristy8b350f62009-11-15 23:12:43 +00005608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005609$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005610if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005611 $as_echo_n "(cached) " >&6
5612else
5613 ac_cv_prog_cc_c89=no
5614ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005616/* end confdefs.h. */
5617#include <stdarg.h>
5618#include <stdio.h>
5619#include <sys/types.h>
5620#include <sys/stat.h>
5621/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5622struct buf { int x; };
5623FILE * (*rcsopen) (struct buf *, struct stat *, int);
5624static char *e (p, i)
5625 char **p;
5626 int i;
5627{
5628 return p[i];
5629}
5630static char *f (char * (*g) (char **, int), char **p, ...)
5631{
5632 char *s;
5633 va_list v;
5634 va_start (v,p);
5635 s = g (p, va_arg (v,int));
5636 va_end (v);
5637 return s;
5638}
5639
5640/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5641 function prototypes and stuff, but not '\xHH' hex character constants.
5642 These don't provoke an error unfortunately, instead are silently treated
5643 as 'x'. The following induces an error, until -std is added to get
5644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5645 array size at least. It's necessary to write '\x00'==0 to get something
5646 that's true only with -std. */
5647int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5648
5649/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5650 inside strings and character constants. */
5651#define FOO(x) 'x'
5652int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5653
5654int test (int i, double x);
5655struct s1 {int (*f) (int a);};
5656struct s2 {int (*f) (double a);};
5657int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5658int argc;
5659char **argv;
5660int
5661main ()
5662{
5663return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5664 ;
5665 return 0;
5666}
5667_ACEOF
5668for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5669 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5670do
5671 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005672 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005673 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005674fi
cristy3ed852e2009-09-05 21:47:34 +00005675rm -f core conftest.err conftest.$ac_objext
5676 test "x$ac_cv_prog_cc_c89" != "xno" && break
5677done
5678rm -f conftest.$ac_ext
5679CC=$ac_save_CC
5680
5681fi
5682# AC_CACHE_VAL
5683case "x$ac_cv_prog_cc_c89" in
5684 x)
cristy8b350f62009-11-15 23:12:43 +00005685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005686$as_echo "none needed" >&6; } ;;
5687 xno)
cristy8b350f62009-11-15 23:12:43 +00005688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005689$as_echo "unsupported" >&6; } ;;
5690 *)
5691 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005693$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5694esac
cristy8b350f62009-11-15 23:12:43 +00005695if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005696 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5697else
5698 ac_cv_prog_cc_stdc=no
5699fi
5700
cristy3ed852e2009-09-05 21:47:34 +00005701fi
cristy3ed852e2009-09-05 21:47:34 +00005702 ;;
5703esac
cristy8b350f62009-11-15 23:12:43 +00005704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00005705$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005706 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005707 $as_echo_n "(cached) " >&6
5708fi
5709
cristy8b350f62009-11-15 23:12:43 +00005710 case $ac_cv_prog_cc_stdc in #(
5711 no) :
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5713$as_echo "unsupported" >&6; } ;; #(
5714 '') :
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5716$as_echo "none needed" >&6; } ;; #(
5717 *) :
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00005719$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5720esac
5721
cristy3ed852e2009-09-05 21:47:34 +00005722ac_ext=c
5723ac_cpp='$CPP $CPPFLAGS'
5724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00005727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00005728$as_echo_n "checking how to run the C preprocessor... " >&6; }
5729# On Suns, sometimes $CPP names a directory.
5730if test -n "$CPP" && test -d "$CPP"; then
5731 CPP=
5732fi
5733if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00005734 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005735 $as_echo_n "(cached) " >&6
5736else
5737 # Double quotes because CPP needs to be expanded
5738 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5739 do
5740 ac_preproc_ok=false
5741for ac_c_preproc_warn_flag in '' yes
5742do
5743 # Use a header file that comes with gcc, so configuring glibc
5744 # with a fresh cross-compiler works.
5745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746 # <limits.h> exists even on freestanding compilers.
5747 # On the NeXT, cc -E runs the code through the compiler's parser,
5748 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005750/* end confdefs.h. */
5751#ifdef __STDC__
5752# include <limits.h>
5753#else
5754# include <assert.h>
5755#endif
5756 Syntax error
5757_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005758if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005759
cristy8b350f62009-11-15 23:12:43 +00005760else
cristy3ed852e2009-09-05 21:47:34 +00005761 # Broken: fails on valid input.
5762continue
5763fi
cristy3ed852e2009-09-05 21:47:34 +00005764rm -f conftest.err conftest.$ac_ext
5765
5766 # OK, works on sane cases. Now check whether nonexistent headers
5767 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005769/* end confdefs.h. */
5770#include <ac_nonexistent.h>
5771_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005772if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005773 # Broken: success on invalid input.
5774continue
5775else
cristy3ed852e2009-09-05 21:47:34 +00005776 # Passes both tests.
5777ac_preproc_ok=:
5778break
5779fi
cristy3ed852e2009-09-05 21:47:34 +00005780rm -f conftest.err conftest.$ac_ext
5781
5782done
5783# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5784rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005785if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00005786 break
5787fi
5788
5789 done
5790 ac_cv_prog_CPP=$CPP
5791
5792fi
5793 CPP=$ac_cv_prog_CPP
5794else
5795 ac_cv_prog_CPP=$CPP
5796fi
cristy8b350f62009-11-15 23:12:43 +00005797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005798$as_echo "$CPP" >&6; }
5799ac_preproc_ok=false
5800for ac_c_preproc_warn_flag in '' yes
5801do
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser,
5807 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005809/* end confdefs.h. */
5810#ifdef __STDC__
5811# include <limits.h>
5812#else
5813# include <assert.h>
5814#endif
5815 Syntax error
5816_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005817if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005818
cristy8b350f62009-11-15 23:12:43 +00005819else
cristy3ed852e2009-09-05 21:47:34 +00005820 # Broken: fails on valid input.
5821continue
5822fi
cristy3ed852e2009-09-05 21:47:34 +00005823rm -f conftest.err conftest.$ac_ext
5824
5825 # OK, works on sane cases. Now check whether nonexistent headers
5826 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005828/* end confdefs.h. */
5829#include <ac_nonexistent.h>
5830_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005831if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005832 # Broken: success on invalid input.
5833continue
5834else
cristy3ed852e2009-09-05 21:47:34 +00005835 # Passes both tests.
5836ac_preproc_ok=:
5837break
5838fi
cristy3ed852e2009-09-05 21:47:34 +00005839rm -f conftest.err conftest.$ac_ext
5840
5841done
5842# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005844if $ac_preproc_ok; then :
5845
cristy3ed852e2009-09-05 21:47:34 +00005846else
cristy8b350f62009-11-15 23:12:43 +00005847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00005849as_fn_error "C preprocessor \"$CPP\" fails sanity check
5850See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005851fi
5852
5853ac_ext=c
5854ac_cpp='$CPP $CPPFLAGS'
5855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857ac_compiler_gnu=$ac_cv_c_compiler_gnu
5858
cristy8b350f62009-11-15 23:12:43 +00005859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00005860$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005861if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005862 $as_echo_n "(cached) " >&6
5863else
5864 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5865 for ac_i in 1 2 3 4 5 6 7; do
5866 ac_script="$ac_script$as_nl$ac_script"
5867 done
5868 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00005869 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00005870 if test -z "$SED"; then
5871 ac_path_SED_found=false
5872 # Loop through the user's path and test for each of PROGNAME-LIST
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005878 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00005879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5881 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5882# Check for GNU ac_path_SED and select it if it is found.
5883 # Check for GNU $ac_path_SED
5884case `"$ac_path_SED" --version 2>&1` in
5885*GNU*)
5886 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5887*)
5888 ac_count=0
5889 $as_echo_n 0123456789 >"conftest.in"
5890 while :
5891 do
5892 cat "conftest.in" "conftest.in" >"conftest.tmp"
5893 mv "conftest.tmp" "conftest.in"
5894 cp "conftest.in" "conftest.nl"
5895 $as_echo '' >> "conftest.nl"
5896 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005898 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005899 if test $ac_count -gt ${ac_path_SED_max-0}; then
5900 # Best one so far, save it but keep looking for a better one
5901 ac_cv_path_SED="$ac_path_SED"
5902 ac_path_SED_max=$ac_count
5903 fi
5904 # 10*(2^10) chars as input seems more than enough
5905 test $ac_count -gt 10 && break
5906 done
5907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5908esac
5909
5910 $ac_path_SED_found && break 3
5911 done
5912 done
cristy8b350f62009-11-15 23:12:43 +00005913 done
cristy3ed852e2009-09-05 21:47:34 +00005914IFS=$as_save_IFS
5915 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00005916 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005917 fi
5918else
5919 ac_cv_path_SED=$SED
5920fi
5921
5922fi
cristy8b350f62009-11-15 23:12:43 +00005923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00005924$as_echo "$ac_cv_path_SED" >&6; }
5925 SED="$ac_cv_path_SED"
5926 rm -f conftest.sed
5927
5928test -z "$SED" && SED=sed
5929Xsed="$SED -e 1s/^X//"
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
cristy8b350f62009-11-15 23:12:43 +00005941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cristy3ed852e2009-09-05 21:47:34 +00005942$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005943if test "${ac_cv_path_GREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005944 $as_echo_n "(cached) " >&6
5945else
5946 if test -z "$GREP"; then
5947 ac_path_GREP_found=false
5948 # Loop through the user's path and test for each of PROGNAME-LIST
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5951do
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005954 for ac_prog in grep ggrep; do
cristy3ed852e2009-09-05 21:47:34 +00005955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5957 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5958# Check for GNU ac_path_GREP and select it if it is found.
5959 # Check for GNU $ac_path_GREP
5960case `"$ac_path_GREP" --version 2>&1` in
5961*GNU*)
5962 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5963*)
5964 ac_count=0
5965 $as_echo_n 0123456789 >"conftest.in"
5966 while :
5967 do
5968 cat "conftest.in" "conftest.in" >"conftest.tmp"
5969 mv "conftest.tmp" "conftest.in"
5970 cp "conftest.in" "conftest.nl"
5971 $as_echo 'GREP' >> "conftest.nl"
5972 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005974 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005975 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5976 # Best one so far, save it but keep looking for a better one
5977 ac_cv_path_GREP="$ac_path_GREP"
5978 ac_path_GREP_max=$ac_count
5979 fi
5980 # 10*(2^10) chars as input seems more than enough
5981 test $ac_count -gt 10 && break
5982 done
5983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5984esac
5985
5986 $ac_path_GREP_found && break 3
5987 done
5988 done
cristy8b350f62009-11-15 23:12:43 +00005989 done
cristy3ed852e2009-09-05 21:47:34 +00005990IFS=$as_save_IFS
5991 if test -z "$ac_cv_path_GREP"; then
cristy8b350f62009-11-15 23:12:43 +00005992 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005993 fi
5994else
5995 ac_cv_path_GREP=$GREP
5996fi
5997
5998fi
cristy8b350f62009-11-15 23:12:43 +00005999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006000$as_echo "$ac_cv_path_GREP" >&6; }
6001 GREP="$ac_cv_path_GREP"
6002
6003
cristy8b350f62009-11-15 23:12:43 +00006004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00006005$as_echo_n "checking for egrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006006if test "${ac_cv_path_EGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006007 $as_echo_n "(cached) " >&6
6008else
6009 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6010 then ac_cv_path_EGREP="$GREP -E"
6011 else
6012 if test -z "$EGREP"; then
6013 ac_path_EGREP_found=false
6014 # Loop through the user's path and test for each of PROGNAME-LIST
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6017do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006020 for ac_prog in egrep; do
cristy3ed852e2009-09-05 21:47:34 +00006021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6023 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6024# Check for GNU ac_path_EGREP and select it if it is found.
6025 # Check for GNU $ac_path_EGREP
6026case `"$ac_path_EGREP" --version 2>&1` in
6027*GNU*)
6028 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6029*)
6030 ac_count=0
6031 $as_echo_n 0123456789 >"conftest.in"
6032 while :
6033 do
6034 cat "conftest.in" "conftest.in" >"conftest.tmp"
6035 mv "conftest.tmp" "conftest.in"
6036 cp "conftest.in" "conftest.nl"
6037 $as_echo 'EGREP' >> "conftest.nl"
6038 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006040 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006041 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6042 # Best one so far, save it but keep looking for a better one
6043 ac_cv_path_EGREP="$ac_path_EGREP"
6044 ac_path_EGREP_max=$ac_count
6045 fi
6046 # 10*(2^10) chars as input seems more than enough
6047 test $ac_count -gt 10 && break
6048 done
6049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6050esac
6051
6052 $ac_path_EGREP_found && break 3
6053 done
6054 done
cristy8b350f62009-11-15 23:12:43 +00006055 done
cristy3ed852e2009-09-05 21:47:34 +00006056IFS=$as_save_IFS
6057 if test -z "$ac_cv_path_EGREP"; then
cristy8b350f62009-11-15 23:12:43 +00006058 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006059 fi
6060else
6061 ac_cv_path_EGREP=$EGREP
6062fi
6063
6064 fi
6065fi
cristy8b350f62009-11-15 23:12:43 +00006066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006067$as_echo "$ac_cv_path_EGREP" >&6; }
6068 EGREP="$ac_cv_path_EGREP"
6069
6070
cristy8b350f62009-11-15 23:12:43 +00006071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00006072$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006073if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006074 $as_echo_n "(cached) " >&6
6075else
6076 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6077 then ac_cv_path_FGREP="$GREP -F"
6078 else
6079 if test -z "$FGREP"; then
6080 ac_path_FGREP_found=false
6081 # Loop through the user's path and test for each of PROGNAME-LIST
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6084do
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006087 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00006088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6090 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6091# Check for GNU ac_path_FGREP and select it if it is found.
6092 # Check for GNU $ac_path_FGREP
6093case `"$ac_path_FGREP" --version 2>&1` in
6094*GNU*)
6095 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6096*)
6097 ac_count=0
6098 $as_echo_n 0123456789 >"conftest.in"
6099 while :
6100 do
6101 cat "conftest.in" "conftest.in" >"conftest.tmp"
6102 mv "conftest.tmp" "conftest.in"
6103 cp "conftest.in" "conftest.nl"
6104 $as_echo 'FGREP' >> "conftest.nl"
6105 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006107 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006108 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6109 # Best one so far, save it but keep looking for a better one
6110 ac_cv_path_FGREP="$ac_path_FGREP"
6111 ac_path_FGREP_max=$ac_count
6112 fi
6113 # 10*(2^10) chars as input seems more than enough
6114 test $ac_count -gt 10 && break
6115 done
6116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6117esac
6118
6119 $ac_path_FGREP_found && break 3
6120 done
6121 done
cristy8b350f62009-11-15 23:12:43 +00006122 done
cristy3ed852e2009-09-05 21:47:34 +00006123IFS=$as_save_IFS
6124 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00006125 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006126 fi
6127else
6128 ac_cv_path_FGREP=$FGREP
6129fi
6130
6131 fi
6132fi
cristy8b350f62009-11-15 23:12:43 +00006133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006134$as_echo "$ac_cv_path_FGREP" >&6; }
6135 FGREP="$ac_cv_path_FGREP"
6136
6137
6138test -z "$GREP" && GREP=grep
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00006159if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006160 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6161else
6162 with_gnu_ld=no
6163fi
6164
6165ac_prog=ld
6166if test "$GCC" = yes; then
6167 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00006168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00006169$as_echo_n "checking for ld used by $CC... " >&6; }
6170 case $host in
6171 *-*-mingw*)
6172 # gcc leaves a trailing carriage return which upsets mingw
6173 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6174 *)
6175 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6176 esac
6177 case $ac_prog in
6178 # Accept absolute paths.
6179 [\\/]* | ?:[\\/]*)
6180 re_direlt='/[^/][^/]*/\.\./'
6181 # Canonicalize the pathname of ld
6182 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6183 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6184 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6185 done
6186 test -z "$LD" && LD="$ac_prog"
6187 ;;
6188 "")
6189 # If it fails, then pretend we aren't using GCC.
6190 ac_prog=ld
6191 ;;
6192 *)
6193 # If it is relative, then search for the first ld in PATH.
6194 with_gnu_ld=unknown
6195 ;;
6196 esac
6197elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006199$as_echo_n "checking for GNU ld... " >&6; }
6200else
cristy8b350f62009-11-15 23:12:43 +00006201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006202$as_echo_n "checking for non-GNU ld... " >&6; }
6203fi
cristy8b350f62009-11-15 23:12:43 +00006204if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006205 $as_echo_n "(cached) " >&6
6206else
6207 if test -z "$LD"; then
6208 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6209 for ac_dir in $PATH; do
6210 IFS="$lt_save_ifs"
6211 test -z "$ac_dir" && ac_dir=.
6212 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6213 lt_cv_path_LD="$ac_dir/$ac_prog"
6214 # Check to see if the program is GNU ld. I'd rather use --version,
6215 # but apparently some variants of GNU ld only accept -v.
6216 # Break only if it was the GNU/non-GNU ld that we prefer.
6217 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6218 *GNU* | *'with BFD'*)
6219 test "$with_gnu_ld" != no && break
6220 ;;
6221 *)
6222 test "$with_gnu_ld" != yes && break
6223 ;;
6224 esac
6225 fi
6226 done
6227 IFS="$lt_save_ifs"
6228else
6229 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6230fi
6231fi
6232
6233LD="$lt_cv_path_LD"
6234if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00006235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00006236$as_echo "$LD" >&6; }
6237else
cristy8b350f62009-11-15 23:12:43 +00006238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006239$as_echo "no" >&6; }
6240fi
cristy8b350f62009-11-15 23:12:43 +00006241test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006243$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006244if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006245 $as_echo_n "(cached) " >&6
6246else
6247 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6248case `$LD -v 2>&1 </dev/null` in
6249*GNU* | *'with BFD'*)
6250 lt_cv_prog_gnu_ld=yes
6251 ;;
6252*)
6253 lt_cv_prog_gnu_ld=no
6254 ;;
6255esac
6256fi
cristy8b350f62009-11-15 23:12:43 +00006257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006258$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6259with_gnu_ld=$lt_cv_prog_gnu_ld
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269if test -n "$ac_tool_prefix"; then
6270 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6271set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006273$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006274if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006275 $as_echo_n "(cached) " >&6
6276else
6277 if test -n "$RANLIB"; then
6278 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6279else
6280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281for as_dir in $PATH
6282do
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006285 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00006288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006289 break 2
6290 fi
6291done
cristy8b350f62009-11-15 23:12:43 +00006292 done
cristy3ed852e2009-09-05 21:47:34 +00006293IFS=$as_save_IFS
6294
6295fi
6296fi
6297RANLIB=$ac_cv_prog_RANLIB
6298if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00006299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00006300$as_echo "$RANLIB" >&6; }
6301else
cristy8b350f62009-11-15 23:12:43 +00006302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006303$as_echo "no" >&6; }
6304fi
6305
6306
6307fi
6308if test -z "$ac_cv_prog_RANLIB"; then
6309 ac_ct_RANLIB=$RANLIB
6310 # Extract the first word of "ranlib", so it can be a program name with args.
6311set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006313$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006314if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006315 $as_echo_n "(cached) " >&6
6316else
6317 if test -n "$ac_ct_RANLIB"; then
6318 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6319else
6320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH
6322do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006325 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00006328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006329 break 2
6330 fi
6331done
cristy8b350f62009-11-15 23:12:43 +00006332 done
cristy3ed852e2009-09-05 21:47:34 +00006333IFS=$as_save_IFS
6334
6335fi
6336fi
6337ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6338if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00006339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00006340$as_echo "$ac_ct_RANLIB" >&6; }
6341else
cristy8b350f62009-11-15 23:12:43 +00006342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006343$as_echo "no" >&6; }
6344fi
6345
6346 if test "x$ac_ct_RANLIB" = x; then
6347 RANLIB=":"
6348 else
6349 case $cross_compiling:$ac_tool_warned in
6350yes:)
cristy8b350f62009-11-15 23:12:43 +00006351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6353ac_tool_warned=yes ;;
6354esac
6355 RANLIB=$ac_ct_RANLIB
6356 fi
6357else
6358 RANLIB="$ac_cv_prog_RANLIB"
6359fi
6360
6361
6362if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00006363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00006364$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6365else
cristy8b350f62009-11-15 23:12:43 +00006366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00006367$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6368fi
6369set dummy $CC; ac_cc=`$as_echo "$2" |
6370 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00006371if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00006372 $as_echo_n "(cached) " >&6
6373else
cristy8b350f62009-11-15 23:12:43 +00006374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006375/* end confdefs.h. */
6376
6377int
6378main ()
6379{
6380
6381 ;
6382 return 0;
6383}
6384_ACEOF
6385# Make sure it works both with $CC and with simple cc.
6386# We do the test twice because some compilers refuse to overwrite an
6387# existing .o file with -o, though they will create one.
6388ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6389rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00006390if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6393esac
cristy8b350f62009-11-15 23:12:43 +00006394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6395$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006396 (eval "$ac_try") 2>&5
6397 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399 test $ac_status = 0; } &&
6400 test -f conftest2.$ac_objext && { { 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; };
cristy3ed852e2009-09-05 21:47:34 +00006410then
6411 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6412 if test "x$CC" != xcc; then
6413 # Test first that cc exists at all.
6414 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00006415 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418esac
cristy8b350f62009-11-15 23:12:43 +00006419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6420$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006421 (eval "$ac_try") 2>&5
6422 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6424 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00006425 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6426 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00006427 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6430esac
cristy8b350f62009-11-15 23:12:43 +00006431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6432$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006433 (eval "$ac_try") 2>&5
6434 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6436 test $ac_status = 0; } &&
6437 test -f conftest2.$ac_objext && { { 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; };
cristy3ed852e2009-09-05 21:47:34 +00006447 then
6448 # cc works too.
6449 :
6450 else
6451 # cc exists but doesn't like -o.
6452 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6453 fi
6454 fi
6455 fi
6456else
6457 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6458fi
6459rm -f core conftest*
6460
6461fi
6462if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00006463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006464$as_echo "yes" >&6; }
6465else
cristy8b350f62009-11-15 23:12:43 +00006466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006467$as_echo "no" >&6; }
6468
cristy8b350f62009-11-15 23:12:43 +00006469$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006470
6471fi
6472
6473# FIXME: we rely on the cache variable name because
6474# there is no other way.
6475set dummy $CC
6476am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6477eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6478if test "$am_t" != yes; then
6479 # Losing compiler, so override with the script.
6480 # FIXME: It is wrong to rewrite CC.
6481 # But if we don't then we get into trouble of one sort or another.
6482 # A longer-term fix would be to have automake use am__CC in this case,
6483 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6484 CC="$am_aux_dir/compile $CC"
6485fi
6486
6487
cristy3ed852e2009-09-05 21:47:34 +00006488
cristy8b350f62009-11-15 23:12:43 +00006489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00006490$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6491set x ${MAKE-make}
6492ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00006493if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00006494 $as_echo_n "(cached) " >&6
6495else
6496 cat >conftest.make <<\_ACEOF
6497SHELL = /bin/sh
6498all:
6499 @echo '@@@%%%=$(MAKE)=@@@%%%'
6500_ACEOF
6501# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6502case `${MAKE-make} -f conftest.make 2>/dev/null` in
6503 *@@@%%%=?*=@@@%%%*)
6504 eval ac_cv_prog_make_${ac_make}_set=yes;;
6505 *)
6506 eval ac_cv_prog_make_${ac_make}_set=no;;
6507esac
6508rm -f conftest.make
6509fi
6510if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00006511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006512$as_echo "yes" >&6; }
6513 SET_MAKE=
6514else
cristy8b350f62009-11-15 23:12:43 +00006515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006516$as_echo "no" >&6; }
6517 SET_MAKE="MAKE=${MAKE-make}"
6518fi
6519
cristy3ed852e2009-09-05 21:47:34 +00006520
cristy8b350f62009-11-15 23:12:43 +00006521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006522$as_echo_n "checking maximum warning verbosity option... " >&6; }
6523
6524
6525
6526
6527# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00006528if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006529 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6530else
6531 ac_compile_warnings_on=""
6532fi
6533
6534
6535 if test x"$ac_compile_warnings_on" = xno
6536 then
6537 ac_compile_warnings_msg=no
6538 else
6539 if test -n "$CXX"
6540 then
6541 if test "$GXX" = "yes"
6542 then
6543 ac_compile_warnings_opt='-Wall -W'
6544 fi
6545 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6546 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6547 fi
6548
6549 if test -n "$CC"
6550 then
6551 if test "$GCC" = "yes"
6552 then
6553 ac_compile_warnings_opt='-Wall -W'
6554 fi
6555 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6556 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6557 fi
6558 fi
cristy8b350f62009-11-15 23:12:43 +00006559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00006560$as_echo "$ac_compile_warnings_msg" >&6; }
6561 unset ac_compile_warnings_msg
6562 unset ac_compile_warnings_opt
6563
cristy8b350f62009-11-15 23:12:43 +00006564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00006565$as_echo_n "checking whether ln -s works... " >&6; }
6566LN_S=$as_ln_s
6567if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00006568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006569$as_echo "yes" >&6; }
6570else
cristy8b350f62009-11-15 23:12:43 +00006571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00006572$as_echo "no, using $LN_S" >&6; }
6573fi
6574
cristy8b350f62009-11-15 23:12:43 +00006575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00006576$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6577
6578# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00006579if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006580 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006582$as_echo "yes" >&6; }
6583
cristy8b350f62009-11-15 23:12:43 +00006584$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006585
6586 LIBS="$LIBS -ldmalloc"
6587 LDFLAGS="$LDFLAGS -g"
6588else
cristy8b350f62009-11-15 23:12:43 +00006589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006590$as_echo "no" >&6; }
6591fi
6592else
cristy8b350f62009-11-15 23:12:43 +00006593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006594$as_echo "no" >&6; }
6595fi
6596
6597
6598
6599
6600if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6601 if test -n "$ac_tool_prefix"; then
6602 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6603set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006605$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006606if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006607 $as_echo_n "(cached) " >&6
6608else
6609 case $PKG_CONFIG in
6610 [\\/]* | ?:[\\/]*)
6611 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6612 ;;
6613 *)
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006619 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006623 break 2
6624 fi
6625done
cristy8b350f62009-11-15 23:12:43 +00006626 done
cristy3ed852e2009-09-05 21:47:34 +00006627IFS=$as_save_IFS
6628
6629 ;;
6630esac
6631fi
6632PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6633if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006635$as_echo "$PKG_CONFIG" >&6; }
6636else
cristy8b350f62009-11-15 23:12:43 +00006637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006638$as_echo "no" >&6; }
6639fi
6640
6641
6642fi
6643if test -z "$ac_cv_path_PKG_CONFIG"; then
6644 ac_pt_PKG_CONFIG=$PKG_CONFIG
6645 # Extract the first word of "pkg-config", so it can be a program name with args.
6646set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006648$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006649if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006650 $as_echo_n "(cached) " >&6
6651else
6652 case $ac_pt_PKG_CONFIG in
6653 [\\/]* | ?:[\\/]*)
6654 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6655 ;;
6656 *)
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006662 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006666 break 2
6667 fi
6668done
cristy8b350f62009-11-15 23:12:43 +00006669 done
cristy3ed852e2009-09-05 21:47:34 +00006670IFS=$as_save_IFS
6671
6672 ;;
6673esac
6674fi
6675ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6676if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006678$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6679else
cristy8b350f62009-11-15 23:12:43 +00006680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006681$as_echo "no" >&6; }
6682fi
6683
6684 if test "x$ac_pt_PKG_CONFIG" = x; then
6685 PKG_CONFIG=""
6686 else
6687 case $cross_compiling:$ac_tool_warned in
6688yes:)
cristy8b350f62009-11-15 23:12:43 +00006689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691ac_tool_warned=yes ;;
6692esac
6693 PKG_CONFIG=$ac_pt_PKG_CONFIG
6694 fi
6695else
6696 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6697fi
6698
6699fi
6700if test -n "$PKG_CONFIG"; then
6701 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00006702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00006703$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6704 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00006705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006706$as_echo "yes" >&6; }
6707 else
cristy8b350f62009-11-15 23:12:43 +00006708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006709$as_echo "no" >&6; }
6710 PKG_CONFIG=""
6711 fi
6712
6713fi
6714
6715#
6716# Enable OS features.
6717#
6718
6719
cristy8b350f62009-11-15 23:12:43 +00006720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +00006721$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006722if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006723 $as_echo_n "(cached) " >&6
6724else
cristy8b350f62009-11-15 23:12:43 +00006725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006726/* end confdefs.h. */
6727#include <stdlib.h>
6728#include <stdarg.h>
6729#include <string.h>
6730#include <float.h>
6731
6732int
6733main ()
6734{
6735
6736 ;
6737 return 0;
6738}
6739_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006740if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006741 ac_cv_header_stdc=yes
6742else
cristy8b350f62009-11-15 23:12:43 +00006743 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006744fi
cristy3ed852e2009-09-05 21:47:34 +00006745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746
6747if test $ac_cv_header_stdc = yes; then
6748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006750/* end confdefs.h. */
6751#include <string.h>
6752
6753_ACEOF
6754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006755 $EGREP "memchr" >/dev/null 2>&1; then :
6756
cristy3ed852e2009-09-05 21:47:34 +00006757else
6758 ac_cv_header_stdc=no
6759fi
6760rm -f conftest*
6761
6762fi
6763
6764if test $ac_cv_header_stdc = yes; then
6765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006767/* end confdefs.h. */
6768#include <stdlib.h>
6769
6770_ACEOF
6771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006772 $EGREP "free" >/dev/null 2>&1; then :
6773
cristy3ed852e2009-09-05 21:47:34 +00006774else
6775 ac_cv_header_stdc=no
6776fi
6777rm -f conftest*
6778
6779fi
6780
6781if test $ac_cv_header_stdc = yes; then
6782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +00006783 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006784 :
6785else
cristy8b350f62009-11-15 23:12:43 +00006786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006787/* end confdefs.h. */
6788#include <ctype.h>
6789#include <stdlib.h>
6790#if ((' ' & 0x0FF) == 0x020)
6791# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6792# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6793#else
6794# define ISLOWER(c) \
6795 (('a' <= (c) && (c) <= 'i') \
6796 || ('j' <= (c) && (c) <= 'r') \
6797 || ('s' <= (c) && (c) <= 'z'))
6798# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6799#endif
6800
6801#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6802int
6803main ()
6804{
6805 int i;
6806 for (i = 0; i < 256; i++)
6807 if (XOR (islower (i), ISLOWER (i))
6808 || toupper (i) != TOUPPER (i))
6809 return 2;
6810 return 0;
6811}
6812_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006813if ac_fn_c_try_run "$LINENO"; then :
6814
cristy3ed852e2009-09-05 21:47:34 +00006815else
cristy8b350f62009-11-15 23:12:43 +00006816 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006817fi
cristy8b350f62009-11-15 23:12:43 +00006818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6819 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006820fi
6821
cristy3ed852e2009-09-05 21:47:34 +00006822fi
6823fi
cristy8b350f62009-11-15 23:12:43 +00006824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006825$as_echo "$ac_cv_header_stdc" >&6; }
6826if test $ac_cv_header_stdc = yes; then
6827
cristy8b350f62009-11-15 23:12:43 +00006828$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006829
6830fi
6831
6832# On IRIX 5.3, sys/types and inttypes.h are conflicting.
cristy3ed852e2009-09-05 21:47:34 +00006833for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6834 inttypes.h stdint.h unistd.h
cristy8b350f62009-11-15 23:12:43 +00006835do :
6836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6837ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6838"
6839eval as_val=\$$as_ac_Header
6840 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006841 cat >>confdefs.h <<_ACEOF
6842#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6843_ACEOF
6844
6845fi
6846
6847done
6848
6849
6850
cristy8b350f62009-11-15 23:12:43 +00006851 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6852if test "x$ac_cv_header_minix_config_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006853 MINIX=yes
6854else
6855 MINIX=
6856fi
6857
6858
6859 if test "$MINIX" = yes; then
6860
cristy8b350f62009-11-15 23:12:43 +00006861$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006862
6863
cristy8b350f62009-11-15 23:12:43 +00006864$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006865
6866
cristy8b350f62009-11-15 23:12:43 +00006867$as_echo "#define _MINIX 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006868
6869 fi
6870
6871
cristy8b350f62009-11-15 23:12:43 +00006872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006873$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006874if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006875 $as_echo_n "(cached) " >&6
6876else
cristy8b350f62009-11-15 23:12:43 +00006877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006878/* end confdefs.h. */
6879
6880# define __EXTENSIONS__ 1
6881 $ac_includes_default
6882int
6883main ()
6884{
6885
6886 ;
6887 return 0;
6888}
6889_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006890if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006891 ac_cv_safe_to_define___extensions__=yes
6892else
cristy8b350f62009-11-15 23:12:43 +00006893 ac_cv_safe_to_define___extensions__=no
cristy3ed852e2009-09-05 21:47:34 +00006894fi
cristy3ed852e2009-09-05 21:47:34 +00006895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896fi
cristy8b350f62009-11-15 23:12:43 +00006897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006898$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6899 test $ac_cv_safe_to_define___extensions__ = yes &&
cristy8b350f62009-11-15 23:12:43 +00006900 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006901
cristy8b350f62009-11-15 23:12:43 +00006902 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006903
cristy8b350f62009-11-15 23:12:43 +00006904 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006905
cristy8b350f62009-11-15 23:12:43 +00006906 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006907
cristy8b350f62009-11-15 23:12:43 +00006908 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6909
cristy3ed852e2009-09-05 21:47:34 +00006910
6911
cristy3ed852e2009-09-05 21:47:34 +00006912#
6913# Enable run-time checking.
6914#
6915# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00006916if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006917 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6918else
6919 enable_bounds_checking='no'
6920fi
6921
6922
6923if test "$enable_bounds_checking" = yes; then
6924
cristy8b350f62009-11-15 23:12:43 +00006925$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006926
6927fi
6928
6929#
6930# Tests for Windows
6931#
6932
6933
6934
6935GDI32_LIBS=''
6936StaticCplusPlusLibraries='no'
6937native_win32_build='no'
6938cygwin_build='no'
6939case "${host_os}" in
6940 cygwin* )
6941 StaticCplusPlusLibraries='yes'
6942 cygwin_build='yes'
6943 GDI32_LIBS='-lgdi32'
6944 ;;
6945 mingw* )
6946 StaticCplusPlusLibraries='yes'
6947 native_win32_build='yes'
6948 GDI32_LIBS='-lgdi32'
6949 ;;
6950esac
6951if test "${GDI32_LIBS}x" != 'x'; then
6952
cristy8b350f62009-11-15 23:12:43 +00006953$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006954
6955fi
6956
6957 if test "${GDI32_LIBS}x" != 'x' ; then
6958 WINGDI32_DELEGATE_TRUE=
6959 WINGDI32_DELEGATE_FALSE='#'
6960else
6961 WINGDI32_DELEGATE_TRUE='#'
6962 WINGDI32_DELEGATE_FALSE=
6963fi
6964
6965 if test "${native_win32_build}" = 'yes' ; then
6966 WIN32_NATIVE_BUILD_TRUE=
6967 WIN32_NATIVE_BUILD_FALSE='#'
6968else
6969 WIN32_NATIVE_BUILD_TRUE='#'
6970 WIN32_NATIVE_BUILD_FALSE=
6971fi
6972
6973 if test "${cygwin_build}" = 'yes' ; then
6974 CYGWIN_BUILD_TRUE=
6975 CYGWIN_BUILD_FALSE='#'
6976else
6977 CYGWIN_BUILD_TRUE='#'
6978 CYGWIN_BUILD_FALSE=
6979fi
6980
6981 if test "x${CC}" = 'xcl.exe' ; then
6982 USING_CL_TRUE=
6983 USING_CL_FALSE='#'
6984else
6985 USING_CL_TRUE='#'
6986 USING_CL_FALSE=
6987fi
6988
6989
6990WinPathScript="${srcdirfull}/winpath.sh"
6991
6992
6993#
6994# Compiler flags tweaks
6995#
6996if test "${GCC}" != "yes"; then
6997 case "${host}" in
6998 *-*-hpux* )
6999 # aCC: HP ANSI C++ B3910B A.03.34
7000 CFLAGS="${CFLAGS} -Wp,-H30000"
7001 if test -n "${CXXFLAGS}"; then
7002 CXXFLAGS='-AA'
7003 else
7004 CXXFLAGS="${CXXFLAGS} -AA"
7005 fi
7006 ;;
7007 *-dec-osf5.* )
7008 # Compaq alphaev68-dec-osf5.1 compiler
7009 if test -n "${CXXFLAGS}"; then
7010 CXXFLAGS='-std strict_ansi -noimplicit_include'
7011 else
7012 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7013 fi
7014 esac
7015fi
7016
7017# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00007018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007019$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007020if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007021 $as_echo_n "(cached) " >&6
7022else
7023
7024im_cv_ld_lazyload='none'
7025case "${host}" in
7026 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7027 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7028 im_cv_ld_lazyload='-Wl,-zlazyload'
7029 fi
7030 ;;
7031esac
7032
7033fi
cristy8b350f62009-11-15 23:12:43 +00007034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00007035$as_echo "$im_cv_ld_lazyload" >&6; }
7036if test "${im_cv_ld_lazyload}" != 'none' ; then
7037 if test -z "${LDFLAGS}" ; then
7038 LDFLAGS="${im_cv_ld_lazyload}"
7039 else
7040 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7041 fi
7042fi
7043
7044case "$host" in
7045*darwin* | *-macos10*)
7046 if test -d /opt/local ; then
7047 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7048 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7049 elif test -d /sw ; then
7050 CPPFLAGS="$CPPFLAGS -I/sw/include"
7051 LDFLAGS="$LDFLAGS -L/sw/lib"
7052 fi
7053 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00007054if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007055 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7056else
7057 build_osxuniversal=no
7058fi
7059
7060
7061 if test "${build_osxuniversal}" != no ; then
7062 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00007063 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00007064Please re-run configure with these options:
7065 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00007066 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007067 fi
7068 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7069 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7070 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7071 fi
7072 ;;
7073esac
7074
7075# Enable support for threads
7076
7077# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00007078if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007079 withval=$with_threads; with_threads=$withval
7080else
7081 with_threads='yes'
7082fi
7083
7084
7085have_threads=no
7086if test "$with_threads" != 'no'; then
7087
7088
7089
7090ac_ext=c
7091ac_cpp='$CPP $CPPFLAGS'
7092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7094ac_compiler_gnu=$ac_cv_c_compiler_gnu
7095
7096acx_pthread_ok=no
7097
7098# We used to check for pthread.h first, but this fails if pthread.h
7099# requires special compiler flags (e.g. on True64 or Sequent).
7100# It gets checked for in the link test anyway.
7101
7102# First of all, check if the user has set any of the PTHREAD_LIBS,
7103# etcetera environment variables, and if threads linking works using
7104# them:
7105if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7106 save_CFLAGS="$CFLAGS"
7107 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7108 save_LIBS="$LIBS"
7109 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00007110 { $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 +00007111$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007113/* end confdefs.h. */
7114
7115/* Override any GCC internal prototype to avoid an error.
7116 Use char because int might match the return type of a GCC
7117 builtin and then its argument prototype would still apply. */
7118#ifdef __cplusplus
7119extern "C"
7120#endif
7121char pthread_join ();
7122int
7123main ()
7124{
7125return pthread_join ();
7126 ;
7127 return 0;
7128}
7129_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007130if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007131 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007132fi
cristy8b350f62009-11-15 23:12:43 +00007133rm -f core conftest.err conftest.$ac_objext \
7134 conftest$ac_exeext conftest.$ac_ext
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007136$as_echo "$acx_pthread_ok" >&6; }
7137 if test x"$acx_pthread_ok" = xno; then
7138 PTHREAD_LIBS=""
7139 PTHREAD_CFLAGS=""
7140 fi
7141 LIBS="$save_LIBS"
7142 CFLAGS="$save_CFLAGS"
7143fi
7144
7145# We must check for the threads library under a number of different
7146# names; the ordering is very important because some systems
7147# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7148# libraries is broken (non-POSIX).
7149
7150# Create a list of thread flags to try. Items starting with a "-" are
7151# C compiler flags, and other items are library names, except for "none"
7152# which indicates that we try without any flags at all, and "pthread-config"
7153# which is a program returning the flags for the Pth emulation library.
7154
7155acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7156
7157# The ordering *is* (sometimes) important. Some notes on the
7158# individual items follow:
7159
7160# pthreads: AIX (must check this before -lpthread)
7161# none: in case threads are in libc; should be tried before -Kthread and
7162# other compiler flags to prevent continual compiler warnings
7163# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7164# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7165# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7166# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7167# -pthreads: Solaris/gcc
7168# -mthreads: Mingw32/gcc, Lynx/gcc
7169# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7170# doesn't hurt to check since this sometimes defines pthreads too;
7171# also defines -D_REENTRANT)
7172# ... -mt is also the pthreads flag for HP/aCC
7173# pthread: Linux, etcetera
7174# --thread-safe: KAI C++
7175# pthread-config: use pthread-config program (for GNU Pth library)
7176
7177case "${host_cpu}-${host_os}" in
7178 *solaris*)
7179
7180 # On Solaris (at least, for some versions), libc contains stubbed
7181 # (non-functional) versions of the pthreads routines, so link-based
7182 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7183 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7184 # a function called by this macro, so we could check for that, but
7185 # who knows whether they'll stub that too in a future libc.) So,
7186 # we'll just look for -pthreads and -lpthread first:
7187
7188 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7189 ;;
cristy3ed852e2009-09-05 21:47:34 +00007190esac
7191
7192if test x"$acx_pthread_ok" = xno; then
7193for flag in $acx_pthread_flags; do
7194
7195 case $flag in
7196 none)
cristy8b350f62009-11-15 23:12:43 +00007197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00007198$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7199 ;;
7200
7201 -*)
cristy8b350f62009-11-15 23:12:43 +00007202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007203$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7204 PTHREAD_CFLAGS="$flag"
7205 ;;
7206
7207 pthread-config)
7208 # Extract the first word of "pthread-config", so it can be a program name with args.
7209set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007211$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007212if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007213 $as_echo_n "(cached) " >&6
7214else
7215 if test -n "$acx_pthread_config"; then
7216 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7217else
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007223 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00007226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007227 break 2
7228 fi
7229done
cristy8b350f62009-11-15 23:12:43 +00007230 done
cristy3ed852e2009-09-05 21:47:34 +00007231IFS=$as_save_IFS
7232
7233 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7234fi
7235fi
7236acx_pthread_config=$ac_cv_prog_acx_pthread_config
7237if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00007238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00007239$as_echo "$acx_pthread_config" >&6; }
7240else
cristy8b350f62009-11-15 23:12:43 +00007241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007242$as_echo "no" >&6; }
7243fi
7244
7245
7246 if test x"$acx_pthread_config" = xno; then continue; fi
7247 PTHREAD_CFLAGS="`pthread-config --cflags`"
7248 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7249 ;;
7250
7251 *)
cristy8b350f62009-11-15 23:12:43 +00007252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007253$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7254 PTHREAD_LIBS="-l$flag"
7255 ;;
7256 esac
7257
7258 save_LIBS="$LIBS"
7259 save_CFLAGS="$CFLAGS"
7260 LIBS="$PTHREAD_LIBS $LIBS"
7261 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7262
7263 # Check for various functions. We must include pthread.h,
7264 # since some functions may be macros. (On the Sequent, we
7265 # need a special flag -Kthread to make this header compile.)
7266 # We check for pthread_join because it is in -lpthread on IRIX
7267 # while pthread_create is in libc. We check for pthread_attr_init
7268 # due to DEC craziness with -lpthreads. We check for
7269 # pthread_cleanup_push because it is one of the few pthread
7270 # functions on Solaris that doesn't have a non-functional libc stub.
7271 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00007272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007273/* end confdefs.h. */
7274#include <pthread.h>
7275int
7276main ()
7277{
7278pthread_t th; pthread_join(th, 0);
7279 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7280 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7281 ;
7282 return 0;
7283}
7284_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007285if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007286 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007287fi
cristy8b350f62009-11-15 23:12:43 +00007288rm -f core conftest.err conftest.$ac_objext \
7289 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007290
7291 LIBS="$save_LIBS"
7292 CFLAGS="$save_CFLAGS"
7293
cristy8b350f62009-11-15 23:12:43 +00007294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007295$as_echo "$acx_pthread_ok" >&6; }
7296 if test "x$acx_pthread_ok" = xyes; then
7297 break;
7298 fi
7299
7300 PTHREAD_LIBS=""
7301 PTHREAD_CFLAGS=""
7302done
7303fi
7304
7305# Various other checks:
7306if test "x$acx_pthread_ok" = xyes; then
7307 save_LIBS="$LIBS"
7308 LIBS="$PTHREAD_LIBS $LIBS"
7309 save_CFLAGS="$CFLAGS"
7310 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7311
7312 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00007313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00007314$as_echo_n "checking for joinable pthread attribute... " >&6; }
7315 attr_name=unknown
7316 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00007317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007318/* end confdefs.h. */
7319#include <pthread.h>
7320int
7321main ()
7322{
7323int attr=$attr; return attr;
7324 ;
7325 return 0;
7326}
7327_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007328if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007329 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00007330fi
cristy8b350f62009-11-15 23:12:43 +00007331rm -f core conftest.err conftest.$ac_objext \
7332 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007333 done
cristy8b350f62009-11-15 23:12:43 +00007334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00007335$as_echo "$attr_name" >&6; }
7336 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7337
7338cat >>confdefs.h <<_ACEOF
7339#define PTHREAD_CREATE_JOINABLE $attr_name
7340_ACEOF
7341
7342 fi
7343
cristy8b350f62009-11-15 23:12:43 +00007344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00007345$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7346 flag=no
7347 case "${host_cpu}-${host_os}" in
7348 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7349 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7350 esac
cristy8b350f62009-11-15 23:12:43 +00007351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00007352$as_echo "${flag}" >&6; }
7353 if test "x$flag" != xno; then
7354 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7355 fi
7356
7357 LIBS="$save_LIBS"
7358 CFLAGS="$save_CFLAGS"
7359
7360 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00007361 if test x"$GCC" != xyes; then
7362 for ac_prog in xlc_r cc_r
7363do
7364 # Extract the first word of "$ac_prog", so it can be a program name with args.
7365set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007367$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007368if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007369 $as_echo_n "(cached) " >&6
7370else
7371 if test -n "$PTHREAD_CC"; then
7372 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7373else
7374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375for as_dir in $PATH
7376do
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007379 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007380 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 +00007381 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00007382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007383 break 2
7384 fi
7385done
cristy8b350f62009-11-15 23:12:43 +00007386 done
cristy3ed852e2009-09-05 21:47:34 +00007387IFS=$as_save_IFS
7388
cristy3ed852e2009-09-05 21:47:34 +00007389fi
7390fi
7391PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7392if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007394$as_echo "$PTHREAD_CC" >&6; }
7395else
cristy8b350f62009-11-15 23:12:43 +00007396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007397$as_echo "no" >&6; }
7398fi
7399
cristy736173a2009-09-20 21:18:22 +00007400
7401 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00007402done
cristy736173a2009-09-20 21:18:22 +00007403test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00007404
cristy736173a2009-09-20 21:18:22 +00007405 else
7406 PTHREAD_CC=$CC
7407 fi
cristy3ed852e2009-09-05 21:47:34 +00007408else
cristy736173a2009-09-20 21:18:22 +00007409 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00007410fi
7411
cristy3ed852e2009-09-05 21:47:34 +00007412
7413
7414
7415
7416# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7417if test x"$acx_pthread_ok" = xyes; then
7418
cristy8b350f62009-11-15 23:12:43 +00007419$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007420
7421 :
7422else
7423 acx_pthread_ok=no
7424
7425fi
7426ac_ext=c
7427ac_cpp='$CPP $CPPFLAGS'
7428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7430ac_compiler_gnu=$ac_cv_c_compiler_gnu
7431
7432
7433 if test "$acx_pthread_ok" = yes; then
7434 have_threads=yes
7435 DEF_THREAD="$PTHREAD_CFLAGS"
7436 CFLAGS="$CFLAGS $DEF_THREAD"
7437 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7438 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007439 { $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 +00007440$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7441 CC="$PTHREAD_CC"
7442 fi
7443 fi
7444fi
7445
7446# Enable support for OpenMP
7447if test "$have_threads" != 'yes'; then
7448 ac_cv_prog_c_openmp=unsupported
7449fi
7450
7451 OPENMP_CFLAGS=
7452 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00007453if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007454 enableval=$enable_openmp;
7455fi
7456
7457 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00007458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007459$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007460if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007461 $as_echo_n "(cached) " >&6
7462else
cristy8b350f62009-11-15 23:12:43 +00007463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007465
7466#ifndef _OPENMP
7467 choke me
7468#endif
7469#include <omp.h>
7470int main () { return omp_get_num_threads (); }
7471
7472_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007473if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007474 ac_cv_prog_c_openmp='none needed'
7475else
cristy8b350f62009-11-15 23:12:43 +00007476 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00007477 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7478 ac_save_CFLAGS=$CFLAGS
7479 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00007480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007482
7483#ifndef _OPENMP
7484 choke me
7485#endif
7486#include <omp.h>
7487int main () { return omp_get_num_threads (); }
7488
7489_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007490if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007491 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00007492fi
cristy8b350f62009-11-15 23:12:43 +00007493rm -f core conftest.err conftest.$ac_objext \
7494 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007495 CFLAGS=$ac_save_CFLAGS
7496 if test "$ac_cv_prog_c_openmp" != unsupported; then
7497 break
7498 fi
7499 done
7500fi
cristy8b350f62009-11-15 23:12:43 +00007501rm -f core conftest.err conftest.$ac_objext \
7502 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007503fi
cristy8b350f62009-11-15 23:12:43 +00007504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00007505$as_echo "$ac_cv_prog_c_openmp" >&6; }
7506 case $ac_cv_prog_c_openmp in #(
7507 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00007508 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00007509 *)
cristy8b350f62009-11-15 23:12:43 +00007510 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00007511 esac
7512 fi
7513
7514
7515CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7516MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7517
7518
cristy736173a2009-09-20 21:18:22 +00007519# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00007520
7521ac_ext=c
7522ac_cpp='$CPP $CPPFLAGS'
7523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526
cristy8b350f62009-11-15 23:12:43 +00007527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00007528$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007529if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007530 $as_echo_n "(cached) " >&6
7531else
cristy8b350f62009-11-15 23:12:43 +00007532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007533/* end confdefs.h. */
7534
7535int
7536main ()
7537{
7538#ifndef _MSC_VER
7539 choke me
7540#endif
7541
7542 ;
7543 return 0;
7544}
7545_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007546if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007547 ax_compiler_ms=yes
7548else
cristy8b350f62009-11-15 23:12:43 +00007549 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00007550fi
cristy736173a2009-09-20 21:18:22 +00007551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552ax_cv_c_compiler_ms=$ax_compiler_ms
7553
7554fi
cristy8b350f62009-11-15 23:12:43 +00007555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00007556$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy8b350f62009-11-15 23:12:43 +00007557if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007558 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7559fi
7560
cristy736173a2009-09-20 21:18:22 +00007561ax_save_CPPFLAGS=$CPPFLAGS
7562CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +00007563for ac_header in CL/opencl.h OpenCL/OpenCL.h
cristy8b350f62009-11-15 23:12:43 +00007564do :
7565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7566ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7567eval as_val=\$$as_ac_Header
7568 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007569 cat >>confdefs.h <<_ACEOF
7570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7571_ACEOF
7572
7573fi
7574
7575done
7576
7577CPPFLAGS=$ax_save_CPPFLAGS
7578
cristy736173a2009-09-20 21:18:22 +00007579for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00007580do :
7581 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7582if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007583 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007584#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00007585_ACEOF
7586
7587fi
7588
7589done
7590
7591
7592
7593
cristy8b350f62009-11-15 23:12:43 +00007594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00007595$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007596if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007597 $as_echo_n "(cached) " >&6
7598else
7599 ax_cv_check_cl_libcl=no
7600case $host_cpu in
7601 x86_64) ax_check_cl_libdir=lib64 ;;
7602 *) ax_check_cl_libdir=lib ;;
7603esac
7604ax_save_CPPFLAGS=$CPPFLAGS
7605CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7606ax_save_LIBS=$LIBS
7607LIBS=""
cristya49aa422009-09-20 23:40:10 +00007608ax_check_libs="-lOpenCL -lCL"
cristy736173a2009-09-20 21:18:22 +00007609for ax_lib in $ax_check_libs; do
cristy8b350f62009-11-15 23:12:43 +00007610 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007611 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
7612else
7613 ax_try_lib=$ax_lib
7614fi
cristy736173a2009-09-20 21:18:22 +00007615 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
cristy8b350f62009-11-15 23:12:43 +00007616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007617/* end confdefs.h. */
7618
7619# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7620# include <windows.h>
7621# endif
cristya03a0852009-10-13 02:02:39 +00007622# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007623# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007624# elif defined(HAVE_OPENCL_OPENCL_H)
7625# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007626# else
cristya03a0852009-10-13 02:02:39 +00007627# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007628# endif
7629int
7630main ()
7631{
cristyc7083c12009-10-14 03:16:55 +00007632clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007633 ;
7634 return 0;
7635}
7636_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007637if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007638 ax_cv_check_cl_libcl=$ax_try_lib; break
7639else
cristy8b350f62009-11-15 23:12:43 +00007640 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"
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007642/* end confdefs.h. */
7643
7644# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7645# include <windows.h>
7646# endif
cristya03a0852009-10-13 02:02:39 +00007647# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007648# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007649# elif defined(HAVE_OPENCL_OPENCL_H)
7650# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007651# else
cristya03a0852009-10-13 02:02:39 +00007652# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007653# endif
7654int
7655main ()
7656{
cristyc7083c12009-10-14 03:16:55 +00007657clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007658 ;
7659 return 0;
7660}
7661_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007662if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007663 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
7664else
cristy8b350f62009-11-15 23:12:43 +00007665 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"
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007667/* end confdefs.h. */
7668
7669# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7670# include <windows.h>
7671# endif
cristya03a0852009-10-13 02:02:39 +00007672# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007673# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007674# elif defined(HAVE_OPENCL_OPENCL_H)
7675# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007676# else
cristya03a0852009-10-13 02:02:39 +00007677# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007678# endif
7679int
7680main ()
7681{
cristyc7083c12009-10-14 03:16:55 +00007682clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007683 ;
7684 return 0;
7685}
7686_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007687if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007688 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00007689fi
cristy8b350f62009-11-15 23:12:43 +00007690rm -f core conftest.err conftest.$ac_objext \
7691 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007692fi
cristy8b350f62009-11-15 23:12:43 +00007693rm -f core conftest.err conftest.$ac_objext \
7694 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007695fi
cristy8b350f62009-11-15 23:12:43 +00007696rm -f core conftest.err conftest.$ac_objext \
7697 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007698done
7699
cristy8b350f62009-11-15 23:12:43 +00007700if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007701 LIBS='-framework OpenCL'
cristy8b350f62009-11-15 23:12:43 +00007702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007703/* end confdefs.h. */
7704
7705# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7706# include <windows.h>
7707# endif
cristya03a0852009-10-13 02:02:39 +00007708# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007709# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007710# elif defined(HAVE_OPENCL_OPENCL_H)
7711# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007712# else
cristya03a0852009-10-13 02:02:39 +00007713# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007714# endif
7715int
7716main ()
7717{
cristyc7083c12009-10-14 03:16:55 +00007718clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007719 ;
7720 return 0;
7721}
7722_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007723if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007724 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00007725fi
cristy8b350f62009-11-15 23:12:43 +00007726rm -f core conftest.err conftest.$ac_objext \
7727 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007728fi
7729
cristy736173a2009-09-20 21:18:22 +00007730LIBS=$ax_save_LIBS
7731CPPFLAGS=$ax_save_CPPFLAGS
7732fi
cristy8b350f62009-11-15 23:12:43 +00007733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00007734$as_echo "$ax_cv_check_cl_libcl" >&6; }
7735
cristy8b350f62009-11-15 23:12:43 +00007736if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007737 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
7738else
7739 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
7740fi
cristy736173a2009-09-20 21:18:22 +00007741ac_ext=c
7742ac_cpp='$CPP $CPPFLAGS'
7743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7745ac_compiler_gnu=$ac_cv_c_compiler_gnu
7746
7747
7748
7749
7750
cristyc7083c12009-10-14 03:16:55 +00007751CFLAGS="$CL_CFLAGS $CFLAGS"
7752LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00007753
cristy2e8b51d2009-10-17 18:26:15 +00007754
cristy3ed852e2009-09-05 21:47:34 +00007755########
7756#
7757# Check for large file support
7758#
7759########
7760# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00007761if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007762 enableval=$enable_largefile;
7763fi
7764
7765if test "$enable_largefile" != no; then
7766
cristy8b350f62009-11-15 23:12:43 +00007767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007768$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007769if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007770 $as_echo_n "(cached) " >&6
7771else
7772 ac_cv_sys_largefile_CC=no
7773 if test "$GCC" != yes; then
7774 ac_save_CC=$CC
7775 while :; do
7776 # IRIX 6.2 and later do not support large files by default,
7777 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00007778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007779/* end confdefs.h. */
7780#include <sys/types.h>
7781 /* Check that off_t can represent 2**63 - 1 correctly.
7782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7783 since some C++ compilers masquerading as C compilers
7784 incorrectly reject 9223372036854775807. */
7785#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7787 && LARGE_OFF_T % 2147483647 == 1)
7788 ? 1 : -1];
7789int
7790main ()
7791{
7792
7793 ;
7794 return 0;
7795}
7796_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007797 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007798 break
cristy3ed852e2009-09-05 21:47:34 +00007799fi
cristy3ed852e2009-09-05 21:47:34 +00007800rm -f core conftest.err conftest.$ac_objext
7801 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00007802 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007803 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00007804fi
cristy3ed852e2009-09-05 21:47:34 +00007805rm -f core conftest.err conftest.$ac_objext
7806 break
7807 done
7808 CC=$ac_save_CC
7809 rm -f conftest.$ac_ext
7810 fi
7811fi
cristy8b350f62009-11-15 23:12:43 +00007812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007813$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7814 if test "$ac_cv_sys_largefile_CC" != no; then
7815 CC=$CC$ac_cv_sys_largefile_CC
7816 fi
7817
cristy8b350f62009-11-15 23:12:43 +00007818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007819$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007820if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007821 $as_echo_n "(cached) " >&6
7822else
7823 while :; do
cristy8b350f62009-11-15 23:12:43 +00007824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007825/* end confdefs.h. */
7826#include <sys/types.h>
7827 /* Check that off_t can represent 2**63 - 1 correctly.
7828 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7829 since some C++ compilers masquerading as C compilers
7830 incorrectly reject 9223372036854775807. */
7831#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7832 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7833 && LARGE_OFF_T % 2147483647 == 1)
7834 ? 1 : -1];
7835int
7836main ()
7837{
7838
7839 ;
7840 return 0;
7841}
7842_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007843if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007844 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00007845fi
cristy3ed852e2009-09-05 21:47:34 +00007846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007848/* end confdefs.h. */
7849#define _FILE_OFFSET_BITS 64
7850#include <sys/types.h>
7851 /* Check that off_t can represent 2**63 - 1 correctly.
7852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7853 since some C++ compilers masquerading as C compilers
7854 incorrectly reject 9223372036854775807. */
7855#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7857 && LARGE_OFF_T % 2147483647 == 1)
7858 ? 1 : -1];
7859int
7860main ()
7861{
7862
7863 ;
7864 return 0;
7865}
7866_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007867if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007868 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00007869fi
cristy3ed852e2009-09-05 21:47:34 +00007870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 ac_cv_sys_file_offset_bits=unknown
7872 break
7873done
7874fi
cristy8b350f62009-11-15 23:12:43 +00007875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00007876$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7877case $ac_cv_sys_file_offset_bits in #(
7878 no | unknown) ;;
7879 *)
7880cat >>confdefs.h <<_ACEOF
7881#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7882_ACEOF
7883;;
7884esac
7885rm -rf conftest*
7886 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00007887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007888$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007889if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007890 $as_echo_n "(cached) " >&6
7891else
7892 while :; do
cristy8b350f62009-11-15 23:12:43 +00007893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007894/* end confdefs.h. */
7895#include <sys/types.h>
7896 /* Check that off_t can represent 2**63 - 1 correctly.
7897 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7898 since some C++ compilers masquerading as C compilers
7899 incorrectly reject 9223372036854775807. */
7900#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7901 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7902 && LARGE_OFF_T % 2147483647 == 1)
7903 ? 1 : -1];
7904int
7905main ()
7906{
7907
7908 ;
7909 return 0;
7910}
7911_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007912if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007913 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00007914fi
cristy3ed852e2009-09-05 21:47:34 +00007915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007917/* end confdefs.h. */
7918#define _LARGE_FILES 1
7919#include <sys/types.h>
7920 /* Check that off_t can represent 2**63 - 1 correctly.
7921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7922 since some C++ compilers masquerading as C compilers
7923 incorrectly reject 9223372036854775807. */
7924#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7926 && LARGE_OFF_T % 2147483647 == 1)
7927 ? 1 : -1];
7928int
7929main ()
7930{
7931
7932 ;
7933 return 0;
7934}
7935_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007936if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007937 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00007938fi
cristy3ed852e2009-09-05 21:47:34 +00007939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 ac_cv_sys_large_files=unknown
7941 break
7942done
7943fi
cristy8b350f62009-11-15 23:12:43 +00007944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007945$as_echo "$ac_cv_sys_large_files" >&6; }
7946case $ac_cv_sys_large_files in #(
7947 no | unknown) ;;
7948 *)
7949cat >>confdefs.h <<_ACEOF
7950#define _LARGE_FILES $ac_cv_sys_large_files
7951_ACEOF
7952;;
7953esac
7954rm -rf conftest*
7955 fi
7956fi
7957
cristy8b350f62009-11-15 23:12:43 +00007958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007959$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007960if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007961 $as_echo_n "(cached) " >&6
7962else
7963 while :; do
cristy8b350f62009-11-15 23:12:43 +00007964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007965/* end confdefs.h. */
7966#include <sys/types.h> /* for off_t */
7967 #include <stdio.h>
7968int
7969main ()
7970{
7971int (*fp) (FILE *, off_t, int) = fseeko;
7972 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7973 ;
7974 return 0;
7975}
7976_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007977if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007978 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00007979fi
cristy8b350f62009-11-15 23:12:43 +00007980rm -f core conftest.err conftest.$ac_objext \
7981 conftest$ac_exeext conftest.$ac_ext
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007983/* end confdefs.h. */
7984#define _LARGEFILE_SOURCE 1
7985#include <sys/types.h> /* for off_t */
7986 #include <stdio.h>
7987int
7988main ()
7989{
7990int (*fp) (FILE *, off_t, int) = fseeko;
7991 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7992 ;
7993 return 0;
7994}
7995_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007996if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007997 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00007998fi
cristy8b350f62009-11-15 23:12:43 +00007999rm -f core conftest.err conftest.$ac_objext \
8000 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008001 ac_cv_sys_largefile_source=unknown
8002 break
8003done
8004fi
cristy8b350f62009-11-15 23:12:43 +00008005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00008006$as_echo "$ac_cv_sys_largefile_source" >&6; }
8007case $ac_cv_sys_largefile_source in #(
8008 no | unknown) ;;
8009 *)
8010cat >>confdefs.h <<_ACEOF
8011#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8012_ACEOF
8013;;
8014esac
8015rm -rf conftest*
8016
8017# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8018# in glibc 2.1.3, but that breaks too many other things.
8019# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8020if test $ac_cv_sys_largefile_source != unknown; then
8021
cristy8b350f62009-11-15 23:12:43 +00008022$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008023
8024fi
8025
8026LFS_CPPFLAGS=''
8027if test "$enable_largefile" != no; then
8028 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8029 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8030 else
cristy8b350f62009-11-15 23:12:43 +00008031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00008032$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008033 if test "$cross_compiling" = yes; then :
8034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00008036as_fn_error "cannot run test program while cross compiling
8037See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00008038else
cristy8b350f62009-11-15 23:12:43 +00008039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008041#include <unistd.h>
8042 main () {
8043 exit(!(sizeof(off_t) == 8));
8044 }
8045_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008046if ac_fn_c_try_run "$LINENO"; then :
8047 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008048
cristy8b350f62009-11-15 23:12:43 +00008049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008050$as_echo "yes" >&6; }
8051else
cristy8b350f62009-11-15 23:12:43 +00008052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008053$as_echo "no" >&6; }
8054fi
cristy8b350f62009-11-15 23:12:43 +00008055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8056 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008057fi
8058
cristy3ed852e2009-09-05 21:47:34 +00008059 fi
8060 if test "$ac_cv_sys_large_files" != 'no'; then
8061 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8062 fi
8063 if test "$ac_cv_sys_largefile_source" != 'no'; then
8064 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8065 fi
8066fi
8067
8068
8069#
8070# Configure libtool & libltdl
8071#
8072# Configure libtool
8073enable_dlopen=yes
8074
8075
8076
8077case `pwd` in
8078 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00008079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00008080$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8081esac
8082
8083
8084
cristy18304f92009-11-22 15:48:26 +00008085macro_version='2.2.6b'
8086macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00008087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100ltmain="$ac_aux_dir/ltmain.sh"
8101
cristy8b350f62009-11-15 23:12:43 +00008102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00008103$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008104if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008105 $as_echo_n "(cached) " >&6
8106else
8107 if test -n "$NM"; then
8108 # Let the user override the test.
8109 lt_cv_path_NM="$NM"
8110else
8111 lt_nm_to_check="${ac_tool_prefix}nm"
8112 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8113 lt_nm_to_check="$lt_nm_to_check nm"
8114 fi
8115 for lt_tmp_nm in $lt_nm_to_check; do
8116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8117 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8118 IFS="$lt_save_ifs"
8119 test -z "$ac_dir" && ac_dir=.
8120 tmp_nm="$ac_dir/$lt_tmp_nm"
8121 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8122 # Check to see if the nm accepts a BSD-compat flag.
8123 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8124 # nm: unknown option "B" ignored
8125 # Tru64's nm complains that /dev/null is an invalid object file
8126 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8127 */dev/null* | *'Invalid file or object type'*)
8128 lt_cv_path_NM="$tmp_nm -B"
8129 break
8130 ;;
8131 *)
8132 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8133 */dev/null*)
8134 lt_cv_path_NM="$tmp_nm -p"
8135 break
8136 ;;
8137 *)
8138 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8139 continue # so that we can try to find one that supports BSD flags
8140 ;;
8141 esac
8142 ;;
8143 esac
8144 fi
8145 done
8146 IFS="$lt_save_ifs"
8147 done
8148 : ${lt_cv_path_NM=no}
8149fi
8150fi
cristy8b350f62009-11-15 23:12:43 +00008151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00008152$as_echo "$lt_cv_path_NM" >&6; }
8153if test "$lt_cv_path_NM" != "no"; then
8154 NM="$lt_cv_path_NM"
8155else
8156 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00008157 if test -n "$ac_tool_prefix"; then
8158 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008159 do
8160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008163$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008164if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008165 $as_echo_n "(cached) " >&6
8166else
8167 if test -n "$DUMPBIN"; then
8168 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8169else
8170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171for as_dir in $PATH
8172do
8173 IFS=$as_save_IFS
8174 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008175 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8177 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008179 break 2
8180 fi
8181done
cristy8b350f62009-11-15 23:12:43 +00008182 done
cristy3ed852e2009-09-05 21:47:34 +00008183IFS=$as_save_IFS
8184
8185fi
8186fi
8187DUMPBIN=$ac_cv_prog_DUMPBIN
8188if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008190$as_echo "$DUMPBIN" >&6; }
8191else
cristy8b350f62009-11-15 23:12:43 +00008192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008193$as_echo "no" >&6; }
8194fi
8195
8196
8197 test -n "$DUMPBIN" && break
8198 done
8199fi
8200if test -z "$DUMPBIN"; then
8201 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00008202 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008203do
8204 # Extract the first word of "$ac_prog", so it can be a program name with args.
8205set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008207$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008208if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008209 $as_echo_n "(cached) " >&6
8210else
8211 if test -n "$ac_ct_DUMPBIN"; then
8212 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8213else
8214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215for as_dir in $PATH
8216do
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008219 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008223 break 2
8224 fi
8225done
cristy8b350f62009-11-15 23:12:43 +00008226 done
cristy3ed852e2009-09-05 21:47:34 +00008227IFS=$as_save_IFS
8228
8229fi
8230fi
8231ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8232if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008234$as_echo "$ac_ct_DUMPBIN" >&6; }
8235else
cristy8b350f62009-11-15 23:12:43 +00008236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008237$as_echo "no" >&6; }
8238fi
8239
8240
8241 test -n "$ac_ct_DUMPBIN" && break
8242done
8243
8244 if test "x$ac_ct_DUMPBIN" = x; then
8245 DUMPBIN=":"
8246 else
8247 case $cross_compiling:$ac_tool_warned in
8248yes:)
cristy8b350f62009-11-15 23:12:43 +00008249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8251ac_tool_warned=yes ;;
8252esac
8253 DUMPBIN=$ac_ct_DUMPBIN
8254 fi
8255fi
8256
8257
8258 if test "$DUMPBIN" != ":"; then
8259 NM="$DUMPBIN"
8260 fi
8261fi
8262test -z "$NM" && NM=nm
8263
8264
8265
8266
8267
8268
cristy8b350f62009-11-15 23:12:43 +00008269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008270$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008271if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008272 $as_echo_n "(cached) " >&6
8273else
8274 lt_cv_nm_interface="BSD nm"
8275 echo "int some_variable = 0;" > conftest.$ac_ext
cristy9c562ad2009-12-28 02:17:04 +00008276 (eval echo "\"\$as_me:8276: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008277 (eval "$ac_compile" 2>conftest.err)
8278 cat conftest.err >&5
cristy9c562ad2009-12-28 02:17:04 +00008279 (eval echo "\"\$as_me:8279: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008280 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8281 cat conftest.err >&5
cristy9c562ad2009-12-28 02:17:04 +00008282 (eval echo "\"\$as_me:8282: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008283 cat conftest.out >&5
8284 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8285 lt_cv_nm_interface="MS dumpbin"
8286 fi
8287 rm -f conftest*
8288fi
cristy8b350f62009-11-15 23:12:43 +00008289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008290$as_echo "$lt_cv_nm_interface" >&6; }
8291
8292# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00008293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00008294$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008295if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008296 $as_echo_n "(cached) " >&6
8297else
8298 i=0
8299 teststring="ABCD"
8300
8301 case $build_os in
8302 msdosdjgpp*)
8303 # On DJGPP, this test can blow up pretty badly due to problems in libc
8304 # (any single argument exceeding 2000 bytes causes a buffer overrun
8305 # during glob expansion). Even if it were fixed, the result of this
8306 # check would be larger than it should be.
8307 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8308 ;;
8309
8310 gnu*)
8311 # Under GNU Hurd, this test is not required because there is
8312 # no limit to the length of command line arguments.
8313 # Libtool will interpret -1 as no limit whatsoever
8314 lt_cv_sys_max_cmd_len=-1;
8315 ;;
8316
8317 cygwin* | mingw* | cegcc*)
8318 # On Win9x/ME, this test blows up -- it succeeds, but takes
8319 # about 5 minutes as the teststring grows exponentially.
8320 # Worse, since 9x/ME are not pre-emptively multitasking,
8321 # you end up with a "frozen" computer, even though with patience
8322 # the test eventually succeeds (with a max line length of 256k).
8323 # Instead, let's just punt: use the minimum linelength reported by
8324 # all of the supported platforms: 8192 (on NT/2K/XP).
8325 lt_cv_sys_max_cmd_len=8192;
8326 ;;
8327
8328 amigaos*)
8329 # On AmigaOS with pdksh, this test takes hours, literally.
8330 # So we just punt and use a minimum line length of 8192.
8331 lt_cv_sys_max_cmd_len=8192;
8332 ;;
8333
8334 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8335 # This has been around since 386BSD, at least. Likely further.
8336 if test -x /sbin/sysctl; then
8337 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8338 elif test -x /usr/sbin/sysctl; then
8339 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8340 else
8341 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8342 fi
8343 # And add a safety zone
8344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8346 ;;
8347
8348 interix*)
8349 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8350 lt_cv_sys_max_cmd_len=196608
8351 ;;
8352
8353 osf*)
8354 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8355 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8356 # nice to cause kernel panics so lets avoid the loop below.
8357 # First set a reasonable default.
8358 lt_cv_sys_max_cmd_len=16384
8359 #
8360 if test -x /sbin/sysconfig; then
8361 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8362 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8363 esac
8364 fi
8365 ;;
8366 sco3.2v5*)
8367 lt_cv_sys_max_cmd_len=102400
8368 ;;
8369 sysv5* | sco5v6* | sysv4.2uw2*)
8370 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8371 if test -n "$kargmax"; then
8372 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8373 else
8374 lt_cv_sys_max_cmd_len=32768
8375 fi
8376 ;;
8377 *)
8378 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8379 if test -n "$lt_cv_sys_max_cmd_len"; then
8380 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8382 else
8383 # Make teststring a little bigger before we do anything with it.
8384 # a 1K string should be a reasonable start.
8385 for i in 1 2 3 4 5 6 7 8 ; do
8386 teststring=$teststring$teststring
8387 done
8388 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8389 # If test is not a shell built-in, we'll probably end up computing a
8390 # maximum length that is only half of the actual maximum length, but
8391 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00008392 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8393 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00008394 test $i != 17 # 1/2 MB should be enough
8395 do
8396 i=`expr $i + 1`
8397 teststring=$teststring$teststring
8398 done
8399 # Only check the string length outside the loop.
8400 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8401 teststring=
8402 # Add a significant safety factor because C++ compilers can tack on
8403 # massive amounts of additional arguments before passing them to the
8404 # linker. It appears as though 1/2 is a usable value.
8405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8406 fi
8407 ;;
8408 esac
8409
8410fi
8411
8412if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00008413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00008414$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8415else
cristy8b350f62009-11-15 23:12:43 +00008416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00008417$as_echo "none" >&6; }
8418fi
8419max_cmd_len=$lt_cv_sys_max_cmd_len
8420
8421
8422
8423
8424
8425
8426: ${CP="cp -f"}
8427: ${MV="mv -f"}
8428: ${RM="rm -f"}
8429
cristy8b350f62009-11-15 23:12:43 +00008430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00008431$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8432# Try some XSI features
8433xsi_shell=no
8434( _lt_dummy="a/b/c"
8435 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8436 = c,a/b,, \
8437 && eval 'test $(( 1 + 1 )) -eq 2 \
8438 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8439 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00008440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00008441$as_echo "$xsi_shell" >&6; }
8442
8443
cristy8b350f62009-11-15 23:12:43 +00008444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00008445$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8446lt_shell_append=no
8447( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8448 >/dev/null 2>&1 \
8449 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00008450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00008451$as_echo "$lt_shell_append" >&6; }
8452
8453
8454if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8455 lt_unset=unset
8456else
8457 lt_unset=false
8458fi
8459
8460
8461
8462
8463
8464# test EBCDIC or ASCII
8465case `echo X|tr X '\101'` in
8466 A) # ASCII based system
8467 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8468 lt_SP2NL='tr \040 \012'
8469 lt_NL2SP='tr \015\012 \040\040'
8470 ;;
8471 *) # EBCDIC based system
8472 lt_SP2NL='tr \100 \n'
8473 lt_NL2SP='tr \r\n \100\100'
8474 ;;
8475esac
8476
8477
8478
8479
8480
8481
8482
8483
8484
cristy8b350f62009-11-15 23:12:43 +00008485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008486$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008487if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008488 $as_echo_n "(cached) " >&6
8489else
8490 lt_cv_ld_reload_flag='-r'
8491fi
cristy8b350f62009-11-15 23:12:43 +00008492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008493$as_echo "$lt_cv_ld_reload_flag" >&6; }
8494reload_flag=$lt_cv_ld_reload_flag
8495case $reload_flag in
8496"" | " "*) ;;
8497*) reload_flag=" $reload_flag" ;;
8498esac
8499reload_cmds='$LD$reload_flag -o $output$reload_objs'
8500case $host_os in
8501 darwin*)
8502 if test "$GCC" = yes; then
8503 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8504 else
8505 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8506 fi
8507 ;;
8508esac
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518if test -n "$ac_tool_prefix"; then
8519 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8520set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008522$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008523if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008524 $as_echo_n "(cached) " >&6
8525else
8526 if test -n "$OBJDUMP"; then
8527 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8528else
8529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530for as_dir in $PATH
8531do
8532 IFS=$as_save_IFS
8533 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8536 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00008537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008538 break 2
8539 fi
8540done
cristy8b350f62009-11-15 23:12:43 +00008541 done
cristy3ed852e2009-09-05 21:47:34 +00008542IFS=$as_save_IFS
8543
8544fi
8545fi
8546OBJDUMP=$ac_cv_prog_OBJDUMP
8547if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008549$as_echo "$OBJDUMP" >&6; }
8550else
cristy8b350f62009-11-15 23:12:43 +00008551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008552$as_echo "no" >&6; }
8553fi
8554
8555
8556fi
8557if test -z "$ac_cv_prog_OBJDUMP"; then
8558 ac_ct_OBJDUMP=$OBJDUMP
8559 # Extract the first word of "objdump", so it can be a program name with args.
8560set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008562$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008563if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008564 $as_echo_n "(cached) " >&6
8565else
8566 if test -n "$ac_ct_OBJDUMP"; then
8567 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8568else
8569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570for as_dir in $PATH
8571do
8572 IFS=$as_save_IFS
8573 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008574 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8576 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00008577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008578 break 2
8579 fi
8580done
cristy8b350f62009-11-15 23:12:43 +00008581 done
cristy3ed852e2009-09-05 21:47:34 +00008582IFS=$as_save_IFS
8583
8584fi
8585fi
8586ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8587if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008589$as_echo "$ac_ct_OBJDUMP" >&6; }
8590else
cristy8b350f62009-11-15 23:12:43 +00008591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008592$as_echo "no" >&6; }
8593fi
8594
8595 if test "x$ac_ct_OBJDUMP" = x; then
8596 OBJDUMP="false"
8597 else
8598 case $cross_compiling:$ac_tool_warned in
8599yes:)
cristy8b350f62009-11-15 23:12:43 +00008600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8602ac_tool_warned=yes ;;
8603esac
8604 OBJDUMP=$ac_ct_OBJDUMP
8605 fi
8606else
8607 OBJDUMP="$ac_cv_prog_OBJDUMP"
8608fi
8609
8610test -z "$OBJDUMP" && OBJDUMP=objdump
8611
8612
8613
8614
8615
8616
cristy8b350f62009-11-15 23:12:43 +00008617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00008618$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008619if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008620 $as_echo_n "(cached) " >&6
8621else
8622 lt_cv_file_magic_cmd='$MAGIC_CMD'
8623lt_cv_file_magic_test_file=
8624lt_cv_deplibs_check_method='unknown'
8625# Need to set the preceding variable on all platforms that support
8626# interlibrary dependencies.
8627# 'none' -- dependencies not supported.
8628# `unknown' -- same as none, but documents that we really don't know.
8629# 'pass_all' -- all dependencies passed with no checks.
8630# 'test_compile' -- check by making test program.
8631# 'file_magic [[regex]]' -- check by looking for files in library path
8632# which responds to the $file_magic_cmd with a given extended regex.
8633# If you have `file' or equivalent on your system and you're not sure
8634# whether `pass_all' will *always* work, you probably want this one.
8635
8636case $host_os in
8637aix[4-9]*)
8638 lt_cv_deplibs_check_method=pass_all
8639 ;;
8640
8641beos*)
8642 lt_cv_deplibs_check_method=pass_all
8643 ;;
8644
8645bsdi[45]*)
8646 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8647 lt_cv_file_magic_cmd='/usr/bin/file -L'
8648 lt_cv_file_magic_test_file=/shlib/libc.so
8649 ;;
8650
8651cygwin*)
8652 # func_win32_libid is a shell function defined in ltmain.sh
8653 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8654 lt_cv_file_magic_cmd='func_win32_libid'
8655 ;;
8656
8657mingw* | pw32*)
8658 # Base MSYS/MinGW do not provide the 'file' command needed by
8659 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8660 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +00008661 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00008662 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8663 lt_cv_file_magic_cmd='func_win32_libid'
8664 else
8665 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8666 lt_cv_file_magic_cmd='$OBJDUMP -f'
8667 fi
8668 ;;
8669
cristy18304f92009-11-22 15:48:26 +00008670cegcc)
cristy3ed852e2009-09-05 21:47:34 +00008671 # use the weaker test based on 'objdump'. See mingw*.
8672 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8673 lt_cv_file_magic_cmd='$OBJDUMP -f'
8674 ;;
8675
8676darwin* | rhapsody*)
8677 lt_cv_deplibs_check_method=pass_all
8678 ;;
8679
8680freebsd* | dragonfly*)
8681 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8682 case $host_cpu in
8683 i*86 )
8684 # Not sure whether the presence of OpenBSD here was a mistake.
8685 # Let's accept both of them until this is cleared up.
8686 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8687 lt_cv_file_magic_cmd=/usr/bin/file
8688 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8689 ;;
8690 esac
8691 else
8692 lt_cv_deplibs_check_method=pass_all
8693 fi
8694 ;;
8695
8696gnu*)
8697 lt_cv_deplibs_check_method=pass_all
8698 ;;
8699
8700hpux10.20* | hpux11*)
8701 lt_cv_file_magic_cmd=/usr/bin/file
8702 case $host_cpu in
8703 ia64*)
8704 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8705 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8706 ;;
8707 hppa*64*)
cristy18304f92009-11-22 15:48:26 +00008708 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 +00008709 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8710 ;;
8711 *)
cristy18304f92009-11-22 15:48:26 +00008712 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 +00008713 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8714 ;;
8715 esac
8716 ;;
8717
8718interix[3-9]*)
8719 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8721 ;;
8722
8723irix5* | irix6* | nonstopux*)
8724 case $LD in
8725 *-32|*"-32 ") libmagic=32-bit;;
8726 *-n32|*"-n32 ") libmagic=N32;;
8727 *-64|*"-64 ") libmagic=64-bit;;
8728 *) libmagic=never-match;;
8729 esac
8730 lt_cv_deplibs_check_method=pass_all
8731 ;;
8732
8733# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +00008734linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00008735 lt_cv_deplibs_check_method=pass_all
8736 ;;
8737
8738netbsd*)
8739 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8741 else
8742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8743 fi
8744 ;;
8745
8746newos6*)
8747 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8748 lt_cv_file_magic_cmd=/usr/bin/file
8749 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8750 ;;
8751
8752*nto* | *qnx*)
8753 lt_cv_deplibs_check_method=pass_all
8754 ;;
8755
8756openbsd*)
8757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8759 else
8760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8761 fi
8762 ;;
8763
8764osf3* | osf4* | osf5*)
8765 lt_cv_deplibs_check_method=pass_all
8766 ;;
8767
8768rdos*)
8769 lt_cv_deplibs_check_method=pass_all
8770 ;;
8771
8772solaris*)
8773 lt_cv_deplibs_check_method=pass_all
8774 ;;
8775
8776sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8777 lt_cv_deplibs_check_method=pass_all
8778 ;;
8779
8780sysv4 | sysv4.3*)
8781 case $host_vendor in
8782 motorola)
8783 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]'
8784 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8785 ;;
8786 ncr)
8787 lt_cv_deplibs_check_method=pass_all
8788 ;;
8789 sequent)
8790 lt_cv_file_magic_cmd='/bin/file'
8791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8792 ;;
8793 sni)
8794 lt_cv_file_magic_cmd='/bin/file'
8795 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8796 lt_cv_file_magic_test_file=/lib/libc.so
8797 ;;
8798 siemens)
8799 lt_cv_deplibs_check_method=pass_all
8800 ;;
8801 pc)
8802 lt_cv_deplibs_check_method=pass_all
8803 ;;
8804 esac
8805 ;;
8806
8807tpf*)
8808 lt_cv_deplibs_check_method=pass_all
8809 ;;
8810esac
8811
8812fi
cristy8b350f62009-11-15 23:12:43 +00008813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00008814$as_echo "$lt_cv_deplibs_check_method" >&6; }
8815file_magic_cmd=$lt_cv_file_magic_cmd
8816deplibs_check_method=$lt_cv_deplibs_check_method
8817test -z "$deplibs_check_method" && deplibs_check_method=unknown
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830if test -n "$ac_tool_prefix"; then
8831 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8832set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008834$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008835if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008836 $as_echo_n "(cached) " >&6
8837else
8838 if test -n "$AR"; then
8839 ac_cv_prog_AR="$AR" # Let the user override the test.
8840else
8841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842for as_dir in $PATH
8843do
8844 IFS=$as_save_IFS
8845 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008846 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8848 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00008849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008850 break 2
8851 fi
8852done
cristy8b350f62009-11-15 23:12:43 +00008853 done
cristy3ed852e2009-09-05 21:47:34 +00008854IFS=$as_save_IFS
8855
8856fi
8857fi
8858AR=$ac_cv_prog_AR
8859if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00008860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008861$as_echo "$AR" >&6; }
8862else
cristy8b350f62009-11-15 23:12:43 +00008863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008864$as_echo "no" >&6; }
8865fi
8866
8867
8868fi
8869if test -z "$ac_cv_prog_AR"; then
8870 ac_ct_AR=$AR
8871 # Extract the first word of "ar", so it can be a program name with args.
8872set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008874$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008875if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008876 $as_echo_n "(cached) " >&6
8877else
8878 if test -n "$ac_ct_AR"; then
8879 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8880else
8881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882for as_dir in $PATH
8883do
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008886 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00008889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008890 break 2
8891 fi
8892done
cristy8b350f62009-11-15 23:12:43 +00008893 done
cristy3ed852e2009-09-05 21:47:34 +00008894IFS=$as_save_IFS
8895
8896fi
8897fi
8898ac_ct_AR=$ac_cv_prog_ac_ct_AR
8899if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00008900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008901$as_echo "$ac_ct_AR" >&6; }
8902else
cristy8b350f62009-11-15 23:12:43 +00008903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008904$as_echo "no" >&6; }
8905fi
8906
8907 if test "x$ac_ct_AR" = x; then
8908 AR="false"
8909 else
8910 case $cross_compiling:$ac_tool_warned in
8911yes:)
cristy8b350f62009-11-15 23:12:43 +00008912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8914ac_tool_warned=yes ;;
8915esac
8916 AR=$ac_ct_AR
8917 fi
8918else
8919 AR="$ac_cv_prog_AR"
8920fi
8921
8922test -z "$AR" && AR=ar
8923test -z "$AR_FLAGS" && AR_FLAGS=cru
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935if test -n "$ac_tool_prefix"; then
8936 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8937set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008939$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008940if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008941 $as_echo_n "(cached) " >&6
8942else
8943 if test -n "$STRIP"; then
8944 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8945else
8946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947for as_dir in $PATH
8948do
8949 IFS=$as_save_IFS
8950 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008951 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8953 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00008954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008955 break 2
8956 fi
8957done
cristy8b350f62009-11-15 23:12:43 +00008958 done
cristy3ed852e2009-09-05 21:47:34 +00008959IFS=$as_save_IFS
8960
8961fi
8962fi
8963STRIP=$ac_cv_prog_STRIP
8964if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00008965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008966$as_echo "$STRIP" >&6; }
8967else
cristy8b350f62009-11-15 23:12:43 +00008968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008969$as_echo "no" >&6; }
8970fi
8971
8972
8973fi
8974if test -z "$ac_cv_prog_STRIP"; then
8975 ac_ct_STRIP=$STRIP
8976 # Extract the first word of "strip", so it can be a program name with args.
8977set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008979$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008980if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008981 $as_echo_n "(cached) " >&6
8982else
8983 if test -n "$ac_ct_STRIP"; then
8984 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8985else
8986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987for as_dir in $PATH
8988do
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008991 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00008994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008995 break 2
8996 fi
8997done
cristy8b350f62009-11-15 23:12:43 +00008998 done
cristy3ed852e2009-09-05 21:47:34 +00008999IFS=$as_save_IFS
9000
9001fi
9002fi
9003ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9004if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009006$as_echo "$ac_ct_STRIP" >&6; }
9007else
cristy8b350f62009-11-15 23:12:43 +00009008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009009$as_echo "no" >&6; }
9010fi
9011
9012 if test "x$ac_ct_STRIP" = x; then
9013 STRIP=":"
9014 else
9015 case $cross_compiling:$ac_tool_warned in
9016yes:)
cristy8b350f62009-11-15 23:12:43 +00009017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9019ac_tool_warned=yes ;;
9020esac
9021 STRIP=$ac_ct_STRIP
9022 fi
9023else
9024 STRIP="$ac_cv_prog_STRIP"
9025fi
9026
9027test -z "$STRIP" && STRIP=:
9028
9029
9030
9031
9032
9033
9034if test -n "$ac_tool_prefix"; then
9035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9036set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009038$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009039if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009040 $as_echo_n "(cached) " >&6
9041else
9042 if test -n "$RANLIB"; then
9043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9044else
9045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046for as_dir in $PATH
9047do
9048 IFS=$as_save_IFS
9049 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009050 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00009053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009054 break 2
9055 fi
9056done
cristy8b350f62009-11-15 23:12:43 +00009057 done
cristy3ed852e2009-09-05 21:47:34 +00009058IFS=$as_save_IFS
9059
9060fi
9061fi
9062RANLIB=$ac_cv_prog_RANLIB
9063if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009065$as_echo "$RANLIB" >&6; }
9066else
cristy8b350f62009-11-15 23:12:43 +00009067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009068$as_echo "no" >&6; }
9069fi
9070
9071
9072fi
9073if test -z "$ac_cv_prog_RANLIB"; then
9074 ac_ct_RANLIB=$RANLIB
9075 # Extract the first word of "ranlib", so it can be a program name with args.
9076set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009078$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009079if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009080 $as_echo_n "(cached) " >&6
9081else
9082 if test -n "$ac_ct_RANLIB"; then
9083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9084else
9085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086for as_dir in $PATH
9087do
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009090 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9092 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00009093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009094 break 2
9095 fi
9096done
cristy8b350f62009-11-15 23:12:43 +00009097 done
cristy3ed852e2009-09-05 21:47:34 +00009098IFS=$as_save_IFS
9099
9100fi
9101fi
9102ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9103if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009105$as_echo "$ac_ct_RANLIB" >&6; }
9106else
cristy8b350f62009-11-15 23:12:43 +00009107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009108$as_echo "no" >&6; }
9109fi
9110
9111 if test "x$ac_ct_RANLIB" = x; then
9112 RANLIB=":"
9113 else
9114 case $cross_compiling:$ac_tool_warned in
9115yes:)
cristy8b350f62009-11-15 23:12:43 +00009116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9118ac_tool_warned=yes ;;
9119esac
9120 RANLIB=$ac_ct_RANLIB
9121 fi
9122else
9123 RANLIB="$ac_cv_prog_RANLIB"
9124fi
9125
9126test -z "$RANLIB" && RANLIB=:
9127
9128
9129
9130
9131
9132
9133# Determine commands to create old-style static archives.
9134old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9135old_postinstall_cmds='chmod 644 $oldlib'
9136old_postuninstall_cmds=
9137
9138if test -n "$RANLIB"; then
9139 case $host_os in
9140 openbsd*)
9141 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9142 ;;
9143 *)
9144 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9145 ;;
9146 esac
9147 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9148fi
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183# If no C compiler was specified, use CC.
9184LTCC=${LTCC-"$CC"}
9185
9186# If no C compiler flags were specified, use CFLAGS.
9187LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9188
9189# Allow CC to be a program name with arguments.
9190compiler=$CC
9191
9192
9193# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +00009194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +00009195$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009196if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009197 $as_echo_n "(cached) " >&6
9198else
9199
9200# These are sane defaults that work on at least a few old systems.
9201# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9202
9203# Character class describing NM global symbol codes.
9204symcode='[BCDEGRST]'
9205
9206# Regexp to match symbols that can be accessed directly from C.
9207sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9208
9209# Define system-specific variables.
9210case $host_os in
9211aix*)
9212 symcode='[BCDT]'
9213 ;;
9214cygwin* | mingw* | pw32* | cegcc*)
9215 symcode='[ABCDGISTW]'
9216 ;;
9217hpux*)
9218 if test "$host_cpu" = ia64; then
9219 symcode='[ABCDEGRST]'
9220 fi
9221 ;;
9222irix* | nonstopux*)
9223 symcode='[BCDEGRST]'
9224 ;;
9225osf*)
9226 symcode='[BCDEGQRST]'
9227 ;;
9228solaris*)
9229 symcode='[BDRT]'
9230 ;;
9231sco3.2v5*)
9232 symcode='[DT]'
9233 ;;
9234sysv4.2uw2*)
9235 symcode='[DT]'
9236 ;;
9237sysv5* | sco5v6* | unixware* | OpenUNIX*)
9238 symcode='[ABDT]'
9239 ;;
9240sysv4)
9241 symcode='[DFNSTU]'
9242 ;;
9243esac
9244
9245# If we're using GNU nm, then use its standard symbol codes.
9246case `$NM -V 2>&1` in
9247*GNU* | *'with BFD'*)
9248 symcode='[ABCDGIRSTW]' ;;
9249esac
9250
9251# Transform an extracted symbol line into a proper C declaration.
9252# Some systems (esp. on ia64) link data and code symbols differently,
9253# so use this general approach.
9254lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9255
9256# Transform an extracted symbol line into symbol name and symbol address
9257lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9258lt_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'"
9259
9260# Handle CRLF in mingw tool chain
9261opt_cr=
9262case $build_os in
9263mingw*)
9264 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9265 ;;
9266esac
9267
9268# Try without a prefix underscore, then with it.
9269for ac_symprfx in "" "_"; do
9270
9271 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9272 symxfrm="\\1 $ac_symprfx\\2 \\2"
9273
9274 # Write the raw and C identifiers.
9275 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9276 # Fake it for dumpbin and say T for any non-static function
9277 # and D for any global variable.
9278 # Also find C++ and __fastcall symbols from MSVC++,
9279 # which start with @ or ?.
9280 lt_cv_sys_global_symbol_pipe="$AWK '"\
9281" {last_section=section; section=\$ 3};"\
9282" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9283" \$ 0!~/External *\|/{next};"\
9284" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9285" {if(hide[section]) next};"\
9286" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9287" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9288" s[1]~/^[@?]/{print s[1], s[1]; next};"\
9289" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9290" ' prfx=^$ac_symprfx"
9291 else
9292 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9293 fi
9294
9295 # Check to see that the pipe works correctly.
9296 pipe_works=no
9297
9298 rm -f conftest*
9299 cat > conftest.$ac_ext <<_LT_EOF
9300#ifdef __cplusplus
9301extern "C" {
9302#endif
9303char nm_test_var;
9304void nm_test_func(void);
9305void nm_test_func(void){}
9306#ifdef __cplusplus
9307}
9308#endif
9309int main(){nm_test_var='a';nm_test_func();return(0);}
9310_LT_EOF
9311
cristy8b350f62009-11-15 23:12:43 +00009312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009313 (eval $ac_compile) 2>&5
9314 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9316 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009317 # Now try to grab the symbols.
9318 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +00009319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9320 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +00009321 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9323 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +00009324 # Try sorting and uniquifying the output.
9325 if sort "$nlist" | uniq > "$nlist"T; then
9326 mv -f "$nlist"T "$nlist"
9327 else
9328 rm -f "$nlist"T
9329 fi
9330
9331 # Make sure that we snagged all the symbols we need.
9332 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9333 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9334 cat <<_LT_EOF > conftest.$ac_ext
9335#ifdef __cplusplus
9336extern "C" {
9337#endif
9338
9339_LT_EOF
9340 # Now generate the symbol file.
9341 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9342
9343 cat <<_LT_EOF >> conftest.$ac_ext
9344
9345/* The mapping between symbol names and symbols. */
9346const struct {
9347 const char *name;
9348 void *address;
9349}
9350lt__PROGRAM__LTX_preloaded_symbols[] =
9351{
9352 { "@PROGRAM@", (void *) 0 },
9353_LT_EOF
9354 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9355 cat <<\_LT_EOF >> conftest.$ac_ext
9356 {0, (void *) 0}
9357};
9358
9359/* This works around a problem in FreeBSD linker */
9360#ifdef FREEBSD_WORKAROUND
9361static const void *lt_preloaded_setup() {
9362 return lt__PROGRAM__LTX_preloaded_symbols;
9363}
9364#endif
9365
9366#ifdef __cplusplus
9367}
9368#endif
9369_LT_EOF
9370 # Now try linking the two files.
9371 mv conftest.$ac_objext conftstm.$ac_objext
9372 lt_save_LIBS="$LIBS"
9373 lt_save_CFLAGS="$CFLAGS"
9374 LIBS="conftstm.$ac_objext"
9375 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +00009376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009377 (eval $ac_link) 2>&5
9378 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9380 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +00009381 pipe_works=yes
9382 fi
9383 LIBS="$lt_save_LIBS"
9384 CFLAGS="$lt_save_CFLAGS"
9385 else
9386 echo "cannot find nm_test_func in $nlist" >&5
9387 fi
9388 else
9389 echo "cannot find nm_test_var in $nlist" >&5
9390 fi
9391 else
9392 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9393 fi
9394 else
9395 echo "$progname: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9397 fi
9398 rm -rf conftest* conftst*
9399
9400 # Do not use the global_symbol_pipe unless it works.
9401 if test "$pipe_works" = yes; then
9402 break
9403 else
9404 lt_cv_sys_global_symbol_pipe=
9405 fi
9406done
9407
9408fi
9409
9410if test -z "$lt_cv_sys_global_symbol_pipe"; then
9411 lt_cv_sys_global_symbol_to_cdecl=
9412fi
9413if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +00009414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +00009415$as_echo "failed" >&6; }
9416else
cristy8b350f62009-11-15 23:12:43 +00009417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00009418$as_echo "ok" >&6; }
9419fi
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +00009443if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009444 enableval=$enable_libtool_lock;
9445fi
9446
9447test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9448
9449# Some flags need to be propagated to the compiler or linker for good
9450# libtool support.
9451case $host in
9452ia64-*-hpux*)
9453 # Find out which ABI we are using.
9454 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009456 (eval $ac_compile) 2>&5
9457 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9459 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009460 case `/usr/bin/file conftest.$ac_objext` in
9461 *ELF-32*)
9462 HPUX_IA64_MODE="32"
9463 ;;
9464 *ELF-64*)
9465 HPUX_IA64_MODE="64"
9466 ;;
9467 esac
9468 fi
9469 rm -rf conftest*
9470 ;;
9471*-*-irix6*)
9472 # Find out which ABI we are using.
cristy9c562ad2009-12-28 02:17:04 +00009473 echo '#line 9473 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009475 (eval $ac_compile) 2>&5
9476 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9478 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009479 if test "$lt_cv_prog_gnu_ld" = yes; then
9480 case `/usr/bin/file conftest.$ac_objext` in
9481 *32-bit*)
9482 LD="${LD-ld} -melf32bsmip"
9483 ;;
9484 *N32*)
9485 LD="${LD-ld} -melf32bmipn32"
9486 ;;
9487 *64-bit*)
9488 LD="${LD-ld} -melf64bmip"
9489 ;;
9490 esac
9491 else
9492 case `/usr/bin/file conftest.$ac_objext` in
9493 *32-bit*)
9494 LD="${LD-ld} -32"
9495 ;;
9496 *N32*)
9497 LD="${LD-ld} -n32"
9498 ;;
9499 *64-bit*)
9500 LD="${LD-ld} -64"
9501 ;;
9502 esac
9503 fi
9504 fi
9505 rm -rf conftest*
9506 ;;
9507
9508x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9509s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9510 # Find out which ABI we are using.
9511 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009513 (eval $ac_compile) 2>&5
9514 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9516 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009517 case `/usr/bin/file conftest.o` in
9518 *32-bit*)
9519 case $host in
9520 x86_64-*kfreebsd*-gnu)
9521 LD="${LD-ld} -m elf_i386_fbsd"
9522 ;;
9523 x86_64-*linux*)
9524 LD="${LD-ld} -m elf_i386"
9525 ;;
9526 ppc64-*linux*|powerpc64-*linux*)
9527 LD="${LD-ld} -m elf32ppclinux"
9528 ;;
9529 s390x-*linux*)
9530 LD="${LD-ld} -m elf_s390"
9531 ;;
9532 sparc64-*linux*)
9533 LD="${LD-ld} -m elf32_sparc"
9534 ;;
9535 esac
9536 ;;
9537 *64-bit*)
9538 case $host in
9539 x86_64-*kfreebsd*-gnu)
9540 LD="${LD-ld} -m elf_x86_64_fbsd"
9541 ;;
9542 x86_64-*linux*)
9543 LD="${LD-ld} -m elf_x86_64"
9544 ;;
9545 ppc*-*linux*|powerpc*-*linux*)
9546 LD="${LD-ld} -m elf64ppc"
9547 ;;
9548 s390*-*linux*|s390*-*tpf*)
9549 LD="${LD-ld} -m elf64_s390"
9550 ;;
9551 sparc*-*linux*)
9552 LD="${LD-ld} -m elf64_sparc"
9553 ;;
9554 esac
9555 ;;
9556 esac
9557 fi
9558 rm -rf conftest*
9559 ;;
9560
9561*-*-sco3.2v5*)
9562 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9563 SAVE_CFLAGS="$CFLAGS"
9564 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +00009565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009566$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009567if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009568 $as_echo_n "(cached) " >&6
9569else
9570 ac_ext=c
9571ac_cpp='$CPP $CPPFLAGS'
9572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9574ac_compiler_gnu=$ac_cv_c_compiler_gnu
9575
cristy8b350f62009-11-15 23:12:43 +00009576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009577/* end confdefs.h. */
9578
9579int
9580main ()
9581{
9582
9583 ;
9584 return 0;
9585}
9586_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009587if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009588 lt_cv_cc_needs_belf=yes
9589else
cristy8b350f62009-11-15 23:12:43 +00009590 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +00009591fi
cristy8b350f62009-11-15 23:12:43 +00009592rm -f core conftest.err conftest.$ac_objext \
9593 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009594 ac_ext=c
9595ac_cpp='$CPP $CPPFLAGS'
9596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9598ac_compiler_gnu=$ac_cv_c_compiler_gnu
9599
9600fi
cristy8b350f62009-11-15 23:12:43 +00009601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009602$as_echo "$lt_cv_cc_needs_belf" >&6; }
9603 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9604 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9605 CFLAGS="$SAVE_CFLAGS"
9606 fi
9607 ;;
9608sparc*-*solaris*)
9609 # Find out which ABI we are using.
9610 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009612 (eval $ac_compile) 2>&5
9613 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9615 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009616 case `/usr/bin/file conftest.o` in
9617 *64-bit*)
9618 case $lt_cv_prog_gnu_ld in
9619 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9620 *)
9621 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9622 LD="${LD-ld} -64"
9623 fi
9624 ;;
9625 esac
9626 ;;
9627 esac
9628 fi
9629 rm -rf conftest*
9630 ;;
9631esac
9632
9633need_locks="$enable_libtool_lock"
9634
9635
9636 case $host_os in
9637 rhapsody* | darwin*)
9638 if test -n "$ac_tool_prefix"; then
9639 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9640set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009642$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009643if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009644 $as_echo_n "(cached) " >&6
9645else
9646 if test -n "$DSYMUTIL"; then
9647 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9648else
9649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650for as_dir in $PATH
9651do
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009654 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009658 break 2
9659 fi
9660done
cristy8b350f62009-11-15 23:12:43 +00009661 done
cristy3ed852e2009-09-05 21:47:34 +00009662IFS=$as_save_IFS
9663
9664fi
9665fi
9666DSYMUTIL=$ac_cv_prog_DSYMUTIL
9667if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009669$as_echo "$DSYMUTIL" >&6; }
9670else
cristy8b350f62009-11-15 23:12:43 +00009671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009672$as_echo "no" >&6; }
9673fi
9674
9675
9676fi
9677if test -z "$ac_cv_prog_DSYMUTIL"; then
9678 ac_ct_DSYMUTIL=$DSYMUTIL
9679 # Extract the first word of "dsymutil", so it can be a program name with args.
9680set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009682$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009683if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009684 $as_echo_n "(cached) " >&6
9685else
9686 if test -n "$ac_ct_DSYMUTIL"; then
9687 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9688else
9689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690for as_dir in $PATH
9691do
9692 IFS=$as_save_IFS
9693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9696 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009698 break 2
9699 fi
9700done
cristy8b350f62009-11-15 23:12:43 +00009701 done
cristy3ed852e2009-09-05 21:47:34 +00009702IFS=$as_save_IFS
9703
9704fi
9705fi
9706ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9707if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009709$as_echo "$ac_ct_DSYMUTIL" >&6; }
9710else
cristy8b350f62009-11-15 23:12:43 +00009711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009712$as_echo "no" >&6; }
9713fi
9714
9715 if test "x$ac_ct_DSYMUTIL" = x; then
9716 DSYMUTIL=":"
9717 else
9718 case $cross_compiling:$ac_tool_warned in
9719yes:)
cristy8b350f62009-11-15 23:12:43 +00009720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9722ac_tool_warned=yes ;;
9723esac
9724 DSYMUTIL=$ac_ct_DSYMUTIL
9725 fi
9726else
9727 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9728fi
9729
9730 if test -n "$ac_tool_prefix"; then
9731 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9732set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009734$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009735if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009736 $as_echo_n "(cached) " >&6
9737else
9738 if test -n "$NMEDIT"; then
9739 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9740else
9741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in $PATH
9743do
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009746 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9748 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +00009749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009750 break 2
9751 fi
9752done
cristy8b350f62009-11-15 23:12:43 +00009753 done
cristy3ed852e2009-09-05 21:47:34 +00009754IFS=$as_save_IFS
9755
9756fi
9757fi
9758NMEDIT=$ac_cv_prog_NMEDIT
9759if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009761$as_echo "$NMEDIT" >&6; }
9762else
cristy8b350f62009-11-15 23:12:43 +00009763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009764$as_echo "no" >&6; }
9765fi
9766
9767
9768fi
9769if test -z "$ac_cv_prog_NMEDIT"; then
9770 ac_ct_NMEDIT=$NMEDIT
9771 # Extract the first word of "nmedit", so it can be a program name with args.
9772set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009774$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009775if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009776 $as_echo_n "(cached) " >&6
9777else
9778 if test -n "$ac_ct_NMEDIT"; then
9779 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9780else
9781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782for as_dir in $PATH
9783do
9784 IFS=$as_save_IFS
9785 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009786 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9788 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +00009789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009790 break 2
9791 fi
9792done
cristy8b350f62009-11-15 23:12:43 +00009793 done
cristy3ed852e2009-09-05 21:47:34 +00009794IFS=$as_save_IFS
9795
9796fi
9797fi
9798ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9799if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009801$as_echo "$ac_ct_NMEDIT" >&6; }
9802else
cristy8b350f62009-11-15 23:12:43 +00009803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009804$as_echo "no" >&6; }
9805fi
9806
9807 if test "x$ac_ct_NMEDIT" = x; then
9808 NMEDIT=":"
9809 else
9810 case $cross_compiling:$ac_tool_warned in
9811yes:)
cristy8b350f62009-11-15 23:12:43 +00009812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9814ac_tool_warned=yes ;;
9815esac
9816 NMEDIT=$ac_ct_NMEDIT
9817 fi
9818else
9819 NMEDIT="$ac_cv_prog_NMEDIT"
9820fi
9821
9822 if test -n "$ac_tool_prefix"; then
9823 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9824set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009826$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009827if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009828 $as_echo_n "(cached) " >&6
9829else
9830 if test -n "$LIPO"; then
9831 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9832else
9833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9834for as_dir in $PATH
9835do
9836 IFS=$as_save_IFS
9837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9840 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +00009841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009842 break 2
9843 fi
9844done
cristy8b350f62009-11-15 23:12:43 +00009845 done
cristy3ed852e2009-09-05 21:47:34 +00009846IFS=$as_save_IFS
9847
9848fi
9849fi
9850LIPO=$ac_cv_prog_LIPO
9851if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009853$as_echo "$LIPO" >&6; }
9854else
cristy8b350f62009-11-15 23:12:43 +00009855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009856$as_echo "no" >&6; }
9857fi
9858
9859
9860fi
9861if test -z "$ac_cv_prog_LIPO"; then
9862 ac_ct_LIPO=$LIPO
9863 # Extract the first word of "lipo", so it can be a program name with args.
9864set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009866$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009867if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009868 $as_echo_n "(cached) " >&6
9869else
9870 if test -n "$ac_ct_LIPO"; then
9871 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9872else
9873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874for as_dir in $PATH
9875do
9876 IFS=$as_save_IFS
9877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9880 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +00009881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009882 break 2
9883 fi
9884done
cristy8b350f62009-11-15 23:12:43 +00009885 done
cristy3ed852e2009-09-05 21:47:34 +00009886IFS=$as_save_IFS
9887
9888fi
9889fi
9890ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9891if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009893$as_echo "$ac_ct_LIPO" >&6; }
9894else
cristy8b350f62009-11-15 23:12:43 +00009895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009896$as_echo "no" >&6; }
9897fi
9898
9899 if test "x$ac_ct_LIPO" = x; then
9900 LIPO=":"
9901 else
9902 case $cross_compiling:$ac_tool_warned in
9903yes:)
cristy8b350f62009-11-15 23:12:43 +00009904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9906ac_tool_warned=yes ;;
9907esac
9908 LIPO=$ac_ct_LIPO
9909 fi
9910else
9911 LIPO="$ac_cv_prog_LIPO"
9912fi
9913
9914 if test -n "$ac_tool_prefix"; then
9915 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9916set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009918$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009919if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009920 $as_echo_n "(cached) " >&6
9921else
9922 if test -n "$OTOOL"; then
9923 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9924else
9925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926for as_dir in $PATH
9927do
9928 IFS=$as_save_IFS
9929 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009930 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9932 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +00009933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009934 break 2
9935 fi
9936done
cristy8b350f62009-11-15 23:12:43 +00009937 done
cristy3ed852e2009-09-05 21:47:34 +00009938IFS=$as_save_IFS
9939
9940fi
9941fi
9942OTOOL=$ac_cv_prog_OTOOL
9943if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009945$as_echo "$OTOOL" >&6; }
9946else
cristy8b350f62009-11-15 23:12:43 +00009947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009948$as_echo "no" >&6; }
9949fi
9950
9951
9952fi
9953if test -z "$ac_cv_prog_OTOOL"; then
9954 ac_ct_OTOOL=$OTOOL
9955 # Extract the first word of "otool", so it can be a program name with args.
9956set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009958$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009959if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009960 $as_echo_n "(cached) " >&6
9961else
9962 if test -n "$ac_ct_OTOOL"; then
9963 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9964else
9965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966for as_dir in $PATH
9967do
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009970 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9972 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +00009973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009974 break 2
9975 fi
9976done
cristy8b350f62009-11-15 23:12:43 +00009977 done
cristy3ed852e2009-09-05 21:47:34 +00009978IFS=$as_save_IFS
9979
9980fi
9981fi
9982ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9983if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009985$as_echo "$ac_ct_OTOOL" >&6; }
9986else
cristy8b350f62009-11-15 23:12:43 +00009987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009988$as_echo "no" >&6; }
9989fi
9990
9991 if test "x$ac_ct_OTOOL" = x; then
9992 OTOOL=":"
9993 else
9994 case $cross_compiling:$ac_tool_warned in
9995yes:)
cristy8b350f62009-11-15 23:12:43 +00009996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9998ac_tool_warned=yes ;;
9999esac
10000 OTOOL=$ac_ct_OTOOL
10001 fi
10002else
10003 OTOOL="$ac_cv_prog_OTOOL"
10004fi
10005
10006 if test -n "$ac_tool_prefix"; then
10007 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10008set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010010$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010011if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010012 $as_echo_n "(cached) " >&6
10013else
10014 if test -n "$OTOOL64"; then
10015 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10016else
10017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10018for as_dir in $PATH
10019do
10020 IFS=$as_save_IFS
10021 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010022 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10024 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000010025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010026 break 2
10027 fi
10028done
cristy8b350f62009-11-15 23:12:43 +000010029 done
cristy3ed852e2009-09-05 21:47:34 +000010030IFS=$as_save_IFS
10031
10032fi
10033fi
10034OTOOL64=$ac_cv_prog_OTOOL64
10035if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010037$as_echo "$OTOOL64" >&6; }
10038else
cristy8b350f62009-11-15 23:12:43 +000010039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010040$as_echo "no" >&6; }
10041fi
10042
10043
10044fi
10045if test -z "$ac_cv_prog_OTOOL64"; then
10046 ac_ct_OTOOL64=$OTOOL64
10047 # Extract the first word of "otool64", so it can be a program name with args.
10048set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010050$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010051if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010052 $as_echo_n "(cached) " >&6
10053else
10054 if test -n "$ac_ct_OTOOL64"; then
10055 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10056else
10057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058for as_dir in $PATH
10059do
10060 IFS=$as_save_IFS
10061 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10064 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000010065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010066 break 2
10067 fi
10068done
cristy8b350f62009-11-15 23:12:43 +000010069 done
cristy3ed852e2009-09-05 21:47:34 +000010070IFS=$as_save_IFS
10071
10072fi
10073fi
10074ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10075if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010077$as_echo "$ac_ct_OTOOL64" >&6; }
10078else
cristy8b350f62009-11-15 23:12:43 +000010079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010080$as_echo "no" >&6; }
10081fi
10082
10083 if test "x$ac_ct_OTOOL64" = x; then
10084 OTOOL64=":"
10085 else
10086 case $cross_compiling:$ac_tool_warned in
10087yes:)
cristy8b350f62009-11-15 23:12:43 +000010088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10090ac_tool_warned=yes ;;
10091esac
10092 OTOOL64=$ac_ct_OTOOL64
10093 fi
10094else
10095 OTOOL64="$ac_cv_prog_OTOOL64"
10096fi
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
cristy8b350f62009-11-15 23:12:43 +000010124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010125$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010126if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010127 $as_echo_n "(cached) " >&6
10128else
10129 lt_cv_apple_cc_single_mod=no
10130 if test -z "${LT_MULTI_MODULE}"; then
10131 # By default we will add the -single_module flag. You can override
10132 # by either setting the environment variable LT_MULTI_MODULE
10133 # non-empty at configure time, or by adding -multi_module to the
10134 # link flags.
10135 rm -rf libconftest.dylib*
10136 echo "int foo(void){return 1;}" > conftest.c
10137 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10138-dynamiclib -Wl,-single_module conftest.c" >&5
10139 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10140 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10141 _lt_result=$?
10142 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10143 lt_cv_apple_cc_single_mod=yes
10144 else
10145 cat conftest.err >&5
10146 fi
10147 rm -rf libconftest.dylib*
10148 rm -f conftest.*
10149 fi
10150fi
cristy8b350f62009-11-15 23:12:43 +000010151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000010152$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010154$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010155if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010156 $as_echo_n "(cached) " >&6
10157else
10158 lt_cv_ld_exported_symbols_list=no
10159 save_LDFLAGS=$LDFLAGS
10160 echo "_main" > conftest.sym
10161 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000010162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010163/* end confdefs.h. */
10164
10165int
10166main ()
10167{
10168
10169 ;
10170 return 0;
10171}
10172_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010173if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010174 lt_cv_ld_exported_symbols_list=yes
10175else
cristy8b350f62009-11-15 23:12:43 +000010176 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000010177fi
cristy8b350f62009-11-15 23:12:43 +000010178rm -f core conftest.err conftest.$ac_objext \
10179 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010180 LDFLAGS="$save_LDFLAGS"
10181
10182fi
cristy8b350f62009-11-15 23:12:43 +000010183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000010184$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10185 case $host_os in
10186 rhapsody* | darwin1.[012])
10187 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10188 darwin1.*)
10189 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10190 darwin*) # darwin 5.x on
10191 # if running on 10.5 or later, the deployment target defaults
10192 # to the OS version, if on x86, and 10.4, the deployment
10193 # target defaults to 10.4. Don't you love it?
10194 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10195 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10196 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10197 10.[012]*)
10198 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10199 10.*)
10200 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10201 esac
10202 ;;
10203 esac
10204 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10205 _lt_dar_single_mod='$single_module'
10206 fi
10207 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10208 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10209 else
10210 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10211 fi
cristy18304f92009-11-22 15:48:26 +000010212 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000010213 _lt_dsymutil='~$DSYMUTIL $lib || :'
10214 else
10215 _lt_dsymutil=
10216 fi
10217 ;;
10218 esac
10219
cristy3ed852e2009-09-05 21:47:34 +000010220for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000010221do :
10222 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10223"
10224if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010225 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010226#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000010227_ACEOF
10228
10229fi
10230
10231done
10232
10233
10234
cristy18304f92009-11-22 15:48:26 +000010235ac_ext=cpp
10236ac_cpp='$CXXCPP $CPPFLAGS'
10237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10240if test -z "$CXX"; then
10241 if test -n "$CCC"; then
10242 CXX=$CCC
10243 else
10244 if test -n "$ac_tool_prefix"; then
10245 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10246 do
10247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10248set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250$as_echo_n "checking for $ac_word... " >&6; }
10251if test "${ac_cv_prog_CXX+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10253else
10254 if test -n "$CXX"; then
10255 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10256else
10257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258for as_dir in $PATH
10259do
10260 IFS=$as_save_IFS
10261 test -z "$as_dir" && as_dir=.
10262 for ac_exec_ext in '' $ac_executable_extensions; do
10263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10264 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266 break 2
10267 fi
10268done
10269 done
10270IFS=$as_save_IFS
10271
10272fi
10273fi
10274CXX=$ac_cv_prog_CXX
10275if test -n "$CXX"; then
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10277$as_echo "$CXX" >&6; }
10278else
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280$as_echo "no" >&6; }
10281fi
10282
10283
10284 test -n "$CXX" && break
10285 done
10286fi
10287if test -z "$CXX"; then
10288 ac_ct_CXX=$CXX
10289 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10290do
10291 # Extract the first word of "$ac_prog", so it can be a program name with args.
10292set dummy $ac_prog; ac_word=$2
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10294$as_echo_n "checking for $ac_word... " >&6; }
10295if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10296 $as_echo_n "(cached) " >&6
10297else
10298 if test -n "$ac_ct_CXX"; then
10299 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10300else
10301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302for as_dir in $PATH
10303do
10304 IFS=$as_save_IFS
10305 test -z "$as_dir" && as_dir=.
10306 for ac_exec_ext in '' $ac_executable_extensions; do
10307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10308 ac_cv_prog_ac_ct_CXX="$ac_prog"
10309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10310 break 2
10311 fi
10312done
10313 done
10314IFS=$as_save_IFS
10315
10316fi
10317fi
10318ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10319if test -n "$ac_ct_CXX"; then
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10321$as_echo "$ac_ct_CXX" >&6; }
10322else
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324$as_echo "no" >&6; }
10325fi
10326
10327
10328 test -n "$ac_ct_CXX" && break
10329done
10330
10331 if test "x$ac_ct_CXX" = x; then
10332 CXX="g++"
10333 else
10334 case $cross_compiling:$ac_tool_warned in
10335yes:)
10336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10338ac_tool_warned=yes ;;
10339esac
10340 CXX=$ac_ct_CXX
10341 fi
10342fi
10343
10344 fi
10345fi
10346# Provide some information about the compiler.
10347$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10348set X $ac_compile
10349ac_compiler=$2
10350for ac_option in --version -v -V -qversion; do
10351 { { ac_try="$ac_compiler $ac_option >&5"
10352case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10355esac
10356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10357$as_echo "$ac_try_echo"; } >&5
10358 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10359 ac_status=$?
10360 if test -s conftest.err; then
10361 sed '10a\
10362... rest of stderr output deleted ...
10363 10q' conftest.err >conftest.er1
10364 cat conftest.er1 >&5
10365 fi
10366 rm -f conftest.er1 conftest.err
10367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10368 test $ac_status = 0; }
10369done
10370
10371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10372$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10373if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10374 $as_echo_n "(cached) " >&6
10375else
10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377/* end confdefs.h. */
10378
10379int
10380main ()
10381{
10382#ifndef __GNUC__
10383 choke me
10384#endif
10385
10386 ;
10387 return 0;
10388}
10389_ACEOF
10390if ac_fn_cxx_try_compile "$LINENO"; then :
10391 ac_compiler_gnu=yes
10392else
10393 ac_compiler_gnu=no
10394fi
10395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10397
10398fi
10399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10400$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10401if test $ac_compiler_gnu = yes; then
10402 GXX=yes
10403else
10404 GXX=
10405fi
10406ac_test_CXXFLAGS=${CXXFLAGS+set}
10407ac_save_CXXFLAGS=$CXXFLAGS
10408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10409$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10410if test "${ac_cv_prog_cxx_g+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
10412else
10413 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10414 ac_cxx_werror_flag=yes
10415 ac_cv_prog_cxx_g=no
10416 CXXFLAGS="-g"
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418/* end confdefs.h. */
10419
10420int
10421main ()
10422{
10423
10424 ;
10425 return 0;
10426}
10427_ACEOF
10428if ac_fn_cxx_try_compile "$LINENO"; then :
10429 ac_cv_prog_cxx_g=yes
10430else
10431 CXXFLAGS=""
10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433/* end confdefs.h. */
10434
10435int
10436main ()
10437{
10438
10439 ;
10440 return 0;
10441}
10442_ACEOF
10443if ac_fn_cxx_try_compile "$LINENO"; then :
10444
10445else
10446 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10447 CXXFLAGS="-g"
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449/* end confdefs.h. */
10450
10451int
10452main ()
10453{
10454
10455 ;
10456 return 0;
10457}
10458_ACEOF
10459if ac_fn_cxx_try_compile "$LINENO"; then :
10460 ac_cv_prog_cxx_g=yes
10461fi
10462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10463fi
10464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10465fi
10466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10467 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10468fi
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10470$as_echo "$ac_cv_prog_cxx_g" >&6; }
10471if test "$ac_test_CXXFLAGS" = set; then
10472 CXXFLAGS=$ac_save_CXXFLAGS
10473elif test $ac_cv_prog_cxx_g = yes; then
10474 if test "$GXX" = yes; then
10475 CXXFLAGS="-g -O2"
10476 else
10477 CXXFLAGS="-g"
10478 fi
10479else
10480 if test "$GXX" = yes; then
10481 CXXFLAGS="-O2"
10482 else
10483 CXXFLAGS=
10484 fi
10485fi
10486ac_ext=c
10487ac_cpp='$CPP $CPPFLAGS'
10488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10490ac_compiler_gnu=$ac_cv_c_compiler_gnu
10491
10492depcc="$CXX" am_compiler_list=
10493
10494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10495$as_echo_n "checking dependency style of $depcc... " >&6; }
10496if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10497 $as_echo_n "(cached) " >&6
10498else
10499 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10500 # We make a subdir and do the tests there. Otherwise we can end up
10501 # making bogus files that we don't know about and never remove. For
10502 # instance it was reported that on HP-UX the gcc test will end up
10503 # making a dummy file named `D' -- because `-MD' means `put the output
10504 # in D'.
10505 mkdir conftest.dir
10506 # Copy depcomp to subdir because otherwise we won't find it if we're
10507 # using a relative directory.
10508 cp "$am_depcomp" conftest.dir
10509 cd conftest.dir
10510 # We will build objects and dependencies in a subdirectory because
10511 # it helps to detect inapplicable dependency modes. For instance
10512 # both Tru64's cc and ICC support -MD to output dependencies as a
10513 # side effect of compilation, but ICC will put the dependencies in
10514 # the current directory while Tru64 will put them in the object
10515 # directory.
10516 mkdir sub
10517
10518 am_cv_CXX_dependencies_compiler_type=none
10519 if test "$am_compiler_list" = ""; then
10520 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10521 fi
10522 am__universal=false
10523 case " $depcc " in #(
10524 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10525 esac
10526
10527 for depmode in $am_compiler_list; do
10528 # Setup a source with many dependencies, because some compilers
10529 # like to wrap large dependency lists on column 80 (with \), and
10530 # we should not choose a depcomp mode which is confused by this.
10531 #
10532 # We need to recreate these files for each test, as the compiler may
10533 # overwrite some of them when testing with obscure command lines.
10534 # This happens at least with the AIX C compiler.
10535 : > sub/conftest.c
10536 for i in 1 2 3 4 5 6; do
10537 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10538 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10539 # Solaris 8's {/usr,}/bin/sh.
10540 touch sub/conftst$i.h
10541 done
10542 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10543
10544 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10545 # mode. It turns out that the SunPro C++ compiler does not properly
10546 # handle `-M -o', and we need to detect this. Also, some Intel
10547 # versions had trouble with output in subdirs
10548 am__obj=sub/conftest.${OBJEXT-o}
10549 am__minus_obj="-o $am__obj"
10550 case $depmode in
10551 gcc)
10552 # This depmode causes a compiler race in universal mode.
10553 test "$am__universal" = false || continue
10554 ;;
10555 nosideeffect)
10556 # after this tag, mechanisms are not by side-effect, so they'll
10557 # only be used when explicitly requested
10558 if test "x$enable_dependency_tracking" = xyes; then
10559 continue
10560 else
10561 break
10562 fi
10563 ;;
10564 msvisualcpp | msvcmsys)
10565 # This compiler won't grok `-c -o', but also, the minuso test has
10566 # not run yet. These depmodes are late enough in the game, and
10567 # so weak that their functioning should not be impacted.
10568 am__obj=conftest.${OBJEXT-o}
10569 am__minus_obj=
10570 ;;
10571 none) break ;;
10572 esac
10573 if depmode=$depmode \
10574 source=sub/conftest.c object=$am__obj \
10575 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10576 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10577 >/dev/null 2>conftest.err &&
10578 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10579 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10580 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10581 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10582 # icc doesn't choke on unknown options, it will just issue warnings
10583 # or remarks (even with -Werror). So we grep stderr for any message
10584 # that says an option was ignored or not supported.
10585 # When given -MP, icc 7.0 and 7.1 complain thusly:
10586 # icc: Command line warning: ignoring option '-M'; no argument required
10587 # The diagnosis changed in icc 8.0:
10588 # icc: Command line remark: option '-MP' not supported
10589 if (grep 'ignoring option' conftest.err ||
10590 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10591 am_cv_CXX_dependencies_compiler_type=$depmode
10592 break
10593 fi
10594 fi
10595 done
10596
10597 cd ..
10598 rm -rf conftest.dir
10599else
10600 am_cv_CXX_dependencies_compiler_type=none
10601fi
10602
10603fi
10604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10605$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10606CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10607
10608 if
10609 test "x$enable_dependency_tracking" != xno \
10610 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10611 am__fastdepCXX_TRUE=
10612 am__fastdepCXX_FALSE='#'
10613else
10614 am__fastdepCXX_TRUE='#'
10615 am__fastdepCXX_FALSE=
10616fi
10617
10618
10619if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10620 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10621 (test "X$CXX" != "Xg++"))) ; then
10622 ac_ext=cpp
10623ac_cpp='$CXXCPP $CPPFLAGS'
10624ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10625ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10626ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10628$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10629if test -z "$CXXCPP"; then
10630 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10631 $as_echo_n "(cached) " >&6
10632else
10633 # Double quotes because CXXCPP needs to be expanded
10634 for CXXCPP in "$CXX -E" "/lib/cpp"
10635 do
10636 ac_preproc_ok=false
10637for ac_cxx_preproc_warn_flag in '' yes
10638do
10639 # Use a header file that comes with gcc, so configuring glibc
10640 # with a fresh cross-compiler works.
10641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10642 # <limits.h> exists even on freestanding compilers.
10643 # On the NeXT, cc -E runs the code through the compiler's parser,
10644 # not just through cpp. "Syntax error" is here to catch this case.
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646/* end confdefs.h. */
10647#ifdef __STDC__
10648# include <limits.h>
10649#else
10650# include <assert.h>
10651#endif
10652 Syntax error
10653_ACEOF
10654if ac_fn_cxx_try_cpp "$LINENO"; then :
10655
10656else
10657 # Broken: fails on valid input.
10658continue
10659fi
10660rm -f conftest.err conftest.$ac_ext
10661
10662 # OK, works on sane cases. Now check whether nonexistent headers
10663 # can be detected and how.
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665/* end confdefs.h. */
10666#include <ac_nonexistent.h>
10667_ACEOF
10668if ac_fn_cxx_try_cpp "$LINENO"; then :
10669 # Broken: success on invalid input.
10670continue
10671else
10672 # Passes both tests.
10673ac_preproc_ok=:
10674break
10675fi
10676rm -f conftest.err conftest.$ac_ext
10677
10678done
10679# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10680rm -f conftest.err conftest.$ac_ext
10681if $ac_preproc_ok; then :
10682 break
10683fi
10684
10685 done
10686 ac_cv_prog_CXXCPP=$CXXCPP
10687
10688fi
10689 CXXCPP=$ac_cv_prog_CXXCPP
10690else
10691 ac_cv_prog_CXXCPP=$CXXCPP
10692fi
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10694$as_echo "$CXXCPP" >&6; }
10695ac_preproc_ok=false
10696for ac_cxx_preproc_warn_flag in '' yes
10697do
10698 # Use a header file that comes with gcc, so configuring glibc
10699 # with a fresh cross-compiler works.
10700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10701 # <limits.h> exists even on freestanding compilers.
10702 # On the NeXT, cc -E runs the code through the compiler's parser,
10703 # not just through cpp. "Syntax error" is here to catch this case.
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705/* end confdefs.h. */
10706#ifdef __STDC__
10707# include <limits.h>
10708#else
10709# include <assert.h>
10710#endif
10711 Syntax error
10712_ACEOF
10713if ac_fn_cxx_try_cpp "$LINENO"; then :
10714
10715else
10716 # Broken: fails on valid input.
10717continue
10718fi
10719rm -f conftest.err conftest.$ac_ext
10720
10721 # OK, works on sane cases. Now check whether nonexistent headers
10722 # can be detected and how.
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724/* end confdefs.h. */
10725#include <ac_nonexistent.h>
10726_ACEOF
10727if ac_fn_cxx_try_cpp "$LINENO"; then :
10728 # Broken: success on invalid input.
10729continue
10730else
10731 # Passes both tests.
10732ac_preproc_ok=:
10733break
10734fi
10735rm -f conftest.err conftest.$ac_ext
10736
10737done
10738# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10739rm -f conftest.err conftest.$ac_ext
10740if $ac_preproc_ok; then :
10741
10742else
10743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10745_lt_caught_CXX_error=yes; }
10746fi
10747
10748ac_ext=c
10749ac_cpp='$CPP $CPPFLAGS'
10750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10752ac_compiler_gnu=$ac_cv_c_compiler_gnu
10753
10754else
10755 _lt_caught_CXX_error=yes
10756fi
10757
10758
cristy3ed852e2009-09-05 21:47:34 +000010759
10760
10761
10762# Set options
10763enable_win32_dll=yes
10764
10765case $host in
cristy18304f92009-11-22 15:48:26 +000010766*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010767 if test -n "$ac_tool_prefix"; then
10768 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10769set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010771$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010772if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010773 $as_echo_n "(cached) " >&6
10774else
10775 if test -n "$AS"; then
10776 ac_cv_prog_AS="$AS" # Let the user override the test.
10777else
10778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779for as_dir in $PATH
10780do
10781 IFS=$as_save_IFS
10782 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10785 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000010786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010787 break 2
10788 fi
10789done
cristy8b350f62009-11-15 23:12:43 +000010790 done
cristy3ed852e2009-09-05 21:47:34 +000010791IFS=$as_save_IFS
10792
10793fi
10794fi
10795AS=$ac_cv_prog_AS
10796if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000010797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010798$as_echo "$AS" >&6; }
10799else
cristy8b350f62009-11-15 23:12:43 +000010800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010801$as_echo "no" >&6; }
10802fi
10803
10804
10805fi
10806if test -z "$ac_cv_prog_AS"; then
10807 ac_ct_AS=$AS
10808 # Extract the first word of "as", so it can be a program name with args.
10809set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010811$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010812if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010813 $as_echo_n "(cached) " >&6
10814else
10815 if test -n "$ac_ct_AS"; then
10816 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10817else
10818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819for as_dir in $PATH
10820do
10821 IFS=$as_save_IFS
10822 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10825 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000010826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010827 break 2
10828 fi
10829done
cristy8b350f62009-11-15 23:12:43 +000010830 done
cristy3ed852e2009-09-05 21:47:34 +000010831IFS=$as_save_IFS
10832
10833fi
10834fi
10835ac_ct_AS=$ac_cv_prog_ac_ct_AS
10836if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000010837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010838$as_echo "$ac_ct_AS" >&6; }
10839else
cristy8b350f62009-11-15 23:12:43 +000010840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010841$as_echo "no" >&6; }
10842fi
10843
10844 if test "x$ac_ct_AS" = x; then
10845 AS="false"
10846 else
10847 case $cross_compiling:$ac_tool_warned in
10848yes:)
cristy8b350f62009-11-15 23:12:43 +000010849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10851ac_tool_warned=yes ;;
10852esac
10853 AS=$ac_ct_AS
10854 fi
10855else
10856 AS="$ac_cv_prog_AS"
10857fi
10858
10859 if test -n "$ac_tool_prefix"; then
10860 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10861set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010863$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010864if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010865 $as_echo_n "(cached) " >&6
10866else
10867 if test -n "$DLLTOOL"; then
10868 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10869else
10870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871for as_dir in $PATH
10872do
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010875 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10877 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000010878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010879 break 2
10880 fi
10881done
cristy8b350f62009-11-15 23:12:43 +000010882 done
cristy3ed852e2009-09-05 21:47:34 +000010883IFS=$as_save_IFS
10884
10885fi
10886fi
10887DLLTOOL=$ac_cv_prog_DLLTOOL
10888if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010890$as_echo "$DLLTOOL" >&6; }
10891else
cristy8b350f62009-11-15 23:12:43 +000010892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010893$as_echo "no" >&6; }
10894fi
10895
10896
10897fi
10898if test -z "$ac_cv_prog_DLLTOOL"; then
10899 ac_ct_DLLTOOL=$DLLTOOL
10900 # Extract the first word of "dlltool", so it can be a program name with args.
10901set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010903$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010904if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010905 $as_echo_n "(cached) " >&6
10906else
10907 if test -n "$ac_ct_DLLTOOL"; then
10908 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10909else
10910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911for as_dir in $PATH
10912do
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10917 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000010918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010919 break 2
10920 fi
10921done
cristy8b350f62009-11-15 23:12:43 +000010922 done
cristy3ed852e2009-09-05 21:47:34 +000010923IFS=$as_save_IFS
10924
10925fi
10926fi
10927ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10928if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010930$as_echo "$ac_ct_DLLTOOL" >&6; }
10931else
cristy8b350f62009-11-15 23:12:43 +000010932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010933$as_echo "no" >&6; }
10934fi
10935
10936 if test "x$ac_ct_DLLTOOL" = x; then
10937 DLLTOOL="false"
10938 else
10939 case $cross_compiling:$ac_tool_warned in
10940yes:)
cristy8b350f62009-11-15 23:12:43 +000010941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10943ac_tool_warned=yes ;;
10944esac
10945 DLLTOOL=$ac_ct_DLLTOOL
10946 fi
10947else
10948 DLLTOOL="$ac_cv_prog_DLLTOOL"
10949fi
10950
10951 if test -n "$ac_tool_prefix"; then
10952 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10953set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010955$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010956if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010957 $as_echo_n "(cached) " >&6
10958else
10959 if test -n "$OBJDUMP"; then
10960 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10961else
10962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963for as_dir in $PATH
10964do
10965 IFS=$as_save_IFS
10966 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010967 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10969 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000010970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010971 break 2
10972 fi
10973done
cristy8b350f62009-11-15 23:12:43 +000010974 done
cristy3ed852e2009-09-05 21:47:34 +000010975IFS=$as_save_IFS
10976
10977fi
10978fi
10979OBJDUMP=$ac_cv_prog_OBJDUMP
10980if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010982$as_echo "$OBJDUMP" >&6; }
10983else
cristy8b350f62009-11-15 23:12:43 +000010984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010985$as_echo "no" >&6; }
10986fi
10987
10988
10989fi
10990if test -z "$ac_cv_prog_OBJDUMP"; then
10991 ac_ct_OBJDUMP=$OBJDUMP
10992 # Extract the first word of "objdump", so it can be a program name with args.
10993set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010995$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010996if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010997 $as_echo_n "(cached) " >&6
10998else
10999 if test -n "$ac_ct_OBJDUMP"; then
11000 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11001else
11002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003for as_dir in $PATH
11004do
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11009 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011011 break 2
11012 fi
11013done
cristy8b350f62009-11-15 23:12:43 +000011014 done
cristy3ed852e2009-09-05 21:47:34 +000011015IFS=$as_save_IFS
11016
11017fi
11018fi
11019ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11020if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011022$as_echo "$ac_ct_OBJDUMP" >&6; }
11023else
cristy8b350f62009-11-15 23:12:43 +000011024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011025$as_echo "no" >&6; }
11026fi
11027
11028 if test "x$ac_ct_OBJDUMP" = x; then
11029 OBJDUMP="false"
11030 else
11031 case $cross_compiling:$ac_tool_warned in
11032yes:)
cristy8b350f62009-11-15 23:12:43 +000011033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11035ac_tool_warned=yes ;;
11036esac
11037 OBJDUMP=$ac_ct_OBJDUMP
11038 fi
11039else
11040 OBJDUMP="$ac_cv_prog_OBJDUMP"
11041fi
11042
11043 ;;
11044esac
11045
11046test -z "$AS" && AS=as
11047
11048
11049
11050
11051
11052test -z "$DLLTOOL" && DLLTOOL=dlltool
11053
11054
11055
11056
11057
11058test -z "$OBJDUMP" && OBJDUMP=objdump
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011069if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011070 enableval=$enable_shared; p=${PACKAGE-default}
11071 case $enableval in
11072 yes) enable_shared=yes ;;
11073 no) enable_shared=no ;;
11074 *)
11075 enable_shared=no
11076 # Look at the argument we got. We use all the common list separators.
11077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11078 for pkg in $enableval; do
11079 IFS="$lt_save_ifs"
11080 if test "X$pkg" = "X$p"; then
11081 enable_shared=yes
11082 fi
11083 done
11084 IFS="$lt_save_ifs"
11085 ;;
11086 esac
11087else
11088 enable_shared=yes
11089fi
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000011100if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011101 enableval=$enable_static; p=${PACKAGE-default}
11102 case $enableval in
11103 yes) enable_static=yes ;;
11104 no) enable_static=no ;;
11105 *)
11106 enable_static=no
11107 # Look at the argument we got. We use all the common list separators.
11108 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11109 for pkg in $enableval; do
11110 IFS="$lt_save_ifs"
11111 if test "X$pkg" = "X$p"; then
11112 enable_static=yes
11113 fi
11114 done
11115 IFS="$lt_save_ifs"
11116 ;;
11117 esac
11118else
11119 enable_static=yes
11120fi
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000011132if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011133 withval=$with_pic; pic_mode="$withval"
11134else
11135 pic_mode=default
11136fi
11137
11138
11139test -z "$pic_mode" && pic_mode=default
11140
11141
11142
11143
11144
11145
11146
11147 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000011148if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011149 enableval=$enable_fast_install; p=${PACKAGE-default}
11150 case $enableval in
11151 yes) enable_fast_install=yes ;;
11152 no) enable_fast_install=no ;;
11153 *)
11154 enable_fast_install=no
11155 # Look at the argument we got. We use all the common list separators.
11156 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11157 for pkg in $enableval; do
11158 IFS="$lt_save_ifs"
11159 if test "X$pkg" = "X$p"; then
11160 enable_fast_install=yes
11161 fi
11162 done
11163 IFS="$lt_save_ifs"
11164 ;;
11165 esac
11166else
11167 enable_fast_install=yes
11168fi
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180# This can be used to rebuild libtool when needed
11181LIBTOOL_DEPS="$ltmain"
11182
11183# Always use our own libtool.
11184LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210test -z "$LN_S" && LN_S="ln -s"
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225if test -n "${ZSH_VERSION+set}" ; then
11226 setopt NO_GLOB_SUBST
11227fi
11228
cristy8b350f62009-11-15 23:12:43 +000011229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011230$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011231if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011232 $as_echo_n "(cached) " >&6
11233else
11234 rm -f .libs 2>/dev/null
11235mkdir .libs 2>/dev/null
11236if test -d .libs; then
11237 lt_cv_objdir=.libs
11238else
11239 # MS-DOS does not allow filenames that begin with a dot.
11240 lt_cv_objdir=_libs
11241fi
11242rmdir .libs 2>/dev/null
11243fi
cristy8b350f62009-11-15 23:12:43 +000011244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011245$as_echo "$lt_cv_objdir" >&6; }
11246objdir=$lt_cv_objdir
11247
11248
11249
11250
11251
11252cat >>confdefs.h <<_ACEOF
11253#define LT_OBJDIR "$lt_cv_objdir/"
11254_ACEOF
11255
11256
11257
11258
cristy18304f92009-11-22 15:48:26 +000011259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
cristy3ed852e2009-09-05 21:47:34 +000011272case $host_os in
11273aix3*)
11274 # AIX sometimes has problems with the GCC collect2 program. For some
11275 # reason, if we set the COLLECT_NAMES environment variable, the problems
11276 # vanish in a puff of smoke.
11277 if test "X${COLLECT_NAMES+set}" != Xset; then
11278 COLLECT_NAMES=
11279 export COLLECT_NAMES
11280 fi
11281 ;;
11282esac
11283
cristy18304f92009-11-22 15:48:26 +000011284# Sed substitution that helps us do robust quoting. It backslashifies
11285# metacharacters that are still active within double-quoted strings.
11286sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11287
11288# Same as above, but do not quote variable references.
11289double_quote_subst='s/\(["`\\]\)/\\\1/g'
11290
11291# Sed substitution to delay expansion of an escaped shell variable in a
11292# double_quote_subst'ed string.
11293delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11294
11295# Sed substitution to delay expansion of an escaped single quote.
11296delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11297
11298# Sed substitution to avoid accidental globbing in evaled expressions
11299no_glob_subst='s/\*/\\\*/g'
11300
cristy3ed852e2009-09-05 21:47:34 +000011301# Global variables:
11302ofile=libtool
11303can_build_shared=yes
11304
11305# All known linkers require a `.a' archive for static linking (except MSVC,
11306# which needs '.lib').
11307libext=a
11308
11309with_gnu_ld="$lt_cv_prog_gnu_ld"
11310
11311old_CC="$CC"
11312old_CFLAGS="$CFLAGS"
11313
11314# Set sane defaults for various variables
11315test -z "$CC" && CC=cc
11316test -z "$LTCC" && LTCC=$CC
11317test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11318test -z "$LD" && LD=ld
11319test -z "$ac_objext" && ac_objext=o
11320
11321for cc_temp in $compiler""; do
11322 case $cc_temp in
11323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11325 \-*) ;;
11326 *) break;;
11327 esac
11328done
cristy18304f92009-11-22 15:48:26 +000011329cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000011330
11331
11332# Only perform the check for file, if the check method requires it
11333test -z "$MAGIC_CMD" && MAGIC_CMD=file
11334case $deplibs_check_method in
11335file_magic*)
11336 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000011337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011338$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011339if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011340 $as_echo_n "(cached) " >&6
11341else
11342 case $MAGIC_CMD in
11343[\\/*] | ?:[\\/]*)
11344 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11345 ;;
11346*)
11347 lt_save_MAGIC_CMD="$MAGIC_CMD"
11348 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11349 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11350 for ac_dir in $ac_dummy; do
11351 IFS="$lt_save_ifs"
11352 test -z "$ac_dir" && ac_dir=.
11353 if test -f $ac_dir/${ac_tool_prefix}file; then
11354 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11355 if test -n "$file_magic_test_file"; then
11356 case $deplibs_check_method in
11357 "file_magic "*)
11358 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11360 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11361 $EGREP "$file_magic_regex" > /dev/null; then
11362 :
11363 else
11364 cat <<_LT_EOF 1>&2
11365
11366*** Warning: the command libtool uses to detect shared libraries,
11367*** $file_magic_cmd, produces output that libtool cannot recognize.
11368*** The result is that libtool may fail to recognize shared libraries
11369*** as such. This will affect the creation of libtool libraries that
11370*** depend on shared libraries, but programs linked with such libtool
11371*** libraries will work regardless of this problem. Nevertheless, you
11372*** may want to report the problem to your system manager and/or to
11373*** bug-libtool@gnu.org
11374
11375_LT_EOF
11376 fi ;;
11377 esac
11378 fi
11379 break
11380 fi
11381 done
11382 IFS="$lt_save_ifs"
11383 MAGIC_CMD="$lt_save_MAGIC_CMD"
11384 ;;
11385esac
11386fi
11387
11388MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11389if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011391$as_echo "$MAGIC_CMD" >&6; }
11392else
cristy8b350f62009-11-15 23:12:43 +000011393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011394$as_echo "no" >&6; }
11395fi
11396
11397
11398
11399
11400
11401if test -z "$lt_cv_path_MAGIC_CMD"; then
11402 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000011403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011404$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011405if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011406 $as_echo_n "(cached) " >&6
11407else
11408 case $MAGIC_CMD in
11409[\\/*] | ?:[\\/]*)
11410 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11411 ;;
11412*)
11413 lt_save_MAGIC_CMD="$MAGIC_CMD"
11414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11415 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11416 for ac_dir in $ac_dummy; do
11417 IFS="$lt_save_ifs"
11418 test -z "$ac_dir" && ac_dir=.
11419 if test -f $ac_dir/file; then
11420 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11421 if test -n "$file_magic_test_file"; then
11422 case $deplibs_check_method in
11423 "file_magic "*)
11424 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11425 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11426 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11427 $EGREP "$file_magic_regex" > /dev/null; then
11428 :
11429 else
11430 cat <<_LT_EOF 1>&2
11431
11432*** Warning: the command libtool uses to detect shared libraries,
11433*** $file_magic_cmd, produces output that libtool cannot recognize.
11434*** The result is that libtool may fail to recognize shared libraries
11435*** as such. This will affect the creation of libtool libraries that
11436*** depend on shared libraries, but programs linked with such libtool
11437*** libraries will work regardless of this problem. Nevertheless, you
11438*** may want to report the problem to your system manager and/or to
11439*** bug-libtool@gnu.org
11440
11441_LT_EOF
11442 fi ;;
11443 esac
11444 fi
11445 break
11446 fi
11447 done
11448 IFS="$lt_save_ifs"
11449 MAGIC_CMD="$lt_save_MAGIC_CMD"
11450 ;;
11451esac
11452fi
11453
11454MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11455if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011457$as_echo "$MAGIC_CMD" >&6; }
11458else
cristy8b350f62009-11-15 23:12:43 +000011459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011460$as_echo "no" >&6; }
11461fi
11462
11463
11464 else
11465 MAGIC_CMD=:
11466 fi
11467fi
11468
11469 fi
11470 ;;
11471esac
11472
11473# Use C for the default configuration in the libtool script
11474
11475lt_save_CC="$CC"
11476ac_ext=c
11477ac_cpp='$CPP $CPPFLAGS'
11478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480ac_compiler_gnu=$ac_cv_c_compiler_gnu
11481
11482
11483# Source file extension for C test sources.
11484ac_ext=c
11485
11486# Object file extension for compiled C test sources.
11487objext=o
11488objext=$objext
11489
11490# Code to be used in simple compile tests
11491lt_simple_compile_test_code="int some_variable = 0;"
11492
11493# Code to be used in simple link tests
11494lt_simple_link_test_code='int main(){return(0);}'
11495
11496
11497
11498
11499
11500
11501
11502# If no C compiler was specified, use CC.
11503LTCC=${LTCC-"$CC"}
11504
11505# If no C compiler flags were specified, use CFLAGS.
11506LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11507
11508# Allow CC to be a program name with arguments.
11509compiler=$CC
11510
11511# Save the default compiler, since it gets overwritten when the other
11512# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11513compiler_DEFAULT=$CC
11514
11515# save warnings/boilerplate of simple test code
11516ac_outfile=conftest.$ac_objext
11517echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11518eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11519_lt_compiler_boilerplate=`cat conftest.err`
11520$RM conftest*
11521
11522ac_outfile=conftest.$ac_objext
11523echo "$lt_simple_link_test_code" >conftest.$ac_ext
11524eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11525_lt_linker_boilerplate=`cat conftest.err`
11526$RM -r conftest*
11527
11528
11529## CAVEAT EMPTOR:
11530## There is no encapsulation within the following macros, do not change
11531## the running order or otherwise move them around unless you know exactly
11532## what you are doing...
11533if test -n "$compiler"; then
11534
11535lt_prog_compiler_no_builtin_flag=
11536
11537if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000011538 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000011539
cristy8b350f62009-11-15 23:12:43 +000011540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011541$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011542if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011543 $as_echo_n "(cached) " >&6
11544else
11545 lt_cv_prog_compiler_rtti_exceptions=no
11546 ac_outfile=conftest.$ac_objext
11547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11548 lt_compiler_flag="-fno-rtti -fno-exceptions"
11549 # Insert the option either (1) after the last *FLAGS variable, or
11550 # (2) before a word containing "conftest.", or (3) at the end.
11551 # Note that $ac_compile itself does not contain backslashes and begins
11552 # with a dollar sign (not a hyphen), so the echo should work correctly.
11553 # The option is referenced via a variable to avoid confusing sed.
11554 lt_compile=`echo "$ac_compile" | $SED \
11555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11557 -e 's:$: $lt_compiler_flag:'`
cristy9c562ad2009-12-28 02:17:04 +000011558 (eval echo "\"\$as_me:11558: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011559 (eval "$lt_compile" 2>conftest.err)
11560 ac_status=$?
11561 cat conftest.err >&5
cristy9c562ad2009-12-28 02:17:04 +000011562 echo "$as_me:11562: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011563 if (exit $ac_status) && test -s "$ac_outfile"; then
11564 # The compiler can only warn and ignore the option if not recognized
11565 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000011566 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11569 lt_cv_prog_compiler_rtti_exceptions=yes
11570 fi
11571 fi
11572 $RM conftest*
11573
11574fi
cristy8b350f62009-11-15 23:12:43 +000011575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011576$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11577
11578if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11579 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11580else
11581 :
11582fi
11583
11584fi
11585
11586
11587
11588
11589
11590
11591 lt_prog_compiler_wl=
11592lt_prog_compiler_pic=
11593lt_prog_compiler_static=
11594
cristy8b350f62009-11-15 23:12:43 +000011595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011596$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11597
11598 if test "$GCC" = yes; then
11599 lt_prog_compiler_wl='-Wl,'
11600 lt_prog_compiler_static='-static'
11601
11602 case $host_os in
11603 aix*)
11604 # All AIX code is PIC.
11605 if test "$host_cpu" = ia64; then
11606 # AIX 5 now supports IA64 processor
11607 lt_prog_compiler_static='-Bstatic'
11608 fi
11609 ;;
11610
11611 amigaos*)
11612 case $host_cpu in
11613 powerpc)
11614 # see comment about AmigaOS4 .so support
11615 lt_prog_compiler_pic='-fPIC'
11616 ;;
11617 m68k)
11618 # FIXME: we need at least 68020 code to build shared libraries, but
11619 # adding the `-m68020' flag to GCC prevents building anything better,
11620 # like `-m68040'.
11621 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11622 ;;
11623 esac
11624 ;;
11625
11626 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11627 # PIC is the default for these OSes.
11628 ;;
11629
11630 mingw* | cygwin* | pw32* | os2* | cegcc*)
11631 # This hack is so that the source file can tell whether it is being
11632 # built for inclusion in a dll (and should export symbols for example).
11633 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11634 # (--disable-auto-import) libraries
11635 lt_prog_compiler_pic='-DDLL_EXPORT'
11636 ;;
11637
11638 darwin* | rhapsody*)
11639 # PIC is the default on this platform
11640 # Common symbols not allowed in MH_DYLIB files
11641 lt_prog_compiler_pic='-fno-common'
11642 ;;
11643
11644 hpux*)
11645 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11646 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11647 # sets the default TLS model and affects inlining.
11648 case $host_cpu in
11649 hppa*64*)
11650 # +Z the default
11651 ;;
11652 *)
11653 lt_prog_compiler_pic='-fPIC'
11654 ;;
11655 esac
11656 ;;
11657
11658 interix[3-9]*)
11659 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11660 # Instead, we relocate shared libraries at runtime.
11661 ;;
11662
11663 msdosdjgpp*)
11664 # Just because we use GCC doesn't mean we suddenly get shared libraries
11665 # on systems that don't support them.
11666 lt_prog_compiler_can_build_shared=no
11667 enable_shared=no
11668 ;;
11669
11670 *nto* | *qnx*)
11671 # QNX uses GNU C++, but need to define -shared option too, otherwise
11672 # it will coredump.
11673 lt_prog_compiler_pic='-fPIC -shared'
11674 ;;
11675
11676 sysv4*MP*)
11677 if test -d /usr/nec; then
11678 lt_prog_compiler_pic=-Kconform_pic
11679 fi
11680 ;;
11681
11682 *)
11683 lt_prog_compiler_pic='-fPIC'
11684 ;;
11685 esac
11686 else
11687 # PORTME Check for flag to pass linker flags through the system compiler.
11688 case $host_os in
11689 aix*)
11690 lt_prog_compiler_wl='-Wl,'
11691 if test "$host_cpu" = ia64; then
11692 # AIX 5 now supports IA64 processor
11693 lt_prog_compiler_static='-Bstatic'
11694 else
11695 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11696 fi
11697 ;;
11698
11699 mingw* | cygwin* | pw32* | os2* | cegcc*)
11700 # This hack is so that the source file can tell whether it is being
11701 # built for inclusion in a dll (and should export symbols for example).
11702 lt_prog_compiler_pic='-DDLL_EXPORT'
11703 ;;
11704
11705 hpux9* | hpux10* | hpux11*)
11706 lt_prog_compiler_wl='-Wl,'
11707 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11708 # not for PA HP-UX.
11709 case $host_cpu in
11710 hppa*64*|ia64*)
11711 # +Z the default
11712 ;;
11713 *)
11714 lt_prog_compiler_pic='+Z'
11715 ;;
11716 esac
11717 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11718 lt_prog_compiler_static='${wl}-a ${wl}archive'
11719 ;;
11720
11721 irix5* | irix6* | nonstopux*)
11722 lt_prog_compiler_wl='-Wl,'
11723 # PIC (with -KPIC) is the default.
11724 lt_prog_compiler_static='-non_shared'
11725 ;;
11726
cristy18304f92009-11-22 15:48:26 +000011727 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000011728 case $cc_basename in
11729 # old Intel for x86_64 which still supported -KPIC.
11730 ecc*)
11731 lt_prog_compiler_wl='-Wl,'
11732 lt_prog_compiler_pic='-KPIC'
11733 lt_prog_compiler_static='-static'
11734 ;;
11735 # icc used to be incompatible with GCC.
11736 # ICC 10 doesn't accept -KPIC any more.
11737 icc* | ifort*)
11738 lt_prog_compiler_wl='-Wl,'
11739 lt_prog_compiler_pic='-fPIC'
11740 lt_prog_compiler_static='-static'
11741 ;;
11742 # Lahey Fortran 8.1.
11743 lf95*)
11744 lt_prog_compiler_wl='-Wl,'
11745 lt_prog_compiler_pic='--shared'
11746 lt_prog_compiler_static='--static'
11747 ;;
cristy18304f92009-11-22 15:48:26 +000011748 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000011749 # Portland Group compilers (*not* the Pentium gcc compiler,
11750 # which looks to be a dead project)
11751 lt_prog_compiler_wl='-Wl,'
11752 lt_prog_compiler_pic='-fpic'
11753 lt_prog_compiler_static='-Bstatic'
11754 ;;
11755 ccc*)
11756 lt_prog_compiler_wl='-Wl,'
11757 # All Alpha code is PIC.
11758 lt_prog_compiler_static='-non_shared'
11759 ;;
cristy18304f92009-11-22 15:48:26 +000011760 xl*)
11761 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000011762 lt_prog_compiler_wl='-Wl,'
11763 lt_prog_compiler_pic='-qpic'
11764 lt_prog_compiler_static='-qstaticlink'
11765 ;;
11766 *)
11767 case `$CC -V 2>&1 | sed 5q` in
11768 *Sun\ C*)
11769 # Sun C 5.9
11770 lt_prog_compiler_pic='-KPIC'
11771 lt_prog_compiler_static='-Bstatic'
11772 lt_prog_compiler_wl='-Wl,'
11773 ;;
cristy18304f92009-11-22 15:48:26 +000011774 *Sun\ F*)
11775 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11776 lt_prog_compiler_pic='-KPIC'
11777 lt_prog_compiler_static='-Bstatic'
11778 lt_prog_compiler_wl=''
11779 ;;
cristy3ed852e2009-09-05 21:47:34 +000011780 esac
11781 ;;
11782 esac
11783 ;;
11784
11785 newsos6)
11786 lt_prog_compiler_pic='-KPIC'
11787 lt_prog_compiler_static='-Bstatic'
11788 ;;
11789
11790 *nto* | *qnx*)
11791 # QNX uses GNU C++, but need to define -shared option too, otherwise
11792 # it will coredump.
11793 lt_prog_compiler_pic='-fPIC -shared'
11794 ;;
11795
11796 osf3* | osf4* | osf5*)
11797 lt_prog_compiler_wl='-Wl,'
11798 # All OSF/1 code is PIC.
11799 lt_prog_compiler_static='-non_shared'
11800 ;;
11801
11802 rdos*)
11803 lt_prog_compiler_static='-non_shared'
11804 ;;
11805
11806 solaris*)
11807 lt_prog_compiler_pic='-KPIC'
11808 lt_prog_compiler_static='-Bstatic'
11809 case $cc_basename in
11810 f77* | f90* | f95*)
11811 lt_prog_compiler_wl='-Qoption ld ';;
11812 *)
11813 lt_prog_compiler_wl='-Wl,';;
11814 esac
11815 ;;
11816
11817 sunos4*)
11818 lt_prog_compiler_wl='-Qoption ld '
11819 lt_prog_compiler_pic='-PIC'
11820 lt_prog_compiler_static='-Bstatic'
11821 ;;
11822
11823 sysv4 | sysv4.2uw2* | sysv4.3*)
11824 lt_prog_compiler_wl='-Wl,'
11825 lt_prog_compiler_pic='-KPIC'
11826 lt_prog_compiler_static='-Bstatic'
11827 ;;
11828
11829 sysv4*MP*)
11830 if test -d /usr/nec ;then
11831 lt_prog_compiler_pic='-Kconform_pic'
11832 lt_prog_compiler_static='-Bstatic'
11833 fi
11834 ;;
11835
11836 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11837 lt_prog_compiler_wl='-Wl,'
11838 lt_prog_compiler_pic='-KPIC'
11839 lt_prog_compiler_static='-Bstatic'
11840 ;;
11841
11842 unicos*)
11843 lt_prog_compiler_wl='-Wl,'
11844 lt_prog_compiler_can_build_shared=no
11845 ;;
11846
11847 uts4*)
11848 lt_prog_compiler_pic='-pic'
11849 lt_prog_compiler_static='-Bstatic'
11850 ;;
11851
11852 *)
11853 lt_prog_compiler_can_build_shared=no
11854 ;;
11855 esac
11856 fi
11857
11858case $host_os in
11859 # For platforms which do not support PIC, -DPIC is meaningless:
11860 *djgpp*)
11861 lt_prog_compiler_pic=
11862 ;;
11863 *)
11864 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11865 ;;
11866esac
cristy8b350f62009-11-15 23:12:43 +000011867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000011868$as_echo "$lt_prog_compiler_pic" >&6; }
11869
11870
11871
11872
11873
11874
11875#
11876# Check to make sure the PIC flag actually works.
11877#
11878if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000011879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011880$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011881if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011882 $as_echo_n "(cached) " >&6
11883else
11884 lt_cv_prog_compiler_pic_works=no
11885 ac_outfile=conftest.$ac_objext
11886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11887 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11888 # Insert the option either (1) after the last *FLAGS variable, or
11889 # (2) before a word containing "conftest.", or (3) at the end.
11890 # Note that $ac_compile itself does not contain backslashes and begins
11891 # with a dollar sign (not a hyphen), so the echo should work correctly.
11892 # The option is referenced via a variable to avoid confusing sed.
11893 lt_compile=`echo "$ac_compile" | $SED \
11894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11896 -e 's:$: $lt_compiler_flag:'`
cristy9c562ad2009-12-28 02:17:04 +000011897 (eval echo "\"\$as_me:11897: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011898 (eval "$lt_compile" 2>conftest.err)
11899 ac_status=$?
11900 cat conftest.err >&5
cristy9c562ad2009-12-28 02:17:04 +000011901 echo "$as_me:11901: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011902 if (exit $ac_status) && test -s "$ac_outfile"; then
11903 # The compiler can only warn and ignore the option if not recognized
11904 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000011905 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11907 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11908 lt_cv_prog_compiler_pic_works=yes
11909 fi
11910 fi
11911 $RM conftest*
11912
11913fi
cristy8b350f62009-11-15 23:12:43 +000011914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011915$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11916
11917if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11918 case $lt_prog_compiler_pic in
11919 "" | " "*) ;;
11920 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11921 esac
11922else
11923 lt_prog_compiler_pic=
11924 lt_prog_compiler_can_build_shared=no
11925fi
11926
11927fi
11928
11929
11930
11931
11932
11933
11934#
11935# Check to make sure the static flag actually works.
11936#
11937wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000011938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011939$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011940if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011941 $as_echo_n "(cached) " >&6
11942else
11943 lt_cv_prog_compiler_static_works=no
11944 save_LDFLAGS="$LDFLAGS"
11945 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11946 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11947 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11948 # The linker can only warn and ignore the option if not recognized
11949 # So say no if there are warnings
11950 if test -s conftest.err; then
11951 # Append any errors to the config.log.
11952 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000011953 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11955 if diff conftest.exp conftest.er2 >/dev/null; then
11956 lt_cv_prog_compiler_static_works=yes
11957 fi
11958 else
11959 lt_cv_prog_compiler_static_works=yes
11960 fi
11961 fi
11962 $RM -r conftest*
11963 LDFLAGS="$save_LDFLAGS"
11964
11965fi
cristy8b350f62009-11-15 23:12:43 +000011966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011967$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11968
11969if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11970 :
11971else
11972 lt_prog_compiler_static=
11973fi
11974
11975
11976
11977
11978
11979
11980
cristy8b350f62009-11-15 23:12:43 +000011981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011982$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011983if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011984 $as_echo_n "(cached) " >&6
11985else
11986 lt_cv_prog_compiler_c_o=no
11987 $RM -r conftest 2>/dev/null
11988 mkdir conftest
11989 cd conftest
11990 mkdir out
11991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11992
11993 lt_compiler_flag="-o out/conftest2.$ac_objext"
11994 # Insert the option either (1) after the last *FLAGS variable, or
11995 # (2) before a word containing "conftest.", or (3) at the end.
11996 # Note that $ac_compile itself does not contain backslashes and begins
11997 # with a dollar sign (not a hyphen), so the echo should work correctly.
11998 lt_compile=`echo "$ac_compile" | $SED \
11999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12001 -e 's:$: $lt_compiler_flag:'`
cristy9c562ad2009-12-28 02:17:04 +000012002 (eval echo "\"\$as_me:12002: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012003 (eval "$lt_compile" 2>out/conftest.err)
12004 ac_status=$?
12005 cat out/conftest.err >&5
cristy9c562ad2009-12-28 02:17:04 +000012006 echo "$as_me:12006: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012007 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12008 then
12009 # The compiler can only warn and ignore the option if not recognized
12010 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012011 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012012 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12013 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12014 lt_cv_prog_compiler_c_o=yes
12015 fi
12016 fi
12017 chmod u+w . 2>&5
12018 $RM conftest*
12019 # SGI C++ compiler will create directory out/ii_files/ for
12020 # template instantiation
12021 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12022 $RM out/* && rmdir out
12023 cd ..
12024 $RM -r conftest
12025 $RM conftest*
12026
12027fi
cristy8b350f62009-11-15 23:12:43 +000012028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012029$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12030
12031
12032
12033
12034
12035
cristy8b350f62009-11-15 23:12:43 +000012036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012037$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012038if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012039 $as_echo_n "(cached) " >&6
12040else
12041 lt_cv_prog_compiler_c_o=no
12042 $RM -r conftest 2>/dev/null
12043 mkdir conftest
12044 cd conftest
12045 mkdir out
12046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12047
12048 lt_compiler_flag="-o out/conftest2.$ac_objext"
12049 # Insert the option either (1) after the last *FLAGS variable, or
12050 # (2) before a word containing "conftest.", or (3) at the end.
12051 # Note that $ac_compile itself does not contain backslashes and begins
12052 # with a dollar sign (not a hyphen), so the echo should work correctly.
12053 lt_compile=`echo "$ac_compile" | $SED \
12054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12056 -e 's:$: $lt_compiler_flag:'`
cristy9c562ad2009-12-28 02:17:04 +000012057 (eval echo "\"\$as_me:12057: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012058 (eval "$lt_compile" 2>out/conftest.err)
12059 ac_status=$?
12060 cat out/conftest.err >&5
cristy9c562ad2009-12-28 02:17:04 +000012061 echo "$as_me:12061: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012062 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12063 then
12064 # The compiler can only warn and ignore the option if not recognized
12065 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012066 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12069 lt_cv_prog_compiler_c_o=yes
12070 fi
12071 fi
12072 chmod u+w . 2>&5
12073 $RM conftest*
12074 # SGI C++ compiler will create directory out/ii_files/ for
12075 # template instantiation
12076 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12077 $RM out/* && rmdir out
12078 cd ..
12079 $RM -r conftest
12080 $RM conftest*
12081
12082fi
cristy8b350f62009-11-15 23:12:43 +000012083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012084$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12085
12086
12087
12088
12089hard_links="nottested"
12090if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12091 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000012092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012093$as_echo_n "checking if we can lock with hard links... " >&6; }
12094 hard_links=yes
12095 $RM conftest*
12096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12097 touch conftest.a
12098 ln conftest.a conftest.b 2>&5 || hard_links=no
12099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000012100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012101$as_echo "$hard_links" >&6; }
12102 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000012103 { $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 +000012104$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12105 need_locks=warn
12106 fi
12107else
12108 need_locks=no
12109fi
12110
12111
12112
12113
12114
12115
cristy8b350f62009-11-15 23:12:43 +000012116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000012117$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12118
12119 runpath_var=
12120 allow_undefined_flag=
12121 always_export_symbols=no
12122 archive_cmds=
12123 archive_expsym_cmds=
12124 compiler_needs_object=no
12125 enable_shared_with_static_runtimes=no
12126 export_dynamic_flag_spec=
12127 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12128 hardcode_automatic=no
12129 hardcode_direct=no
12130 hardcode_direct_absolute=no
12131 hardcode_libdir_flag_spec=
12132 hardcode_libdir_flag_spec_ld=
12133 hardcode_libdir_separator=
12134 hardcode_minus_L=no
12135 hardcode_shlibpath_var=unsupported
12136 inherit_rpath=no
12137 link_all_deplibs=unknown
12138 module_cmds=
12139 module_expsym_cmds=
12140 old_archive_from_new_cmds=
12141 old_archive_from_expsyms_cmds=
12142 thread_safe_flag_spec=
12143 whole_archive_flag_spec=
12144 # include_expsyms should be a list of space-separated symbols to be *always*
12145 # included in the symbol list
12146 include_expsyms=
12147 # exclude_expsyms can be an extended regexp of symbols to exclude
12148 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12149 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12150 # as well as any symbol that contains `d'.
12151 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12152 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12153 # platforms (ab)use it in PIC code, but their linkers get confused if
12154 # the symbol is explicitly referenced. Since portable code cannot
12155 # rely on this symbol name, it's probably fine to never include it in
12156 # preloaded symbol tables.
12157 # Exclude shared library initialization/finalization symbols.
12158 extract_expsyms_cmds=
12159
12160 case $host_os in
12161 cygwin* | mingw* | pw32* | cegcc*)
12162 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12163 # When not using gcc, we currently assume that we are using
12164 # Microsoft Visual C++.
12165 if test "$GCC" != yes; then
12166 with_gnu_ld=no
12167 fi
12168 ;;
12169 interix*)
12170 # we just hope/assume this is gcc and not c89 (= MSVC++)
12171 with_gnu_ld=yes
12172 ;;
12173 openbsd*)
12174 with_gnu_ld=no
12175 ;;
12176 esac
12177
12178 ld_shlibs=yes
12179 if test "$with_gnu_ld" = yes; then
12180 # If archive_cmds runs LD, not CC, wlarc should be empty
12181 wlarc='${wl}'
12182
12183 # Set some defaults for GNU ld with shared library support. These
12184 # are reset later if shared libraries are not supported. Putting them
12185 # here allows them to be overridden if necessary.
12186 runpath_var=LD_RUN_PATH
12187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12188 export_dynamic_flag_spec='${wl}--export-dynamic'
12189 # ancient GNU ld didn't support --whole-archive et. al.
12190 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12191 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12192 else
12193 whole_archive_flag_spec=
12194 fi
12195 supports_anon_versioning=no
12196 case `$LD -v 2>&1` in
12197 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12198 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12199 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12200 *\ 2.11.*) ;; # other 2.11 versions
12201 *) supports_anon_versioning=yes ;;
12202 esac
12203
12204 # See if GNU ld supports shared libraries.
12205 case $host_os in
12206 aix[3-9]*)
12207 # On AIX/PPC, the GNU linker is very broken
12208 if test "$host_cpu" != ia64; then
12209 ld_shlibs=no
12210 cat <<_LT_EOF 1>&2
12211
cristy18304f92009-11-22 15:48:26 +000012212*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000012213*** to be unable to reliably create shared libraries on AIX.
12214*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000012215*** really care for shared libraries, you may want to modify your PATH
12216*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000012217
12218_LT_EOF
12219 fi
12220 ;;
12221
12222 amigaos*)
12223 case $host_cpu in
12224 powerpc)
12225 # see comment about AmigaOS4 .so support
12226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12227 archive_expsym_cmds=''
12228 ;;
12229 m68k)
12230 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)'
12231 hardcode_libdir_flag_spec='-L$libdir'
12232 hardcode_minus_L=yes
12233 ;;
12234 esac
12235 ;;
12236
12237 beos*)
12238 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12239 allow_undefined_flag=unsupported
12240 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12241 # support --undefined. This deserves some investigation. FIXME
12242 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12243 else
12244 ld_shlibs=no
12245 fi
12246 ;;
12247
12248 cygwin* | mingw* | pw32* | cegcc*)
12249 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12250 # as there is no search path for DLLs.
12251 hardcode_libdir_flag_spec='-L$libdir'
12252 allow_undefined_flag=unsupported
12253 always_export_symbols=no
12254 enable_shared_with_static_runtimes=yes
12255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12256
12257 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12259 # If the export-symbols file already is a .def file (1st line
12260 # is EXPORTS), use it as is; otherwise, prepend...
12261 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12262 cp $export_symbols $output_objdir/$soname.def;
12263 else
12264 echo EXPORTS > $output_objdir/$soname.def;
12265 cat $export_symbols >> $output_objdir/$soname.def;
12266 fi~
12267 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12268 else
12269 ld_shlibs=no
12270 fi
12271 ;;
12272
12273 interix[3-9]*)
12274 hardcode_direct=no
12275 hardcode_shlibpath_var=no
12276 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12277 export_dynamic_flag_spec='${wl}-E'
12278 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12279 # Instead, shared libraries are loaded at an image base (0x10000000 by
12280 # default) and relocated if they conflict, which is a slow very memory
12281 # consuming and fragmenting process. To avoid this, we pick a random,
12282 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12283 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12284 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12285 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'
12286 ;;
12287
cristy18304f92009-11-22 15:48:26 +000012288 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012289 tmp_diet=no
12290 if test "$host_os" = linux-dietlibc; then
12291 case $cc_basename in
12292 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12293 esac
12294 fi
12295 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12296 && test "$tmp_diet" = no
12297 then
12298 tmp_addflag=
12299 tmp_sharedflag='-shared'
12300 case $cc_basename,$host_cpu in
12301 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000012302 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 +000012303 tmp_addflag=' $pic_flag'
12304 ;;
cristy18304f92009-11-22 15:48:26 +000012305 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12306 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 +000012307 tmp_addflag=' $pic_flag -Mnomain' ;;
12308 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12309 tmp_addflag=' -i_dynamic' ;;
12310 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12311 tmp_addflag=' -i_dynamic -nofor_main' ;;
12312 ifc* | ifort*) # Intel Fortran compiler
12313 tmp_addflag=' -nofor_main' ;;
12314 lf95*) # Lahey Fortran 8.1
12315 whole_archive_flag_spec=
12316 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000012317 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000012318 tmp_sharedflag='-qmkshrobj'
12319 tmp_addflag= ;;
12320 esac
12321 case `$CC -V 2>&1 | sed 5q` in
12322 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000012323 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 +000012324 compiler_needs_object=yes
12325 tmp_sharedflag='-G' ;;
12326 *Sun\ F*) # Sun Fortran 8.3
12327 tmp_sharedflag='-G' ;;
12328 esac
12329 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12330
12331 if test "x$supports_anon_versioning" = xyes; then
12332 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12334 echo "local: *; };" >> $output_objdir/$libname.ver~
12335 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12336 fi
12337
12338 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000012339 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000012340 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12341 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12342 hardcode_libdir_flag_spec=
12343 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12344 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12345 if test "x$supports_anon_versioning" = xyes; then
12346 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12347 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12348 echo "local: *; };" >> $output_objdir/$libname.ver~
12349 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12350 fi
12351 ;;
12352 esac
12353 else
12354 ld_shlibs=no
12355 fi
12356 ;;
12357
12358 netbsd*)
12359 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12360 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12361 wlarc=
12362 else
12363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12365 fi
12366 ;;
12367
12368 solaris*)
12369 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12370 ld_shlibs=no
12371 cat <<_LT_EOF 1>&2
12372
12373*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12374*** create shared libraries on Solaris systems. Therefore, libtool
12375*** is disabling shared libraries support. We urge you to upgrade GNU
12376*** binutils to release 2.9.1 or newer. Another option is to modify
12377*** your PATH or compiler configuration so that the native linker is
12378*** used, and then restart.
12379
12380_LT_EOF
12381 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12384 else
12385 ld_shlibs=no
12386 fi
12387 ;;
12388
12389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12390 case `$LD -v 2>&1` in
12391 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12392 ld_shlibs=no
12393 cat <<_LT_EOF 1>&2
12394
12395*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12396*** reliably create shared libraries on SCO systems. Therefore, libtool
12397*** is disabling shared libraries support. We urge you to upgrade GNU
12398*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12399*** your PATH or compiler configuration so that the native linker is
12400*** used, and then restart.
12401
12402_LT_EOF
12403 ;;
12404 *)
12405 # For security reasons, it is highly recommended that you always
12406 # use absolute paths for naming shared libraries, and exclude the
12407 # DT_RUNPATH tag from executables and libraries. But doing so
12408 # requires that you compile everything twice, which is a pain.
12409 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12412 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12413 else
12414 ld_shlibs=no
12415 fi
12416 ;;
12417 esac
12418 ;;
12419
12420 sunos4*)
12421 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12422 wlarc=
12423 hardcode_direct=yes
12424 hardcode_shlibpath_var=no
12425 ;;
12426
12427 *)
12428 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12430 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12431 else
12432 ld_shlibs=no
12433 fi
12434 ;;
12435 esac
12436
12437 if test "$ld_shlibs" = no; then
12438 runpath_var=
12439 hardcode_libdir_flag_spec=
12440 export_dynamic_flag_spec=
12441 whole_archive_flag_spec=
12442 fi
12443 else
12444 # PORTME fill in a description of your system's linker (not GNU ld)
12445 case $host_os in
12446 aix3*)
12447 allow_undefined_flag=unsupported
12448 always_export_symbols=yes
12449 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'
12450 # Note: this linker hardcodes the directories in LIBPATH if there
12451 # are no directories specified by -L.
12452 hardcode_minus_L=yes
12453 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12454 # Neither direct hardcoding nor static linking is supported with a
12455 # broken collect2.
12456 hardcode_direct=unsupported
12457 fi
12458 ;;
12459
12460 aix[4-9]*)
12461 if test "$host_cpu" = ia64; then
12462 # On IA64, the linker does run time linking by default, so we don't
12463 # have to do anything special.
12464 aix_use_runtimelinking=no
12465 exp_sym_flag='-Bexport'
12466 no_entry_flag=""
12467 else
12468 # If we're using GNU nm, then we don't want the "-C" option.
12469 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12470 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000012471 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 +000012472 else
12473 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'
12474 fi
12475 aix_use_runtimelinking=no
12476
12477 # Test if we are trying to use run time linking or normal
12478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12479 # need to do runtime linking.
12480 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12481 for ld_flag in $LDFLAGS; do
12482 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12483 aix_use_runtimelinking=yes
12484 break
12485 fi
12486 done
12487 ;;
12488 esac
12489
12490 exp_sym_flag='-bexport'
12491 no_entry_flag='-bnoentry'
12492 fi
12493
12494 # When large executables or shared objects are built, AIX ld can
12495 # have problems creating the table of contents. If linking a library
12496 # or program results in "error TOC overflow" add -mminimal-toc to
12497 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12498 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12499
12500 archive_cmds=''
12501 hardcode_direct=yes
12502 hardcode_direct_absolute=yes
12503 hardcode_libdir_separator=':'
12504 link_all_deplibs=yes
12505 file_list_spec='${wl}-f,'
12506
12507 if test "$GCC" = yes; then
12508 case $host_os in aix4.[012]|aix4.[012].*)
12509 # We only want to do this on AIX 4.2 and lower, the check
12510 # below for broken collect2 doesn't work under 4.3+
12511 collect2name=`${CC} -print-prog-name=collect2`
12512 if test -f "$collect2name" &&
12513 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12514 then
12515 # We have reworked collect2
12516 :
12517 else
12518 # We have old collect2
12519 hardcode_direct=unsupported
12520 # It fails to find uninstalled libraries when the uninstalled
12521 # path is not listed in the libpath. Setting hardcode_minus_L
12522 # to unsupported forces relinking
12523 hardcode_minus_L=yes
12524 hardcode_libdir_flag_spec='-L$libdir'
12525 hardcode_libdir_separator=
12526 fi
12527 ;;
12528 esac
12529 shared_flag='-shared'
12530 if test "$aix_use_runtimelinking" = yes; then
12531 shared_flag="$shared_flag "'${wl}-G'
12532 fi
12533 else
12534 # not using gcc
12535 if test "$host_cpu" = ia64; then
12536 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12537 # chokes on -Wl,-G. The following line is correct:
12538 shared_flag='-G'
12539 else
12540 if test "$aix_use_runtimelinking" = yes; then
12541 shared_flag='${wl}-G'
12542 else
12543 shared_flag='${wl}-bM:SRE'
12544 fi
12545 fi
12546 fi
12547
12548 export_dynamic_flag_spec='${wl}-bexpall'
12549 # It seems that -bexpall does not export symbols beginning with
12550 # underscore (_), so it is better to generate a list of symbols to export.
12551 always_export_symbols=yes
12552 if test "$aix_use_runtimelinking" = yes; then
12553 # Warning - without using the other runtime loading flags (-brtl),
12554 # -berok will link without error, but may produce a broken library.
12555 allow_undefined_flag='-berok'
12556 # Determine the default libpath from the value encoded in an
12557 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012559/* end confdefs.h. */
12560
12561int
12562main ()
12563{
12564
12565 ;
12566 return 0;
12567}
12568_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012569if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012570
12571lt_aix_libpath_sed='
12572 /Import File Strings/,/^$/ {
12573 /^0/ {
12574 s/^0 *\(.*\)$/\1/
12575 p
12576 }
12577 }'
12578aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12579# Check for a 64-bit object if we didn't find anything.
12580if test -z "$aix_libpath"; then
12581 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12582fi
cristy3ed852e2009-09-05 21:47:34 +000012583fi
cristy8b350f62009-11-15 23:12:43 +000012584rm -f core conftest.err conftest.$ac_objext \
12585 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012586if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12587
12588 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000012589 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 +000012590 else
12591 if test "$host_cpu" = ia64; then
12592 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12593 allow_undefined_flag="-z nodefs"
12594 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"
12595 else
12596 # Determine the default libpath from the value encoded in an
12597 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012599/* end confdefs.h. */
12600
12601int
12602main ()
12603{
12604
12605 ;
12606 return 0;
12607}
12608_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012609if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012610
12611lt_aix_libpath_sed='
12612 /Import File Strings/,/^$/ {
12613 /^0/ {
12614 s/^0 *\(.*\)$/\1/
12615 p
12616 }
12617 }'
12618aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12619# Check for a 64-bit object if we didn't find anything.
12620if test -z "$aix_libpath"; then
12621 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12622fi
cristy3ed852e2009-09-05 21:47:34 +000012623fi
cristy8b350f62009-11-15 23:12:43 +000012624rm -f core conftest.err conftest.$ac_objext \
12625 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012626if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12627
12628 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12629 # Warning - without using the other run time loading flags,
12630 # -berok will link without error, but may produce a broken library.
12631 no_undefined_flag=' ${wl}-bernotok'
12632 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000012633 # Exported symbols can be pulled into shared objects from archives
12634 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000012635 archive_cmds_need_lc=yes
12636 # This is similar to how AIX traditionally builds its shared libraries.
12637 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'
12638 fi
12639 fi
12640 ;;
12641
12642 amigaos*)
12643 case $host_cpu in
12644 powerpc)
12645 # see comment about AmigaOS4 .so support
12646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12647 archive_expsym_cmds=''
12648 ;;
12649 m68k)
12650 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)'
12651 hardcode_libdir_flag_spec='-L$libdir'
12652 hardcode_minus_L=yes
12653 ;;
12654 esac
12655 ;;
12656
12657 bsdi[45]*)
12658 export_dynamic_flag_spec=-rdynamic
12659 ;;
12660
12661 cygwin* | mingw* | pw32* | cegcc*)
12662 # When not using gcc, we currently assume that we are using
12663 # Microsoft Visual C++.
12664 # hardcode_libdir_flag_spec is actually meaningless, as there is
12665 # no search path for DLLs.
12666 hardcode_libdir_flag_spec=' '
12667 allow_undefined_flag=unsupported
12668 # Tell ltmain to make .lib files, not .a files.
12669 libext=lib
12670 # Tell ltmain to make .dll files, not .so files.
12671 shrext_cmds=".dll"
12672 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000012673 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000012674 # The linker will automatically build a .lib file if we build a DLL.
12675 old_archive_from_new_cmds='true'
12676 # FIXME: Should let the user specify the lib program.
12677 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12678 fix_srcfile_path='`cygpath -w "$srcfile"`'
12679 enable_shared_with_static_runtimes=yes
12680 ;;
12681
12682 darwin* | rhapsody*)
12683
12684
12685 archive_cmds_need_lc=no
12686 hardcode_direct=no
12687 hardcode_automatic=yes
12688 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000012689 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000012690 link_all_deplibs=yes
12691 allow_undefined_flag="$_lt_dar_allow_undefined"
12692 case $cc_basename in
12693 ifort*) _lt_dar_can_shared=yes ;;
12694 *) _lt_dar_can_shared=$GCC ;;
12695 esac
12696 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000012697 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000012698 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12699 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12700 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}"
12701 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}"
12702
12703 else
12704 ld_shlibs=no
12705 fi
12706
12707 ;;
12708
12709 dgux*)
12710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12711 hardcode_libdir_flag_spec='-L$libdir'
12712 hardcode_shlibpath_var=no
12713 ;;
12714
12715 freebsd1*)
12716 ld_shlibs=no
12717 ;;
12718
12719 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12720 # support. Future versions do this automatically, but an explicit c++rt0.o
12721 # does not break anything, and helps significantly (at the cost of a little
12722 # extra space).
12723 freebsd2.2*)
12724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12725 hardcode_libdir_flag_spec='-R$libdir'
12726 hardcode_direct=yes
12727 hardcode_shlibpath_var=no
12728 ;;
12729
12730 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12731 freebsd2*)
12732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12733 hardcode_direct=yes
12734 hardcode_minus_L=yes
12735 hardcode_shlibpath_var=no
12736 ;;
12737
12738 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12739 freebsd* | dragonfly*)
12740 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12741 hardcode_libdir_flag_spec='-R$libdir'
12742 hardcode_direct=yes
12743 hardcode_shlibpath_var=no
12744 ;;
12745
12746 hpux9*)
12747 if test "$GCC" = yes; then
12748 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'
12749 else
12750 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'
12751 fi
12752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12753 hardcode_libdir_separator=:
12754 hardcode_direct=yes
12755
12756 # hardcode_minus_L: Not really in the search PATH,
12757 # but as the default location of the library.
12758 hardcode_minus_L=yes
12759 export_dynamic_flag_spec='${wl}-E'
12760 ;;
12761
12762 hpux10*)
cristy18304f92009-11-22 15:48:26 +000012763 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012764 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12765 else
12766 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12767 fi
12768 if test "$with_gnu_ld" = no; then
12769 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12770 hardcode_libdir_flag_spec_ld='+b $libdir'
12771 hardcode_libdir_separator=:
12772 hardcode_direct=yes
12773 hardcode_direct_absolute=yes
12774 export_dynamic_flag_spec='${wl}-E'
12775 # hardcode_minus_L: Not really in the search PATH,
12776 # but as the default location of the library.
12777 hardcode_minus_L=yes
12778 fi
12779 ;;
12780
12781 hpux11*)
cristy18304f92009-11-22 15:48:26 +000012782 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012783 case $host_cpu in
12784 hppa*64*)
12785 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12786 ;;
12787 ia64*)
12788 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12789 ;;
12790 *)
12791 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12792 ;;
12793 esac
12794 else
12795 case $host_cpu in
12796 hppa*64*)
12797 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12798 ;;
12799 ia64*)
12800 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12801 ;;
12802 *)
cristy18304f92009-11-22 15:48:26 +000012803 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 +000012804 ;;
12805 esac
12806 fi
12807 if test "$with_gnu_ld" = no; then
12808 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12809 hardcode_libdir_separator=:
12810
12811 case $host_cpu in
12812 hppa*64*|ia64*)
12813 hardcode_direct=no
12814 hardcode_shlibpath_var=no
12815 ;;
12816 *)
12817 hardcode_direct=yes
12818 hardcode_direct_absolute=yes
12819 export_dynamic_flag_spec='${wl}-E'
12820
12821 # hardcode_minus_L: Not really in the search PATH,
12822 # but as the default location of the library.
12823 hardcode_minus_L=yes
12824 ;;
12825 esac
12826 fi
12827 ;;
12828
12829 irix5* | irix6* | nonstopux*)
12830 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012831 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 +000012832 # Try to use the -exported_symbol ld option, if it does not
12833 # work, assume that -exports_file does not work either and
12834 # implicitly export all symbols.
12835 save_LDFLAGS="$LDFLAGS"
12836 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000012837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000012839int foo(void) {}
12840_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012841if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000012842 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 +000012843
cristy3ed852e2009-09-05 21:47:34 +000012844fi
cristy8b350f62009-11-15 23:12:43 +000012845rm -f core conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012847 LDFLAGS="$save_LDFLAGS"
12848 else
cristy18304f92009-11-22 15:48:26 +000012849 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'
12850 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 +000012851 fi
12852 archive_cmds_need_lc='no'
12853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12854 hardcode_libdir_separator=:
12855 inherit_rpath=yes
12856 link_all_deplibs=yes
12857 ;;
12858
12859 netbsd*)
12860 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12862 else
12863 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12864 fi
12865 hardcode_libdir_flag_spec='-R$libdir'
12866 hardcode_direct=yes
12867 hardcode_shlibpath_var=no
12868 ;;
12869
12870 newsos6)
12871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12872 hardcode_direct=yes
12873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12874 hardcode_libdir_separator=:
12875 hardcode_shlibpath_var=no
12876 ;;
12877
12878 *nto* | *qnx*)
12879 ;;
12880
12881 openbsd*)
12882 if test -f /usr/libexec/ld.so; then
12883 hardcode_direct=yes
12884 hardcode_shlibpath_var=no
12885 hardcode_direct_absolute=yes
12886 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12888 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12890 export_dynamic_flag_spec='${wl}-E'
12891 else
12892 case $host_os in
12893 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12895 hardcode_libdir_flag_spec='-R$libdir'
12896 ;;
12897 *)
12898 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12899 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12900 ;;
12901 esac
12902 fi
12903 else
12904 ld_shlibs=no
12905 fi
12906 ;;
12907
12908 os2*)
12909 hardcode_libdir_flag_spec='-L$libdir'
12910 hardcode_minus_L=yes
12911 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000012912 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 +000012913 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12914 ;;
12915
12916 osf3*)
12917 if test "$GCC" = yes; then
12918 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000012919 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 +000012920 else
12921 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000012922 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 +000012923 fi
12924 archive_cmds_need_lc='no'
12925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12926 hardcode_libdir_separator=:
12927 ;;
12928
12929 osf4* | osf5*) # as osf3* with the addition of -msym flag
12930 if test "$GCC" = yes; then
12931 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000012932 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 +000012933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12934 else
12935 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000012936 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 +000012937 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 +000012938 $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 +000012939
12940 # Both c and cxx compiler support -rpath directly
12941 hardcode_libdir_flag_spec='-rpath $libdir'
12942 fi
12943 archive_cmds_need_lc='no'
12944 hardcode_libdir_separator=:
12945 ;;
12946
12947 solaris*)
12948 no_undefined_flag=' -z defs'
12949 if test "$GCC" = yes; then
12950 wlarc='${wl}'
12951 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12953 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12954 else
12955 case `$CC -V 2>&1` in
12956 *"Compilers 5.0"*)
12957 wlarc=''
12958 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12959 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12960 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12961 ;;
12962 *)
12963 wlarc='${wl}'
12964 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12965 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12966 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12967 ;;
12968 esac
12969 fi
12970 hardcode_libdir_flag_spec='-R$libdir'
12971 hardcode_shlibpath_var=no
12972 case $host_os in
12973 solaris2.[0-5] | solaris2.[0-5].*) ;;
12974 *)
12975 # The compiler driver will combine and reorder linker options,
12976 # but understands `-z linker_flag'. GCC discards it without `$wl',
12977 # but is careful enough not to reorder.
12978 # Supported since Solaris 2.6 (maybe 2.5.1?)
12979 if test "$GCC" = yes; then
12980 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12981 else
12982 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12983 fi
12984 ;;
12985 esac
12986 link_all_deplibs=yes
12987 ;;
12988
12989 sunos4*)
12990 if test "x$host_vendor" = xsequent; then
12991 # Use $CC to link under sequent, because it throws in some extra .o
12992 # files that make .init and .fini sections work.
12993 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12994 else
12995 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12996 fi
12997 hardcode_libdir_flag_spec='-L$libdir'
12998 hardcode_direct=yes
12999 hardcode_minus_L=yes
13000 hardcode_shlibpath_var=no
13001 ;;
13002
13003 sysv4)
13004 case $host_vendor in
13005 sni)
13006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13007 hardcode_direct=yes # is this really true???
13008 ;;
13009 siemens)
13010 ## LD is ld it makes a PLAMLIB
13011 ## CC just makes a GrossModule.
13012 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13013 reload_cmds='$CC -r -o $output$reload_objs'
13014 hardcode_direct=no
13015 ;;
13016 motorola)
13017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13018 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13019 ;;
13020 esac
13021 runpath_var='LD_RUN_PATH'
13022 hardcode_shlibpath_var=no
13023 ;;
13024
13025 sysv4.3*)
13026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13027 hardcode_shlibpath_var=no
13028 export_dynamic_flag_spec='-Bexport'
13029 ;;
13030
13031 sysv4*MP*)
13032 if test -d /usr/nec; then
13033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13034 hardcode_shlibpath_var=no
13035 runpath_var=LD_RUN_PATH
13036 hardcode_runpath_var=yes
13037 ld_shlibs=yes
13038 fi
13039 ;;
13040
13041 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13042 no_undefined_flag='${wl}-z,text'
13043 archive_cmds_need_lc=no
13044 hardcode_shlibpath_var=no
13045 runpath_var='LD_RUN_PATH'
13046
13047 if test "$GCC" = yes; then
13048 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13049 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13050 else
13051 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13052 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13053 fi
13054 ;;
13055
13056 sysv5* | sco3.2v5* | sco5v6*)
13057 # Note: We can NOT use -z defs as we might desire, because we do not
13058 # link with -lc, and that would cause any symbols used from libc to
13059 # always be unresolved, which means just about no library would
13060 # ever link correctly. If we're not using GNU ld we use -z text
13061 # though, which does catch some bad symbols but isn't as heavy-handed
13062 # as -z defs.
13063 no_undefined_flag='${wl}-z,text'
13064 allow_undefined_flag='${wl}-z,nodefs'
13065 archive_cmds_need_lc=no
13066 hardcode_shlibpath_var=no
13067 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13068 hardcode_libdir_separator=':'
13069 link_all_deplibs=yes
13070 export_dynamic_flag_spec='${wl}-Bexport'
13071 runpath_var='LD_RUN_PATH'
13072
13073 if test "$GCC" = yes; then
13074 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13075 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13076 else
13077 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13078 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13079 fi
13080 ;;
13081
13082 uts4*)
13083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13084 hardcode_libdir_flag_spec='-L$libdir'
13085 hardcode_shlibpath_var=no
13086 ;;
13087
13088 *)
13089 ld_shlibs=no
13090 ;;
13091 esac
13092
13093 if test x$host_vendor = xsni; then
13094 case $host in
13095 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13096 export_dynamic_flag_spec='${wl}-Blargedynsym'
13097 ;;
13098 esac
13099 fi
13100 fi
13101
cristy8b350f62009-11-15 23:12:43 +000013102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000013103$as_echo "$ld_shlibs" >&6; }
13104test "$ld_shlibs" = no && can_build_shared=no
13105
13106with_gnu_ld=$with_gnu_ld
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122#
13123# Do we need to explicitly link libc?
13124#
13125case "x$archive_cmds_need_lc" in
13126x|xyes)
13127 # Assume -lc should be added
13128 archive_cmds_need_lc=yes
13129
13130 if test "$enable_shared" = yes && test "$GCC" = yes; then
13131 case $archive_cmds in
13132 *'~'*)
13133 # FIXME: we may have to deal with multi-command sequences.
13134 ;;
13135 '$CC '*)
13136 # Test whether the compiler implicitly links with -lc since on some
13137 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13138 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000013139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000013140$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000013141 $RM conftest*
13142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013143
cristy18304f92009-11-22 15:48:26 +000013144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000013145 (eval $ac_compile) 2>&5
13146 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13148 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000013149 soname=conftest
13150 lib=conftest
13151 libobjs=conftest.$ac_objext
13152 deplibs=
13153 wl=$lt_prog_compiler_wl
13154 pic_flag=$lt_prog_compiler_pic
13155 compiler_flags=-v
13156 linker_flags=-v
13157 verstring=
13158 output_objdir=.
13159 libname=conftest
13160 lt_save_allow_undefined_flag=$allow_undefined_flag
13161 allow_undefined_flag=
13162 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 +000013163 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13164 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13166 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000013167 then
13168 archive_cmds_need_lc=no
13169 else
13170 archive_cmds_need_lc=yes
13171 fi
13172 allow_undefined_flag=$lt_save_allow_undefined_flag
13173 else
13174 cat conftest.err 1>&5
13175 fi
13176 $RM conftest*
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13178$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000013179 ;;
13180 esac
13181 fi
13182 ;;
13183esac
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
cristy8b350f62009-11-15 23:12:43 +000013341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000013342$as_echo_n "checking dynamic linker characteristics... " >&6; }
13343
13344if test "$GCC" = yes; then
13345 case $host_os in
13346 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13347 *) lt_awk_arg="/^libraries:/" ;;
13348 esac
cristy18304f92009-11-22 15:48:26 +000013349 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13350 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000013351 # if the path contains ";" then we assume it to be the separator
13352 # otherwise default to the standard path separator (i.e. ":") - it is
13353 # assumed that no part of a normal pathname contains ";" but that should
13354 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000013355 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13356 else
13357 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13358 fi
cristy3ed852e2009-09-05 21:47:34 +000013359 # Ok, now we have the path, separated by spaces, we can step through it
13360 # and add multilib dir if necessary.
13361 lt_tmp_lt_search_path_spec=
13362 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13363 for lt_sys_path in $lt_search_path_spec; do
13364 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13366 else
13367 test -d "$lt_sys_path" && \
13368 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13369 fi
13370 done
cristy18304f92009-11-22 15:48:26 +000013371 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000013372BEGIN {RS=" "; FS="/|\n";} {
13373 lt_foo="";
13374 lt_count=0;
13375 for (lt_i = NF; lt_i > 0; lt_i--) {
13376 if ($lt_i != "" && $lt_i != ".") {
13377 if ($lt_i == "..") {
13378 lt_count++;
13379 } else {
13380 if (lt_count == 0) {
13381 lt_foo="/" $lt_i lt_foo;
13382 } else {
13383 lt_count--;
13384 }
13385 }
13386 }
13387 }
13388 if (lt_foo != "") { lt_freq[lt_foo]++; }
13389 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13390}'`
cristy18304f92009-11-22 15:48:26 +000013391 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000013392else
13393 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13394fi
13395library_names_spec=
13396libname_spec='lib$name'
13397soname_spec=
13398shrext_cmds=".so"
13399postinstall_cmds=
13400postuninstall_cmds=
13401finish_cmds=
13402finish_eval=
13403shlibpath_var=
13404shlibpath_overrides_runpath=unknown
13405version_type=none
13406dynamic_linker="$host_os ld.so"
13407sys_lib_dlsearch_path_spec="/lib /usr/lib"
13408need_lib_prefix=unknown
13409hardcode_into_libs=no
13410
13411# when you set need_version to no, make sure it does not cause -set_version
13412# flags to be left without arguments
13413need_version=unknown
13414
13415case $host_os in
13416aix3*)
13417 version_type=linux
13418 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13419 shlibpath_var=LIBPATH
13420
13421 # AIX 3 has no versioning support, so we append a major version to the name.
13422 soname_spec='${libname}${release}${shared_ext}$major'
13423 ;;
13424
13425aix[4-9]*)
13426 version_type=linux
13427 need_lib_prefix=no
13428 need_version=no
13429 hardcode_into_libs=yes
13430 if test "$host_cpu" = ia64; then
13431 # AIX 5 supports IA64
13432 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13433 shlibpath_var=LD_LIBRARY_PATH
13434 else
13435 # With GCC up to 2.95.x, collect2 would create an import file
13436 # for dependence libraries. The import file would start with
13437 # the line `#! .'. This would cause the generated library to
13438 # depend on `.', always an invalid library. This was fixed in
13439 # development snapshots of GCC prior to 3.0.
13440 case $host_os in
13441 aix4 | aix4.[01] | aix4.[01].*)
13442 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13443 echo ' yes '
13444 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13445 :
13446 else
13447 can_build_shared=no
13448 fi
13449 ;;
13450 esac
13451 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13452 # soname into executable. Probably we can add versioning support to
13453 # collect2, so additional links can be useful in future.
13454 if test "$aix_use_runtimelinking" = yes; then
13455 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13456 # instead of lib<name>.a to let people know that these are not
13457 # typical AIX shared libraries.
13458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13459 else
13460 # We preserve .a as extension for shared libraries through AIX4.2
13461 # and later when we are not doing run time linking.
13462 library_names_spec='${libname}${release}.a $libname.a'
13463 soname_spec='${libname}${release}${shared_ext}$major'
13464 fi
13465 shlibpath_var=LIBPATH
13466 fi
13467 ;;
13468
13469amigaos*)
13470 case $host_cpu in
13471 powerpc)
13472 # Since July 2007 AmigaOS4 officially supports .so libraries.
13473 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475 ;;
13476 m68k)
13477 library_names_spec='$libname.ixlibrary $libname.a'
13478 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000013479 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 +000013480 ;;
13481 esac
13482 ;;
13483
13484beos*)
13485 library_names_spec='${libname}${shared_ext}'
13486 dynamic_linker="$host_os ld.so"
13487 shlibpath_var=LIBRARY_PATH
13488 ;;
13489
13490bsdi[45]*)
13491 version_type=linux
13492 need_version=no
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494 soname_spec='${libname}${release}${shared_ext}$major'
13495 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13496 shlibpath_var=LD_LIBRARY_PATH
13497 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13498 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13499 # the default ld.so.conf also contains /usr/contrib/lib and
13500 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13501 # libtool to hard-code these into programs
13502 ;;
13503
13504cygwin* | mingw* | pw32* | cegcc*)
13505 version_type=windows
13506 shrext_cmds=".dll"
13507 need_version=no
13508 need_lib_prefix=no
13509
13510 case $GCC,$host_os in
13511 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13512 library_names_spec='$libname.dll.a'
13513 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13514 postinstall_cmds='base_file=`basename \${file}`~
13515 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13516 dldir=$destdir/`dirname \$dlpath`~
13517 test -d \$dldir || mkdir -p \$dldir~
13518 $install_prog $dir/$dlname \$dldir/$dlname~
13519 chmod a+x \$dldir/$dlname~
13520 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13521 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13522 fi'
13523 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13524 dlpath=$dir/\$dldll~
13525 $RM \$dlpath'
13526 shlibpath_overrides_runpath=yes
13527
13528 case $host_os in
13529 cygwin*)
13530 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13531 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000013532 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000013533 ;;
13534 mingw* | cegcc*)
13535 # MinGW DLLs use traditional 'lib' prefix
13536 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000013537 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13538 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13539 # It is most probably a Windows format PATH printed by
13540 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13541 # path with ; separators, and with drive letters. We can handle the
13542 # drive letters (cygwin fileutils understands them), so leave them,
13543 # especially as we might pass files found there to a mingw objdump,
13544 # which wouldn't understand a cygwinified path. Ahh.
13545 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13546 else
13547 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13548 fi
cristy3ed852e2009-09-05 21:47:34 +000013549 ;;
13550 pw32*)
13551 # pw32 DLLs use 'pw' prefix rather than 'lib'
13552 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13553 ;;
13554 esac
13555 ;;
13556
13557 *)
13558 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13559 ;;
13560 esac
13561 dynamic_linker='Win32 ld.exe'
13562 # FIXME: first we should search . and the directory the executable is in
13563 shlibpath_var=PATH
13564 ;;
13565
13566darwin* | rhapsody*)
13567 dynamic_linker="$host_os dyld"
13568 version_type=darwin
13569 need_lib_prefix=no
13570 need_version=no
13571 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13572 soname_spec='${libname}${release}${major}$shared_ext'
13573 shlibpath_overrides_runpath=yes
13574 shlibpath_var=DYLD_LIBRARY_PATH
13575 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13576
13577 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13578 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13579 ;;
13580
13581dgux*)
13582 version_type=linux
13583 need_lib_prefix=no
13584 need_version=no
13585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13586 soname_spec='${libname}${release}${shared_ext}$major'
13587 shlibpath_var=LD_LIBRARY_PATH
13588 ;;
13589
13590freebsd1*)
13591 dynamic_linker=no
13592 ;;
13593
13594freebsd* | dragonfly*)
13595 # DragonFly does not have aout. When/if they implement a new
13596 # versioning mechanism, adjust this.
13597 if test -x /usr/bin/objformat; then
13598 objformat=`/usr/bin/objformat`
13599 else
13600 case $host_os in
13601 freebsd[123]*) objformat=aout ;;
13602 *) objformat=elf ;;
13603 esac
13604 fi
13605 version_type=freebsd-$objformat
13606 case $version_type in
13607 freebsd-elf*)
13608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13609 need_version=no
13610 need_lib_prefix=no
13611 ;;
13612 freebsd-*)
13613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13614 need_version=yes
13615 ;;
13616 esac
13617 shlibpath_var=LD_LIBRARY_PATH
13618 case $host_os in
13619 freebsd2*)
13620 shlibpath_overrides_runpath=yes
13621 ;;
13622 freebsd3.[01]* | freebsdelf3.[01]*)
13623 shlibpath_overrides_runpath=yes
13624 hardcode_into_libs=yes
13625 ;;
13626 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13627 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13628 shlibpath_overrides_runpath=no
13629 hardcode_into_libs=yes
13630 ;;
13631 *) # from 4.6 on, and DragonFly
13632 shlibpath_overrides_runpath=yes
13633 hardcode_into_libs=yes
13634 ;;
13635 esac
13636 ;;
13637
13638gnu*)
13639 version_type=linux
13640 need_lib_prefix=no
13641 need_version=no
13642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13643 soname_spec='${libname}${release}${shared_ext}$major'
13644 shlibpath_var=LD_LIBRARY_PATH
13645 hardcode_into_libs=yes
13646 ;;
13647
13648hpux9* | hpux10* | hpux11*)
13649 # Give a soname corresponding to the major version so that dld.sl refuses to
13650 # link against other versions.
13651 version_type=sunos
13652 need_lib_prefix=no
13653 need_version=no
13654 case $host_cpu in
13655 ia64*)
13656 shrext_cmds='.so'
13657 hardcode_into_libs=yes
13658 dynamic_linker="$host_os dld.so"
13659 shlibpath_var=LD_LIBRARY_PATH
13660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662 soname_spec='${libname}${release}${shared_ext}$major'
13663 if test "X$HPUX_IA64_MODE" = X32; then
13664 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13665 else
13666 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13667 fi
13668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13669 ;;
13670 hppa*64*)
13671 shrext_cmds='.sl'
13672 hardcode_into_libs=yes
13673 dynamic_linker="$host_os dld.sl"
13674 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13677 soname_spec='${libname}${release}${shared_ext}$major'
13678 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13680 ;;
13681 *)
13682 shrext_cmds='.sl'
13683 dynamic_linker="$host_os dld.sl"
13684 shlibpath_var=SHLIB_PATH
13685 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
13689 esac
cristy18304f92009-11-22 15:48:26 +000013690 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000013691 postinstall_cmds='chmod 555 $lib'
13692 ;;
13693
13694interix[3-9]*)
13695 version_type=linux
13696 need_lib_prefix=no
13697 need_version=no
13698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13699 soname_spec='${libname}${release}${shared_ext}$major'
13700 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13701 shlibpath_var=LD_LIBRARY_PATH
13702 shlibpath_overrides_runpath=no
13703 hardcode_into_libs=yes
13704 ;;
13705
13706irix5* | irix6* | nonstopux*)
13707 case $host_os in
13708 nonstopux*) version_type=nonstopux ;;
13709 *)
13710 if test "$lt_cv_prog_gnu_ld" = yes; then
13711 version_type=linux
13712 else
13713 version_type=irix
13714 fi ;;
13715 esac
13716 need_lib_prefix=no
13717 need_version=no
13718 soname_spec='${libname}${release}${shared_ext}$major'
13719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13720 case $host_os in
13721 irix5* | nonstopux*)
13722 libsuff= shlibsuff=
13723 ;;
13724 *)
13725 case $LD in # libtool.m4 will add one of these switches to LD
13726 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13727 libsuff= shlibsuff= libmagic=32-bit;;
13728 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13729 libsuff=32 shlibsuff=N32 libmagic=N32;;
13730 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13731 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13732 *) libsuff= shlibsuff= libmagic=never-match;;
13733 esac
13734 ;;
13735 esac
13736 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13737 shlibpath_overrides_runpath=no
13738 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13739 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13740 hardcode_into_libs=yes
13741 ;;
13742
13743# No shared lib support for Linux oldld, aout, or coff.
13744linux*oldld* | linux*aout* | linux*coff*)
13745 dynamic_linker=no
13746 ;;
13747
13748# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000013749linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013750 version_type=linux
13751 need_lib_prefix=no
13752 need_version=no
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754 soname_spec='${libname}${release}${shared_ext}$major'
13755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13756 shlibpath_var=LD_LIBRARY_PATH
13757 shlibpath_overrides_runpath=no
13758 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000013759 save_LDFLAGS=$LDFLAGS
13760 save_libdir=$libdir
13761 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13762 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013764/* end confdefs.h. */
13765
13766int
13767main ()
13768{
13769
13770 ;
13771 return 0;
13772}
13773_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013774if ac_fn_c_try_link "$LINENO"; then :
13775 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000013776 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000013777fi
cristy3ed852e2009-09-05 21:47:34 +000013778fi
cristy8b350f62009-11-15 23:12:43 +000013779rm -f core conftest.err conftest.$ac_objext \
13780 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000013781 LDFLAGS=$save_LDFLAGS
13782 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000013783
13784 # This implies no fast_install, which is unacceptable.
13785 # Some rework will be needed to allow for fast_install
13786 # before this can be enabled.
13787 hardcode_into_libs=yes
13788
cristy679ed8e2009-12-05 02:37:41 +000013789 # Add ABI-specific directories to the system library path.
13790 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13791
cristy3ed852e2009-09-05 21:47:34 +000013792 # Append ld.so.conf contents to the search path
13793 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000013794 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 +000013795 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000013796 fi
13797
13798 # We used to test for /lib/ld.so.1 and disable shared libraries on
13799 # powerpc, because MkLinux only supported shared libraries with the
13800 # GNU dynamic linker. Since this was broken with cross compilers,
13801 # most powerpc-linux boxes support dynamic linking these days and
13802 # people can always --disable-shared, the test was removed, and we
13803 # assume the GNU/Linux dynamic linker is in use.
13804 dynamic_linker='GNU/Linux ld.so'
13805 ;;
13806
13807netbsd*)
13808 version_type=sunos
13809 need_lib_prefix=no
13810 need_version=no
13811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13814 dynamic_linker='NetBSD (a.out) ld.so'
13815 else
13816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13817 soname_spec='${libname}${release}${shared_ext}$major'
13818 dynamic_linker='NetBSD ld.elf_so'
13819 fi
13820 shlibpath_var=LD_LIBRARY_PATH
13821 shlibpath_overrides_runpath=yes
13822 hardcode_into_libs=yes
13823 ;;
13824
13825newsos6)
13826 version_type=linux
13827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13828 shlibpath_var=LD_LIBRARY_PATH
13829 shlibpath_overrides_runpath=yes
13830 ;;
13831
13832*nto* | *qnx*)
13833 version_type=qnx
13834 need_lib_prefix=no
13835 need_version=no
13836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13837 soname_spec='${libname}${release}${shared_ext}$major'
13838 shlibpath_var=LD_LIBRARY_PATH
13839 shlibpath_overrides_runpath=no
13840 hardcode_into_libs=yes
13841 dynamic_linker='ldqnx.so'
13842 ;;
13843
13844openbsd*)
13845 version_type=sunos
13846 sys_lib_dlsearch_path_spec="/usr/lib"
13847 need_lib_prefix=no
13848 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13849 case $host_os in
13850 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13851 *) need_version=no ;;
13852 esac
13853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13855 shlibpath_var=LD_LIBRARY_PATH
13856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13857 case $host_os in
13858 openbsd2.[89] | openbsd2.[89].*)
13859 shlibpath_overrides_runpath=no
13860 ;;
13861 *)
13862 shlibpath_overrides_runpath=yes
13863 ;;
13864 esac
13865 else
13866 shlibpath_overrides_runpath=yes
13867 fi
13868 ;;
13869
13870os2*)
13871 libname_spec='$name'
13872 shrext_cmds=".dll"
13873 need_lib_prefix=no
13874 library_names_spec='$libname${shared_ext} $libname.a'
13875 dynamic_linker='OS/2 ld.exe'
13876 shlibpath_var=LIBPATH
13877 ;;
13878
13879osf3* | osf4* | osf5*)
13880 version_type=osf
13881 need_lib_prefix=no
13882 need_version=no
13883 soname_spec='${libname}${release}${shared_ext}$major'
13884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13885 shlibpath_var=LD_LIBRARY_PATH
13886 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13887 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13888 ;;
13889
13890rdos*)
13891 dynamic_linker=no
13892 ;;
13893
13894solaris*)
13895 version_type=linux
13896 need_lib_prefix=no
13897 need_version=no
13898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13899 soname_spec='${libname}${release}${shared_ext}$major'
13900 shlibpath_var=LD_LIBRARY_PATH
13901 shlibpath_overrides_runpath=yes
13902 hardcode_into_libs=yes
13903 # ldd complains unless libraries are executable
13904 postinstall_cmds='chmod +x $lib'
13905 ;;
13906
13907sunos4*)
13908 version_type=sunos
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13910 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13911 shlibpath_var=LD_LIBRARY_PATH
13912 shlibpath_overrides_runpath=yes
13913 if test "$with_gnu_ld" = yes; then
13914 need_lib_prefix=no
13915 fi
13916 need_version=yes
13917 ;;
13918
13919sysv4 | sysv4.3*)
13920 version_type=linux
13921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13922 soname_spec='${libname}${release}${shared_ext}$major'
13923 shlibpath_var=LD_LIBRARY_PATH
13924 case $host_vendor in
13925 sni)
13926 shlibpath_overrides_runpath=no
13927 need_lib_prefix=no
13928 runpath_var=LD_RUN_PATH
13929 ;;
13930 siemens)
13931 need_lib_prefix=no
13932 ;;
13933 motorola)
13934 need_lib_prefix=no
13935 need_version=no
13936 shlibpath_overrides_runpath=no
13937 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13938 ;;
13939 esac
13940 ;;
13941
13942sysv4*MP*)
13943 if test -d /usr/nec ;then
13944 version_type=linux
13945 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13946 soname_spec='$libname${shared_ext}.$major'
13947 shlibpath_var=LD_LIBRARY_PATH
13948 fi
13949 ;;
13950
13951sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13952 version_type=freebsd-elf
13953 need_lib_prefix=no
13954 need_version=no
13955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13956 soname_spec='${libname}${release}${shared_ext}$major'
13957 shlibpath_var=LD_LIBRARY_PATH
13958 shlibpath_overrides_runpath=yes
13959 hardcode_into_libs=yes
13960 if test "$with_gnu_ld" = yes; then
13961 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13962 else
13963 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13964 case $host_os in
13965 sco3.2v5*)
13966 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13967 ;;
13968 esac
13969 fi
13970 sys_lib_dlsearch_path_spec='/usr/lib'
13971 ;;
13972
13973tpf*)
13974 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13975 version_type=linux
13976 need_lib_prefix=no
13977 need_version=no
13978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13979 shlibpath_var=LD_LIBRARY_PATH
13980 shlibpath_overrides_runpath=no
13981 hardcode_into_libs=yes
13982 ;;
13983
13984uts4*)
13985 version_type=linux
13986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13987 soname_spec='${libname}${release}${shared_ext}$major'
13988 shlibpath_var=LD_LIBRARY_PATH
13989 ;;
13990
13991*)
13992 dynamic_linker=no
13993 ;;
13994esac
cristy8b350f62009-11-15 23:12:43 +000013995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000013996$as_echo "$dynamic_linker" >&6; }
13997test "$dynamic_linker" = no && can_build_shared=no
13998
13999variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14000if test "$GCC" = yes; then
14001 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14002fi
14003
14004if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14005 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14006fi
14007if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14008 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14009fi
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
cristy8b350f62009-11-15 23:12:43 +000014097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014098$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14099hardcode_action=
14100if test -n "$hardcode_libdir_flag_spec" ||
14101 test -n "$runpath_var" ||
14102 test "X$hardcode_automatic" = "Xyes" ; then
14103
14104 # We can hardcode non-existent directories.
14105 if test "$hardcode_direct" != no &&
14106 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14107 # have to relink, otherwise we might link with an installed library
14108 # when we should be linking with a yet-to-be-installed one
14109 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14110 test "$hardcode_minus_L" != no; then
14111 # Linking always hardcodes the temporary library directory.
14112 hardcode_action=relink
14113 else
14114 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14115 hardcode_action=immediate
14116 fi
14117else
14118 # We cannot hardcode anything, or else we can only hardcode existing
14119 # directories.
14120 hardcode_action=unsupported
14121fi
cristy8b350f62009-11-15 23:12:43 +000014122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000014123$as_echo "$hardcode_action" >&6; }
14124
14125if test "$hardcode_action" = relink ||
14126 test "$inherit_rpath" = yes; then
14127 # Fast installation is not supported
14128 enable_fast_install=no
14129elif test "$shlibpath_overrides_runpath" = yes ||
14130 test "$enable_shared" = no; then
14131 # Fast installation is not necessary
14132 enable_fast_install=needless
14133fi
14134
14135
14136
14137
14138
14139
14140 if test "x$enable_dlopen" != xyes; then
14141 enable_dlopen=unknown
14142 enable_dlopen_self=unknown
14143 enable_dlopen_self_static=unknown
14144else
14145 lt_cv_dlopen=no
14146 lt_cv_dlopen_libs=
14147
14148 case $host_os in
14149 beos*)
14150 lt_cv_dlopen="load_add_on"
14151 lt_cv_dlopen_libs=
14152 lt_cv_dlopen_self=yes
14153 ;;
14154
14155 mingw* | pw32* | cegcc*)
14156 lt_cv_dlopen="LoadLibrary"
14157 lt_cv_dlopen_libs=
14158 ;;
14159
14160 cygwin*)
14161 lt_cv_dlopen="dlopen"
14162 lt_cv_dlopen_libs=
14163 ;;
14164
14165 darwin*)
14166 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000014167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014168$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014169if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014170 $as_echo_n "(cached) " >&6
14171else
14172 ac_check_lib_save_LIBS=$LIBS
14173LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014175/* end confdefs.h. */
14176
14177/* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14180#ifdef __cplusplus
14181extern "C"
14182#endif
14183char dlopen ();
14184int
14185main ()
14186{
14187return dlopen ();
14188 ;
14189 return 0;
14190}
14191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014192if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014193 ac_cv_lib_dl_dlopen=yes
14194else
cristy8b350f62009-11-15 23:12:43 +000014195 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014196fi
cristy8b350f62009-11-15 23:12:43 +000014197rm -f core conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014199LIBS=$ac_check_lib_save_LIBS
14200fi
cristy8b350f62009-11-15 23:12:43 +000014201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014202$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014203if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014204 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14205else
14206
14207 lt_cv_dlopen="dyld"
14208 lt_cv_dlopen_libs=
14209 lt_cv_dlopen_self=yes
14210
14211fi
14212
14213 ;;
14214
14215 *)
cristy8b350f62009-11-15 23:12:43 +000014216 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14217if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014218 lt_cv_dlopen="shl_load"
14219else
cristy8b350f62009-11-15 23:12:43 +000014220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014221$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014222if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014223 $as_echo_n "(cached) " >&6
14224else
14225 ac_check_lib_save_LIBS=$LIBS
14226LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014228/* end confdefs.h. */
14229
14230/* Override any GCC internal prototype to avoid an error.
14231 Use char because int might match the return type of a GCC
14232 builtin and then its argument prototype would still apply. */
14233#ifdef __cplusplus
14234extern "C"
14235#endif
14236char shl_load ();
14237int
14238main ()
14239{
14240return shl_load ();
14241 ;
14242 return 0;
14243}
14244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014245if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014246 ac_cv_lib_dld_shl_load=yes
14247else
cristy8b350f62009-11-15 23:12:43 +000014248 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000014249fi
cristy8b350f62009-11-15 23:12:43 +000014250rm -f core conftest.err conftest.$ac_objext \
14251 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014252LIBS=$ac_check_lib_save_LIBS
14253fi
cristy8b350f62009-11-15 23:12:43 +000014254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000014255$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014256if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014257 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14258else
cristy8b350f62009-11-15 23:12:43 +000014259 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14260if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014261 lt_cv_dlopen="dlopen"
14262else
cristy8b350f62009-11-15 23:12:43 +000014263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014264$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014265if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014266 $as_echo_n "(cached) " >&6
14267else
14268 ac_check_lib_save_LIBS=$LIBS
14269LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014271/* end confdefs.h. */
14272
14273/* Override any GCC internal prototype to avoid an error.
14274 Use char because int might match the return type of a GCC
14275 builtin and then its argument prototype would still apply. */
14276#ifdef __cplusplus
14277extern "C"
14278#endif
14279char dlopen ();
14280int
14281main ()
14282{
14283return dlopen ();
14284 ;
14285 return 0;
14286}
14287_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014288if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014289 ac_cv_lib_dl_dlopen=yes
14290else
cristy8b350f62009-11-15 23:12:43 +000014291 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014292fi
cristy8b350f62009-11-15 23:12:43 +000014293rm -f core conftest.err conftest.$ac_objext \
14294 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014295LIBS=$ac_check_lib_save_LIBS
14296fi
cristy8b350f62009-11-15 23:12:43 +000014297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014298$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014299if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14301else
cristy8b350f62009-11-15 23:12:43 +000014302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014303$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014304if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014305 $as_echo_n "(cached) " >&6
14306else
14307 ac_check_lib_save_LIBS=$LIBS
14308LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014310/* end confdefs.h. */
14311
14312/* Override any GCC internal prototype to avoid an error.
14313 Use char because int might match the return type of a GCC
14314 builtin and then its argument prototype would still apply. */
14315#ifdef __cplusplus
14316extern "C"
14317#endif
14318char dlopen ();
14319int
14320main ()
14321{
14322return dlopen ();
14323 ;
14324 return 0;
14325}
14326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014327if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014328 ac_cv_lib_svld_dlopen=yes
14329else
cristy8b350f62009-11-15 23:12:43 +000014330 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014331fi
cristy8b350f62009-11-15 23:12:43 +000014332rm -f core conftest.err conftest.$ac_objext \
14333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014334LIBS=$ac_check_lib_save_LIBS
14335fi
cristy8b350f62009-11-15 23:12:43 +000014336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014337$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014338if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014339 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14340else
cristy8b350f62009-11-15 23:12:43 +000014341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014342$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014343if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014344 $as_echo_n "(cached) " >&6
14345else
14346 ac_check_lib_save_LIBS=$LIBS
14347LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014349/* end confdefs.h. */
14350
14351/* Override any GCC internal prototype to avoid an error.
14352 Use char because int might match the return type of a GCC
14353 builtin and then its argument prototype would still apply. */
14354#ifdef __cplusplus
14355extern "C"
14356#endif
14357char dld_link ();
14358int
14359main ()
14360{
14361return dld_link ();
14362 ;
14363 return 0;
14364}
14365_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014366if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014367 ac_cv_lib_dld_dld_link=yes
14368else
cristy8b350f62009-11-15 23:12:43 +000014369 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000014370fi
cristy8b350f62009-11-15 23:12:43 +000014371rm -f core conftest.err conftest.$ac_objext \
14372 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014373LIBS=$ac_check_lib_save_LIBS
14374fi
cristy8b350f62009-11-15 23:12:43 +000014375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000014376$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014377if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014378 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14379fi
14380
14381
14382fi
14383
14384
14385fi
14386
14387
14388fi
14389
14390
14391fi
14392
14393
14394fi
14395
14396 ;;
14397 esac
14398
14399 if test "x$lt_cv_dlopen" != xno; then
14400 enable_dlopen=yes
14401 else
14402 enable_dlopen=no
14403 fi
14404
14405 case $lt_cv_dlopen in
14406 dlopen)
14407 save_CPPFLAGS="$CPPFLAGS"
14408 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14409
14410 save_LDFLAGS="$LDFLAGS"
14411 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14412
14413 save_LIBS="$LIBS"
14414 LIBS="$lt_cv_dlopen_libs $LIBS"
14415
cristy8b350f62009-11-15 23:12:43 +000014416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014417$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014418if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014419 $as_echo_n "(cached) " >&6
14420else
14421 if test "$cross_compiling" = yes; then :
14422 lt_cv_dlopen_self=cross
14423else
14424 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14425 lt_status=$lt_dlunknown
14426 cat > conftest.$ac_ext <<_LT_EOF
cristy9c562ad2009-12-28 02:17:04 +000014427#line 14427 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014428#include "confdefs.h"
14429
14430#if HAVE_DLFCN_H
14431#include <dlfcn.h>
14432#endif
14433
14434#include <stdio.h>
14435
14436#ifdef RTLD_GLOBAL
14437# define LT_DLGLOBAL RTLD_GLOBAL
14438#else
14439# ifdef DL_GLOBAL
14440# define LT_DLGLOBAL DL_GLOBAL
14441# else
14442# define LT_DLGLOBAL 0
14443# endif
14444#endif
14445
14446/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14447 find out it does not work in some platform. */
14448#ifndef LT_DLLAZY_OR_NOW
14449# ifdef RTLD_LAZY
14450# define LT_DLLAZY_OR_NOW RTLD_LAZY
14451# else
14452# ifdef DL_LAZY
14453# define LT_DLLAZY_OR_NOW DL_LAZY
14454# else
14455# ifdef RTLD_NOW
14456# define LT_DLLAZY_OR_NOW RTLD_NOW
14457# else
14458# ifdef DL_NOW
14459# define LT_DLLAZY_OR_NOW DL_NOW
14460# else
14461# define LT_DLLAZY_OR_NOW 0
14462# endif
14463# endif
14464# endif
14465# endif
14466#endif
14467
cristy18304f92009-11-22 15:48:26 +000014468void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000014469int main ()
14470{
14471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14472 int status = $lt_dlunknown;
14473
14474 if (self)
14475 {
14476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000014477 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000014478 /* dlclose (self); */
14479 }
14480 else
14481 puts (dlerror ());
14482
14483 return status;
14484}
14485_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014487 (eval $ac_link) 2>&5
14488 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14490 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014491 (./conftest; exit; ) >&5 2>/dev/null
14492 lt_status=$?
14493 case x$lt_status in
14494 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14495 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14496 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14497 esac
14498 else :
14499 # compilation failed
14500 lt_cv_dlopen_self=no
14501 fi
14502fi
14503rm -fr conftest*
14504
14505
14506fi
cristy8b350f62009-11-15 23:12:43 +000014507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000014508$as_echo "$lt_cv_dlopen_self" >&6; }
14509
14510 if test "x$lt_cv_dlopen_self" = xyes; then
14511 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000014512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014513$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014514if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014515 $as_echo_n "(cached) " >&6
14516else
14517 if test "$cross_compiling" = yes; then :
14518 lt_cv_dlopen_self_static=cross
14519else
14520 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14521 lt_status=$lt_dlunknown
14522 cat > conftest.$ac_ext <<_LT_EOF
cristy9c562ad2009-12-28 02:17:04 +000014523#line 14523 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014524#include "confdefs.h"
14525
14526#if HAVE_DLFCN_H
14527#include <dlfcn.h>
14528#endif
14529
14530#include <stdio.h>
14531
14532#ifdef RTLD_GLOBAL
14533# define LT_DLGLOBAL RTLD_GLOBAL
14534#else
14535# ifdef DL_GLOBAL
14536# define LT_DLGLOBAL DL_GLOBAL
14537# else
14538# define LT_DLGLOBAL 0
14539# endif
14540#endif
14541
14542/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14543 find out it does not work in some platform. */
14544#ifndef LT_DLLAZY_OR_NOW
14545# ifdef RTLD_LAZY
14546# define LT_DLLAZY_OR_NOW RTLD_LAZY
14547# else
14548# ifdef DL_LAZY
14549# define LT_DLLAZY_OR_NOW DL_LAZY
14550# else
14551# ifdef RTLD_NOW
14552# define LT_DLLAZY_OR_NOW RTLD_NOW
14553# else
14554# ifdef DL_NOW
14555# define LT_DLLAZY_OR_NOW DL_NOW
14556# else
14557# define LT_DLLAZY_OR_NOW 0
14558# endif
14559# endif
14560# endif
14561# endif
14562#endif
14563
cristy18304f92009-11-22 15:48:26 +000014564void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000014565int main ()
14566{
14567 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14568 int status = $lt_dlunknown;
14569
14570 if (self)
14571 {
14572 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000014573 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000014574 /* dlclose (self); */
14575 }
14576 else
14577 puts (dlerror ());
14578
14579 return status;
14580}
14581_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014583 (eval $ac_link) 2>&5
14584 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14586 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014587 (./conftest; exit; ) >&5 2>/dev/null
14588 lt_status=$?
14589 case x$lt_status in
14590 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14591 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14592 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14593 esac
14594 else :
14595 # compilation failed
14596 lt_cv_dlopen_self_static=no
14597 fi
14598fi
14599rm -fr conftest*
14600
14601
14602fi
cristy8b350f62009-11-15 23:12:43 +000014603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014604$as_echo "$lt_cv_dlopen_self_static" >&6; }
14605 fi
14606
14607 CPPFLAGS="$save_CPPFLAGS"
14608 LDFLAGS="$save_LDFLAGS"
14609 LIBS="$save_LIBS"
14610 ;;
14611 esac
14612
14613 case $lt_cv_dlopen_self in
14614 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14615 *) enable_dlopen_self=unknown ;;
14616 esac
14617
14618 case $lt_cv_dlopen_self_static in
14619 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14620 *) enable_dlopen_self_static=unknown ;;
14621 esac
14622fi
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640striplib=
14641old_striplib=
cristy8b350f62009-11-15 23:12:43 +000014642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000014643$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14644if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14645 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14646 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000014647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014648$as_echo "yes" >&6; }
14649else
14650# FIXME - insert some real tests, host_os isn't really good enough
14651 case $host_os in
14652 darwin*)
14653 if test -n "$STRIP" ; then
14654 striplib="$STRIP -x"
14655 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000014656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014657$as_echo "yes" >&6; }
14658 else
cristy8b350f62009-11-15 23:12:43 +000014659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014660$as_echo "no" >&6; }
14661 fi
14662 ;;
14663 *)
cristy8b350f62009-11-15 23:12:43 +000014664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014665$as_echo "no" >&6; }
14666 ;;
14667 esac
14668fi
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000014682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014683$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014685$as_echo "$can_build_shared" >&6; }
14686
cristy8b350f62009-11-15 23:12:43 +000014687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014688$as_echo_n "checking whether to build shared libraries... " >&6; }
14689 test "$can_build_shared" = "no" && enable_shared=no
14690
14691 # On AIX, shared libraries and static libraries use the same namespace, and
14692 # are all built from PIC.
14693 case $host_os in
14694 aix3*)
14695 test "$enable_shared" = yes && enable_static=no
14696 if test -n "$RANLIB"; then
14697 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14698 postinstall_cmds='$RANLIB $lib'
14699 fi
14700 ;;
14701
14702 aix[4-9]*)
14703 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14704 test "$enable_shared" = yes && enable_static=no
14705 fi
14706 ;;
14707 esac
cristy8b350f62009-11-15 23:12:43 +000014708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014709$as_echo "$enable_shared" >&6; }
14710
cristy8b350f62009-11-15 23:12:43 +000014711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014712$as_echo_n "checking whether to build static libraries... " >&6; }
14713 # Make sure either enable_shared or enable_static is yes.
14714 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000014715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014716$as_echo "$enable_static" >&6; }
14717
14718
14719
14720
14721fi
14722ac_ext=c
14723ac_cpp='$CPP $CPPFLAGS'
14724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14726ac_compiler_gnu=$ac_cv_c_compiler_gnu
14727
14728CC="$lt_save_CC"
14729
14730
14731ac_ext=cpp
14732ac_cpp='$CXXCPP $CPPFLAGS'
14733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14736
14737archive_cmds_need_lc_CXX=no
14738allow_undefined_flag_CXX=
14739always_export_symbols_CXX=no
14740archive_expsym_cmds_CXX=
14741compiler_needs_object_CXX=no
14742export_dynamic_flag_spec_CXX=
14743hardcode_direct_CXX=no
14744hardcode_direct_absolute_CXX=no
14745hardcode_libdir_flag_spec_CXX=
14746hardcode_libdir_flag_spec_ld_CXX=
14747hardcode_libdir_separator_CXX=
14748hardcode_minus_L_CXX=no
14749hardcode_shlibpath_var_CXX=unsupported
14750hardcode_automatic_CXX=no
14751inherit_rpath_CXX=no
14752module_cmds_CXX=
14753module_expsym_cmds_CXX=
14754link_all_deplibs_CXX=unknown
14755old_archive_cmds_CXX=$old_archive_cmds
14756no_undefined_flag_CXX=
14757whole_archive_flag_spec_CXX=
14758enable_shared_with_static_runtimes_CXX=no
14759
14760# Source file extension for C++ test sources.
14761ac_ext=cpp
14762
14763# Object file extension for compiled C++ test sources.
14764objext=o
14765objext_CXX=$objext
14766
14767# No sense in running all these tests if we already determined that
14768# the CXX compiler isn't working. Some variables (like enable_shared)
14769# are currently assumed to apply to all compilers on this platform,
14770# and will be corrupted by setting them based on a non-working compiler.
14771if test "$_lt_caught_CXX_error" != yes; then
14772 # Code to be used in simple compile tests
14773 lt_simple_compile_test_code="int some_variable = 0;"
14774
14775 # Code to be used in simple link tests
14776 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14777
14778 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14779
14780
14781
14782
14783
14784
14785# If no C compiler was specified, use CC.
14786LTCC=${LTCC-"$CC"}
14787
14788# If no C compiler flags were specified, use CFLAGS.
14789LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14790
14791# Allow CC to be a program name with arguments.
14792compiler=$CC
14793
14794
14795 # save warnings/boilerplate of simple test code
14796 ac_outfile=conftest.$ac_objext
14797echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14798eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14799_lt_compiler_boilerplate=`cat conftest.err`
14800$RM conftest*
14801
14802 ac_outfile=conftest.$ac_objext
14803echo "$lt_simple_link_test_code" >conftest.$ac_ext
14804eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14805_lt_linker_boilerplate=`cat conftest.err`
14806$RM -r conftest*
14807
14808
14809 # Allow CC to be a program name with arguments.
14810 lt_save_CC=$CC
14811 lt_save_LD=$LD
14812 lt_save_GCC=$GCC
14813 GCC=$GXX
14814 lt_save_with_gnu_ld=$with_gnu_ld
14815 lt_save_path_LD=$lt_cv_path_LD
14816 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14817 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14818 else
14819 $as_unset lt_cv_prog_gnu_ld
14820 fi
14821 if test -n "${lt_cv_path_LDCXX+set}"; then
14822 lt_cv_path_LD=$lt_cv_path_LDCXX
14823 else
14824 $as_unset lt_cv_path_LD
14825 fi
14826 test -z "${LDCXX+set}" || LD=$LDCXX
14827 CC=${CXX-"c++"}
14828 compiler=$CC
14829 compiler_CXX=$CC
14830 for cc_temp in $compiler""; do
14831 case $cc_temp in
14832 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14833 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14834 \-*) ;;
14835 *) break;;
14836 esac
14837done
cristy18304f92009-11-22 15:48:26 +000014838cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000014839
14840
14841 if test -n "$compiler"; then
14842 # We don't want -fno-exception when compiling C++ code, so set the
14843 # no_builtin_flag separately
14844 if test "$GXX" = yes; then
14845 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14846 else
14847 lt_prog_compiler_no_builtin_flag_CXX=
14848 fi
14849
14850 if test "$GXX" = yes; then
14851 # Set up default GNU C++ configuration
14852
14853
14854
14855# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000014856if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014857 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14858else
14859 with_gnu_ld=no
14860fi
14861
14862ac_prog=ld
14863if test "$GCC" = yes; then
14864 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000014865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000014866$as_echo_n "checking for ld used by $CC... " >&6; }
14867 case $host in
14868 *-*-mingw*)
14869 # gcc leaves a trailing carriage return which upsets mingw
14870 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14871 *)
14872 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14873 esac
14874 case $ac_prog in
14875 # Accept absolute paths.
14876 [\\/]* | ?:[\\/]*)
14877 re_direlt='/[^/][^/]*/\.\./'
14878 # Canonicalize the pathname of ld
14879 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14880 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14881 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14882 done
14883 test -z "$LD" && LD="$ac_prog"
14884 ;;
14885 "")
14886 # If it fails, then pretend we aren't using GCC.
14887 ac_prog=ld
14888 ;;
14889 *)
14890 # If it is relative, then search for the first ld in PATH.
14891 with_gnu_ld=unknown
14892 ;;
14893 esac
14894elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000014895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014896$as_echo_n "checking for GNU ld... " >&6; }
14897else
cristy8b350f62009-11-15 23:12:43 +000014898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014899$as_echo_n "checking for non-GNU ld... " >&6; }
14900fi
cristy8b350f62009-11-15 23:12:43 +000014901if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014902 $as_echo_n "(cached) " >&6
14903else
14904 if test -z "$LD"; then
14905 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14906 for ac_dir in $PATH; do
14907 IFS="$lt_save_ifs"
14908 test -z "$ac_dir" && ac_dir=.
14909 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14910 lt_cv_path_LD="$ac_dir/$ac_prog"
14911 # Check to see if the program is GNU ld. I'd rather use --version,
14912 # but apparently some variants of GNU ld only accept -v.
14913 # Break only if it was the GNU/non-GNU ld that we prefer.
14914 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14915 *GNU* | *'with BFD'*)
14916 test "$with_gnu_ld" != no && break
14917 ;;
14918 *)
14919 test "$with_gnu_ld" != yes && break
14920 ;;
14921 esac
14922 fi
14923 done
14924 IFS="$lt_save_ifs"
14925else
14926 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14927fi
14928fi
14929
14930LD="$lt_cv_path_LD"
14931if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000014932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000014933$as_echo "$LD" >&6; }
14934else
cristy8b350f62009-11-15 23:12:43 +000014935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014936$as_echo "no" >&6; }
14937fi
cristy8b350f62009-11-15 23:12:43 +000014938test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014940$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014941if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014942 $as_echo_n "(cached) " >&6
14943else
14944 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14945case `$LD -v 2>&1 </dev/null` in
14946*GNU* | *'with BFD'*)
14947 lt_cv_prog_gnu_ld=yes
14948 ;;
14949*)
14950 lt_cv_prog_gnu_ld=no
14951 ;;
14952esac
14953fi
cristy8b350f62009-11-15 23:12:43 +000014954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014955$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14956with_gnu_ld=$lt_cv_prog_gnu_ld
14957
14958
14959
14960
14961
14962
14963
14964 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14965 # archiving commands below assume that GNU ld is being used.
14966 if test "$with_gnu_ld" = yes; then
14967 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14968 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'
14969
14970 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14971 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14972
14973 # If archive_cmds runs LD, not CC, wlarc should be empty
14974 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14975 # investigate it a little bit more. (MM)
14976 wlarc='${wl}'
14977
14978 # ancient GNU ld didn't support --whole-archive et. al.
14979 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14980 $GREP 'no-whole-archive' > /dev/null; then
14981 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14982 else
14983 whole_archive_flag_spec_CXX=
14984 fi
14985 else
14986 with_gnu_ld=no
14987 wlarc=
14988
14989 # A generic and very simple default shared library creation
14990 # command for GNU C++ for the case where it uses the native
14991 # linker, instead of GNU ld. If possible, this setting should
14992 # overridden to take advantage of the native linker features on
14993 # the platform it is being used on.
14994 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14995 fi
14996
14997 # Commands to make compiler produce verbose output that lists
14998 # what "hidden" libraries, object files and flags are used when
14999 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015000 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015001
15002 else
15003 GXX=no
15004 with_gnu_ld=no
15005 wlarc=
15006 fi
15007
15008 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000015009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015010$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15011 ld_shlibs_CXX=yes
15012 case $host_os in
15013 aix3*)
15014 # FIXME: insert proper C++ library support
15015 ld_shlibs_CXX=no
15016 ;;
15017 aix[4-9]*)
15018 if test "$host_cpu" = ia64; then
15019 # On IA64, the linker does run time linking by default, so we don't
15020 # have to do anything special.
15021 aix_use_runtimelinking=no
15022 exp_sym_flag='-Bexport'
15023 no_entry_flag=""
15024 else
15025 aix_use_runtimelinking=no
15026
15027 # Test if we are trying to use run time linking or normal
15028 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15029 # need to do runtime linking.
15030 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15031 for ld_flag in $LDFLAGS; do
15032 case $ld_flag in
15033 *-brtl*)
15034 aix_use_runtimelinking=yes
15035 break
15036 ;;
15037 esac
15038 done
15039 ;;
15040 esac
15041
15042 exp_sym_flag='-bexport'
15043 no_entry_flag='-bnoentry'
15044 fi
15045
15046 # When large executables or shared objects are built, AIX ld can
15047 # have problems creating the table of contents. If linking a library
15048 # or program results in "error TOC overflow" add -mminimal-toc to
15049 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15050 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15051
15052 archive_cmds_CXX=''
15053 hardcode_direct_CXX=yes
15054 hardcode_direct_absolute_CXX=yes
15055 hardcode_libdir_separator_CXX=':'
15056 link_all_deplibs_CXX=yes
15057 file_list_spec_CXX='${wl}-f,'
15058
15059 if test "$GXX" = yes; then
15060 case $host_os in aix4.[012]|aix4.[012].*)
15061 # We only want to do this on AIX 4.2 and lower, the check
15062 # below for broken collect2 doesn't work under 4.3+
15063 collect2name=`${CC} -print-prog-name=collect2`
15064 if test -f "$collect2name" &&
15065 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15066 then
15067 # We have reworked collect2
15068 :
15069 else
15070 # We have old collect2
15071 hardcode_direct_CXX=unsupported
15072 # It fails to find uninstalled libraries when the uninstalled
15073 # path is not listed in the libpath. Setting hardcode_minus_L
15074 # to unsupported forces relinking
15075 hardcode_minus_L_CXX=yes
15076 hardcode_libdir_flag_spec_CXX='-L$libdir'
15077 hardcode_libdir_separator_CXX=
15078 fi
15079 esac
15080 shared_flag='-shared'
15081 if test "$aix_use_runtimelinking" = yes; then
15082 shared_flag="$shared_flag "'${wl}-G'
15083 fi
15084 else
15085 # not using gcc
15086 if test "$host_cpu" = ia64; then
15087 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15088 # chokes on -Wl,-G. The following line is correct:
15089 shared_flag='-G'
15090 else
15091 if test "$aix_use_runtimelinking" = yes; then
15092 shared_flag='${wl}-G'
15093 else
15094 shared_flag='${wl}-bM:SRE'
15095 fi
15096 fi
15097 fi
15098
15099 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15100 # It seems that -bexpall does not export symbols beginning with
15101 # underscore (_), so it is better to generate a list of symbols to
15102 # export.
15103 always_export_symbols_CXX=yes
15104 if test "$aix_use_runtimelinking" = yes; then
15105 # Warning - without using the other runtime loading flags (-brtl),
15106 # -berok will link without error, but may produce a broken library.
15107 allow_undefined_flag_CXX='-berok'
15108 # Determine the default libpath from the value encoded in an empty
15109 # executable.
cristy8b350f62009-11-15 23:12:43 +000015110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015111/* end confdefs.h. */
15112
15113int
15114main ()
15115{
15116
15117 ;
15118 return 0;
15119}
15120_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015121if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015122
15123lt_aix_libpath_sed='
15124 /Import File Strings/,/^$/ {
15125 /^0/ {
15126 s/^0 *\(.*\)$/\1/
15127 p
15128 }
15129 }'
15130aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15131# Check for a 64-bit object if we didn't find anything.
15132if test -z "$aix_libpath"; then
15133 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15134fi
cristy3ed852e2009-09-05 21:47:34 +000015135fi
cristy8b350f62009-11-15 23:12:43 +000015136rm -f core conftest.err conftest.$ac_objext \
15137 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015138if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15139
15140 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15141
cristy18304f92009-11-22 15:48:26 +000015142 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 +000015143 else
15144 if test "$host_cpu" = ia64; then
15145 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15146 allow_undefined_flag_CXX="-z nodefs"
15147 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"
15148 else
15149 # Determine the default libpath from the value encoded in an
15150 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000015151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015152/* end confdefs.h. */
15153
15154int
15155main ()
15156{
15157
15158 ;
15159 return 0;
15160}
15161_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015162if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015163
15164lt_aix_libpath_sed='
15165 /Import File Strings/,/^$/ {
15166 /^0/ {
15167 s/^0 *\(.*\)$/\1/
15168 p
15169 }
15170 }'
15171aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15172# Check for a 64-bit object if we didn't find anything.
15173if test -z "$aix_libpath"; then
15174 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15175fi
cristy3ed852e2009-09-05 21:47:34 +000015176fi
cristy8b350f62009-11-15 23:12:43 +000015177rm -f core conftest.err conftest.$ac_objext \
15178 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015179if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15180
15181 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15182 # Warning - without using the other run time loading flags,
15183 # -berok will link without error, but may produce a broken library.
15184 no_undefined_flag_CXX=' ${wl}-bernotok'
15185 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000015186 # Exported symbols can be pulled into shared objects from archives
15187 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000015188 archive_cmds_need_lc_CXX=yes
15189 # This is similar to how AIX traditionally builds its shared
15190 # libraries.
15191 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'
15192 fi
15193 fi
15194 ;;
15195
15196 beos*)
15197 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15198 allow_undefined_flag_CXX=unsupported
15199 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15200 # support --undefined. This deserves some investigation. FIXME
15201 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15202 else
15203 ld_shlibs_CXX=no
15204 fi
15205 ;;
15206
15207 chorus*)
15208 case $cc_basename in
15209 *)
15210 # FIXME: insert proper C++ library support
15211 ld_shlibs_CXX=no
15212 ;;
15213 esac
15214 ;;
15215
15216 cygwin* | mingw* | pw32* | cegcc*)
15217 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15218 # as there is no search path for DLLs.
15219 hardcode_libdir_flag_spec_CXX='-L$libdir'
15220 allow_undefined_flag_CXX=unsupported
15221 always_export_symbols_CXX=no
15222 enable_shared_with_static_runtimes_CXX=yes
15223
15224 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15225 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'
15226 # If the export-symbols file already is a .def file (1st line
15227 # is EXPORTS), use it as is; otherwise, prepend...
15228 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15229 cp $export_symbols $output_objdir/$soname.def;
15230 else
15231 echo EXPORTS > $output_objdir/$soname.def;
15232 cat $export_symbols >> $output_objdir/$soname.def;
15233 fi~
15234 $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'
15235 else
15236 ld_shlibs_CXX=no
15237 fi
15238 ;;
15239 darwin* | rhapsody*)
15240
15241
15242 archive_cmds_need_lc_CXX=no
15243 hardcode_direct_CXX=no
15244 hardcode_automatic_CXX=yes
15245 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000015246 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000015247 link_all_deplibs_CXX=yes
15248 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15249 case $cc_basename in
15250 ifort*) _lt_dar_can_shared=yes ;;
15251 *) _lt_dar_can_shared=$GCC ;;
15252 esac
15253 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000015254 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015255 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}"
15256 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15257 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}"
15258 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}"
15259 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15260 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}"
15261 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}"
15262 fi
15263
15264 else
15265 ld_shlibs_CXX=no
15266 fi
15267
15268 ;;
15269
15270 dgux*)
15271 case $cc_basename in
15272 ec++*)
15273 # FIXME: insert proper C++ library support
15274 ld_shlibs_CXX=no
15275 ;;
15276 ghcx*)
15277 # Green Hills C++ Compiler
15278 # FIXME: insert proper C++ library support
15279 ld_shlibs_CXX=no
15280 ;;
15281 *)
15282 # FIXME: insert proper C++ library support
15283 ld_shlibs_CXX=no
15284 ;;
15285 esac
15286 ;;
15287
15288 freebsd[12]*)
15289 # C++ shared libraries reported to be fairly broken before
15290 # switch to ELF
15291 ld_shlibs_CXX=no
15292 ;;
15293
15294 freebsd-elf*)
15295 archive_cmds_need_lc_CXX=no
15296 ;;
15297
15298 freebsd* | dragonfly*)
15299 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15300 # conventions
15301 ld_shlibs_CXX=yes
15302 ;;
15303
15304 gnu*)
15305 ;;
15306
15307 hpux9*)
15308 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15309 hardcode_libdir_separator_CXX=:
15310 export_dynamic_flag_spec_CXX='${wl}-E'
15311 hardcode_direct_CXX=yes
15312 hardcode_minus_L_CXX=yes # Not in the search PATH,
15313 # but as the default
15314 # location of the library.
15315
15316 case $cc_basename in
15317 CC*)
15318 # FIXME: insert proper C++ library support
15319 ld_shlibs_CXX=no
15320 ;;
15321 aCC*)
15322 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'
15323 # Commands to make compiler produce verbose output that lists
15324 # what "hidden" libraries, object files and flags are used when
15325 # linking a shared library.
15326 #
15327 # There doesn't appear to be a way to prevent this compiler from
15328 # explicitly linking system object files so we need to strip them
15329 # from the output so that they don't get included in the library
15330 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015331 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 +000015332 ;;
15333 *)
15334 if test "$GXX" = yes; then
15335 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'
15336 else
15337 # FIXME: insert proper C++ library support
15338 ld_shlibs_CXX=no
15339 fi
15340 ;;
15341 esac
15342 ;;
15343
15344 hpux10*|hpux11*)
15345 if test $with_gnu_ld = no; then
15346 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15347 hardcode_libdir_separator_CXX=:
15348
15349 case $host_cpu in
15350 hppa*64*|ia64*)
15351 ;;
15352 *)
15353 export_dynamic_flag_spec_CXX='${wl}-E'
15354 ;;
15355 esac
15356 fi
15357 case $host_cpu in
15358 hppa*64*|ia64*)
15359 hardcode_direct_CXX=no
15360 hardcode_shlibpath_var_CXX=no
15361 ;;
15362 *)
15363 hardcode_direct_CXX=yes
15364 hardcode_direct_absolute_CXX=yes
15365 hardcode_minus_L_CXX=yes # Not in the search PATH,
15366 # but as the default
15367 # location of the library.
15368 ;;
15369 esac
15370
15371 case $cc_basename in
15372 CC*)
15373 # FIXME: insert proper C++ library support
15374 ld_shlibs_CXX=no
15375 ;;
15376 aCC*)
15377 case $host_cpu in
15378 hppa*64*)
15379 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15380 ;;
15381 ia64*)
15382 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15383 ;;
15384 *)
15385 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15386 ;;
15387 esac
15388 # Commands to make compiler produce verbose output that lists
15389 # what "hidden" libraries, object files and flags are used when
15390 # linking a shared library.
15391 #
15392 # There doesn't appear to be a way to prevent this compiler from
15393 # explicitly linking system object files so we need to strip them
15394 # from the output so that they don't get included in the library
15395 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015396 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 +000015397 ;;
15398 *)
15399 if test "$GXX" = yes; then
15400 if test $with_gnu_ld = no; then
15401 case $host_cpu in
15402 hppa*64*)
15403 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15404 ;;
15405 ia64*)
15406 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15407 ;;
15408 *)
15409 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'
15410 ;;
15411 esac
15412 fi
15413 else
15414 # FIXME: insert proper C++ library support
15415 ld_shlibs_CXX=no
15416 fi
15417 ;;
15418 esac
15419 ;;
15420
15421 interix[3-9]*)
15422 hardcode_direct_CXX=no
15423 hardcode_shlibpath_var_CXX=no
15424 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15425 export_dynamic_flag_spec_CXX='${wl}-E'
15426 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15427 # Instead, shared libraries are loaded at an image base (0x10000000 by
15428 # default) and relocated if they conflict, which is a slow very memory
15429 # consuming and fragmenting process. To avoid this, we pick a random,
15430 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15431 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15432 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'
15433 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'
15434 ;;
15435 irix5* | irix6*)
15436 case $cc_basename in
15437 CC*)
15438 # SGI C++
cristy18304f92009-11-22 15:48:26 +000015439 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 +000015440
15441 # Archives containing C++ object files must be created using
15442 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15443 # necessary to make sure instantiated templates are included
15444 # in the archive.
15445 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15446 ;;
15447 *)
15448 if test "$GXX" = yes; then
15449 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000015450 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000015451 else
cristy18304f92009-11-22 15:48:26 +000015452 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 +000015453 fi
15454 fi
15455 link_all_deplibs_CXX=yes
15456 ;;
15457 esac
15458 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15459 hardcode_libdir_separator_CXX=:
15460 inherit_rpath_CXX=yes
15461 ;;
15462
cristy18304f92009-11-22 15:48:26 +000015463 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015464 case $cc_basename in
15465 KCC*)
15466 # Kuck and Associates, Inc. (KAI) C++ Compiler
15467
15468 # KCC will only create a shared library if the output file
15469 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15470 # to its proper name (with version) after linking.
15471 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'
15472 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'
15473 # Commands to make compiler produce verbose output that lists
15474 # what "hidden" libraries, object files and flags are used when
15475 # linking a shared library.
15476 #
15477 # There doesn't appear to be a way to prevent this compiler from
15478 # explicitly linking system object files so we need to strip them
15479 # from the output so that they don't get included in the library
15480 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015481 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 +000015482
15483 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15484 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15485
15486 # Archives containing C++ object files must be created using
15487 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15488 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15489 ;;
15490 icpc* | ecpc* )
15491 # Intel C++
15492 with_gnu_ld=yes
15493 # version 8.0 and above of icpc choke on multiply defined symbols
15494 # if we add $predep_objects and $postdep_objects, however 7.1 and
15495 # earlier do not add the objects themselves.
15496 case `$CC -V 2>&1` in
15497 *"Version 7."*)
15498 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15499 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'
15500 ;;
15501 *) # Version 8.0 or newer
15502 tmp_idyn=
15503 case $host_cpu in
15504 ia64*) tmp_idyn=' -i_dynamic';;
15505 esac
15506 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15507 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'
15508 ;;
15509 esac
15510 archive_cmds_need_lc_CXX=no
15511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15512 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15513 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15514 ;;
15515 pgCC* | pgcpp*)
15516 # Portland Group C++ compiler
15517 case `$CC -V` in
15518 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15519 prelink_cmds_CXX='tpldir=Template.dir~
15520 rm -rf $tpldir~
15521 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15522 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15523 old_archive_cmds_CXX='tpldir=Template.dir~
15524 rm -rf $tpldir~
15525 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15526 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15527 $RANLIB $oldlib'
15528 archive_cmds_CXX='tpldir=Template.dir~
15529 rm -rf $tpldir~
15530 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15531 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15532 archive_expsym_cmds_CXX='tpldir=Template.dir~
15533 rm -rf $tpldir~
15534 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15535 $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'
15536 ;;
15537 *) # Version 6 will use weak symbols
15538 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15539 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'
15540 ;;
15541 esac
15542
15543 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15544 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000015545 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 +000015546 ;;
15547 cxx*)
15548 # Compaq C++
15549 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15550 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'
15551
15552 runpath_var=LD_RUN_PATH
15553 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15554 hardcode_libdir_separator_CXX=:
15555
15556 # Commands to make compiler produce verbose output that lists
15557 # what "hidden" libraries, object files and flags are used when
15558 # linking a shared library.
15559 #
15560 # There doesn't appear to be a way to prevent this compiler from
15561 # explicitly linking system object files so we need to strip them
15562 # from the output so that they don't get included in the library
15563 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015564 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 +000015565 ;;
cristy18304f92009-11-22 15:48:26 +000015566 xl*)
cristy3ed852e2009-09-05 21:47:34 +000015567 # IBM XL 8.0 on PPC, with GNU ld
15568 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15569 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15570 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15571 if test "x$supports_anon_versioning" = xyes; then
15572 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15573 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15574 echo "local: *; };" >> $output_objdir/$libname.ver~
15575 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15576 fi
15577 ;;
15578 *)
15579 case `$CC -V 2>&1 | sed 5q` in
15580 *Sun\ C*)
15581 # Sun C++ 5.9
15582 no_undefined_flag_CXX=' -zdefs'
15583 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15584 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'
15585 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000015586 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 +000015587 compiler_needs_object_CXX=yes
15588
15589 # Not sure whether something based on
15590 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15591 # would be better.
cristy18304f92009-11-22 15:48:26 +000015592 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000015593
15594 # Archives containing C++ object files must be created using
15595 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15596 # necessary to make sure instantiated templates are included
15597 # in the archive.
15598 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15599 ;;
15600 esac
15601 ;;
15602 esac
15603 ;;
15604
15605 lynxos*)
15606 # FIXME: insert proper C++ library support
15607 ld_shlibs_CXX=no
15608 ;;
15609
15610 m88k*)
15611 # FIXME: insert proper C++ library support
15612 ld_shlibs_CXX=no
15613 ;;
15614
15615 mvs*)
15616 case $cc_basename in
15617 cxx*)
15618 # FIXME: insert proper C++ library support
15619 ld_shlibs_CXX=no
15620 ;;
15621 *)
15622 # FIXME: insert proper C++ library support
15623 ld_shlibs_CXX=no
15624 ;;
15625 esac
15626 ;;
15627
15628 netbsd*)
15629 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15630 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15631 wlarc=
15632 hardcode_libdir_flag_spec_CXX='-R$libdir'
15633 hardcode_direct_CXX=yes
15634 hardcode_shlibpath_var_CXX=no
15635 fi
15636 # Workaround some broken pre-1.5 toolchains
15637 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15638 ;;
15639
15640 *nto* | *qnx*)
15641 ld_shlibs_CXX=yes
15642 ;;
15643
15644 openbsd2*)
15645 # C++ shared libraries are fairly broken
15646 ld_shlibs_CXX=no
15647 ;;
15648
15649 openbsd*)
15650 if test -f /usr/libexec/ld.so; then
15651 hardcode_direct_CXX=yes
15652 hardcode_shlibpath_var_CXX=no
15653 hardcode_direct_absolute_CXX=yes
15654 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15657 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15658 export_dynamic_flag_spec_CXX='${wl}-E'
15659 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15660 fi
cristy18304f92009-11-22 15:48:26 +000015661 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015662 else
15663 ld_shlibs_CXX=no
15664 fi
15665 ;;
15666
15667 osf3* | osf4* | osf5*)
15668 case $cc_basename in
15669 KCC*)
15670 # Kuck and Associates, Inc. (KAI) C++ Compiler
15671
15672 # KCC will only create a shared library if the output file
15673 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15674 # to its proper name (with version) after linking.
15675 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'
15676
15677 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15678 hardcode_libdir_separator_CXX=:
15679
15680 # Archives containing C++ object files must be created using
15681 # the KAI C++ compiler.
15682 case $host in
15683 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15684 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15685 esac
15686 ;;
15687 RCC*)
15688 # Rational C++ 2.4.1
15689 # FIXME: insert proper C++ library support
15690 ld_shlibs_CXX=no
15691 ;;
15692 cxx*)
15693 case $host in
15694 osf3*)
15695 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000015696 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 +000015697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15698 ;;
15699 *)
15700 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000015701 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 +000015702 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15703 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000015704 $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 +000015705 $RM $lib.exp'
15706 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15707 ;;
15708 esac
15709
15710 hardcode_libdir_separator_CXX=:
15711
15712 # Commands to make compiler produce verbose output that lists
15713 # what "hidden" libraries, object files and flags are used when
15714 # linking a shared library.
15715 #
15716 # There doesn't appear to be a way to prevent this compiler from
15717 # explicitly linking system object files so we need to strip them
15718 # from the output so that they don't get included in the library
15719 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015720 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 +000015721 ;;
15722 *)
15723 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15724 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15725 case $host in
15726 osf3*)
cristy18304f92009-11-22 15:48:26 +000015727 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 +000015728 ;;
15729 *)
cristy18304f92009-11-22 15:48:26 +000015730 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 +000015731 ;;
15732 esac
15733
15734 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15735 hardcode_libdir_separator_CXX=:
15736
15737 # Commands to make compiler produce verbose output that lists
15738 # what "hidden" libraries, object files and flags are used when
15739 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015740 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015741
15742 else
15743 # FIXME: insert proper C++ library support
15744 ld_shlibs_CXX=no
15745 fi
15746 ;;
15747 esac
15748 ;;
15749
15750 psos*)
15751 # FIXME: insert proper C++ library support
15752 ld_shlibs_CXX=no
15753 ;;
15754
15755 sunos4*)
15756 case $cc_basename in
15757 CC*)
15758 # Sun C++ 4.x
15759 # FIXME: insert proper C++ library support
15760 ld_shlibs_CXX=no
15761 ;;
15762 lcc*)
15763 # Lucid
15764 # FIXME: insert proper C++ library support
15765 ld_shlibs_CXX=no
15766 ;;
15767 *)
15768 # FIXME: insert proper C++ library support
15769 ld_shlibs_CXX=no
15770 ;;
15771 esac
15772 ;;
15773
15774 solaris*)
15775 case $cc_basename in
15776 CC*)
15777 # Sun C++ 4.2, 5.x and Centerline C++
15778 archive_cmds_need_lc_CXX=yes
15779 no_undefined_flag_CXX=' -zdefs'
15780 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15781 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15782 $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'
15783
15784 hardcode_libdir_flag_spec_CXX='-R$libdir'
15785 hardcode_shlibpath_var_CXX=no
15786 case $host_os in
15787 solaris2.[0-5] | solaris2.[0-5].*) ;;
15788 *)
15789 # The compiler driver will combine and reorder linker options,
15790 # but understands `-z linker_flag'.
15791 # Supported since Solaris 2.6 (maybe 2.5.1?)
15792 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15793 ;;
15794 esac
15795 link_all_deplibs_CXX=yes
15796
cristy18304f92009-11-22 15:48:26 +000015797 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000015798
15799 # Archives containing C++ object files must be created using
15800 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15801 # necessary to make sure instantiated templates are included
15802 # in the archive.
15803 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15804 ;;
15805 gcx*)
15806 # Green Hills C++ Compiler
15807 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15808
15809 # The C++ compiler must be used to create the archive.
15810 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15811 ;;
15812 *)
15813 # GNU C++ compiler with Solaris linker
15814 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15815 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15816 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15817 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15818 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15819 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15820
15821 # Commands to make compiler produce verbose output that lists
15822 # what "hidden" libraries, object files and flags are used when
15823 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015824 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015825 else
15826 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15827 # platform.
15828 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15829 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15830 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15831
15832 # Commands to make compiler produce verbose output that lists
15833 # what "hidden" libraries, object files and flags are used when
15834 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015835 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015836 fi
15837
15838 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15839 case $host_os in
15840 solaris2.[0-5] | solaris2.[0-5].*) ;;
15841 *)
15842 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15843 ;;
15844 esac
15845 fi
15846 ;;
15847 esac
15848 ;;
15849
15850 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15851 no_undefined_flag_CXX='${wl}-z,text'
15852 archive_cmds_need_lc_CXX=no
15853 hardcode_shlibpath_var_CXX=no
15854 runpath_var='LD_RUN_PATH'
15855
15856 case $cc_basename in
15857 CC*)
15858 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15859 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15860 ;;
15861 *)
15862 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15863 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15864 ;;
15865 esac
15866 ;;
15867
15868 sysv5* | sco3.2v5* | sco5v6*)
15869 # Note: We can NOT use -z defs as we might desire, because we do not
15870 # link with -lc, and that would cause any symbols used from libc to
15871 # always be unresolved, which means just about no library would
15872 # ever link correctly. If we're not using GNU ld we use -z text
15873 # though, which does catch some bad symbols but isn't as heavy-handed
15874 # as -z defs.
15875 no_undefined_flag_CXX='${wl}-z,text'
15876 allow_undefined_flag_CXX='${wl}-z,nodefs'
15877 archive_cmds_need_lc_CXX=no
15878 hardcode_shlibpath_var_CXX=no
15879 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15880 hardcode_libdir_separator_CXX=':'
15881 link_all_deplibs_CXX=yes
15882 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15883 runpath_var='LD_RUN_PATH'
15884
15885 case $cc_basename in
15886 CC*)
15887 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15888 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15889 ;;
15890 *)
15891 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15892 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15893 ;;
15894 esac
15895 ;;
15896
15897 tandem*)
15898 case $cc_basename in
15899 NCC*)
15900 # NonStop-UX NCC 3.20
15901 # FIXME: insert proper C++ library support
15902 ld_shlibs_CXX=no
15903 ;;
15904 *)
15905 # FIXME: insert proper C++ library support
15906 ld_shlibs_CXX=no
15907 ;;
15908 esac
15909 ;;
15910
15911 vxworks*)
15912 # FIXME: insert proper C++ library support
15913 ld_shlibs_CXX=no
15914 ;;
15915
15916 *)
15917 # FIXME: insert proper C++ library support
15918 ld_shlibs_CXX=no
15919 ;;
15920 esac
15921
cristy8b350f62009-11-15 23:12:43 +000015922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000015923$as_echo "$ld_shlibs_CXX" >&6; }
15924 test "$ld_shlibs_CXX" = no && can_build_shared=no
15925
15926 GCC_CXX="$GXX"
15927 LD_CXX="$LD"
15928
15929 ## CAVEAT EMPTOR:
15930 ## There is no encapsulation within the following macros, do not change
15931 ## the running order or otherwise move them around unless you know exactly
15932 ## what you are doing...
15933 # Dependencies to place before and after the object being linked:
15934predep_objects_CXX=
15935postdep_objects_CXX=
15936predeps_CXX=
15937postdeps_CXX=
15938compiler_lib_search_path_CXX=
15939
15940cat > conftest.$ac_ext <<_LT_EOF
15941class Foo
15942{
15943public:
15944 Foo (void) { a = 0; }
15945private:
15946 int a;
15947};
15948_LT_EOF
15949
cristy8b350f62009-11-15 23:12:43 +000015950if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015951 (eval $ac_compile) 2>&5
15952 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15954 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000015955 # Parse the compiler output and extract the necessary
15956 # objects, libraries and library flags.
15957
15958 # Sentinel used to keep track of whether or not we are before
15959 # the conftest object file.
15960 pre_test_object_deps_done=no
15961
15962 for p in `eval "$output_verbose_link_cmd"`; do
15963 case $p in
15964
15965 -L* | -R* | -l*)
15966 # Some compilers place space between "-{L,R}" and the path.
15967 # Remove the space.
15968 if test $p = "-L" ||
15969 test $p = "-R"; then
15970 prev=$p
15971 continue
15972 else
15973 prev=
15974 fi
15975
15976 if test "$pre_test_object_deps_done" = no; then
15977 case $p in
15978 -L* | -R*)
15979 # Internal compiler library paths should come after those
15980 # provided the user. The postdeps already come after the
15981 # user supplied libs so there is no need to process them.
15982 if test -z "$compiler_lib_search_path_CXX"; then
15983 compiler_lib_search_path_CXX="${prev}${p}"
15984 else
15985 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15986 fi
15987 ;;
15988 # The "-l" case would never come before the object being
15989 # linked, so don't bother handling this case.
15990 esac
15991 else
15992 if test -z "$postdeps_CXX"; then
15993 postdeps_CXX="${prev}${p}"
15994 else
15995 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15996 fi
15997 fi
15998 ;;
15999
16000 *.$objext)
16001 # This assumes that the test object file only shows up
16002 # once in the compiler output.
16003 if test "$p" = "conftest.$objext"; then
16004 pre_test_object_deps_done=yes
16005 continue
16006 fi
16007
16008 if test "$pre_test_object_deps_done" = no; then
16009 if test -z "$predep_objects_CXX"; then
16010 predep_objects_CXX="$p"
16011 else
16012 predep_objects_CXX="$predep_objects_CXX $p"
16013 fi
16014 else
16015 if test -z "$postdep_objects_CXX"; then
16016 postdep_objects_CXX="$p"
16017 else
16018 postdep_objects_CXX="$postdep_objects_CXX $p"
16019 fi
16020 fi
16021 ;;
16022
16023 *) ;; # Ignore the rest.
16024
16025 esac
16026 done
16027
16028 # Clean up.
16029 rm -f a.out a.exe
16030else
16031 echo "libtool.m4: error: problem compiling CXX test program"
16032fi
16033
16034$RM -f confest.$objext
16035
16036# PORTME: override above test on systems where it is broken
16037case $host_os in
16038interix[3-9]*)
16039 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16040 # hack all around it, let's just trust "g++" to DTRT.
16041 predep_objects_CXX=
16042 postdep_objects_CXX=
16043 postdeps_CXX=
16044 ;;
16045
16046linux*)
16047 case `$CC -V 2>&1 | sed 5q` in
16048 *Sun\ C*)
16049 # Sun C++ 5.9
16050
16051 # The more standards-conforming stlport4 library is
16052 # incompatible with the Cstd library. Avoid specifying
16053 # it if it's in CXXFLAGS. Ignore libCrun as
16054 # -library=stlport4 depends on it.
16055 case " $CXX $CXXFLAGS " in
16056 *" -library=stlport4 "*)
16057 solaris_use_stlport4=yes
16058 ;;
16059 esac
16060
16061 if test "$solaris_use_stlport4" != yes; then
16062 postdeps_CXX='-library=Cstd -library=Crun'
16063 fi
16064 ;;
16065 esac
16066 ;;
16067
16068solaris*)
16069 case $cc_basename in
16070 CC*)
16071 # The more standards-conforming stlport4 library is
16072 # incompatible with the Cstd library. Avoid specifying
16073 # it if it's in CXXFLAGS. Ignore libCrun as
16074 # -library=stlport4 depends on it.
16075 case " $CXX $CXXFLAGS " in
16076 *" -library=stlport4 "*)
16077 solaris_use_stlport4=yes
16078 ;;
16079 esac
16080
16081 # Adding this requires a known-good setup of shared libraries for
16082 # Sun compiler versions before 5.6, else PIC objects from an old
16083 # archive will be linked into the output, leading to subtle bugs.
16084 if test "$solaris_use_stlport4" != yes; then
16085 postdeps_CXX='-library=Cstd -library=Crun'
16086 fi
16087 ;;
16088 esac
16089 ;;
16090esac
16091
16092
16093case " $postdeps_CXX " in
16094*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16095esac
16096 compiler_lib_search_dirs_CXX=
16097if test -n "${compiler_lib_search_path_CXX}"; then
16098 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16099fi
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131 lt_prog_compiler_wl_CXX=
16132lt_prog_compiler_pic_CXX=
16133lt_prog_compiler_static_CXX=
16134
cristy8b350f62009-11-15 23:12:43 +000016135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016136$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16137
16138 # C++ specific cases for pic, static, wl, etc.
16139 if test "$GXX" = yes; then
16140 lt_prog_compiler_wl_CXX='-Wl,'
16141 lt_prog_compiler_static_CXX='-static'
16142
16143 case $host_os in
16144 aix*)
16145 # All AIX code is PIC.
16146 if test "$host_cpu" = ia64; then
16147 # AIX 5 now supports IA64 processor
16148 lt_prog_compiler_static_CXX='-Bstatic'
16149 fi
16150 ;;
16151
16152 amigaos*)
16153 case $host_cpu in
16154 powerpc)
16155 # see comment about AmigaOS4 .so support
16156 lt_prog_compiler_pic_CXX='-fPIC'
16157 ;;
16158 m68k)
16159 # FIXME: we need at least 68020 code to build shared libraries, but
16160 # adding the `-m68020' flag to GCC prevents building anything better,
16161 # like `-m68040'.
16162 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16163 ;;
16164 esac
16165 ;;
16166
16167 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16168 # PIC is the default for these OSes.
16169 ;;
16170 mingw* | cygwin* | os2* | pw32* | cegcc*)
16171 # This hack is so that the source file can tell whether it is being
16172 # built for inclusion in a dll (and should export symbols for example).
16173 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16174 # (--disable-auto-import) libraries
16175 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16176 ;;
16177 darwin* | rhapsody*)
16178 # PIC is the default on this platform
16179 # Common symbols not allowed in MH_DYLIB files
16180 lt_prog_compiler_pic_CXX='-fno-common'
16181 ;;
16182 *djgpp*)
16183 # DJGPP does not support shared libraries at all
16184 lt_prog_compiler_pic_CXX=
16185 ;;
16186 interix[3-9]*)
16187 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16188 # Instead, we relocate shared libraries at runtime.
16189 ;;
16190 sysv4*MP*)
16191 if test -d /usr/nec; then
16192 lt_prog_compiler_pic_CXX=-Kconform_pic
16193 fi
16194 ;;
16195 hpux*)
16196 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16197 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16198 # sets the default TLS model and affects inlining.
16199 case $host_cpu in
16200 hppa*64*)
16201 ;;
16202 *)
16203 lt_prog_compiler_pic_CXX='-fPIC'
16204 ;;
16205 esac
16206 ;;
16207 *qnx* | *nto*)
16208 # QNX uses GNU C++, but need to define -shared option too, otherwise
16209 # it will coredump.
16210 lt_prog_compiler_pic_CXX='-fPIC -shared'
16211 ;;
16212 *)
16213 lt_prog_compiler_pic_CXX='-fPIC'
16214 ;;
16215 esac
16216 else
16217 case $host_os in
16218 aix[4-9]*)
16219 # All AIX code is PIC.
16220 if test "$host_cpu" = ia64; then
16221 # AIX 5 now supports IA64 processor
16222 lt_prog_compiler_static_CXX='-Bstatic'
16223 else
16224 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16225 fi
16226 ;;
16227 chorus*)
16228 case $cc_basename in
16229 cxch68*)
16230 # Green Hills C++ Compiler
16231 # _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"
16232 ;;
16233 esac
16234 ;;
16235 dgux*)
16236 case $cc_basename in
16237 ec++*)
16238 lt_prog_compiler_pic_CXX='-KPIC'
16239 ;;
16240 ghcx*)
16241 # Green Hills C++ Compiler
16242 lt_prog_compiler_pic_CXX='-pic'
16243 ;;
16244 *)
16245 ;;
16246 esac
16247 ;;
16248 freebsd* | dragonfly*)
16249 # FreeBSD uses GNU C++
16250 ;;
16251 hpux9* | hpux10* | hpux11*)
16252 case $cc_basename in
16253 CC*)
16254 lt_prog_compiler_wl_CXX='-Wl,'
16255 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16256 if test "$host_cpu" != ia64; then
16257 lt_prog_compiler_pic_CXX='+Z'
16258 fi
16259 ;;
16260 aCC*)
16261 lt_prog_compiler_wl_CXX='-Wl,'
16262 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16263 case $host_cpu in
16264 hppa*64*|ia64*)
16265 # +Z the default
16266 ;;
16267 *)
16268 lt_prog_compiler_pic_CXX='+Z'
16269 ;;
16270 esac
16271 ;;
16272 *)
16273 ;;
16274 esac
16275 ;;
16276 interix*)
16277 # This is c89, which is MS Visual C++ (no shared libs)
16278 # Anyone wants to do a port?
16279 ;;
16280 irix5* | irix6* | nonstopux*)
16281 case $cc_basename in
16282 CC*)
16283 lt_prog_compiler_wl_CXX='-Wl,'
16284 lt_prog_compiler_static_CXX='-non_shared'
16285 # CC pic flag -KPIC is the default.
16286 ;;
16287 *)
16288 ;;
16289 esac
16290 ;;
cristy18304f92009-11-22 15:48:26 +000016291 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016292 case $cc_basename in
16293 KCC*)
16294 # KAI C++ Compiler
16295 lt_prog_compiler_wl_CXX='--backend -Wl,'
16296 lt_prog_compiler_pic_CXX='-fPIC'
16297 ;;
16298 ecpc* )
16299 # old Intel C++ for x86_64 which still supported -KPIC.
16300 lt_prog_compiler_wl_CXX='-Wl,'
16301 lt_prog_compiler_pic_CXX='-KPIC'
16302 lt_prog_compiler_static_CXX='-static'
16303 ;;
16304 icpc* )
16305 # Intel C++, used to be incompatible with GCC.
16306 # ICC 10 doesn't accept -KPIC any more.
16307 lt_prog_compiler_wl_CXX='-Wl,'
16308 lt_prog_compiler_pic_CXX='-fPIC'
16309 lt_prog_compiler_static_CXX='-static'
16310 ;;
16311 pgCC* | pgcpp*)
16312 # Portland Group C++ compiler
16313 lt_prog_compiler_wl_CXX='-Wl,'
16314 lt_prog_compiler_pic_CXX='-fpic'
16315 lt_prog_compiler_static_CXX='-Bstatic'
16316 ;;
16317 cxx*)
16318 # Compaq C++
16319 # Make sure the PIC flag is empty. It appears that all Alpha
16320 # Linux and Compaq Tru64 Unix objects are PIC.
16321 lt_prog_compiler_pic_CXX=
16322 lt_prog_compiler_static_CXX='-non_shared'
16323 ;;
cristy18304f92009-11-22 15:48:26 +000016324 xlc* | xlC*)
16325 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000016326 lt_prog_compiler_wl_CXX='-Wl,'
16327 lt_prog_compiler_pic_CXX='-qpic'
16328 lt_prog_compiler_static_CXX='-qstaticlink'
16329 ;;
16330 *)
16331 case `$CC -V 2>&1 | sed 5q` in
16332 *Sun\ C*)
16333 # Sun C++ 5.9
16334 lt_prog_compiler_pic_CXX='-KPIC'
16335 lt_prog_compiler_static_CXX='-Bstatic'
16336 lt_prog_compiler_wl_CXX='-Qoption ld '
16337 ;;
16338 esac
16339 ;;
16340 esac
16341 ;;
16342 lynxos*)
16343 ;;
16344 m88k*)
16345 ;;
16346 mvs*)
16347 case $cc_basename in
16348 cxx*)
16349 lt_prog_compiler_pic_CXX='-W c,exportall'
16350 ;;
16351 *)
16352 ;;
16353 esac
16354 ;;
16355 netbsd*)
16356 ;;
16357 *qnx* | *nto*)
16358 # QNX uses GNU C++, but need to define -shared option too, otherwise
16359 # it will coredump.
16360 lt_prog_compiler_pic_CXX='-fPIC -shared'
16361 ;;
16362 osf3* | osf4* | osf5*)
16363 case $cc_basename in
16364 KCC*)
16365 lt_prog_compiler_wl_CXX='--backend -Wl,'
16366 ;;
16367 RCC*)
16368 # Rational C++ 2.4.1
16369 lt_prog_compiler_pic_CXX='-pic'
16370 ;;
16371 cxx*)
16372 # Digital/Compaq C++
16373 lt_prog_compiler_wl_CXX='-Wl,'
16374 # Make sure the PIC flag is empty. It appears that all Alpha
16375 # Linux and Compaq Tru64 Unix objects are PIC.
16376 lt_prog_compiler_pic_CXX=
16377 lt_prog_compiler_static_CXX='-non_shared'
16378 ;;
16379 *)
16380 ;;
16381 esac
16382 ;;
16383 psos*)
16384 ;;
16385 solaris*)
16386 case $cc_basename in
16387 CC*)
16388 # Sun C++ 4.2, 5.x and Centerline C++
16389 lt_prog_compiler_pic_CXX='-KPIC'
16390 lt_prog_compiler_static_CXX='-Bstatic'
16391 lt_prog_compiler_wl_CXX='-Qoption ld '
16392 ;;
16393 gcx*)
16394 # Green Hills C++ Compiler
16395 lt_prog_compiler_pic_CXX='-PIC'
16396 ;;
16397 *)
16398 ;;
16399 esac
16400 ;;
16401 sunos4*)
16402 case $cc_basename in
16403 CC*)
16404 # Sun C++ 4.x
16405 lt_prog_compiler_pic_CXX='-pic'
16406 lt_prog_compiler_static_CXX='-Bstatic'
16407 ;;
16408 lcc*)
16409 # Lucid
16410 lt_prog_compiler_pic_CXX='-pic'
16411 ;;
16412 *)
16413 ;;
16414 esac
16415 ;;
16416 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16417 case $cc_basename in
16418 CC*)
16419 lt_prog_compiler_wl_CXX='-Wl,'
16420 lt_prog_compiler_pic_CXX='-KPIC'
16421 lt_prog_compiler_static_CXX='-Bstatic'
16422 ;;
16423 esac
16424 ;;
16425 tandem*)
16426 case $cc_basename in
16427 NCC*)
16428 # NonStop-UX NCC 3.20
16429 lt_prog_compiler_pic_CXX='-KPIC'
16430 ;;
16431 *)
16432 ;;
16433 esac
16434 ;;
16435 vxworks*)
16436 ;;
16437 *)
16438 lt_prog_compiler_can_build_shared_CXX=no
16439 ;;
16440 esac
16441 fi
16442
16443case $host_os in
16444 # For platforms which do not support PIC, -DPIC is meaningless:
16445 *djgpp*)
16446 lt_prog_compiler_pic_CXX=
16447 ;;
16448 *)
16449 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16450 ;;
16451esac
cristy8b350f62009-11-15 23:12:43 +000016452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016453$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16454
16455
16456
16457#
16458# Check to make sure the PIC flag actually works.
16459#
16460if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000016461 { $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 +000016462$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016463if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016464 $as_echo_n "(cached) " >&6
16465else
16466 lt_cv_prog_compiler_pic_works_CXX=no
16467 ac_outfile=conftest.$ac_objext
16468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16469 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16470 # Insert the option either (1) after the last *FLAGS variable, or
16471 # (2) before a word containing "conftest.", or (3) at the end.
16472 # Note that $ac_compile itself does not contain backslashes and begins
16473 # with a dollar sign (not a hyphen), so the echo should work correctly.
16474 # The option is referenced via a variable to avoid confusing sed.
16475 lt_compile=`echo "$ac_compile" | $SED \
16476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16478 -e 's:$: $lt_compiler_flag:'`
cristy9c562ad2009-12-28 02:17:04 +000016479 (eval echo "\"\$as_me:16479: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016480 (eval "$lt_compile" 2>conftest.err)
16481 ac_status=$?
16482 cat conftest.err >&5
cristy9c562ad2009-12-28 02:17:04 +000016483 echo "$as_me:16483: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016484 if (exit $ac_status) && test -s "$ac_outfile"; then
16485 # The compiler can only warn and ignore the option if not recognized
16486 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000016487 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16489 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16490 lt_cv_prog_compiler_pic_works_CXX=yes
16491 fi
16492 fi
16493 $RM conftest*
16494
16495fi
cristy8b350f62009-11-15 23:12:43 +000016496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016497$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16498
16499if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16500 case $lt_prog_compiler_pic_CXX in
16501 "" | " "*) ;;
16502 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16503 esac
16504else
16505 lt_prog_compiler_pic_CXX=
16506 lt_prog_compiler_can_build_shared_CXX=no
16507fi
16508
16509fi
16510
16511
16512
16513#
16514# Check to make sure the static flag actually works.
16515#
16516wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000016517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000016518$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016519if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016520 $as_echo_n "(cached) " >&6
16521else
16522 lt_cv_prog_compiler_static_works_CXX=no
16523 save_LDFLAGS="$LDFLAGS"
16524 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16525 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16527 # The linker can only warn and ignore the option if not recognized
16528 # So say no if there are warnings
16529 if test -s conftest.err; then
16530 # Append any errors to the config.log.
16531 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000016532 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16534 if diff conftest.exp conftest.er2 >/dev/null; then
16535 lt_cv_prog_compiler_static_works_CXX=yes
16536 fi
16537 else
16538 lt_cv_prog_compiler_static_works_CXX=yes
16539 fi
16540 fi
16541 $RM -r conftest*
16542 LDFLAGS="$save_LDFLAGS"
16543
16544fi
cristy8b350f62009-11-15 23:12:43 +000016545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016546$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16547
16548if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16549 :
16550else
16551 lt_prog_compiler_static_CXX=
16552fi
16553
16554
16555
16556
cristy8b350f62009-11-15 23:12:43 +000016557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016558$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016559if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016560 $as_echo_n "(cached) " >&6
16561else
16562 lt_cv_prog_compiler_c_o_CXX=no
16563 $RM -r conftest 2>/dev/null
16564 mkdir conftest
16565 cd conftest
16566 mkdir out
16567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16568
16569 lt_compiler_flag="-o out/conftest2.$ac_objext"
16570 # Insert the option either (1) after the last *FLAGS variable, or
16571 # (2) before a word containing "conftest.", or (3) at the end.
16572 # Note that $ac_compile itself does not contain backslashes and begins
16573 # with a dollar sign (not a hyphen), so the echo should work correctly.
16574 lt_compile=`echo "$ac_compile" | $SED \
16575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16577 -e 's:$: $lt_compiler_flag:'`
cristy9c562ad2009-12-28 02:17:04 +000016578 (eval echo "\"\$as_me:16578: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016579 (eval "$lt_compile" 2>out/conftest.err)
16580 ac_status=$?
16581 cat out/conftest.err >&5
cristy9c562ad2009-12-28 02:17:04 +000016582 echo "$as_me:16582: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016583 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16584 then
16585 # The compiler can only warn and ignore the option if not recognized
16586 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000016587 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016588 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16589 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16590 lt_cv_prog_compiler_c_o_CXX=yes
16591 fi
16592 fi
16593 chmod u+w . 2>&5
16594 $RM conftest*
16595 # SGI C++ compiler will create directory out/ii_files/ for
16596 # template instantiation
16597 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16598 $RM out/* && rmdir out
16599 cd ..
16600 $RM -r conftest
16601 $RM conftest*
16602
16603fi
cristy8b350f62009-11-15 23:12:43 +000016604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016605$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16606
16607
16608
cristy8b350f62009-11-15 23:12:43 +000016609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016610$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016611if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016612 $as_echo_n "(cached) " >&6
16613else
16614 lt_cv_prog_compiler_c_o_CXX=no
16615 $RM -r conftest 2>/dev/null
16616 mkdir conftest
16617 cd conftest
16618 mkdir out
16619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16620
16621 lt_compiler_flag="-o out/conftest2.$ac_objext"
16622 # Insert the option either (1) after the last *FLAGS variable, or
16623 # (2) before a word containing "conftest.", or (3) at the end.
16624 # Note that $ac_compile itself does not contain backslashes and begins
16625 # with a dollar sign (not a hyphen), so the echo should work correctly.
16626 lt_compile=`echo "$ac_compile" | $SED \
16627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16629 -e 's:$: $lt_compiler_flag:'`
cristy9c562ad2009-12-28 02:17:04 +000016630 (eval echo "\"\$as_me:16630: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016631 (eval "$lt_compile" 2>out/conftest.err)
16632 ac_status=$?
16633 cat out/conftest.err >&5
cristy9c562ad2009-12-28 02:17:04 +000016634 echo "$as_me:16634: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016635 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16636 then
16637 # The compiler can only warn and ignore the option if not recognized
16638 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000016639 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016640 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16641 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16642 lt_cv_prog_compiler_c_o_CXX=yes
16643 fi
16644 fi
16645 chmod u+w . 2>&5
16646 $RM conftest*
16647 # SGI C++ compiler will create directory out/ii_files/ for
16648 # template instantiation
16649 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16650 $RM out/* && rmdir out
16651 cd ..
16652 $RM -r conftest
16653 $RM conftest*
16654
16655fi
cristy8b350f62009-11-15 23:12:43 +000016656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016657$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16658
16659
16660
16661
16662hard_links="nottested"
16663if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16664 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000016665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016666$as_echo_n "checking if we can lock with hard links... " >&6; }
16667 hard_links=yes
16668 $RM conftest*
16669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16670 touch conftest.a
16671 ln conftest.a conftest.b 2>&5 || hard_links=no
16672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000016673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016674$as_echo "$hard_links" >&6; }
16675 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000016676 { $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 +000016677$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16678 need_locks=warn
16679 fi
16680else
16681 need_locks=no
16682fi
16683
16684
16685
cristy8b350f62009-11-15 23:12:43 +000016686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016687$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16688
16689 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16690 case $host_os in
16691 aix[4-9]*)
16692 # If we're using GNU nm, then we don't want the "-C" option.
16693 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16694 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000016695 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 +000016696 else
16697 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'
16698 fi
16699 ;;
16700 pw32*)
16701 export_symbols_cmds_CXX="$ltdll_cmds"
16702 ;;
16703 cygwin* | mingw* | cegcc*)
16704 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'
16705 ;;
16706 *)
16707 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16708 ;;
16709 esac
16710 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16711
cristy8b350f62009-11-15 23:12:43 +000016712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016713$as_echo "$ld_shlibs_CXX" >&6; }
16714test "$ld_shlibs_CXX" = no && can_build_shared=no
16715
16716with_gnu_ld_CXX=$with_gnu_ld
16717
16718
16719
16720
16721
16722
16723#
16724# Do we need to explicitly link libc?
16725#
16726case "x$archive_cmds_need_lc_CXX" in
16727x|xyes)
16728 # Assume -lc should be added
16729 archive_cmds_need_lc_CXX=yes
16730
16731 if test "$enable_shared" = yes && test "$GCC" = yes; then
16732 case $archive_cmds_CXX in
16733 *'~'*)
16734 # FIXME: we may have to deal with multi-command sequences.
16735 ;;
16736 '$CC '*)
16737 # Test whether the compiler implicitly links with -lc since on some
16738 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16739 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000016740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000016741$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000016742 $RM conftest*
16743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016744
cristy18304f92009-11-22 15:48:26 +000016745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016746 (eval $ac_compile) 2>&5
16747 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16749 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000016750 soname=conftest
16751 lib=conftest
16752 libobjs=conftest.$ac_objext
16753 deplibs=
16754 wl=$lt_prog_compiler_wl_CXX
16755 pic_flag=$lt_prog_compiler_pic_CXX
16756 compiler_flags=-v
16757 linker_flags=-v
16758 verstring=
16759 output_objdir=.
16760 libname=conftest
16761 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16762 allow_undefined_flag_CXX=
16763 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 +000016764 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16765 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16767 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000016768 then
16769 archive_cmds_need_lc_CXX=no
16770 else
16771 archive_cmds_need_lc_CXX=yes
16772 fi
16773 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16774 else
16775 cat conftest.err 1>&5
16776 fi
16777 $RM conftest*
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16779$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000016780 ;;
16781 esac
16782 fi
16783 ;;
16784esac
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
cristy8b350f62009-11-15 23:12:43 +000016849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000016850$as_echo_n "checking dynamic linker characteristics... " >&6; }
16851
16852library_names_spec=
16853libname_spec='lib$name'
16854soname_spec=
16855shrext_cmds=".so"
16856postinstall_cmds=
16857postuninstall_cmds=
16858finish_cmds=
16859finish_eval=
16860shlibpath_var=
16861shlibpath_overrides_runpath=unknown
16862version_type=none
16863dynamic_linker="$host_os ld.so"
16864sys_lib_dlsearch_path_spec="/lib /usr/lib"
16865need_lib_prefix=unknown
16866hardcode_into_libs=no
16867
16868# when you set need_version to no, make sure it does not cause -set_version
16869# flags to be left without arguments
16870need_version=unknown
16871
16872case $host_os in
16873aix3*)
16874 version_type=linux
16875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16876 shlibpath_var=LIBPATH
16877
16878 # AIX 3 has no versioning support, so we append a major version to the name.
16879 soname_spec='${libname}${release}${shared_ext}$major'
16880 ;;
16881
16882aix[4-9]*)
16883 version_type=linux
16884 need_lib_prefix=no
16885 need_version=no
16886 hardcode_into_libs=yes
16887 if test "$host_cpu" = ia64; then
16888 # AIX 5 supports IA64
16889 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16890 shlibpath_var=LD_LIBRARY_PATH
16891 else
16892 # With GCC up to 2.95.x, collect2 would create an import file
16893 # for dependence libraries. The import file would start with
16894 # the line `#! .'. This would cause the generated library to
16895 # depend on `.', always an invalid library. This was fixed in
16896 # development snapshots of GCC prior to 3.0.
16897 case $host_os in
16898 aix4 | aix4.[01] | aix4.[01].*)
16899 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16900 echo ' yes '
16901 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16902 :
16903 else
16904 can_build_shared=no
16905 fi
16906 ;;
16907 esac
16908 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16909 # soname into executable. Probably we can add versioning support to
16910 # collect2, so additional links can be useful in future.
16911 if test "$aix_use_runtimelinking" = yes; then
16912 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16913 # instead of lib<name>.a to let people know that these are not
16914 # typical AIX shared libraries.
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916 else
16917 # We preserve .a as extension for shared libraries through AIX4.2
16918 # and later when we are not doing run time linking.
16919 library_names_spec='${libname}${release}.a $libname.a'
16920 soname_spec='${libname}${release}${shared_ext}$major'
16921 fi
16922 shlibpath_var=LIBPATH
16923 fi
16924 ;;
16925
16926amigaos*)
16927 case $host_cpu in
16928 powerpc)
16929 # Since July 2007 AmigaOS4 officially supports .so libraries.
16930 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932 ;;
16933 m68k)
16934 library_names_spec='$libname.ixlibrary $libname.a'
16935 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000016936 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 +000016937 ;;
16938 esac
16939 ;;
16940
16941beos*)
16942 library_names_spec='${libname}${shared_ext}'
16943 dynamic_linker="$host_os ld.so"
16944 shlibpath_var=LIBRARY_PATH
16945 ;;
16946
16947bsdi[45]*)
16948 version_type=linux
16949 need_version=no
16950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16951 soname_spec='${libname}${release}${shared_ext}$major'
16952 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16953 shlibpath_var=LD_LIBRARY_PATH
16954 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16955 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16956 # the default ld.so.conf also contains /usr/contrib/lib and
16957 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16958 # libtool to hard-code these into programs
16959 ;;
16960
16961cygwin* | mingw* | pw32* | cegcc*)
16962 version_type=windows
16963 shrext_cmds=".dll"
16964 need_version=no
16965 need_lib_prefix=no
16966
16967 case $GCC,$host_os in
16968 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16969 library_names_spec='$libname.dll.a'
16970 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16971 postinstall_cmds='base_file=`basename \${file}`~
16972 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16973 dldir=$destdir/`dirname \$dlpath`~
16974 test -d \$dldir || mkdir -p \$dldir~
16975 $install_prog $dir/$dlname \$dldir/$dlname~
16976 chmod a+x \$dldir/$dlname~
16977 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16978 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16979 fi'
16980 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16981 dlpath=$dir/\$dldll~
16982 $RM \$dlpath'
16983 shlibpath_overrides_runpath=yes
16984
16985 case $host_os in
16986 cygwin*)
16987 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16988 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000016989 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000016990 ;;
16991 mingw* | cegcc*)
16992 # MinGW DLLs use traditional 'lib' prefix
16993 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000016994 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16995 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16996 # It is most probably a Windows format PATH printed by
16997 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16998 # path with ; separators, and with drive letters. We can handle the
16999 # drive letters (cygwin fileutils understands them), so leave them,
17000 # especially as we might pass files found there to a mingw objdump,
17001 # which wouldn't understand a cygwinified path. Ahh.
17002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17003 else
17004 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17005 fi
cristy3ed852e2009-09-05 21:47:34 +000017006 ;;
17007 pw32*)
17008 # pw32 DLLs use 'pw' prefix rather than 'lib'
17009 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17010 ;;
17011 esac
17012 ;;
17013
17014 *)
17015 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17016 ;;
17017 esac
17018 dynamic_linker='Win32 ld.exe'
17019 # FIXME: first we should search . and the directory the executable is in
17020 shlibpath_var=PATH
17021 ;;
17022
17023darwin* | rhapsody*)
17024 dynamic_linker="$host_os dyld"
17025 version_type=darwin
17026 need_lib_prefix=no
17027 need_version=no
17028 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17029 soname_spec='${libname}${release}${major}$shared_ext'
17030 shlibpath_overrides_runpath=yes
17031 shlibpath_var=DYLD_LIBRARY_PATH
17032 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17033
17034 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17035 ;;
17036
17037dgux*)
17038 version_type=linux
17039 need_lib_prefix=no
17040 need_version=no
17041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17042 soname_spec='${libname}${release}${shared_ext}$major'
17043 shlibpath_var=LD_LIBRARY_PATH
17044 ;;
17045
17046freebsd1*)
17047 dynamic_linker=no
17048 ;;
17049
17050freebsd* | dragonfly*)
17051 # DragonFly does not have aout. When/if they implement a new
17052 # versioning mechanism, adjust this.
17053 if test -x /usr/bin/objformat; then
17054 objformat=`/usr/bin/objformat`
17055 else
17056 case $host_os in
17057 freebsd[123]*) objformat=aout ;;
17058 *) objformat=elf ;;
17059 esac
17060 fi
17061 version_type=freebsd-$objformat
17062 case $version_type in
17063 freebsd-elf*)
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17065 need_version=no
17066 need_lib_prefix=no
17067 ;;
17068 freebsd-*)
17069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17070 need_version=yes
17071 ;;
17072 esac
17073 shlibpath_var=LD_LIBRARY_PATH
17074 case $host_os in
17075 freebsd2*)
17076 shlibpath_overrides_runpath=yes
17077 ;;
17078 freebsd3.[01]* | freebsdelf3.[01]*)
17079 shlibpath_overrides_runpath=yes
17080 hardcode_into_libs=yes
17081 ;;
17082 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17083 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17084 shlibpath_overrides_runpath=no
17085 hardcode_into_libs=yes
17086 ;;
17087 *) # from 4.6 on, and DragonFly
17088 shlibpath_overrides_runpath=yes
17089 hardcode_into_libs=yes
17090 ;;
17091 esac
17092 ;;
17093
17094gnu*)
17095 version_type=linux
17096 need_lib_prefix=no
17097 need_version=no
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17099 soname_spec='${libname}${release}${shared_ext}$major'
17100 shlibpath_var=LD_LIBRARY_PATH
17101 hardcode_into_libs=yes
17102 ;;
17103
17104hpux9* | hpux10* | hpux11*)
17105 # Give a soname corresponding to the major version so that dld.sl refuses to
17106 # link against other versions.
17107 version_type=sunos
17108 need_lib_prefix=no
17109 need_version=no
17110 case $host_cpu in
17111 ia64*)
17112 shrext_cmds='.so'
17113 hardcode_into_libs=yes
17114 dynamic_linker="$host_os dld.so"
17115 shlibpath_var=LD_LIBRARY_PATH
17116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118 soname_spec='${libname}${release}${shared_ext}$major'
17119 if test "X$HPUX_IA64_MODE" = X32; then
17120 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17121 else
17122 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17123 fi
17124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17125 ;;
17126 hppa*64*)
17127 shrext_cmds='.sl'
17128 hardcode_into_libs=yes
17129 dynamic_linker="$host_os dld.sl"
17130 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133 soname_spec='${libname}${release}${shared_ext}$major'
17134 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17136 ;;
17137 *)
17138 shrext_cmds='.sl'
17139 dynamic_linker="$host_os dld.sl"
17140 shlibpath_var=SHLIB_PATH
17141 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
17145 esac
cristy18304f92009-11-22 15:48:26 +000017146 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000017147 postinstall_cmds='chmod 555 $lib'
17148 ;;
17149
17150interix[3-9]*)
17151 version_type=linux
17152 need_lib_prefix=no
17153 need_version=no
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17155 soname_spec='${libname}${release}${shared_ext}$major'
17156 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17157 shlibpath_var=LD_LIBRARY_PATH
17158 shlibpath_overrides_runpath=no
17159 hardcode_into_libs=yes
17160 ;;
17161
17162irix5* | irix6* | nonstopux*)
17163 case $host_os in
17164 nonstopux*) version_type=nonstopux ;;
17165 *)
17166 if test "$lt_cv_prog_gnu_ld" = yes; then
17167 version_type=linux
17168 else
17169 version_type=irix
17170 fi ;;
17171 esac
17172 need_lib_prefix=no
17173 need_version=no
17174 soname_spec='${libname}${release}${shared_ext}$major'
17175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17176 case $host_os in
17177 irix5* | nonstopux*)
17178 libsuff= shlibsuff=
17179 ;;
17180 *)
17181 case $LD in # libtool.m4 will add one of these switches to LD
17182 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17183 libsuff= shlibsuff= libmagic=32-bit;;
17184 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17185 libsuff=32 shlibsuff=N32 libmagic=N32;;
17186 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17187 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17188 *) libsuff= shlibsuff= libmagic=never-match;;
17189 esac
17190 ;;
17191 esac
17192 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17193 shlibpath_overrides_runpath=no
17194 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17195 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17196 hardcode_into_libs=yes
17197 ;;
17198
17199# No shared lib support for Linux oldld, aout, or coff.
17200linux*oldld* | linux*aout* | linux*coff*)
17201 dynamic_linker=no
17202 ;;
17203
17204# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000017205linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017206 version_type=linux
17207 need_lib_prefix=no
17208 need_version=no
17209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17210 soname_spec='${libname}${release}${shared_ext}$major'
17211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17212 shlibpath_var=LD_LIBRARY_PATH
17213 shlibpath_overrides_runpath=no
17214 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000017215 save_LDFLAGS=$LDFLAGS
17216 save_libdir=$libdir
17217 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17218 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017220/* end confdefs.h. */
17221
17222int
17223main ()
17224{
17225
17226 ;
17227 return 0;
17228}
17229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017230if ac_fn_cxx_try_link "$LINENO"; then :
17231 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000017232 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000017233fi
cristy3ed852e2009-09-05 21:47:34 +000017234fi
cristy8b350f62009-11-15 23:12:43 +000017235rm -f core conftest.err conftest.$ac_objext \
17236 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000017237 LDFLAGS=$save_LDFLAGS
17238 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000017239
17240 # This implies no fast_install, which is unacceptable.
17241 # Some rework will be needed to allow for fast_install
17242 # before this can be enabled.
17243 hardcode_into_libs=yes
17244
cristy679ed8e2009-12-05 02:37:41 +000017245 # Add ABI-specific directories to the system library path.
17246 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17247
cristy3ed852e2009-09-05 21:47:34 +000017248 # Append ld.so.conf contents to the search path
17249 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000017250 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 +000017251 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000017252 fi
17253
17254 # We used to test for /lib/ld.so.1 and disable shared libraries on
17255 # powerpc, because MkLinux only supported shared libraries with the
17256 # GNU dynamic linker. Since this was broken with cross compilers,
17257 # most powerpc-linux boxes support dynamic linking these days and
17258 # people can always --disable-shared, the test was removed, and we
17259 # assume the GNU/Linux dynamic linker is in use.
17260 dynamic_linker='GNU/Linux ld.so'
17261 ;;
17262
17263netbsd*)
17264 version_type=sunos
17265 need_lib_prefix=no
17266 need_version=no
17267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17270 dynamic_linker='NetBSD (a.out) ld.so'
17271 else
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 dynamic_linker='NetBSD ld.elf_so'
17275 fi
17276 shlibpath_var=LD_LIBRARY_PATH
17277 shlibpath_overrides_runpath=yes
17278 hardcode_into_libs=yes
17279 ;;
17280
17281newsos6)
17282 version_type=linux
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284 shlibpath_var=LD_LIBRARY_PATH
17285 shlibpath_overrides_runpath=yes
17286 ;;
17287
17288*nto* | *qnx*)
17289 version_type=qnx
17290 need_lib_prefix=no
17291 need_version=no
17292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293 soname_spec='${libname}${release}${shared_ext}$major'
17294 shlibpath_var=LD_LIBRARY_PATH
17295 shlibpath_overrides_runpath=no
17296 hardcode_into_libs=yes
17297 dynamic_linker='ldqnx.so'
17298 ;;
17299
17300openbsd*)
17301 version_type=sunos
17302 sys_lib_dlsearch_path_spec="/usr/lib"
17303 need_lib_prefix=no
17304 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17305 case $host_os in
17306 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17307 *) need_version=no ;;
17308 esac
17309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17311 shlibpath_var=LD_LIBRARY_PATH
17312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17313 case $host_os in
17314 openbsd2.[89] | openbsd2.[89].*)
17315 shlibpath_overrides_runpath=no
17316 ;;
17317 *)
17318 shlibpath_overrides_runpath=yes
17319 ;;
17320 esac
17321 else
17322 shlibpath_overrides_runpath=yes
17323 fi
17324 ;;
17325
17326os2*)
17327 libname_spec='$name'
17328 shrext_cmds=".dll"
17329 need_lib_prefix=no
17330 library_names_spec='$libname${shared_ext} $libname.a'
17331 dynamic_linker='OS/2 ld.exe'
17332 shlibpath_var=LIBPATH
17333 ;;
17334
17335osf3* | osf4* | osf5*)
17336 version_type=osf
17337 need_lib_prefix=no
17338 need_version=no
17339 soname_spec='${libname}${release}${shared_ext}$major'
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17343 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17344 ;;
17345
17346rdos*)
17347 dynamic_linker=no
17348 ;;
17349
17350solaris*)
17351 version_type=linux
17352 need_lib_prefix=no
17353 need_version=no
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 shlibpath_var=LD_LIBRARY_PATH
17357 shlibpath_overrides_runpath=yes
17358 hardcode_into_libs=yes
17359 # ldd complains unless libraries are executable
17360 postinstall_cmds='chmod +x $lib'
17361 ;;
17362
17363sunos4*)
17364 version_type=sunos
17365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17366 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17367 shlibpath_var=LD_LIBRARY_PATH
17368 shlibpath_overrides_runpath=yes
17369 if test "$with_gnu_ld" = yes; then
17370 need_lib_prefix=no
17371 fi
17372 need_version=yes
17373 ;;
17374
17375sysv4 | sysv4.3*)
17376 version_type=linux
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378 soname_spec='${libname}${release}${shared_ext}$major'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 case $host_vendor in
17381 sni)
17382 shlibpath_overrides_runpath=no
17383 need_lib_prefix=no
17384 runpath_var=LD_RUN_PATH
17385 ;;
17386 siemens)
17387 need_lib_prefix=no
17388 ;;
17389 motorola)
17390 need_lib_prefix=no
17391 need_version=no
17392 shlibpath_overrides_runpath=no
17393 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17394 ;;
17395 esac
17396 ;;
17397
17398sysv4*MP*)
17399 if test -d /usr/nec ;then
17400 version_type=linux
17401 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17402 soname_spec='$libname${shared_ext}.$major'
17403 shlibpath_var=LD_LIBRARY_PATH
17404 fi
17405 ;;
17406
17407sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17408 version_type=freebsd-elf
17409 need_lib_prefix=no
17410 need_version=no
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17412 soname_spec='${libname}${release}${shared_ext}$major'
17413 shlibpath_var=LD_LIBRARY_PATH
17414 shlibpath_overrides_runpath=yes
17415 hardcode_into_libs=yes
17416 if test "$with_gnu_ld" = yes; then
17417 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17418 else
17419 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17420 case $host_os in
17421 sco3.2v5*)
17422 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17423 ;;
17424 esac
17425 fi
17426 sys_lib_dlsearch_path_spec='/usr/lib'
17427 ;;
17428
17429tpf*)
17430 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17431 version_type=linux
17432 need_lib_prefix=no
17433 need_version=no
17434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17435 shlibpath_var=LD_LIBRARY_PATH
17436 shlibpath_overrides_runpath=no
17437 hardcode_into_libs=yes
17438 ;;
17439
17440uts4*)
17441 version_type=linux
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443 soname_spec='${libname}${release}${shared_ext}$major'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 ;;
17446
17447*)
17448 dynamic_linker=no
17449 ;;
17450esac
cristy8b350f62009-11-15 23:12:43 +000017451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000017452$as_echo "$dynamic_linker" >&6; }
17453test "$dynamic_linker" = no && can_build_shared=no
17454
17455variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17456if test "$GCC" = yes; then
17457 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17458fi
17459
17460if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17461 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17462fi
17463if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17464 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17465fi
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
cristy8b350f62009-11-15 23:12:43 +000017502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000017503$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17504hardcode_action_CXX=
17505if test -n "$hardcode_libdir_flag_spec_CXX" ||
17506 test -n "$runpath_var_CXX" ||
17507 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17508
17509 # We can hardcode non-existent directories.
17510 if test "$hardcode_direct_CXX" != no &&
17511 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17512 # have to relink, otherwise we might link with an installed library
17513 # when we should be linking with a yet-to-be-installed one
17514 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17515 test "$hardcode_minus_L_CXX" != no; then
17516 # Linking always hardcodes the temporary library directory.
17517 hardcode_action_CXX=relink
17518 else
17519 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17520 hardcode_action_CXX=immediate
17521 fi
17522else
17523 # We cannot hardcode anything, or else we can only hardcode existing
17524 # directories.
17525 hardcode_action_CXX=unsupported
17526fi
cristy8b350f62009-11-15 23:12:43 +000017527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017528$as_echo "$hardcode_action_CXX" >&6; }
17529
17530if test "$hardcode_action_CXX" = relink ||
17531 test "$inherit_rpath_CXX" = yes; then
17532 # Fast installation is not supported
17533 enable_fast_install=no
17534elif test "$shlibpath_overrides_runpath" = yes ||
17535 test "$enable_shared" = no; then
17536 # Fast installation is not necessary
17537 enable_fast_install=needless
17538fi
17539
17540
17541
17542
17543
17544
17545
17546 fi # test -n "$compiler"
17547
17548 CC=$lt_save_CC
17549 LDCXX=$LD
17550 LD=$lt_save_LD
17551 GCC=$lt_save_GCC
17552 with_gnu_ld=$lt_save_with_gnu_ld
17553 lt_cv_path_LDCXX=$lt_cv_path_LD
17554 lt_cv_path_LD=$lt_save_path_LD
17555 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17556 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17557fi # test "$_lt_caught_CXX_error" != yes
17558
17559ac_ext=c
17560ac_cpp='$CPP $CPPFLAGS'
17561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17563ac_compiler_gnu=$ac_cv_c_compiler_gnu
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577 ac_config_commands="$ac_config_commands libtool"
17578
17579
17580
17581
17582# Only expand once:
17583
17584
17585
17586
17587
17588# Configure libltdl
17589
17590
17591
17592
17593
17594
17595
cristy18304f92009-11-22 15:48:26 +000017596
cristy8b350f62009-11-15 23:12:43 +000017597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000017598$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017599if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017600 $as_echo_n "(cached) " >&6
17601else
17602
17603module=yes
17604eval libltdl_cv_shlibext=$shrext_cmds
17605
17606fi
cristy8b350f62009-11-15 23:12:43 +000017607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017608$as_echo "$libltdl_cv_shlibext" >&6; }
17609if test -n "$libltdl_cv_shlibext"; then
17610
17611cat >>confdefs.h <<_ACEOF
17612#define LT_MODULE_EXT "$libltdl_cv_shlibext"
17613_ACEOF
17614
17615fi
17616
cristy8b350f62009-11-15 23:12:43 +000017617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017618$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017619if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017620 $as_echo_n "(cached) " >&6
17621else
17622 lt_cv_module_path_var="$shlibpath_var"
17623fi
cristy8b350f62009-11-15 23:12:43 +000017624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000017625$as_echo "$lt_cv_module_path_var" >&6; }
17626if test -n "$lt_cv_module_path_var"; then
17627
17628cat >>confdefs.h <<_ACEOF
17629#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
17630_ACEOF
17631
17632fi
17633
cristy8b350f62009-11-15 23:12:43 +000017634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017635$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017636if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017637 $as_echo_n "(cached) " >&6
17638else
17639 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
17640fi
cristy8b350f62009-11-15 23:12:43 +000017641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017642$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
17643if test -n "$lt_cv_sys_dlsearch_path"; then
17644 sys_dlsearch_path=
17645 for dir in $lt_cv_sys_dlsearch_path; do
17646 if test -z "$sys_dlsearch_path"; then
17647 sys_dlsearch_path="$dir"
17648 else
17649 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
17650 fi
17651 done
17652
17653cat >>confdefs.h <<_ACEOF
17654#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
17655_ACEOF
17656
17657fi
17658
17659
17660LT_DLLOADERS=
17661
17662
17663ac_ext=c
17664ac_cpp='$CPP $CPPFLAGS'
17665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17667ac_compiler_gnu=$ac_cv_c_compiler_gnu
17668
17669
17670LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000017671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017672$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017673if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017674 $as_echo_n "(cached) " >&6
17675else
17676 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000017677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017678/* end confdefs.h. */
17679
17680/* Override any GCC internal prototype to avoid an error.
17681 Use char because int might match the return type of a GCC
17682 builtin and then its argument prototype would still apply. */
17683#ifdef __cplusplus
17684extern "C"
17685#endif
17686char dlopen ();
17687int
17688main ()
17689{
17690return dlopen ();
17691 ;
17692 return 0;
17693}
17694_ACEOF
17695for ac_lib in '' dl; do
17696 if test -z "$ac_lib"; then
17697 ac_res="none required"
17698 else
17699 ac_res=-l$ac_lib
17700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17701 fi
cristy8b350f62009-11-15 23:12:43 +000017702 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017703 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000017704fi
cristy8b350f62009-11-15 23:12:43 +000017705rm -f core conftest.err conftest.$ac_objext \
17706 conftest$ac_exeext
17707 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017708 break
17709fi
17710done
cristy8b350f62009-11-15 23:12:43 +000017711if test "${ac_cv_search_dlopen+set}" = set; then :
17712
cristy3ed852e2009-09-05 21:47:34 +000017713else
17714 ac_cv_search_dlopen=no
17715fi
17716rm conftest.$ac_ext
17717LIBS=$ac_func_search_save_LIBS
17718fi
cristy8b350f62009-11-15 23:12:43 +000017719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017720$as_echo "$ac_cv_search_dlopen" >&6; }
17721ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000017722if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000017723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17724
cristy8b350f62009-11-15 23:12:43 +000017725$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017726
17727 if test "$ac_cv_search_dlopen" != "none required" ; then
17728 LIBADD_DLOPEN="-ldl"
17729 fi
17730 libltdl_cv_lib_dl_dlopen="yes"
17731 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17732else
cristy8b350f62009-11-15 23:12:43 +000017733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017734/* end confdefs.h. */
17735#if HAVE_DLFCN_H
17736# include <dlfcn.h>
17737#endif
17738
17739int
17740main ()
17741{
17742dlopen(0, 0);
17743 ;
17744 return 0;
17745}
17746_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017747if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017748
cristy8b350f62009-11-15 23:12:43 +000017749$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017750
17751 libltdl_cv_func_dlopen="yes"
17752 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17753else
cristy8b350f62009-11-15 23:12:43 +000017754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017755$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017756if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017757 $as_echo_n "(cached) " >&6
17758else
17759 ac_check_lib_save_LIBS=$LIBS
17760LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017762/* end confdefs.h. */
17763
17764/* Override any GCC internal prototype to avoid an error.
17765 Use char because int might match the return type of a GCC
17766 builtin and then its argument prototype would still apply. */
17767#ifdef __cplusplus
17768extern "C"
17769#endif
17770char dlopen ();
17771int
17772main ()
17773{
17774return dlopen ();
17775 ;
17776 return 0;
17777}
17778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017779if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017780 ac_cv_lib_svld_dlopen=yes
17781else
cristy8b350f62009-11-15 23:12:43 +000017782 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000017783fi
cristy8b350f62009-11-15 23:12:43 +000017784rm -f core conftest.err conftest.$ac_objext \
17785 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017786LIBS=$ac_check_lib_save_LIBS
17787fi
cristy8b350f62009-11-15 23:12:43 +000017788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017789$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017790if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017791
cristy8b350f62009-11-15 23:12:43 +000017792$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017793
17794 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
17795 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17796fi
17797
17798fi
cristy8b350f62009-11-15 23:12:43 +000017799rm -f core conftest.err conftest.$ac_objext \
17800 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017801fi
17802
17803if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17804then
17805 lt_save_LIBS="$LIBS"
17806 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000017807 for ac_func in dlerror
17808do :
17809 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
17810if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017811 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017812#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000017813_ACEOF
17814
17815fi
17816done
17817
17818 LIBS="$lt_save_LIBS"
17819fi
17820
17821
17822LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000017823ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17824if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017825
cristy8b350f62009-11-15 23:12:43 +000017826$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017827
17828 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17829else
cristy8b350f62009-11-15 23:12:43 +000017830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017831$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017832if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017833 $as_echo_n "(cached) " >&6
17834else
17835 ac_check_lib_save_LIBS=$LIBS
17836LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017838/* end confdefs.h. */
17839
17840/* Override any GCC internal prototype to avoid an error.
17841 Use char because int might match the return type of a GCC
17842 builtin and then its argument prototype would still apply. */
17843#ifdef __cplusplus
17844extern "C"
17845#endif
17846char shl_load ();
17847int
17848main ()
17849{
17850return shl_load ();
17851 ;
17852 return 0;
17853}
17854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017855if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017856 ac_cv_lib_dld_shl_load=yes
17857else
cristy8b350f62009-11-15 23:12:43 +000017858 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000017859fi
cristy8b350f62009-11-15 23:12:43 +000017860rm -f core conftest.err conftest.$ac_objext \
17861 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017862LIBS=$ac_check_lib_save_LIBS
17863fi
cristy8b350f62009-11-15 23:12:43 +000017864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000017865$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017866if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017867
cristy8b350f62009-11-15 23:12:43 +000017868$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017869
17870 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17871 LIBADD_SHL_LOAD="-ldld"
17872fi
17873
17874fi
17875
17876
17877
17878case $host_os in
17879darwin[1567].*)
17880# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000017881 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
17882if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017883
cristy8b350f62009-11-15 23:12:43 +000017884$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017885
17886 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
17887fi
17888
17889 ;;
17890beos*)
17891 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
17892 ;;
17893cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000017894 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
17895"
17896if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
17897 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000017898else
cristy8b350f62009-11-15 23:12:43 +000017899 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000017900fi
17901
cristy3ed852e2009-09-05 21:47:34 +000017902cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017903#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000017904_ACEOF
17905
cristy3ed852e2009-09-05 21:47:34 +000017906 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
17907 ;;
17908esac
17909
cristy8b350f62009-11-15 23:12:43 +000017910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017911$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017912if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017913 $as_echo_n "(cached) " >&6
17914else
17915 ac_check_lib_save_LIBS=$LIBS
17916LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017918/* end confdefs.h. */
17919
17920/* Override any GCC internal prototype to avoid an error.
17921 Use char because int might match the return type of a GCC
17922 builtin and then its argument prototype would still apply. */
17923#ifdef __cplusplus
17924extern "C"
17925#endif
17926char dld_link ();
17927int
17928main ()
17929{
17930return dld_link ();
17931 ;
17932 return 0;
17933}
17934_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017935if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017936 ac_cv_lib_dld_dld_link=yes
17937else
cristy8b350f62009-11-15 23:12:43 +000017938 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000017939fi
cristy8b350f62009-11-15 23:12:43 +000017940rm -f core conftest.err conftest.$ac_objext \
17941 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017942LIBS=$ac_check_lib_save_LIBS
17943fi
cristy8b350f62009-11-15 23:12:43 +000017944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000017945$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017946if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017947
cristy8b350f62009-11-15 23:12:43 +000017948$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017949
17950 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
17951fi
17952
17953
17954
17955
17956LT_DLPREOPEN=
17957if test -n "$LT_DLLOADERS"
17958then
17959 for lt_loader in $LT_DLLOADERS; do
17960 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
17961 done
17962
cristy8b350f62009-11-15 23:12:43 +000017963$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017964
17965fi
17966
17967
17968LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
17969
17970
17971ac_ext=c
17972ac_cpp='$CPP $CPPFLAGS'
17973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17975ac_compiler_gnu=$ac_cv_c_compiler_gnu
17976
17977
cristy8b350f62009-11-15 23:12:43 +000017978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000017979$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017980if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017981 $as_echo_n "(cached) " >&6
17982else
17983 lt_cv_sys_symbol_underscore=no
17984 cat > conftest.$ac_ext <<_LT_EOF
17985void nm_test_func(){}
17986int main(){nm_test_func;return 0;}
17987_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000017988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017989 (eval $ac_compile) 2>&5
17990 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17992 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017993 # Now try to grab the symbols.
17994 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000017995 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 +000017996 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
17997 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17999 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000018000 # See whether the symbols have a leading underscore.
18001 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18002 lt_cv_sys_symbol_underscore=yes
18003 else
18004 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18005 :
18006 else
18007 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18008 fi
18009 fi
18010 else
18011 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18012 fi
18013 else
18014 echo "configure: failed program was:" >&5
18015 cat conftest.c >&5
18016 fi
18017 rm -rf conftest*
18018
18019fi
cristy8b350f62009-11-15 23:12:43 +000018020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018021$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18022 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18023
18024
18025if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18026 if test x"$libltdl_cv_func_dlopen" = xyes ||
18027 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000018028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000018029$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018030if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018031 $as_echo_n "(cached) " >&6
18032else
18033 libltdl_cv_need_uscore=unknown
18034 save_LIBS="$LIBS"
18035 LIBS="$LIBS $LIBADD_DLOPEN"
18036 if test "$cross_compiling" = yes; then :
18037 libltdl_cv_need_uscore=cross
18038else
18039 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18040 lt_status=$lt_dlunknown
18041 cat > conftest.$ac_ext <<_LT_EOF
cristy9c562ad2009-12-28 02:17:04 +000018042#line 18042 "configure"
cristy3ed852e2009-09-05 21:47:34 +000018043#include "confdefs.h"
18044
18045#if HAVE_DLFCN_H
18046#include <dlfcn.h>
18047#endif
18048
18049#include <stdio.h>
18050
18051#ifdef RTLD_GLOBAL
18052# define LT_DLGLOBAL RTLD_GLOBAL
18053#else
18054# ifdef DL_GLOBAL
18055# define LT_DLGLOBAL DL_GLOBAL
18056# else
18057# define LT_DLGLOBAL 0
18058# endif
18059#endif
18060
18061/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18062 find out it does not work in some platform. */
18063#ifndef LT_DLLAZY_OR_NOW
18064# ifdef RTLD_LAZY
18065# define LT_DLLAZY_OR_NOW RTLD_LAZY
18066# else
18067# ifdef DL_LAZY
18068# define LT_DLLAZY_OR_NOW DL_LAZY
18069# else
18070# ifdef RTLD_NOW
18071# define LT_DLLAZY_OR_NOW RTLD_NOW
18072# else
18073# ifdef DL_NOW
18074# define LT_DLLAZY_OR_NOW DL_NOW
18075# else
18076# define LT_DLLAZY_OR_NOW 0
18077# endif
18078# endif
18079# endif
18080# endif
18081#endif
18082
cristy18304f92009-11-22 15:48:26 +000018083void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000018084int main ()
18085{
18086 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18087 int status = $lt_dlunknown;
18088
18089 if (self)
18090 {
18091 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000018092 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000018093 /* dlclose (self); */
18094 }
18095 else
18096 puts (dlerror ());
18097
18098 return status;
18099}
18100_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018102 (eval $ac_link) 2>&5
18103 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18105 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000018106 (./conftest; exit; ) >&5 2>/dev/null
18107 lt_status=$?
18108 case x$lt_status in
18109 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
18110 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
18111 x$lt_dlunknown|x*) ;;
18112 esac
18113 else :
18114 # compilation failed
18115
18116 fi
18117fi
18118rm -fr conftest*
18119
18120 LIBS="$save_LIBS"
18121
18122fi
cristy8b350f62009-11-15 23:12:43 +000018123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018124$as_echo "$libltdl_cv_need_uscore" >&6; }
18125 fi
18126fi
18127
18128if test x"$libltdl_cv_need_uscore" = xyes; then
18129
cristy8b350f62009-11-15 23:12:43 +000018130$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018131
18132fi
18133
cristy8b350f62009-11-15 23:12:43 +000018134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018135$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018136if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018137 $as_echo_n "(cached) " >&6
18138else
18139 # PORTME does your system automatically load deplibs for dlopen?
18140 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18141 # For now, we just catch OSes we know something about -- in the
18142 # future, we'll try test this programmatically.
18143 lt_cv_sys_dlopen_deplibs=unknown
18144 case $host_os in
18145 aix3*|aix4.1.*|aix4.2.*)
18146 # Unknown whether this is true for these versions of AIX, but
18147 # we want this `case' here to explicitly catch those versions.
18148 lt_cv_sys_dlopen_deplibs=unknown
18149 ;;
18150 aix[4-9]*)
18151 lt_cv_sys_dlopen_deplibs=yes
18152 ;;
18153 amigaos*)
18154 case $host_cpu in
18155 powerpc)
18156 lt_cv_sys_dlopen_deplibs=no
18157 ;;
18158 esac
18159 ;;
18160 darwin*)
18161 # Assuming the user has installed a libdl from somewhere, this is true
18162 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
18163 lt_cv_sys_dlopen_deplibs=yes
18164 ;;
18165 freebsd* | dragonfly*)
18166 lt_cv_sys_dlopen_deplibs=yes
18167 ;;
cristy18304f92009-11-22 15:48:26 +000018168 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018169 # GNU and its variants, using gnu ld.so (Glibc)
18170 lt_cv_sys_dlopen_deplibs=yes
18171 ;;
18172 hpux10*|hpux11*)
18173 lt_cv_sys_dlopen_deplibs=yes
18174 ;;
18175 interix*)
18176 lt_cv_sys_dlopen_deplibs=yes
18177 ;;
18178 irix[12345]*|irix6.[01]*)
18179 # Catch all versions of IRIX before 6.2, and indicate that we don't
18180 # know how it worked for any of those versions.
18181 lt_cv_sys_dlopen_deplibs=unknown
18182 ;;
18183 irix*)
18184 # The case above catches anything before 6.2, and it's known that
18185 # at 6.2 and later dlopen does load deplibs.
18186 lt_cv_sys_dlopen_deplibs=yes
18187 ;;
18188 netbsd*)
18189 lt_cv_sys_dlopen_deplibs=yes
18190 ;;
18191 openbsd*)
18192 lt_cv_sys_dlopen_deplibs=yes
18193 ;;
18194 osf[1234]*)
18195 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18196 # it did *not* use an RPATH in a shared library to find objects the
18197 # library depends on, so we explicitly say `no'.
18198 lt_cv_sys_dlopen_deplibs=no
18199 ;;
18200 osf5.0|osf5.0a|osf5.1)
18201 # dlopen *does* load deplibs and with the right loader patch applied
18202 # it even uses RPATH in a shared library to search for shared objects
18203 # that the library depends on, but there's no easy way to know if that
18204 # patch is installed. Since this is the case, all we can really
18205 # say is unknown -- it depends on the patch being installed. If
18206 # it is, this changes to `yes'. Without it, it would be `no'.
18207 lt_cv_sys_dlopen_deplibs=unknown
18208 ;;
18209 osf*)
18210 # the two cases above should catch all versions of osf <= 5.1. Read
18211 # the comments above for what we know about them.
18212 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18213 # is used to find them so we can finally say `yes'.
18214 lt_cv_sys_dlopen_deplibs=yes
18215 ;;
18216 qnx*)
18217 lt_cv_sys_dlopen_deplibs=yes
18218 ;;
18219 solaris*)
18220 lt_cv_sys_dlopen_deplibs=yes
18221 ;;
18222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18223 libltdl_cv_sys_dlopen_deplibs=yes
18224 ;;
18225 esac
18226
18227fi
cristy8b350f62009-11-15 23:12:43 +000018228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018229$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18230if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18231
cristy8b350f62009-11-15 23:12:43 +000018232$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018233
18234fi
18235
18236:
18237
cristy3ed852e2009-09-05 21:47:34 +000018238for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000018239do :
18240 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18241"
18242if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018243 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018244#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000018245_ACEOF
18246
18247fi
18248
18249done
18250
18251
cristy8b350f62009-11-15 23:12:43 +000018252ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000018253# include <argz.h>
18254#endif
cristy8b350f62009-11-15 23:12:43 +000018255"
18256if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018257
18258cat >>confdefs.h <<_ACEOF
18259#define HAVE_ERROR_T 1
18260_ACEOF
18261
18262
18263else
18264
cristy8b350f62009-11-15 23:12:43 +000018265$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018266
18267
cristy8b350f62009-11-15 23:12:43 +000018268$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018269
18270fi
18271
18272
18273ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000018274for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
18275 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000018276do :
18277 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18278ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18279eval as_val=\$$as_ac_var
18280 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018281 cat >>confdefs.h <<_ACEOF
18282#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18283_ACEOF
18284
18285else
18286 ARGZ_H=argz.h;
18287
18288 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18289
18290fi
18291done
18292
18293
cristy8b350f62009-11-15 23:12:43 +000018294if test -z "$ARGZ_H"; then :
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018296$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018297if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018298 $as_echo_n "(cached) " >&6
18299else
18300 case $host_os in #(
18301 *cygwin*)
18302 lt_cv_sys_argz_works=no
18303 if test "$cross_compiling" != no; then
18304 lt_cv_sys_argz_works="guessing no"
18305 else
18306 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
18307 save_IFS=$IFS
18308 IFS=-.
18309 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
18310 IFS=$save_IFS
18311 lt_os_major=${2-0}
18312 lt_os_minor=${3-0}
18313 lt_os_micro=${4-0}
18314 if test "$lt_os_major" -gt 1 \
18315 || { test "$lt_os_major" -eq 1 \
18316 && { test "$lt_os_minor" -gt 5 \
18317 || { test "$lt_os_minor" -eq 5 \
18318 && test "$lt_os_micro" -gt 24; }; }; }; then
18319 lt_cv_sys_argz_works=yes
18320 fi
18321 fi
18322 ;; #(
18323 *) lt_cv_sys_argz_works=yes ;;
18324 esac
18325fi
cristy8b350f62009-11-15 23:12:43 +000018326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018327$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018328 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018329
cristy8b350f62009-11-15 23:12:43 +000018330$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018331
18332else
18333 ARGZ_H=argz.h
18334
18335
18336 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18337
18338fi
cristy3ed852e2009-09-05 21:47:34 +000018339fi
18340
18341
18342
cristy8b350f62009-11-15 23:12:43 +000018343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018344$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018345if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018346 $as_echo_n "(cached) " >&6
18347else
18348 if test -n "$lt_cv_sys_global_symbol_pipe"; then
18349 libltdl_cv_preloaded_symbols=yes
18350 else
18351 libltdl_cv_preloaded_symbols=no
18352 fi
18353
18354fi
cristy8b350f62009-11-15 23:12:43 +000018355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018356$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
18357if test x"$libltdl_cv_preloaded_symbols" = xyes; then
18358
cristy8b350f62009-11-15 23:12:43 +000018359$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018360
18361fi
18362
18363# Set options
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000018376if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018377 withval=$with_included_ltdl;
18378fi
18379
18380
18381if test "x$with_included_ltdl" != xyes; then
18382 # We are not being forced to use the included libltdl sources, so
18383 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000018384 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000018385
cristy8b350f62009-11-15 23:12:43 +000018386"
18387if test "x$ac_cv_header_ltdl_h" = x""yes; then :
18388 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 +000018389 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000018390"
18391if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000018393$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018394if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018395 $as_echo_n "(cached) " >&6
18396else
18397 ac_check_lib_save_LIBS=$LIBS
18398LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018400/* end confdefs.h. */
18401
18402/* Override any GCC internal prototype to avoid an error.
18403 Use char because int might match the return type of a GCC
18404 builtin and then its argument prototype would still apply. */
18405#ifdef __cplusplus
18406extern "C"
18407#endif
18408char lt_dladvise_preload ();
18409int
18410main ()
18411{
18412return lt_dladvise_preload ();
18413 ;
18414 return 0;
18415}
18416_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018417if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018418 ac_cv_lib_ltdl_lt_dladvise_preload=yes
18419else
cristy8b350f62009-11-15 23:12:43 +000018420 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000018421fi
cristy8b350f62009-11-15 23:12:43 +000018422rm -f core conftest.err conftest.$ac_objext \
18423 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018424LIBS=$ac_check_lib_save_LIBS
18425fi
cristy8b350f62009-11-15 23:12:43 +000018426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000018427$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018428if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018429 with_included_ltdl=no
18430else
18431 with_included_ltdl=yes
18432fi
18433
18434else
18435 with_included_ltdl=yes
18436fi
18437
18438else
18439 with_included_ltdl=yes
18440fi
18441
18442
18443fi
18444
18445
18446
18447
18448# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000018449if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018450 withval=$with_ltdl_include;
18451fi
18452
18453
18454if test -n "$with_ltdl_include"; then
18455 if test -f "$with_ltdl_include/ltdl.h"; then :
18456 else
cristy8b350f62009-11-15 23:12:43 +000018457 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018458 fi
18459else
18460 with_ltdl_include=no
18461fi
18462
18463
18464# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000018465if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018466 withval=$with_ltdl_lib;
18467fi
18468
18469
18470if test -n "$with_ltdl_lib"; then
18471 if test -f "$with_ltdl_lib/libltdl.la"; then :
18472 else
cristy8b350f62009-11-15 23:12:43 +000018473 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018474 fi
18475else
18476 with_ltdl_lib=no
18477fi
18478
18479case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
18480 ,yes,no,no,)
18481 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000018482 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000018483 "") enable_ltdl_convenience=yes
18484 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
18485esac
18486LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
18487LTDLDEPS=$LIBLTDL
18488LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
18489
18490
18491
18492
18493
18494# For backwards non-gettext consistent compatibility...
18495INCLTDL="$LTDLINCL"
18496
18497
18498 ;;
18499 ,no,no,no,)
18500 # If the included ltdl is not to be used, then use the
18501 # preinstalled libltdl we found.
18502
cristy8b350f62009-11-15 23:12:43 +000018503$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018504
18505 LIBLTDL=-lltdl
18506 LTDLDEPS=
18507 LTDLINCL=
18508 ;;
18509 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000018510 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018511 ;;
18512 *) with_included_ltdl=no
18513 LIBLTDL="-L$with_ltdl_lib -lltdl"
18514 LTDLDEPS=
18515 LTDLINCL="-I$with_ltdl_include"
18516 ;;
18517esac
18518INCLTDL="$LTDLINCL"
18519
18520# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000018521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000018522$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018524$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000018526$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018528$as_echo "$LIBLTDL" >&6; }
18529
18530
18531
18532# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000018533if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018534 enableval=$enable_ltdl_install;
18535fi
18536
18537
18538case ,${enable_ltdl_install},${enable_ltdl_convenience} in
18539 *yes*) ;;
18540 *) enable_ltdl_convenience=yes ;;
18541esac
18542
18543 if test x"${enable_ltdl_install-no}" != xno; then
18544 INSTALL_LTDL_TRUE=
18545 INSTALL_LTDL_FALSE='#'
18546else
18547 INSTALL_LTDL_TRUE='#'
18548 INSTALL_LTDL_FALSE=
18549fi
18550
18551 if test x"${enable_ltdl_convenience-no}" != xno; then
18552 CONVENIENCE_LTDL_TRUE=
18553 CONVENIENCE_LTDL_FALSE='#'
18554else
18555 CONVENIENCE_LTDL_TRUE='#'
18556 CONVENIENCE_LTDL_FALSE=
18557fi
18558
18559
18560
18561
18562
18563
cristy18304f92009-11-22 15:48:26 +000018564
cristy3ed852e2009-09-05 21:47:34 +000018565# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
18566# the user used. This is so that ltdl.h can pick up the parent projects
18567# config.h file, The first file in AC_CONFIG_HEADERS must contain the
18568# definitions required by ltdl.c.
18569# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
18570
18571
18572
cristy3ed852e2009-09-05 21:47:34 +000018573for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000018574do :
18575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18576ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18577"
18578eval as_val=\$$as_ac_Header
18579 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018580 cat >>confdefs.h <<_ACEOF
18581#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18582_ACEOF
18583
18584fi
18585
18586done
18587
18588
cristy3ed852e2009-09-05 21:47:34 +000018589for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000018590do :
18591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18592ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18593eval as_val=\$$as_ac_var
18594 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018595 cat >>confdefs.h <<_ACEOF
18596#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18597_ACEOF
18598
18599else
18600
18601
18602 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
18603
18604fi
18605done
18606
cristy3ed852e2009-09-05 21:47:34 +000018607for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000018608do :
18609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18610ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18611eval as_val=\$$as_ac_var
18612 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018613 cat >>confdefs.h <<_ACEOF
18614#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18615_ACEOF
18616
18617else
18618
18619
18620 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
18621
18622fi
18623done
18624
18625
18626
18627cat >>confdefs.h <<_ACEOF
18628#define LT_LIBEXT "$libext"
18629_ACEOF
18630
18631
18632name=ltdl
18633LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
18634
18635
18636
18637
18638
18639
18640
18641
18642# Only expand once:
18643
18644
18645
18646# Check to see if building shared libraries
18647libtool_build_shared_libs='no'
18648if test "$enable_shared" = 'yes'; then
18649 libtool_build_shared_libs='yes'
18650fi
18651
18652# Check to see if building static libraries
18653libtool_build_static_libs='no'
18654if test "$enable_static" = 'yes'; then
18655 libtool_build_static_libs='yes'
18656fi
18657
18658# MinGW and Cygwin can't build C++ DLLs which support exceptions.
18659if test "${StaticCplusPlusLibraries}" = 'yes'; then
18660 LTCXXLIBOPTS='--static'
18661
18662fi
18663
18664#
18665# Enable support for building loadable modules
18666#
18667
18668# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000018669if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018670 withval=$with_modules; with_modules=$withval
18671else
18672 with_modules=$libtool_build_shared_libs
18673fi
18674
18675
18676# Only allow building loadable modules if we are building shared libraries
18677if test "$with_modules" != 'no' ; then
18678 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000018679 { $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 +000018680$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
18681 with_modules='no'
18682 fi
18683fi
18684if test "$with_modules" != 'no'; then
18685
cristy8b350f62009-11-15 23:12:43 +000018686$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018687
18688fi
18689 if test "$with_modules" != 'no'; then
18690 WITH_MODULES_TRUE=
18691 WITH_MODULES_FALSE='#'
18692else
18693 WITH_MODULES_TRUE='#'
18694 WITH_MODULES_FALSE=
18695fi
18696
18697
18698# Enable building/use of libltdl if we are building shared libraries regardless
18699# of whether modules are built or not.
18700with_ltdl='no'
18701if test "$libtool_build_shared_libs" != 'no'; then
18702 with_ltdl='yes'
18703fi
18704
18705 if test "$with_ltdl" != 'no'; then
18706 WITH_LTDL_TRUE=
18707 WITH_LTDL_FALSE='#'
18708else
18709 WITH_LTDL_TRUE='#'
18710 WITH_LTDL_FALSE=
18711fi
18712
18713if test "$with_ltdl" != 'no'; then
18714
cristy8b350f62009-11-15 23:12:43 +000018715$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018716
18717
18718 # Set DLLDFLAGS
18719 if test X"$enable_shared" = Xyes; then
18720 DLLDFLAGS=-export-dynamic
18721
18722 fi
18723fi
18724
18725# Enable build using delegate libraries built in subdirectories rather than installed
18726# delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
18727# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000018728if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018729 enableval=$enable_delegate_build; enable_delegate_build=$enableval
18730else
18731 enable_delegate_build='no'
18732fi
18733
18734
18735# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000018736if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018737 enableval=$enable_deprecated; enable_deprecated=$enableval
18738else
18739 enable_deprecated='no'
18740fi
18741
18742
18743if test "$enable_deprecated" = 'yes'; then
18744
cristy8b350f62009-11-15 23:12:43 +000018745$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018746
18747else
18748 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
18749fi
18750
18751# Build a version of ImageMagick which operates uninstalled.
18752# Used to build distributions located via MAGICK_HOME / executable path
18753# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000018754if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018755 enableval=$enable_installed; enable_installed=$enableval
18756else
18757 enable_installed='yes'
18758fi
18759
18760
18761if test "$enable_installed" = 'yes'; then
18762
cristy8b350f62009-11-15 23:12:43 +000018763$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018764
18765else
18766 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
18767fi
18768
18769# Permit enciphering and deciphering image pixels.
18770# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000018771if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018772 enableval=$enable_cipher; enable_cipher=$enableval
18773else
18774 enable_cipher='yes'
18775fi
18776
18777
18778if test "$enable_cipher" = 'yes'; then
18779
cristy8b350f62009-11-15 23:12:43 +000018780$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018781
18782fi
18783
18784# Build an embeddable version of ImageMagick.
18785# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000018786if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018787 enableval=$enable_embeddable; enable_embeddable=$enableval
18788else
18789 enable_embeddable='no'
18790fi
18791
18792
18793if test "$enable_embeddable" = 'yes'; then
18794
cristy8b350f62009-11-15 23:12:43 +000018795$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018796
18797fi
18798
18799# Build a high dynamic range version of ImageMagick.
18800# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000018801if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018802 enableval=$enable_hdri; enable_hdri=$enableval
18803else
18804 enable_hdri='no'
18805fi
18806
18807
18808MAGICK_HDRI=""
18809if test "$enable_hdri" = 'yes'; then
18810 MAGICK_HDRI="HDRI"
18811
cristy8b350f62009-11-15 23:12:43 +000018812$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018813
18814fi
18815
cristy3ed852e2009-09-05 21:47:34 +000018816# Build a version of ImageMagick with assert statements.
18817# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000018818if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018819 enableval=$enable_assert; enable_assert=$enableval
18820else
18821 enable_assert='yes'
18822fi
18823
18824
18825if test "$enable_assert" = 'no'; then
18826
cristy8b350f62009-11-15 23:12:43 +000018827$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018828
18829fi
18830
18831# Add configure option --enable-maintainer-mode which enables dependency
18832# checking and generation useful to package maintainers. This is made an
18833# option to avoid confusing end users.
18834
cristy8b350f62009-11-15 23:12:43 +000018835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000018836$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18837 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000018838if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018839 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18840else
18841 USE_MAINTAINER_MODE=no
18842fi
18843
cristy8b350f62009-11-15 23:12:43 +000018844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000018845$as_echo "$USE_MAINTAINER_MODE" >&6; }
18846 if test $USE_MAINTAINER_MODE = yes; then
18847 MAINTAINER_MODE_TRUE=
18848 MAINTAINER_MODE_FALSE='#'
18849else
18850 MAINTAINER_MODE_TRUE='#'
18851 MAINTAINER_MODE_FALSE=
18852fi
18853
18854 MAINT=$MAINTAINER_MODE_TRUE
18855
18856
18857
18858
18859# Enable ccmalloc memory debugging support
18860# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000018861if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018862 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
18863else
18864 enable_ccmalloc='no'
18865fi
18866
18867
18868# Enable Electric Fence memory debugging support
18869# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000018870if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018871 enableval=$enable_efence; enable_efence=$enableval
18872else
18873 enable_efence='no'
18874fi
18875
18876
18877# Enable prof-based profiling support
18878# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000018879if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018880 enableval=$enable_prof; enable_prof=$enableval
18881else
18882 enable_prof='no'
18883fi
18884
18885
18886# Enable gprof-based profiling support
18887# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000018888if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018889 enableval=$enable_gprof; enable_gprof=$enableval
18890else
18891 enable_gprof='no'
18892fi
18893
18894
18895# Enable gcov-based profiling support
18896# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000018897if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018898 enableval=$enable_gcov; enable_gcov=$enableval
18899else
18900 enable_gcov='no'
18901fi
18902
18903
18904enable_profiling='no'
18905if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
18906 enable_profiling='yes'
18907 if test "$libtool_build_shared_libs" = 'yes'; then
18908 echo "Warning: Can not profile code using shared libraries"
18909 fi
18910fi
18911
18912# Magick API method prefix
18913
18914# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000018915if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018916 withval=$with_method_prefix; with_method_prefix=$enableval
18917else
18918 with_method_prefix=''
18919fi
18920
18921
18922if test "$with_method_prefix" != ''; then
18923
18924cat >>confdefs.h <<_ACEOF
18925#define NAMESPACE_PREFIX $with_method_prefix
18926_ACEOF
18927
18928fi
18929
18930# Number of bits in a Quantum
18931
18932# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000018933if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018934 withval=$with_quantum_depth; with_quantum_depth=$withval
18935else
18936 with_quantum_depth=16
18937fi
18938
18939
18940if test "$with_quantum_depth" != '8'; then
18941 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
18942fi
18943
18944case "${with_quantum_depth}" in
18945 8 ) ;;
18946 16 ) ;;
18947 32 ) ;;
18948 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000018949 * ) { as_fn_set_status 16
18950as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000018951esac
18952QUANTUM_DEPTH="$with_quantum_depth"
18953
18954cat >>confdefs.h <<_ACEOF
18955#define QUANTUM_DEPTH $QUANTUM_DEPTH
18956_ACEOF
18957
18958
18959# Set pixel cache threshold
18960
18961# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000018962if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018963 withval=$with_cache; with_cache=$withval
18964else
18965 with_cache=''
18966fi
18967
18968
18969if test "$with_cache" != ''; then
18970
18971cat >>confdefs.h <<_ACEOF
18972#define PixelCacheThreshold $with_cache
18973_ACEOF
18974
18975 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
18976fi
18977
18978# Disable/Enable support for full delegate paths
18979
18980# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000018981if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018982 withval=$with_frozenpaths; with_frozenpaths=$withval
18983else
18984 with_frozenpaths='no'
18985fi
18986
18987
18988# Enable build/install of Magick++
18989
18990# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000018991if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018992 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
18993else
18994 with_magick_plus_plus='yes'
18995fi
18996
18997
18998# Disable build/install of PerlMagick.
18999
19000# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000019001if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019002 withval=$with_perl; with_perl=$withval
19003else
19004 with_perl=$libtool_build_shared_libs
19005fi
19006
19007
19008# Options to pass when configuring PerlMagick
19009
19010# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000019011if test "${with_perl_options+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019012 withval=$with_perl_options;
19013fi
19014
19015
19016PERL_MAKE_OPTIONS=$with_perl_options
19017
19018
19019
19020# Enable umem, object-caching memory allocation library.
19021
19022# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000019023if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019024 withval=$with_umem; with_umem=$withval
19025else
19026 with_umem='no'
19027fi
19028
19029if test "$with_umem" != 'yes' ; then
19030 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19031fi
19032
19033#
19034# Specify path to shared libstdc++ if not in normal location
19035#
19036
19037# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000019038if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019039 withval=$with_libstdc; with_libstdc=$withval
19040else
19041 with_libstdc=''
19042fi
19043
19044
19045if test "$with_libstdc" != ''; then
19046 if test -d "$with_libstdc"; then
19047 LIBSTDCLDFLAGS="-L$with_libstdc"
19048 fi
19049fi
19050
19051
19052# Does gcc required -traditional?
19053if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000019054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019055$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019056if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019057 $as_echo_n "(cached) " >&6
19058else
19059 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000019060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019061/* end confdefs.h. */
19062#include <sgtty.h>
19063Autoconf TIOCGETP
19064_ACEOF
19065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019066 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019067 ac_cv_prog_gcc_traditional=yes
19068else
19069 ac_cv_prog_gcc_traditional=no
19070fi
19071rm -f conftest*
19072
19073
19074 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000019075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019076/* end confdefs.h. */
19077#include <termio.h>
19078Autoconf TCGETA
19079_ACEOF
19080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019081 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019082 ac_cv_prog_gcc_traditional=yes
19083fi
19084rm -f conftest*
19085
19086 fi
19087fi
cristy8b350f62009-11-15 23:12:43 +000019088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019089$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19090 if test $ac_cv_prog_gcc_traditional = yes; then
19091 CC="$CC -traditional"
19092 fi
19093fi
19094
19095
19096########
19097#
19098# Set defines required to build DLLs and modules using MinGW
19099#
19100########
19101# These options are set for multi-thread DLL module build
19102# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
19103# module: _DLL
19104# executable/Magick++: _DLL _MAGICKMOD_
19105MODULE_EXTRA_CPPFLAGS=''
19106LIBRARY_EXTRA_CPPFLAGS=''
19107if test "${native_win32_build}" = 'yes'; then
19108 if test "${libtool_build_shared_libs}" = 'yes'; then
19109 CPPFLAGS="$CPPFLAGS -D_DLL"
19110 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
19111 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
19112 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19113 if test "$with_modules" = 'yes'; then
19114 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
19115 else
19116 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19117 fi
19118 else
19119 CPPFLAGS="$CPPFLAGS -D_LIB"
19120 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
19121 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
19122 fi
19123 if test "$with_threads" = 'yes'; then
19124 CPPFLAGS="$CPPFLAGS -D_MT"
19125 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
19126 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
19127 fi
19128fi
19129
19130
19131
19132# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000019133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000019134$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019135if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019136 $as_echo_n "(cached) " >&6
19137else
cristy8b350f62009-11-15 23:12:43 +000019138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019139/* end confdefs.h. */
19140#include <stdlib.h>
19141#include <stdarg.h>
19142#include <string.h>
19143#include <float.h>
19144
19145int
19146main ()
19147{
19148
19149 ;
19150 return 0;
19151}
19152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019153if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019154 ac_cv_header_stdc=yes
19155else
cristy8b350f62009-11-15 23:12:43 +000019156 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019157fi
cristy3ed852e2009-09-05 21:47:34 +000019158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19159
19160if test $ac_cv_header_stdc = yes; then
19161 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019163/* end confdefs.h. */
19164#include <string.h>
19165
19166_ACEOF
19167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019168 $EGREP "memchr" >/dev/null 2>&1; then :
19169
cristy3ed852e2009-09-05 21:47:34 +000019170else
19171 ac_cv_header_stdc=no
19172fi
19173rm -f conftest*
19174
19175fi
19176
19177if test $ac_cv_header_stdc = yes; then
19178 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019180/* end confdefs.h. */
19181#include <stdlib.h>
19182
19183_ACEOF
19184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019185 $EGREP "free" >/dev/null 2>&1; then :
19186
cristy3ed852e2009-09-05 21:47:34 +000019187else
19188 ac_cv_header_stdc=no
19189fi
19190rm -f conftest*
19191
19192fi
19193
19194if test $ac_cv_header_stdc = yes; then
19195 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000019196 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019197 :
19198else
cristy8b350f62009-11-15 23:12:43 +000019199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019200/* end confdefs.h. */
19201#include <ctype.h>
19202#include <stdlib.h>
19203#if ((' ' & 0x0FF) == 0x020)
19204# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19205# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19206#else
19207# define ISLOWER(c) \
19208 (('a' <= (c) && (c) <= 'i') \
19209 || ('j' <= (c) && (c) <= 'r') \
19210 || ('s' <= (c) && (c) <= 'z'))
19211# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19212#endif
19213
19214#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19215int
19216main ()
19217{
19218 int i;
19219 for (i = 0; i < 256; i++)
19220 if (XOR (islower (i), ISLOWER (i))
19221 || toupper (i) != TOUPPER (i))
19222 return 2;
19223 return 0;
19224}
19225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019226if ac_fn_c_try_run "$LINENO"; then :
19227
cristy3ed852e2009-09-05 21:47:34 +000019228else
cristy8b350f62009-11-15 23:12:43 +000019229 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019230fi
cristy8b350f62009-11-15 23:12:43 +000019231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19232 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019233fi
19234
cristy3ed852e2009-09-05 21:47:34 +000019235fi
19236fi
cristy8b350f62009-11-15 23:12:43 +000019237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000019238$as_echo "$ac_cv_header_stdc" >&6; }
19239if test $ac_cv_header_stdc = yes; then
19240
cristy8b350f62009-11-15 23:12:43 +000019241$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019242
19243fi
19244
19245if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000019246 { $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 +000019247 header files. Compilation cannot proceed. Please install the ANSI C
19248 headers and rerun this script." >&5
19249$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19250 header files. Compilation cannot proceed. Please install the ANSI C
19251 headers and rerun this script." >&2;};
19252fi
cristy3ed852e2009-09-05 21:47:34 +000019253ac_header_dirent=no
19254for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19255 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000019256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000019257$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000019259 $as_echo_n "(cached) " >&6
19260else
cristy8b350f62009-11-15 23:12:43 +000019261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019262/* end confdefs.h. */
19263#include <sys/types.h>
19264#include <$ac_hdr>
19265
19266int
19267main ()
19268{
19269if ((DIR *) 0)
19270return 0;
19271 ;
19272 return 0;
19273}
19274_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019275if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019276 eval "$as_ac_Header=yes"
19277else
cristy8b350f62009-11-15 23:12:43 +000019278 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000019279fi
cristy3ed852e2009-09-05 21:47:34 +000019280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19281fi
cristy8b350f62009-11-15 23:12:43 +000019282eval ac_res=\$$as_ac_Header
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000019284$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019285eval as_val=\$$as_ac_Header
19286 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019287 cat >>confdefs.h <<_ACEOF
19288#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19289_ACEOF
19290
19291ac_header_dirent=$ac_hdr; break
19292fi
19293
19294done
19295# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19296if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000019297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019298$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019299if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019300 $as_echo_n "(cached) " >&6
19301else
19302 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019304/* end confdefs.h. */
19305
19306/* Override any GCC internal prototype to avoid an error.
19307 Use char because int might match the return type of a GCC
19308 builtin and then its argument prototype would still apply. */
19309#ifdef __cplusplus
19310extern "C"
19311#endif
19312char opendir ();
19313int
19314main ()
19315{
19316return opendir ();
19317 ;
19318 return 0;
19319}
19320_ACEOF
19321for ac_lib in '' dir; do
19322 if test -z "$ac_lib"; then
19323 ac_res="none required"
19324 else
19325 ac_res=-l$ac_lib
19326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19327 fi
cristy8b350f62009-11-15 23:12:43 +000019328 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019329 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019330fi
cristy8b350f62009-11-15 23:12:43 +000019331rm -f core conftest.err conftest.$ac_objext \
19332 conftest$ac_exeext
19333 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019334 break
19335fi
19336done
cristy8b350f62009-11-15 23:12:43 +000019337if test "${ac_cv_search_opendir+set}" = set; then :
19338
cristy3ed852e2009-09-05 21:47:34 +000019339else
19340 ac_cv_search_opendir=no
19341fi
19342rm conftest.$ac_ext
19343LIBS=$ac_func_search_save_LIBS
19344fi
cristy8b350f62009-11-15 23:12:43 +000019345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019346$as_echo "$ac_cv_search_opendir" >&6; }
19347ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019348if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19350
19351fi
19352
19353else
cristy8b350f62009-11-15 23:12:43 +000019354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019355$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019356if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019357 $as_echo_n "(cached) " >&6
19358else
19359 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019361/* end confdefs.h. */
19362
19363/* Override any GCC internal prototype to avoid an error.
19364 Use char because int might match the return type of a GCC
19365 builtin and then its argument prototype would still apply. */
19366#ifdef __cplusplus
19367extern "C"
19368#endif
19369char opendir ();
19370int
19371main ()
19372{
19373return opendir ();
19374 ;
19375 return 0;
19376}
19377_ACEOF
19378for ac_lib in '' x; do
19379 if test -z "$ac_lib"; then
19380 ac_res="none required"
19381 else
19382 ac_res=-l$ac_lib
19383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19384 fi
cristy8b350f62009-11-15 23:12:43 +000019385 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019386 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019387fi
cristy8b350f62009-11-15 23:12:43 +000019388rm -f core conftest.err conftest.$ac_objext \
19389 conftest$ac_exeext
19390 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019391 break
19392fi
19393done
cristy8b350f62009-11-15 23:12:43 +000019394if test "${ac_cv_search_opendir+set}" = set; then :
19395
cristy3ed852e2009-09-05 21:47:34 +000019396else
19397 ac_cv_search_opendir=no
19398fi
19399rm conftest.$ac_ext
19400LIBS=$ac_func_search_save_LIBS
19401fi
cristy8b350f62009-11-15 23:12:43 +000019402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019403$as_echo "$ac_cv_search_opendir" >&6; }
19404ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019405if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19407
19408fi
19409
19410fi
19411
19412
19413# Check additional headers
cristy3ed852e2009-09-05 21:47:34 +000019414for 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 +000019415do :
19416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19417ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19418eval as_val=\$$as_ac_Header
19419 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019420 cat >>confdefs.h <<_ACEOF
19421#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19422_ACEOF
19423
19424fi
19425
19426done
19427
19428
19429########
19430#
19431# Checks for typedefs, structures, and compiler characteristics.
19432#
19433########
19434
cristy8b350f62009-11-15 23:12:43 +000019435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000019436$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019437if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019438 $as_echo_n "(cached) " >&6
19439else
cristy8b350f62009-11-15 23:12:43 +000019440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019441/* end confdefs.h. */
19442
19443#include <stdbool.h>
19444#ifndef bool
19445 "error: bool is not defined"
19446#endif
19447#ifndef false
19448 "error: false is not defined"
19449#endif
19450#if false
19451 "error: false is not 0"
19452#endif
19453#ifndef true
19454 "error: true is not defined"
19455#endif
19456#if true != 1
19457 "error: true is not 1"
19458#endif
19459#ifndef __bool_true_false_are_defined
19460 "error: __bool_true_false_are_defined is not defined"
19461#endif
19462
19463 struct s { _Bool s: 1; _Bool t; } s;
19464
19465 char a[true == 1 ? 1 : -1];
19466 char b[false == 0 ? 1 : -1];
19467 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19468 char d[(bool) 0.5 == true ? 1 : -1];
19469 bool e = &s;
19470 char f[(_Bool) 0.0 == false ? 1 : -1];
19471 char g[true];
19472 char h[sizeof (_Bool)];
19473 char i[sizeof s.t];
19474 enum { j = false, k = true, l = false * true, m = true * 256 };
19475 /* The following fails for
19476 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19477 _Bool n[m];
19478 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19479 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19480# if defined __xlc__ || defined __GNUC__
19481 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19482 reported by James Lemley on 2005-10-05; see
19483 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19484 This test is not quite right, since xlc is allowed to
19485 reject this program, as the initializer for xlcbug is
19486 not one of the forms that C requires support for.
19487 However, doing the test right would require a runtime
19488 test, and that would make cross-compilation harder.
19489 Let us hope that IBM fixes the xlc bug, and also adds
19490 support for this kind of constant expression. In the
19491 meantime, this test will reject xlc, which is OK, since
19492 our stdbool.h substitute should suffice. We also test
19493 this with GCC, where it should work, to detect more
19494 quickly whether someone messes up the test in the
19495 future. */
19496 char digs[] = "0123456789";
19497 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19498# endif
19499 /* Catch a bug in an HP-UX C compiler. See
19500 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19501 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19502 */
19503 _Bool q = true;
19504 _Bool *pq = &q;
19505
19506int
19507main ()
19508{
19509
19510 *pq |= q;
19511 *pq |= ! q;
19512 /* Refer to every declared value, to avoid compiler optimizations. */
19513 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19514 + !m + !n + !o + !p + !q + !pq);
19515
19516 ;
19517 return 0;
19518}
19519_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019520if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019521 ac_cv_header_stdbool_h=yes
19522else
cristy8b350f62009-11-15 23:12:43 +000019523 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000019524fi
cristy3ed852e2009-09-05 21:47:34 +000019525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19526fi
cristy8b350f62009-11-15 23:12:43 +000019527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000019528$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019529ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19530if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019531
19532cat >>confdefs.h <<_ACEOF
19533#define HAVE__BOOL 1
19534_ACEOF
19535
19536
19537fi
19538
19539if test $ac_cv_header_stdbool_h = yes; then
19540
cristy8b350f62009-11-15 23:12:43 +000019541$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019542
19543fi
19544
cristy8b350f62009-11-15 23:12:43 +000019545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019546$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019547if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019548 $as_echo_n "(cached) " >&6
19549else
cristy8b350f62009-11-15 23:12:43 +000019550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019551/* end confdefs.h. */
19552
19553int
19554main ()
19555{
19556
19557volatile int x;
19558int * volatile y = (int *) 0;
19559return !x && !y;
19560 ;
19561 return 0;
19562}
19563_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019564if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019565 ac_cv_c_volatile=yes
19566else
cristy8b350f62009-11-15 23:12:43 +000019567 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000019568fi
cristy3ed852e2009-09-05 21:47:34 +000019569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570fi
cristy8b350f62009-11-15 23:12:43 +000019571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019572$as_echo "$ac_cv_c_volatile" >&6; }
19573if test $ac_cv_c_volatile = no; then
19574
cristy8b350f62009-11-15 23:12:43 +000019575$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019576
19577fi
19578
cristy8b350f62009-11-15 23:12:43 +000019579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000019580$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019581if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019582 $as_echo_n "(cached) " >&6
19583else
cristy8b350f62009-11-15 23:12:43 +000019584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019585/* end confdefs.h. */
19586#define x(y) #y
19587
19588char *s = x(teststring);
19589_ACEOF
19590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019591 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019592 ac_cv_c_stringize=no
19593else
19594 ac_cv_c_stringize=yes
19595fi
19596rm -f conftest*
19597
19598fi
cristy8b350f62009-11-15 23:12:43 +000019599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000019600$as_echo "$ac_cv_c_stringize" >&6; }
19601if test $ac_cv_c_stringize = yes; then
19602
cristy8b350f62009-11-15 23:12:43 +000019603$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019604
19605fi
19606
cristy8b350f62009-11-15 23:12:43 +000019607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019608$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019609if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019610 $as_echo_n "(cached) " >&6
19611else
cristy8b350f62009-11-15 23:12:43 +000019612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019613/* end confdefs.h. */
19614#include <sys/types.h>
19615#include <sys/stat.h>
19616
19617#if defined S_ISBLK && defined S_IFDIR
19618extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19619#endif
19620
19621#if defined S_ISBLK && defined S_IFCHR
19622extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19623#endif
19624
19625#if defined S_ISLNK && defined S_IFREG
19626extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19627#endif
19628
19629#if defined S_ISSOCK && defined S_IFREG
19630extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19631#endif
19632
19633_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019634if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019635 ac_cv_header_stat_broken=no
19636else
cristy8b350f62009-11-15 23:12:43 +000019637 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000019638fi
cristy3ed852e2009-09-05 21:47:34 +000019639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19640fi
cristy8b350f62009-11-15 23:12:43 +000019641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019642$as_echo "$ac_cv_header_stat_broken" >&6; }
19643if test $ac_cv_header_stat_broken = yes; then
19644
cristy8b350f62009-11-15 23:12:43 +000019645$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019646
19647fi
19648
cristy8b350f62009-11-15 23:12:43 +000019649{ $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 +000019650$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019651if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019652 $as_echo_n "(cached) " >&6
19653else
cristy8b350f62009-11-15 23:12:43 +000019654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019655/* end confdefs.h. */
19656#include <sys/types.h>
19657#include <sys/time.h>
19658#include <time.h>
19659
19660int
19661main ()
19662{
19663if ((struct tm *) 0)
19664return 0;
19665 ;
19666 return 0;
19667}
19668_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019669if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019670 ac_cv_header_time=yes
19671else
cristy8b350f62009-11-15 23:12:43 +000019672 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000019673fi
cristy3ed852e2009-09-05 21:47:34 +000019674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19675fi
cristy8b350f62009-11-15 23:12:43 +000019676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000019677$as_echo "$ac_cv_header_time" >&6; }
19678if test $ac_cv_header_time = yes; then
19679
cristy8b350f62009-11-15 23:12:43 +000019680$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019681
19682fi
19683
cristy8b350f62009-11-15 23:12:43 +000019684{ $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 +000019685$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019686if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019687 $as_echo_n "(cached) " >&6
19688else
cristy8b350f62009-11-15 23:12:43 +000019689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019690/* end confdefs.h. */
19691#include <sys/types.h>
19692#include <time.h>
19693
19694int
19695main ()
19696{
19697struct tm tm;
19698 int *p = &tm.tm_sec;
19699 return !p;
19700 ;
19701 return 0;
19702}
19703_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019704if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019705 ac_cv_struct_tm=time.h
19706else
cristy8b350f62009-11-15 23:12:43 +000019707 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000019708fi
cristy3ed852e2009-09-05 21:47:34 +000019709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19710fi
cristy8b350f62009-11-15 23:12:43 +000019711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000019712$as_echo "$ac_cv_struct_tm" >&6; }
19713if test $ac_cv_struct_tm = sys/time.h; then
19714
cristy8b350f62009-11-15 23:12:43 +000019715$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019716
19717fi
19718
cristy8b350f62009-11-15 23:12:43 +000019719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000019720$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019721if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019722 $as_echo_n "(cached) " >&6
19723else
19724 echo '#! /bin/cat
19725exit 69
19726' >conftest
19727chmod u+x conftest
19728(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
19729if test $? -ne 69; then
19730 ac_cv_sys_interpreter=yes
19731else
19732 ac_cv_sys_interpreter=no
19733fi
19734rm -f conftest
19735fi
cristy8b350f62009-11-15 23:12:43 +000019736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000019737$as_echo "$ac_cv_sys_interpreter" >&6; }
19738interpval=$ac_cv_sys_interpreter
19739
19740
19741# If the C compiler does not fully support the ANSI C qualifier const,
19742# define const to be empty.
cristy8b350f62009-11-15 23:12:43 +000019743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019744$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019745if test "${ac_cv_c_const+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019746 $as_echo_n "(cached) " >&6
19747else
cristy8b350f62009-11-15 23:12:43 +000019748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019749/* end confdefs.h. */
19750
19751int
19752main ()
19753{
19754/* FIXME: Include the comments suggested by Paul. */
19755#ifndef __cplusplus
19756 /* Ultrix mips cc rejects this. */
19757 typedef int charset[2];
19758 const charset cs;
19759 /* SunOS 4.1.1 cc rejects this. */
19760 char const *const *pcpcc;
19761 char **ppc;
19762 /* NEC SVR4.0.2 mips cc rejects this. */
19763 struct point {int x, y;};
19764 static struct point const zero = {0,0};
19765 /* AIX XL C 1.02.0.0 rejects this.
19766 It does not let you subtract one const X* pointer from another in
19767 an arm of an if-expression whose if-part is not a constant
19768 expression */
19769 const char *g = "string";
19770 pcpcc = &g + (g ? g-g : 0);
19771 /* HPUX 7.0 cc rejects these. */
19772 ++pcpcc;
19773 ppc = (char**) pcpcc;
19774 pcpcc = (char const *const *) ppc;
19775 { /* SCO 3.2v4 cc rejects this. */
19776 char *t;
19777 char const *s = 0 ? (char *) 0 : (char const *) 0;
19778
19779 *t++ = 0;
19780 if (s) return 0;
19781 }
19782 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19783 int x[] = {25, 17};
19784 const int *foo = &x[0];
19785 ++foo;
19786 }
19787 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19788 typedef const int *iptr;
19789 iptr p = 0;
19790 ++p;
19791 }
19792 { /* AIX XL C 1.02.0.0 rejects this saying
19793 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19794 struct s { int j; const int *ap[3]; };
19795 struct s *b; b->j = 5;
19796 }
19797 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19798 const int foo = 10;
19799 if (!foo) return 0;
19800 }
19801 return !cs[0] && !zero.x;
19802#endif
19803
19804 ;
19805 return 0;
19806}
19807_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019808if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019809 ac_cv_c_const=yes
19810else
cristy8b350f62009-11-15 23:12:43 +000019811 ac_cv_c_const=no
cristy3ed852e2009-09-05 21:47:34 +000019812fi
cristy3ed852e2009-09-05 21:47:34 +000019813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19814fi
cristy8b350f62009-11-15 23:12:43 +000019815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019816$as_echo "$ac_cv_c_const" >&6; }
19817if test $ac_cv_c_const = no; then
19818
cristy8b350f62009-11-15 23:12:43 +000019819$as_echo "#define const /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019820
19821fi
19822
19823
19824# If the C compiler supports the keyword inline, do nothing. Otherwise
19825# define inline to __inline__ or __inline if it accepts one of those,
19826# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000019827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019828$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019829if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019830 $as_echo_n "(cached) " >&6
19831else
19832 ac_cv_c_inline=no
19833for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000019834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019835/* end confdefs.h. */
19836#ifndef __cplusplus
19837typedef int foo_t;
19838static $ac_kw foo_t static_foo () {return 0; }
19839$ac_kw foo_t foo () {return 0; }
19840#endif
19841
19842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019843if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019844 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019845fi
cristy3ed852e2009-09-05 21:47:34 +000019846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847 test "$ac_cv_c_inline" != no && break
19848done
19849
19850fi
cristy8b350f62009-11-15 23:12:43 +000019851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019852$as_echo "$ac_cv_c_inline" >&6; }
19853
cristy3ed852e2009-09-05 21:47:34 +000019854case $ac_cv_c_inline in
19855 inline | yes) ;;
19856 *)
19857 case $ac_cv_c_inline in
19858 no) ac_val=;;
19859 *) ac_val=$ac_cv_c_inline;;
19860 esac
19861 cat >>confdefs.h <<_ACEOF
19862#ifndef __cplusplus
19863#define inline $ac_val
19864#endif
19865_ACEOF
19866 ;;
19867esac
19868
19869
19870# If the C compiler supports the keyword restrict, do nothing. Otherwise
19871# define restrict to __restrict__ or __restrict if it accepts one of those,
19872# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000019873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000019874$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019875if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019876 $as_echo_n "(cached) " >&6
19877else
19878 ac_cv_c_restrict=no
19879 # The order here caters to the fact that C++ does not require restrict.
19880 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000019881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019882/* end confdefs.h. */
19883typedef int * int_ptr;
19884 int foo (int_ptr $ac_kw ip) {
19885 return ip[0];
19886 }
19887int
19888main ()
19889{
19890int s[1];
19891 int * $ac_kw t = s;
19892 t[0] = 0;
19893 return foo(t)
19894 ;
19895 return 0;
19896}
19897_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019898if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019899 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019900fi
cristy3ed852e2009-09-05 21:47:34 +000019901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19902 test "$ac_cv_c_restrict" != no && break
19903 done
19904
19905fi
cristy8b350f62009-11-15 23:12:43 +000019906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000019907$as_echo "$ac_cv_c_restrict" >&6; }
19908
cristy3ed852e2009-09-05 21:47:34 +000019909 case $ac_cv_c_restrict in
19910 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000019911 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019912 ;;
19913 *) cat >>confdefs.h <<_ACEOF
19914#define restrict $ac_cv_c_restrict
19915_ACEOF
19916 ;;
19917 esac
19918
19919
19920# If words are stored with the most significant byte first (like
19921# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000019922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000019923$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019924if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019925 $as_echo_n "(cached) " >&6
19926else
19927 ac_cv_c_bigendian=unknown
19928 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000019929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019930/* end confdefs.h. */
19931#ifndef __APPLE_CC__
19932 not a universal capable compiler
19933 #endif
19934 typedef int dummy;
19935
19936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019937if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019938
19939 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000019940 # there are at least two -arch flags with different values.
19941 ac_arch=
19942 ac_prev=
19943 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19944 if test -n "$ac_prev"; then
19945 case $ac_word in
19946 i?86 | x86_64 | ppc | ppc64)
19947 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19948 ac_arch=$ac_word
19949 else
19950 ac_cv_c_bigendian=universal
19951 break
19952 fi
19953 ;;
19954 esac
19955 ac_prev=
19956 elif test "x$ac_word" = "x-arch"; then
19957 ac_prev=arch
19958 fi
19959 done
cristy3ed852e2009-09-05 21:47:34 +000019960fi
cristy3ed852e2009-09-05 21:47:34 +000019961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19962 if test $ac_cv_c_bigendian = unknown; then
19963 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000019964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019965/* end confdefs.h. */
19966#include <sys/types.h>
19967 #include <sys/param.h>
19968
19969int
19970main ()
19971{
19972#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19973 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19974 && LITTLE_ENDIAN)
19975 bogus endian macros
19976 #endif
19977
19978 ;
19979 return 0;
19980}
19981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019982if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019983 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000019984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019985/* end confdefs.h. */
19986#include <sys/types.h>
19987 #include <sys/param.h>
19988
19989int
19990main ()
19991{
19992#if BYTE_ORDER != BIG_ENDIAN
19993 not big endian
19994 #endif
19995
19996 ;
19997 return 0;
19998}
19999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020000if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020001 ac_cv_c_bigendian=yes
20002else
cristy8b350f62009-11-15 23:12:43 +000020003 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020004fi
cristy3ed852e2009-09-05 21:47:34 +000020005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020006fi
cristy3ed852e2009-09-05 21:47:34 +000020007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20008 fi
20009 if test $ac_cv_c_bigendian = unknown; then
20010 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000020011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020012/* end confdefs.h. */
20013#include <limits.h>
20014
20015int
20016main ()
20017{
20018#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20019 bogus endian macros
20020 #endif
20021
20022 ;
20023 return 0;
20024}
20025_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020026if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020027 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020029/* end confdefs.h. */
20030#include <limits.h>
20031
20032int
20033main ()
20034{
20035#ifndef _BIG_ENDIAN
20036 not big endian
20037 #endif
20038
20039 ;
20040 return 0;
20041}
20042_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020043if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020044 ac_cv_c_bigendian=yes
20045else
cristy8b350f62009-11-15 23:12:43 +000020046 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020047fi
cristy3ed852e2009-09-05 21:47:34 +000020048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020049fi
cristy3ed852e2009-09-05 21:47:34 +000020050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20051 fi
20052 if test $ac_cv_c_bigendian = unknown; then
20053 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000020054 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020055 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000020056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020057/* end confdefs.h. */
20058short int ascii_mm[] =
20059 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20060 short int ascii_ii[] =
20061 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20062 int use_ascii (int i) {
20063 return ascii_mm[i] + ascii_ii[i];
20064 }
20065 short int ebcdic_ii[] =
20066 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20067 short int ebcdic_mm[] =
20068 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20069 int use_ebcdic (int i) {
20070 return ebcdic_mm[i] + ebcdic_ii[i];
20071 }
20072 extern int foo;
20073
20074int
20075main ()
20076{
20077return use_ascii (foo) == use_ebcdic (foo);
20078 ;
20079 return 0;
20080}
20081_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020082if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020083 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20084 ac_cv_c_bigendian=yes
20085 fi
20086 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20087 if test "$ac_cv_c_bigendian" = unknown; then
20088 ac_cv_c_bigendian=no
20089 else
20090 # finding both strings is unlikely to happen, but who knows?
20091 ac_cv_c_bigendian=unknown
20092 fi
20093 fi
cristy3ed852e2009-09-05 21:47:34 +000020094fi
cristy3ed852e2009-09-05 21:47:34 +000020095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20096else
cristy8b350f62009-11-15 23:12:43 +000020097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020098/* end confdefs.h. */
20099$ac_includes_default
20100int
20101main ()
20102{
20103
20104 /* Are we little or big endian? From Harbison&Steele. */
20105 union
20106 {
20107 long int l;
20108 char c[sizeof (long int)];
20109 } u;
20110 u.l = 1;
20111 return u.c[sizeof (long int) - 1] == 1;
20112
20113 ;
20114 return 0;
20115}
20116_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020117if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020118 ac_cv_c_bigendian=no
20119else
cristy8b350f62009-11-15 23:12:43 +000020120 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000020121fi
cristy8b350f62009-11-15 23:12:43 +000020122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20123 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020124fi
20125
cristy3ed852e2009-09-05 21:47:34 +000020126 fi
20127fi
cristy8b350f62009-11-15 23:12:43 +000020128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020129$as_echo "$ac_cv_c_bigendian" >&6; }
20130 case $ac_cv_c_bigendian in #(
20131 yes)
cristy8b350f62009-11-15 23:12:43 +000020132 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020133;; #(
20134 no)
20135 ;; #(
20136 universal)
20137
cristy8b350f62009-11-15 23:12:43 +000020138$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020139
20140 ;; #(
20141 *)
cristy8b350f62009-11-15 23:12:43 +000020142 as_fn_error "unknown endianness
20143 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020144 esac
20145
20146
20147# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020148ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20149if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020150
cristy3ed852e2009-09-05 21:47:34 +000020151else
20152
20153cat >>confdefs.h <<_ACEOF
20154#define mode_t int
20155_ACEOF
20156
20157fi
20158
20159
20160# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020161ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20162if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020163
cristy3ed852e2009-09-05 21:47:34 +000020164else
20165
20166cat >>confdefs.h <<_ACEOF
20167#define off_t long int
20168_ACEOF
20169
20170fi
20171
20172
20173# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020174ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20175if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020176
cristy3ed852e2009-09-05 21:47:34 +000020177else
20178
20179cat >>confdefs.h <<_ACEOF
20180#define pid_t int
20181_ACEOF
20182
20183fi
20184
20185
20186# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020187ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20188if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020189
cristy3ed852e2009-09-05 21:47:34 +000020190else
20191
20192cat >>confdefs.h <<_ACEOF
20193#define size_t unsigned int
20194_ACEOF
20195
20196fi
20197
20198
20199# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020200ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20201if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020202
cristy3ed852e2009-09-05 21:47:34 +000020203else
20204
20205cat >>confdefs.h <<_ACEOF
20206#define ssize_t int
20207_ACEOF
20208
20209fi
20210
20211
20212# If the C compiler supports a working long double type with more range
20213# or precision than the double type, define HAVE_LONG_DOUBLE.
20214
cristy8b350f62009-11-15 23:12:43 +000020215 { $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 +000020216$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020217if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020218 $as_echo_n "(cached) " >&6
20219else
cristy8b350f62009-11-15 23:12:43 +000020220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020221/* end confdefs.h. */
20222#include <float.h>
20223 long double const a[] =
20224 {
20225 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20226 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20227 };
20228 long double
20229 f (long double x)
20230 {
20231 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20232 + (x ? f (x) : 'c'));
20233 }
20234
20235int
20236main ()
20237{
20238static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20239 + (DBL_MANT_DIG < LDBL_MANT_DIG)
20240 - (LDBL_MAX_EXP < DBL_MAX_EXP)
20241 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20242 && (int) LDBL_EPSILON == 0
20243 )];
20244test_array [0] = 0
20245
20246 ;
20247 return 0;
20248}
20249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020250if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020251 ac_cv_type_long_double_wider=yes
20252else
cristy8b350f62009-11-15 23:12:43 +000020253 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000020254fi
cristy3ed852e2009-09-05 21:47:34 +000020255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20256fi
cristy8b350f62009-11-15 23:12:43 +000020257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000020258$as_echo "$ac_cv_type_long_double_wider" >&6; }
20259 if test $ac_cv_type_long_double_wider = yes; then
20260
cristy8b350f62009-11-15 23:12:43 +000020261$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020262
20263 fi
20264
20265
20266# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20267# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000020268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020269$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020270if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020271 $as_echo_n "(cached) " >&6
20272else
cristy8b350f62009-11-15 23:12:43 +000020273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020274/* end confdefs.h. */
20275$ac_includes_default
20276int
20277main ()
20278{
20279static int test_array [1 - 2 * !(((char) -1) < 0)];
20280test_array [0] = 0
20281
20282 ;
20283 return 0;
20284}
20285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020286if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020287 ac_cv_c_char_unsigned=no
20288else
cristy8b350f62009-11-15 23:12:43 +000020289 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000020290fi
cristy3ed852e2009-09-05 21:47:34 +000020291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20292fi
cristy8b350f62009-11-15 23:12:43 +000020293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020294$as_echo "$ac_cv_c_char_unsigned" >&6; }
20295if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000020296 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020297
20298fi
20299
20300
20301# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20302# The cast to long int works around a bug in the HP C Compiler
20303# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20304# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20305# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020307$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020308if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020309 $as_echo_n "(cached) " >&6
20310else
cristy8b350f62009-11-15 23:12:43 +000020311 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 +000020312
cristy3ed852e2009-09-05 21:47:34 +000020313else
cristy8b350f62009-11-15 23:12:43 +000020314 if test "$ac_cv_type_signed_short" = yes; then
20315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020317{ as_fn_set_status 77
20318as_fn_error "cannot compute sizeof (signed short)
20319See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020320 else
20321 ac_cv_sizeof_signed_short=0
20322 fi
20323fi
cristy8b350f62009-11-15 23:12:43 +000020324
cristy3ed852e2009-09-05 21:47:34 +000020325fi
cristy8b350f62009-11-15 23:12:43 +000020326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020327$as_echo "$ac_cv_sizeof_signed_short" >&6; }
20328
20329
20330
20331cat >>confdefs.h <<_ACEOF
20332#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
20333_ACEOF
20334
20335
20336
20337# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
20338# The cast to long int works around a bug in the HP C Compiler
20339# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20340# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20341# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020343$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020344if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020345 $as_echo_n "(cached) " >&6
20346else
cristy8b350f62009-11-15 23:12:43 +000020347 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 +000020348
cristy3ed852e2009-09-05 21:47:34 +000020349else
cristy8b350f62009-11-15 23:12:43 +000020350 if test "$ac_cv_type_unsigned_short" = yes; then
20351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020353{ as_fn_set_status 77
20354as_fn_error "cannot compute sizeof (unsigned short)
20355See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020356 else
20357 ac_cv_sizeof_unsigned_short=0
20358 fi
20359fi
cristy8b350f62009-11-15 23:12:43 +000020360
cristy3ed852e2009-09-05 21:47:34 +000020361fi
cristy8b350f62009-11-15 23:12:43 +000020362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020363$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20364
20365
20366
20367cat >>confdefs.h <<_ACEOF
20368#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20369_ACEOF
20370
20371
20372
20373# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
20374# The cast to long int works around a bug in the HP C Compiler
20375# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20376# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20377# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020379$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020380if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020381 $as_echo_n "(cached) " >&6
20382else
cristy8b350f62009-11-15 23:12:43 +000020383 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 +000020384
cristy3ed852e2009-09-05 21:47:34 +000020385else
cristy8b350f62009-11-15 23:12:43 +000020386 if test "$ac_cv_type_signed_int" = yes; then
20387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020389{ as_fn_set_status 77
20390as_fn_error "cannot compute sizeof (signed int)
20391See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020392 else
20393 ac_cv_sizeof_signed_int=0
20394 fi
20395fi
cristy8b350f62009-11-15 23:12:43 +000020396
cristy3ed852e2009-09-05 21:47:34 +000020397fi
cristy8b350f62009-11-15 23:12:43 +000020398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020399$as_echo "$ac_cv_sizeof_signed_int" >&6; }
20400
20401
20402
20403cat >>confdefs.h <<_ACEOF
20404#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
20405_ACEOF
20406
20407
20408
20409# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
20410# The cast to long int works around a bug in the HP C Compiler
20411# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20412# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20413# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020415$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020416if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020417 $as_echo_n "(cached) " >&6
20418else
cristy8b350f62009-11-15 23:12:43 +000020419 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 +000020420
cristy3ed852e2009-09-05 21:47:34 +000020421else
cristy8b350f62009-11-15 23:12:43 +000020422 if test "$ac_cv_type_unsigned_int" = yes; then
20423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020425{ as_fn_set_status 77
20426as_fn_error "cannot compute sizeof (unsigned int)
20427See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020428 else
20429 ac_cv_sizeof_unsigned_int=0
20430 fi
20431fi
cristy8b350f62009-11-15 23:12:43 +000020432
cristy3ed852e2009-09-05 21:47:34 +000020433fi
cristy8b350f62009-11-15 23:12:43 +000020434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020435$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20436
20437
20438
20439cat >>confdefs.h <<_ACEOF
20440#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20441_ACEOF
20442
20443
20444
20445# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
20446# The cast to long int works around a bug in the HP C Compiler
20447# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20448# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20449# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020451$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020452if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020453 $as_echo_n "(cached) " >&6
20454else
cristy8b350f62009-11-15 23:12:43 +000020455 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 +000020456
cristy3ed852e2009-09-05 21:47:34 +000020457else
cristy8b350f62009-11-15 23:12:43 +000020458 if test "$ac_cv_type_signed_long" = yes; then
20459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020461{ as_fn_set_status 77
20462as_fn_error "cannot compute sizeof (signed long)
20463See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020464 else
20465 ac_cv_sizeof_signed_long=0
20466 fi
20467fi
cristy8b350f62009-11-15 23:12:43 +000020468
cristy3ed852e2009-09-05 21:47:34 +000020469fi
cristy8b350f62009-11-15 23:12:43 +000020470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020471$as_echo "$ac_cv_sizeof_signed_long" >&6; }
20472
20473
20474
20475cat >>confdefs.h <<_ACEOF
20476#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
20477_ACEOF
20478
20479
20480
20481# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
20482# The cast to long int works around a bug in the HP C Compiler
20483# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20484# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20485# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020487$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020488if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020489 $as_echo_n "(cached) " >&6
20490else
cristy8b350f62009-11-15 23:12:43 +000020491 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 +000020492
cristy3ed852e2009-09-05 21:47:34 +000020493else
cristy8b350f62009-11-15 23:12:43 +000020494 if test "$ac_cv_type_unsigned_long" = yes; then
20495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020497{ as_fn_set_status 77
20498as_fn_error "cannot compute sizeof (unsigned long)
20499See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020500 else
20501 ac_cv_sizeof_unsigned_long=0
20502 fi
20503fi
cristy8b350f62009-11-15 23:12:43 +000020504
cristy3ed852e2009-09-05 21:47:34 +000020505fi
cristy8b350f62009-11-15 23:12:43 +000020506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020507$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20508
20509
20510
20511cat >>confdefs.h <<_ACEOF
20512#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20513_ACEOF
20514
20515
20516
20517# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
20518# 'signed long long' is not supported then the value defined is zero.
20519# The cast to long int works around a bug in the HP C Compiler
20520# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20521# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20522# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020524$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020525if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020526 $as_echo_n "(cached) " >&6
20527else
cristy8b350f62009-11-15 23:12:43 +000020528 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 +000020529
cristy3ed852e2009-09-05 21:47:34 +000020530else
cristy8b350f62009-11-15 23:12:43 +000020531 if test "$ac_cv_type_signed_long_long" = yes; then
20532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020534{ as_fn_set_status 77
20535as_fn_error "cannot compute sizeof (signed long long)
20536See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020537 else
20538 ac_cv_sizeof_signed_long_long=0
20539 fi
20540fi
cristy8b350f62009-11-15 23:12:43 +000020541
cristy3ed852e2009-09-05 21:47:34 +000020542fi
cristy8b350f62009-11-15 23:12:43 +000020543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020544$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
20545
20546
20547
20548cat >>confdefs.h <<_ACEOF
20549#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
20550_ACEOF
20551
20552
20553
20554# Obtain size of a 'unsigned long long' and define as
20555# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
20556# supported then the value defined is zero.
20557# The cast to long int works around a bug in the HP C Compiler
20558# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20559# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20560# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020562$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020563if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020564 $as_echo_n "(cached) " >&6
20565else
cristy8b350f62009-11-15 23:12:43 +000020566 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 +000020567
cristy3ed852e2009-09-05 21:47:34 +000020568else
cristy8b350f62009-11-15 23:12:43 +000020569 if test "$ac_cv_type_unsigned_long_long" = yes; then
20570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020572{ as_fn_set_status 77
20573as_fn_error "cannot compute sizeof (unsigned long long)
20574See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020575 else
20576 ac_cv_sizeof_unsigned_long_long=0
20577 fi
20578fi
cristy8b350f62009-11-15 23:12:43 +000020579
cristy3ed852e2009-09-05 21:47:34 +000020580fi
cristy8b350f62009-11-15 23:12:43 +000020581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020582$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20583
20584
20585
20586cat >>confdefs.h <<_ACEOF
20587#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20588_ACEOF
20589
20590
20591
20592# Obtain size of off_t and define as SIZEOF_OFF_T
20593# The cast to long int works around a bug in the HP C Compiler
20594# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20595# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20596# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020598$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020599if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020600 $as_echo_n "(cached) " >&6
20601else
cristy8b350f62009-11-15 23:12:43 +000020602 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 +000020603
cristy3ed852e2009-09-05 21:47:34 +000020604else
cristy8b350f62009-11-15 23:12:43 +000020605 if test "$ac_cv_type_off_t" = yes; then
20606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020608{ as_fn_set_status 77
20609as_fn_error "cannot compute sizeof (off_t)
20610See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020611 else
20612 ac_cv_sizeof_off_t=0
20613 fi
20614fi
cristy8b350f62009-11-15 23:12:43 +000020615
cristy3ed852e2009-09-05 21:47:34 +000020616fi
cristy8b350f62009-11-15 23:12:43 +000020617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020618$as_echo "$ac_cv_sizeof_off_t" >&6; }
20619
20620
20621
20622cat >>confdefs.h <<_ACEOF
20623#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20624_ACEOF
20625
20626
20627
20628# Obtain size of size_t and define as SIZEOF_SIZE_T
20629# The cast to long int works around a bug in the HP C Compiler
20630# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20631# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20632# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020634$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020635if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020636 $as_echo_n "(cached) " >&6
20637else
cristy8b350f62009-11-15 23:12:43 +000020638 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 +000020639
cristy3ed852e2009-09-05 21:47:34 +000020640else
cristy8b350f62009-11-15 23:12:43 +000020641 if test "$ac_cv_type_size_t" = yes; then
20642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020644{ as_fn_set_status 77
20645as_fn_error "cannot compute sizeof (size_t)
20646See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020647 else
20648 ac_cv_sizeof_size_t=0
20649 fi
20650fi
cristy8b350f62009-11-15 23:12:43 +000020651
cristy3ed852e2009-09-05 21:47:34 +000020652fi
cristy8b350f62009-11-15 23:12:43 +000020653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020654$as_echo "$ac_cv_sizeof_size_t" >&6; }
20655
20656
20657
20658cat >>confdefs.h <<_ACEOF
20659#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20660_ACEOF
20661
20662
20663
20664# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
20665# The cast to long int works around a bug in the HP C Compiler
20666# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20667# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20668# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000020670$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020671if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020672 $as_echo_n "(cached) " >&6
20673else
cristy8b350f62009-11-15 23:12:43 +000020674 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 +000020675
cristy3ed852e2009-09-05 21:47:34 +000020676else
cristy8b350f62009-11-15 23:12:43 +000020677 if test "$ac_cv_type_unsigned_intp" = yes; then
20678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020680{ as_fn_set_status 77
20681as_fn_error "cannot compute sizeof (unsigned int*)
20682See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020683 else
20684 ac_cv_sizeof_unsigned_intp=0
20685 fi
20686fi
cristy8b350f62009-11-15 23:12:43 +000020687
cristy3ed852e2009-09-05 21:47:34 +000020688fi
cristy8b350f62009-11-15 23:12:43 +000020689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000020690$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
20691
20692
20693
20694cat >>confdefs.h <<_ACEOF
20695#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
20696_ACEOF
20697
20698
20699
20700#
20701# Compute sized types for current CPU and compiler options.
20702#
20703
cristy8b350f62009-11-15 23:12:43 +000020704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020705$as_echo_n "checking for signed 8-bit type... " >&6; }
20706INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000020707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020708$as_echo "$INT8_T" >&6; }
20709
20710
cristy8b350f62009-11-15 23:12:43 +000020711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020712$as_echo_n "checking for unsigned 8-bit type... " >&6; }
20713UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000020714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020715$as_echo "$UINT8_T" >&6; }
20716
20717
cristy8b350f62009-11-15 23:12:43 +000020718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020719$as_echo_n "checking for signed 16-bit type... " >&6; }
20720INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000020721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020722$as_echo "$INT16_T" >&6; }
20723
20724
cristy8b350f62009-11-15 23:12:43 +000020725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020726$as_echo_n "checking for unsigned 16-bit type... " >&6; }
20727UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000020728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020729$as_echo "$UINT16_T" >&6; }
20730
20731
cristy8b350f62009-11-15 23:12:43 +000020732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020733$as_echo_n "checking for signed 32-bit type... " >&6; }
20734INT32_T='none'
20735if test $ac_cv_sizeof_signed_int -eq 4; then
20736 INT32_T='signed int'
20737elif test $ac_cv_sizeof_signed_long -eq 4; then
20738 INT32_T='signed long'
20739fi
cristy8b350f62009-11-15 23:12:43 +000020740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020741$as_echo "$INT32_T" >&6; }
20742
20743
cristy8b350f62009-11-15 23:12:43 +000020744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020745$as_echo_n "checking for unsigned 32-bit type... " >&6; }
20746UINT32_T='none'
20747if test $ac_cv_sizeof_unsigned_int -eq 4; then
20748 UINT32_T='unsigned int'
20749elif test $ac_cv_sizeof_unsigned_long -eq 4; then
20750 UINT32_T='unsigned long'
20751fi
cristy8b350f62009-11-15 23:12:43 +000020752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020753$as_echo "$UINT32_T" >&6; }
20754
20755
cristy8b350f62009-11-15 23:12:43 +000020756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020757$as_echo_n "checking for signed 64-bit type... " >&6; }
20758INT64_T='none'
20759if test $ac_cv_sizeof_signed_long -eq 8; then
20760 INT64_T='signed long'
20761elif test $ac_cv_sizeof_signed_long_long -eq 8; then
20762 INT64_T='signed long long'
20763fi
cristy8b350f62009-11-15 23:12:43 +000020764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020765$as_echo "$INT64_T" >&6; }
20766
20767
cristy8b350f62009-11-15 23:12:43 +000020768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020769$as_echo_n "checking for unsigned 64-bit type... " >&6; }
20770UINT64_T='none'
20771if test $ac_cv_sizeof_unsigned_long -eq 8; then
20772 UINT64_T='unsigned long'
20773elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
20774 UINT64_T='unsigned long long'
20775fi
cristy8b350f62009-11-15 23:12:43 +000020776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020777$as_echo "$UINT64_T" >&6; }
20778
20779
cristy8b350f62009-11-15 23:12:43 +000020780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020781$as_echo_n "checking for unsigned maximum type... " >&6; }
20782UINTMAX_T='none'
20783if test "$UINT64_T" != 'none'; then
20784 UINTMAX_T=$UINT64_T
20785elif test "$UINT32_T" != 'none'; then
20786 UINTMAX_T=$UINT32_T
20787fi
cristy8b350f62009-11-15 23:12:43 +000020788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020789$as_echo "$UINTMAX_T" >&6; }
20790
20791
cristy8b350f62009-11-15 23:12:43 +000020792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020793$as_echo_n "checking for pointer difference type... " >&6; }
20794UINTPTR_T='none'
20795if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
20796 UINTPTR_T='unsigned long'
20797elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
20798 UINTPTR_T='unsigned long long'
20799fi
cristy8b350f62009-11-15 23:12:43 +000020800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020801$as_echo "$UINTPTR_T" >&6; }
20802
20803
cristy8b350f62009-11-15 23:12:43 +000020804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020805$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020807/* end confdefs.h. */
20808
20809int
20810main ()
20811{
20812{ const char *func = __func__; return(func != 0 ? 0 : 1); }
20813 ;
20814 return 0;
20815}
20816_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020817if ac_fn_c_try_compile "$LINENO"; then :
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020819$as_echo "yes" >&6; }
20820else
cristy8b350f62009-11-15 23:12:43 +000020821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020822$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020824$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020826/* end confdefs.h. */
20827
20828int
20829main ()
20830{
20831{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
20832 ;
20833 return 0;
20834}
20835_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020836if ac_fn_c_try_compile "$LINENO"; then :
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020838$as_echo "yes" >&6; }
20839
cristy8b350f62009-11-15 23:12:43 +000020840$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020841
20842else
cristy8b350f62009-11-15 23:12:43 +000020843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020844$as_echo "no" >&6; }
20845
cristy8b350f62009-11-15 23:12:43 +000020846$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020847
20848fi
cristy3ed852e2009-09-05 21:47:34 +000020849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20850fi
cristy3ed852e2009-09-05 21:47:34 +000020851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852
20853########
20854#
20855# Check for functions
20856#
20857########
cristy3ed852e2009-09-05 21:47:34 +000020858for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000020859do :
20860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20861ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20862eval as_val=\$$as_ac_Header
20863 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020864 cat >>confdefs.h <<_ACEOF
20865#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20866_ACEOF
20867
20868fi
20869
20870done
20871
cristy3ed852e2009-09-05 21:47:34 +000020872for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000020873do :
20874 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20875if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020876 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020877#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000020878_ACEOF
20879
20880fi
20881done
20882
cristy8b350f62009-11-15 23:12:43 +000020883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000020884$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020885if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020886 $as_echo_n "(cached) " >&6
20887else
cristy8b350f62009-11-15 23:12:43 +000020888 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020889 magick_cv_func_mmap_fileio=no
20890else
cristy8b350f62009-11-15 23:12:43 +000020891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020892/* end confdefs.h. */
20893$ac_includes_default
20894/* malloc might have been renamed as rpl_malloc. */
20895#undef malloc
20896
20897/*
20898 This test is derived from GNU Autoconf's similar macro.
20899 The purpose of this test is to verify that files may be memory
20900 mapped, and that memory mapping and file I/O are coherent.
20901
20902 The test creates a test file, memory maps the file, updates
20903 the file using the memory map, and then reads the file using
20904 file I/O to verify that the file contains the updates.
20905*/
20906
20907#include <fcntl.h>
20908#include <sys/mman.h>
20909
20910#if !STDC_HEADERS && !HAVE_STDLIB_H
20911char *malloc ();
20912#endif
20913
20914/* This mess was copied from the GNU getpagesize.h. */
20915#if !HAVE_GETPAGESIZE
20916/* Assume that all systems that can run configure have sys/param.h. */
20917# if !HAVE_SYS_PARAM_H
20918# define HAVE_SYS_PARAM_H 1
20919# endif
20920
20921# ifdef _SC_PAGESIZE
20922# define getpagesize() sysconf(_SC_PAGESIZE)
20923# else /* no _SC_PAGESIZE */
20924# if HAVE_SYS_PARAM_H
20925# include <sys/param.h>
20926# ifdef EXEC_PAGESIZE
20927# define getpagesize() EXEC_PAGESIZE
20928# else /* no EXEC_PAGESIZE */
20929# ifdef NBPG
20930# define getpagesize() NBPG * CLSIZE
20931# ifndef CLSIZE
20932# define CLSIZE 1
20933# endif /* no CLSIZE */
20934# else /* no NBPG */
20935# ifdef NBPC
20936# define getpagesize() NBPC
20937# else /* no NBPC */
20938# ifdef PAGESIZE
20939# define getpagesize() PAGESIZE
20940# endif /* PAGESIZE */
20941# endif /* no NBPC */
20942# endif /* no NBPG */
20943# endif /* no EXEC_PAGESIZE */
20944# else /* no HAVE_SYS_PARAM_H */
20945# define getpagesize() 8192 /* punt totally */
20946# endif /* no HAVE_SYS_PARAM_H */
20947# endif /* no _SC_PAGESIZE */
20948
20949#endif /* no HAVE_GETPAGESIZE */
20950
20951int
20952main ()
20953{
20954 char *data, *data2, *data3;
20955 int i, pagesize;
20956 int fd;
20957
20958 pagesize = getpagesize ();
20959
20960 /* First, make a file with some known garbage in it. */
20961 data = (char *) malloc (pagesize);
20962 if (!data)
20963 exit (1);
20964 for (i = 0; i < pagesize; ++i)
20965 *(data + i) = rand ();
20966 umask (0);
20967 fd = creat ("conftest.mmap", 0600);
20968 if (fd < 0)
20969 exit (1);
20970 if (write (fd, data, pagesize) != pagesize)
20971 exit (1);
20972 close (fd);
20973
20974 /* Mmap the file as read/write/shared and verify that we see the
20975 same garbage. */
20976 fd = open ("conftest.mmap", O_RDWR);
20977 if (fd < 0)
20978 exit (1);
20979 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
20980 if (data2 == 0)
20981 exit (1);
20982 for (i = 0; i < pagesize; ++i)
20983 if (*(data + i) != *(data2 + i))
20984 exit (1);
20985
20986 /* Finally, make sure that changes to the mapped area
20987 percolate back to the file as seen by read(). */
20988 for (i = 0; i < pagesize; ++i)
20989 *(data2 + i) = *(data2 + i) + 1;
20990 data3 = (char *) malloc (pagesize);
20991 if (!data3)
20992 exit (1);
20993 if (read (fd, data3, pagesize) != pagesize)
20994 exit (1);
20995 for (i = 0; i < pagesize; ++i)
20996 if (*(data2 + i) != *(data3 + i))
20997 exit (1);
20998 close (fd);
20999 exit (0);
21000}
21001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021002if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021003 magick_cv_func_mmap_fileio=yes
21004else
cristy8b350f62009-11-15 23:12:43 +000021005 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000021006fi
cristy8b350f62009-11-15 23:12:43 +000021007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21008 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021009fi
21010
cristy3ed852e2009-09-05 21:47:34 +000021011fi
cristy8b350f62009-11-15 23:12:43 +000021012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000021013$as_echo "$magick_cv_func_mmap_fileio" >&6; }
21014if test $magick_cv_func_mmap_fileio = yes; then
21015
cristy8b350f62009-11-15 23:12:43 +000021016$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021017
21018fi
21019rm -f conftest.mmap
21020
cristy8b350f62009-11-15 23:12:43 +000021021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021022$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021023if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021024 $as_echo_n "(cached) " >&6
21025else
cristy8b350f62009-11-15 23:12:43 +000021026 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021027 ac_cv_func_closedir_void=yes
21028else
cristy8b350f62009-11-15 23:12:43 +000021029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021030/* end confdefs.h. */
21031$ac_includes_default
21032#include <$ac_header_dirent>
21033#ifndef __cplusplus
21034int closedir ();
21035#endif
21036
21037int
21038main ()
21039{
21040return closedir (opendir (".")) != 0;
21041 ;
21042 return 0;
21043}
21044_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021045if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021046 ac_cv_func_closedir_void=no
21047else
cristy8b350f62009-11-15 23:12:43 +000021048 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000021049fi
cristy8b350f62009-11-15 23:12:43 +000021050rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21051 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021052fi
21053
cristy3ed852e2009-09-05 21:47:34 +000021054fi
cristy8b350f62009-11-15 23:12:43 +000021055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021056$as_echo "$ac_cv_func_closedir_void" >&6; }
21057if test $ac_cv_func_closedir_void = yes; then
21058
cristy8b350f62009-11-15 23:12:43 +000021059$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021060
21061fi
21062
cristycd4c5312009-11-22 01:19:08 +000021063
21064
21065
21066 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000021067do :
21068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000021069ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21070"
cristy8b350f62009-11-15 23:12:43 +000021071eval as_val=\$$as_ac_Header
21072 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021073 cat >>confdefs.h <<_ACEOF
21074#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21075_ACEOF
21076
21077fi
21078
21079done
21080
cristycd4c5312009-11-22 01:19:08 +000021081
21082
21083
21084
21085
21086
21087
cristy3ed852e2009-09-05 21:47:34 +000021088for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021089do :
21090 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21091if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021092 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021093#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021094_ACEOF
21095
21096fi
21097done
21098
cristy8b350f62009-11-15 23:12:43 +000021099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000021100$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021101if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021102 $as_echo_n "(cached) " >&6
21103else
cristy8b350f62009-11-15 23:12:43 +000021104 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021105 ac_cv_func_mmap_fixed_mapped=no
21106else
cristy8b350f62009-11-15 23:12:43 +000021107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021108/* end confdefs.h. */
21109$ac_includes_default
21110/* malloc might have been renamed as rpl_malloc. */
21111#undef malloc
21112
21113/* Thanks to Mike Haertel and Jim Avera for this test.
21114 Here is a matrix of mmap possibilities:
21115 mmap private not fixed
21116 mmap private fixed at somewhere currently unmapped
21117 mmap private fixed at somewhere already mapped
21118 mmap shared not fixed
21119 mmap shared fixed at somewhere currently unmapped
21120 mmap shared fixed at somewhere already mapped
21121 For private mappings, we should verify that changes cannot be read()
21122 back from the file, nor mmap's back from the file at a different
21123 address. (There have been systems where private was not correctly
21124 implemented like the infamous i386 svr4.0, and systems where the
21125 VM page cache was not coherent with the file system buffer cache
21126 like early versions of FreeBSD and possibly contemporary NetBSD.)
21127 For shared mappings, we should conversely verify that changes get
21128 propagated back to all the places they're supposed to be.
21129
21130 Grep wants private fixed already mapped.
21131 The main things grep needs to know about mmap are:
21132 * does it exist and is it safe to write into the mmap'd area
21133 * how to use it (BSD variants) */
21134
21135#include <fcntl.h>
21136#include <sys/mman.h>
21137
21138#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21139char *malloc ();
21140#endif
21141
21142/* This mess was copied from the GNU getpagesize.h. */
21143#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000021144# ifdef _SC_PAGESIZE
21145# define getpagesize() sysconf(_SC_PAGESIZE)
21146# else /* no _SC_PAGESIZE */
21147# ifdef HAVE_SYS_PARAM_H
21148# include <sys/param.h>
21149# ifdef EXEC_PAGESIZE
21150# define getpagesize() EXEC_PAGESIZE
21151# else /* no EXEC_PAGESIZE */
21152# ifdef NBPG
21153# define getpagesize() NBPG * CLSIZE
21154# ifndef CLSIZE
21155# define CLSIZE 1
21156# endif /* no CLSIZE */
21157# else /* no NBPG */
21158# ifdef NBPC
21159# define getpagesize() NBPC
21160# else /* no NBPC */
21161# ifdef PAGESIZE
21162# define getpagesize() PAGESIZE
21163# endif /* PAGESIZE */
21164# endif /* no NBPC */
21165# endif /* no NBPG */
21166# endif /* no EXEC_PAGESIZE */
21167# else /* no HAVE_SYS_PARAM_H */
21168# define getpagesize() 8192 /* punt totally */
21169# endif /* no HAVE_SYS_PARAM_H */
21170# endif /* no _SC_PAGESIZE */
21171
21172#endif /* no HAVE_GETPAGESIZE */
21173
21174int
21175main ()
21176{
21177 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000021178 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000021179 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000021180 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000021181
21182 pagesize = getpagesize ();
21183
21184 /* First, make a file with some known garbage in it. */
21185 data = (char *) malloc (pagesize);
21186 if (!data)
21187 return 1;
21188 for (i = 0; i < pagesize; ++i)
21189 *(data + i) = rand ();
21190 umask (0);
21191 fd = creat ("conftest.mmap", 0600);
21192 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021193 return 2;
cristy3ed852e2009-09-05 21:47:34 +000021194 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021195 return 3;
cristy3ed852e2009-09-05 21:47:34 +000021196 close (fd);
21197
cristycd4c5312009-11-22 01:19:08 +000021198 /* Next, check that the tail of a page is zero-filled. File must have
21199 non-zero length, otherwise we risk SIGBUS for entire page. */
21200 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21201 if (fd2 < 0)
21202 return 4;
cristyc54f5d42009-11-27 21:36:31 +000021203 cdata2 = "";
21204 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000021205 return 5;
cristyc54f5d42009-11-27 21:36:31 +000021206 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000021207 if (data2 == MAP_FAILED)
21208 return 6;
21209 for (i = 0; i < pagesize; ++i)
21210 if (*(data2 + i))
21211 return 7;
21212 close (fd2);
21213 if (munmap (data2, pagesize))
21214 return 8;
21215
cristy3ed852e2009-09-05 21:47:34 +000021216 /* Next, try to mmap the file at a fixed address which already has
21217 something else allocated at it. If we can, also make sure that
21218 we see the same garbage. */
21219 fd = open ("conftest.mmap", O_RDWR);
21220 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021221 return 9;
cristy3ed852e2009-09-05 21:47:34 +000021222 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21223 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000021224 return 10;
cristy3ed852e2009-09-05 21:47:34 +000021225 for (i = 0; i < pagesize; ++i)
21226 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000021227 return 11;
cristy3ed852e2009-09-05 21:47:34 +000021228
21229 /* Finally, make sure that changes to the mapped area do not
21230 percolate back to the file as seen by read(). (This is a bug on
21231 some variants of i386 svr4.0.) */
21232 for (i = 0; i < pagesize; ++i)
21233 *(data2 + i) = *(data2 + i) + 1;
21234 data3 = (char *) malloc (pagesize);
21235 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000021236 return 12;
cristy3ed852e2009-09-05 21:47:34 +000021237 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021238 return 13;
cristy3ed852e2009-09-05 21:47:34 +000021239 for (i = 0; i < pagesize; ++i)
21240 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000021241 return 14;
cristy3ed852e2009-09-05 21:47:34 +000021242 close (fd);
21243 return 0;
21244}
21245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021246if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021247 ac_cv_func_mmap_fixed_mapped=yes
21248else
cristy8b350f62009-11-15 23:12:43 +000021249 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000021250fi
cristy8b350f62009-11-15 23:12:43 +000021251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21252 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021253fi
21254
cristy3ed852e2009-09-05 21:47:34 +000021255fi
cristy8b350f62009-11-15 23:12:43 +000021256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000021257$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21258if test $ac_cv_func_mmap_fixed_mapped = yes; then
21259
cristy8b350f62009-11-15 23:12:43 +000021260$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021261
21262fi
cristycd4c5312009-11-22 01:19:08 +000021263rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000021264
cristy3ed852e2009-09-05 21:47:34 +000021265for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000021266do :
21267 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21268if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021269 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021270#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000021271_ACEOF
21272
21273fi
21274
21275done
21276
cristy3ed852e2009-09-05 21:47:34 +000021277for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000021278do :
21279 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21280ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21281eval as_val=\$$as_ac_var
21282 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021283 cat >>confdefs.h <<_ACEOF
21284#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21285_ACEOF
21286
21287fi
21288done
21289
21290if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021292$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021293if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021294 $as_echo_n "(cached) " >&6
21295else
cristy8b350f62009-11-15 23:12:43 +000021296 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021297 ac_cv_func_fork_works=cross
21298else
cristy8b350f62009-11-15 23:12:43 +000021299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021300/* end confdefs.h. */
21301$ac_includes_default
21302int
21303main ()
21304{
21305
21306 /* By Ruediger Kuhlmann. */
21307 return fork () < 0;
21308
21309 ;
21310 return 0;
21311}
21312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021313if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021314 ac_cv_func_fork_works=yes
21315else
cristy8b350f62009-11-15 23:12:43 +000021316 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021317fi
cristy8b350f62009-11-15 23:12:43 +000021318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21319 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021320fi
21321
cristy3ed852e2009-09-05 21:47:34 +000021322fi
cristy8b350f62009-11-15 23:12:43 +000021323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021324$as_echo "$ac_cv_func_fork_works" >&6; }
21325
21326else
21327 ac_cv_func_fork_works=$ac_cv_func_fork
21328fi
21329if test "x$ac_cv_func_fork_works" = xcross; then
21330 case $host in
21331 *-*-amigaos* | *-*-msdosdjgpp*)
21332 # Override, as these systems have only a dummy fork() stub
21333 ac_cv_func_fork_works=no
21334 ;;
21335 *)
21336 ac_cv_func_fork_works=yes
21337 ;;
21338 esac
cristy8b350f62009-11-15 23:12:43 +000021339 { $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 +000021340$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21341fi
21342ac_cv_func_vfork_works=$ac_cv_func_vfork
21343if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021345$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021346if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021347 $as_echo_n "(cached) " >&6
21348else
cristy8b350f62009-11-15 23:12:43 +000021349 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021350 ac_cv_func_vfork_works=cross
21351else
cristy8b350f62009-11-15 23:12:43 +000021352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021353/* end confdefs.h. */
21354/* Thanks to Paul Eggert for this test. */
21355$ac_includes_default
21356#include <sys/wait.h>
21357#ifdef HAVE_VFORK_H
21358# include <vfork.h>
21359#endif
21360/* On some sparc systems, changes by the child to local and incoming
21361 argument registers are propagated back to the parent. The compiler
21362 is told about this with #include <vfork.h>, but some compilers
21363 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21364 static variable whose address is put into a register that is
21365 clobbered by the vfork. */
21366static void
21367#ifdef __cplusplus
21368sparc_address_test (int arg)
21369# else
21370sparc_address_test (arg) int arg;
21371#endif
21372{
21373 static pid_t child;
21374 if (!child) {
21375 child = vfork ();
21376 if (child < 0) {
21377 perror ("vfork");
21378 _exit(2);
21379 }
21380 if (!child) {
21381 arg = getpid();
21382 write(-1, "", 0);
21383 _exit (arg);
21384 }
21385 }
21386}
21387
21388int
21389main ()
21390{
21391 pid_t parent = getpid ();
21392 pid_t child;
21393
21394 sparc_address_test (0);
21395
21396 child = vfork ();
21397
21398 if (child == 0) {
21399 /* Here is another test for sparc vfork register problems. This
21400 test uses lots of local variables, at least as many local
21401 variables as main has allocated so far including compiler
21402 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21403 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21404 reuse the register of parent for one of the local variables,
21405 since it will think that parent can't possibly be used any more
21406 in this routine. Assigning to the local variable will thus
21407 munge parent in the parent process. */
21408 pid_t
21409 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21410 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21411 /* Convince the compiler that p..p7 are live; otherwise, it might
21412 use the same hardware register for all 8 local variables. */
21413 if (p != p1 || p != p2 || p != p3 || p != p4
21414 || p != p5 || p != p6 || p != p7)
21415 _exit(1);
21416
21417 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21418 from child file descriptors. If the child closes a descriptor
21419 before it execs or exits, this munges the parent's descriptor
21420 as well. Test for this by closing stdout in the child. */
21421 _exit(close(fileno(stdout)) != 0);
21422 } else {
21423 int status;
21424 struct stat st;
21425
21426 while (wait(&status) != child)
21427 ;
21428 return (
21429 /* Was there some problem with vforking? */
21430 child < 0
21431
21432 /* Did the child fail? (This shouldn't happen.) */
21433 || status
21434
21435 /* Did the vfork/compiler bug occur? */
21436 || parent != getpid()
21437
21438 /* Did the file descriptor bug occur? */
21439 || fstat(fileno(stdout), &st) != 0
21440 );
21441 }
21442}
21443_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021444if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021445 ac_cv_func_vfork_works=yes
21446else
cristy8b350f62009-11-15 23:12:43 +000021447 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021448fi
cristy8b350f62009-11-15 23:12:43 +000021449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21450 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021451fi
21452
cristy3ed852e2009-09-05 21:47:34 +000021453fi
cristy8b350f62009-11-15 23:12:43 +000021454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021455$as_echo "$ac_cv_func_vfork_works" >&6; }
21456
21457fi;
21458if test "x$ac_cv_func_fork_works" = xcross; then
21459 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000021460 { $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 +000021461$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21462fi
21463
21464if test "x$ac_cv_func_vfork_works" = xyes; then
21465
cristy8b350f62009-11-15 23:12:43 +000021466$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021467
21468else
21469
cristy8b350f62009-11-15 23:12:43 +000021470$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021471
21472fi
21473if test "x$ac_cv_func_fork_works" = xyes; then
21474
cristy8b350f62009-11-15 23:12:43 +000021475$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021476
21477fi
21478
cristy8b350f62009-11-15 23:12:43 +000021479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021480$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021481if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021482 $as_echo_n "(cached) " >&6
21483else
cristy8b350f62009-11-15 23:12:43 +000021484 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021485 ac_cv_func_memcmp_working=no
21486else
cristy8b350f62009-11-15 23:12:43 +000021487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021488/* end confdefs.h. */
21489$ac_includes_default
21490int
21491main ()
21492{
21493
21494 /* Some versions of memcmp are not 8-bit clean. */
21495 char c0 = '\100', c1 = '\200', c2 = '\201';
21496 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21497 return 1;
21498
21499 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21500 or more and with at least one buffer not starting on a 4-byte boundary.
21501 William Lewis provided this test program. */
21502 {
21503 char foo[21];
21504 char bar[21];
21505 int i;
21506 for (i = 0; i < 4; i++)
21507 {
21508 char *a = foo + i;
21509 char *b = bar + i;
21510 strcpy (a, "--------01111111");
21511 strcpy (b, "--------10000000");
21512 if (memcmp (a, b, 16) >= 0)
21513 return 1;
21514 }
21515 return 0;
21516 }
21517
21518 ;
21519 return 0;
21520}
21521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021522if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021523 ac_cv_func_memcmp_working=yes
21524else
cristy8b350f62009-11-15 23:12:43 +000021525 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000021526fi
cristy8b350f62009-11-15 23:12:43 +000021527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21528 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021529fi
21530
cristy3ed852e2009-09-05 21:47:34 +000021531fi
cristy8b350f62009-11-15 23:12:43 +000021532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000021533$as_echo "$ac_cv_func_memcmp_working" >&6; }
21534test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21535 *" memcmp.$ac_objext "* ) ;;
21536 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21537 ;;
21538esac
21539
21540
cristy3ed852e2009-09-05 21:47:34 +000021541for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000021542do :
21543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21544ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21545eval as_val=\$$as_ac_Header
21546 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021547 cat >>confdefs.h <<_ACEOF
21548#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21549_ACEOF
21550
21551fi
21552
21553done
21554
cristy8b350f62009-11-15 23:12:43 +000021555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000021556$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021557if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021558 $as_echo_n "(cached) " >&6
21559else
21560 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21561 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21562 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000021563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021564/* end confdefs.h. */
21565$ac_includes_default
21566#ifdef HAVE_SYS_SELECT_H
21567# include <sys/select.h>
21568#endif
21569#ifdef HAVE_SYS_SOCKET_H
21570# include <sys/socket.h>
21571#endif
21572
21573int
21574main ()
21575{
21576extern int select ($ac_arg1,
21577 $ac_arg234, $ac_arg234, $ac_arg234,
21578 $ac_arg5);
21579 ;
21580 return 0;
21581}
21582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021583if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021584 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000021585fi
cristy3ed852e2009-09-05 21:47:34 +000021586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21587 done
21588 done
21589done
21590# Provide a safe default value.
21591: ${ac_cv_func_select_args='int,int *,struct timeval *'}
21592
21593fi
cristy8b350f62009-11-15 23:12:43 +000021594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000021595$as_echo "$ac_cv_func_select_args" >&6; }
21596ac_save_IFS=$IFS; IFS=','
21597set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21598IFS=$ac_save_IFS
21599shift
21600
21601cat >>confdefs.h <<_ACEOF
21602#define SELECT_TYPE_ARG1 $1
21603_ACEOF
21604
21605
21606cat >>confdefs.h <<_ACEOF
21607#define SELECT_TYPE_ARG234 ($2)
21608_ACEOF
21609
21610
21611cat >>confdefs.h <<_ACEOF
21612#define SELECT_TYPE_ARG5 ($3)
21613_ACEOF
21614
21615rm -f conftest*
21616
cristy8b350f62009-11-15 23:12:43 +000021617if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021618 $as_echo_n "(cached) " >&6
21619else
21620 ac_cv_func_setvbuf_reversed=no
21621fi
21622
21623
cristy8b350f62009-11-15 23:12:43 +000021624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000021625$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021626if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021627 $as_echo_n "(cached) " >&6
21628else
cristy8b350f62009-11-15 23:12:43 +000021629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021630/* end confdefs.h. */
21631#include <sys/types.h>
21632#include <signal.h>
21633
21634int
21635main ()
21636{
21637return *(signal (0, 0)) (0) == 1;
21638 ;
21639 return 0;
21640}
21641_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021642if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021643 ac_cv_type_signal=int
21644else
cristy8b350f62009-11-15 23:12:43 +000021645 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000021646fi
cristy3ed852e2009-09-05 21:47:34 +000021647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648fi
cristy8b350f62009-11-15 23:12:43 +000021649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000021650$as_echo "$ac_cv_type_signal" >&6; }
21651
21652cat >>confdefs.h <<_ACEOF
21653#define RETSIGTYPE $ac_cv_type_signal
21654_ACEOF
21655
21656
cristy8b350f62009-11-15 23:12:43 +000021657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021658$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021659if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021660 $as_echo_n "(cached) " >&6
21661else
cristy8b350f62009-11-15 23:12:43 +000021662 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021663 ac_cv_func_strtod=no
21664else
cristy8b350f62009-11-15 23:12:43 +000021665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021666/* end confdefs.h. */
21667
21668$ac_includes_default
21669#ifndef strtod
21670double strtod ();
21671#endif
21672int
21673main()
21674{
21675 {
21676 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
21677 char *string = " +69";
21678 char *term;
21679 double value;
21680 value = strtod (string, &term);
21681 if (value != 69 || term != (string + 4))
21682 return 1;
21683 }
21684
21685 {
21686 /* Under Solaris 2.4, strtod returns the wrong value for the
21687 terminating character under some conditions. */
21688 char *string = "NaN";
21689 char *term;
21690 strtod (string, &term);
21691 if (term != string && *(term - 1) == 0)
21692 return 1;
21693 }
21694 return 0;
21695}
21696
21697_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021698if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021699 ac_cv_func_strtod=yes
21700else
cristy8b350f62009-11-15 23:12:43 +000021701 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000021702fi
cristy8b350f62009-11-15 23:12:43 +000021703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21704 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021705fi
21706
cristy3ed852e2009-09-05 21:47:34 +000021707fi
cristy8b350f62009-11-15 23:12:43 +000021708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021709$as_echo "$ac_cv_func_strtod" >&6; }
21710if test $ac_cv_func_strtod = no; then
21711 case " $LIBOBJS " in
21712 *" strtod.$ac_objext "* ) ;;
21713 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21714 ;;
21715esac
21716
cristy8b350f62009-11-15 23:12:43 +000021717ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21718if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021719
cristy3ed852e2009-09-05 21:47:34 +000021720fi
21721
cristy3ed852e2009-09-05 21:47:34 +000021722if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000021723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021724$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021725if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021726 $as_echo_n "(cached) " >&6
21727else
21728 ac_check_lib_save_LIBS=$LIBS
21729LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000021730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021731/* end confdefs.h. */
21732
21733/* Override any GCC internal prototype to avoid an error.
21734 Use char because int might match the return type of a GCC
21735 builtin and then its argument prototype would still apply. */
21736#ifdef __cplusplus
21737extern "C"
21738#endif
21739char pow ();
21740int
21741main ()
21742{
21743return pow ();
21744 ;
21745 return 0;
21746}
21747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021748if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021749 ac_cv_lib_m_pow=yes
21750else
cristy8b350f62009-11-15 23:12:43 +000021751 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000021752fi
cristy8b350f62009-11-15 23:12:43 +000021753rm -f core conftest.err conftest.$ac_objext \
21754 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021755LIBS=$ac_check_lib_save_LIBS
21756fi
cristy8b350f62009-11-15 23:12:43 +000021757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021758$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021759if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021760 POW_LIB=-lm
21761else
cristy8b350f62009-11-15 23:12:43 +000021762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021763$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21764fi
21765
21766fi
21767
21768fi
21769
cristy3ed852e2009-09-05 21:47:34 +000021770for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000021771do :
21772 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21773if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021774 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021775#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000021776_ACEOF
21777
cristy8b350f62009-11-15 23:12:43 +000021778ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21779if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021780
cristy8b350f62009-11-15 23:12:43 +000021781$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021782
21783fi
21784
21785fi
21786done
21787
21788
21789
cristy5131f3e2009-12-18 03:09:10 +000021790for 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 +000021791do :
21792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21793ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21794eval as_val=\$$as_ac_var
21795 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021796 cat >>confdefs.h <<_ACEOF
21797#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21798_ACEOF
21799
21800fi
21801done
21802
21803
cristye43a45e2009-09-28 14:49:00 +000021804#
21805# Check for clock_gettime().
21806#
cristy8b350f62009-11-15 23:12:43 +000021807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021808$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021809if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021810 $as_echo_n "(cached) " >&6
21811else
21812 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021814/* end confdefs.h. */
21815
21816/* Override any GCC internal prototype to avoid an error.
21817 Use char because int might match the return type of a GCC
21818 builtin and then its argument prototype would still apply. */
21819#ifdef __cplusplus
21820extern "C"
21821#endif
21822char clock_gettime ();
21823int
21824main ()
21825{
21826return clock_gettime ();
21827 ;
21828 return 0;
21829}
21830_ACEOF
21831for ac_lib in '' rt; do
21832 if test -z "$ac_lib"; then
21833 ac_res="none required"
21834 else
21835 ac_res=-l$ac_lib
21836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21837 fi
cristy8b350f62009-11-15 23:12:43 +000021838 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021839 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000021840fi
cristy8b350f62009-11-15 23:12:43 +000021841rm -f core conftest.err conftest.$ac_objext \
21842 conftest$ac_exeext
21843 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021844 break
21845fi
21846done
cristy8b350f62009-11-15 23:12:43 +000021847if test "${ac_cv_search_clock_gettime+set}" = set; then :
21848
cristye43a45e2009-09-28 14:49:00 +000021849else
21850 ac_cv_search_clock_gettime=no
21851fi
21852rm conftest.$ac_ext
21853LIBS=$ac_func_search_save_LIBS
21854fi
cristy8b350f62009-11-15 23:12:43 +000021855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021856$as_echo "$ac_cv_search_clock_gettime" >&6; }
21857ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000021858if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000021859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21860
21861
cristy8b350f62009-11-15 23:12:43 +000021862$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021863
cristy8b350f62009-11-15 23:12:43 +000021864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000021865$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021867/* end confdefs.h. */
21868#include <time.h>
21869int
21870main ()
21871{
21872clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000021873 ;
21874 return 0;
21875}
21876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021877if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021878
cristy8b350f62009-11-15 23:12:43 +000021879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000021880$as_echo "yes" >&6; }
21881
cristy8b350f62009-11-15 23:12:43 +000021882$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021883
21884
21885else
cristy8b350f62009-11-15 23:12:43 +000021886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000021887$as_echo "no" >&6; }
21888
21889fi
cristye43a45e2009-09-28 14:49:00 +000021890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21891
21892else
21893
cristy8b350f62009-11-15 23:12:43 +000021894 for ac_func in gettimeofday ftime
21895do :
21896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21897ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21898eval as_val=\$$as_ac_var
21899 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000021900 cat >>confdefs.h <<_ACEOF
21901#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21902_ACEOF
21903 break
21904fi
21905done
21906
21907
21908
21909fi
21910
21911
cristy3ed852e2009-09-05 21:47:34 +000021912########
21913#
21914# Check for function prototypes
21915#
21916########
21917
cristy8b350f62009-11-15 23:12:43 +000021918ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000021919#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021920"
21921if test "x$ac_cv_have_decl_pread" = x""yes; then :
21922 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021923else
cristy8b350f62009-11-15 23:12:43 +000021924 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021925fi
21926
cristy3ed852e2009-09-05 21:47:34 +000021927cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021928#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021930ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000021931#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021932"
21933if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
21934 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021935else
cristy8b350f62009-11-15 23:12:43 +000021936 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021937fi
21938
cristy3ed852e2009-09-05 21:47:34 +000021939cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021940#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021941_ACEOF
21942
21943
cristy8b350f62009-11-15 23:12:43 +000021944ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000021945#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000021946"
21947if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
21948 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021949else
cristy8b350f62009-11-15 23:12:43 +000021950 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021951fi
21952
cristy3ed852e2009-09-05 21:47:34 +000021953cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021954#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021955_ACEOF
21956
21957
cristy8b350f62009-11-15 23:12:43 +000021958ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000021959#include <stdio.h>
21960#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000021961"
21962if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
21963 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021964else
cristy8b350f62009-11-15 23:12:43 +000021965 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021966fi
21967
cristy3ed852e2009-09-05 21:47:34 +000021968cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021969#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021970_ACEOF
21971
21972
cristy3ed852e2009-09-05 21:47:34 +000021973########
21974#
21975# C++ Support Tests (For Magick++)
21976#
21977########
21978have_magick_plus_plus='no'
21979if test "$with_magick_plus_plus" = 'yes'; then
21980 OLIBS="$LIBS"
21981 LIBS=''
21982 ac_ext=cpp
21983ac_cpp='$CXXCPP $CPPFLAGS'
21984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21987
21988
21989 # Full set of headers used...
21990 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
21991 # functional iomanip iosfwd iostream iterator list string strstream utility
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 ac_ext=cpp
21999ac_cpp='$CXXCPP $CPPFLAGS'
22000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22003if test -z "$CXX"; then
22004 if test -n "$CCC"; then
22005 CXX=$CCC
22006 else
22007 if test -n "$ac_tool_prefix"; then
22008 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22009 do
22010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22011set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022013$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022014if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022015 $as_echo_n "(cached) " >&6
22016else
22017 if test -n "$CXX"; then
22018 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22019else
22020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22021for as_dir in $PATH
22022do
22023 IFS=$as_save_IFS
22024 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022025 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22027 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022029 break 2
22030 fi
22031done
cristy8b350f62009-11-15 23:12:43 +000022032 done
cristy3ed852e2009-09-05 21:47:34 +000022033IFS=$as_save_IFS
22034
22035fi
22036fi
22037CXX=$ac_cv_prog_CXX
22038if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022040$as_echo "$CXX" >&6; }
22041else
cristy8b350f62009-11-15 23:12:43 +000022042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022043$as_echo "no" >&6; }
22044fi
22045
22046
22047 test -n "$CXX" && break
22048 done
22049fi
22050if test -z "$CXX"; then
22051 ac_ct_CXX=$CXX
22052 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22053do
22054 # Extract the first word of "$ac_prog", so it can be a program name with args.
22055set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022057$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022058if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022059 $as_echo_n "(cached) " >&6
22060else
22061 if test -n "$ac_ct_CXX"; then
22062 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22063else
22064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22065for as_dir in $PATH
22066do
22067 IFS=$as_save_IFS
22068 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022069 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22071 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022073 break 2
22074 fi
22075done
cristy8b350f62009-11-15 23:12:43 +000022076 done
cristy3ed852e2009-09-05 21:47:34 +000022077IFS=$as_save_IFS
22078
22079fi
22080fi
22081ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22082if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022084$as_echo "$ac_ct_CXX" >&6; }
22085else
cristy8b350f62009-11-15 23:12:43 +000022086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022087$as_echo "no" >&6; }
22088fi
22089
22090
22091 test -n "$ac_ct_CXX" && break
22092done
22093
22094 if test "x$ac_ct_CXX" = x; then
22095 CXX="g++"
22096 else
22097 case $cross_compiling:$ac_tool_warned in
22098yes:)
cristy8b350f62009-11-15 23:12:43 +000022099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000022100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22101ac_tool_warned=yes ;;
22102esac
22103 CXX=$ac_ct_CXX
22104 fi
22105fi
22106
22107 fi
22108fi
22109# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000022110$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000022111set X $ac_compile
22112ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000022113for ac_option in --version -v -V -qversion; do
22114 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000022115case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22118esac
cristy8b350f62009-11-15 23:12:43 +000022119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22120$as_echo "$ac_try_echo"; } >&5
22121 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000022122 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000022123 if test -s conftest.err; then
22124 sed '10a\
22125... rest of stderr output deleted ...
22126 10q' conftest.err >conftest.er1
22127 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000022128 fi
cristycd4c5312009-11-22 01:19:08 +000022129 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000022130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22131 test $ac_status = 0; }
22132done
cristy3ed852e2009-09-05 21:47:34 +000022133
cristy8b350f62009-11-15 23:12:43 +000022134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000022135$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022136if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022137 $as_echo_n "(cached) " >&6
22138else
cristy8b350f62009-11-15 23:12:43 +000022139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022140/* end confdefs.h. */
22141
22142int
22143main ()
22144{
22145#ifndef __GNUC__
22146 choke me
22147#endif
22148
22149 ;
22150 return 0;
22151}
22152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022153if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022154 ac_compiler_gnu=yes
22155else
cristy8b350f62009-11-15 23:12:43 +000022156 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000022157fi
cristy3ed852e2009-09-05 21:47:34 +000022158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22159ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22160
22161fi
cristy8b350f62009-11-15 23:12:43 +000022162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000022163$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22164if test $ac_compiler_gnu = yes; then
22165 GXX=yes
22166else
22167 GXX=
22168fi
22169ac_test_CXXFLAGS=${CXXFLAGS+set}
22170ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000022171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022172$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022173if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022174 $as_echo_n "(cached) " >&6
22175else
22176 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22177 ac_cxx_werror_flag=yes
22178 ac_cv_prog_cxx_g=no
22179 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022181/* end confdefs.h. */
22182
22183int
22184main ()
22185{
22186
22187 ;
22188 return 0;
22189}
22190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022191if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022192 ac_cv_prog_cxx_g=yes
22193else
cristy8b350f62009-11-15 23:12:43 +000022194 CXXFLAGS=""
22195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022196/* end confdefs.h. */
22197
22198int
22199main ()
22200{
22201
22202 ;
22203 return 0;
22204}
22205_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022206if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022207
cristy8b350f62009-11-15 23:12:43 +000022208else
22209 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000022210 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022212/* end confdefs.h. */
22213
22214int
22215main ()
22216{
22217
22218 ;
22219 return 0;
22220}
22221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022222if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022223 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000022224fi
cristy3ed852e2009-09-05 21:47:34 +000022225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22226fi
cristy3ed852e2009-09-05 21:47:34 +000022227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22228fi
cristy3ed852e2009-09-05 21:47:34 +000022229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22230 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22231fi
cristy8b350f62009-11-15 23:12:43 +000022232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022233$as_echo "$ac_cv_prog_cxx_g" >&6; }
22234if test "$ac_test_CXXFLAGS" = set; then
22235 CXXFLAGS=$ac_save_CXXFLAGS
22236elif test $ac_cv_prog_cxx_g = yes; then
22237 if test "$GXX" = yes; then
22238 CXXFLAGS="-g -O2"
22239 else
22240 CXXFLAGS="-g"
22241 fi
22242else
22243 if test "$GXX" = yes; then
22244 CXXFLAGS="-O2"
22245 else
22246 CXXFLAGS=
22247 fi
22248fi
22249ac_ext=cpp
22250ac_cpp='$CXXCPP $CPPFLAGS'
22251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22254
22255depcc="$CXX" am_compiler_list=
22256
cristy8b350f62009-11-15 23:12:43 +000022257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022258$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022259if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022260 $as_echo_n "(cached) " >&6
22261else
22262 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22263 # We make a subdir and do the tests there. Otherwise we can end up
22264 # making bogus files that we don't know about and never remove. For
22265 # instance it was reported that on HP-UX the gcc test will end up
22266 # making a dummy file named `D' -- because `-MD' means `put the output
22267 # in D'.
22268 mkdir conftest.dir
22269 # Copy depcomp to subdir because otherwise we won't find it if we're
22270 # using a relative directory.
22271 cp "$am_depcomp" conftest.dir
22272 cd conftest.dir
22273 # We will build objects and dependencies in a subdirectory because
22274 # it helps to detect inapplicable dependency modes. For instance
22275 # both Tru64's cc and ICC support -MD to output dependencies as a
22276 # side effect of compilation, but ICC will put the dependencies in
22277 # the current directory while Tru64 will put them in the object
22278 # directory.
22279 mkdir sub
22280
22281 am_cv_CXX_dependencies_compiler_type=none
22282 if test "$am_compiler_list" = ""; then
22283 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22284 fi
22285 am__universal=false
22286 case " $depcc " in #(
22287 *\ -arch\ *\ -arch\ *) am__universal=true ;;
22288 esac
22289
22290 for depmode in $am_compiler_list; do
22291 # Setup a source with many dependencies, because some compilers
22292 # like to wrap large dependency lists on column 80 (with \), and
22293 # we should not choose a depcomp mode which is confused by this.
22294 #
22295 # We need to recreate these files for each test, as the compiler may
22296 # overwrite some of them when testing with obscure command lines.
22297 # This happens at least with the AIX C compiler.
22298 : > sub/conftest.c
22299 for i in 1 2 3 4 5 6; do
22300 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22301 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22302 # Solaris 8's {/usr,}/bin/sh.
22303 touch sub/conftst$i.h
22304 done
22305 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22306
22307 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22308 # mode. It turns out that the SunPro C++ compiler does not properly
22309 # handle `-M -o', and we need to detect this. Also, some Intel
22310 # versions had trouble with output in subdirs
22311 am__obj=sub/conftest.${OBJEXT-o}
22312 am__minus_obj="-o $am__obj"
22313 case $depmode in
22314 gcc)
22315 # This depmode causes a compiler race in universal mode.
22316 test "$am__universal" = false || continue
22317 ;;
22318 nosideeffect)
22319 # after this tag, mechanisms are not by side-effect, so they'll
22320 # only be used when explicitly requested
22321 if test "x$enable_dependency_tracking" = xyes; then
22322 continue
22323 else
22324 break
22325 fi
22326 ;;
22327 msvisualcpp | msvcmsys)
22328 # This compiler won't grok `-c -o', but also, the minuso test has
22329 # not run yet. These depmodes are late enough in the game, and
22330 # so weak that their functioning should not be impacted.
22331 am__obj=conftest.${OBJEXT-o}
22332 am__minus_obj=
22333 ;;
22334 none) break ;;
22335 esac
22336 if depmode=$depmode \
22337 source=sub/conftest.c object=$am__obj \
22338 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22339 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
22340 >/dev/null 2>conftest.err &&
22341 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22342 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22343 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
22344 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22345 # icc doesn't choke on unknown options, it will just issue warnings
22346 # or remarks (even with -Werror). So we grep stderr for any message
22347 # that says an option was ignored or not supported.
22348 # When given -MP, icc 7.0 and 7.1 complain thusly:
22349 # icc: Command line warning: ignoring option '-M'; no argument required
22350 # The diagnosis changed in icc 8.0:
22351 # icc: Command line remark: option '-MP' not supported
22352 if (grep 'ignoring option' conftest.err ||
22353 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22354 am_cv_CXX_dependencies_compiler_type=$depmode
22355 break
22356 fi
22357 fi
22358 done
22359
22360 cd ..
22361 rm -rf conftest.dir
22362else
22363 am_cv_CXX_dependencies_compiler_type=none
22364fi
22365
22366fi
cristy8b350f62009-11-15 23:12:43 +000022367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022368$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
22369CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
22370
22371 if
22372 test "x$enable_dependency_tracking" != xno \
22373 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
22374 am__fastdepCXX_TRUE=
22375 am__fastdepCXX_FALSE='#'
22376else
22377 am__fastdepCXX_TRUE='#'
22378 am__fastdepCXX_FALSE=
22379fi
22380
22381
cristy8b350f62009-11-15 23:12:43 +000022382 { $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 +000022383$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022384if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022385 $as_echo_n "(cached) " >&6
22386else
22387
22388 ac_ext=cpp
22389ac_cpp='$CXXCPP $CPPFLAGS'
22390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22393
cristy8b350f62009-11-15 23:12:43 +000022394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022395/* end confdefs.h. */
22396
22397int f(int x){return 1;}
22398int f(char x){return 1;}
22399int f(bool x){return 1;}
22400
22401int
22402main ()
22403{
22404bool b = true; return f(b);
22405 ;
22406 return 0;
22407}
22408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022409if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022410 ac_cv_cxx_have_bool=yes
22411else
cristy8b350f62009-11-15 23:12:43 +000022412 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000022413fi
cristy3ed852e2009-09-05 21:47:34 +000022414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22415 ac_ext=cpp
22416ac_cpp='$CXXCPP $CPPFLAGS'
22417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22420
22421
22422fi
cristy8b350f62009-11-15 23:12:43 +000022423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000022424$as_echo "$ac_cv_cxx_have_bool" >&6; }
22425if test "$ac_cv_cxx_have_bool" = yes; then
22426
cristy8b350f62009-11-15 23:12:43 +000022427$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022428
22429fi
22430
cristy8b350f62009-11-15 23:12:43 +000022431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022432$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022433if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022434 $as_echo_n "(cached) " >&6
22435else
22436
22437 ac_ext=cpp
22438ac_cpp='$CXXCPP $CPPFLAGS'
22439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22442
cristy8b350f62009-11-15 23:12:43 +000022443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022444/* end confdefs.h. */
22445namespace Outer { namespace Inner { int i = 0; }}
22446int
22447main ()
22448{
22449using namespace Outer::Inner; return i;
22450 ;
22451 return 0;
22452}
22453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022454if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022455 ac_cv_cxx_have_namespaces=yes
22456else
cristy8b350f62009-11-15 23:12:43 +000022457 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000022458fi
cristy3ed852e2009-09-05 21:47:34 +000022459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460 ac_ext=cpp
22461ac_cpp='$CXXCPP $CPPFLAGS'
22462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22465
22466
22467fi
cristy8b350f62009-11-15 23:12:43 +000022468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022469$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
22470if test "$ac_cv_cxx_have_namespaces" = yes; then
22471
cristy8b350f62009-11-15 23:12:43 +000022472$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022473
22474fi
22475
cristy8b350f62009-11-15 23:12:43 +000022476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022477$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022478if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022479 $as_echo_n "(cached) " >&6
22480else
22481
22482 ac_ext=cpp
22483ac_cpp='$CXXCPP $CPPFLAGS'
22484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22487
cristy8b350f62009-11-15 23:12:43 +000022488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022489/* end confdefs.h. */
22490#include <iostream>
22491 std::istream& is = std::cin;
22492
22493int
22494main ()
22495{
22496return 0;
22497 ;
22498 return 0;
22499}
22500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022501if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022502 ac_cv_cxx_have_std_namespace=yes
22503else
cristy8b350f62009-11-15 23:12:43 +000022504 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000022505fi
cristy3ed852e2009-09-05 21:47:34 +000022506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507 ac_ext=cpp
22508ac_cpp='$CXXCPP $CPPFLAGS'
22509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22512
22513
22514fi
cristy8b350f62009-11-15 23:12:43 +000022515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022516$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
22517if test "$ac_cv_cxx_have_std_namespace" = yes; then
22518
cristy8b350f62009-11-15 23:12:43 +000022519$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022520
22521fi
22522
cristy8b350f62009-11-15 23:12:43 +000022523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000022524$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022525if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022526 $as_echo_n "(cached) " >&6
22527else
22528
22529
22530 ac_ext=cpp
22531ac_cpp='$CXXCPP $CPPFLAGS'
22532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22535
cristy8b350f62009-11-15 23:12:43 +000022536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022537/* end confdefs.h. */
22538#include <iostream>
22539#include <map>
22540#include <iomanip>
22541#include <cmath>
22542#ifdef HAVE_NAMESPACES
22543using namespace std;
22544#endif
22545int
22546main ()
22547{
22548return 0;
22549 ;
22550 return 0;
22551}
22552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022553if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022554 ac_cv_cxx_have_std_libs=yes
22555else
cristy8b350f62009-11-15 23:12:43 +000022556 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000022557fi
cristy3ed852e2009-09-05 21:47:34 +000022558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 ac_ext=cpp
22560ac_cpp='$CXXCPP $CPPFLAGS'
22561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22564
22565
22566fi
cristy8b350f62009-11-15 23:12:43 +000022567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000022568$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
22569if test "$ac_cv_cxx_have_std_libs" = yes; then
22570
cristy8b350f62009-11-15 23:12:43 +000022571$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022572
22573fi
22574
cristy8b350f62009-11-15 23:12:43 +000022575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000022576$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022577if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022578 $as_echo_n "(cached) " >&6
22579else
22580
22581 ac_ext=cpp
22582ac_cpp='$CXXCPP $CPPFLAGS'
22583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22586
cristy8b350f62009-11-15 23:12:43 +000022587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022588/* end confdefs.h. */
22589const wchar_t* s=L"wide string";
22590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022591if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022592 ac_cv_cxx_have_lstring=yes
22593else
cristy8b350f62009-11-15 23:12:43 +000022594 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000022595fi
cristy3ed852e2009-09-05 21:47:34 +000022596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22597 ac_ext=cpp
22598ac_cpp='$CXXCPP $CPPFLAGS'
22599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22602
22603
22604fi
cristy8b350f62009-11-15 23:12:43 +000022605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000022606$as_echo "$ac_cv_cxx_have_lstring" >&6; }
22607if test "$ac_cv_cxx_have_lstring" = yes; then
22608
cristy8b350f62009-11-15 23:12:43 +000022609$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022610
22611fi
22612
22613
22614 OPENMP_CXXFLAGS=
22615 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000022616if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022617 enableval=$enable_openmp;
22618fi
22619
22620 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000022621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
22622$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022623if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022624 $as_echo_n "(cached) " >&6
22625else
cristy8b350f62009-11-15 23:12:43 +000022626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22627/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022628
22629#ifndef _OPENMP
22630 choke me
22631#endif
22632#include <omp.h>
22633int main () { return omp_get_num_threads (); }
22634
22635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022636if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022637 ac_cv_prog_cxx_openmp='none needed'
22638else
cristy8b350f62009-11-15 23:12:43 +000022639 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000022640 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
22641 ac_save_CXXFLAGS=$CXXFLAGS
22642 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000022643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022645
22646#ifndef _OPENMP
22647 choke me
22648#endif
22649#include <omp.h>
22650int main () { return omp_get_num_threads (); }
22651
22652_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022653if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022654 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000022655fi
cristy8b350f62009-11-15 23:12:43 +000022656rm -f core conftest.err conftest.$ac_objext \
22657 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022658 CXXFLAGS=$ac_save_CXXFLAGS
22659 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
22660 break
22661 fi
22662 done
22663fi
cristy8b350f62009-11-15 23:12:43 +000022664rm -f core conftest.err conftest.$ac_objext \
22665 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022666fi
cristy8b350f62009-11-15 23:12:43 +000022667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022668$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
22669 case $ac_cv_prog_cxx_openmp in #(
22670 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000022671 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000022672 *)
cristy8b350f62009-11-15 23:12:43 +000022673 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000022674 esac
22675 fi
22676
22677
22678 ac_ext=c
22679ac_cpp='$CPP $CPPFLAGS'
22680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22682ac_compiler_gnu=$ac_cv_c_compiler_gnu
22683
22684
cristy8b350f62009-11-15 23:12:43 +000022685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000022686$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
22687 if \
22688 test $ac_cv_cxx_have_bool = 'yes' && \
22689 test $ac_cv_cxx_have_lstring = 'yes' && \
22690 test $ac_cv_cxx_have_namespaces = 'yes' && \
22691 test $ac_cv_cxx_have_std_libs = 'yes' && \
22692 test $ac_cv_cxx_have_std_namespace = 'yes'; then
22693 have_magick_plus_plus='yes'
22694 else
22695 have_magick_plus_plus='no (failed tests)'
22696 fi
cristy8b350f62009-11-15 23:12:43 +000022697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000022698$as_echo "$have_magick_plus_plus" >&6; }
22699 LIBS="$OLIBS"
22700fi
22701 if test "$have_magick_plus_plus" = 'yes'; then
22702 WITH_MAGICK_PLUS_PLUS_TRUE=
22703 WITH_MAGICK_PLUS_PLUS_FALSE='#'
22704else
22705 WITH_MAGICK_PLUS_PLUS_TRUE='#'
22706 WITH_MAGICK_PLUS_PLUS_FALSE=
22707fi
22708
22709
22710# Only check for delegate libraries in subdirectories if requested.
22711if test "$enable_delegate_build" != 'no'; then
22712 # Check for delegate sub-directories and add -I & -L options as required.
22713 # This presumes that delegates are installed as detailed in the ImageMagick
22714 # README. If delegates are installed in a standard location where the
22715 # compiler will automatically find them then these options should not be
22716 # required.
22717
22718 #
22719 # Most delegates have includes in the same directory as the library, but not all...
22720 #
22721 # Includes
22722 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
22723 if test -d "$builddir/$dir"; then
22724 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
22725 else
22726 if test -d "$srcdirfull/$dir"; then
22727 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
22728 fi
22729 fi
22730 done
22731
22732 # Libraries
22733 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
22734 if test -d "$builddir/$dir/.libs"; then
22735 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
22736 else
22737 if test -d "$srcdirfull/$dir/.libs"; then
22738 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
22739 fi
22740 fi
22741 if test -d "$builddir/$dir"; then
22742 LDFLAGS="$LDFLAGS -L$builddir/$dir"
22743 else
22744 if test -d "$srcdirfull/$dir"; then
22745 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
22746 fi
22747 fi
22748 done
22749fi
22750
22751# Assume that delegate headers reside under same directory as ImageMagick
22752# installation prefix.
22753MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
22754
22755#
22756# Find the X11 RGB database
22757#
cristy8b350f62009-11-15 23:12:43 +000022758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022759$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022760if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022761 $as_echo_n "(cached) " >&6
22762else
22763 # Look for the header file in a standard set of common directories.
22764# Check X11 before X11Rn because it is often a symlink to the current release.
22765 for ac_dir in \
22766 /lib/usr/lib/X11 \
22767 /usr/X11/lib \
22768 /usr/X11R4/lib \
22769 /usr/X11R5/lib \
22770 /usr/X11R6/lib \
22771 /usr/X11R7/lib \
22772 /usr/X386/lib \
22773 /usr/XFree86/lib/X11 \
22774 /usr/athena/lib \
22775 /usr/lib \
22776 /usr/lib/X11 \
22777 /usr/lib/X11R4 \
22778 /usr/lib/X11R5 \
22779 /usr/lib/X11R6 \
22780 /usr/lib/X11R7 \
22781 /usr/local/X11/lib \
22782 /usr/local/X11R4/lib \
22783 /usr/local/X11R5/lib \
22784 /usr/local/X11R6/lib \
22785 /usr/local/lib \
22786 /usr/local/lib/X11 \
22787 /usr/local/lib/X11R4 \
22788 /usr/local/lib/X11R5 \
22789 /usr/local/lib/X11R6 \
22790 /usr/local/lib/X11R7 \
22791 /usr/local/x11r5/lib \
22792 /usr/lpp/Xamples/lib \
22793 /usr/openwin/lib \
22794 /usr/openwin/share/lib \
22795 /usr/unsupported/lib \
22796 /usr/x386/lib \
22797 ; do
22798 if test -f "$ac_dir/X11/rgb.txt"; then
22799 im_cv_x_configure="$ac_dir/X11/"
22800 break
22801 elif test -f "$ac_dir/rgb.txt"; then
22802 im_cv_x_configure="$ac_dir/"
22803 break
22804 fi
22805
22806 done
22807fi
cristy8b350f62009-11-15 23:12:43 +000022808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000022809$as_echo "$im_cv_x_configure" >&6; }
22810X11_CONFIGURE_PATH="$im_cv_x_configure"
22811case "${build_os}" in
22812 mingw* )
22813 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
22814 ;;
22815esac
22816
22817cat >>confdefs.h <<_ACEOF
22818#define X11_CONFIGURE_PATH "$X11ConfigurePath"
22819_ACEOF
22820
22821
22822#
22823# Find OpenMP library
22824#
22825GOMP_LIBS=''
22826if test "$enable_openmp" != 'no'; then
22827 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000022828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022829$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022830if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022831 $as_echo_n "(cached) " >&6
22832else
22833 ac_check_lib_save_LIBS=$LIBS
22834LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022836/* end confdefs.h. */
22837
22838/* Override any GCC internal prototype to avoid an error.
22839 Use char because int might match the return type of a GCC
22840 builtin and then its argument prototype would still apply. */
22841#ifdef __cplusplus
22842extern "C"
22843#endif
22844char GOMP_parallel_start ();
22845int
22846main ()
22847{
22848return GOMP_parallel_start ();
22849 ;
22850 return 0;
22851}
22852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022853if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022854 ac_cv_lib_gomp_GOMP_parallel_start=yes
22855else
cristy8b350f62009-11-15 23:12:43 +000022856 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000022857fi
cristy8b350f62009-11-15 23:12:43 +000022858rm -f core conftest.err conftest.$ac_objext \
22859 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022860LIBS=$ac_check_lib_save_LIBS
22861fi
cristy8b350f62009-11-15 23:12:43 +000022862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000022863$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022864if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022865 GOMP_LIBS="-lgomp"
22866fi
22867 # gcc
22868 else
cristy8b350f62009-11-15 23:12:43 +000022869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000022870$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022871if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022872 $as_echo_n "(cached) " >&6
22873else
22874 ac_check_lib_save_LIBS=$LIBS
22875LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022877/* end confdefs.h. */
22878
22879/* Override any GCC internal prototype to avoid an error.
22880 Use char because int might match the return type of a GCC
22881 builtin and then its argument prototype would still apply. */
22882#ifdef __cplusplus
22883extern "C"
22884#endif
22885char sunw_mp_register_warn ();
22886int
22887main ()
22888{
22889return sunw_mp_register_warn ();
22890 ;
22891 return 0;
22892}
22893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022894if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022895 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
22896else
cristy8b350f62009-11-15 23:12:43 +000022897 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000022898fi
cristy8b350f62009-11-15 23:12:43 +000022899rm -f core conftest.err conftest.$ac_objext \
22900 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022901LIBS=$ac_check_lib_save_LIBS
22902fi
cristy8b350f62009-11-15 23:12:43 +000022903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000022904$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022905if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022906 GOMP_LIBS="-lmtsk"
22907fi
22908 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000022909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022910$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022911if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022912 $as_echo_n "(cached) " >&6
22913else
22914 ac_check_lib_save_LIBS=$LIBS
22915LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022917/* end confdefs.h. */
22918
22919/* Override any GCC internal prototype to avoid an error.
22920 Use char because int might match the return type of a GCC
22921 builtin and then its argument prototype would still apply. */
22922#ifdef __cplusplus
22923extern "C"
22924#endif
22925char _xlsmpFlush ();
22926int
22927main ()
22928{
22929return _xlsmpFlush ();
22930 ;
22931 return 0;
22932}
22933_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022934if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022935 ac_cv_lib_xlsmp__xlsmpFlush=yes
22936else
cristy8b350f62009-11-15 23:12:43 +000022937 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000022938fi
cristy8b350f62009-11-15 23:12:43 +000022939rm -f core conftest.err conftest.$ac_objext \
22940 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022941LIBS=$ac_check_lib_save_LIBS
22942fi
cristy8b350f62009-11-15 23:12:43 +000022943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000022944$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022945if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022946 GOMP_LIBS="-lxlsmp"
22947fi
22948 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000022949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022950$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022951if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022952 $as_echo_n "(cached) " >&6
22953else
22954 ac_check_lib_save_LIBS=$LIBS
22955LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022957/* end confdefs.h. */
22958
22959/* Override any GCC internal prototype to avoid an error.
22960 Use char because int might match the return type of a GCC
22961 builtin and then its argument prototype would still apply. */
22962#ifdef __cplusplus
22963extern "C"
22964#endif
22965char mp_destroy ();
22966int
22967main ()
22968{
22969return mp_destroy ();
22970 ;
22971 return 0;
22972}
22973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022974if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022975 ac_cv_lib_mp_mp_destroy=yes
22976else
cristy8b350f62009-11-15 23:12:43 +000022977 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000022978fi
cristy8b350f62009-11-15 23:12:43 +000022979rm -f core conftest.err conftest.$ac_objext \
22980 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022981LIBS=$ac_check_lib_save_LIBS
22982fi
cristy8b350f62009-11-15 23:12:43 +000022983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000022984$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022985if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022986 GOMP_LIBS="-lmp"
22987fi
22988 # SGI IRIX 6.5 MIPSpro C/C++
22989 fi
22990 LIBS="$GOMP_LIBS $LIBS"
22991fi
22992
22993
22994#
22995# Find Posix threads library
22996#
22997THREAD_LIBS=''
22998if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
22999
23000 if test "x$PTHREAD_LIBS" = "x"; then
23001 case "${host_cpu}-${host_os}" in
23002 *-freebsd*)
23003
23004
23005
23006ac_ext=c
23007ac_cpp='$CPP $CPPFLAGS'
23008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23010ac_compiler_gnu=$ac_cv_c_compiler_gnu
23011
23012magick_pthread_lib_ok=no
23013
23014LIB=-lc_r
23015save_LIBS="$LIBS"
23016LIBS="$LIBS $LIB"
23017
cristy8b350f62009-11-15 23:12:43 +000023018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023019$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023021/* end confdefs.h. */
23022#include <pthread.h>
23023int
23024main ()
23025{
23026 pthread_t th;
23027 pthread_join(th, 0);
23028 pthread_attr_init(0);
23029 pthread_cleanup_push(0, 0);
23030 pthread_create(0,0,0,0);
23031 pthread_cleanup_pop(0);
23032 ;
23033 return 0;
23034}
23035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023036if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023037 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023038fi
cristy8b350f62009-11-15 23:12:43 +000023039rm -f core conftest.err conftest.$ac_objext \
23040 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023041
cristy8b350f62009-11-15 23:12:43 +000023042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023043$as_echo "${magick_pthread_lib_ok}" >&6; }
23044if test "$magick_pthread_lib_ok" = yes
23045then
23046 PTHREAD_LIBS=-lc_r
23047 :
23048else
23049
23050 :
23051fi
23052
23053LIBS="$save_LIBS"
23054
23055ac_ext=c
23056ac_cpp='$CPP $CPPFLAGS'
23057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23059ac_compiler_gnu=$ac_cv_c_compiler_gnu
23060
23061 ;;
23062 esac
23063 fi
23064
23065 for lib in pthread pthreads; do
23066 if test "x$PTHREAD_LIBS" = "x"; then
23067
23068
23069
23070ac_ext=c
23071ac_cpp='$CPP $CPPFLAGS'
23072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23074ac_compiler_gnu=$ac_cv_c_compiler_gnu
23075
23076magick_pthread_lib_ok=no
23077
23078LIB=-l$lib
23079save_LIBS="$LIBS"
23080LIBS="$LIBS $LIB"
23081
cristy8b350f62009-11-15 23:12:43 +000023082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023083$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023085/* end confdefs.h. */
23086#include <pthread.h>
23087int
23088main ()
23089{
23090 pthread_t th;
23091 pthread_join(th, 0);
23092 pthread_attr_init(0);
23093 pthread_cleanup_push(0, 0);
23094 pthread_create(0,0,0,0);
23095 pthread_cleanup_pop(0);
23096 ;
23097 return 0;
23098}
23099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023100if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023101 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023102fi
cristy8b350f62009-11-15 23:12:43 +000023103rm -f core conftest.err conftest.$ac_objext \
23104 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023105
cristy8b350f62009-11-15 23:12:43 +000023106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023107$as_echo "${magick_pthread_lib_ok}" >&6; }
23108if test "$magick_pthread_lib_ok" = yes
23109then
23110 PTHREAD_LIBS=-l$lib
23111 :
23112else
23113
23114 :
23115fi
23116
23117LIBS="$save_LIBS"
23118
23119ac_ext=c
23120ac_cpp='$CPP $CPPFLAGS'
23121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23123ac_compiler_gnu=$ac_cv_c_compiler_gnu
23124
23125
23126 fi
23127 done
23128
23129 THREAD_LIBS="$PTHREAD_LIBS"
23130 LIBS="$LIBS $THREAD_LIBS"
23131fi
23132
23133
23134#
23135# Check for umem.
23136#
23137have_umem='no'
23138UMEM_LIBS=''
23139if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000023140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000023141$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023143$as_echo "" >&6; }
23144 failed=0
23145 passed=0
cristy8b350f62009-11-15 23:12:43 +000023146 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
23147if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023148 passed=`expr $passed + 1`
23149else
23150 failed=`expr $failed + 1`
23151fi
23152
23153
cristy8b350f62009-11-15 23:12:43 +000023154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023155$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023156if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023157 $as_echo_n "(cached) " >&6
23158else
23159 ac_check_lib_save_LIBS=$LIBS
23160LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023162/* end confdefs.h. */
23163
23164/* Override any GCC internal prototype to avoid an error.
23165 Use char because int might match the return type of a GCC
23166 builtin and then its argument prototype would still apply. */
23167#ifdef __cplusplus
23168extern "C"
23169#endif
23170char umem_alloc ();
23171int
23172main ()
23173{
23174return umem_alloc ();
23175 ;
23176 return 0;
23177}
23178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023179if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023180 ac_cv_lib_umem_umem_alloc=yes
23181else
cristy8b350f62009-11-15 23:12:43 +000023182 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000023183fi
cristy8b350f62009-11-15 23:12:43 +000023184rm -f core conftest.err conftest.$ac_objext \
23185 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023186LIBS=$ac_check_lib_save_LIBS
23187fi
cristy8b350f62009-11-15 23:12:43 +000023188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023189$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023190if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023191 passed=`expr $passed + 1`
23192else
23193 failed=`expr $failed + 1`
23194fi
23195
cristy8b350f62009-11-15 23:12:43 +000023196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023197$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023198if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023199 $as_echo_n "(cached) " >&6
23200else
23201 ac_check_lib_save_LIBS=$LIBS
23202LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023204/* end confdefs.h. */
23205
23206/* Override any GCC internal prototype to avoid an error.
23207 Use char because int might match the return type of a GCC
23208 builtin and then its argument prototype would still apply. */
23209#ifdef __cplusplus
23210extern "C"
23211#endif
23212char umem_free ();
23213int
23214main ()
23215{
23216return umem_free ();
23217 ;
23218 return 0;
23219}
23220_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023221if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023222 ac_cv_lib_umem_umem_free=yes
23223else
cristy8b350f62009-11-15 23:12:43 +000023224 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000023225fi
cristy8b350f62009-11-15 23:12:43 +000023226rm -f core conftest.err conftest.$ac_objext \
23227 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023228LIBS=$ac_check_lib_save_LIBS
23229fi
cristy8b350f62009-11-15 23:12:43 +000023230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000023231$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023232if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023233 passed=`expr $passed + 1`
23234else
23235 failed=`expr $failed + 1`
23236fi
23237
cristy8b350f62009-11-15 23:12:43 +000023238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023239$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23240 if test $passed -gt 0; then
23241 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023243$as_echo "no -- some components failed test" >&6; }
23244 have_umem='no (failed tests)'
23245 else
23246 UMEM_LIBS='-lumem'
23247 LIBS="$UMEM_LIBS $LIBS"
23248
cristy8b350f62009-11-15 23:12:43 +000023249$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023250
cristy8b350f62009-11-15 23:12:43 +000023251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023252$as_echo "yes" >&6; }
23253 have_umem='yes'
23254 fi
23255 else
cristy8b350f62009-11-15 23:12:43 +000023256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023257$as_echo "no" >&6; }
23258 fi
23259fi
23260 if test "$have_umem" = 'yes'; then
23261 HasUMEM_TRUE=
23262 HasUMEM_FALSE='#'
23263else
23264 HasUMEM_TRUE='#'
23265 HasUMEM_FALSE=
23266fi
23267
23268
23269
23270#
23271# Add support for ccmalloc memory debugging library if requested
23272#
23273have_ccmalloc='no'
23274CCMALLOC_LIBS=''
23275if test "$enable_ccmalloc" = 'yes'; then
23276 # Extract the first word of "ccmalloc", so it can be a program name with args.
23277set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023279$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023280if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023281 $as_echo_n "(cached) " >&6
23282else
23283 case $CCMALLOCDelegate in
23284 [\\/]* | ?:[\\/]*)
23285 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23286 ;;
23287 *)
23288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23289for as_dir in $PATH
23290do
23291 IFS=$as_save_IFS
23292 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023293 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23295 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000023296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023297 break 2
23298 fi
23299done
cristy8b350f62009-11-15 23:12:43 +000023300 done
cristy3ed852e2009-09-05 21:47:34 +000023301IFS=$as_save_IFS
23302
23303 ;;
23304esac
23305fi
23306CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23307if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000023308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000023309$as_echo "$CCMALLOCDelegate" >&6; }
23310else
cristy8b350f62009-11-15 23:12:43 +000023311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023312$as_echo "no" >&6; }
23313fi
23314
23315
23316 if test -n "$CCMALLOCDelegate"; then
23317 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23318 OLIBS="$LIBS"
23319 # Assume that gcc is used with ccmalloc.
23320 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000023321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023322$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023323if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023324 $as_echo_n "(cached) " >&6
23325else
23326 ac_check_lib_save_LIBS=$LIBS
23327LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023329/* end confdefs.h. */
23330
23331/* Override any GCC internal prototype to avoid an error.
23332 Use char because int might match the return type of a GCC
23333 builtin and then its argument prototype would still apply. */
23334#ifdef __cplusplus
23335extern "C"
23336#endif
23337char ccmalloc_malloc ();
23338int
23339main ()
23340{
23341return ccmalloc_malloc ();
23342 ;
23343 return 0;
23344}
23345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023346if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023347 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
23348else
cristy8b350f62009-11-15 23:12:43 +000023349 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000023350fi
cristy8b350f62009-11-15 23:12:43 +000023351rm -f core conftest.err conftest.$ac_objext \
23352 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023353LIBS=$ac_check_lib_save_LIBS
23354fi
cristy8b350f62009-11-15 23:12:43 +000023355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023356$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023357if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023358 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
23359fi
23360
23361 if test -n "$CCMALLOC_LIBS"; then
23362 LIBS="$OLIBS"
23363 LIBS="$LIBS $CCMALLOC_LIBS"
23364 have_ccmalloc='yes'
23365 else
23366 LIBS="$OLIBS"
23367 fi
23368 fi
23369fi
23370
23371#
23372# Add support for efence memory debugging library if requested
23373#
23374if test "$enable_efence" = 'yes'; then
23375 EFENCE_LIBS='-lefence'
23376 LIBS="$EFENCE_LIBS $LIBS"
23377fi
23378
23379#
23380# Find math library
23381#
23382MATH_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023384$as_echo_n "checking for sqrt in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023385if test "${ac_cv_lib_m_sqrt+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023386 $as_echo_n "(cached) " >&6
23387else
23388 ac_check_lib_save_LIBS=$LIBS
23389LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023391/* end confdefs.h. */
23392
23393/* Override any GCC internal prototype to avoid an error.
23394 Use char because int might match the return type of a GCC
23395 builtin and then its argument prototype would still apply. */
23396#ifdef __cplusplus
23397extern "C"
23398#endif
23399char sqrt ();
23400int
23401main ()
23402{
23403return sqrt ();
23404 ;
23405 return 0;
23406}
23407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023408if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023409 ac_cv_lib_m_sqrt=yes
23410else
cristy8b350f62009-11-15 23:12:43 +000023411 ac_cv_lib_m_sqrt=no
cristy3ed852e2009-09-05 21:47:34 +000023412fi
cristy8b350f62009-11-15 23:12:43 +000023413rm -f core conftest.err conftest.$ac_objext \
23414 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023415LIBS=$ac_check_lib_save_LIBS
23416fi
cristy8b350f62009-11-15 23:12:43 +000023417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
cristy3ed852e2009-09-05 21:47:34 +000023418$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023419if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023420 MATH_LIBS="-lm"
23421fi
23422
23423LIBS="$MATH_LIBS $LIBS"
23424
23425
23426
23427#
23428# Check for BZLIB
23429#
23430
23431
23432# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000023433if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023434 withval=$with_bzlib; with_bzlib=$withval
23435else
23436 with_bzlib='yes'
23437fi
23438
23439
23440if test "$with_bzlib" != 'yes'; then
23441 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
23442fi
23443
23444have_bzlib='no'
23445if test "$with_bzlib" != 'no'; then
23446 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000023448$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023450$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023452$as_echo "" >&6; }
23453 failed=0
23454 passed=0
23455 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000023456 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
23457if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023458 passed=`expr $passed + 1`
23459else
23460 failed=`expr $failed + 1`
23461fi
23462
23463
cristy8b350f62009-11-15 23:12:43 +000023464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023465$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023466if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023467 $as_echo_n "(cached) " >&6
23468else
23469 ac_check_lib_save_LIBS=$LIBS
23470LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023472/* end confdefs.h. */
23473
23474/* Override any GCC internal prototype to avoid an error.
23475 Use char because int might match the return type of a GCC
23476 builtin and then its argument prototype would still apply. */
23477#ifdef __cplusplus
23478extern "C"
23479#endif
23480char BZ2_bzDecompress ();
23481int
23482main ()
23483{
23484return BZ2_bzDecompress ();
23485 ;
23486 return 0;
23487}
23488_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023489if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023490 ac_cv_lib_bz2_BZ2_bzDecompress=yes
23491else
cristy8b350f62009-11-15 23:12:43 +000023492 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000023493fi
cristy8b350f62009-11-15 23:12:43 +000023494rm -f core conftest.err conftest.$ac_objext \
23495 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023496LIBS=$ac_check_lib_save_LIBS
23497fi
cristy8b350f62009-11-15 23:12:43 +000023498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023499$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023500if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023501 found_libbz=`expr $found_libbz + 1`
23502fi
23503
23504 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000023505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023506$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023507if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023508 $as_echo_n "(cached) " >&6
23509else
23510 ac_check_lib_save_LIBS=$LIBS
23511LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023513/* end confdefs.h. */
23514
23515/* Override any GCC internal prototype to avoid an error.
23516 Use char because int might match the return type of a GCC
23517 builtin and then its argument prototype would still apply. */
23518#ifdef __cplusplus
23519extern "C"
23520#endif
23521char _imp__BZ2_decompress ();
23522int
23523main ()
23524{
23525return _imp__BZ2_decompress ();
23526 ;
23527 return 0;
23528}
23529_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023530if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023531 ac_cv_lib_bz2__imp__BZ2_decompress=yes
23532else
cristy8b350f62009-11-15 23:12:43 +000023533 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000023534fi
cristy8b350f62009-11-15 23:12:43 +000023535rm -f core conftest.err conftest.$ac_objext \
23536 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023537LIBS=$ac_check_lib_save_LIBS
23538fi
cristy8b350f62009-11-15 23:12:43 +000023539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023540$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023541if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023542 found_libbz=`expr $found_libbz + 1`
23543fi
23544
23545 fi
23546 if test $found_libbz -gt 0; then
23547 passed=`expr $passed + 1`
23548 else
23549 failed=`expr $failed + 1`
23550 fi
cristy8b350f62009-11-15 23:12:43 +000023551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023552$as_echo_n "checking if BZLIB package is complete... " >&6; }
23553 if test $passed -gt 0; then
23554 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023556$as_echo "no -- some components failed test" >&6; }
23557 have_bzlib='no (failed tests)'
23558 else
23559 BZLIB_LIBS='-lbz2'
23560 LIBS="$BZLIB_LIBS $LIBS"
23561
cristy8b350f62009-11-15 23:12:43 +000023562$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023563
cristy8b350f62009-11-15 23:12:43 +000023564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023565$as_echo "yes" >&6; }
23566 have_bzlib='yes'
23567 fi
23568 else
cristy8b350f62009-11-15 23:12:43 +000023569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023570$as_echo "no" >&6; }
23571 fi
23572fi
23573 if test "$have_bzlib" = 'yes'; then
23574 BZLIB_DELEGATE_TRUE=
23575 BZLIB_DELEGATE_FALSE='#'
23576else
23577 BZLIB_DELEGATE_TRUE='#'
23578 BZLIB_DELEGATE_FALSE=
23579fi
23580
23581
23582
23583#
23584# Find the X11 include and library directories.
23585#
23586IPC_LIBS=''
23587X11_LIBS=''
23588XEXT_LIBS=''
23589XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000023591$as_echo_n "checking for X... " >&6; }
23592
23593
23594# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000023595if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023596 withval=$with_x;
23597fi
23598
23599# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23600if test "x$with_x" = xno; then
23601 # The user explicitly disabled X.
23602 have_x=disabled
23603else
23604 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000023605 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
23606 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023607 $as_echo_n "(cached) " >&6
23608else
23609 # One or both of the vars are not set, and there is no cached value.
23610ac_x_includes=no ac_x_libraries=no
23611rm -f -r conftest.dir
23612if mkdir conftest.dir; then
23613 cd conftest.dir
23614 cat >Imakefile <<'_ACEOF'
23615incroot:
23616 @echo incroot='${INCROOT}'
23617usrlibdir:
23618 @echo usrlibdir='${USRLIBDIR}'
23619libdir:
23620 @echo libdir='${LIBDIR}'
23621_ACEOF
23622 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23623 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23624 for ac_var in incroot usrlibdir libdir; do
23625 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23626 done
23627 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23628 for ac_extension in a so sl dylib la dll; do
23629 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23630 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23631 ac_im_usrlibdir=$ac_im_libdir; break
23632 fi
23633 done
23634 # Screen out bogus values from the imake configuration. They are
23635 # bogus both because they are the default anyway, and because
23636 # using them would break gcc on systems where it needs fixed includes.
23637 case $ac_im_incroot in
23638 /usr/include) ac_x_includes= ;;
23639 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23640 esac
23641 case $ac_im_usrlibdir in
23642 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23643 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23644 esac
23645 fi
23646 cd ..
23647 rm -f -r conftest.dir
23648fi
23649
23650# Standard set of common directories for X headers.
23651# Check X11 before X11Rn because it is often a symlink to the current release.
23652ac_x_header_dirs='
23653/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000023654/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023655/usr/X11R6/include
23656/usr/X11R5/include
23657/usr/X11R4/include
23658
23659/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000023660/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023661/usr/include/X11R6
23662/usr/include/X11R5
23663/usr/include/X11R4
23664
23665/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000023666/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023667/usr/local/X11R6/include
23668/usr/local/X11R5/include
23669/usr/local/X11R4/include
23670
23671/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000023672/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023673/usr/local/include/X11R6
23674/usr/local/include/X11R5
23675/usr/local/include/X11R4
23676
23677/usr/X386/include
23678/usr/x386/include
23679/usr/XFree86/include/X11
23680
23681/usr/include
23682/usr/local/include
23683/usr/unsupported/include
23684/usr/athena/include
23685/usr/local/x11r5/include
23686/usr/lpp/Xamples/include
23687
23688/usr/openwin/include
23689/usr/openwin/share/include'
23690
23691if test "$ac_x_includes" = no; then
23692 # Guess where to find include files, by looking for Xlib.h.
23693 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000023694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023695/* end confdefs.h. */
23696#include <X11/Xlib.h>
23697_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023698if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023699 # We can compile using X headers with no special include directory.
23700ac_x_includes=
23701else
cristyc7083c12009-10-14 03:16:55 +000023702 for ac_dir in $ac_x_header_dirs; do
23703 if test -r "$ac_dir/X11/Xlib.h"; then
23704 ac_x_includes=$ac_dir
23705 break
23706 fi
23707done
23708fi
cristyc7083c12009-10-14 03:16:55 +000023709rm -f conftest.err conftest.$ac_ext
23710fi # $ac_x_includes = no
23711
23712if test "$ac_x_libraries" = no; then
23713 # Check for the libraries.
23714 # See if we find them without any special options.
23715 # Don't add to $LIBS permanently.
23716 ac_save_LIBS=$LIBS
23717 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023719/* end confdefs.h. */
23720#include <X11/Xlib.h>
23721int
23722main ()
23723{
23724XrmInitialize ()
23725 ;
23726 return 0;
23727}
23728_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023729if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023730 LIBS=$ac_save_LIBS
23731# We can link X programs with no special library path.
23732ac_x_libraries=
23733else
cristy8b350f62009-11-15 23:12:43 +000023734 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000023735for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23736do
23737 # Don't even attempt the hair of trying to link an X program!
23738 for ac_extension in a so sl dylib la dll; do
23739 if test -r "$ac_dir/libX11.$ac_extension"; then
23740 ac_x_libraries=$ac_dir
23741 break 2
23742 fi
23743 done
23744done
23745fi
cristy8b350f62009-11-15 23:12:43 +000023746rm -f core conftest.err conftest.$ac_objext \
23747 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023748fi # $ac_x_libraries = no
23749
23750case $ac_x_includes,$ac_x_libraries in #(
23751 no,* | *,no | *\'*)
23752 # Didn't find X, or a directory has "'" in its name.
23753 ac_cv_have_x="have_x=no";; #(
23754 *)
23755 # Record where we found X for the cache.
23756 ac_cv_have_x="have_x=yes\
23757 ac_x_includes='$ac_x_includes'\
23758 ac_x_libraries='$ac_x_libraries'"
23759esac
23760fi
23761;; #(
23762 *) have_x=yes;;
23763 esac
23764 eval "$ac_cv_have_x"
23765fi # $with_x != no
23766
23767if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000023769$as_echo "$have_x" >&6; }
23770 no_x=yes
23771else
23772 # If each of the values was on the command line, it overrides each guess.
23773 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23774 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23775 # Update the cache value to reflect the command line values.
23776 ac_cv_have_x="have_x=yes\
23777 ac_x_includes='$x_includes'\
23778 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000023779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000023780$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23781fi
23782
cristy3ed852e2009-09-05 21:47:34 +000023783if test "$no_x" = yes; then
23784 # Not all programs may use this symbol, but it does not hurt to define it.
23785
cristy8b350f62009-11-15 23:12:43 +000023786$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023787
23788 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23789else
23790 if test -n "$x_includes"; then
23791 X_CFLAGS="$X_CFLAGS -I$x_includes"
23792 fi
23793
23794 # It would also be nice to do this for all -L options, not just this one.
23795 if test -n "$x_libraries"; then
23796 X_LIBS="$X_LIBS -L$x_libraries"
23797 # For Solaris; some versions of Sun CC require a space after -R and
23798 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000023799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000023800$as_echo_n "checking whether -R must be followed by a space... " >&6; }
23801 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23802 ac_xsave_c_werror_flag=$ac_c_werror_flag
23803 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000023804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023805/* end confdefs.h. */
23806
23807int
23808main ()
23809{
23810
23811 ;
23812 return 0;
23813}
23814_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023815if ac_fn_c_try_link "$LINENO"; then :
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023817$as_echo "no" >&6; }
23818 X_LIBS="$X_LIBS -R$x_libraries"
23819else
cristy8b350f62009-11-15 23:12:43 +000023820 LIBS="$ac_xsave_LIBS -R $x_libraries"
23821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023822/* end confdefs.h. */
23823
23824int
23825main ()
23826{
23827
23828 ;
23829 return 0;
23830}
23831_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023832if ac_fn_c_try_link "$LINENO"; then :
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023834$as_echo "yes" >&6; }
23835 X_LIBS="$X_LIBS -R $x_libraries"
23836else
cristy8b350f62009-11-15 23:12:43 +000023837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023838$as_echo "neither works" >&6; }
23839fi
cristy8b350f62009-11-15 23:12:43 +000023840rm -f core conftest.err conftest.$ac_objext \
23841 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023842fi
cristy8b350f62009-11-15 23:12:43 +000023843rm -f core conftest.err conftest.$ac_objext \
23844 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023845 ac_c_werror_flag=$ac_xsave_c_werror_flag
23846 LIBS=$ac_xsave_LIBS
23847 fi
23848
23849 # Check for system-dependent libraries X programs must link with.
23850 # Do this before checking for the system-independent R6 libraries
23851 # (-lICE), since we may need -lsocket or whatever for X linking.
23852
23853 if test "$ISC" = yes; then
23854 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23855 else
23856 # Martyn Johnson says this is needed for Ultrix, if the X
23857 # libraries were built with DECnet support. And Karl Berry says
23858 # the Alpha needs dnet_stub (dnet does not exist).
23859 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000023860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023861/* end confdefs.h. */
23862
23863/* Override any GCC internal prototype to avoid an error.
23864 Use char because int might match the return type of a GCC
23865 builtin and then its argument prototype would still apply. */
23866#ifdef __cplusplus
23867extern "C"
23868#endif
23869char XOpenDisplay ();
23870int
23871main ()
23872{
23873return XOpenDisplay ();
23874 ;
23875 return 0;
23876}
23877_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023878if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023879
cristy8b350f62009-11-15 23:12:43 +000023880else
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023882$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023883if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023884 $as_echo_n "(cached) " >&6
23885else
23886 ac_check_lib_save_LIBS=$LIBS
23887LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023889/* end confdefs.h. */
23890
23891/* Override any GCC internal prototype to avoid an error.
23892 Use char because int might match the return type of a GCC
23893 builtin and then its argument prototype would still apply. */
23894#ifdef __cplusplus
23895extern "C"
23896#endif
23897char dnet_ntoa ();
23898int
23899main ()
23900{
23901return dnet_ntoa ();
23902 ;
23903 return 0;
23904}
23905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023906if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023907 ac_cv_lib_dnet_dnet_ntoa=yes
23908else
cristy8b350f62009-11-15 23:12:43 +000023909 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023910fi
cristy8b350f62009-11-15 23:12:43 +000023911rm -f core conftest.err conftest.$ac_objext \
23912 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023913LIBS=$ac_check_lib_save_LIBS
23914fi
cristy8b350f62009-11-15 23:12:43 +000023915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023916$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023917if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023918 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23919fi
23920
23921 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000023922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000023923$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023924if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023925 $as_echo_n "(cached) " >&6
23926else
23927 ac_check_lib_save_LIBS=$LIBS
23928LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023930/* end confdefs.h. */
23931
23932/* Override any GCC internal prototype to avoid an error.
23933 Use char because int might match the return type of a GCC
23934 builtin and then its argument prototype would still apply. */
23935#ifdef __cplusplus
23936extern "C"
23937#endif
23938char dnet_ntoa ();
23939int
23940main ()
23941{
23942return dnet_ntoa ();
23943 ;
23944 return 0;
23945}
23946_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023947if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023948 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23949else
cristy8b350f62009-11-15 23:12:43 +000023950 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023951fi
cristy8b350f62009-11-15 23:12:43 +000023952rm -f core conftest.err conftest.$ac_objext \
23953 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023954LIBS=$ac_check_lib_save_LIBS
23955fi
cristy8b350f62009-11-15 23:12:43 +000023956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023957$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023958if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023959 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23960fi
23961
23962 fi
23963fi
cristy8b350f62009-11-15 23:12:43 +000023964rm -f core conftest.err conftest.$ac_objext \
23965 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023966 LIBS="$ac_xsave_LIBS"
23967
23968 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23969 # to get the SysV transport functions.
23970 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23971 # needs -lnsl.
23972 # The nsl library prevents programs from opening the X display
23973 # on Irix 5.2, according to T.E. Dickey.
23974 # The functions gethostbyname, getservbyname, and inet_addr are
23975 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000023976 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23977if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023978
cristy3ed852e2009-09-05 21:47:34 +000023979fi
23980
cristy3ed852e2009-09-05 21:47:34 +000023981 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000023982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000023983$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023984if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023985 $as_echo_n "(cached) " >&6
23986else
23987 ac_check_lib_save_LIBS=$LIBS
23988LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023990/* end confdefs.h. */
23991
23992/* Override any GCC internal prototype to avoid an error.
23993 Use char because int might match the return type of a GCC
23994 builtin and then its argument prototype would still apply. */
23995#ifdef __cplusplus
23996extern "C"
23997#endif
23998char gethostbyname ();
23999int
24000main ()
24001{
24002return gethostbyname ();
24003 ;
24004 return 0;
24005}
24006_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024007if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024008 ac_cv_lib_nsl_gethostbyname=yes
24009else
cristy8b350f62009-11-15 23:12:43 +000024010 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024011fi
cristy8b350f62009-11-15 23:12:43 +000024012rm -f core conftest.err conftest.$ac_objext \
24013 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024014LIBS=$ac_check_lib_save_LIBS
24015fi
cristy8b350f62009-11-15 23:12:43 +000024016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024017$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024018if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024019 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24020fi
24021
24022 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000024024$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024025if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024026 $as_echo_n "(cached) " >&6
24027else
24028 ac_check_lib_save_LIBS=$LIBS
24029LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024031/* end confdefs.h. */
24032
24033/* Override any GCC internal prototype to avoid an error.
24034 Use char because int might match the return type of a GCC
24035 builtin and then its argument prototype would still apply. */
24036#ifdef __cplusplus
24037extern "C"
24038#endif
24039char gethostbyname ();
24040int
24041main ()
24042{
24043return gethostbyname ();
24044 ;
24045 return 0;
24046}
24047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024048if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024049 ac_cv_lib_bsd_gethostbyname=yes
24050else
cristy8b350f62009-11-15 23:12:43 +000024051 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024052fi
cristy8b350f62009-11-15 23:12:43 +000024053rm -f core conftest.err conftest.$ac_objext \
24054 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024055LIBS=$ac_check_lib_save_LIBS
24056fi
cristy8b350f62009-11-15 23:12:43 +000024057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024058$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024059if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024060 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24061fi
24062
24063 fi
24064 fi
24065
24066 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24067 # socket/setsockopt and other routines are undefined under SCO ODT
24068 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24069 # on later versions), says Simon Leinen: it contains gethostby*
24070 # variants that don't use the name server (or something). -lsocket
24071 # must be given before -lnsl if both are needed. We assume that
24072 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000024073 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24074if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024075
cristy3ed852e2009-09-05 21:47:34 +000024076fi
24077
cristy3ed852e2009-09-05 21:47:34 +000024078 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000024079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000024080$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024081if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024082 $as_echo_n "(cached) " >&6
24083else
24084 ac_check_lib_save_LIBS=$LIBS
24085LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024087/* end confdefs.h. */
24088
24089/* Override any GCC internal prototype to avoid an error.
24090 Use char because int might match the return type of a GCC
24091 builtin and then its argument prototype would still apply. */
24092#ifdef __cplusplus
24093extern "C"
24094#endif
24095char connect ();
24096int
24097main ()
24098{
24099return connect ();
24100 ;
24101 return 0;
24102}
24103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024104if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024105 ac_cv_lib_socket_connect=yes
24106else
cristy8b350f62009-11-15 23:12:43 +000024107 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000024108fi
cristy8b350f62009-11-15 23:12:43 +000024109rm -f core conftest.err conftest.$ac_objext \
24110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024111LIBS=$ac_check_lib_save_LIBS
24112fi
cristy8b350f62009-11-15 23:12:43 +000024113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000024114$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024115if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024116 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24117fi
24118
24119 fi
24120
24121 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000024122 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24123if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024124
cristy3ed852e2009-09-05 21:47:34 +000024125fi
24126
cristy3ed852e2009-09-05 21:47:34 +000024127 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000024128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000024129$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024130if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024131 $as_echo_n "(cached) " >&6
24132else
24133 ac_check_lib_save_LIBS=$LIBS
24134LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024136/* end confdefs.h. */
24137
24138/* Override any GCC internal prototype to avoid an error.
24139 Use char because int might match the return type of a GCC
24140 builtin and then its argument prototype would still apply. */
24141#ifdef __cplusplus
24142extern "C"
24143#endif
24144char remove ();
24145int
24146main ()
24147{
24148return remove ();
24149 ;
24150 return 0;
24151}
24152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024153if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024154 ac_cv_lib_posix_remove=yes
24155else
cristy8b350f62009-11-15 23:12:43 +000024156 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000024157fi
cristy8b350f62009-11-15 23:12:43 +000024158rm -f core conftest.err conftest.$ac_objext \
24159 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024160LIBS=$ac_check_lib_save_LIBS
24161fi
cristy8b350f62009-11-15 23:12:43 +000024162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000024163$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024164if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024165 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24166fi
24167
24168 fi
24169
24170 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000024171 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24172if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024173
cristy3ed852e2009-09-05 21:47:34 +000024174fi
24175
cristy3ed852e2009-09-05 21:47:34 +000024176 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000024177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024178$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024179if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024180 $as_echo_n "(cached) " >&6
24181else
24182 ac_check_lib_save_LIBS=$LIBS
24183LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024185/* end confdefs.h. */
24186
24187/* Override any GCC internal prototype to avoid an error.
24188 Use char because int might match the return type of a GCC
24189 builtin and then its argument prototype would still apply. */
24190#ifdef __cplusplus
24191extern "C"
24192#endif
24193char shmat ();
24194int
24195main ()
24196{
24197return shmat ();
24198 ;
24199 return 0;
24200}
24201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024202if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024203 ac_cv_lib_ipc_shmat=yes
24204else
cristy8b350f62009-11-15 23:12:43 +000024205 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000024206fi
cristy8b350f62009-11-15 23:12:43 +000024207rm -f core conftest.err conftest.$ac_objext \
24208 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024209LIBS=$ac_check_lib_save_LIBS
24210fi
cristy8b350f62009-11-15 23:12:43 +000024211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000024212$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024213if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024214 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24215fi
24216
24217 fi
24218 fi
24219
24220 # Check for libraries that X11R6 Xt/Xaw programs need.
24221 ac_save_LDFLAGS=$LDFLAGS
24222 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24223 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24224 # check for ICE first), but we must link in the order -lSM -lICE or
24225 # we get undefined symbols. So assume we have SM if we have ICE.
24226 # These have to be linked with before -lX11, unlike the other
24227 # libraries we check for below, so use a different variable.
24228 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000024229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024230$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024231if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024232 $as_echo_n "(cached) " >&6
24233else
24234 ac_check_lib_save_LIBS=$LIBS
24235LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024237/* end confdefs.h. */
24238
24239/* Override any GCC internal prototype to avoid an error.
24240 Use char because int might match the return type of a GCC
24241 builtin and then its argument prototype would still apply. */
24242#ifdef __cplusplus
24243extern "C"
24244#endif
24245char IceConnectionNumber ();
24246int
24247main ()
24248{
24249return IceConnectionNumber ();
24250 ;
24251 return 0;
24252}
24253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024254if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024255 ac_cv_lib_ICE_IceConnectionNumber=yes
24256else
cristy8b350f62009-11-15 23:12:43 +000024257 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000024258fi
cristy8b350f62009-11-15 23:12:43 +000024259rm -f core conftest.err conftest.$ac_objext \
24260 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024261LIBS=$ac_check_lib_save_LIBS
24262fi
cristy8b350f62009-11-15 23:12:43 +000024263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000024264$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024265if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024266 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24267fi
24268
24269 LDFLAGS=$ac_save_LDFLAGS
24270
24271fi
24272
24273if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024275$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000024277$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024279$as_echo "" >&6; }
24280 LDFLAGS="$LDFLAGS $X_LIBS"
24281 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24282 LIBS="$X11_LIBS $LIBS"
24283 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24284
24285
cristy8b350f62009-11-15 23:12:43 +000024286$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024287
24288 #
24289 # Check for X11 shared memory extension
24290 #
24291 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000024292 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24293if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024294 have_shmctl='yes'
24295fi
24296
24297 if test "$have_shmctl" != 'yes'; then
24298 PERSIST_LIBS=$LIBS
24299 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000024300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024301/* end confdefs.h. */
24302
24303/* Override any GCC internal prototype to avoid an error.
24304 Use char because int might match the return type of a GCC
24305 builtin and then its argument prototype would still apply. */
24306#ifdef __cplusplus
24307extern "C"
24308#endif
24309char shmctl ();
24310int
24311main ()
24312{
24313return shmctl ();
24314 ;
24315 return 0;
24316}
24317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024319 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000024320fi
cristy8b350f62009-11-15 23:12:43 +000024321rm -f core conftest.err conftest.$ac_objext \
24322 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024323 LIBS=$PERSIST_LIBS
24324 fi
24325
24326 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024328$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024329if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024330 $as_echo_n "(cached) " >&6
24331else
24332 ac_check_lib_save_LIBS=$LIBS
24333LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024335/* end confdefs.h. */
24336
24337/* Override any GCC internal prototype to avoid an error.
24338 Use char because int might match the return type of a GCC
24339 builtin and then its argument prototype would still apply. */
24340#ifdef __cplusplus
24341extern "C"
24342#endif
24343char XShmAttach ();
24344int
24345main ()
24346{
24347return XShmAttach ();
24348 ;
24349 return 0;
24350}
24351_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024352if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024353 ac_cv_lib_Xext_XShmAttach=yes
24354else
cristy8b350f62009-11-15 23:12:43 +000024355 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000024356fi
cristy8b350f62009-11-15 23:12:43 +000024357rm -f core conftest.err conftest.$ac_objext \
24358 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024359LIBS=$ac_check_lib_save_LIBS
24360fi
cristy8b350f62009-11-15 23:12:43 +000024361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000024362$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024363if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024364 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024365$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024366
24367fi
24368
24369 fi
24370
24371 #
24372 # Check for X11 shape extension
24373 #
cristy8b350f62009-11-15 23:12:43 +000024374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024375$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024376if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024377 $as_echo_n "(cached) " >&6
24378else
24379 ac_check_lib_save_LIBS=$LIBS
24380LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024382/* end confdefs.h. */
24383
24384/* Override any GCC internal prototype to avoid an error.
24385 Use char because int might match the return type of a GCC
24386 builtin and then its argument prototype would still apply. */
24387#ifdef __cplusplus
24388extern "C"
24389#endif
24390char XShapeCombineMask ();
24391int
24392main ()
24393{
24394return XShapeCombineMask ();
24395 ;
24396 return 0;
24397}
24398_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024399if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024400 ac_cv_lib_Xext_XShapeCombineMask=yes
24401else
cristy8b350f62009-11-15 23:12:43 +000024402 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000024403fi
cristy8b350f62009-11-15 23:12:43 +000024404rm -f core conftest.err conftest.$ac_objext \
24405 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024406LIBS=$ac_check_lib_save_LIBS
24407fi
cristy8b350f62009-11-15 23:12:43 +000024408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000024409$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024410if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024411 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024412$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024413
24414fi
24415
cristy8b350f62009-11-15 23:12:43 +000024416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000024417$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024418if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024419 $as_echo_n "(cached) " >&6
24420else
24421 ac_check_lib_save_LIBS=$LIBS
24422LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024424/* end confdefs.h. */
24425
24426/* Override any GCC internal prototype to avoid an error.
24427 Use char because int might match the return type of a GCC
24428 builtin and then its argument prototype would still apply. */
24429#ifdef __cplusplus
24430extern "C"
24431#endif
24432char XtSetEventDispatcher ();
24433int
24434main ()
24435{
24436return XtSetEventDispatcher ();
24437 ;
24438 return 0;
24439}
24440_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024441if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024442 ac_cv_lib_Xt_XtSetEventDispatcher=yes
24443else
cristy8b350f62009-11-15 23:12:43 +000024444 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000024445fi
cristy8b350f62009-11-15 23:12:43 +000024446rm -f core conftest.err conftest.$ac_objext \
24447 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024448LIBS=$ac_check_lib_save_LIBS
24449fi
cristy8b350f62009-11-15 23:12:43 +000024450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000024451$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024452if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024453 XT_LIBS='-lXt'
24454fi
24455
24456 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
24457fi
24458if test "$no_x" != 'yes'; then
24459 have_x='yes'
24460else
24461 have_x='no'
24462fi
24463 if test "$have_x" = 'yes'; then
24464 X11_DELEGATE_TRUE=
24465 X11_DELEGATE_FALSE='#'
24466else
24467 X11_DELEGATE_TRUE='#'
24468 X11_DELEGATE_FALSE=
24469fi
24470
24471
24472
24473
24474
24475#
24476# Check for ZLIB
24477#
24478
24479# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000024480if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024481 withval=$with_zlib; with_zlib=$withval
24482else
24483 with_zlib='yes'
24484fi
24485
24486
24487if test "$with_zlib" != 'yes'; then
24488 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
24489fi
24490
24491have_zlib='no'
24492ZLIB_LIBS=''
24493if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024495$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024497$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024499$as_echo "" >&6; }
24500 ZLIB_LIBS=''
24501 failed=0
24502 passed=0
cristy8b350f62009-11-15 23:12:43 +000024503 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
24504if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024505 passed=`expr $passed + 1`
24506else
24507 failed=`expr $failed + 1`
24508fi
24509
24510
cristy8b350f62009-11-15 23:12:43 +000024511 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24512if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024513 passed=`expr $passed + 1`
24514else
24515 failed=`expr $failed + 1`
24516fi
24517
24518
cristy8b350f62009-11-15 23:12:43 +000024519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024520$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024521if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024522 $as_echo_n "(cached) " >&6
24523else
24524 ac_check_lib_save_LIBS=$LIBS
24525LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024527/* end confdefs.h. */
24528
24529/* Override any GCC internal prototype to avoid an error.
24530 Use char because int might match the return type of a GCC
24531 builtin and then its argument prototype would still apply. */
24532#ifdef __cplusplus
24533extern "C"
24534#endif
24535char compress ();
24536int
24537main ()
24538{
24539return compress ();
24540 ;
24541 return 0;
24542}
24543_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024544if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024545 ac_cv_lib_z_compress=yes
24546else
cristy8b350f62009-11-15 23:12:43 +000024547 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000024548fi
cristy8b350f62009-11-15 23:12:43 +000024549rm -f core conftest.err conftest.$ac_objext \
24550 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024551LIBS=$ac_check_lib_save_LIBS
24552fi
cristy8b350f62009-11-15 23:12:43 +000024553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024554$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024555if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024556 passed=`expr $passed + 1`
24557else
24558 failed=`expr $failed + 1`
24559fi
24560
cristy8b350f62009-11-15 23:12:43 +000024561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024562$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024563if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024564 $as_echo_n "(cached) " >&6
24565else
24566 ac_check_lib_save_LIBS=$LIBS
24567LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024569/* end confdefs.h. */
24570
24571/* Override any GCC internal prototype to avoid an error.
24572 Use char because int might match the return type of a GCC
24573 builtin and then its argument prototype would still apply. */
24574#ifdef __cplusplus
24575extern "C"
24576#endif
24577char uncompress ();
24578int
24579main ()
24580{
24581return uncompress ();
24582 ;
24583 return 0;
24584}
24585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024586if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024587 ac_cv_lib_z_uncompress=yes
24588else
cristy8b350f62009-11-15 23:12:43 +000024589 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000024590fi
cristy8b350f62009-11-15 23:12:43 +000024591rm -f core conftest.err conftest.$ac_objext \
24592 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024593LIBS=$ac_check_lib_save_LIBS
24594fi
cristy8b350f62009-11-15 23:12:43 +000024595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024596$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024597if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024598 passed=`expr $passed + 1`
24599else
24600 failed=`expr $failed + 1`
24601fi
24602
cristy8b350f62009-11-15 23:12:43 +000024603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024604$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024605if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024606 $as_echo_n "(cached) " >&6
24607else
24608 ac_check_lib_save_LIBS=$LIBS
24609LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024611/* end confdefs.h. */
24612
24613/* Override any GCC internal prototype to avoid an error.
24614 Use char because int might match the return type of a GCC
24615 builtin and then its argument prototype would still apply. */
24616#ifdef __cplusplus
24617extern "C"
24618#endif
24619char deflate ();
24620int
24621main ()
24622{
24623return deflate ();
24624 ;
24625 return 0;
24626}
24627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024628if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024629 ac_cv_lib_z_deflate=yes
24630else
cristy8b350f62009-11-15 23:12:43 +000024631 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000024632fi
cristy8b350f62009-11-15 23:12:43 +000024633rm -f core conftest.err conftest.$ac_objext \
24634 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024635LIBS=$ac_check_lib_save_LIBS
24636fi
cristy8b350f62009-11-15 23:12:43 +000024637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024638$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024639if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024640 passed=`expr $passed + 1`
24641else
24642 failed=`expr $failed + 1`
24643fi
24644
cristy8b350f62009-11-15 23:12:43 +000024645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024646$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024647if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024648 $as_echo_n "(cached) " >&6
24649else
24650 ac_check_lib_save_LIBS=$LIBS
24651LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024653/* end confdefs.h. */
24654
24655/* Override any GCC internal prototype to avoid an error.
24656 Use char because int might match the return type of a GCC
24657 builtin and then its argument prototype would still apply. */
24658#ifdef __cplusplus
24659extern "C"
24660#endif
24661char inflate ();
24662int
24663main ()
24664{
24665return inflate ();
24666 ;
24667 return 0;
24668}
24669_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024670if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024671 ac_cv_lib_z_inflate=yes
24672else
cristy8b350f62009-11-15 23:12:43 +000024673 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000024674fi
cristy8b350f62009-11-15 23:12:43 +000024675rm -f core conftest.err conftest.$ac_objext \
24676 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024677LIBS=$ac_check_lib_save_LIBS
24678fi
cristy8b350f62009-11-15 23:12:43 +000024679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024680$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024681if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024682 passed=`expr $passed + 1`
24683else
24684 failed=`expr $failed + 1`
24685fi
24686
cristy8b350f62009-11-15 23:12:43 +000024687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024688$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024689if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024690 $as_echo_n "(cached) " >&6
24691else
24692 ac_check_lib_save_LIBS=$LIBS
24693LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024695/* end confdefs.h. */
24696
24697/* Override any GCC internal prototype to avoid an error.
24698 Use char because int might match the return type of a GCC
24699 builtin and then its argument prototype would still apply. */
24700#ifdef __cplusplus
24701extern "C"
24702#endif
24703char gzseek ();
24704int
24705main ()
24706{
24707return gzseek ();
24708 ;
24709 return 0;
24710}
24711_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024712if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024713 ac_cv_lib_z_gzseek=yes
24714else
cristy8b350f62009-11-15 23:12:43 +000024715 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000024716fi
cristy8b350f62009-11-15 23:12:43 +000024717rm -f core conftest.err conftest.$ac_objext \
24718 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024719LIBS=$ac_check_lib_save_LIBS
24720fi
cristy8b350f62009-11-15 23:12:43 +000024721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000024722$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024723if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024724 passed=`expr $passed + 1`
24725else
24726 failed=`expr $failed + 1`
24727fi
24728
cristy8b350f62009-11-15 23:12:43 +000024729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024730$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024731if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024732 $as_echo_n "(cached) " >&6
24733else
24734 ac_check_lib_save_LIBS=$LIBS
24735LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024737/* end confdefs.h. */
24738
24739/* Override any GCC internal prototype to avoid an error.
24740 Use char because int might match the return type of a GCC
24741 builtin and then its argument prototype would still apply. */
24742#ifdef __cplusplus
24743extern "C"
24744#endif
24745char gztell ();
24746int
24747main ()
24748{
24749return gztell ();
24750 ;
24751 return 0;
24752}
24753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024754if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024755 ac_cv_lib_z_gztell=yes
24756else
cristy8b350f62009-11-15 23:12:43 +000024757 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000024758fi
cristy8b350f62009-11-15 23:12:43 +000024759rm -f core conftest.err conftest.$ac_objext \
24760 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024761LIBS=$ac_check_lib_save_LIBS
24762fi
cristy8b350f62009-11-15 23:12:43 +000024763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000024764$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024765if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024766 passed=`expr $passed + 1`
24767else
24768 failed=`expr $failed + 1`
24769fi
24770
cristy8b350f62009-11-15 23:12:43 +000024771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024772$as_echo_n "checking if ZLIB package is complete... " >&6; }
24773 if test $passed -gt 0; then
24774 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024776$as_echo "no -- some components failed test" >&6; }
24777 have_zlib='no (failed tests)'
24778 else
24779 ZLIB_LIBS='-lz'
24780 LIBS="$ZLIB_LIBS $LIBS"
24781
cristy8b350f62009-11-15 23:12:43 +000024782$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024783
cristy8b350f62009-11-15 23:12:43 +000024784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024785$as_echo "yes" >&6; }
24786 have_zlib='yes'
24787 fi
24788 else
cristy8b350f62009-11-15 23:12:43 +000024789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024790$as_echo "no" >&6; }
24791 fi
24792fi
24793 if test "$have_zlib" = 'yes'; then
24794 ZLIB_DELEGATE_TRUE=
24795 ZLIB_DELEGATE_FALSE='#'
24796else
24797 ZLIB_DELEGATE_TRUE='#'
24798 ZLIB_DELEGATE_FALSE=
24799fi
24800
24801
24802
24803#
24804# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
24805#
24806LIB_DL=''
24807if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024809$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024810if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024811 $as_echo_n "(cached) " >&6
24812else
24813 ac_check_lib_save_LIBS=$LIBS
24814LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024816/* end confdefs.h. */
24817
24818/* Override any GCC internal prototype to avoid an error.
24819 Use char because int might match the return type of a GCC
24820 builtin and then its argument prototype would still apply. */
24821#ifdef __cplusplus
24822extern "C"
24823#endif
24824char dlopen ();
24825int
24826main ()
24827{
24828return dlopen ();
24829 ;
24830 return 0;
24831}
24832_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024833if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024834 ac_cv_lib_dl_dlopen=yes
24835else
cristy8b350f62009-11-15 23:12:43 +000024836 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000024837fi
cristy8b350f62009-11-15 23:12:43 +000024838rm -f core conftest.err conftest.$ac_objext \
24839 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024840LIBS=$ac_check_lib_save_LIBS
24841fi
cristy8b350f62009-11-15 23:12:43 +000024842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000024843$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024844if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024845 LIB_DL='-ldl'
24846fi
24847
24848 LIBS="$LIB_DL $LIBS"
24849fi
24850
24851
24852
24853#
24854# Check for Autotrace delegate library.
24855#
24856
24857# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000024858if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024859 withval=$with_autotrace; with_autotrace=$withval
24860else
24861 with_autotrace='no'
24862fi
24863
24864
24865if test "$with_autotrace" != 'yes'; then
24866 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
24867fi
24868
24869have_autotrace='no'
24870AUTOTRACE_CFLAGS=""
24871AUTOTRACE_LIBS=""
24872AUTOTRACE_PKG=""
24873if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000024874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024875$as_echo "-------------------------------------------------------------" >&6; }
24876
24877pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000024878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024879$as_echo_n "checking for AUTOTRACE... " >&6; }
24880
24881if test -n "$AUTOTRACE_CFLAGS"; then
24882 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
24883 elif test -n "$PKG_CONFIG"; then
24884 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024885 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024886 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24887 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024890 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
24891else
24892 pkg_failed=yes
24893fi
24894 else
24895 pkg_failed=untried
24896fi
24897if test -n "$AUTOTRACE_LIBS"; then
24898 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
24899 elif test -n "$PKG_CONFIG"; then
24900 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024901 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024902 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24903 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24905 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024906 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
24907else
24908 pkg_failed=yes
24909fi
24910 else
24911 pkg_failed=untried
24912fi
24913
24914
24915
24916if test $pkg_failed = yes; then
24917
24918if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24919 _pkg_short_errors_supported=yes
24920else
24921 _pkg_short_errors_supported=no
24922fi
24923 if test $_pkg_short_errors_supported = yes; then
24924 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
24925 else
24926 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
24927 fi
24928 # Put the nasty error message in config.log where it belongs
24929 echo "$AUTOTRACE_PKG_ERRORS" >&5
24930
cristy8b350f62009-11-15 23:12:43 +000024931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024932$as_echo "no" >&6; }
24933 have_autotrace=no
24934elif test $pkg_failed = untried; then
24935 have_autotrace=no
24936else
24937 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
24938 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000024939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024940$as_echo "yes" >&6; }
24941 have_autotrace=yes
24942fi
cristy8b350f62009-11-15 23:12:43 +000024943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024944$as_echo "" >&6; }
24945fi
24946
24947if test "$have_autotrace" = 'yes'; then
24948 failed=0
24949
cristy8b350f62009-11-15 23:12:43 +000024950$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024951
24952 if test "$with_modules" = 'no'; then
24953 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
24954 fi
24955fi
24956
24957 if test "$have_autotrace" = 'yes'; then
24958 AUTOTRACE_DELEGATE_TRUE=
24959 AUTOTRACE_DELEGATE_FALSE='#'
24960else
24961 AUTOTRACE_DELEGATE_TRUE='#'
24962 AUTOTRACE_DELEGATE_FALSE=
24963fi
24964
24965
24966
24967
24968
24969#
24970# Check for Display Postscript delegate library.
24971#
24972
24973# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000024974if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024975 withval=$with_dps; with_dps=$withval
24976else
24977 with_dps='yes'
24978fi
24979
24980
24981if test "$with_dps" != 'yes'; then
24982 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
24983fi
24984
24985have_dps='no'
24986DPS_LIBS=''
24987if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024989$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000024991$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024993$as_echo "" >&6; }
24994 failed=0
24995 passed=0
24996 PERSIST_CPPFLAGS="$CPPFLAGS"
24997 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000024998 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
24999if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025000 passed=`expr $passed + 1`
25001else
25002 failed=`expr $failed + 1`
25003fi
25004
25005
25006 # DPS issues:
25007 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25008 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25009 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25010 # ImageMagick itself doesn't use -lXt.
25011 have_libdps='no'
25012 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000025013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025014$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025015if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025016 $as_echo_n "(cached) " >&6
25017else
25018 ac_check_lib_save_LIBS=$LIBS
25019LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025021/* end confdefs.h. */
25022
25023/* Override any GCC internal prototype to avoid an error.
25024 Use char because int might match the return type of a GCC
25025 builtin and then its argument prototype would still apply. */
25026#ifdef __cplusplus
25027extern "C"
25028#endif
25029char DPSInitialize ();
25030int
25031main ()
25032{
25033return DPSInitialize ();
25034 ;
25035 return 0;
25036}
25037_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025038if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025039 ac_cv_lib_dps_DPSInitialize=yes
25040else
cristy8b350f62009-11-15 23:12:43 +000025041 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025042fi
cristy8b350f62009-11-15 23:12:43 +000025043rm -f core conftest.err conftest.$ac_objext \
25044 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025045LIBS=$ac_check_lib_save_LIBS
25046fi
cristy8b350f62009-11-15 23:12:43 +000025047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025048$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025049if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025050 have_libdps='yes'
25051else
25052 have_libdps='no'
25053fi
25054
25055 if test "$have_libdps" != 'yes'; then
25056 # Unset cache variable so we can try again.
25057 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000025058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025059$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025060if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025061 $as_echo_n "(cached) " >&6
25062else
25063 ac_check_lib_save_LIBS=$LIBS
25064LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025066/* end confdefs.h. */
25067
25068/* Override any GCC internal prototype to avoid an error.
25069 Use char because int might match the return type of a GCC
25070 builtin and then its argument prototype would still apply. */
25071#ifdef __cplusplus
25072extern "C"
25073#endif
25074char DPSInitialize ();
25075int
25076main ()
25077{
25078return DPSInitialize ();
25079 ;
25080 return 0;
25081}
25082_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025083if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025084 ac_cv_lib_dps_DPSInitialize=yes
25085else
cristy8b350f62009-11-15 23:12:43 +000025086 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025087fi
cristy8b350f62009-11-15 23:12:43 +000025088rm -f core conftest.err conftest.$ac_objext \
25089 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025090LIBS=$ac_check_lib_save_LIBS
25091fi
cristy8b350f62009-11-15 23:12:43 +000025092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025093$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025094if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025095 have_libdps='yes'
25096else
25097 have_libdps='no'
25098fi
25099
25100 if test "$have_libdps" = 'yes'; then
25101 LIBDPS_XT='-lXt'
25102 fi
25103 fi
25104 if test "$have_libdps" = 'yes'; then
25105 passed=`expr $passed + 1`
25106 else
25107 failed=`expr $failed + 1`
25108 fi
cristy8b350f62009-11-15 23:12:43 +000025109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025110$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025111if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025112 $as_echo_n "(cached) " >&6
25113else
25114 ac_check_lib_save_LIBS=$LIBS
25115LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025117/* end confdefs.h. */
25118
25119/* Override any GCC internal prototype to avoid an error.
25120 Use char because int might match the return type of a GCC
25121 builtin and then its argument prototype would still apply. */
25122#ifdef __cplusplus
25123extern "C"
25124#endif
25125char XDPSPixelsPerPoint ();
25126int
25127main ()
25128{
25129return XDPSPixelsPerPoint ();
25130 ;
25131 return 0;
25132}
25133_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025134if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025135 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25136else
cristy8b350f62009-11-15 23:12:43 +000025137 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000025138fi
cristy8b350f62009-11-15 23:12:43 +000025139rm -f core conftest.err conftest.$ac_objext \
25140 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025141LIBS=$ac_check_lib_save_LIBS
25142fi
cristy8b350f62009-11-15 23:12:43 +000025143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000025144$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025145if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025146 passed=`expr $passed + 1`
25147else
25148 failed=`expr $failed + 1`
25149fi
25150
cristy8b350f62009-11-15 23:12:43 +000025151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025152$as_echo_n "checking if DPS package is complete... " >&6; }
25153 if test $passed -gt 0; then
25154 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025156$as_echo "no -- some components failed test" >&6; }
25157 have_dps='no (failed tests)'
25158 CPPFLAGS="$PERSIST_CPPFLAGS"
25159 else
25160 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
25161 LIBS="$DPS_LIBS $LIBS"
25162
cristy8b350f62009-11-15 23:12:43 +000025163$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025164
cristy8b350f62009-11-15 23:12:43 +000025165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025166$as_echo "yes" >&6; }
25167 have_dps='yes'
25168 fi
25169 else
cristy8b350f62009-11-15 23:12:43 +000025170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025171$as_echo "no" >&6; }
25172 CPPFLAGS=$PERSIST_CPPFLAGS
25173 fi
25174fi
25175 if test "$have_dps" = 'yes'; then
25176 DPS_DELEGATE_TRUE=
25177 DPS_DELEGATE_FALSE='#'
25178else
25179 DPS_DELEGATE_TRUE='#'
25180 DPS_DELEGATE_FALSE=
25181fi
25182
25183
25184
25185
25186#
25187# Check for DJVU delegate library.
25188#
25189
25190# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000025191if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025192 withval=$with_djvu; with_djvu=$withval
25193else
25194 with_djvu='yes'
25195fi
25196
25197
25198if test "$with_djvu" != 'yes'; then
25199 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
25200fi
25201
25202have_djvu='no'
25203DJVU_LIBS=''
25204if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025206$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000025208$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025210$as_echo "" >&6; }
25211 failed=0
25212 passed=0
cristy8b350f62009-11-15 23:12:43 +000025213 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25214if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025215 passed=`expr $passed + 1`
25216else
25217 failed=`expr $failed + 1`
25218fi
25219
25220
cristy8b350f62009-11-15 23:12:43 +000025221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000025222$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025223if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025224 $as_echo_n "(cached) " >&6
25225else
25226 ac_check_lib_save_LIBS=$LIBS
25227LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025229/* end confdefs.h. */
25230
25231/* Override any GCC internal prototype to avoid an error.
25232 Use char because int might match the return type of a GCC
25233 builtin and then its argument prototype would still apply. */
25234#ifdef __cplusplus
25235extern "C"
25236#endif
25237char ddjvu_context_create ();
25238int
25239main ()
25240{
25241return ddjvu_context_create ();
25242 ;
25243 return 0;
25244}
25245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025246if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025247 ac_cv_lib_djvulibre_ddjvu_context_create=yes
25248else
cristy8b350f62009-11-15 23:12:43 +000025249 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000025250fi
cristy8b350f62009-11-15 23:12:43 +000025251rm -f core conftest.err conftest.$ac_objext \
25252 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025253LIBS=$ac_check_lib_save_LIBS
25254fi
cristy8b350f62009-11-15 23:12:43 +000025255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000025256$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025257if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025258 passed=`expr $passed + 1`
25259else
25260 failed=`expr $failed + 1`
25261fi
25262
cristy8b350f62009-11-15 23:12:43 +000025263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025264$as_echo_n "checking if DJVU package is complete... " >&6; }
25265 if test $passed -gt 0; then
25266 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025268$as_echo "no -- some components failed test" >&6; }
25269 have_djvu='no (failed tests)'
25270 else
25271 DJVU_LIBS='-ldjvulibre'
25272 LIBS="$DJVU_LIBS $LIBS"
25273
cristy8b350f62009-11-15 23:12:43 +000025274$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025275
cristy8b350f62009-11-15 23:12:43 +000025276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025277$as_echo "yes" >&6; }
25278 have_djvu='yes'
25279 fi
25280 else
cristy8b350f62009-11-15 23:12:43 +000025281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025282$as_echo "no" >&6; }
25283 fi
25284fi
25285 if test "$have_djvu" = 'yes'; then
25286 DJVU_DELEGATE_TRUE=
25287 DJVU_DELEGATE_FALSE='#'
25288else
25289 DJVU_DELEGATE_TRUE='#'
25290 DJVU_DELEGATE_FALSE=
25291fi
25292
25293
25294
25295
25296#
25297# Check for FFTW delegate library.
25298#
25299
25300# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000025301if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025302 withval=$with_fftw; with_fftw=$withval
25303else
25304 with_fftw='yes'
25305fi
25306
25307
25308if test "$with_fftw" != 'yes'; then
25309 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
25310fi
25311
25312have_fftw='no'
25313FFTW_LIBS=''
25314if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025316$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000025318$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025320$as_echo "" >&6; }
25321 failed=0
25322 passed=0
cristy8b350f62009-11-15 23:12:43 +000025323 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
25324if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025325 passed=`expr $passed + 1`
25326else
25327 failed=`expr $failed + 1`
25328fi
25329
25330
cristy8b350f62009-11-15 23:12:43 +000025331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000025332$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025333if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025334 $as_echo_n "(cached) " >&6
25335else
25336 ac_check_lib_save_LIBS=$LIBS
25337LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025339/* end confdefs.h. */
25340
25341/* Override any GCC internal prototype to avoid an error.
25342 Use char because int might match the return type of a GCC
25343 builtin and then its argument prototype would still apply. */
25344#ifdef __cplusplus
25345extern "C"
25346#endif
25347char fftw_execute ();
25348int
25349main ()
25350{
25351return fftw_execute ();
25352 ;
25353 return 0;
25354}
25355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025356if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025357 ac_cv_lib_fftw3_fftw_execute=yes
25358else
cristy8b350f62009-11-15 23:12:43 +000025359 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000025360fi
cristy8b350f62009-11-15 23:12:43 +000025361rm -f core conftest.err conftest.$ac_objext \
25362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025363LIBS=$ac_check_lib_save_LIBS
25364fi
cristy8b350f62009-11-15 23:12:43 +000025365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000025366$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025367if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025368 passed=`expr $passed + 1`
25369else
25370 failed=`expr $failed + 1`
25371fi
25372
cristy8b350f62009-11-15 23:12:43 +000025373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025374$as_echo_n "checking if FFTW package is complete... " >&6; }
25375 if test $passed -gt 0; then
25376 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025378$as_echo "no -- some components failed test" >&6; }
25379 have_fftw='no (failed tests)'
25380 else
25381 FFTW_LIBS='-lfftw3'
25382 LIBS="$FFTW_LIBS $LIBS"
25383
cristy8b350f62009-11-15 23:12:43 +000025384$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025385
cristy8b350f62009-11-15 23:12:43 +000025386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025387$as_echo "yes" >&6; }
25388 have_fftw='yes'
25389 fi
25390 else
cristy8b350f62009-11-15 23:12:43 +000025391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025392$as_echo "no" >&6; }
25393 fi
25394fi
25395 if test "$have_fftw" = 'yes'; then
25396 FFTW_DELEGATE_TRUE=
25397 FFTW_DELEGATE_FALSE='#'
25398else
25399 FFTW_DELEGATE_TRUE='#'
25400 FFTW_DELEGATE_FALSE=
25401fi
25402
25403
25404
25405
25406#
25407# Check for FlashPIX delegate library.
25408#
25409
25410# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000025411if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025412 withval=$with_fpx; with_fpx=$withval
25413else
25414 with_fpx='yes'
25415fi
25416
25417
25418if test "$with_fpx" != 'yes'; then
25419 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
25420fi
25421
25422have_fpx='no'
25423FPX_LIBS=''
25424if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025426$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025428$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025430$as_echo "" >&6; }
25431 failed=0
25432 passed=0
25433 ac_ext=cpp
25434ac_cpp='$CXXCPP $CPPFLAGS'
25435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25438
25439
cristy8b350f62009-11-15 23:12:43 +000025440ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
25441if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025442 passed=`expr $passed + 1`
25443else
25444 failed=`expr $failed + 1`
25445fi
25446
25447
cristy8b350f62009-11-15 23:12:43 +000025448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000025449$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025450if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025451 $as_echo_n "(cached) " >&6
25452else
25453 ac_check_lib_save_LIBS=$LIBS
25454LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025456/* end confdefs.h. */
25457
25458/* Override any GCC internal prototype to avoid an error.
25459 Use char because int might match the return type of a GCC
25460 builtin and then its argument prototype would still apply. */
25461#ifdef __cplusplus
25462extern "C"
25463#endif
25464char FPX_OpenImageByFilename ();
25465int
25466main ()
25467{
25468return FPX_OpenImageByFilename ();
25469 ;
25470 return 0;
25471}
25472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025473if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025474 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
25475else
cristy8b350f62009-11-15 23:12:43 +000025476 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000025477fi
cristy8b350f62009-11-15 23:12:43 +000025478rm -f core conftest.err conftest.$ac_objext \
25479 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025480LIBS=$ac_check_lib_save_LIBS
25481fi
cristy8b350f62009-11-15 23:12:43 +000025482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000025483$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025484if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025485 passed=`expr $passed + 1`
25486else
25487 failed=`expr $failed + 1`
25488fi
25489
25490 ac_ext=c
25491ac_cpp='$CPP $CPPFLAGS'
25492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25494ac_compiler_gnu=$ac_cv_c_compiler_gnu
25495
cristy8b350f62009-11-15 23:12:43 +000025496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025497$as_echo_n "checking if FlashPIX package is complete... " >&6; }
25498 if test $passed -gt 0; then
25499 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025501$as_echo "no -- some components failed test" >&6; }
25502 have_fpx='no (failed tests)'
25503 else
25504 FPX_LIBS='-lfpx'
25505
cristy8b350f62009-11-15 23:12:43 +000025506$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025507
cristy8b350f62009-11-15 23:12:43 +000025508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025509$as_echo "yes" >&6; }
25510 have_fpx='yes'
25511 PERLMAINCC="$CXX"
25512 fi
25513 else
cristy8b350f62009-11-15 23:12:43 +000025514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025515$as_echo "no" >&6; }
25516 fi
25517fi
25518 if test "$have_fpx" = 'yes'; then
25519 FPX_DELEGATE_TRUE=
25520 FPX_DELEGATE_FALSE='#'
25521else
25522 FPX_DELEGATE_TRUE='#'
25523 FPX_DELEGATE_FALSE=
25524fi
25525
25526
25527
25528
25529#
25530# Check for fontconfig delegate library.
25531#
25532
25533# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000025534if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025535 withval=$with_fontconfig; with_fontconfig=$withval
25536else
25537 with_fontconfig=$have_x
25538fi
25539
25540
25541if test "$with_fontconfig" != 'yes'; then
25542 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
25543fi
25544
25545have_fontconfig='no'
25546FONTCONFIG_CFLAGS=""
25547FONTCONFIG_LIBS=""
25548FONTCONFIG_PKG=""
25549if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025551$as_echo "-------------------------------------------------------------" >&6; }
25552
25553pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000025555$as_echo_n "checking for FONTCONFIG... " >&6; }
25556
25557if test -n "$FONTCONFIG_CFLAGS"; then
25558 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
25559 elif test -n "$PKG_CONFIG"; then
25560 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025561 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025562 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25563 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25565 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025566 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
25567else
25568 pkg_failed=yes
25569fi
25570 else
25571 pkg_failed=untried
25572fi
25573if test -n "$FONTCONFIG_LIBS"; then
25574 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
25575 elif test -n "$PKG_CONFIG"; then
25576 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025577 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025578 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25579 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25581 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025582 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
25583else
25584 pkg_failed=yes
25585fi
25586 else
25587 pkg_failed=untried
25588fi
25589
25590
25591
25592if test $pkg_failed = yes; then
25593
25594if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25595 _pkg_short_errors_supported=yes
25596else
25597 _pkg_short_errors_supported=no
25598fi
25599 if test $_pkg_short_errors_supported = yes; then
25600 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
25601 else
25602 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
25603 fi
25604 # Put the nasty error message in config.log where it belongs
25605 echo "$FONTCONFIG_PKG_ERRORS" >&5
25606
cristy8b350f62009-11-15 23:12:43 +000025607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025608$as_echo "no" >&6; }
25609 have_fontconfig=no
25610elif test $pkg_failed = untried; then
25611 have_fontconfig=no
25612else
25613 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
25614 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000025615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025616$as_echo "yes" >&6; }
25617 have_fontconfig=yes
25618fi
cristy8b350f62009-11-15 23:12:43 +000025619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025620$as_echo "" >&6; }
25621fi
25622
25623if test "$have_fontconfig" = 'yes'; then
25624
cristy8b350f62009-11-15 23:12:43 +000025625$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025626
25627 if test "$with_modules" = 'no'; then
25628 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
25629 fi
25630fi
25631
25632 if test "$have_fontconfig" = 'yes'; then
25633 FONTCONFIG_DELEGATE_TRUE=
25634 FONTCONFIG_DELEGATE_FALSE='#'
25635else
25636 FONTCONFIG_DELEGATE_TRUE='#'
25637 FONTCONFIG_DELEGATE_FALSE=
25638fi
25639
25640
25641
25642
25643
25644#
25645# Check for freetype delegate library.
25646#
25647
25648# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000025649if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025650 withval=$with_freetype; with_freetype=$withval
25651else
25652 with_freetype='yes'
25653fi
25654
25655
25656
25657if test "$with_freetype" != 'yes'; then
25658 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
25659fi
25660
25661have_freetype='no'
25662FREETYPE_LIBS=''
25663if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025665$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000025667$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025669$as_echo "" >&6; }
25670 failed=0
25671 passed=0
cristy66291112009-10-03 22:44:36 +000025672 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025673 PERSIST_CPPFLAGS="$CPPFLAGS"
25674 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
25675 :
25676 else
25677 freetype_config=''
25678 for ac_prog in freetype-config
25679do
25680 # Extract the first word of "$ac_prog", so it can be a program name with args.
25681set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025683$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025684if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025685 $as_echo_n "(cached) " >&6
25686else
25687 if test -n "$freetype_config"; then
25688 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
25689else
25690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25691for as_dir in $PATH
25692do
25693 IFS=$as_save_IFS
25694 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025695 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25697 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025699 break 2
25700 fi
25701done
cristy8b350f62009-11-15 23:12:43 +000025702 done
cristy3ed852e2009-09-05 21:47:34 +000025703IFS=$as_save_IFS
25704
25705fi
25706fi
25707freetype_config=$ac_cv_prog_freetype_config
25708if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000025709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000025710$as_echo "$freetype_config" >&6; }
25711else
cristy8b350f62009-11-15 23:12:43 +000025712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025713$as_echo "no" >&6; }
25714fi
25715
25716
25717 test -n "$freetype_config" && break
25718done
25719 if test -n "$freetype_config"; then
25720 freetype_cflags=`$freetype_config --cflags`
25721 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000025722 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000025723 CPPFLAGS="$freetype_cflags $CPPFLAGS"
25724 fi
25725 fi
25726
25727 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000025728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000025729$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025730if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025731 $as_echo_n "(cached) " >&6
25732else
25733 ac_check_lib_save_LIBS=$LIBS
25734LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025736/* end confdefs.h. */
25737
25738/* Override any GCC internal prototype to avoid an error.
25739 Use char because int might match the return type of a GCC
25740 builtin and then its argument prototype would still apply. */
25741#ifdef __cplusplus
25742extern "C"
25743#endif
25744char FT_Init_FreeType ();
25745int
25746main ()
25747{
25748return FT_Init_FreeType ();
25749 ;
25750 return 0;
25751}
25752_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025753if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025754 ac_cv_lib_freetype_FT_Init_FreeType=yes
25755else
cristy8b350f62009-11-15 23:12:43 +000025756 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000025757fi
cristy8b350f62009-11-15 23:12:43 +000025758rm -f core conftest.err conftest.$ac_objext \
25759 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025760LIBS=$ac_check_lib_save_LIBS
25761fi
cristy8b350f62009-11-15 23:12:43 +000025762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000025763$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025764if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025765 FREETYPE_LIBS='-lfreetype'
25766fi
25767
25768 if test "$FREETYPE_LIBS" != ''; then
25769 passed=`expr $passed + 1`
25770 else
25771 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000025772 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025773 fi
25774 fi
25775
cristy8b350f62009-11-15 23:12:43 +000025776 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
25777if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025778 FT2BUILD_H='#include <ft2build.h>'
25779else
25780 ft2build=''
25781fi
25782
25783
cristy8b350f62009-11-15 23:12:43 +000025784 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
25785"
25786if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025787 have_freetype_h='yes'
25788else
25789 have_freetype_h='no'
25790fi
25791
25792
25793 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
25794 passed=`expr $passed + 1`
25795 else
25796 failed=`expr $failed + 1`
25797 CPPFLAGS="$PERSIST_CPPFLAGS"
25798 fi
25799
cristy8b350f62009-11-15 23:12:43 +000025800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025801$as_echo_n "checking if FreeType package is complete... " >&6; }
25802 if test $passed -gt 0; then
25803 if test $failed -gt 0; then
25804 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025806$as_echo "no -- some components failed test" >&6; }
25807 have_freetype='no (failed tests)'
25808 else
25809 LIBS="$FREETYPE_LIBS $LIBS"
25810
cristy8b350f62009-11-15 23:12:43 +000025811$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025812
25813 if test "$ac_cv_header_ft2build_h" = 'yes'; then
25814
cristy8b350f62009-11-15 23:12:43 +000025815$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025816
25817 fi
cristy8b350f62009-11-15 23:12:43 +000025818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025819$as_echo "yes" >&6; }
25820 have_freetype='yes'
25821 fi
25822 else
cristy8b350f62009-11-15 23:12:43 +000025823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025824$as_echo "no" >&6; }
25825 fi
25826fi
25827 if test "$have_freetype" = 'yes'; then
25828 FREETYPE_DELEGATE_TRUE=
25829 FREETYPE_DELEGATE_FALSE='#'
25830else
25831 FREETYPE_DELEGATE_TRUE='#'
25832 FREETYPE_DELEGATE_FALSE=
25833fi
25834
25835
25836
25837
25838
25839#
25840# Check for Ghostscript library or framework.
25841#
25842# Test for iapi.h & test for gsapi_new_instance in -lgs
25843# or -framework Ghostscript
25844
25845
25846# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000025847if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025848 withval=$with_gslib; with_gslib=$withval
25849else
25850 with_gslib='no'
25851fi
25852
25853
cristyb7931f12009-09-25 10:22:21 +000025854gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000025855if test "$with_gslib" != 'yes'; then
25856 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
25857fi
25858
25859have_gslib='no'
25860GS_LIBS=''
25861if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025863$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000025865$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025867$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000025868 framework=0
cristy3ed852e2009-09-05 21:47:34 +000025869 failed=0
25870 passed=0
cristy8b350f62009-11-15 23:12:43 +000025871 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
25872if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025873 passed=`expr $passed + 1`
25874else
25875 failed=`expr $failed + 1`
25876fi
25877
25878
cristy8b350f62009-11-15 23:12:43 +000025879 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
25880if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025881 passed=`expr $passed + 1`
25882else
25883 failed=`expr $failed + 1`
25884fi
25885
25886
cristy8b350f62009-11-15 23:12:43 +000025887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000025888$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025889if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025890 $as_echo_n "(cached) " >&6
25891else
25892 ac_check_framework_save_LIBS=$LIBS
25893LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025895/* end confdefs.h. */
25896
25897/* Override any GCC internal prototype to avoid an error.
25898 Use char because int might match the return type of a GCC
25899 builtin and then its argument prototype would still apply. */
25900#ifdef __cplusplus
25901extern "C"
25902#endif
25903char gsapi_new_instance ();
25904int
25905main ()
25906{
25907return gsapi_new_instance ();
25908 ;
25909 return 0;
25910}
25911_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025912if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025913 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
25914else
cristy8b350f62009-11-15 23:12:43 +000025915 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025916fi
cristy8b350f62009-11-15 23:12:43 +000025917rm -f core conftest.err conftest.$ac_objext \
25918 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025919LIBS=$ac_check_framework_save_LIBS
25920fi
cristy8b350f62009-11-15 23:12:43 +000025921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025922$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025923if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025924 framework=`expr $framework + 1`
25925else
cristy8b350f62009-11-15 23:12:43 +000025926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000025927$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025928if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025929 $as_echo_n "(cached) " >&6
25930else
25931 ac_check_lib_save_LIBS=$LIBS
25932LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025934/* end confdefs.h. */
25935
25936/* Override any GCC internal prototype to avoid an error.
25937 Use char because int might match the return type of a GCC
25938 builtin and then its argument prototype would still apply. */
25939#ifdef __cplusplus
25940extern "C"
25941#endif
25942char gsapi_new_instance ();
25943int
25944main ()
25945{
25946return gsapi_new_instance ();
25947 ;
25948 return 0;
25949}
25950_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025951if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025952 ac_cv_lib_gs_gsapi_new_instance=yes
25953else
cristy8b350f62009-11-15 23:12:43 +000025954 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025955fi
cristy8b350f62009-11-15 23:12:43 +000025956rm -f core conftest.err conftest.$ac_objext \
25957 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025958LIBS=$ac_check_lib_save_LIBS
25959fi
cristy8b350f62009-11-15 23:12:43 +000025960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025961$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025962if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025963 passed=`expr $passed + 1`
25964else
25965 failed=`expr $failed + 1`
25966fi
25967
25968fi
cristy8b350f62009-11-15 23:12:43 +000025969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025970$as_echo_n "checking if Ghostscript package is complete... " >&6; }
25971 if test $passed -gt 0; then
25972 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025974$as_echo "no -- some components failed test" >&6; }
25975 have_gslib='no (failed tests)'
25976 else
25977 if test $framework -gt 0; then
25978 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000025979 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000025980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000025981$as_echo "yes, using framework." >&6; }
25982 else
cristy8b350f62009-11-15 23:12:43 +000025983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000025984$as_echo "yes, using library." >&6; }
25985 GS_LIBS='-lgs'
25986 fi
25987 LIBS="$GS_LIBS $LIBS"
25988
cristy8b350f62009-11-15 23:12:43 +000025989$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025990
25991 have_gslib='yes'
25992 fi
25993 else
cristy8b350f62009-11-15 23:12:43 +000025994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025995$as_echo "no" >&6; }
25996 fi
25997fi
25998 if test "$have_gslib" = 'yes'; then
25999 GS_DELEGATE_TRUE=
26000 GS_DELEGATE_FALSE='#'
26001else
26002 GS_DELEGATE_TRUE='#'
26003 GS_DELEGATE_FALSE=
26004fi
26005
26006
26007
26008# Set default font search path
26009
26010# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000026011if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026012 withval=$with_fontpath; with_fontpath=$withval
26013else
26014 with_fontpath=''
26015fi
26016
26017
26018if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26019 with_fontpath=''
26020else
26021
26022cat >>confdefs.h <<_ACEOF
26023#define MAGICK_FONT_PATH "$with_fontpath"
26024_ACEOF
26025
26026fi
26027if test "$with_fontpath=" != ''; then
26028 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26029fi
26030
26031# Set Ghostscript font directory
26032
26033# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000026034if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026035 withval=$with_gs_font_dir; with_gs_font_dir=$withval
26036else
26037 with_gs_font_dir='default'
26038fi
26039
26040
26041if test "$with_gs_font_dir" != 'default'; then
26042 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26043fi
26044
26045
26046#
26047# Check for GVC delegate library.
26048#
26049
26050# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000026051if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026052 withval=$with_gvc; with_gvc=$withval
26053else
26054 with_gvc='yes'
26055fi
26056
26057
26058if test "$with_gvc" != 'yes'; then
26059 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26060fi
26061
26062GVC_PKG=""
26063if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026065$as_echo "-------------------------------------------------------------" >&6; }
26066
26067pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000026069$as_echo_n "checking for GVC... " >&6; }
26070
26071if test -n "$GVC_CFLAGS"; then
26072 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26073 elif test -n "$PKG_CONFIG"; then
26074 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026075 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026076 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26077 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26079 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026080 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26081else
26082 pkg_failed=yes
26083fi
26084 else
26085 pkg_failed=untried
26086fi
26087if test -n "$GVC_LIBS"; then
26088 pkg_cv_GVC_LIBS="$GVC_LIBS"
26089 elif test -n "$PKG_CONFIG"; then
26090 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026092 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26093 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26095 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026096 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26097else
26098 pkg_failed=yes
26099fi
26100 else
26101 pkg_failed=untried
26102fi
26103
26104
26105
26106if test $pkg_failed = yes; then
26107
26108if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26109 _pkg_short_errors_supported=yes
26110else
26111 _pkg_short_errors_supported=no
26112fi
26113 if test $_pkg_short_errors_supported = yes; then
26114 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26115 else
26116 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26117 fi
26118 # Put the nasty error message in config.log where it belongs
26119 echo "$GVC_PKG_ERRORS" >&5
26120
cristy8b350f62009-11-15 23:12:43 +000026121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026122$as_echo "no" >&6; }
26123 have_gvc=no
26124elif test $pkg_failed = untried; then
26125 have_gvc=no
26126else
26127 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
26128 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000026129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026130$as_echo "yes" >&6; }
26131 have_gvc=yes
26132fi
cristy8b350f62009-11-15 23:12:43 +000026133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026134$as_echo "" >&6; }
26135fi
26136
26137if test "$have_gvc" = 'yes'; then
26138
cristy8b350f62009-11-15 23:12:43 +000026139$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026140
26141 if test "$with_modules" = 'no'; then
26142 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
26143 fi
26144fi
26145
26146 if test "$have_gvc" = 'yes'; then
26147 GVC_DELEGATE_TRUE=
26148 GVC_DELEGATE_FALSE='#'
26149else
26150 GVC_DELEGATE_TRUE='#'
26151 GVC_DELEGATE_FALSE=
26152fi
26153
26154
26155
26156
26157
26158#
26159# Check for JBIG delegate library.
26160#
26161
26162
26163# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000026164if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026165 withval=$with_jbig; with_jbig=$withval
26166else
26167 with_jbig='yes'
26168fi
26169
26170
26171have_jbig='no'
26172JBIG_LIBS=''
26173if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026175$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026177$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026179$as_echo "" >&6; }
26180 failed=0
26181 passed=0
cristy8b350f62009-11-15 23:12:43 +000026182 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
26183if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026184 passed=`expr $passed + 1`
26185else
26186 failed=`expr $failed + 1`
26187fi
26188
26189
cristy8b350f62009-11-15 23:12:43 +000026190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000026191$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026192if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026193 $as_echo_n "(cached) " >&6
26194else
26195 ac_check_lib_save_LIBS=$LIBS
26196LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026198/* end confdefs.h. */
26199
26200/* Override any GCC internal prototype to avoid an error.
26201 Use char because int might match the return type of a GCC
26202 builtin and then its argument prototype would still apply. */
26203#ifdef __cplusplus
26204extern "C"
26205#endif
26206char jbg_dec_init ();
26207int
26208main ()
26209{
26210return jbg_dec_init ();
26211 ;
26212 return 0;
26213}
26214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026216 ac_cv_lib_jbig_jbg_dec_init=yes
26217else
cristy8b350f62009-11-15 23:12:43 +000026218 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000026219fi
cristy8b350f62009-11-15 23:12:43 +000026220rm -f core conftest.err conftest.$ac_objext \
26221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026222LIBS=$ac_check_lib_save_LIBS
26223fi
cristy8b350f62009-11-15 23:12:43 +000026224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000026225$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026226if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026227 passed=`expr $passed + 1`
26228else
26229 failed=`expr $failed + 1`
26230fi
26231
cristy8b350f62009-11-15 23:12:43 +000026232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026233$as_echo_n "checking if JBIG package is complete... " >&6; }
26234 if test $passed -gt 0; then
26235 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026237$as_echo "no -- some components failed test" >&6; }
26238 have_jbig='no (failed tests)'
26239 else
26240 JBIG_LIBS='-ljbig'
26241 LIBS="$JBIG_LIBS $LIBS"
26242
cristy8b350f62009-11-15 23:12:43 +000026243$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026244
cristy8b350f62009-11-15 23:12:43 +000026245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026246$as_echo "yes" >&6; }
26247 have_jbig='yes'
26248 fi
26249 else
cristy8b350f62009-11-15 23:12:43 +000026250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026251$as_echo "no" >&6; }
26252 fi
26253fi
26254 if test "$have_jbig" = 'yes'; then
26255 JBIG_DELEGATE_TRUE=
26256 JBIG_DELEGATE_FALSE='#'
26257else
26258 JBIG_DELEGATE_TRUE='#'
26259 JBIG_DELEGATE_FALSE=
26260fi
26261
26262
26263
26264
26265#
26266# Check for JPEG delegate library.
26267#
26268
26269# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000026270if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026271 withval=$with_jpeg; with_jpeg=$withval
26272else
26273 with_jpeg='yes'
26274fi
26275
26276
26277if test "$with_jpeg" != 'yes'; then
26278 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26279fi
26280
26281have_jpeg='no'
26282JPEG_LIBS=''
26283if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026285$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026287$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026289$as_echo "" >&6; }
26290 failed=0
26291 passed=0
cristy8b350f62009-11-15 23:12:43 +000026292 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26293if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026294 passed=`expr $passed + 1`
26295else
26296 failed=`expr $failed + 1`
26297fi
26298
26299
cristy8b350f62009-11-15 23:12:43 +000026300 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26301if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026302 passed=`expr $passed + 1`
26303else
26304 failed=`expr $failed + 1`
26305fi
26306
26307
cristy8b350f62009-11-15 23:12:43 +000026308 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
26309if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026310 passed=`expr $passed + 1`
26311else
26312 failed=`expr $failed + 1`
26313fi
26314
26315
cristy8b350f62009-11-15 23:12:43 +000026316 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
26317if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026318 passed=`expr $passed + 1`
26319else
26320 failed=`expr $failed + 1`
26321fi
26322
26323
cristy8b350f62009-11-15 23:12:43 +000026324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000026325$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026326if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026327 $as_echo_n "(cached) " >&6
26328else
26329 ac_check_lib_save_LIBS=$LIBS
26330LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026332/* end confdefs.h. */
26333
26334/* Override any GCC internal prototype to avoid an error.
26335 Use char because int might match the return type of a GCC
26336 builtin and then its argument prototype would still apply. */
26337#ifdef __cplusplus
26338extern "C"
26339#endif
26340char jpeg_read_header ();
26341int
26342main ()
26343{
26344return jpeg_read_header ();
26345 ;
26346 return 0;
26347}
26348_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026349if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026350 ac_cv_lib_jpeg_jpeg_read_header=yes
26351else
cristy8b350f62009-11-15 23:12:43 +000026352 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000026353fi
cristy8b350f62009-11-15 23:12:43 +000026354rm -f core conftest.err conftest.$ac_objext \
26355 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026356LIBS=$ac_check_lib_save_LIBS
26357fi
cristy8b350f62009-11-15 23:12:43 +000026358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000026359$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026360if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026361 passed=`expr $passed + 1`
26362else
26363 failed=`expr $failed + 1`
26364fi
26365
26366
26367# Test for compatible JPEG library
26368if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000026370$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026371if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026372 $as_echo_n "(cached) " >&6
26373else
cristy8b350f62009-11-15 23:12:43 +000026374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026375/* end confdefs.h. */
26376#include <stdio.h>
26377#include <stdlib.h>
26378#include <jpeglib.h>
26379
26380int
26381main ()
26382{
26383
26384#if JPEG_LIB_VERSION < 62
26385#error IJG JPEG library must be version 6b or newer!
26386#endif
26387return 0;
26388
26389 ;
26390 return 0;
26391}
26392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026393if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026394 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
26395else
cristy8b350f62009-11-15 23:12:43 +000026396 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000026397fi
cristy3ed852e2009-09-05 21:47:34 +000026398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26399fi
cristy8b350f62009-11-15 23:12:43 +000026400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000026401$as_echo "$ac_cv_jpeg_version_ok" >&6; }
26402fi
cristy8b350f62009-11-15 23:12:43 +000026403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026404$as_echo_n "checking if JPEG package is complete... " >&6; }
26405 if test $passed -gt 0; then
26406 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026408$as_echo "no -- some components failed test" >&6; }
26409 have_jpeg='no (failed tests)'
26410 else
26411 JPEG_LIBS='-ljpeg'
26412 LIBS="$JPEG_LIBS $LIBS"
26413
cristy8b350f62009-11-15 23:12:43 +000026414$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026415
cristy8b350f62009-11-15 23:12:43 +000026416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026417$as_echo "yes" >&6; }
26418 have_jpeg='yes'
26419 fi
26420 else
cristy8b350f62009-11-15 23:12:43 +000026421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026422$as_echo "no" >&6; }
26423 fi
26424fi
26425 if test "$have_jpeg" = 'yes'; then
26426 JPEG_DELEGATE_TRUE=
26427 JPEG_DELEGATE_FALSE='#'
26428else
26429 JPEG_DELEGATE_TRUE='#'
26430 JPEG_DELEGATE_FALSE=
26431fi
26432
26433
26434
26435
26436#
26437# Check for JPEG Version 2 delegate library.
26438#
26439
26440# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000026441if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026442 withval=$with_jp2; with_jp2=$withval
26443else
26444 with_jp2='yes'
26445fi
26446
26447
26448if test "$with_jp2" != 'yes'; then
26449 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
26450fi
26451
26452have_jp2='no'
26453JP2_LIBS=''
26454if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026456$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026458$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026460$as_echo "" >&6; }
26461 failed=0
26462 passed=0
cristy8b350f62009-11-15 23:12:43 +000026463 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
26464if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026465 passed=`expr $passed + 1`
26466else
26467 failed=`expr $failed + 1`
26468fi
26469
26470
cristy8b350f62009-11-15 23:12:43 +000026471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000026472$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026473if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026474 $as_echo_n "(cached) " >&6
26475else
26476 ac_check_lib_save_LIBS=$LIBS
26477LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026479/* end confdefs.h. */
26480
26481/* Override any GCC internal prototype to avoid an error.
26482 Use char because int might match the return type of a GCC
26483 builtin and then its argument prototype would still apply. */
26484#ifdef __cplusplus
26485extern "C"
26486#endif
26487char jas_stream_fopen ();
26488int
26489main ()
26490{
26491return jas_stream_fopen ();
26492 ;
26493 return 0;
26494}
26495_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026496if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026497 ac_cv_lib_jasper_jas_stream_fopen=yes
26498else
cristy8b350f62009-11-15 23:12:43 +000026499 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000026500fi
cristy8b350f62009-11-15 23:12:43 +000026501rm -f core conftest.err conftest.$ac_objext \
26502 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026503LIBS=$ac_check_lib_save_LIBS
26504fi
cristy8b350f62009-11-15 23:12:43 +000026505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026506$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026507if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026508 passed=`expr $passed + 1`
26509else
26510 failed=`expr $failed + 1`
26511fi
26512
cristy8b350f62009-11-15 23:12:43 +000026513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026514$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
26515 if test $passed -gt 0; then
26516 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026518$as_echo "no -- some components failed test" >&6; }
26519 have_jp2='no (failed tests)'
26520 else
26521 JP2_LIBS='-ljasper'
26522 LIBS="$JP2_LIBS $LIBS"
26523
cristy8b350f62009-11-15 23:12:43 +000026524$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026525
cristy8b350f62009-11-15 23:12:43 +000026526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026527$as_echo "yes" >&6; }
26528 have_jp2='yes'
26529 fi
26530 else
cristy8b350f62009-11-15 23:12:43 +000026531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026532$as_echo "no" >&6; }
26533 fi
26534fi
26535 if test "$have_jp2" = 'yes'; then
26536 JP2_DELEGATE_TRUE=
26537 JP2_DELEGATE_FALSE='#'
26538else
26539 JP2_DELEGATE_TRUE='#'
26540 JP2_DELEGATE_FALSE=
26541fi
26542
26543
26544
26545
26546#
26547# Check for LCMS delegate library.
26548#
26549
26550# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000026551if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026552 withval=$with_lcms; with_lcms=$withval
26553else
26554 with_lcms='yes'
26555fi
26556
26557
26558if test "$with_lcms" != 'yes'; then
26559 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
26560fi
26561
26562have_lcms='no'
26563LCMS_LIBS=''
26564if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026566$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026568$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026570$as_echo "" >&6; }
26571 failed=0
26572 passed=0
26573 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000026574 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
26575if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026576 have_lcms_header='yes'
26577fi
26578
26579
26580 if test "$have_lcms_header" = 'yes'; then
26581 passed=`expr $passed + 1`
26582
cristy8b350f62009-11-15 23:12:43 +000026583$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026584
26585 else
cristy8b350f62009-11-15 23:12:43 +000026586 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
26587if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026588 have_lcms_header='yes'
26589fi
26590
26591
26592 if test "$have_lcms_header" = 'yes'; then
26593 passed=`expr $passed + 1`
26594
cristy8b350f62009-11-15 23:12:43 +000026595$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026596
26597 else
26598 failed=`expr $failed + 1`
26599 fi
26600 fi
cristy8b350f62009-11-15 23:12:43 +000026601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000026602$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026603if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026604 $as_echo_n "(cached) " >&6
26605else
26606 ac_check_lib_save_LIBS=$LIBS
26607LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026609/* end confdefs.h. */
26610
26611/* Override any GCC internal prototype to avoid an error.
26612 Use char because int might match the return type of a GCC
26613 builtin and then its argument prototype would still apply. */
26614#ifdef __cplusplus
26615extern "C"
26616#endif
26617char cmsOpenProfileFromMem ();
26618int
26619main ()
26620{
26621return cmsOpenProfileFromMem ();
26622 ;
26623 return 0;
26624}
26625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026626if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026627 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
26628else
cristy8b350f62009-11-15 23:12:43 +000026629 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000026630fi
cristy8b350f62009-11-15 23:12:43 +000026631rm -f core conftest.err conftest.$ac_objext \
26632 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026633LIBS=$ac_check_lib_save_LIBS
26634fi
cristy8b350f62009-11-15 23:12:43 +000026635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026636$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026637if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026638 passed=`expr $passed + 1`
26639else
26640 failed=`expr $failed + 1`
26641fi
26642
cristy8b350f62009-11-15 23:12:43 +000026643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026644$as_echo_n "checking if LCMS package is complete... " >&6; }
26645 if test $passed -gt 0; then
26646 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026648$as_echo "no -- some components failed test" >&6; }
26649 have_lcms='no (failed tests)'
26650 else
26651 LCMS_LIBS='-llcms'
26652 LIBS="$LCMS_LIBS $LIBS"
26653
cristy8b350f62009-11-15 23:12:43 +000026654$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026655
cristy8b350f62009-11-15 23:12:43 +000026656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026657$as_echo "yes" >&6; }
26658 have_lcms='yes'
26659 fi
26660 else
cristy8b350f62009-11-15 23:12:43 +000026661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026662$as_echo "no" >&6; }
26663 fi
26664fi
26665 if test "$have_lcms" = 'yes'; then
26666 LCMS_DELEGATE_TRUE=
26667 LCMS_DELEGATE_FALSE='#'
26668else
26669 LCMS_DELEGATE_TRUE='#'
26670 LCMS_DELEGATE_FALSE=
26671fi
26672
26673
26674
26675
26676#
26677# Check for the LQR (Liquid Rescale) delegate library.
26678#
26679
26680# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000026681if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026682 withval=$with_lqr; with_lqr=$withval
26683else
26684 with_lqr='yes'
26685fi
26686
26687
26688if test "$with_lqr" != 'yes'; then
26689 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
26690fi
26691
26692have_lqr='no'
26693LQR_CFLAGS=""
26694LQR_LIBS=""
26695LQR_PKG=""
26696if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026698$as_echo "-------------------------------------------------------------" >&6; }
26699
26700pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026702$as_echo_n "checking for LQR... " >&6; }
26703
26704if test -n "$LQR_CFLAGS"; then
26705 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
26706 elif test -n "$PKG_CONFIG"; then
26707 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026709 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26710 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26712 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026713 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
26714else
26715 pkg_failed=yes
26716fi
26717 else
26718 pkg_failed=untried
26719fi
26720if test -n "$LQR_LIBS"; then
26721 pkg_cv_LQR_LIBS="$LQR_LIBS"
26722 elif test -n "$PKG_CONFIG"; then
26723 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026724 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026725 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26726 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26728 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026729 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
26730else
26731 pkg_failed=yes
26732fi
26733 else
26734 pkg_failed=untried
26735fi
26736
26737
26738
26739if test $pkg_failed = yes; then
26740
26741if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26742 _pkg_short_errors_supported=yes
26743else
26744 _pkg_short_errors_supported=no
26745fi
26746 if test $_pkg_short_errors_supported = yes; then
26747 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
26748 else
26749 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
26750 fi
26751 # Put the nasty error message in config.log where it belongs
26752 echo "$LQR_PKG_ERRORS" >&5
26753
cristy8b350f62009-11-15 23:12:43 +000026754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026755$as_echo "no" >&6; }
26756 have_lqr=no
26757elif test $pkg_failed = untried; then
26758 have_lqr=no
26759else
26760 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
26761 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026763$as_echo "yes" >&6; }
26764 have_lqr=yes
26765fi
cristy8b350f62009-11-15 23:12:43 +000026766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026767$as_echo "" >&6; }
26768fi
26769
26770if test "$have_lqr" = 'yes'; then
26771
cristy8b350f62009-11-15 23:12:43 +000026772$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026773
26774 CFLAGS="$LQR_CFLAGS $CFLAGS"
26775fi
26776
26777 if test "$have_lqr" = 'yes'; then
26778 LQR_DELEGATE_TRUE=
26779 LQR_DELEGATE_FALSE='#'
26780else
26781 LQR_DELEGATE_TRUE='#'
26782 LQR_DELEGATE_FALSE=
26783fi
26784
26785
26786
26787
26788
26789#
26790# Check for the OpenEXR delegate library.
26791#
26792
26793# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000026794if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026795 withval=$with_openexr; with_openexr=$withval
26796else
26797 with_openexr='yes'
26798fi
26799
26800
26801if test "$with_openexr" != 'yes'; then
26802 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
26803fi
26804
26805have_openexr='no'
26806OPENEXR_CFLAGS=""
26807OPENEXR_LIBS=""
26808OPENEXR_PKG=""
26809if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026811$as_echo "-------------------------------------------------------------" >&6; }
26812
26813pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026815$as_echo_n "checking for OPENEXR... " >&6; }
26816
26817if test -n "$OPENEXR_CFLAGS"; then
26818 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
26819 elif test -n "$PKG_CONFIG"; then
26820 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026821 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026822 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26823 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26825 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026826 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
26827else
26828 pkg_failed=yes
26829fi
26830 else
26831 pkg_failed=untried
26832fi
26833if test -n "$OPENEXR_LIBS"; then
26834 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
26835 elif test -n "$PKG_CONFIG"; then
26836 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026837 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026838 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26839 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26841 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026842 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
26843else
26844 pkg_failed=yes
26845fi
26846 else
26847 pkg_failed=untried
26848fi
26849
26850
26851
26852if test $pkg_failed = yes; then
26853
26854if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26855 _pkg_short_errors_supported=yes
26856else
26857 _pkg_short_errors_supported=no
26858fi
26859 if test $_pkg_short_errors_supported = yes; then
26860 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
26861 else
26862 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
26863 fi
26864 # Put the nasty error message in config.log where it belongs
26865 echo "$OPENEXR_PKG_ERRORS" >&5
26866
cristy8b350f62009-11-15 23:12:43 +000026867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026868$as_echo "no" >&6; }
26869 have_openexr=no
26870elif test $pkg_failed = untried; then
26871 have_openexr=no
26872else
26873 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
26874 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026876$as_echo "yes" >&6; }
26877 have_openexr=yes
26878fi
cristy8b350f62009-11-15 23:12:43 +000026879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026880$as_echo "" >&6; }
26881fi
26882
26883if test "$have_openexr" = 'yes'; then
26884
cristy8b350f62009-11-15 23:12:43 +000026885$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026886
26887 if test "$with_modules" = 'no'; then
26888 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
26889 fi
26890fi
26891
26892 if test "$have_openexr" = 'yes'; then
26893 OPENEXR_DELEGATE_TRUE=
26894 OPENEXR_DELEGATE_FALSE='#'
26895else
26896 OPENEXR_DELEGATE_TRUE='#'
26897 OPENEXR_DELEGATE_FALSE=
26898fi
26899
26900
26901
26902
26903
26904#
26905# Check for PNG delegate library.
26906#
26907
26908# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000026909if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026910 withval=$with_png; with_png=$withval
26911else
26912 with_png='yes'
26913fi
26914
26915
26916if test "$with_png" != 'yes'; then
26917 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
26918fi
26919
26920have_png='no'
26921PNG_LIBS=''
26922if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026924$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026926$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026928$as_echo "" >&6; }
26929 failed=0
26930 passed=0
cristy8b350f62009-11-15 23:12:43 +000026931 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
26932if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026933 passed=`expr $passed + 1`
26934else
26935 failed=`expr $failed + 1`
26936fi
26937
26938
cristy8b350f62009-11-15 23:12:43 +000026939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000026940$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026941if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026942 $as_echo_n "(cached) " >&6
26943else
26944 ac_check_lib_save_LIBS=$LIBS
26945LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026947/* end confdefs.h. */
26948
26949/* Override any GCC internal prototype to avoid an error.
26950 Use char because int might match the return type of a GCC
26951 builtin and then its argument prototype would still apply. */
26952#ifdef __cplusplus
26953extern "C"
26954#endif
26955char png_get_io_ptr ();
26956int
26957main ()
26958{
26959return png_get_io_ptr ();
26960 ;
26961 return 0;
26962}
26963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026964if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026965 ac_cv_lib_png_png_get_io_ptr=yes
26966else
cristy8b350f62009-11-15 23:12:43 +000026967 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000026968fi
cristy8b350f62009-11-15 23:12:43 +000026969rm -f core conftest.err conftest.$ac_objext \
26970 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026971LIBS=$ac_check_lib_save_LIBS
26972fi
cristy8b350f62009-11-15 23:12:43 +000026973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000026974$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026975if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026976 passed=`expr $passed + 1`
26977else
26978 failed=`expr $failed + 1`
26979fi
26980
cristy8b350f62009-11-15 23:12:43 +000026981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026982$as_echo_n "checking if PNG package is complete... " >&6; }
26983 if test $passed -gt 0; then
26984 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026986$as_echo "no -- some components failed test" >&6; }
26987 have_png='no (failed tests)'
26988 else
26989 PNG_LIBS='-lpng'
26990 LIBS="$PNG_LIBS $LIBS"
26991
cristy8b350f62009-11-15 23:12:43 +000026992$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026993
cristy8b350f62009-11-15 23:12:43 +000026994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026995$as_echo "yes" >&6; }
26996 have_png='yes'
26997 fi
26998 else
cristy8b350f62009-11-15 23:12:43 +000026999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027000$as_echo "no" >&6; }
27001 fi
27002fi
27003 if test "$have_png" = 'yes'; then
27004 PNG_DELEGATE_TRUE=
27005 PNG_DELEGATE_FALSE='#'
27006else
27007 PNG_DELEGATE_TRUE='#'
27008 PNG_DELEGATE_FALSE=
27009fi
27010
27011
27012
27013
27014#
27015# Check for RSVG delegate library.
27016#
27017
27018# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000027019if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027020 withval=$with_rsvg; with_rsvg=$withval
27021else
27022 with_rsvg=$have_x
27023fi
27024
27025
27026if test "$with_rsvg" != 'yes'; then
27027 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
27028fi
27029
27030have_rsvg='no'
27031have_cairo='no'
27032RSVG_CFLAGS=""
27033RSVG_LIBS=""
27034RSVG_PKG=""
27035if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027037$as_echo "-------------------------------------------------------------" >&6; }
27038
27039pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027041$as_echo_n "checking for RSVG... " >&6; }
27042
27043if test -n "$RSVG_CFLAGS"; then
27044 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
27045 elif test -n "$PKG_CONFIG"; then
27046 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027047 { { $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 +000027048 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27049 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27051 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027052 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27053else
27054 pkg_failed=yes
27055fi
27056 else
27057 pkg_failed=untried
27058fi
27059if test -n "$RSVG_LIBS"; then
27060 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
27061 elif test -n "$PKG_CONFIG"; then
27062 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027063 { { $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 +000027064 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27065 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27067 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027068 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27069else
27070 pkg_failed=yes
27071fi
27072 else
27073 pkg_failed=untried
27074fi
27075
27076
27077
27078if test $pkg_failed = yes; then
27079
27080if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27081 _pkg_short_errors_supported=yes
27082else
27083 _pkg_short_errors_supported=no
27084fi
27085 if test $_pkg_short_errors_supported = yes; then
27086 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27087 else
27088 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27089 fi
27090 # Put the nasty error message in config.log where it belongs
27091 echo "$RSVG_PKG_ERRORS" >&5
27092
cristy8b350f62009-11-15 23:12:43 +000027093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027094$as_echo "no" >&6; }
27095 have_rsvg=no
27096elif test $pkg_failed = untried; then
27097 have_rsvg=no
27098else
27099 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
27100 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027102$as_echo "yes" >&6; }
27103 have_rsvg=yes
27104fi
cristy8b350f62009-11-15 23:12:43 +000027105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027106$as_echo "" >&6; }
27107
27108pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027110$as_echo_n "checking for CAIRO_SVG... " >&6; }
27111
27112if test -n "$CAIRO_SVG_CFLAGS"; then
27113 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
27114 elif test -n "$PKG_CONFIG"; then
27115 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027117 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27118 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27120 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027121 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
27122else
27123 pkg_failed=yes
27124fi
27125 else
27126 pkg_failed=untried
27127fi
27128if test -n "$CAIRO_SVG_LIBS"; then
27129 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
27130 elif test -n "$PKG_CONFIG"; then
27131 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027132 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027133 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27134 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27136 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027137 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
27138else
27139 pkg_failed=yes
27140fi
27141 else
27142 pkg_failed=untried
27143fi
27144
27145
27146
27147if test $pkg_failed = yes; then
27148
27149if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27150 _pkg_short_errors_supported=yes
27151else
27152 _pkg_short_errors_supported=no
27153fi
27154 if test $_pkg_short_errors_supported = yes; then
27155 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
27156 else
27157 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
27158 fi
27159 # Put the nasty error message in config.log where it belongs
27160 echo "$CAIRO_SVG_PKG_ERRORS" >&5
27161
cristy8b350f62009-11-15 23:12:43 +000027162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027163$as_echo "no" >&6; }
27164 have_cairo=no
27165elif test $pkg_failed = untried; then
27166 have_cairo=no
27167else
27168 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
27169 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027171$as_echo "yes" >&6; }
27172 have_cairo=yes
27173fi
cristy8b350f62009-11-15 23:12:43 +000027174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027175$as_echo "" >&6; }
27176fi
27177
27178if test "$have_rsvg" = 'yes'; then
27179
cristy8b350f62009-11-15 23:12:43 +000027180$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027181
27182 if test "$with_modules" = 'no'; then
27183 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
27184 fi
27185fi
27186
27187if test "$have_cairo" = 'yes'; then
27188
cristy8b350f62009-11-15 23:12:43 +000027189$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027190
27191 if test "$with_modules" = 'no'; then
27192 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
27193 fi
27194fi
27195
27196 if test "$have_rsvg" = 'yes'; then
27197 RSVG_DELEGATE_TRUE=
27198 RSVG_DELEGATE_FALSE='#'
27199else
27200 RSVG_DELEGATE_TRUE='#'
27201 RSVG_DELEGATE_FALSE=
27202fi
27203
27204 if test "$have_cairo" = 'yes'; then
27205 CAIRO_DELEGATE_TRUE=
27206 CAIRO_DELEGATE_FALSE='#'
27207else
27208 CAIRO_DELEGATE_TRUE='#'
27209 CAIRO_DELEGATE_FALSE=
27210fi
27211
27212
27213
27214
27215
27216#
27217# Check for TIFF delegate library.
27218#
27219
27220# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000027221if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027222 withval=$with_tiff; with_tiff=$withval
27223else
27224 with_tiff='yes'
27225fi
27226
27227
27228if test "$with_tiff" != 'yes'; then
27229 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27230fi
27231
27232have_tiff='no'
27233TIFF_LIBS=''
27234if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027236$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027238$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027240$as_echo "" >&6; }
27241 failed=0
27242 passed=0
cristy8b350f62009-11-15 23:12:43 +000027243 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27244if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027245 passed=`expr $passed + 1`
27246else
27247 failed=`expr $failed + 1`
27248fi
27249
27250
cristy8b350f62009-11-15 23:12:43 +000027251 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27252if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027253 passed=`expr $passed + 1`
27254else
27255 failed=`expr $failed + 1`
27256fi
27257
27258
cristy8b350f62009-11-15 23:12:43 +000027259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027260$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027261if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027262 $as_echo_n "(cached) " >&6
27263else
27264 ac_check_lib_save_LIBS=$LIBS
27265LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027267/* end confdefs.h. */
27268
27269/* Override any GCC internal prototype to avoid an error.
27270 Use char because int might match the return type of a GCC
27271 builtin and then its argument prototype would still apply. */
27272#ifdef __cplusplus
27273extern "C"
27274#endif
27275char TIFFOpen ();
27276int
27277main ()
27278{
27279return TIFFOpen ();
27280 ;
27281 return 0;
27282}
27283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027284if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027285 ac_cv_lib_tiff_TIFFOpen=yes
27286else
cristy8b350f62009-11-15 23:12:43 +000027287 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027288fi
cristy8b350f62009-11-15 23:12:43 +000027289rm -f core conftest.err conftest.$ac_objext \
27290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027291LIBS=$ac_check_lib_save_LIBS
27292fi
cristy8b350f62009-11-15 23:12:43 +000027293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027294$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027295if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027296 passed=`expr $passed + 1`
27297else
27298 failed=`expr $failed + 1`
27299fi
27300
cristy8b350f62009-11-15 23:12:43 +000027301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027302$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027303if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027304 $as_echo_n "(cached) " >&6
27305else
27306 ac_check_lib_save_LIBS=$LIBS
27307LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027309/* end confdefs.h. */
27310
27311/* Override any GCC internal prototype to avoid an error.
27312 Use char because int might match the return type of a GCC
27313 builtin and then its argument prototype would still apply. */
27314#ifdef __cplusplus
27315extern "C"
27316#endif
27317char TIFFClientOpen ();
27318int
27319main ()
27320{
27321return TIFFClientOpen ();
27322 ;
27323 return 0;
27324}
27325_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027326if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027327 ac_cv_lib_tiff_TIFFClientOpen=yes
27328else
cristy8b350f62009-11-15 23:12:43 +000027329 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027330fi
cristy8b350f62009-11-15 23:12:43 +000027331rm -f core conftest.err conftest.$ac_objext \
27332 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027333LIBS=$ac_check_lib_save_LIBS
27334fi
cristy8b350f62009-11-15 23:12:43 +000027335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027336$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027337if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027338 passed=`expr $passed + 1`
27339else
27340 failed=`expr $failed + 1`
27341fi
27342
cristy8b350f62009-11-15 23:12:43 +000027343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027344$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027345if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027346 $as_echo_n "(cached) " >&6
27347else
27348 ac_check_lib_save_LIBS=$LIBS
27349LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027351/* end confdefs.h. */
27352
27353/* Override any GCC internal prototype to avoid an error.
27354 Use char because int might match the return type of a GCC
27355 builtin and then its argument prototype would still apply. */
27356#ifdef __cplusplus
27357extern "C"
27358#endif
27359char TIFFIsByteSwapped ();
27360int
27361main ()
27362{
27363return TIFFIsByteSwapped ();
27364 ;
27365 return 0;
27366}
27367_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027368if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027369 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
27370else
cristy8b350f62009-11-15 23:12:43 +000027371 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000027372fi
cristy8b350f62009-11-15 23:12:43 +000027373rm -f core conftest.err conftest.$ac_objext \
27374 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027375LIBS=$ac_check_lib_save_LIBS
27376fi
cristy8b350f62009-11-15 23:12:43 +000027377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000027378$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027379if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027380 passed=`expr $passed + 1`
27381else
27382 failed=`expr $failed + 1`
27383fi
27384
cristy8b350f62009-11-15 23:12:43 +000027385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027386$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027387if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027388 $as_echo_n "(cached) " >&6
27389else
27390 ac_check_lib_save_LIBS=$LIBS
27391LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027393/* end confdefs.h. */
27394
27395/* Override any GCC internal prototype to avoid an error.
27396 Use char because int might match the return type of a GCC
27397 builtin and then its argument prototype would still apply. */
27398#ifdef __cplusplus
27399extern "C"
27400#endif
27401char TIFFReadRGBATile ();
27402int
27403main ()
27404{
27405return TIFFReadRGBATile ();
27406 ;
27407 return 0;
27408}
27409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027410if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027411 ac_cv_lib_tiff_TIFFReadRGBATile=yes
27412else
cristy8b350f62009-11-15 23:12:43 +000027413 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000027414fi
cristy8b350f62009-11-15 23:12:43 +000027415rm -f core conftest.err conftest.$ac_objext \
27416 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027417LIBS=$ac_check_lib_save_LIBS
27418fi
cristy8b350f62009-11-15 23:12:43 +000027419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000027420$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027421if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027422 passed=`expr $passed + 1`
27423else
27424 failed=`expr $failed + 1`
27425fi
27426
cristy8b350f62009-11-15 23:12:43 +000027427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027428$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027429if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027430 $as_echo_n "(cached) " >&6
27431else
27432 ac_check_lib_save_LIBS=$LIBS
27433LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027435/* end confdefs.h. */
27436
27437/* Override any GCC internal prototype to avoid an error.
27438 Use char because int might match the return type of a GCC
27439 builtin and then its argument prototype would still apply. */
27440#ifdef __cplusplus
27441extern "C"
27442#endif
27443char TIFFReadRGBAStrip ();
27444int
27445main ()
27446{
27447return TIFFReadRGBAStrip ();
27448 ;
27449 return 0;
27450}
27451_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027452if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027453 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
27454else
cristy8b350f62009-11-15 23:12:43 +000027455 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000027456fi
cristy8b350f62009-11-15 23:12:43 +000027457rm -f core conftest.err conftest.$ac_objext \
27458 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027459LIBS=$ac_check_lib_save_LIBS
27460fi
cristy8b350f62009-11-15 23:12:43 +000027461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000027462$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027463if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027464 passed=`expr $passed + 1`
27465else
27466 failed=`expr $failed + 1`
27467fi
27468
cristy8b350f62009-11-15 23:12:43 +000027469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027470$as_echo_n "checking if TIFF package is complete... " >&6; }
27471 if test $passed -gt 0; then
27472 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027474$as_echo "no -- some components failed test" >&6; }
27475 have_tiff='no (failed tests)'
27476 else
27477 TIFF_LIBS='-ltiff'
27478 LIBS="$TIFF_LIBS $LIBS"
27479
cristy8b350f62009-11-15 23:12:43 +000027480$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027481
cristy8b350f62009-11-15 23:12:43 +000027482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027483$as_echo "yes" >&6; }
27484 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000027485 for ac_header in tiffconf.h
27486do :
27487 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
27488if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027489 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027490#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000027491_ACEOF
27492
27493fi
27494
27495done
27496
cristy8b350f62009-11-15 23:12:43 +000027497 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000027498 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
27499 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000027500do :
27501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27502ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27503eval as_val=\$$as_ac_var
27504 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027505 cat >>confdefs.h <<_ACEOF
27506#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27507_ACEOF
27508
27509fi
27510done
27511
27512 fi
27513 else
cristy8b350f62009-11-15 23:12:43 +000027514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027515$as_echo "no" >&6; }
27516 fi
27517fi
27518 if test "$have_tiff" = 'yes'; then
27519 TIFF_DELEGATE_TRUE=
27520 TIFF_DELEGATE_FALSE='#'
27521else
27522 TIFF_DELEGATE_TRUE='#'
27523 TIFF_DELEGATE_FALSE=
27524fi
27525
27526
27527
27528
27529#
27530# Set Windows font directory.
27531#
27532
27533# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027534if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027535 withval=$with_windows_font_dir; with_windows_font_dir=$withval
27536else
27537 with_windows_font_dir=''
27538fi
27539
27540if test "$with_windows_font_dir" != '' ; then
27541 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
27542fi
27543
27544
27545#
27546# Check for WMF delegate library.
27547#
27548
27549# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000027550if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027551 withval=$with_wmf; with_wmf=$withval
27552else
27553 with_wmf=$with_modules
27554fi
27555
27556
27557if test "$with_wmf" != 'yes'; then
27558 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
27559fi
27560
27561have_wmf='no'
27562WMF_LIBS=''
27563WMF_LIBS_DEPS=''
27564OLIBS="$LIBS"
27565if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027567$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027569$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027571$as_echo "" >&6; }
27572 have_libwmf='no'
27573 have_libwmflite='no'
27574 have_libwmf_ipa_h='no'
27575
cristy8b350f62009-11-15 23:12:43 +000027576 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
27577"
27578if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027579 have_libwmf_ipa_h='yes'
27580fi
27581
27582
27583 if test "$have_libwmf_ipa_h" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
cristy3ed852e2009-09-05 21:47:34 +000027585$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027586if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027587 $as_echo_n "(cached) " >&6
27588else
27589 ac_check_lib_save_LIBS=$LIBS
27590LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027592/* end confdefs.h. */
27593
27594/* Override any GCC internal prototype to avoid an error.
27595 Use char because int might match the return type of a GCC
27596 builtin and then its argument prototype would still apply. */
27597#ifdef __cplusplus
27598extern "C"
27599#endif
27600char wmf_lite_create ();
27601int
27602main ()
27603{
27604return wmf_lite_create ();
27605 ;
27606 return 0;
27607}
27608_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027609if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027610 ac_cv_lib_wmflite_wmf_lite_create=yes
27611else
cristy8b350f62009-11-15 23:12:43 +000027612 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000027613fi
cristy8b350f62009-11-15 23:12:43 +000027614rm -f core conftest.err conftest.$ac_objext \
27615 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027616LIBS=$ac_check_lib_save_LIBS
27617fi
cristy8b350f62009-11-15 23:12:43 +000027618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027619$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027620if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027621 have_libwmflite='yes'
27622fi
27623
27624 if test "$have_libwmflite" = 'yes'; then
27625
cristy8b350f62009-11-15 23:12:43 +000027626$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027627
27628 WMF_LIBS='-lwmflite'
27629 LIBS="$WMF_LIBS $LIBS"
27630 have_wmf='yes'
27631 else
27632 WMF_LIBS_DEPS=''
27633 WMF_CONFIG_LIBS=`libwmf-config --libs`
27634 for lib in xml2 expat freetype jpeg png z; do
27635 testlib="-l${lib}"
27636 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
27637 done
cristy8b350f62009-11-15 23:12:43 +000027638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
cristy3ed852e2009-09-05 21:47:34 +000027639$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027640if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027641 $as_echo_n "(cached) " >&6
27642else
27643 ac_check_lib_save_LIBS=$LIBS
27644LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027646/* end confdefs.h. */
27647
27648/* Override any GCC internal prototype to avoid an error.
27649 Use char because int might match the return type of a GCC
27650 builtin and then its argument prototype would still apply. */
27651#ifdef __cplusplus
27652extern "C"
27653#endif
27654char wmf_api_create ();
27655int
27656main ()
27657{
27658return wmf_api_create ();
27659 ;
27660 return 0;
27661}
27662_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027663if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027664 ac_cv_lib_wmf_wmf_api_create=yes
27665else
cristy8b350f62009-11-15 23:12:43 +000027666 ac_cv_lib_wmf_wmf_api_create=no
cristy3ed852e2009-09-05 21:47:34 +000027667fi
cristy8b350f62009-11-15 23:12:43 +000027668rm -f core conftest.err conftest.$ac_objext \
27669 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027670LIBS=$ac_check_lib_save_LIBS
27671fi
cristy8b350f62009-11-15 23:12:43 +000027672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027673$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027674if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027675 have_libwmf='yes'
27676fi
27677
27678 if test "$have_libwmf" = 'yes'; then
27679
cristy8b350f62009-11-15 23:12:43 +000027680$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027681
27682 WMF_LIBS='-lwmf'
27683 LIBS="$WMF_LIBS $LIBS"
27684 have_wmf='yes'
27685 else
cristy8b350f62009-11-15 23:12:43 +000027686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027687$as_echo "no -- some components failed test" >&6; }
27688 have_wmf='no (failed tests)'
27689 have_wmflite='no (failed tests)'
27690 LIBS="$OLIBS"
27691 WMF_LIBS=''
27692 fi
27693 fi
27694 fi
cristy8b350f62009-11-15 23:12:43 +000027695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027696$as_echo_n "checking if WMF package is complete... " >&6; }
27697 if test "$have_wmf" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027699$as_echo "yes" >&6; }
27700 else
cristy8b350f62009-11-15 23:12:43 +000027701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027702$as_echo "no" >&6; }
27703 fi
27704fi
27705 if test "$have_wmf" = 'yes'; then
27706 WMF_DELEGATE_TRUE=
27707 WMF_DELEGATE_FALSE='#'
27708else
27709 WMF_DELEGATE_TRUE='#'
27710 WMF_DELEGATE_FALSE=
27711fi
27712
27713
27714
27715
27716
27717#
27718# Check for XML delegate library.
27719#
27720
27721# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000027722if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027723 withval=$with_xml; with_xml=$withval
27724else
27725 with_xml=$have_x
27726fi
27727
27728
27729if test "$with_xml" != 'yes' ; then
27730 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
27731fi
27732
27733have_xml='no'
27734XML_LIBS=''
27735if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027737$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000027739$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027741$as_echo "" >&6; }
27742 PERSIST_LDFLAGS=$LDFLAGS
27743 PERSIST_CPPFLAGS=$CPPFLAGS
27744 xml2_config=''
27745 for ac_prog in xml2-config
27746do
27747 # Extract the first word of "$ac_prog", so it can be a program name with args.
27748set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027750$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027751if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027752 $as_echo_n "(cached) " >&6
27753else
27754 if test -n "$xml2_config"; then
27755 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
27756else
27757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27758for as_dir in $PATH
27759do
27760 IFS=$as_save_IFS
27761 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27764 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027766 break 2
27767 fi
27768done
cristy8b350f62009-11-15 23:12:43 +000027769 done
cristy3ed852e2009-09-05 21:47:34 +000027770IFS=$as_save_IFS
27771
27772fi
27773fi
27774xml2_config=$ac_cv_prog_xml2_config
27775if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000027776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027777$as_echo "$xml2_config" >&6; }
27778else
cristy8b350f62009-11-15 23:12:43 +000027779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027780$as_echo "no" >&6; }
27781fi
27782
27783
27784 test -n "$xml2_config" && break
27785done
27786 if test -n "$xml2_config"; then
27787 # Debian installs libxml headers under /usr/include/libxml2/libxml with
27788 # the shared library installed under /usr/lib, whereas the package
27789 # installs itself under $prefix/libxml and $prefix/lib.
27790 xml2_prefix=`xml2-config --prefix`
27791 if test -d "${xml2_prefix}/include/libxml2"; then
27792 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
27793 fi
27794 if test "${xml2_prefix}" != '/usr'; then
27795 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
27796 fi
27797 fi
27798 failed=0
27799 passed=0
cristy8b350f62009-11-15 23:12:43 +000027800 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
27801if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027802 passed=`expr $passed + 1`
27803else
27804 failed=`expr $failed + 1`
27805fi
27806
27807
cristy8b350f62009-11-15 23:12:43 +000027808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027809$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027810if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027811 $as_echo_n "(cached) " >&6
27812else
27813 ac_check_lib_save_LIBS=$LIBS
27814LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027816/* end confdefs.h. */
27817
27818/* Override any GCC internal prototype to avoid an error.
27819 Use char because int might match the return type of a GCC
27820 builtin and then its argument prototype would still apply. */
27821#ifdef __cplusplus
27822extern "C"
27823#endif
27824char xmlParseExternalEntity ();
27825int
27826main ()
27827{
27828return xmlParseExternalEntity ();
27829 ;
27830 return 0;
27831}
27832_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027833if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027834 ac_cv_lib_xml2_xmlParseExternalEntity=yes
27835else
cristy8b350f62009-11-15 23:12:43 +000027836 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000027837fi
cristy8b350f62009-11-15 23:12:43 +000027838rm -f core conftest.err conftest.$ac_objext \
27839 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027840LIBS=$ac_check_lib_save_LIBS
27841fi
cristy8b350f62009-11-15 23:12:43 +000027842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000027843$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027844if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027845 passed=`expr $passed + 1`
27846else
27847 failed=`expr $failed + 1`
27848fi
27849
cristy8b350f62009-11-15 23:12:43 +000027850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027851$as_echo_n "checking if XML package is complete... " >&6; }
27852 if test $passed -gt 0; then
27853 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027855$as_echo "no -- some components failed test" >&6; }
27856 have_xml='no (failed tests)'
27857 LDFLAGS="$PERSIST_LDFLAGS"
27858 CPPFLAGS="$PERSIST_CPPFLAGS"
27859 else
27860 XML_LIBS='-lxml2'
27861 LIBS="$XML_LIBS $LIBS"
27862
cristy8b350f62009-11-15 23:12:43 +000027863$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027864
cristy8b350f62009-11-15 23:12:43 +000027865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027866$as_echo "yes" >&6; }
27867 have_xml='yes'
27868 fi
27869 else
cristy8b350f62009-11-15 23:12:43 +000027870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027871$as_echo "no" >&6; }
27872 fi
27873fi
27874 if test "$have_xml" = 'yes'; then
27875 XML_DELEGATE_TRUE=
27876 XML_DELEGATE_FALSE='#'
27877else
27878 XML_DELEGATE_TRUE='#'
27879 XML_DELEGATE_FALSE=
27880fi
27881
27882
27883
27884
27885# Substitute compiler name to build/link PerlMagick
27886#
27887
27888
27889#
27890# Configure install Paths
27891#
27892
27893# Subdirectory under lib to place ImageMagick lib files
27894LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27895
27896cat >>confdefs.h <<_ACEOF
27897#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
27898_ACEOF
27899
27900
27901# Path to ImageMagick bin directory
27902EXECUTABLE_PATH="${BIN_DIR}"
27903DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
27904case "${build_os}" in
27905 mingw* )
27906 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
27907 ;;
27908esac
27909
27910cat >>confdefs.h <<_ACEOF
27911#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
27912_ACEOF
27913
27914
27915
27916# Path to ImageMagick lib
27917LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
27918DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
27919case "${build_os}" in
27920 mingw* )
27921 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
27922 ;;
27923esac
27924
27925cat >>confdefs.h <<_ACEOF
27926#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
27927_ACEOF
27928
27929
27930
27931# Subdirectory under lib to place ImageMagick configuration files
27932CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27933
27934cat >>confdefs.h <<_ACEOF
27935#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
27936_ACEOF
27937
27938CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27939DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27940case "${build_os}" in
27941 mingw* )
27942 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
27943 ;;
27944esac
27945
27946cat >>confdefs.h <<_ACEOF
27947#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
27948_ACEOF
27949
27950
27951
27952#
27953# Subdirectory under lib to place ImageMagick coder module files
27954CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
27955
27956cat >>confdefs.h <<_ACEOF
27957#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
27958_ACEOF
27959
27960CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
27961DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
27962case "${build_os}" in
27963 mingw* )
27964 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
27965 ;;
27966esac
27967
27968cat >>confdefs.h <<_ACEOF
27969#define CODER_PATH "$DEFINE_CODER_PATH"
27970_ACEOF
27971
27972
27973
27974#
27975# Subdirectory under lib to place ImageMagick filter module files
27976FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
27977
27978cat >>confdefs.h <<_ACEOF
27979#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
27980_ACEOF
27981
27982FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
27983DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
27984case "${build_os}" in
27985 mingw* )
27986 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
27987 ;;
27988esac
27989
27990cat >>confdefs.h <<_ACEOF
27991#define FILTER_PATH "$DEFINE_FILTER_PATH"
27992_ACEOF
27993
27994
27995
27996#
27997# Path to ImageMagick documentation files
27998DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27999DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
28000DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
28001case "${build_os}" in
28002 mingw* )
28003 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
28004 ;;
28005esac
28006
28007cat >>confdefs.h <<_ACEOF
28008#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28009_ACEOF
28010
28011
28012
28013#
28014# Path to ImageMagick share files
28015SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28016SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28017DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28018case "${build_os}" in
28019 mingw* )
28020 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28021 ;;
28022esac
28023
28024cat >>confdefs.h <<_ACEOF
28025#define SHARE_PATH "$DEFINE_SHARE_PATH"
28026_ACEOF
28027
28028
28029
28030# Subdirectory under share to place ImageMagick configuration files
28031SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28032
28033cat >>confdefs.h <<_ACEOF
28034#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28035_ACEOF
28036
28037SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28038DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28039case "${build_os}" in
28040 mingw* )
28041 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28042 ;;
28043esac
28044
28045cat >>confdefs.h <<_ACEOF
28046#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28047_ACEOF
28048
28049
28050
28051#
28052# program_transform_name is formed for use in a Makefile, so create a
28053# modified version for use in a shell script.
28054configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28055
28056# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000028057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028058$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028060$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028062$as_echo "" >&6; }
28063AutotraceDecodeDelegateDefault='autotrace'
28064AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000028065BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000028066BZIPDelegateDefault='bzip2'
28067BrowseDelegateDefault='xdg-open'
28068CGMDecodeDelegateDefault='ralcgm'
28069CatDelegateDefault='cat'
28070DNGDecodeDelegateDefault='ufraw-batch'
28071GVCDecodeDelegateDefault='dot'
28072DVIDecodeDelegateDefault='dvips'
28073EchoDelegateDefault='echo'
28074EditorDelegateDefault='xterm'
28075FIGDecodeDelegateDefault='fig2dev'
28076ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
28077DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
28078MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
28079GnuplotDecodeDelegateDefault='gnuplot'
28080HDRDecodeDelegateDefault='ra_pfm'
28081HPGLDecodeDelegateDefault='hp2xx'
28082HTMLDecodeDelegateDefault='html2ps'
28083ILBMDecodeDelegateDefault='ilbmtoppm'
28084ILBMEncodeDelegateDefault='ppmtoilbm'
28085LPDelegateDefault='lp'
28086LPRDelegateDefault='lpr'
28087LZWDecodeDelegateDefault='uncompress'
28088LZWEncodeDelegateDefault='compress'
28089LaunchDelegateDefault='gimp'
28090MANDelegateDefault='groff'
28091MPEGDecodeDelegateDefault='ffmpeg'
28092MPEGEncodeDelegateDefault='ffmpeg'
28093MVDelegateDefault='mv'
28094PCLDelegateDefault='pcl6'
28095PGPDecodeDelegateDefault='pgpv'
28096POVDelegateDefault='povray'
28097if test "$native_win32_build" = 'yes'; then
28098 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000028099elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028100 PSDelegateDefault='gsc'
28101else
28102 PSDelegateDefault='gs'
28103fi
28104RLEEncodeDelegateDefault='rawtorle'
28105RMDelegateDefault='rm'
28106SCANDecodeDelegateDefault='scanimage'
28107TXTDelegateDefault='enscript'
28108WMFDecodeDelegateDefault='wmf2eps'
28109WWWDecodeDelegateDefault='curl'
28110XPSDelegateDefault='gxps'
28111ZipDelegateDefault='gzip'
28112
28113# Search for delegates
28114# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
28115set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028117$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028118if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028119 $as_echo_n "(cached) " >&6
28120else
28121 case $AutotraceDecodeDelegate in
28122 [\\/]* | ?:[\\/]*)
28123 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
28124 ;;
28125 *)
28126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28127for as_dir in $PATH
28128do
28129 IFS=$as_save_IFS
28130 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28133 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028135 break 2
28136 fi
28137done
cristy8b350f62009-11-15 23:12:43 +000028138 done
cristy3ed852e2009-09-05 21:47:34 +000028139IFS=$as_save_IFS
28140
28141 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
28142 ;;
28143esac
28144fi
28145AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
28146if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028148$as_echo "$AutotraceDecodeDelegate" >&6; }
28149else
cristy8b350f62009-11-15 23:12:43 +000028150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028151$as_echo "no" >&6; }
28152fi
28153
28154
28155# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
28156set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028158$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028159if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028160 $as_echo_n "(cached) " >&6
28161else
28162 case $AVIDecodeDelegate in
28163 [\\/]* | ?:[\\/]*)
28164 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
28165 ;;
28166 *)
28167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28168for as_dir in $PATH
28169do
28170 IFS=$as_save_IFS
28171 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028172 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28174 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028176 break 2
28177 fi
28178done
cristy8b350f62009-11-15 23:12:43 +000028179 done
cristy3ed852e2009-09-05 21:47:34 +000028180IFS=$as_save_IFS
28181
28182 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
28183 ;;
28184esac
28185fi
28186AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
28187if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028189$as_echo "$AVIDecodeDelegate" >&6; }
28190else
cristy8b350f62009-11-15 23:12:43 +000028191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028192$as_echo "no" >&6; }
28193fi
28194
28195
28196# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
28197set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028199$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028200if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028201 $as_echo_n "(cached) " >&6
28202else
28203 case $BlenderDecodeDelegate in
28204 [\\/]* | ?:[\\/]*)
28205 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
28206 ;;
28207 *)
28208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28209for as_dir in $PATH
28210do
28211 IFS=$as_save_IFS
28212 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28215 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028217 break 2
28218 fi
28219done
cristy8b350f62009-11-15 23:12:43 +000028220 done
cristy3ed852e2009-09-05 21:47:34 +000028221IFS=$as_save_IFS
28222
28223 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28224 ;;
28225esac
28226fi
28227BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28228if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028230$as_echo "$BlenderDecodeDelegate" >&6; }
28231else
cristy8b350f62009-11-15 23:12:43 +000028232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028233$as_echo "no" >&6; }
28234fi
28235
28236
28237# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28238set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028240$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028241if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028242 $as_echo_n "(cached) " >&6
28243else
28244 case $BZIPDelegate in
28245 [\\/]* | ?:[\\/]*)
28246 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28247 ;;
28248 *)
28249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28250for as_dir in $PATH
28251do
28252 IFS=$as_save_IFS
28253 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028254 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28256 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028258 break 2
28259 fi
28260done
cristy8b350f62009-11-15 23:12:43 +000028261 done
cristy3ed852e2009-09-05 21:47:34 +000028262IFS=$as_save_IFS
28263
28264 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28265 ;;
28266esac
28267fi
28268BZIPDelegate=$ac_cv_path_BZIPDelegate
28269if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028271$as_echo "$BZIPDelegate" >&6; }
28272else
cristy8b350f62009-11-15 23:12:43 +000028273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028274$as_echo "no" >&6; }
28275fi
28276
28277
28278# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28279set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028281$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028282if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028283 $as_echo_n "(cached) " >&6
28284else
28285 case $BrowseDelegate in
28286 [\\/]* | ?:[\\/]*)
28287 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28288 ;;
28289 *)
28290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28291for as_dir in $PATH
28292do
28293 IFS=$as_save_IFS
28294 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28297 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028299 break 2
28300 fi
28301done
cristy8b350f62009-11-15 23:12:43 +000028302 done
cristy3ed852e2009-09-05 21:47:34 +000028303IFS=$as_save_IFS
28304
28305 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28306 ;;
28307esac
28308fi
28309BrowseDelegate=$ac_cv_path_BrowseDelegate
28310if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028312$as_echo "$BrowseDelegate" >&6; }
28313else
cristy8b350f62009-11-15 23:12:43 +000028314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028315$as_echo "no" >&6; }
28316fi
28317
28318
28319# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
28320set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028322$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028323if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028324 $as_echo_n "(cached) " >&6
28325else
28326 case $CGMDecodeDelegate in
28327 [\\/]* | ?:[\\/]*)
28328 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
28329 ;;
28330 *)
28331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28332for as_dir in $PATH
28333do
28334 IFS=$as_save_IFS
28335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28338 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028340 break 2
28341 fi
28342done
cristy8b350f62009-11-15 23:12:43 +000028343 done
cristy3ed852e2009-09-05 21:47:34 +000028344IFS=$as_save_IFS
28345
28346 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
28347 ;;
28348esac
28349fi
28350CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
28351if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028353$as_echo "$CGMDecodeDelegate" >&6; }
28354else
cristy8b350f62009-11-15 23:12:43 +000028355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028356$as_echo "no" >&6; }
28357fi
28358
28359
28360# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
28361set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028363$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028364if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028365 $as_echo_n "(cached) " >&6
28366else
28367 case $CatDelegate in
28368 [\\/]* | ?:[\\/]*)
28369 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
28370 ;;
28371 *)
28372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28373for as_dir in $PATH
28374do
28375 IFS=$as_save_IFS
28376 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28379 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028381 break 2
28382 fi
28383done
cristy8b350f62009-11-15 23:12:43 +000028384 done
cristy3ed852e2009-09-05 21:47:34 +000028385IFS=$as_save_IFS
28386
28387 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
28388 ;;
28389esac
28390fi
28391CatDelegate=$ac_cv_path_CatDelegate
28392if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028394$as_echo "$CatDelegate" >&6; }
28395else
cristy8b350f62009-11-15 23:12:43 +000028396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028397$as_echo "no" >&6; }
28398fi
28399
28400
28401# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
28402set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028404$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028405if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028406 $as_echo_n "(cached) " >&6
28407else
28408 case $DNGDecodeDelegate in
28409 [\\/]* | ?:[\\/]*)
28410 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
28411 ;;
28412 *)
28413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28414for as_dir in $PATH
28415do
28416 IFS=$as_save_IFS
28417 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028418 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28420 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028422 break 2
28423 fi
28424done
cristy8b350f62009-11-15 23:12:43 +000028425 done
cristy3ed852e2009-09-05 21:47:34 +000028426IFS=$as_save_IFS
28427
28428 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
28429 ;;
28430esac
28431fi
28432DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
28433if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028435$as_echo "$DNGDecodeDelegate" >&6; }
28436else
cristy8b350f62009-11-15 23:12:43 +000028437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028438$as_echo "no" >&6; }
28439fi
28440
28441
28442# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
28443set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028445$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028446if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028447 $as_echo_n "(cached) " >&6
28448else
28449 case $GVCDecodeDelegate in
28450 [\\/]* | ?:[\\/]*)
28451 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
28452 ;;
28453 *)
28454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28455for as_dir in $PATH
28456do
28457 IFS=$as_save_IFS
28458 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028459 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28461 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028463 break 2
28464 fi
28465done
cristy8b350f62009-11-15 23:12:43 +000028466 done
cristy3ed852e2009-09-05 21:47:34 +000028467IFS=$as_save_IFS
28468
28469 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
28470 ;;
28471esac
28472fi
28473GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
28474if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028476$as_echo "$GVCDecodeDelegate" >&6; }
28477else
cristy8b350f62009-11-15 23:12:43 +000028478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028479$as_echo "no" >&6; }
28480fi
28481
28482
28483# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
28484set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028486$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028487if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028488 $as_echo_n "(cached) " >&6
28489else
28490 case $DVIDecodeDelegate in
28491 [\\/]* | ?:[\\/]*)
28492 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
28493 ;;
28494 *)
28495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28496for as_dir in $PATH
28497do
28498 IFS=$as_save_IFS
28499 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28502 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028504 break 2
28505 fi
28506done
cristy8b350f62009-11-15 23:12:43 +000028507 done
cristy3ed852e2009-09-05 21:47:34 +000028508IFS=$as_save_IFS
28509
28510 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
28511 ;;
28512esac
28513fi
28514DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
28515if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028517$as_echo "$DVIDecodeDelegate" >&6; }
28518else
cristy8b350f62009-11-15 23:12:43 +000028519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028520$as_echo "no" >&6; }
28521fi
28522
28523
28524# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
28525set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028527$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028528if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028529 $as_echo_n "(cached) " >&6
28530else
28531 case $EchoDelegate in
28532 [\\/]* | ?:[\\/]*)
28533 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
28534 ;;
28535 *)
28536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28537for as_dir in $PATH
28538do
28539 IFS=$as_save_IFS
28540 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28543 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028545 break 2
28546 fi
28547done
cristy8b350f62009-11-15 23:12:43 +000028548 done
cristy3ed852e2009-09-05 21:47:34 +000028549IFS=$as_save_IFS
28550
28551 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
28552 ;;
28553esac
28554fi
28555EchoDelegate=$ac_cv_path_EchoDelegate
28556if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028558$as_echo "$EchoDelegate" >&6; }
28559else
cristy8b350f62009-11-15 23:12:43 +000028560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028561$as_echo "no" >&6; }
28562fi
28563
28564
28565# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
28566set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028568$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028569if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028570 $as_echo_n "(cached) " >&6
28571else
28572 case $EditorDelegate in
28573 [\\/]* | ?:[\\/]*)
28574 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
28575 ;;
28576 *)
28577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28578for as_dir in $PATH
28579do
28580 IFS=$as_save_IFS
28581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28584 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028586 break 2
28587 fi
28588done
cristy8b350f62009-11-15 23:12:43 +000028589 done
cristy3ed852e2009-09-05 21:47:34 +000028590IFS=$as_save_IFS
28591
28592 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
28593 ;;
28594esac
28595fi
28596EditorDelegate=$ac_cv_path_EditorDelegate
28597if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028599$as_echo "$EditorDelegate" >&6; }
28600else
cristy8b350f62009-11-15 23:12:43 +000028601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028602$as_echo "no" >&6; }
28603fi
28604
28605
28606# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
28607set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028609$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028610if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028611 $as_echo_n "(cached) " >&6
28612else
28613 case $FIGDecodeDelegate in
28614 [\\/]* | ?:[\\/]*)
28615 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
28616 ;;
28617 *)
28618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28619for as_dir in $PATH
28620do
28621 IFS=$as_save_IFS
28622 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28625 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028627 break 2
28628 fi
28629done
cristy8b350f62009-11-15 23:12:43 +000028630 done
cristy3ed852e2009-09-05 21:47:34 +000028631IFS=$as_save_IFS
28632
28633 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
28634 ;;
28635esac
28636fi
28637FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
28638if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028640$as_echo "$FIGDecodeDelegate" >&6; }
28641else
cristy8b350f62009-11-15 23:12:43 +000028642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028643$as_echo "no" >&6; }
28644fi
28645
28646
28647# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
28648set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028650$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028651if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028652 $as_echo_n "(cached) " >&6
28653else
28654 case $ConvertDelegate in
28655 [\\/]* | ?:[\\/]*)
28656 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
28657 ;;
28658 *)
28659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28660for as_dir in $PATH
28661do
28662 IFS=$as_save_IFS
28663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28666 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028668 break 2
28669 fi
28670done
cristy8b350f62009-11-15 23:12:43 +000028671 done
cristy3ed852e2009-09-05 21:47:34 +000028672IFS=$as_save_IFS
28673
28674 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
28675 ;;
28676esac
28677fi
28678ConvertDelegate=$ac_cv_path_ConvertDelegate
28679if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028681$as_echo "$ConvertDelegate" >&6; }
28682else
cristy8b350f62009-11-15 23:12:43 +000028683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028684$as_echo "no" >&6; }
28685fi
28686
28687
28688# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
28689set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028691$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028692if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028693 $as_echo_n "(cached) " >&6
28694else
28695 case $DisplayDelegate in
28696 [\\/]* | ?:[\\/]*)
28697 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
28698 ;;
28699 *)
28700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28701for as_dir in $PATH
28702do
28703 IFS=$as_save_IFS
28704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28707 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028709 break 2
28710 fi
28711done
cristy8b350f62009-11-15 23:12:43 +000028712 done
cristy3ed852e2009-09-05 21:47:34 +000028713IFS=$as_save_IFS
28714
28715 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
28716 ;;
28717esac
28718fi
28719DisplayDelegate=$ac_cv_path_DisplayDelegate
28720if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028722$as_echo "$DisplayDelegate" >&6; }
28723else
cristy8b350f62009-11-15 23:12:43 +000028724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028725$as_echo "no" >&6; }
28726fi
28727
28728
28729# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
28730set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028732$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028733if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028734 $as_echo_n "(cached) " >&6
28735else
28736 case $MogrifyDelegate in
28737 [\\/]* | ?:[\\/]*)
28738 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
28739 ;;
28740 *)
28741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28742for as_dir in $PATH
28743do
28744 IFS=$as_save_IFS
28745 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028746 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28748 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028750 break 2
28751 fi
28752done
cristy8b350f62009-11-15 23:12:43 +000028753 done
cristy3ed852e2009-09-05 21:47:34 +000028754IFS=$as_save_IFS
28755
28756 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
28757 ;;
28758esac
28759fi
28760MogrifyDelegate=$ac_cv_path_MogrifyDelegate
28761if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028763$as_echo "$MogrifyDelegate" >&6; }
28764else
cristy8b350f62009-11-15 23:12:43 +000028765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028766$as_echo "no" >&6; }
28767fi
28768
28769
28770# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
28771set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028773$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028774if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028775 $as_echo_n "(cached) " >&6
28776else
28777 case $GnuplotDecodeDelegate in
28778 [\\/]* | ?:[\\/]*)
28779 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
28780 ;;
28781 *)
28782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28783for as_dir in $PATH
28784do
28785 IFS=$as_save_IFS
28786 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028787 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28789 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028791 break 2
28792 fi
28793done
cristy8b350f62009-11-15 23:12:43 +000028794 done
cristy3ed852e2009-09-05 21:47:34 +000028795IFS=$as_save_IFS
28796
28797 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
28798 ;;
28799esac
28800fi
28801GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
28802if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028804$as_echo "$GnuplotDecodeDelegate" >&6; }
28805else
cristy8b350f62009-11-15 23:12:43 +000028806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028807$as_echo "no" >&6; }
28808fi
28809
28810
28811# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
28812set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028814$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028815if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028816 $as_echo_n "(cached) " >&6
28817else
28818 case $HDRDecodeDelegate in
28819 [\\/]* | ?:[\\/]*)
28820 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
28821 ;;
28822 *)
28823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28824for as_dir in $PATH
28825do
28826 IFS=$as_save_IFS
28827 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28830 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028832 break 2
28833 fi
28834done
cristy8b350f62009-11-15 23:12:43 +000028835 done
cristy3ed852e2009-09-05 21:47:34 +000028836IFS=$as_save_IFS
28837
28838 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
28839 ;;
28840esac
28841fi
28842HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
28843if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028845$as_echo "$HDRDecodeDelegate" >&6; }
28846else
cristy8b350f62009-11-15 23:12:43 +000028847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028848$as_echo "no" >&6; }
28849fi
28850
28851
28852# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
28853set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028855$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028856if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028857 $as_echo_n "(cached) " >&6
28858else
28859 case $HPGLDecodeDelegate in
28860 [\\/]* | ?:[\\/]*)
28861 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
28862 ;;
28863 *)
28864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28865for as_dir in $PATH
28866do
28867 IFS=$as_save_IFS
28868 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28871 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028873 break 2
28874 fi
28875done
cristy8b350f62009-11-15 23:12:43 +000028876 done
cristy3ed852e2009-09-05 21:47:34 +000028877IFS=$as_save_IFS
28878
28879 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
28880 ;;
28881esac
28882fi
28883HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
28884if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028886$as_echo "$HPGLDecodeDelegate" >&6; }
28887else
cristy8b350f62009-11-15 23:12:43 +000028888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028889$as_echo "no" >&6; }
28890fi
28891
28892
28893# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
28894set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028896$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028897if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028898 $as_echo_n "(cached) " >&6
28899else
28900 case $HTMLDecodeDelegate in
28901 [\\/]* | ?:[\\/]*)
28902 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
28903 ;;
28904 *)
28905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28906for as_dir in $PATH
28907do
28908 IFS=$as_save_IFS
28909 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28912 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028914 break 2
28915 fi
28916done
cristy8b350f62009-11-15 23:12:43 +000028917 done
cristy3ed852e2009-09-05 21:47:34 +000028918IFS=$as_save_IFS
28919
28920 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
28921 ;;
28922esac
28923fi
28924HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
28925if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028927$as_echo "$HTMLDecodeDelegate" >&6; }
28928else
cristy8b350f62009-11-15 23:12:43 +000028929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028930$as_echo "no" >&6; }
28931fi
28932
28933
28934# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
28935set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028937$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028938if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028939 $as_echo_n "(cached) " >&6
28940else
28941 case $ILBMDecodeDelegate in
28942 [\\/]* | ?:[\\/]*)
28943 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
28944 ;;
28945 *)
28946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28947for as_dir in $PATH
28948do
28949 IFS=$as_save_IFS
28950 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028951 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28953 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028955 break 2
28956 fi
28957done
cristy8b350f62009-11-15 23:12:43 +000028958 done
cristy3ed852e2009-09-05 21:47:34 +000028959IFS=$as_save_IFS
28960
28961 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
28962 ;;
28963esac
28964fi
28965ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
28966if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028968$as_echo "$ILBMDecodeDelegate" >&6; }
28969else
cristy8b350f62009-11-15 23:12:43 +000028970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028971$as_echo "no" >&6; }
28972fi
28973
28974
28975# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
28976set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028978$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028979if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028980 $as_echo_n "(cached) " >&6
28981else
28982 case $ILBMEncodeDelegate in
28983 [\\/]* | ?:[\\/]*)
28984 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
28985 ;;
28986 *)
28987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28988for as_dir in $PATH
28989do
28990 IFS=$as_save_IFS
28991 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28994 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028996 break 2
28997 fi
28998done
cristy8b350f62009-11-15 23:12:43 +000028999 done
cristy3ed852e2009-09-05 21:47:34 +000029000IFS=$as_save_IFS
29001
29002 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
29003 ;;
29004esac
29005fi
29006ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29007if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029009$as_echo "$ILBMEncodeDelegate" >&6; }
29010else
cristy8b350f62009-11-15 23:12:43 +000029011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029012$as_echo "no" >&6; }
29013fi
29014
29015
29016# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29017set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029019$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029020if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029021 $as_echo_n "(cached) " >&6
29022else
29023 case $LPDelegate in
29024 [\\/]* | ?:[\\/]*)
29025 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
29026 ;;
29027 *)
29028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29029for as_dir in $PATH
29030do
29031 IFS=$as_save_IFS
29032 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029033 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29035 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029037 break 2
29038 fi
29039done
cristy8b350f62009-11-15 23:12:43 +000029040 done
cristy3ed852e2009-09-05 21:47:34 +000029041IFS=$as_save_IFS
29042
29043 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
29044 ;;
29045esac
29046fi
29047LPDelegate=$ac_cv_path_LPDelegate
29048if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029050$as_echo "$LPDelegate" >&6; }
29051else
cristy8b350f62009-11-15 23:12:43 +000029052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029053$as_echo "no" >&6; }
29054fi
29055
29056
29057# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29058set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029060$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029061if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029062 $as_echo_n "(cached) " >&6
29063else
29064 case $LPRDelegate in
29065 [\\/]* | ?:[\\/]*)
29066 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
29067 ;;
29068 *)
29069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29070for as_dir in $PATH
29071do
29072 IFS=$as_save_IFS
29073 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029074 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29076 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029078 break 2
29079 fi
29080done
cristy8b350f62009-11-15 23:12:43 +000029081 done
cristy3ed852e2009-09-05 21:47:34 +000029082IFS=$as_save_IFS
29083
29084 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
29085 ;;
29086esac
29087fi
29088LPRDelegate=$ac_cv_path_LPRDelegate
29089if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029091$as_echo "$LPRDelegate" >&6; }
29092else
cristy8b350f62009-11-15 23:12:43 +000029093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029094$as_echo "no" >&6; }
29095fi
29096
29097
29098# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
29099set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029101$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029102if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029103 $as_echo_n "(cached) " >&6
29104else
29105 case $LZWDecodeDelegate in
29106 [\\/]* | ?:[\\/]*)
29107 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
29108 ;;
29109 *)
29110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29111for as_dir in $PATH
29112do
29113 IFS=$as_save_IFS
29114 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029115 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29117 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029119 break 2
29120 fi
29121done
cristy8b350f62009-11-15 23:12:43 +000029122 done
cristy3ed852e2009-09-05 21:47:34 +000029123IFS=$as_save_IFS
29124
29125 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
29126 ;;
29127esac
29128fi
29129LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
29130if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029132$as_echo "$LZWDecodeDelegate" >&6; }
29133else
cristy8b350f62009-11-15 23:12:43 +000029134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029135$as_echo "no" >&6; }
29136fi
29137
29138
29139# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
29140set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029142$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029143if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029144 $as_echo_n "(cached) " >&6
29145else
29146 case $LZWEncodeDelegate in
29147 [\\/]* | ?:[\\/]*)
29148 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
29149 ;;
29150 *)
29151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29152for as_dir in $PATH
29153do
29154 IFS=$as_save_IFS
29155 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029156 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29158 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029160 break 2
29161 fi
29162done
cristy8b350f62009-11-15 23:12:43 +000029163 done
cristy3ed852e2009-09-05 21:47:34 +000029164IFS=$as_save_IFS
29165
29166 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
29167 ;;
29168esac
29169fi
29170LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
29171if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029173$as_echo "$LZWEncodeDelegate" >&6; }
29174else
cristy8b350f62009-11-15 23:12:43 +000029175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029176$as_echo "no" >&6; }
29177fi
29178
29179
29180# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
29181set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029183$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029184if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029185 $as_echo_n "(cached) " >&6
29186else
29187 case $LaunchDelegate in
29188 [\\/]* | ?:[\\/]*)
29189 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
29190 ;;
29191 *)
29192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29193for as_dir in $PATH
29194do
29195 IFS=$as_save_IFS
29196 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29199 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029201 break 2
29202 fi
29203done
cristy8b350f62009-11-15 23:12:43 +000029204 done
cristy3ed852e2009-09-05 21:47:34 +000029205IFS=$as_save_IFS
29206
29207 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29208 ;;
29209esac
29210fi
29211LaunchDelegate=$ac_cv_path_LaunchDelegate
29212if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029214$as_echo "$LaunchDelegate" >&6; }
29215else
cristy8b350f62009-11-15 23:12:43 +000029216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029217$as_echo "no" >&6; }
29218fi
29219
29220
29221# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
29222set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029224$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029225if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029226 $as_echo_n "(cached) " >&6
29227else
29228 case $MANDelegate in
29229 [\\/]* | ?:[\\/]*)
29230 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
29231 ;;
29232 *)
29233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29234for as_dir in $PATH
29235do
29236 IFS=$as_save_IFS
29237 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29240 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029242 break 2
29243 fi
29244done
cristy8b350f62009-11-15 23:12:43 +000029245 done
cristy3ed852e2009-09-05 21:47:34 +000029246IFS=$as_save_IFS
29247
29248 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29249 ;;
29250esac
29251fi
29252MANDelegate=$ac_cv_path_MANDelegate
29253if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029255$as_echo "$MANDelegate" >&6; }
29256else
cristy8b350f62009-11-15 23:12:43 +000029257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029258$as_echo "no" >&6; }
29259fi
29260
29261
29262# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29263set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029265$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029266if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029267 $as_echo_n "(cached) " >&6
29268else
29269 case $MPEGDecodeDelegate in
29270 [\\/]* | ?:[\\/]*)
29271 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29272 ;;
29273 *)
29274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29275for as_dir in $PATH
29276do
29277 IFS=$as_save_IFS
29278 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029279 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29281 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029283 break 2
29284 fi
29285done
cristy8b350f62009-11-15 23:12:43 +000029286 done
cristy3ed852e2009-09-05 21:47:34 +000029287IFS=$as_save_IFS
29288
29289 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29290 ;;
29291esac
29292fi
29293MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29294if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029296$as_echo "$MPEGDecodeDelegate" >&6; }
29297else
cristy8b350f62009-11-15 23:12:43 +000029298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029299$as_echo "no" >&6; }
29300fi
29301
29302
29303# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29304set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029306$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029307if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029308 $as_echo_n "(cached) " >&6
29309else
29310 case $MPEGEncodeDelegate in
29311 [\\/]* | ?:[\\/]*)
29312 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
29313 ;;
29314 *)
29315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29316for as_dir in $PATH
29317do
29318 IFS=$as_save_IFS
29319 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029320 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29322 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029324 break 2
29325 fi
29326done
cristy8b350f62009-11-15 23:12:43 +000029327 done
cristy3ed852e2009-09-05 21:47:34 +000029328IFS=$as_save_IFS
29329
29330 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
29331 ;;
29332esac
29333fi
29334MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
29335if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029337$as_echo "$MPEGEncodeDelegate" >&6; }
29338else
cristy8b350f62009-11-15 23:12:43 +000029339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029340$as_echo "no" >&6; }
29341fi
29342
29343
29344# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
29345set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029347$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029348if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029349 $as_echo_n "(cached) " >&6
29350else
29351 case $MVDelegate in
29352 [\\/]* | ?:[\\/]*)
29353 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
29354 ;;
29355 *)
29356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29357for as_dir in $PATH
29358do
29359 IFS=$as_save_IFS
29360 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029361 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29363 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029365 break 2
29366 fi
29367done
cristy8b350f62009-11-15 23:12:43 +000029368 done
cristy3ed852e2009-09-05 21:47:34 +000029369IFS=$as_save_IFS
29370
29371 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
29372 ;;
29373esac
29374fi
29375MVDelegate=$ac_cv_path_MVDelegate
29376if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029378$as_echo "$MVDelegate" >&6; }
29379else
cristy8b350f62009-11-15 23:12:43 +000029380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029381$as_echo "no" >&6; }
29382fi
29383
29384
29385# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
29386set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029388$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029389if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029390 $as_echo_n "(cached) " >&6
29391else
29392 case $PCLDelegate in
29393 [\\/]* | ?:[\\/]*)
29394 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
29395 ;;
29396 *)
29397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29398for as_dir in $PATH
29399do
29400 IFS=$as_save_IFS
29401 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29404 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029406 break 2
29407 fi
29408done
cristy8b350f62009-11-15 23:12:43 +000029409 done
cristy3ed852e2009-09-05 21:47:34 +000029410IFS=$as_save_IFS
29411
29412 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
29413 ;;
29414esac
29415fi
29416PCLDelegate=$ac_cv_path_PCLDelegate
29417if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029419$as_echo "$PCLDelegate" >&6; }
29420else
cristy8b350f62009-11-15 23:12:43 +000029421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029422$as_echo "no" >&6; }
29423fi
29424
29425
29426# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
29427set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029429$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029430if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029431 $as_echo_n "(cached) " >&6
29432else
29433 case $PGPDecodeDelegate in
29434 [\\/]* | ?:[\\/]*)
29435 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
29436 ;;
29437 *)
29438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29439for as_dir in $PATH
29440do
29441 IFS=$as_save_IFS
29442 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29445 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029447 break 2
29448 fi
29449done
cristy8b350f62009-11-15 23:12:43 +000029450 done
cristy3ed852e2009-09-05 21:47:34 +000029451IFS=$as_save_IFS
29452
29453 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
29454 ;;
29455esac
29456fi
29457PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
29458if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029460$as_echo "$PGPDecodeDelegate" >&6; }
29461else
cristy8b350f62009-11-15 23:12:43 +000029462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029463$as_echo "no" >&6; }
29464fi
29465
29466
29467# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
29468set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029470$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029471if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029472 $as_echo_n "(cached) " >&6
29473else
29474 case $POVDelegate in
29475 [\\/]* | ?:[\\/]*)
29476 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
29477 ;;
29478 *)
29479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29480for as_dir in $PATH
29481do
29482 IFS=$as_save_IFS
29483 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029484 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29486 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029488 break 2
29489 fi
29490done
cristy8b350f62009-11-15 23:12:43 +000029491 done
cristy3ed852e2009-09-05 21:47:34 +000029492IFS=$as_save_IFS
29493
29494 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
29495 ;;
29496esac
29497fi
29498POVDelegate=$ac_cv_path_POVDelegate
29499if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029501$as_echo "$POVDelegate" >&6; }
29502else
cristy8b350f62009-11-15 23:12:43 +000029503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029504$as_echo "no" >&6; }
29505fi
29506
29507
29508for ac_prog in gsx gsc "$PSDelegateDefault"
29509do
29510 # Extract the first word of "$ac_prog", so it can be a program name with args.
29511set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029513$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029514if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029515 $as_echo_n "(cached) " >&6
29516else
29517 case $PSDelegate in
29518 [\\/]* | ?:[\\/]*)
29519 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
29520 ;;
29521 *)
29522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29523for as_dir in $PATH
29524do
29525 IFS=$as_save_IFS
29526 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029527 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29529 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029531 break 2
29532 fi
29533done
cristy8b350f62009-11-15 23:12:43 +000029534 done
cristy3ed852e2009-09-05 21:47:34 +000029535IFS=$as_save_IFS
29536
29537 ;;
29538esac
29539fi
29540PSDelegate=$ac_cv_path_PSDelegate
29541if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029543$as_echo "$PSDelegate" >&6; }
29544else
cristy8b350f62009-11-15 23:12:43 +000029545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029546$as_echo "no" >&6; }
29547fi
29548
29549
29550 test -n "$PSDelegate" && break
29551done
29552test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
29553
29554# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
29555set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029557$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029558if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029559 $as_echo_n "(cached) " >&6
29560else
29561 case $RLEEncodeDelegate in
29562 [\\/]* | ?:[\\/]*)
29563 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
29564 ;;
29565 *)
29566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29567for as_dir in $PATH
29568do
29569 IFS=$as_save_IFS
29570 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029571 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29573 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029575 break 2
29576 fi
29577done
cristy8b350f62009-11-15 23:12:43 +000029578 done
cristy3ed852e2009-09-05 21:47:34 +000029579IFS=$as_save_IFS
29580
29581 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
29582 ;;
29583esac
29584fi
29585RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
29586if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029588$as_echo "$RLEEncodeDelegate" >&6; }
29589else
cristy8b350f62009-11-15 23:12:43 +000029590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029591$as_echo "no" >&6; }
29592fi
29593
29594
29595# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
29596set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029598$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029599if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029600 $as_echo_n "(cached) " >&6
29601else
29602 case $RMDelegate in
29603 [\\/]* | ?:[\\/]*)
29604 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
29605 ;;
29606 *)
29607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29608for as_dir in $PATH
29609do
29610 IFS=$as_save_IFS
29611 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29614 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029616 break 2
29617 fi
29618done
cristy8b350f62009-11-15 23:12:43 +000029619 done
cristy3ed852e2009-09-05 21:47:34 +000029620IFS=$as_save_IFS
29621
29622 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
29623 ;;
29624esac
29625fi
29626RMDelegate=$ac_cv_path_RMDelegate
29627if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029629$as_echo "$RMDelegate" >&6; }
29630else
cristy8b350f62009-11-15 23:12:43 +000029631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029632$as_echo "no" >&6; }
29633fi
29634
29635
29636# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
29637set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029639$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029640if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029641 $as_echo_n "(cached) " >&6
29642else
29643 case $SCANDecodeDelegate in
29644 [\\/]* | ?:[\\/]*)
29645 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
29646 ;;
29647 *)
29648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29649for as_dir in $PATH
29650do
29651 IFS=$as_save_IFS
29652 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029653 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29655 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029657 break 2
29658 fi
29659done
cristy8b350f62009-11-15 23:12:43 +000029660 done
cristy3ed852e2009-09-05 21:47:34 +000029661IFS=$as_save_IFS
29662
29663 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
29664 ;;
29665esac
29666fi
29667SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
29668if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029670$as_echo "$SCANDecodeDelegate" >&6; }
29671else
cristy8b350f62009-11-15 23:12:43 +000029672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029673$as_echo "no" >&6; }
29674fi
29675
29676
29677# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
29678set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029680$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029681if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029682 $as_echo_n "(cached) " >&6
29683else
29684 case $TXTDelegate in
29685 [\\/]* | ?:[\\/]*)
29686 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
29687 ;;
29688 *)
29689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29690for as_dir in $PATH
29691do
29692 IFS=$as_save_IFS
29693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29696 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029698 break 2
29699 fi
29700done
cristy8b350f62009-11-15 23:12:43 +000029701 done
cristy3ed852e2009-09-05 21:47:34 +000029702IFS=$as_save_IFS
29703
29704 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
29705 ;;
29706esac
29707fi
29708TXTDelegate=$ac_cv_path_TXTDelegate
29709if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029711$as_echo "$TXTDelegate" >&6; }
29712else
cristy8b350f62009-11-15 23:12:43 +000029713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029714$as_echo "no" >&6; }
29715fi
29716
29717
29718# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
29719set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029721$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029722if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029723 $as_echo_n "(cached) " >&6
29724else
29725 case $WMFDecodeDelegate in
29726 [\\/]* | ?:[\\/]*)
29727 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
29728 ;;
29729 *)
29730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29731for as_dir in $PATH
29732do
29733 IFS=$as_save_IFS
29734 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029735 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29737 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029739 break 2
29740 fi
29741done
cristy8b350f62009-11-15 23:12:43 +000029742 done
cristy3ed852e2009-09-05 21:47:34 +000029743IFS=$as_save_IFS
29744
29745 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
29746 ;;
29747esac
29748fi
29749WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
29750if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029752$as_echo "$WMFDecodeDelegate" >&6; }
29753else
cristy8b350f62009-11-15 23:12:43 +000029754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029755$as_echo "no" >&6; }
29756fi
29757
29758
29759# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
29760set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029762$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029763if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029764 $as_echo_n "(cached) " >&6
29765else
29766 case $WWWDecodeDelegate in
29767 [\\/]* | ?:[\\/]*)
29768 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
29769 ;;
29770 *)
29771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29772for as_dir in $PATH
29773do
29774 IFS=$as_save_IFS
29775 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29778 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029780 break 2
29781 fi
29782done
cristy8b350f62009-11-15 23:12:43 +000029783 done
cristy3ed852e2009-09-05 21:47:34 +000029784IFS=$as_save_IFS
29785
29786 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
29787 ;;
29788esac
29789fi
29790WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
29791if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029793$as_echo "$WWWDecodeDelegate" >&6; }
29794else
cristy8b350f62009-11-15 23:12:43 +000029795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029796$as_echo "no" >&6; }
29797fi
29798
29799
29800# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
29801set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029803$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029804if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029805 $as_echo_n "(cached) " >&6
29806else
29807 case $XPSDelegate in
29808 [\\/]* | ?:[\\/]*)
29809 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
29810 ;;
29811 *)
29812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29813for as_dir in $PATH
29814do
29815 IFS=$as_save_IFS
29816 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029817 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29819 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029821 break 2
29822 fi
29823done
cristy8b350f62009-11-15 23:12:43 +000029824 done
cristy3ed852e2009-09-05 21:47:34 +000029825IFS=$as_save_IFS
29826
29827 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
29828 ;;
29829esac
29830fi
29831XPSDelegate=$ac_cv_path_XPSDelegate
29832if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029834$as_echo "$XPSDelegate" >&6; }
29835else
cristy8b350f62009-11-15 23:12:43 +000029836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029837$as_echo "no" >&6; }
29838fi
29839
29840
29841# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
29842set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029844$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029845if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029846 $as_echo_n "(cached) " >&6
29847else
29848 case $ZipDelegate in
29849 [\\/]* | ?:[\\/]*)
29850 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
29851 ;;
29852 *)
29853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29854for as_dir in $PATH
29855do
29856 IFS=$as_save_IFS
29857 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029858 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29860 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029862 break 2
29863 fi
29864done
cristy8b350f62009-11-15 23:12:43 +000029865 done
cristy3ed852e2009-09-05 21:47:34 +000029866IFS=$as_save_IFS
29867
29868 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
29869 ;;
29870esac
29871fi
29872ZipDelegate=$ac_cv_path_ZipDelegate
29873if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029875$as_echo "$ZipDelegate" >&6; }
29876else
cristy8b350f62009-11-15 23:12:43 +000029877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029878$as_echo "no" >&6; }
29879fi
29880
29881
29882
29883# Prefer lpr to lp; lp needs options tacked on.
29884if test "$LPRDelegate" != no; then
29885 PrintDelegate="$LPRDelegate"
29886else
29887 PrintDelegate="$LPDelegate -c -s"
29888fi
29889
29890
29891# Installed ImageMagick utiltity paths
29892ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
29893DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
29894MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
29895
29896# Set delegate booleans
29897have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
29898have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
29899have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
29900have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
29901have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
29902have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
29903have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
29904have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
29905have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
29906have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
29907have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
29908
29909#
29910# Test for font directories
29911#
29912type_include_files=''
29913
29914# Windows
29915windows_font_dir=''
29916if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
29917 windows_font_dir="${with_windows_font_dir}/"
29918fi
29919if test -n "$windows_font_dir"; then
29920 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
29921 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
29922 fi
29923 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
29924 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
29925 fi
29926 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
29927 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
29928 fi
29929fi
29930if test -n "$windows_font_dir"; then
29931 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
29932fi
29933
29934
29935# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000029936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000029937$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
29938ghostscript_font_dir=''
29939if test "${with_gs_font_dir}" != 'default'; then
29940 ghostscript_font_dir="${with_gs_font_dir}/"
29941else
29942 if test "${native_win32_build}" = 'yes'; then
29943 # Native Windows Build
29944 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
29945 if test -f "${font_dir}a010013l.pfb"; then
29946 ghostscript_font_dir="$font_dir"
29947 break 1
29948 fi
29949 done
29950 if test "${PSDelegate}" != 'gswin32c'; then
29951 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
29952 fi
29953 else
29954 # Linux / Mac OS X / Unix Build
29955 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
29956 if test -f "${font_dir}a010013l.pfb"; then
29957 ghostscript_font_dir="${font_dir}"
29958 break 1
29959 fi
29960 done
29961 if test "${ghostscript_font_dir}x" = 'x'; then
29962 if test "$PSDelegate" != 'gs'; then
29963 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
29964 fi
29965 fi
29966 fi
29967fi
29968if test "${ghostscript_font_dir}x" != 'x'; then
29969 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000029970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000029971$as_echo "$ghostscript_font_dir" >&6; }
29972else
cristy8b350f62009-11-15 23:12:43 +000029973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000029974$as_echo "not found!" >&6; };
29975fi
29976
29977case "${build_os}" in
29978 mingw* )
29979 PSDelegate=`$WinPathScript "$PSDelegate" 1`
29980 ;;
29981esac
29982
29983
29984
29985#
29986# Handle case where user doesn't want frozen paths
29987#
29988if test "$with_frozenpaths" != 'yes'; then
29989 # Re-set delegate definitions to default (no paths)
29990 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
29991 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
29992 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
29993 BZIPDelegate="$BZIPDelegateDefault"
29994 BrowseDelegate="$BrowseDelegateDefault"
29995 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
29996 CatDelegate="$CatDelegateDefault"
29997 ConvertDelegate="$ConvertDelegateDefault"
29998 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
29999 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
30000 EchoDelegate="$EchoDelegateDefault"
30001 EditorDelegate="$EditorDelegateDefault"
30002 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
30003 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
30004 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
30005 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
30006 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
30007 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
30008 LPDelegate="$LPDelegateDefault"
30009 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
30010 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
30011 LaunchDelegate="$LaunchDelegateDefault"
30012 MANDelegate="$MANDelegateDefault"
30013 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
30014 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
30015 MVDelegate="$MVDelegateDefault"
30016 MogrifyDelegate="$MogrifyDelegateDefault"
30017 PCLDelegate="$PCLDelegateDefault"
30018 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
30019 POVDelegate="$POVDelegateDefault"
30020 PSDelegate="$PSDelegateDefault"
30021 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
30022 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
30023 RMDelegate="$RMDelegateDefault"
30024 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
30025 ShowImageDelegate="$ShowImageDelegateDefault"
30026 TXTDelegate="$TXTDelegateDefault"
30027 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
30028 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
30029 XPSDelegate="$XPSDelegateDefault"
30030 ZipDelegate="$ZipDelegateDefault"
30031fi
30032
30033# Delegate substitutions
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076#
30077# RPM support.
30078#
30079RPM=''
30080for ac_prog in gnutar gtar tar
30081do
30082 # Extract the first word of "$ac_prog", so it can be a program name with args.
30083set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030085$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030086if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030087 $as_echo_n "(cached) " >&6
30088else
30089 if test -n "$TAR"; then
30090 ac_cv_prog_TAR="$TAR" # Let the user override the test.
30091else
30092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30093for as_dir in $PATH
30094do
30095 IFS=$as_save_IFS
30096 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030097 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30099 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030101 break 2
30102 fi
30103done
cristy8b350f62009-11-15 23:12:43 +000030104 done
cristy3ed852e2009-09-05 21:47:34 +000030105IFS=$as_save_IFS
30106
30107fi
30108fi
30109TAR=$ac_cv_prog_TAR
30110if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000030111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000030112$as_echo "$TAR" >&6; }
30113else
cristy8b350f62009-11-15 23:12:43 +000030114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030115$as_echo "no" >&6; }
30116fi
30117
30118
30119 test -n "$TAR" && break
30120done
30121
30122for ac_prog in perl
30123do
30124 # Extract the first word of "$ac_prog", so it can be a program name with args.
30125set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030127$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030128if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030129 $as_echo_n "(cached) " >&6
30130else
30131 if test -n "$PERL"; then
30132 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30133else
30134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30135for as_dir in $PATH
30136do
30137 IFS=$as_save_IFS
30138 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30141 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030143 break 2
30144 fi
30145done
cristy8b350f62009-11-15 23:12:43 +000030146 done
cristy3ed852e2009-09-05 21:47:34 +000030147IFS=$as_save_IFS
30148
30149fi
30150fi
30151PERL=$ac_cv_prog_PERL
30152if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030154$as_echo "$PERL" >&6; }
30155else
cristy8b350f62009-11-15 23:12:43 +000030156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030157$as_echo "no" >&6; }
30158fi
30159
30160
30161 test -n "$PERL" && break
30162done
30163
30164for ac_prog in rpmbuild rpm
30165do
30166 # Extract the first word of "$ac_prog", so it can be a program name with args.
30167set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030169$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030170if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030171 $as_echo_n "(cached) " >&6
30172else
30173 if test -n "$RPM"; then
30174 ac_cv_prog_RPM="$RPM" # Let the user override the test.
30175else
30176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30177for as_dir in $PATH
30178do
30179 IFS=$as_save_IFS
30180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30183 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030185 break 2
30186 fi
30187done
cristy8b350f62009-11-15 23:12:43 +000030188 done
cristy3ed852e2009-09-05 21:47:34 +000030189IFS=$as_save_IFS
30190
30191fi
30192fi
30193RPM=$ac_cv_prog_RPM
30194if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000030195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000030196$as_echo "$RPM" >&6; }
30197else
cristy8b350f62009-11-15 23:12:43 +000030198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030199$as_echo "no" >&6; }
30200fi
30201
30202
30203 test -n "$RPM" && break
30204done
30205
30206
30207ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30208
30209
30210AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30211
30212
30213AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30214
30215
30216AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30217
30218
30219 if test "x$RPM" != "x" ; then
30220 RPM_DELEGATE_TRUE=
30221 RPM_DELEGATE_FALSE='#'
30222else
30223 RPM_DELEGATE_TRUE='#'
30224 RPM_DELEGATE_FALSE=
30225fi
30226
30227
30228#
30229# 7ZIP support (http://p7zip.sourceforge.net/)
30230#
30231P7ZIP=''
30232for ac_prog in 7za
30233do
30234 # Extract the first word of "$ac_prog", so it can be a program name with args.
30235set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030237$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030238if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030239 $as_echo_n "(cached) " >&6
30240else
30241 if test -n "$P7ZIP"; then
30242 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
30243else
30244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30245for as_dir in $PATH
30246do
30247 IFS=$as_save_IFS
30248 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30251 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030253 break 2
30254 fi
30255done
cristy8b350f62009-11-15 23:12:43 +000030256 done
cristy3ed852e2009-09-05 21:47:34 +000030257IFS=$as_save_IFS
30258
30259fi
30260fi
30261P7ZIP=$ac_cv_prog_P7ZIP
30262if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030264$as_echo "$P7ZIP" >&6; }
30265else
cristy8b350f62009-11-15 23:12:43 +000030266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030267$as_echo "no" >&6; }
30268fi
30269
30270
30271 test -n "$P7ZIP" && break
30272done
30273
30274
30275 if test "x$P7ZIP" != "x" ; then
30276 P7ZIP_DELEGATE_TRUE=
30277 P7ZIP_DELEGATE_FALSE='#'
30278else
30279 P7ZIP_DELEGATE_TRUE='#'
30280 P7ZIP_DELEGATE_FALSE=
30281fi
30282
30283
30284#
30285# ZIP support (http://www.info-zip.org/Zip.html)
30286#
30287ZIP=''
30288for ac_prog in zip
30289do
30290 # Extract the first word of "$ac_prog", so it can be a program name with args.
30291set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030293$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030294if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030295 $as_echo_n "(cached) " >&6
30296else
30297 if test -n "$ZIP"; then
30298 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
30299else
30300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30301for as_dir in $PATH
30302do
30303 IFS=$as_save_IFS
30304 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030305 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30307 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030309 break 2
30310 fi
30311done
cristy8b350f62009-11-15 23:12:43 +000030312 done
cristy3ed852e2009-09-05 21:47:34 +000030313IFS=$as_save_IFS
30314
30315fi
30316fi
30317ZIP=$ac_cv_prog_ZIP
30318if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030320$as_echo "$ZIP" >&6; }
30321else
cristy8b350f62009-11-15 23:12:43 +000030322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030323$as_echo "no" >&6; }
30324fi
30325
30326
30327 test -n "$ZIP" && break
30328done
30329
30330
30331 if test "x$ZIP" != "x" ; then
30332 ZIP_DELEGATE_TRUE=
30333 ZIP_DELEGATE_FALSE='#'
30334else
30335 ZIP_DELEGATE_TRUE='#'
30336 ZIP_DELEGATE_FALSE=
30337fi
30338
30339
30340#
30341# GhostPCL related configuration.
30342#
30343PCLColorDevice=ppmraw
30344PCLCMYKDevice=bmpsep8
30345PCLMonoDevice=pbmraw
30346if test -z "$PCLVersion"; then
30347 PCLVersion='unknown'
30348fi
30349if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030351$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030353$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030355$as_echo "" >&6; }
30356 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000030357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030358$as_echo_n "checking for pcl color device... " >&6; }
30359 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30360 :
30361 else
30362 PCLColorDevice=ppmraw
30363 fi
cristy8b350f62009-11-15 23:12:43 +000030364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030365$as_echo "$PCLColorDevice" >&6; }
30366
30367 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030369$as_echo_n "checking for pcl CMYK device... " >&6; }
30370 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30371 :
30372 else
30373 PCLCMYKDevice=$PCLColorDevice
30374 fi
cristy8b350f62009-11-15 23:12:43 +000030375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030376$as_echo "$PCLCMYKDevice" >&6; }
30377
30378 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030380$as_echo_n "checking for pcl mono device... " >&6; }
30381 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30382 :
30383 else
30384 PCLMonoDevice=$PCLColorDevice
30385 fi
cristy8b350f62009-11-15 23:12:43 +000030386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030387$as_echo "$PCLMonoDevice" >&6; }
30388fi
30389
30390
30391
30392
30393
30394
30395#
30396# GhostXPS related configuration.
30397#
30398XPSColorDevice=ppmraw
30399XPSCMYKDevice=bmpsep8
30400XPSMonoDevice=pbmraw
30401if test -z "$XPSVersion"; then
30402 XPSVersion='unknown'
30403fi
30404if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030406$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000030408$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030410$as_echo "" >&6; }
30411 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030413$as_echo_n "checking for xps color device... " >&6; }
30414 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30415 :
30416 else
30417 XPSColorDevice=ppmraw
30418 fi
cristy8b350f62009-11-15 23:12:43 +000030419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030420$as_echo "$XPSColorDevice" >&6; }
30421
30422 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030424$as_echo_n "checking for xps CMYK device... " >&6; }
30425 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30426 :
30427 else
30428 XPSCMYKDevice=$XPSColorDevice
30429 fi
cristy8b350f62009-11-15 23:12:43 +000030430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030431$as_echo "$XPSCMYKDevice" >&6; }
30432
30433 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030435$as_echo_n "checking for xps mono device... " >&6; }
30436 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30437 :
30438 else
30439 XPSMonoDevice=$XPSColorDevice
30440 fi
cristy8b350f62009-11-15 23:12:43 +000030441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030442$as_echo "$XPSMonoDevice" >&6; }
30443fi
30444
30445
30446
30447
30448
30449
30450#
30451# Ghostscript related configuration.
30452#
30453if test "$have_png" = 'yes'; then
30454 GSAlphaDevice=pngalpha
30455else
30456 GSAlphaDevice=pnmraw
30457fi
30458GSColorDevice=pnmraw
30459GSCMYKDevice=pam
30460GSMonoDevice=pbmraw
30461GSPDFDevice=pdfwrite
30462GSPSDevice=pswrite
30463GSEPSDevice=epswrite
30464GSVersion='unknown'
30465if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030467$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000030469$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030471$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000030473$as_echo_n "checking for Ghostscript version... " >&6; }
30474 if GSVersion=`$PSDelegate --version`; then
30475 :
30476 else
30477 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
30478 fi
cristy8b350f62009-11-15 23:12:43 +000030479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000030480$as_echo "$GSVersion" >&6; }
30481
30482 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000030483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030484$as_echo_n "checking for gs alpha device... " >&6; }
30485 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30486 :
30487 else
30488 GSAlphaDevice=pnmraw
30489 fi
cristy8b350f62009-11-15 23:12:43 +000030490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030491$as_echo "$GSAlphaDevice" >&6; }
30492
30493 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030495$as_echo_n "checking for gs color device... " >&6; }
30496 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30497 :
30498 else
30499 GSColorDevice=pnmraw
30500 fi
cristy8b350f62009-11-15 23:12:43 +000030501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030502$as_echo "$GSColorDevice" >&6; }
30503
30504 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030506$as_echo_n "checking for gs CMYK device... " >&6; }
30507 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30508 :
30509 else
30510 GSCMYKDevice=bmpsep8
30511 fi
cristy8b350f62009-11-15 23:12:43 +000030512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030513$as_echo "$GSCMYKDevice" >&6; }
30514
30515 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030517$as_echo_n "checking for gs mono device... " >&6; }
30518 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30519 :
30520 else
30521 GSMonoDevice=$GSColorDevice
30522 fi
cristy8b350f62009-11-15 23:12:43 +000030523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030524$as_echo "$GSMonoDevice" >&6; }
30525
30526 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000030527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030528$as_echo_n "checking for gs PDF writing device... " >&6; }
30529 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30530 :
30531 else
30532 GSPDFDevice=nodevice
30533 fi
cristy8b350f62009-11-15 23:12:43 +000030534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030535$as_echo "$GSPDFDevice" >&6; }
30536
30537 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000030538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030539$as_echo_n "checking for gs PS writing device... " >&6; }
30540 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30541 :
30542 else
30543 GSPSDevice=nodevice
30544 fi
cristy8b350f62009-11-15 23:12:43 +000030545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030546$as_echo "$GSPSDevice" >&6; }
30547
30548 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000030549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030550$as_echo_n "checking for gs EPS writing device... " >&6; }
30551 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30552 :
30553 else
30554 GSEPSDevice=nodevice
30555 fi
cristy8b350f62009-11-15 23:12:43 +000030556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030557$as_echo "$GSEPSDevice" >&6; }
30558fi
30559
30560
30561
30562
30563
30564
30565
30566
30567
30568
30569#
30570# PerlMagick-related configuration
30571#
30572
30573# Look for PERL if PerlMagick requested
30574# If name/path of desired PERL interpreter is specified, look for that one first
30575have_perl='no'
30576if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030578$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030580$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030582$as_echo "" >&6; }
30583 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030585$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030586if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030587 $as_echo_n "(cached) " >&6
30588else
30589 ac_cv_path_PERL="$with_perl"
30590fi
cristy8b350f62009-11-15 23:12:43 +000030591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030592$as_echo "$ac_cv_path_PERL" >&6; };
30593 PERL=$ac_cv_path_PERL
30594 have_perl="$ac_cv_path_PERL"
30595 else
30596 for ac_prog in perl perl5
30597do
30598 # Extract the first word of "$ac_prog", so it can be a program name with args.
30599set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030601$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030602if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030603 $as_echo_n "(cached) " >&6
30604else
30605 case $PERL in
30606 [\\/]* | ?:[\\/]*)
30607 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30608 ;;
30609 *)
30610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30611for as_dir in $PATH
30612do
30613 IFS=$as_save_IFS
30614 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030615 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30617 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030619 break 2
30620 fi
30621done
cristy8b350f62009-11-15 23:12:43 +000030622 done
cristy3ed852e2009-09-05 21:47:34 +000030623IFS=$as_save_IFS
30624
30625 ;;
30626esac
30627fi
30628PERL=$ac_cv_path_PERL
30629if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030631$as_echo "$PERL" >&6; }
30632else
cristy8b350f62009-11-15 23:12:43 +000030633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030634$as_echo "no" >&6; }
30635fi
30636
30637
30638 test -n "$PERL" && break
30639done
30640 if test "$ac_cv_path_PERL"; then
30641 have_perl="$ac_cv_path_PERL"
30642 fi
30643 fi
30644fi
30645
30646with_perl_static='no'
30647with_perl_dynamic='no'
30648if test "$have_perl" != 'no'; then
30649 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
30650 with_perl_static='yes'
30651 fi
30652 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
30653 with_perl_dynamic='yes'
30654 fi
30655 # Is PERL's MakeMaker new enough to support DESTDIR?
30656 # Make sure we have perl
30657if test -z "$PERL"; then
30658# Extract the first word of "perl", so it can be a program name with args.
30659set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030661$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030662if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030663 $as_echo_n "(cached) " >&6
30664else
30665 if test -n "$PERL"; then
30666 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30667else
30668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30669for as_dir in $PATH
30670do
30671 IFS=$as_save_IFS
30672 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30675 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000030676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030677 break 2
30678 fi
30679done
cristy8b350f62009-11-15 23:12:43 +000030680 done
cristy3ed852e2009-09-05 21:47:34 +000030681IFS=$as_save_IFS
30682
30683fi
30684fi
30685PERL=$ac_cv_prog_PERL
30686if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030688$as_echo "$PERL" >&6; }
30689else
cristy8b350f62009-11-15 23:12:43 +000030690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030691$as_echo "no" >&6; }
30692fi
30693
30694
30695fi
30696
30697# Check if version of Perl is sufficient
30698ac_perl_version="5.8.1"
30699
30700if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000030701 { $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 +000030702$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
30703 # NB: It would be nice to log the error if there is one, but we cannot rely
30704 # on autoconf internals
30705 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
30706 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000030707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030708$as_echo "no" >&6; };
30709 PERL_SUPPORTS_DESTDIR='no'
30710 else
cristy8b350f62009-11-15 23:12:43 +000030711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030712$as_echo "ok" >&6; };
30713 PERL_SUPPORTS_DESTDIR='yes'
30714 fi
30715else
cristy8b350f62009-11-15 23:12:43 +000030716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030717$as_echo "$as_me: WARNING: could not find perl" >&2;}
30718fi
30719
30720fi
30721 if test "$have_perl" != 'no'; then
30722 WITH_PERL_TRUE=
30723 WITH_PERL_FALSE='#'
30724else
30725 WITH_PERL_TRUE='#'
30726 WITH_PERL_FALSE=
30727fi
30728
30729 if test $with_perl_static = 'yes'; then
30730 WITH_PERL_STATIC_TRUE=
30731 WITH_PERL_STATIC_FALSE='#'
30732else
30733 WITH_PERL_STATIC_TRUE='#'
30734 WITH_PERL_STATIC_FALSE=
30735fi
30736
30737 if test $with_perl_dynamic = 'yes'; then
30738 WITH_PERL_DYNAMIC_TRUE=
30739 WITH_PERL_DYNAMIC_FALSE='#'
30740else
30741 WITH_PERL_DYNAMIC_TRUE='#'
30742 WITH_PERL_DYNAMIC_FALSE=
30743fi
30744
30745
30746
30747# Determine path to pick up MagickCore library from for use with building PerlMagick
30748MAGICKCORE_PATH="${LIB_DIR}"
30749if test $with_perl_static = 'yes'; then
30750 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
30751 libtool_objdir=$objdir
30752
30753 # Linker search path to library, followed by -lMagickCore
30754 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
30755fi
30756
30757
30758# Create a simple string containing format names for all delegate libraries
30759DELEGATES=''
30760if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
30761if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
30762if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
30763if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
30764if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
30765if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
30766if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
30767if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
30768if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
30769if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
30770if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
30771if test "$have_jpeg" = 'yes'; then
30772 DELEGATES="$DELEGATES jpeg";
30773 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
30774fi
30775if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
30776if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
30777if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
30778if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
30779if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
30780if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
30781if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
30782if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
30783if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
30784if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
30785if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
30786if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
30787
30788
30789
30790#
30791# Handle special compiler flags
30792#
30793
30794# Add '-p' if prof source profiling support enabled
30795if test "$enable_prof" = 'yes'; then
30796 CFLAGS="-p $CFLAGS"
30797 CXXFLAGS="-p $CXXFLAGS"
30798 LDFLAGS="-p $LDFLAGS"
30799fi
30800
30801# Add '-pg' if gprof source profiling support enabled
30802if test "$enable_gprof" = 'yes'; then
30803 CFLAGS="-pg $CFLAGS"
30804 CXXFLAGS="-pg $CXXFLAGS"
30805 LDFLAGS="-pg $LDFLAGS"
30806fi
30807
30808# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
30809# This is a gcc-specific feature
30810if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030812$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030813if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030814 $as_echo_n "(cached) " >&6
30815else
30816 ac_check_lib_save_LIBS=$LIBS
30817LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030819/* end confdefs.h. */
30820
30821/* Override any GCC internal prototype to avoid an error.
30822 Use char because int might match the return type of a GCC
30823 builtin and then its argument prototype would still apply. */
30824#ifdef __cplusplus
30825extern "C"
30826#endif
30827char _gcov_init ();
30828int
30829main ()
30830{
30831return _gcov_init ();
30832 ;
30833 return 0;
30834}
30835_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030836if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030837 ac_cv_lib_gcov__gcov_init=yes
30838else
cristy8b350f62009-11-15 23:12:43 +000030839 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030840fi
cristy8b350f62009-11-15 23:12:43 +000030841rm -f core conftest.err conftest.$ac_objext \
30842 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030843LIBS=$ac_check_lib_save_LIBS
30844fi
cristy8b350f62009-11-15 23:12:43 +000030845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030846$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030847if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030848 cat >>confdefs.h <<_ACEOF
30849#define HAVE_LIBGCOV 1
30850_ACEOF
30851
30852 LIBS="-lgcov $LIBS"
30853
30854fi
30855
cristy8b350f62009-11-15 23:12:43 +000030856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030857$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030858if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030859 $as_echo_n "(cached) " >&6
30860else
30861 ac_check_lib_save_LIBS=$LIBS
30862LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030864/* end confdefs.h. */
30865
30866/* Override any GCC internal prototype to avoid an error.
30867 Use char because int might match the return type of a GCC
30868 builtin and then its argument prototype would still apply. */
30869#ifdef __cplusplus
30870extern "C"
30871#endif
30872char __gcov_init ();
30873int
30874main ()
30875{
30876return __gcov_init ();
30877 ;
30878 return 0;
30879}
30880_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030881if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030882 ac_cv_lib_gcov___gcov_init=yes
30883else
cristy8b350f62009-11-15 23:12:43 +000030884 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030885fi
cristy8b350f62009-11-15 23:12:43 +000030886rm -f core conftest.err conftest.$ac_objext \
30887 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030888LIBS=$ac_check_lib_save_LIBS
30889fi
cristy8b350f62009-11-15 23:12:43 +000030890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030891$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030892if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030893 cat >>confdefs.h <<_ACEOF
30894#define HAVE_LIBGCOV 1
30895_ACEOF
30896
30897 LIBS="-lgcov $LIBS"
30898
30899fi
30900
30901 case "$target_os" in
30902 darwin*)
30903 OSX_GCOV_LDFLAG="-Wl,-single_module"
30904 ;;
30905 *)
30906 OSX_GCOV_LDFLAG=""
30907 ;;
30908 esac
30909
30910 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
30911 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
30912 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
30913fi
30914
30915#
30916# Build library dependency list for libMagickCore
30917#
30918
30919MAGICK_LIBLTDL='' # Libltdl for build
30920MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
30921MAGICK_LTDLDEPS='' # extra libltdl dependencies
30922if test "$with_ltdl" != 'no'
30923then
30924 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
30925 MAGICK_API_LIBLTDL='-lltdl'
30926 fi
30927 MAGICK_LIBLTDL=${LIBLTDL}
30928 MAGICK_LTDLDEPS=${LTDLDEPS}
30929fi
30930
30931
30932
30933if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000030934 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 +000030935else
cristy2e8b51d2009-10-17 18:26:15 +000030936 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 +000030937fi
30938
30939
30940#
30941# Remove extraneous spaces from output variables (asthetic)
30942#
30943X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
30944X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
30945X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
30946X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
30947
30948CC=`echo $CC | sed -e 's/ */ /g'`
30949CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
30950CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
30951CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
30952DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
30953DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
30954LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
30955TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30956MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
30957#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30958
30959# Pass only user-provided LIBS as "global" libraries
30960LIBS=$USER_LIBS
30961
30962#AC_SUBST(CPPFLAGS)
30963
30964#AC_SUBST(LDFLAGS)
30965#AC_SUBST(X_PRE_LIBS)
30966#AC_SUBST(X_LIBS)
30967#AC_SUBST(X_EXTRA_LIBS)
30968
30969MAGICK_CFLAGS=$CFLAGS
30970MAGICK_CXXFLAGS="$CXXFLAGS"
30971MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
30972MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
30973MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
30974MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
30975
30976
30977
30978
30979
30980
30981
30982
30983# Set configured scripts to executable.
30984ac_config_commands="$ac_config_commands default"
30985
30986ac_config_commands="$ac_config_commands MagickCore-config.in"
30987
30988ac_config_commands="$ac_config_commands Magick-config.in"
30989
30990ac_config_commands="$ac_config_commands MagickWand-config.in"
30991
30992ac_config_commands="$ac_config_commands Wand-config.in"
30993
30994ac_config_commands="$ac_config_commands Magick++-config.in"
30995
30996ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
30997
30998
cristy8b350f62009-11-15 23:12:43 +000030999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031000$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000031002$as_echo "Update ImageMagick configuration" >&6; }
31003cat >confcache <<\_ACEOF
31004# This file is a shell script that caches the results of configure
31005# tests run on this system so they can be shared between configure
31006# scripts and configure runs, see configure's option --config-cache.
31007# It is not useful on other systems. If it contains results you don't
31008# want to keep, you may remove or edit it.
31009#
31010# config.status only pays attention to the cache file if you give it
31011# the --recheck option to rerun configure.
31012#
31013# `ac_cv_env_foo' variables (set or unset) will be overridden when
31014# loading this file, other *unset* `ac_cv_foo' will be assigned the
31015# following values.
31016
31017_ACEOF
31018
31019# The following way of writing the cache mishandles newlines in values,
31020# but we know of no workaround that is simple, portable, and efficient.
31021# So, we kill variables containing newlines.
31022# Ultrix sh set writes to stderr and can't be redirected directly,
31023# and sets the high bit in the cache file unless we assign to the vars.
31024(
31025 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31026 eval ac_val=\$$ac_var
31027 case $ac_val in #(
31028 *${as_nl}*)
31029 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000031030 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000031031$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31032 esac
31033 case $ac_var in #(
31034 _ | IFS | as_nl) ;; #(
31035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000031036 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000031037 esac ;;
31038 esac
31039 done
31040
31041 (set) 2>&1 |
31042 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31043 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000031044 # `set' does not quote correctly, so add quotes: double-quote
31045 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000031046 sed -n \
31047 "s/'/'\\\\''/g;
31048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31049 ;; #(
31050 *)
31051 # `set' quotes correctly as required by POSIX, so do not add quotes.
31052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31053 ;;
31054 esac |
31055 sort
31056) |
31057 sed '
31058 /^ac_cv_env_/b end
31059 t clear
31060 :clear
31061 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31062 t end
31063 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31064 :end' >>confcache
31065if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31066 if test -w "$cache_file"; then
31067 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000031068 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031069$as_echo "$as_me: updating cache $cache_file" >&6;}
31070 cat confcache >$cache_file
31071 else
cristy8b350f62009-11-15 23:12:43 +000031072 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031073$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31074 fi
31075fi
31076rm -f confcache
31077
31078test "x$prefix" = xNONE && prefix=$ac_default_prefix
31079# Let make expand exec_prefix.
31080test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31081
31082DEFS=-DHAVE_CONFIG_H
31083
31084ac_libobjs=
31085ac_ltlibobjs=
31086for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31087 # 1. Remove the extension, and $U if already installed.
31088 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31089 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31090 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31091 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000031092 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31093 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000031094done
31095LIBOBJS=$ac_libobjs
31096
31097LTLIBOBJS=$ac_ltlibobjs
31098
31099
31100 if test -n "$EXEEXT"; then
31101 am__EXEEXT_TRUE=
31102 am__EXEEXT_FALSE='#'
31103else
31104 am__EXEEXT_TRUE='#'
31105 am__EXEEXT_FALSE=
31106fi
31107
31108if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031109 as_fn_error "conditional \"AMDEP\" was never defined.
31110Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031111fi
31112if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031113 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31114Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031115fi
31116if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031117 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31118Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031119fi
31120if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031121 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
31122Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031123fi
31124if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031125 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
31126Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031127fi
31128if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031129 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
31130Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031131fi
31132if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031133 as_fn_error "conditional \"USING_CL\" was never defined.
31134Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031135fi
cristy18304f92009-11-22 15:48:26 +000031136if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31137 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31138Usually this means the macro was only invoked conditionally." "$LINENO" 5
31139fi
cristy3ed852e2009-09-05 21:47:34 +000031140if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031141 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
31142Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031143fi
31144if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031145 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
31146Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031147fi
31148LT_CONFIG_H=config/config.h
31149
31150 _ltdl_libobjs=
31151 _ltdl_ltlibobjs=
31152 if test -n "$_LT_LIBOBJS"; then
31153 # Remove the extension.
31154 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
31155 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
31156 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
31157 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
31158 done
31159 fi
31160 ltdl_LIBOBJS=$_ltdl_libobjs
31161
31162 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
31163
31164
31165if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031166 as_fn_error "conditional \"WITH_MODULES\" was never defined.
31167Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031168fi
31169if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031170 as_fn_error "conditional \"WITH_LTDL\" was never defined.
31171Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031172fi
31173if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031174 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
31175Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031176fi
31177
31178if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031179 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31180Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031181fi
31182if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031183 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
31184Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031185fi
31186if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031187 as_fn_error "conditional \"HasUMEM\" was never defined.
31188Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031189fi
31190if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031191 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
31192Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031193fi
31194if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031195 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
31196Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031197fi
31198if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031199 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
31200Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031201fi
31202if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031203 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
31204Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031205fi
31206if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031207 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
31208Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031209fi
31210if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031211 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
31212Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031213fi
31214if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031215 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
31216Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031217fi
31218if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031219 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
31220Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031221fi
31222if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031223 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
31224Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031225fi
31226if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031227 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
31228Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031229fi
31230if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031231 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
31232Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031233fi
31234if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031235 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
31236Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031237fi
31238if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031239 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
31240Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031241fi
31242if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031243 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
31244Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031245fi
31246if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031247 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
31248Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031249fi
31250if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031251 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
31252Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031253fi
31254if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031255 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
31256Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031257fi
31258if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031259 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
31260Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031261fi
31262if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031263 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
31264Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031265fi
31266if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031267 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
31268Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031269fi
31270if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031271 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
31272Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031273fi
31274if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031275 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
31276Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031277fi
31278if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031279 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
31280Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031281fi
31282if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031283 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
31284Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031285fi
31286if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031287 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
31288Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031289fi
31290if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031291 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
31292Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031293fi
31294if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031295 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
31296Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031297fi
31298if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031299 as_fn_error "conditional \"WITH_PERL\" was never defined.
31300Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031301fi
31302if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031303 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
31304Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031305fi
31306if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031307 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
31308Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031309fi
31310
31311: ${CONFIG_STATUS=./config.status}
31312ac_write_fail=0
31313ac_clean_files_save=$ac_clean_files
31314ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000031315{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031316$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031317as_write_fail=0
31318cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031319#! $SHELL
31320# Generated by $as_me.
31321# Run this file to recreate the current configuration.
31322# Compiler output produced by configure, useful for debugging
31323# configure, is in config.log if it exists.
31324
31325debug=false
31326ac_cs_recheck=false
31327ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000031328
cristy8b350f62009-11-15 23:12:43 +000031329SHELL=\${CONFIG_SHELL-$SHELL}
31330export SHELL
31331_ASEOF
31332cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31333## -------------------- ##
31334## M4sh Initialization. ##
31335## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000031336
31337# Be more Bourne compatible
31338DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000031339if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000031340 emulate sh
31341 NULLCMD=:
31342 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31343 # is contrary to our usage. Disable this feature.
31344 alias -g '${1+"$@"}'='"$@"'
31345 setopt NO_GLOB_SUBST
31346else
cristy8b350f62009-11-15 23:12:43 +000031347 case `(set -o) 2>/dev/null` in #(
31348 *posix*) :
31349 set -o posix ;; #(
31350 *) :
31351 ;;
cristy3ed852e2009-09-05 21:47:34 +000031352esac
cristy3ed852e2009-09-05 21:47:34 +000031353fi
31354
31355
cristy3ed852e2009-09-05 21:47:34 +000031356as_nl='
31357'
31358export as_nl
31359# Printing a long string crashes Solaris 7 /usr/bin/printf.
31360as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31361as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31362as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000031363# Prefer a ksh shell builtin over an external printf program on Solaris,
31364# but without wasting forks for bash or zsh.
31365if test -z "$BASH_VERSION$ZSH_VERSION" \
31366 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31367 as_echo='print -r --'
31368 as_echo_n='print -rn --'
31369elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000031370 as_echo='printf %s\n'
31371 as_echo_n='printf %s'
31372else
31373 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31374 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31375 as_echo_n='/usr/ucb/echo -n'
31376 else
31377 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31378 as_echo_n_body='eval
31379 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000031380 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000031381 *"$as_nl"*)
31382 expr "X$arg" : "X\\(.*\\)$as_nl";
31383 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31384 esac;
31385 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31386 '
31387 export as_echo_n_body
31388 as_echo_n='sh -c $as_echo_n_body as_echo'
31389 fi
31390 export as_echo_body
31391 as_echo='sh -c $as_echo_body as_echo'
31392fi
31393
31394# The user is always right.
31395if test "${PATH_SEPARATOR+set}" != set; then
31396 PATH_SEPARATOR=:
31397 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31398 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31399 PATH_SEPARATOR=';'
31400 }
31401fi
31402
cristy3ed852e2009-09-05 21:47:34 +000031403
31404# IFS
31405# We need space, tab and new line, in precisely that order. Quoting is
31406# there to prevent editors from complaining about space-tab.
31407# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31408# splitting by setting IFS to empty value.)
31409IFS=" "" $as_nl"
31410
31411# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000031412case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000031413 *[\\/]* ) as_myself=$0 ;;
31414 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31415for as_dir in $PATH
31416do
31417 IFS=$as_save_IFS
31418 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031419 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31420 done
cristy3ed852e2009-09-05 21:47:34 +000031421IFS=$as_save_IFS
31422
31423 ;;
31424esac
31425# We did not find ourselves, most probably we were run as `sh COMMAND'
31426# in which case we are not to be found in the path.
31427if test "x$as_myself" = x; then
31428 as_myself=$0
31429fi
31430if test ! -f "$as_myself"; then
31431 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000031432 exit 1
cristy3ed852e2009-09-05 21:47:34 +000031433fi
31434
cristy8b350f62009-11-15 23:12:43 +000031435# Unset variables that we do not need and which cause bugs (e.g. in
31436# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31437# suppresses any "Segmentation fault" message there. '((' could
31438# trigger a bug in pdksh 5.2.14.
31439for as_var in BASH_ENV ENV MAIL MAILPATH
31440do eval test x\${$as_var+set} = xset \
31441 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000031442done
31443PS1='$ '
31444PS2='> '
31445PS4='+ '
31446
31447# NLS nuisances.
31448LC_ALL=C
31449export LC_ALL
31450LANGUAGE=C
31451export LANGUAGE
31452
cristy8b350f62009-11-15 23:12:43 +000031453# CDPATH.
31454(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31455
31456
31457# as_fn_error ERROR [LINENO LOG_FD]
31458# ---------------------------------
31459# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31460# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31461# script with status $?, using 1 if that was 0.
31462as_fn_error ()
31463{
31464 as_status=$?; test $as_status -eq 0 && as_status=1
31465 if test "$3"; then
31466 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31467 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
31468 fi
31469 $as_echo "$as_me: error: $1" >&2
31470 as_fn_exit $as_status
31471} # as_fn_error
31472
31473
31474# as_fn_set_status STATUS
31475# -----------------------
31476# Set $? to STATUS, without forking.
31477as_fn_set_status ()
31478{
31479 return $1
31480} # as_fn_set_status
31481
31482# as_fn_exit STATUS
31483# -----------------
31484# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31485as_fn_exit ()
31486{
31487 set +e
31488 as_fn_set_status $1
31489 exit $1
31490} # as_fn_exit
31491
31492# as_fn_unset VAR
31493# ---------------
31494# Portably unset VAR.
31495as_fn_unset ()
31496{
31497 { eval $1=; unset $1;}
31498}
31499as_unset=as_fn_unset
31500# as_fn_append VAR VALUE
31501# ----------------------
31502# Append the text in VALUE to the end of the definition contained in VAR. Take
31503# advantage of any shell optimizations that allow amortized linear growth over
31504# repeated appends, instead of the typical quadratic growth present in naive
31505# implementations.
31506if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31507 eval 'as_fn_append ()
31508 {
31509 eval $1+=\$2
31510 }'
31511else
31512 as_fn_append ()
31513 {
31514 eval $1=\$$1\$2
31515 }
31516fi # as_fn_append
31517
31518# as_fn_arith ARG...
31519# ------------------
31520# Perform arithmetic evaluation on the ARGs, and store the result in the
31521# global $as_val. Take advantage of shells that can avoid forks. The arguments
31522# must be portable across $(()) and expr.
31523if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31524 eval 'as_fn_arith ()
31525 {
31526 as_val=$(( $* ))
31527 }'
31528else
31529 as_fn_arith ()
31530 {
31531 as_val=`expr "$@" || test $? -eq 1`
31532 }
31533fi # as_fn_arith
31534
31535
cristy3ed852e2009-09-05 21:47:34 +000031536if expr a : '\(a\)' >/dev/null 2>&1 &&
31537 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31538 as_expr=expr
31539else
31540 as_expr=false
31541fi
31542
31543if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31544 as_basename=basename
31545else
31546 as_basename=false
31547fi
31548
cristy8b350f62009-11-15 23:12:43 +000031549if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31550 as_dirname=dirname
31551else
31552 as_dirname=false
31553fi
cristy3ed852e2009-09-05 21:47:34 +000031554
cristy3ed852e2009-09-05 21:47:34 +000031555as_me=`$as_basename -- "$0" ||
31556$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31557 X"$0" : 'X\(//\)$' \| \
31558 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31559$as_echo X/"$0" |
31560 sed '/^.*\/\([^/][^/]*\)\/*$/{
31561 s//\1/
31562 q
31563 }
31564 /^X\/\(\/\/\)$/{
31565 s//\1/
31566 q
31567 }
31568 /^X\/\(\/\).*/{
31569 s//\1/
31570 q
31571 }
31572 s/.*/./; q'`
31573
cristy8b350f62009-11-15 23:12:43 +000031574# Avoid depending upon Character Ranges.
31575as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31576as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31577as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31578as_cr_digits='0123456789'
31579as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000031580
31581ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000031582case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000031583-n*)
cristy8b350f62009-11-15 23:12:43 +000031584 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000031585 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000031586 xy) ECHO_C='\c';;
31587 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31588 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000031589 esac;;
31590*)
31591 ECHO_N='-n';;
31592esac
cristy3ed852e2009-09-05 21:47:34 +000031593
31594rm -f conf$$ conf$$.exe conf$$.file
31595if test -d conf$$.dir; then
31596 rm -f conf$$.dir/conf$$.file
31597else
31598 rm -f conf$$.dir
31599 mkdir conf$$.dir 2>/dev/null
31600fi
31601if (echo >conf$$.file) 2>/dev/null; then
31602 if ln -s conf$$.file conf$$ 2>/dev/null; then
31603 as_ln_s='ln -s'
31604 # ... but there are two gotchas:
31605 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31606 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31607 # In both cases, we have to default to `cp -p'.
31608 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31609 as_ln_s='cp -p'
31610 elif ln conf$$.file conf$$ 2>/dev/null; then
31611 as_ln_s=ln
31612 else
31613 as_ln_s='cp -p'
31614 fi
31615else
31616 as_ln_s='cp -p'
31617fi
31618rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31619rmdir conf$$.dir 2>/dev/null
31620
cristy8b350f62009-11-15 23:12:43 +000031621
31622# as_fn_mkdir_p
31623# -------------
31624# Create "$as_dir" as a directory, including parents if necessary.
31625as_fn_mkdir_p ()
31626{
31627
31628 case $as_dir in #(
31629 -*) as_dir=./$as_dir;;
31630 esac
31631 test -d "$as_dir" || eval $as_mkdir_p || {
31632 as_dirs=
31633 while :; do
31634 case $as_dir in #(
31635 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31636 *) as_qdir=$as_dir;;
31637 esac
31638 as_dirs="'$as_qdir' $as_dirs"
31639 as_dir=`$as_dirname -- "$as_dir" ||
31640$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31641 X"$as_dir" : 'X\(//\)[^/]' \| \
31642 X"$as_dir" : 'X\(//\)$' \| \
31643 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31644$as_echo X"$as_dir" |
31645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31646 s//\1/
31647 q
31648 }
31649 /^X\(\/\/\)[^/].*/{
31650 s//\1/
31651 q
31652 }
31653 /^X\(\/\/\)$/{
31654 s//\1/
31655 q
31656 }
31657 /^X\(\/\).*/{
31658 s//\1/
31659 q
31660 }
31661 s/.*/./; q'`
31662 test -d "$as_dir" && break
31663 done
31664 test -z "$as_dirs" || eval "mkdir $as_dirs"
31665 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
31666
31667
31668} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000031669if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000031670 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000031671else
31672 test -d ./-p && rmdir ./-p
31673 as_mkdir_p=false
31674fi
31675
31676if test -x / >/dev/null 2>&1; then
31677 as_test_x='test -x'
31678else
31679 if ls -dL / >/dev/null 2>&1; then
31680 as_ls_L_option=L
31681 else
31682 as_ls_L_option=
31683 fi
31684 as_test_x='
31685 eval sh -c '\''
31686 if test -d "$1"; then
31687 test -d "$1/.";
31688 else
cristy8b350f62009-11-15 23:12:43 +000031689 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000031690 -*)set "./$1";;
31691 esac;
cristy8b350f62009-11-15 23:12:43 +000031692 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000031693 ???[sx]*):;;*)false;;esac;fi
31694 '\'' sh
31695 '
31696fi
31697as_executable_p=$as_test_x
31698
31699# Sed expression to map a string onto a valid CPP name.
31700as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31701
31702# Sed expression to map a string onto a valid variable name.
31703as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31704
31705
31706exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000031707## ----------------------------------- ##
31708## Main body of $CONFIG_STATUS script. ##
31709## ----------------------------------- ##
31710_ASEOF
31711test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031712
cristy8b350f62009-11-15 23:12:43 +000031713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31714# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000031715# report actual input values of CONFIG_FILES etc. instead of their
31716# values after options handling.
31717ac_log="
cristy89effd22009-11-24 20:56:45 +000031718This file was extended by ImageMagick $as_me 6.5.8, which was
cristycd4c5312009-11-22 01:19:08 +000031719generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000031720
31721 CONFIG_FILES = $CONFIG_FILES
31722 CONFIG_HEADERS = $CONFIG_HEADERS
31723 CONFIG_LINKS = $CONFIG_LINKS
31724 CONFIG_COMMANDS = $CONFIG_COMMANDS
31725 $ $0 $@
31726
31727on `(hostname || uname -n) 2>/dev/null | sed 1q`
31728"
31729
31730_ACEOF
31731
31732case $ac_config_files in *"
31733"*) set x $ac_config_files; shift; ac_config_files=$*;;
31734esac
31735
31736case $ac_config_headers in *"
31737"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31738esac
31739
31740
31741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31742# Files that config.status was made for.
31743config_files="$ac_config_files"
31744config_headers="$ac_config_headers"
31745config_commands="$ac_config_commands"
31746
31747_ACEOF
31748
31749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31750ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000031751\`$as_me' instantiates files and other configuration actions
31752from templates according to the current configuration. Unless the files
31753and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000031754
cristy8b350f62009-11-15 23:12:43 +000031755Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000031756
31757 -h, --help print this help, then exit
31758 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000031759 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000031760 -q, --quiet, --silent
31761 do not print progress messages
31762 -d, --debug don't remove temporary files
31763 --recheck update $as_me by reconfiguring in the same conditions
31764 --file=FILE[:TEMPLATE]
31765 instantiate the configuration file FILE
31766 --header=FILE[:TEMPLATE]
31767 instantiate the configuration header FILE
31768
31769Configuration files:
31770$config_files
31771
31772Configuration headers:
31773$config_headers
31774
31775Configuration commands:
31776$config_commands
31777
cristy8b350f62009-11-15 23:12:43 +000031778Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000031779
31780_ACEOF
31781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000031782ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000031783ac_cs_version="\\
cristy89effd22009-11-24 20:56:45 +000031784ImageMagick config.status 6.5.8
cristycd4c5312009-11-22 01:19:08 +000031785configured by $0, generated by GNU Autoconf 2.65,
31786 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000031787
cristy8b350f62009-11-15 23:12:43 +000031788Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000031789This config.status script is free software; the Free Software Foundation
31790gives unlimited permission to copy, distribute and modify it."
31791
31792ac_pwd='$ac_pwd'
31793srcdir='$srcdir'
31794INSTALL='$INSTALL'
31795MKDIR_P='$MKDIR_P'
31796AWK='$AWK'
31797test -n "\$AWK" || AWK=awk
31798_ACEOF
31799
31800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31801# The default lists apply if the user does not specify any file.
31802ac_need_defaults=:
31803while test $# != 0
31804do
31805 case $1 in
31806 --*=*)
31807 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31808 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31809 ac_shift=:
31810 ;;
31811 *)
31812 ac_option=$1
31813 ac_optarg=$2
31814 ac_shift=shift
31815 ;;
31816 esac
31817
31818 case $ac_option in
31819 # Handling of the options.
31820 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31821 ac_cs_recheck=: ;;
31822 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31823 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000031824 --config | --confi | --conf | --con | --co | --c )
31825 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000031826 --debug | --debu | --deb | --de | --d | -d )
31827 debug=: ;;
31828 --file | --fil | --fi | --f )
31829 $ac_shift
31830 case $ac_optarg in
31831 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31832 esac
cristy8b350f62009-11-15 23:12:43 +000031833 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031834 ac_need_defaults=false;;
31835 --header | --heade | --head | --hea )
31836 $ac_shift
31837 case $ac_optarg in
31838 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31839 esac
cristy8b350f62009-11-15 23:12:43 +000031840 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031841 ac_need_defaults=false;;
31842 --he | --h)
31843 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000031844 as_fn_error "ambiguous option: \`$1'
31845Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000031846 --help | --hel | -h )
31847 $as_echo "$ac_cs_usage"; exit ;;
31848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31849 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31850 ac_cs_silent=: ;;
31851
31852 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000031853 -*) as_fn_error "unrecognized option: \`$1'
31854Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000031855
cristy8b350f62009-11-15 23:12:43 +000031856 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000031857 ac_need_defaults=false ;;
31858
31859 esac
31860 shift
31861done
31862
31863ac_configure_extra_args=
31864
31865if $ac_cs_silent; then
31866 exec 6>/dev/null
31867 ac_configure_extra_args="$ac_configure_extra_args --silent"
31868fi
31869
31870_ACEOF
31871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31872if \$ac_cs_recheck; then
31873 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31874 shift
31875 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31876 CONFIG_SHELL='$SHELL'
31877 export CONFIG_SHELL
31878 exec "\$@"
31879fi
31880
31881_ACEOF
31882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31883exec 5>>config.log
31884{
31885 echo
31886 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31887## Running $as_me. ##
31888_ASBOX
31889 $as_echo "$ac_log"
31890} >&5
31891
31892_ACEOF
31893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31894#
31895# INIT-COMMANDS
31896#
31897PACKAGE="$PACKAGE"
31898AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31899
31900
31901# The HP-UX ksh and POSIX shell print the target directory to stdout
31902# if CDPATH is set.
31903(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31904
31905sed_quote_subst='$sed_quote_subst'
31906double_quote_subst='$double_quote_subst'
31907delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000031908SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
31909Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
31910GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
31911EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
31912FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
31913LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
31914macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
31915macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
31916AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
31917DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31918OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
31919enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
31920enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
31921pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
31922enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
31923host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
31924host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
31925host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
31926build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
31927build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
31928build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
31929NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
31930LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
31931max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
31932ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
31933exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
31934lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
31935lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
31936lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
31937reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
31938reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31939deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
31940file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
31941AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
31942AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31943STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
31944RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
31945old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31946old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31947old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31948CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
31949CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31950compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
31951GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
31952lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
31953lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
31954lt_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"`'
31955lt_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"`'
31956objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
31957SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
31958ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
31959MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
31960lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
31961lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
31962lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
31963lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
31964lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
31965need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
31966DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
31967NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
31968LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
31969OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31970OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
31971libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
31972shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31973extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31974archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
31975enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
31976export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31977whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31978compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
31979old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31980old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31981archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31982archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31983module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31984module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31985with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
31986allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31987no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31988hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31989hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
31990hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
31991hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
31992hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
31993hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
31994hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31995hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
31996inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
31997link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
31998fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
31999always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
32000export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32001exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32002include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32003prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32004file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
32005variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
32006need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32007need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
32008version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
32009runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32010shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32011shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
32012libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32013library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
32014soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32015postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32016postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32017finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32018finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
32019hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
32020sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32021sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32022hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
32023enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
32024enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
32025enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
32026old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
32027striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
32028compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
32029predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32030postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32031predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
32032postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
32033compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
32034LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32035old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32036compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32037GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32038lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32039lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32040lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32041lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32042lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32043archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32044enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32045export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32046whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32047compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32048old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32049old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32050archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32051archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32052module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32053module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32054with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32055allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32056no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32057hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32058hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32059hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32060hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32061hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32062hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32063hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32064hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32065inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32066link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32067fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32068always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32069export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32070exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32071include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32072prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32073file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32074hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32075compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32076predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32077postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32078predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32079postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32080compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000032081
32082LTCC='$LTCC'
32083LTCFLAGS='$LTCFLAGS'
32084compiler='$compiler_DEFAULT'
32085
32086# Quote evaled strings.
32087for var in SED \
32088GREP \
32089EGREP \
32090FGREP \
32091LD \
32092NM \
32093LN_S \
32094lt_SP2NL \
32095lt_NL2SP \
32096reload_flag \
32097deplibs_check_method \
32098file_magic_cmd \
32099AR \
32100AR_FLAGS \
32101STRIP \
32102RANLIB \
32103CC \
32104CFLAGS \
32105compiler \
32106lt_cv_sys_global_symbol_pipe \
32107lt_cv_sys_global_symbol_to_cdecl \
32108lt_cv_sys_global_symbol_to_c_name_address \
32109lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000032110SHELL \
32111ECHO \
cristy3ed852e2009-09-05 21:47:34 +000032112lt_prog_compiler_no_builtin_flag \
32113lt_prog_compiler_wl \
32114lt_prog_compiler_pic \
32115lt_prog_compiler_static \
32116lt_cv_prog_compiler_c_o \
32117need_locks \
32118DSYMUTIL \
32119NMEDIT \
32120LIPO \
32121OTOOL \
32122OTOOL64 \
32123shrext_cmds \
32124export_dynamic_flag_spec \
32125whole_archive_flag_spec \
32126compiler_needs_object \
32127with_gnu_ld \
32128allow_undefined_flag \
32129no_undefined_flag \
32130hardcode_libdir_flag_spec \
32131hardcode_libdir_flag_spec_ld \
32132hardcode_libdir_separator \
32133fix_srcfile_path \
32134exclude_expsyms \
32135include_expsyms \
32136file_list_spec \
32137variables_saved_for_relink \
32138libname_spec \
32139library_names_spec \
32140soname_spec \
32141finish_eval \
32142old_striplib \
32143striplib \
32144compiler_lib_search_dirs \
32145predep_objects \
32146postdep_objects \
32147predeps \
32148postdeps \
32149compiler_lib_search_path \
32150LD_CXX \
32151compiler_CXX \
32152lt_prog_compiler_no_builtin_flag_CXX \
32153lt_prog_compiler_wl_CXX \
32154lt_prog_compiler_pic_CXX \
32155lt_prog_compiler_static_CXX \
32156lt_cv_prog_compiler_c_o_CXX \
32157export_dynamic_flag_spec_CXX \
32158whole_archive_flag_spec_CXX \
32159compiler_needs_object_CXX \
32160with_gnu_ld_CXX \
32161allow_undefined_flag_CXX \
32162no_undefined_flag_CXX \
32163hardcode_libdir_flag_spec_CXX \
32164hardcode_libdir_flag_spec_ld_CXX \
32165hardcode_libdir_separator_CXX \
32166fix_srcfile_path_CXX \
32167exclude_expsyms_CXX \
32168include_expsyms_CXX \
32169file_list_spec_CXX \
32170compiler_lib_search_dirs_CXX \
32171predep_objects_CXX \
32172postdep_objects_CXX \
32173predeps_CXX \
32174postdeps_CXX \
32175compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000032176 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032177 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032178 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000032179 ;;
32180 *)
32181 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32182 ;;
32183 esac
32184done
32185
32186# Double-quote double-evaled strings.
32187for var in reload_cmds \
32188old_postinstall_cmds \
32189old_postuninstall_cmds \
32190old_archive_cmds \
32191extract_expsyms_cmds \
32192old_archive_from_new_cmds \
32193old_archive_from_expsyms_cmds \
32194archive_cmds \
32195archive_expsym_cmds \
32196module_cmds \
32197module_expsym_cmds \
32198export_symbols_cmds \
32199prelink_cmds \
32200postinstall_cmds \
32201postuninstall_cmds \
32202finish_cmds \
32203sys_lib_search_path_spec \
32204sys_lib_dlsearch_path_spec \
32205old_archive_cmds_CXX \
32206old_archive_from_new_cmds_CXX \
32207old_archive_from_expsyms_cmds_CXX \
32208archive_cmds_CXX \
32209archive_expsym_cmds_CXX \
32210module_cmds_CXX \
32211module_expsym_cmds_CXX \
32212export_symbols_cmds_CXX \
32213prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000032214 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032215 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032216 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 +000032217 ;;
32218 *)
32219 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32220 ;;
32221 esac
32222done
32223
cristy18304f92009-11-22 15:48:26 +000032224# Fix-up fallback echo if it was mangled by the above quoting rules.
32225case \$lt_ECHO in
32226*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
32227 ;;
32228esac
32229
cristy3ed852e2009-09-05 21:47:34 +000032230ac_aux_dir='$ac_aux_dir'
32231xsi_shell='$xsi_shell'
32232lt_shell_append='$lt_shell_append'
32233
32234# See if we are running on zsh, and set the options which allow our
32235# commands through without removal of \ escapes INIT.
32236if test -n "\${ZSH_VERSION+set}" ; then
32237 setopt NO_GLOB_SUBST
32238fi
32239
32240
32241 PACKAGE='$PACKAGE'
32242 VERSION='$VERSION'
32243 TIMESTAMP='$TIMESTAMP'
32244 RM='$RM'
32245 ofile='$ofile'
32246
32247
32248
32249
32250
32251
32252_ACEOF
32253
32254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32255
32256# Handling of arguments.
32257for ac_config_target in $ac_config_targets
32258do
32259 case $ac_config_target in
32260 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32261 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32262 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32263 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32264 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32265 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32266 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
32267 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32268 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
32269 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
32270 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
32271 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
32272 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
32273 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
32274 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
32275 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
32276 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
32277 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
32278 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
32279 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32280 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
32281 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
32282 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
32283 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
32284 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
32285 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
32286 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
32287 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
32288 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
32289 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
32290 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
32291 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
32292 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
32293 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
32294 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
32295 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
32296 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
32297 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
32298 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
32299 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
32300 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32301 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32302 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32303 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
32304 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
32305 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
32306 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
32307 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
32308 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
32309
cristy8b350f62009-11-15 23:12:43 +000032310 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032311 esac
32312done
32313
32314
32315# If the user did not use the arguments to specify the items to instantiate,
32316# then the envvar interface is used. Set only those that are not.
32317# We use the long form for the default assignment because of an extremely
32318# bizarre bug on SunOS 4.1.3.
32319if $ac_need_defaults; then
32320 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32321 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32322 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32323fi
32324
32325# Have a temporary directory for convenience. Make it in the build tree
32326# simply because there is no reason against having it here, and in addition,
32327# creating and moving files from /tmp can sometimes cause problems.
32328# Hook for its removal unless debugging.
32329# Note that there is a small window in which the directory will not be cleaned:
32330# after its creation but before its name has been assigned to `$tmp'.
32331$debug ||
32332{
32333 tmp=
32334 trap 'exit_status=$?
32335 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32336' 0
cristy8b350f62009-11-15 23:12:43 +000032337 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000032338}
32339# Create a (secure) tmp directory for tmp files.
32340
32341{
32342 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32343 test -n "$tmp" && test -d "$tmp"
32344} ||
32345{
32346 tmp=./conf$$-$RANDOM
32347 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000032348} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032349
32350# Set up the scripts for CONFIG_FILES section.
32351# No need to generate them if there are no CONFIG_FILES.
32352# This happens for instance with `./config.status config.h'.
32353if test -n "$CONFIG_FILES"; then
32354
32355
cristy8b350f62009-11-15 23:12:43 +000032356ac_cr=`echo X | tr X '\015'`
32357# On cygwin, bash can eat \r inside `` if the user requested igncr.
32358# But we know of no other shell where ac_cr would be empty at this
32359# point, so we can use a bashism as a fallback.
32360if test "x$ac_cr" = x; then
32361 eval ac_cr=\$\'\\r\'
32362fi
cristy3ed852e2009-09-05 21:47:34 +000032363ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32364if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000032365 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000032366else
32367 ac_cs_awk_cr=$ac_cr
32368fi
32369
32370echo 'BEGIN {' >"$tmp/subs1.awk" &&
32371_ACEOF
32372
32373
32374{
32375 echo "cat >conf$$subs.awk <<_ACEOF" &&
32376 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32377 echo "_ACEOF"
32378} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032379 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032380ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32381ac_delim='%!_!# '
32382for ac_last_try in false false false false false :; do
32383 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032384 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032385
32386 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32387 if test $ac_delim_n = $ac_delim_num; then
32388 break
32389 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032390 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032391 else
32392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32393 fi
32394done
32395rm -f conf$$subs.sh
32396
32397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32398cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32399_ACEOF
32400sed -n '
32401h
32402s/^/S["/; s/!.*/"]=/
32403p
32404g
32405s/^[^!]*!//
32406:repl
32407t repl
32408s/'"$ac_delim"'$//
32409t delim
32410:nl
32411h
cristycd4c5312009-11-22 01:19:08 +000032412s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032413t more1
32414s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32415p
32416n
32417b repl
32418:more1
32419s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32420p
32421g
32422s/.\{148\}//
32423t nl
32424:delim
32425h
cristycd4c5312009-11-22 01:19:08 +000032426s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032427t more2
32428s/["\\]/\\&/g; s/^/"/; s/$/"/
32429p
32430b
32431:more2
32432s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32433p
32434g
32435s/.\{148\}//
32436t delim
32437' <conf$$subs.awk | sed '
32438/^[^""]/{
32439 N
32440 s/\n//
32441}
32442' >>$CONFIG_STATUS || ac_write_fail=1
32443rm -f conf$$subs.awk
32444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32445_ACAWK
32446cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32447 for (key in S) S_is_set[key] = 1
32448 FS = ""
32449
32450}
32451{
32452 line = $ 0
32453 nfields = split(line, field, "@")
32454 substed = 0
32455 len = length(field[1])
32456 for (i = 2; i < nfields; i++) {
32457 key = field[i]
32458 keylen = length(key)
32459 if (S_is_set[key]) {
32460 value = S[key]
32461 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32462 len += length(value) + length(field[++i])
32463 substed = 1
32464 } else
32465 len += 1 + keylen
32466 }
32467
32468 print line
32469}
32470
32471_ACAWK
32472_ACEOF
32473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32474if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32475 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32476else
32477 cat
32478fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000032479 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032480_ACEOF
32481
32482# VPATH may cause trouble with some makes, so we remove $(srcdir),
32483# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32484# trailing colons and then remove the whole line if VPATH becomes empty
32485# (actually we leave an empty line to preserve line numbers).
32486if test "x$srcdir" = x.; then
32487 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32488s/:*\$(srcdir):*/:/
32489s/:*\${srcdir}:*/:/
32490s/:*@srcdir@:*/:/
32491s/^\([^=]*=[ ]*\):*/\1/
32492s/:*$//
32493s/^[^=]*=[ ]*$//
32494}'
32495fi
32496
32497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32498fi # test -n "$CONFIG_FILES"
32499
32500# Set up the scripts for CONFIG_HEADERS section.
32501# No need to generate them if there are no CONFIG_HEADERS.
32502# This happens for instance with `./config.status Makefile'.
32503if test -n "$CONFIG_HEADERS"; then
32504cat >"$tmp/defines.awk" <<\_ACAWK ||
32505BEGIN {
32506_ACEOF
32507
32508# Transform confdefs.h into an awk script `defines.awk', embedded as
32509# here-document in config.status, that substitutes the proper values into
32510# config.h.in to produce config.h.
32511
32512# Create a delimiter string that does not exist in confdefs.h, to ease
32513# handling of long lines.
32514ac_delim='%!_!# '
32515for ac_last_try in false false :; do
32516 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32517 if test -z "$ac_t"; then
32518 break
32519 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032520 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032521 else
32522 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32523 fi
32524done
32525
32526# For the awk script, D is an array of macro values keyed by name,
32527# likewise P contains macro parameters if any. Preserve backslash
32528# newline sequences.
32529
32530ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32531sed -n '
32532s/.\{148\}/&'"$ac_delim"'/g
32533t rset
32534:rset
32535s/^[ ]*#[ ]*define[ ][ ]*/ /
32536t def
32537d
32538:def
32539s/\\$//
32540t bsnl
32541s/["\\]/\\&/g
32542s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32543D["\1"]=" \3"/p
32544s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32545d
32546:bsnl
32547s/["\\]/\\&/g
32548s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32549D["\1"]=" \3\\\\\\n"\\/p
32550t cont
32551s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32552t cont
32553d
32554:cont
32555n
32556s/.\{148\}/&'"$ac_delim"'/g
32557t clear
32558:clear
32559s/\\$//
32560t bsnlc
32561s/["\\]/\\&/g; s/^/"/; s/$/"/p
32562d
32563:bsnlc
32564s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32565b cont
32566' <confdefs.h | sed '
32567s/'"$ac_delim"'/"\\\
32568"/g' >>$CONFIG_STATUS || ac_write_fail=1
32569
32570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32571 for (key in D) D_is_set[key] = 1
32572 FS = ""
32573}
32574/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32575 line = \$ 0
32576 split(line, arg, " ")
32577 if (arg[1] == "#") {
32578 defundef = arg[2]
32579 mac1 = arg[3]
32580 } else {
32581 defundef = substr(arg[1], 2)
32582 mac1 = arg[2]
32583 }
32584 split(mac1, mac2, "(") #)
32585 macro = mac2[1]
32586 prefix = substr(line, 1, index(line, defundef) - 1)
32587 if (D_is_set[macro]) {
32588 # Preserve the white space surrounding the "#".
32589 print prefix "define", macro P[macro] D[macro]
32590 next
32591 } else {
32592 # Replace #undef with comments. This is necessary, for example,
32593 # in the case of _POSIX_SOURCE, which is predefined and required
32594 # on some systems where configure will not decide to define it.
32595 if (defundef == "undef") {
32596 print "/*", prefix defundef, macro, "*/"
32597 next
32598 }
32599 }
32600}
32601{ print }
32602_ACAWK
32603_ACEOF
32604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000032605 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032606fi # test -n "$CONFIG_HEADERS"
32607
32608
32609eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32610shift
32611for ac_tag
32612do
32613 case $ac_tag in
32614 :[FHLC]) ac_mode=$ac_tag; continue;;
32615 esac
32616 case $ac_mode$ac_tag in
32617 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000032618 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032619 :[FH]-) ac_tag=-:-;;
32620 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32621 esac
32622 ac_save_IFS=$IFS
32623 IFS=:
32624 set x $ac_tag
32625 IFS=$ac_save_IFS
32626 shift
32627 ac_file=$1
32628 shift
32629
32630 case $ac_mode in
32631 :L) ac_source=$1;;
32632 :[FH])
32633 ac_file_inputs=
32634 for ac_f
32635 do
32636 case $ac_f in
32637 -) ac_f="$tmp/stdin";;
32638 *) # Look for the file first in the build tree, then in the source tree
32639 # (if the path is not absolute). The absolute path cannot be DOS-style,
32640 # because $ac_f cannot contain `:'.
32641 test -f "$ac_f" ||
32642 case $ac_f in
32643 [\\/$]*) false;;
32644 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32645 esac ||
cristy8b350f62009-11-15 23:12:43 +000032646 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032647 esac
32648 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000032649 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000032650 done
32651
32652 # Let's still pretend it is `configure' which instantiates (i.e., don't
32653 # use $as_me), people would be surprised to read:
32654 # /* config.h. Generated by config.status. */
32655 configure_input='Generated from '`
32656 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32657 `' by configure.'
32658 if test x"$ac_file" != x-; then
32659 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000032660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032661$as_echo "$as_me: creating $ac_file" >&6;}
32662 fi
32663 # Neutralize special characters interpreted by sed in replacement strings.
32664 case $configure_input in #(
32665 *\&* | *\|* | *\\* )
32666 ac_sed_conf_input=`$as_echo "$configure_input" |
32667 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32668 *) ac_sed_conf_input=$configure_input;;
32669 esac
32670
32671 case $ac_tag in
32672 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000032673 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000032674 esac
32675 ;;
32676 esac
32677
32678 ac_dir=`$as_dirname -- "$ac_file" ||
32679$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32680 X"$ac_file" : 'X\(//\)[^/]' \| \
32681 X"$ac_file" : 'X\(//\)$' \| \
32682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32683$as_echo X"$ac_file" |
32684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32685 s//\1/
32686 q
32687 }
32688 /^X\(\/\/\)[^/].*/{
32689 s//\1/
32690 q
32691 }
32692 /^X\(\/\/\)$/{
32693 s//\1/
32694 q
32695 }
32696 /^X\(\/\).*/{
32697 s//\1/
32698 q
32699 }
32700 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032701 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032702 ac_builddir=.
32703
32704case "$ac_dir" in
32705.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32706*)
32707 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32708 # A ".." for each directory in $ac_dir_suffix.
32709 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32710 case $ac_top_builddir_sub in
32711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32713 esac ;;
32714esac
32715ac_abs_top_builddir=$ac_pwd
32716ac_abs_builddir=$ac_pwd$ac_dir_suffix
32717# for backward compatibility:
32718ac_top_builddir=$ac_top_build_prefix
32719
32720case $srcdir in
32721 .) # We are building in place.
32722 ac_srcdir=.
32723 ac_top_srcdir=$ac_top_builddir_sub
32724 ac_abs_top_srcdir=$ac_pwd ;;
32725 [\\/]* | ?:[\\/]* ) # Absolute name.
32726 ac_srcdir=$srcdir$ac_dir_suffix;
32727 ac_top_srcdir=$srcdir
32728 ac_abs_top_srcdir=$srcdir ;;
32729 *) # Relative name.
32730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32731 ac_top_srcdir=$ac_top_build_prefix$srcdir
32732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32733esac
32734ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32735
32736
32737 case $ac_mode in
32738 :F)
32739 #
32740 # CONFIG_FILE
32741 #
32742
32743 case $INSTALL in
32744 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32745 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32746 esac
32747 ac_MKDIR_P=$MKDIR_P
32748 case $MKDIR_P in
32749 [\\/$]* | ?:[\\/]* ) ;;
32750 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32751 esac
32752_ACEOF
32753
32754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32755# If the template does not know about datarootdir, expand it.
32756# FIXME: This hack should be removed a few years after 2.60.
32757ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000032758ac_sed_dataroot='
32759/datarootdir/ {
32760 p
32761 q
32762}
32763/@datadir@/p
32764/@docdir@/p
32765/@infodir@/p
32766/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000032767/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000032768case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32769*datarootdir*) ac_datarootdir_seen=yes;;
32770*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000032771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000032772$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32773_ACEOF
32774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32775 ac_datarootdir_hack='
32776 s&@datadir@&$datadir&g
32777 s&@docdir@&$docdir&g
32778 s&@infodir@&$infodir&g
32779 s&@localedir@&$localedir&g
32780 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000032781 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000032782esac
32783_ACEOF
32784
32785# Neutralize VPATH when `$srcdir' = `.'.
32786# Shell code in configure.ac might set extrasub.
32787# FIXME: do we really want to maintain this feature?
32788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32789ac_sed_extra="$ac_vpsub
32790$extrasub
32791_ACEOF
32792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32793:t
32794/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32795s|@configure_input@|$ac_sed_conf_input|;t t
32796s&@top_builddir@&$ac_top_builddir_sub&;t t
32797s&@top_build_prefix@&$ac_top_build_prefix&;t t
32798s&@srcdir@&$ac_srcdir&;t t
32799s&@abs_srcdir@&$ac_abs_srcdir&;t t
32800s&@top_srcdir@&$ac_top_srcdir&;t t
32801s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32802s&@builddir@&$ac_builddir&;t t
32803s&@abs_builddir@&$ac_abs_builddir&;t t
32804s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32805s&@INSTALL@&$ac_INSTALL&;t t
32806s&@MKDIR_P@&$ac_MKDIR_P&;t t
32807$ac_datarootdir_hack
32808"
32809eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000032810 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032811
32812test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32813 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32814 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000032815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000032816which seems to be undefined. Please make sure it is defined." >&5
32817$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32818which seems to be undefined. Please make sure it is defined." >&2;}
32819
32820 rm -f "$tmp/stdin"
32821 case $ac_file in
32822 -) cat "$tmp/out" && rm -f "$tmp/out";;
32823 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32824 esac \
cristy8b350f62009-11-15 23:12:43 +000032825 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032826 ;;
32827 :H)
32828 #
32829 # CONFIG_HEADER
32830 #
32831 if test x"$ac_file" != x-; then
32832 {
32833 $as_echo "/* $configure_input */" \
32834 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32835 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000032836 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032837 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000032838 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032839$as_echo "$as_me: $ac_file is unchanged" >&6;}
32840 else
32841 rm -f "$ac_file"
32842 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000032843 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032844 fi
32845 else
32846 $as_echo "/* $configure_input */" \
32847 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000032848 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032849 fi
32850# Compute "$ac_file"'s index in $config_headers.
32851_am_arg="$ac_file"
32852_am_stamp_count=1
32853for _am_header in $config_headers :; do
32854 case $_am_header in
32855 $_am_arg | $_am_arg:* )
32856 break ;;
32857 * )
32858 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32859 esac
32860done
32861echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32862$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32863 X"$_am_arg" : 'X\(//\)[^/]' \| \
32864 X"$_am_arg" : 'X\(//\)$' \| \
32865 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32866$as_echo X"$_am_arg" |
32867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32868 s//\1/
32869 q
32870 }
32871 /^X\(\/\/\)[^/].*/{
32872 s//\1/
32873 q
32874 }
32875 /^X\(\/\/\)$/{
32876 s//\1/
32877 q
32878 }
32879 /^X\(\/\).*/{
32880 s//\1/
32881 q
32882 }
32883 s/.*/./; q'`/stamp-h$_am_stamp_count
32884 ;;
32885
cristy8b350f62009-11-15 23:12:43 +000032886 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000032887$as_echo "$as_me: executing $ac_file commands" >&6;}
32888 ;;
32889 esac
32890
32891
32892 case $ac_file$ac_mode in
32893 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
32894ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
32895ac_prefix_conf_PKG=`echo MagickCore`
32896ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
32897ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
32898ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
32899if test ".$ac_prefix_conf_INP" = "."; then
32900 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
32901 case "$ac_file" in
32902 *.h) ac_prefix_conf_INP=$ac_file ;;
32903 *)
32904 esac
32905 test ".$ac_prefix_conf_INP" != "." && break
32906 done
32907fi
32908if test ".$ac_prefix_conf_INP" = "."; then
32909 case "$ac_prefix_conf_OUT" in
32910 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
32911 ;;
32912 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
32913 ;;
32914 *) ac_prefix_conf_INP=config.h
32915 ;;
32916 esac
32917fi
32918if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000032919 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032920else
32921 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
32922 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
32923 fi fi
cristy8b350f62009-11-15 23:12:43 +000032924 { $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 +000032925$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
32926 if test -f $ac_prefix_conf_INP ; then
32927 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
32928 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
32929 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
32930 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
32931 echo "#endif/" >>conftest.prefix
32932 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
32933 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
32934 echo "#endif/" >> conftest.prefix
32935 # now executing _script on _DEF input to create _OUT output file
32936 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
32937 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
32938 echo ' ' >>$tmp/pconfig.h
32939 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
32940
32941 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
32942 echo ' ' >>$tmp/pconfig.h
32943 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
32944 echo "#endif" >>$tmp/pconfig.h
32945 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032946 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032947$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
32948 else
32949 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
32950$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32951 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
32952 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
32953 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
32954$as_echo X"$ac_prefix_conf_OUT" |
32955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32956 s//\1/
32957 q
32958 }
32959 /^X\(\/\/\)[^/].*/{
32960 s//\1/
32961 q
32962 }
32963 /^X\(\/\/\)$/{
32964 s//\1/
32965 q
32966 }
32967 /^X\(\/\).*/{
32968 s//\1/
32969 q
32970 }
32971 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032972 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032973 rm -f "$ac_prefix_conf_OUT"
32974 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
32975 fi
32976 cp conftest.prefix _configs.sed
32977 else
cristy8b350f62009-11-15 23:12:43 +000032978 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 +000032979 fi
32980 rm -f conftest.*
32981fi
32982 ;;
32983 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32984 # Autoconf 2.62 quotes --file arguments for eval, but not when files
32985 # are listed without --file. Let's play safe and only enable the eval
32986 # if we detect the quoting.
32987 case $CONFIG_FILES in
32988 *\'*) eval set x "$CONFIG_FILES" ;;
32989 *) set x $CONFIG_FILES ;;
32990 esac
32991 shift
32992 for mf
32993 do
32994 # Strip MF so we end up with the name of the file.
32995 mf=`echo "$mf" | sed -e 's/:.*$//'`
32996 # Check whether this is an Automake generated Makefile or not.
32997 # We used to match only the files named `Makefile.in', but
32998 # some people rename them; so instead we look at the file content.
32999 # Grep'ing the first line is not enough: some people post-process
33000 # each Makefile.in and add a new line on top of each file to say so.
33001 # Grep'ing the whole file is not good either: AIX grep has a line
33002 # limit of 2048, but all sed's we know have understand at least 4000.
33003 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33004 dirpart=`$as_dirname -- "$mf" ||
33005$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33006 X"$mf" : 'X\(//\)[^/]' \| \
33007 X"$mf" : 'X\(//\)$' \| \
33008 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33009$as_echo X"$mf" |
33010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33011 s//\1/
33012 q
33013 }
33014 /^X\(\/\/\)[^/].*/{
33015 s//\1/
33016 q
33017 }
33018 /^X\(\/\/\)$/{
33019 s//\1/
33020 q
33021 }
33022 /^X\(\/\).*/{
33023 s//\1/
33024 q
33025 }
33026 s/.*/./; q'`
33027 else
33028 continue
33029 fi
33030 # Extract the definition of DEPDIR, am__include, and am__quote
33031 # from the Makefile without running `make'.
33032 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33033 test -z "$DEPDIR" && continue
33034 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33035 test -z "am__include" && continue
33036 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33037 # When using ansi2knr, U may be empty or an underscore; expand it
33038 U=`sed -n 's/^U = //p' < "$mf"`
33039 # Find all dependency output files, they are included files with
33040 # $(DEPDIR) in their names. We invoke sed twice because it is the
33041 # simplest approach to changing $(DEPDIR) to its actual value in the
33042 # expansion.
33043 for file in `sed -n "
33044 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33045 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33046 # Make sure the directory exists.
33047 test -f "$dirpart/$file" && continue
33048 fdir=`$as_dirname -- "$file" ||
33049$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33050 X"$file" : 'X\(//\)[^/]' \| \
33051 X"$file" : 'X\(//\)$' \| \
33052 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33053$as_echo X"$file" |
33054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33055 s//\1/
33056 q
33057 }
33058 /^X\(\/\/\)[^/].*/{
33059 s//\1/
33060 q
33061 }
33062 /^X\(\/\/\)$/{
33063 s//\1/
33064 q
33065 }
33066 /^X\(\/\).*/{
33067 s//\1/
33068 q
33069 }
33070 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033071 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033072 # echo "creating $dirpart/$file"
33073 echo '# dummy' > "$dirpart/$file"
33074 done
33075 done
33076}
33077 ;;
33078 "libtool":C)
33079
33080 # See if we are running on zsh, and set the options which allow our
33081 # commands through without removal of \ escapes.
33082 if test -n "${ZSH_VERSION+set}" ; then
33083 setopt NO_GLOB_SUBST
33084 fi
33085
33086 cfgfile="${ofile}T"
33087 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33088 $RM "$cfgfile"
33089
33090 cat <<_LT_EOF >> "$cfgfile"
33091#! $SHELL
33092
33093# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33094# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33095# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33096# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33097#
33098# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000033099# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033100# Written by Gordon Matzigkeit, 1996
33101#
33102# This file is part of GNU Libtool.
33103#
33104# GNU Libtool is free software; you can redistribute it and/or
33105# modify it under the terms of the GNU General Public License as
33106# published by the Free Software Foundation; either version 2 of
33107# the License, or (at your option) any later version.
33108#
33109# As a special exception to the GNU General Public License,
33110# if you distribute this file as part of a program or library that
33111# is built using GNU Libtool, you may include this file under the
33112# same distribution terms that you use for the rest of that program.
33113#
33114# GNU Libtool is distributed in the hope that it will be useful,
33115# but WITHOUT ANY WARRANTY; without even the implied warranty of
33116# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33117# GNU General Public License for more details.
33118#
33119# You should have received a copy of the GNU General Public License
33120# along with GNU Libtool; see the file COPYING. If not, a copy
33121# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33122# obtained by writing to the Free Software Foundation, Inc.,
33123# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33124
33125
33126# The names of the tagged configurations supported by this script.
33127available_tags="CXX "
33128
33129# ### BEGIN LIBTOOL CONFIG
33130
33131# A sed program that does not truncate output.
33132SED=$lt_SED
33133
33134# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33135Xsed="\$SED -e 1s/^X//"
33136
33137# A grep program that handles long lines.
33138GREP=$lt_GREP
33139
33140# An ERE matcher.
33141EGREP=$lt_EGREP
33142
33143# A literal string matcher.
33144FGREP=$lt_FGREP
33145
33146# Which release of libtool.m4 was used?
33147macro_version=$macro_version
33148macro_revision=$macro_revision
33149
33150# Assembler program.
cristy18304f92009-11-22 15:48:26 +000033151AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000033152
33153# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000033154DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000033155
33156# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000033157OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000033158
33159# Whether or not to build shared libraries.
33160build_libtool_libs=$enable_shared
33161
33162# Whether or not to build static libraries.
33163build_old_libs=$enable_static
33164
33165# What type of objects to build.
33166pic_mode=$pic_mode
33167
33168# Whether or not to optimize for fast installation.
33169fast_install=$enable_fast_install
33170
33171# The host system.
33172host_alias=$host_alias
33173host=$host
33174host_os=$host_os
33175
33176# The build system.
33177build_alias=$build_alias
33178build=$build
33179build_os=$build_os
33180
33181# A BSD- or MS-compatible name lister.
33182NM=$lt_NM
33183
33184# Whether we need soft or hard links.
33185LN_S=$lt_LN_S
33186
33187# What is the maximum length of a command?
33188max_cmd_len=$max_cmd_len
33189
33190# Object file suffix (normally "o").
33191objext=$ac_objext
33192
33193# Executable file suffix (normally "").
33194exeext=$exeext
33195
33196# whether the shell understands "unset".
33197lt_unset=$lt_unset
33198
33199# turn spaces into newlines.
33200SP2NL=$lt_lt_SP2NL
33201
33202# turn newlines into spaces.
33203NL2SP=$lt_lt_NL2SP
33204
cristy18304f92009-11-22 15:48:26 +000033205# How to create reloadable object files.
33206reload_flag=$lt_reload_flag
33207reload_cmds=$lt_reload_cmds
33208
cristy3ed852e2009-09-05 21:47:34 +000033209# Method to check whether dependent libraries are shared objects.
33210deplibs_check_method=$lt_deplibs_check_method
33211
33212# Command to use when deplibs_check_method == "file_magic".
33213file_magic_cmd=$lt_file_magic_cmd
33214
33215# The archiver.
33216AR=$lt_AR
33217AR_FLAGS=$lt_AR_FLAGS
33218
33219# A symbol stripping program.
33220STRIP=$lt_STRIP
33221
33222# Commands used to install an old-style archive.
33223RANLIB=$lt_RANLIB
33224old_postinstall_cmds=$lt_old_postinstall_cmds
33225old_postuninstall_cmds=$lt_old_postuninstall_cmds
33226
33227# A C compiler.
33228LTCC=$lt_CC
33229
33230# LTCC compiler flags.
33231LTCFLAGS=$lt_CFLAGS
33232
33233# Take the output of nm and produce a listing of raw symbols and C names.
33234global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33235
33236# Transform the output of nm in a proper C declaration.
33237global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33238
33239# Transform the output of nm in a C name address pair.
33240global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33241
33242# Transform the output of nm in a C name address pair when lib prefix is needed.
33243global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33244
33245# The name of the directory that contains temporary libtool files.
33246objdir=$objdir
33247
cristy18304f92009-11-22 15:48:26 +000033248# Shell to use when invoking shell scripts.
33249SHELL=$lt_SHELL
33250
33251# An echo program that does not interpret backslashes.
33252ECHO=$lt_ECHO
33253
cristy3ed852e2009-09-05 21:47:34 +000033254# Used to examine libraries when file_magic_cmd begins with "file".
33255MAGIC_CMD=$MAGIC_CMD
33256
33257# Must we lock files when doing compilation?
33258need_locks=$lt_need_locks
33259
33260# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33261DSYMUTIL=$lt_DSYMUTIL
33262
33263# Tool to change global to local symbols on Mac OS X.
33264NMEDIT=$lt_NMEDIT
33265
33266# Tool to manipulate fat objects and archives on Mac OS X.
33267LIPO=$lt_LIPO
33268
33269# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33270OTOOL=$lt_OTOOL
33271
33272# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33273OTOOL64=$lt_OTOOL64
33274
33275# Old archive suffix (normally "a").
33276libext=$libext
33277
33278# Shared library suffix (normally ".so").
33279shrext_cmds=$lt_shrext_cmds
33280
33281# The commands to extract the exported symbol list from a shared archive.
33282extract_expsyms_cmds=$lt_extract_expsyms_cmds
33283
33284# Variables whose values should be saved in libtool wrapper scripts and
33285# restored at link time.
33286variables_saved_for_relink=$lt_variables_saved_for_relink
33287
33288# Do we need the "lib" prefix for modules?
33289need_lib_prefix=$need_lib_prefix
33290
33291# Do we need a version for libraries?
33292need_version=$need_version
33293
33294# Library versioning type.
33295version_type=$version_type
33296
33297# Shared library runtime path variable.
33298runpath_var=$runpath_var
33299
33300# Shared library path variable.
33301shlibpath_var=$shlibpath_var
33302
33303# Is shlibpath searched before the hard-coded library search path?
33304shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33305
33306# Format of library name prefix.
33307libname_spec=$lt_libname_spec
33308
33309# List of archive names. First name is the real one, the rest are links.
33310# The last name is the one that the linker finds with -lNAME
33311library_names_spec=$lt_library_names_spec
33312
33313# The coded name of the library, if different from the real name.
33314soname_spec=$lt_soname_spec
33315
33316# Command to use after installation of a shared archive.
33317postinstall_cmds=$lt_postinstall_cmds
33318
33319# Command to use after uninstallation of a shared archive.
33320postuninstall_cmds=$lt_postuninstall_cmds
33321
33322# Commands used to finish a libtool library installation in a directory.
33323finish_cmds=$lt_finish_cmds
33324
33325# As "finish_cmds", except a single script fragment to be evaled but
33326# not shown.
33327finish_eval=$lt_finish_eval
33328
33329# Whether we should hardcode library paths into libraries.
33330hardcode_into_libs=$hardcode_into_libs
33331
33332# Compile-time system search path for libraries.
33333sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33334
33335# Run-time system search path for libraries.
33336sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33337
33338# Whether dlopen is supported.
33339dlopen_support=$enable_dlopen
33340
33341# Whether dlopen of programs is supported.
33342dlopen_self=$enable_dlopen_self
33343
33344# Whether dlopen of statically linked programs is supported.
33345dlopen_self_static=$enable_dlopen_self_static
33346
33347# Commands to strip libraries.
33348old_striplib=$lt_old_striplib
33349striplib=$lt_striplib
33350
33351
33352# The linker used to build libraries.
33353LD=$lt_LD
33354
33355# Commands used to build an old-style archive.
33356old_archive_cmds=$lt_old_archive_cmds
33357
33358# A language specific compiler.
33359CC=$lt_compiler
33360
33361# Is the compiler the GNU compiler?
33362with_gcc=$GCC
33363
33364# Compiler flag to turn off builtin functions.
33365no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33366
33367# How to pass a linker flag through the compiler.
33368wl=$lt_lt_prog_compiler_wl
33369
33370# Additional compiler flags for building library objects.
33371pic_flag=$lt_lt_prog_compiler_pic
33372
33373# Compiler flag to prevent dynamic linking.
33374link_static_flag=$lt_lt_prog_compiler_static
33375
33376# Does compiler simultaneously support -c and -o options?
33377compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33378
33379# Whether or not to add -lc for building shared libraries.
33380build_libtool_need_lc=$archive_cmds_need_lc
33381
33382# Whether or not to disallow shared libs when runtime libs are static.
33383allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33384
33385# Compiler flag to allow reflexive dlopens.
33386export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33387
33388# Compiler flag to generate shared objects directly from archives.
33389whole_archive_flag_spec=$lt_whole_archive_flag_spec
33390
33391# Whether the compiler copes with passing no objects directly.
33392compiler_needs_object=$lt_compiler_needs_object
33393
33394# Create an old-style archive from a shared archive.
33395old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33396
33397# Create a temporary old-style archive to link instead of a shared archive.
33398old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33399
33400# Commands used to build a shared archive.
33401archive_cmds=$lt_archive_cmds
33402archive_expsym_cmds=$lt_archive_expsym_cmds
33403
33404# Commands used to build a loadable module if different from building
33405# a shared archive.
33406module_cmds=$lt_module_cmds
33407module_expsym_cmds=$lt_module_expsym_cmds
33408
33409# Whether we are building with GNU ld or not.
33410with_gnu_ld=$lt_with_gnu_ld
33411
33412# Flag that allows shared libraries with undefined symbols to be built.
33413allow_undefined_flag=$lt_allow_undefined_flag
33414
33415# Flag that enforces no undefined symbols.
33416no_undefined_flag=$lt_no_undefined_flag
33417
33418# Flag to hardcode \$libdir into a binary during linking.
33419# This must work even if \$libdir does not exist
33420hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33421
33422# If ld is used when linking, flag to hardcode \$libdir into a binary
33423# during linking. This must work even if \$libdir does not exist.
33424hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33425
33426# Whether we need a single "-rpath" flag with a separated argument.
33427hardcode_libdir_separator=$lt_hardcode_libdir_separator
33428
33429# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33430# DIR into the resulting binary.
33431hardcode_direct=$hardcode_direct
33432
33433# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33434# DIR into the resulting binary and the resulting library dependency is
33435# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33436# library is relocated.
33437hardcode_direct_absolute=$hardcode_direct_absolute
33438
33439# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33440# into the resulting binary.
33441hardcode_minus_L=$hardcode_minus_L
33442
33443# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33444# into the resulting binary.
33445hardcode_shlibpath_var=$hardcode_shlibpath_var
33446
33447# Set to "yes" if building a shared library automatically hardcodes DIR
33448# into the library and all subsequent libraries and executables linked
33449# against it.
33450hardcode_automatic=$hardcode_automatic
33451
33452# Set to yes if linker adds runtime paths of dependent libraries
33453# to runtime path list.
33454inherit_rpath=$inherit_rpath
33455
33456# Whether libtool must link a program against all its dependency libraries.
33457link_all_deplibs=$link_all_deplibs
33458
33459# Fix the shell variable \$srcfile for the compiler.
33460fix_srcfile_path=$lt_fix_srcfile_path
33461
33462# Set to "yes" if exported symbols are required.
33463always_export_symbols=$always_export_symbols
33464
33465# The commands to list exported symbols.
33466export_symbols_cmds=$lt_export_symbols_cmds
33467
33468# Symbols that should not be listed in the preloaded symbols.
33469exclude_expsyms=$lt_exclude_expsyms
33470
33471# Symbols that must always be exported.
33472include_expsyms=$lt_include_expsyms
33473
33474# Commands necessary for linking programs (against libraries) with templates.
33475prelink_cmds=$lt_prelink_cmds
33476
33477# Specify filename containing input files.
33478file_list_spec=$lt_file_list_spec
33479
33480# How to hardcode a shared library path into an executable.
33481hardcode_action=$hardcode_action
33482
33483# The directories searched by this compiler when creating a shared library.
33484compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33485
33486# Dependencies to place before and after the objects being linked to
33487# create a shared library.
33488predep_objects=$lt_predep_objects
33489postdep_objects=$lt_postdep_objects
33490predeps=$lt_predeps
33491postdeps=$lt_postdeps
33492
33493# The library search path used internally by the compiler when linking
33494# a shared library.
33495compiler_lib_search_path=$lt_compiler_lib_search_path
33496
33497# ### END LIBTOOL CONFIG
33498
33499_LT_EOF
33500
33501 case $host_os in
33502 aix3*)
33503 cat <<\_LT_EOF >> "$cfgfile"
33504# AIX sometimes has problems with the GCC collect2 program. For some
33505# reason, if we set the COLLECT_NAMES environment variable, the problems
33506# vanish in a puff of smoke.
33507if test "X${COLLECT_NAMES+set}" != Xset; then
33508 COLLECT_NAMES=
33509 export COLLECT_NAMES
33510fi
33511_LT_EOF
33512 ;;
33513 esac
33514
33515
33516ltmain="$ac_aux_dir/ltmain.sh"
33517
33518
33519 # We use sed instead of cat because bash on DJGPP gets confused if
33520 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33521 # text mode, it properly converts lines to CR/LF. This bash problem
33522 # is reportedly fixed, but why not run on old versions too?
33523 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33524 || (rm -f "$cfgfile"; exit 1)
33525
33526 case $xsi_shell in
33527 yes)
33528 cat << \_LT_EOF >> "$cfgfile"
33529
33530# func_dirname file append nondir_replacement
33531# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33532# otherwise set result to NONDIR_REPLACEMENT.
33533func_dirname ()
33534{
33535 case ${1} in
33536 */*) func_dirname_result="${1%/*}${2}" ;;
33537 * ) func_dirname_result="${3}" ;;
33538 esac
33539}
33540
33541# func_basename file
33542func_basename ()
33543{
33544 func_basename_result="${1##*/}"
33545}
33546
33547# func_dirname_and_basename file append nondir_replacement
33548# perform func_basename and func_dirname in a single function
33549# call:
33550# dirname: Compute the dirname of FILE. If nonempty,
33551# add APPEND to the result, otherwise set result
33552# to NONDIR_REPLACEMENT.
33553# value returned in "$func_dirname_result"
33554# basename: Compute filename of FILE.
33555# value retuned in "$func_basename_result"
33556# Implementation must be kept synchronized with func_dirname
33557# and func_basename. For efficiency, we do not delegate to
33558# those functions but instead duplicate the functionality here.
33559func_dirname_and_basename ()
33560{
33561 case ${1} in
33562 */*) func_dirname_result="${1%/*}${2}" ;;
33563 * ) func_dirname_result="${3}" ;;
33564 esac
33565 func_basename_result="${1##*/}"
33566}
33567
33568# func_stripname prefix suffix name
33569# strip PREFIX and SUFFIX off of NAME.
33570# PREFIX and SUFFIX must not contain globbing or regex special
33571# characters, hashes, percent signs, but SUFFIX may contain a leading
33572# dot (in which case that matches only a dot).
33573func_stripname ()
33574{
33575 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33576 # positional parameters, so assign one to ordinary parameter first.
33577 func_stripname_result=${3}
33578 func_stripname_result=${func_stripname_result#"${1}"}
33579 func_stripname_result=${func_stripname_result%"${2}"}
33580}
33581
33582# func_opt_split
33583func_opt_split ()
33584{
33585 func_opt_split_opt=${1%%=*}
33586 func_opt_split_arg=${1#*=}
33587}
33588
33589# func_lo2o object
33590func_lo2o ()
33591{
33592 case ${1} in
33593 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33594 *) func_lo2o_result=${1} ;;
33595 esac
33596}
33597
33598# func_xform libobj-or-source
33599func_xform ()
33600{
33601 func_xform_result=${1%.*}.lo
33602}
33603
33604# func_arith arithmetic-term...
33605func_arith ()
33606{
33607 func_arith_result=$(( $* ))
33608}
33609
33610# func_len string
33611# STRING may not start with a hyphen.
33612func_len ()
33613{
33614 func_len_result=${#1}
33615}
33616
33617_LT_EOF
33618 ;;
33619 *) # Bourne compatible functions.
33620 cat << \_LT_EOF >> "$cfgfile"
33621
33622# func_dirname file append nondir_replacement
33623# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33624# otherwise set result to NONDIR_REPLACEMENT.
33625func_dirname ()
33626{
33627 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000033628 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000033629 if test "X$func_dirname_result" = "X${1}"; then
33630 func_dirname_result="${3}"
33631 else
33632 func_dirname_result="$func_dirname_result${2}"
33633 fi
33634}
33635
33636# func_basename file
33637func_basename ()
33638{
cristy18304f92009-11-22 15:48:26 +000033639 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000033640}
33641
33642
33643# func_stripname prefix suffix name
33644# strip PREFIX and SUFFIX off of NAME.
33645# PREFIX and SUFFIX must not contain globbing or regex special
33646# characters, hashes, percent signs, but SUFFIX may contain a leading
33647# dot (in which case that matches only a dot).
33648# func_strip_suffix prefix name
33649func_stripname ()
33650{
33651 case ${2} in
cristy18304f92009-11-22 15:48:26 +000033652 .*) func_stripname_result=`$ECHO "X${3}" \
33653 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
33654 *) func_stripname_result=`$ECHO "X${3}" \
33655 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000033656 esac
33657}
33658
33659# sed scripts:
33660my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33661my_sed_long_arg='1s/^-[^=]*=//'
33662
33663# func_opt_split
33664func_opt_split ()
33665{
cristy18304f92009-11-22 15:48:26 +000033666 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
33667 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000033668}
33669
33670# func_lo2o object
33671func_lo2o ()
33672{
cristy18304f92009-11-22 15:48:26 +000033673 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000033674}
33675
33676# func_xform libobj-or-source
33677func_xform ()
33678{
cristy18304f92009-11-22 15:48:26 +000033679 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000033680}
33681
33682# func_arith arithmetic-term...
33683func_arith ()
33684{
33685 func_arith_result=`expr "$@"`
33686}
33687
33688# func_len string
33689# STRING may not start with a hyphen.
33690func_len ()
33691{
33692 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33693}
33694
33695_LT_EOF
33696esac
33697
33698case $lt_shell_append in
33699 yes)
33700 cat << \_LT_EOF >> "$cfgfile"
33701
33702# func_append var value
33703# Append VALUE to the end of shell variable VAR.
33704func_append ()
33705{
33706 eval "$1+=\$2"
33707}
33708_LT_EOF
33709 ;;
33710 *)
33711 cat << \_LT_EOF >> "$cfgfile"
33712
33713# func_append var value
33714# Append VALUE to the end of shell variable VAR.
33715func_append ()
33716{
33717 eval "$1=\$$1\$2"
33718}
33719
33720_LT_EOF
33721 ;;
33722 esac
33723
33724
33725 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33726 || (rm -f "$cfgfile"; exit 1)
33727
33728 mv -f "$cfgfile" "$ofile" ||
33729 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33730 chmod +x "$ofile"
33731
33732
33733 cat <<_LT_EOF >> "$ofile"
33734
33735# ### BEGIN LIBTOOL TAG CONFIG: CXX
33736
33737# The linker used to build libraries.
33738LD=$lt_LD_CXX
33739
33740# Commands used to build an old-style archive.
33741old_archive_cmds=$lt_old_archive_cmds_CXX
33742
33743# A language specific compiler.
33744CC=$lt_compiler_CXX
33745
33746# Is the compiler the GNU compiler?
33747with_gcc=$GCC_CXX
33748
33749# Compiler flag to turn off builtin functions.
33750no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33751
33752# How to pass a linker flag through the compiler.
33753wl=$lt_lt_prog_compiler_wl_CXX
33754
33755# Additional compiler flags for building library objects.
33756pic_flag=$lt_lt_prog_compiler_pic_CXX
33757
33758# Compiler flag to prevent dynamic linking.
33759link_static_flag=$lt_lt_prog_compiler_static_CXX
33760
33761# Does compiler simultaneously support -c and -o options?
33762compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33763
33764# Whether or not to add -lc for building shared libraries.
33765build_libtool_need_lc=$archive_cmds_need_lc_CXX
33766
33767# Whether or not to disallow shared libs when runtime libs are static.
33768allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33769
33770# Compiler flag to allow reflexive dlopens.
33771export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33772
33773# Compiler flag to generate shared objects directly from archives.
33774whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33775
33776# Whether the compiler copes with passing no objects directly.
33777compiler_needs_object=$lt_compiler_needs_object_CXX
33778
33779# Create an old-style archive from a shared archive.
33780old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33781
33782# Create a temporary old-style archive to link instead of a shared archive.
33783old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33784
33785# Commands used to build a shared archive.
33786archive_cmds=$lt_archive_cmds_CXX
33787archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33788
33789# Commands used to build a loadable module if different from building
33790# a shared archive.
33791module_cmds=$lt_module_cmds_CXX
33792module_expsym_cmds=$lt_module_expsym_cmds_CXX
33793
33794# Whether we are building with GNU ld or not.
33795with_gnu_ld=$lt_with_gnu_ld_CXX
33796
33797# Flag that allows shared libraries with undefined symbols to be built.
33798allow_undefined_flag=$lt_allow_undefined_flag_CXX
33799
33800# Flag that enforces no undefined symbols.
33801no_undefined_flag=$lt_no_undefined_flag_CXX
33802
33803# Flag to hardcode \$libdir into a binary during linking.
33804# This must work even if \$libdir does not exist
33805hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33806
33807# If ld is used when linking, flag to hardcode \$libdir into a binary
33808# during linking. This must work even if \$libdir does not exist.
33809hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33810
33811# Whether we need a single "-rpath" flag with a separated argument.
33812hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33813
33814# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33815# DIR into the resulting binary.
33816hardcode_direct=$hardcode_direct_CXX
33817
33818# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33819# DIR into the resulting binary and the resulting library dependency is
33820# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33821# library is relocated.
33822hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33823
33824# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33825# into the resulting binary.
33826hardcode_minus_L=$hardcode_minus_L_CXX
33827
33828# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33829# into the resulting binary.
33830hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33831
33832# Set to "yes" if building a shared library automatically hardcodes DIR
33833# into the library and all subsequent libraries and executables linked
33834# against it.
33835hardcode_automatic=$hardcode_automatic_CXX
33836
33837# Set to yes if linker adds runtime paths of dependent libraries
33838# to runtime path list.
33839inherit_rpath=$inherit_rpath_CXX
33840
33841# Whether libtool must link a program against all its dependency libraries.
33842link_all_deplibs=$link_all_deplibs_CXX
33843
33844# Fix the shell variable \$srcfile for the compiler.
33845fix_srcfile_path=$lt_fix_srcfile_path_CXX
33846
33847# Set to "yes" if exported symbols are required.
33848always_export_symbols=$always_export_symbols_CXX
33849
33850# The commands to list exported symbols.
33851export_symbols_cmds=$lt_export_symbols_cmds_CXX
33852
33853# Symbols that should not be listed in the preloaded symbols.
33854exclude_expsyms=$lt_exclude_expsyms_CXX
33855
33856# Symbols that must always be exported.
33857include_expsyms=$lt_include_expsyms_CXX
33858
33859# Commands necessary for linking programs (against libraries) with templates.
33860prelink_cmds=$lt_prelink_cmds_CXX
33861
33862# Specify filename containing input files.
33863file_list_spec=$lt_file_list_spec_CXX
33864
33865# How to hardcode a shared library path into an executable.
33866hardcode_action=$hardcode_action_CXX
33867
33868# The directories searched by this compiler when creating a shared library.
33869compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33870
33871# Dependencies to place before and after the objects being linked to
33872# create a shared library.
33873predep_objects=$lt_predep_objects_CXX
33874postdep_objects=$lt_postdep_objects_CXX
33875predeps=$lt_predeps_CXX
33876postdeps=$lt_postdeps_CXX
33877
33878# The library search path used internally by the compiler when linking
33879# a shared library.
33880compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33881
33882# ### END LIBTOOL TAG CONFIG: CXX
33883_LT_EOF
33884
33885 ;;
33886 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
33887 "Magick-config.in":C) chmod +x magick/Magick-config ;;
33888 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
33889 "Wand-config.in":C) chmod +x wand/Wand-config ;;
33890 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
33891 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
33892
33893 esac
33894done # for ac_tag
33895
33896
cristy8b350f62009-11-15 23:12:43 +000033897as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000033898_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000033899ac_clean_files=$ac_clean_files_save
33900
33901test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000033902 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033903
33904
33905# configure is writing to config.log, and then calls config.status.
33906# config.status does its own redirection, appending to config.log.
33907# Unfortunately, on DOS this fails, as config.log is still kept open
33908# by configure, so config.status won't be able to write to it; its
33909# output is simply discarded. So we exec the FD to /dev/null,
33910# effectively closing config.log, so it can be properly (re)opened and
33911# appended to by config.status. When coming back to configure, we
33912# need to make the FD available again.
33913if test "$no_create" != yes; then
33914 ac_cs_success=:
33915 ac_config_status_args=
33916 test "$silent" = yes &&
33917 ac_config_status_args="$ac_config_status_args --quiet"
33918 exec 5>/dev/null
33919 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33920 exec 5>>config.log
33921 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33922 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000033923 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000033924fi
33925if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000033926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000033927$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33928fi
33929
33930
33931rm -f magick-version
33932
33933result_ghostscript_font_dir='none'
33934if test "${ghostscript_font_dir}x" != 'x'; then
33935 result_ghostscript_font_dir=$ghostscript_font_dir
33936fi
33937
33938result_windows_font_dir='none'
33939if test "${windows_font_dir}x" != 'x'; then
33940 result_windows_font_dir=${windows_font_dir}
33941fi
33942
cristy8b350f62009-11-15 23:12:43 +000033943{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000033944ImageMagick is configured as follows. Please verify that this configuration
33945matches your expectations.
33946
33947Host system type: $host
33948Build system type: $build
33949
33950 Option Value
33951-------------------------------------------------------------------------------
33952Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33953Static libraries --enable-static=$enable_static $libtool_build_static_libs
33954Module support --with-modules=$with_modules $with_modules
33955GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33956Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33957High Dynamic Range Imagery
33958 --enable-hdri=$enable_hdri $enable_hdri
33959
33960Delegate Configuration:
33961BZLIB --with-bzlib=$with_bzlib $have_bzlib
33962Autotrace --with-autotrace=$with_autotrace $have_autotrace
33963DJVU --with-djvu=$with_djvu $have_djvu
33964DPS --with-dps=$with_dps $have_dps
33965FFTW --with-fftw=$with_fftw $have_fftw
33966FlashPIX --with-fpx=$with_fpx $have_fpx
33967FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33968FreeType --with-freetype=$with_freetype $have_freetype
33969GhostPCL None $PCLDelegate ($PCLVersion)
33970GhostXPS None $XPSDelegate ($XPSVersion)
33971Ghostscript None $PSDelegate ($GSVersion)
33972Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33973Ghostscript lib --with-gslib=$with_gslib $have_gslib
33974Graphviz --with-gvc=$with_gvc $have_gvc
33975JBIG --with-jbig=$with_jbig $have_jbig
33976JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33977JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33978LCMS --with-lcms=$with_lcms $have_lcms
33979LQR --with-lqr=$with_lqr $have_lqr
33980Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33981OpenEXR --with-openexr=$with_openexr $have_openexr
33982PERL --with-perl=$with_perl $have_perl
33983PNG --with-png=$with_png $have_png
33984RSVG --with-rsvg=$with_rsvg $have_rsvg
33985TIFF --with-tiff=$with_tiff $have_tiff
33986Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33987WMF --with-wmf=$with_wmf $have_wmf
33988X11 --with-x=$with_x $have_x
33989XML --with-xml=$with_xml $have_xml
33990ZLIB --with-zlib=$with_zlib $have_zlib
33991
33992X11 Configuration:
33993 X_CFLAGS = $X_CFLAGS
33994 X_PRE_LIBS = $X_PRE_LIBS
33995 X_LIBS = $X_LIBS
33996 X_EXTRA_LIBS = $X_EXTRA_LIBS
33997
33998Options used to compile and link:
33999 PREFIX = $PREFIX_DIR
34000 EXEC-PREFIX = $EXEC_PREFIX_DIR
34001 VERSION = $PACKAGE_VERSION
34002 CC = $CC
34003 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034004 CPPFLAGS = $MAGICK_CPPFLAGS
34005 PCFLAGS = $MAGICK_PCFLAGS
34006 DEFS = $DEFS
34007 LDFLAGS = $LDFLAGS
34008 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34009 LIBS = $MAGICK_LIBS
34010 CXX = $CXX
34011 CXXFLAGS = $CXXFLAGS
34012" >&5
34013$as_echo "
34014ImageMagick is configured as follows. Please verify that this configuration
34015matches your expectations.
34016
34017Host system type: $host
34018Build system type: $build
34019
34020 Option Value
34021-------------------------------------------------------------------------------
34022Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34023Static libraries --enable-static=$enable_static $libtool_build_static_libs
34024Module support --with-modules=$with_modules $with_modules
34025GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34026Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34027High Dynamic Range Imagery
34028 --enable-hdri=$enable_hdri $enable_hdri
34029
34030Delegate Configuration:
34031BZLIB --with-bzlib=$with_bzlib $have_bzlib
34032Autotrace --with-autotrace=$with_autotrace $have_autotrace
34033DJVU --with-djvu=$with_djvu $have_djvu
34034DPS --with-dps=$with_dps $have_dps
34035FFTW --with-fftw=$with_fftw $have_fftw
34036FlashPIX --with-fpx=$with_fpx $have_fpx
34037FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34038FreeType --with-freetype=$with_freetype $have_freetype
34039GhostPCL None $PCLDelegate ($PCLVersion)
34040GhostXPS None $XPSDelegate ($XPSVersion)
34041Ghostscript None $PSDelegate ($GSVersion)
34042Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34043Ghostscript lib --with-gslib=$with_gslib $have_gslib
34044Graphviz --with-gvc=$with_gvc $have_gvc
34045JBIG --with-jbig=$with_jbig $have_jbig
34046JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34047JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34048LCMS --with-lcms=$with_lcms $have_lcms
34049LQR --with-lqr=$with_lqr $have_lqr
34050Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34051OpenEXR --with-openexr=$with_openexr $have_openexr
34052PERL --with-perl=$with_perl $have_perl
34053PNG --with-png=$with_png $have_png
34054RSVG --with-rsvg=$with_rsvg $have_rsvg
34055TIFF --with-tiff=$with_tiff $have_tiff
34056Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
34057WMF --with-wmf=$with_wmf $have_wmf
34058X11 --with-x=$with_x $have_x
34059XML --with-xml=$with_xml $have_xml
34060ZLIB --with-zlib=$with_zlib $have_zlib
34061
34062X11 Configuration:
34063 X_CFLAGS = $X_CFLAGS
34064 X_PRE_LIBS = $X_PRE_LIBS
34065 X_LIBS = $X_LIBS
34066 X_EXTRA_LIBS = $X_EXTRA_LIBS
34067
34068Options used to compile and link:
34069 PREFIX = $PREFIX_DIR
34070 EXEC-PREFIX = $EXEC_PREFIX_DIR
34071 VERSION = $PACKAGE_VERSION
34072 CC = $CC
34073 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034074 CPPFLAGS = $MAGICK_CPPFLAGS
34075 PCFLAGS = $MAGICK_PCFLAGS
34076 DEFS = $DEFS
34077 LDFLAGS = $LDFLAGS
34078 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34079 LIBS = $MAGICK_LIBS
34080 CXX = $CXX
34081 CXXFLAGS = $CXXFLAGS
34082" >&6; }