blob: 88c8a50dba23f62f41b5b13f7200472e8720cf94 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy8b350f62009-11-15 23:12:43 +00003# Generated by GNU Autoconf 2.64 for ImageMagick 6.5.7.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy8b350f62009-11-15 23:12:43 +00008# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000092case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000093 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
cristy3ed852e2009-09-05 21:47:34 +0000101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000112 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000113fi
114
cristy8b350f62009-11-15 23:12:43 +0000115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
cristy8b350f62009-11-15 23:12:43 +0000133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232$0: http://www.imagemagick.org about your system, including
233$0: any error possibly output before this message. Then
234$0: install a modern shell, or manually run the script
235$0: under such a shell if you do have one."
236 fi
237 exit 1
238fi
239fi
240fi
241SHELL=${CONFIG_SHELL-/bin/sh}
242export SHELL
243# Unset more variables known to interfere with behavior of common tools.
244CLICOLOR_FORCE= GREP_OPTIONS=
245unset CLICOLOR_FORCE GREP_OPTIONS
246
247## --------------------- ##
248## M4sh Shell Functions. ##
249## --------------------- ##
250# as_fn_unset VAR
251# ---------------
252# Portably unset VAR.
253as_fn_unset ()
254{
255 { eval $1=; unset $1;}
256}
257as_unset=as_fn_unset
258
259# as_fn_set_status STATUS
260# -----------------------
261# Set $? to STATUS, without forking.
262as_fn_set_status ()
263{
264 return $1
265} # as_fn_set_status
266
267# as_fn_exit STATUS
268# -----------------
269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270as_fn_exit ()
271{
272 set +e
273 as_fn_set_status $1
274 exit $1
275} # as_fn_exit
276
277# as_fn_mkdir_p
278# -------------
279# Create "$as_dir" as a directory, including parents if necessary.
280as_fn_mkdir_p ()
281{
282
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299$as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
306 q
307 }
308 /^X\(\/\/\)$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\).*/{
313 s//\1/
314 q
315 }
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323} # as_fn_mkdir_p
324# as_fn_append VAR VALUE
325# ----------------------
326# Append the text in VALUE to the end of the definition contained in VAR. Take
327# advantage of any shell optimizations that allow amortized linear growth over
328# repeated appends, instead of the typical quadratic growth present in naive
329# implementations.
330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
332 {
333 eval $1+=\$2
334 }'
335else
336 as_fn_append ()
337 {
338 eval $1=\$$1\$2
339 }
340fi # as_fn_append
341
342# as_fn_arith ARG...
343# ------------------
344# Perform arithmetic evaluation on the ARGs, and store the result in the
345# global $as_val. Take advantage of shells that can avoid forks. The arguments
346# must be portable across $(()) and expr.
347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
349 {
350 as_val=$(( $* ))
351 }'
352else
353 as_fn_arith ()
354 {
355 as_val=`expr "$@" || test $? -eq 1`
356 }
357fi # as_fn_arith
358
359
360# as_fn_error ERROR [LINENO LOG_FD]
361# ---------------------------------
362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364# script with status $?, using 1 if that was 0.
365as_fn_error ()
366{
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 fi
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374} # as_fn_error
375
cristy3ed852e2009-09-05 21:47:34 +0000376if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379else
380 as_expr=false
381fi
382
383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385else
386 as_basename=false
387fi
388
cristy8b350f62009-11-15 23:12:43 +0000389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391else
392 as_dirname=false
393fi
cristy3ed852e2009-09-05 21:47:34 +0000394
cristy3ed852e2009-09-05 21:47:34 +0000395as_me=`$as_basename -- "$0" ||
396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399$as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\/\)$/{
405 s//\1/
406 q
407 }
408 /^X\/\(\/\).*/{
409 s//\1/
410 q
411 }
412 s/.*/./; q'`
413
cristy8b350f62009-11-15 23:12:43 +0000414# Avoid depending upon Character Ranges.
415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418as_cr_digits='0123456789'
419as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000420
421
cristy8b350f62009-11-15 23:12:43 +0000422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000427 sed -n '
428 p
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
434 b
435 :lineno
436 N
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000443 { $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 +0000444
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
451}
452
cristy3ed852e2009-09-05 21:47:34 +0000453ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000454case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000455-n*)
cristy8b350f62009-11-15 23:12:43 +0000456 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000461 esac;;
462*)
463 ECHO_N='-n';;
464esac
cristy3ed852e2009-09-05 21:47:34 +0000465
466rm -f conf$$ conf$$.exe conf$$.file
467if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
472fi
473if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
486 fi
487else
488 as_ln_s='cp -p'
489fi
490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491rmdir conf$$.dir 2>/dev/null
492
493if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000494 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000495else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
498fi
499
500if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
507 fi
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
cristy8b350f62009-11-15 23:12:43 +0000513 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000514 -*)set "./$1";;
515 esac;
cristy8b350f62009-11-15 23:12:43 +0000516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
519 '
520fi
521as_executable_p=$as_test_x
522
523# Sed expression to map a string onto a valid CPP name.
524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526# Sed expression to map a string onto a valid variable name.
527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530
cristy3ed852e2009-09-05 21:47:34 +0000531# Check that we are running under the correct shell.
532SHELL=${CONFIG_SHELL-/bin/sh}
533
534case X$lt_ECHO in
535X*--fallback-echo)
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538 ;;
539esac
540
541ECHO=${lt_ECHO-echo}
542if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
544 shift
545elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
547 :
548elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $ECHO works!
550 :
551else
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
554fi
555
556if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
558 shift
559 cat <<_LT_EOF
560$*
561_LT_EOF
562 exit 0
563fi
564
565# The HP-UX ksh and POSIX shell print the target directory to stdout
566# if CDPATH is set.
567(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569if test -z "$lt_ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576 then
577 break
578 fi
579 done
580 fi
581
582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
585 :
586 else
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
590 #
591 # So, first we look for a working echo in the user's PATH.
592
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
595 IFS="$lt_save_ifs"
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
600 ECHO="$dir/echo"
601 break
602 fi
603 done
604 IFS="$lt_save_ifs"
605
606 if test "X$ECHO" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
612 ECHO='print -r'
613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
619 export CONFIG_SHELL
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 else
622 # Try using printf.
623 ECHO='printf %s\n'
624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 # Cool, printf works
628 :
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 export CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
636 export SHELL
637 ECHO="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 else
644 # maybe with a smaller string...
645 prev=:
646
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649 then
650 break
651 fi
652 prev="$cmd"
653 done
654
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 else
660 # Oops. We lost completely, so just stick with echo.
661 ECHO=echo
662 fi
663 fi
664 fi
665 fi
666 fi
667fi
668
669# Copy echo and quote the copy suitably for passing to libtool from
670# the Makefile, instead of quoting the original, which is used later.
671lt_ECHO=$ECHO
672if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674fi
675
676
677
678
679lt_ltdl_dir='ltdl'
680
681lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
682
683exec 7<&0 </dev/null 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000701
702# Identity of this package.
703PACKAGE_NAME='ImageMagick'
704PACKAGE_TARNAME='ImageMagick'
cristyd934d102009-10-10 12:55:13 +0000705PACKAGE_VERSION='6.5.7'
706PACKAGE_STRING='ImageMagick 6.5.7'
cristy3ed852e2009-09-05 21:47:34 +0000707PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000708PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000709
710ac_unique_file="magick/MagickCore.h"
711ac_config_libobj_dir=ltdl
712# Factoring default headers for most tests.
713ac_includes_default="\
714#include <stdio.h>
715#ifdef HAVE_SYS_TYPES_H
716# include <sys/types.h>
717#endif
718#ifdef HAVE_SYS_STAT_H
719# include <sys/stat.h>
720#endif
721#ifdef STDC_HEADERS
722# include <stdlib.h>
723# include <stddef.h>
724#else
725# ifdef HAVE_STDLIB_H
726# include <stdlib.h>
727# endif
728#endif
729#ifdef HAVE_STRING_H
730# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
731# include <memory.h>
732# endif
733# include <string.h>
734#endif
735#ifdef HAVE_STRINGS_H
736# include <strings.h>
737#endif
738#ifdef HAVE_INTTYPES_H
739# include <inttypes.h>
740#endif
741#ifdef HAVE_STDINT_H
742# include <stdint.h>
743#endif
744#ifdef HAVE_UNISTD_H
745# include <unistd.h>
746#endif"
747
748ac_subst_vars='ltdl_LTLIBOBJS
749ltdl_LIBOBJS
750am__EXEEXT_FALSE
751am__EXEEXT_TRUE
752LTLIBOBJS
753MAGICK_LIBS
754MAGICK_LDFLAGS
755MAGICK_PCFLAGS
756MAGICK_CPPFLAGS
757MAGICK_CXXFLAGS
758MAGICK_CFLAGS
759MAGICK_DEP_LIBS
760MAGICK_LTDLDEPS
761MAGICK_LIBLTDL
762OSX_GCOV_LDFLAG
763DELEGATES
764MAGICKCORE_PATH
765PERL_SUPPORTS_DESTDIR
766WITH_PERL_DYNAMIC_FALSE
767WITH_PERL_DYNAMIC_TRUE
768WITH_PERL_STATIC_FALSE
769WITH_PERL_STATIC_TRUE
770WITH_PERL_FALSE
771WITH_PERL_TRUE
772GSVersion
773GSPSDevice
774GSPDFDevice
775GSMonoDevice
776GSEPSDevice
777GSColorDevice
778GSCMYKDevice
779GSAlphaDevice
780XPSVersion
781XPSCMYKDevice
782XPSColorDevice
783XPSMonoDevice
784PCLVersion
785PCLCMYKDevice
786PCLColorDevice
787PCLMonoDevice
788ZIP_DELEGATE_FALSE
789ZIP_DELEGATE_TRUE
790ZIP
791P7ZIP_DELEGATE_FALSE
792P7ZIP_DELEGATE_TRUE
793P7ZIP
794RPM_DELEGATE_FALSE
795RPM_DELEGATE_TRUE
796RPM
797PERL
798TAR
799ShowImageDelegate
800type_include_files
801ghostscript_font_dir
802windows_font_dir
803PrintDelegate
804ZipDelegate
805XPSDelegate
806WWWDecodeDelegate
807WMFDecodeDelegate
808TXTDelegate
809SCANDecodeDelegate
810RMDelegate
811RLEEncodeDelegate
812PSDelegate
813POVDelegate
814PGPDecodeDelegate
815PCLDelegate
816MVDelegate
817MPEGEncodeDelegate
818MPEGDecodeDelegate
819MANDelegate
820LaunchDelegate
821LZWEncodeDelegate
822LZWDecodeDelegate
823LPRDelegate
824LPDelegate
825ILBMEncodeDelegate
826ILBMDecodeDelegate
827HTMLDecodeDelegate
828HPGLDecodeDelegate
829HDRDecodeDelegate
830GnuplotDecodeDelegate
831MogrifyDelegate
832DisplayDelegate
833ConvertDelegate
834FIGDecodeDelegate
835EditorDelegate
836EchoDelegate
837DVIDecodeDelegate
838GVCDecodeDelegate
839DNGDecodeDelegate
840CatDelegate
841CGMDecodeDelegate
842BrowseDelegate
843BZIPDelegate
844BlenderDecodeDelegate
845AVIDecodeDelegate
846AutotraceDecodeDelegate
847SHARE_CONFIGURE_PATH
848SHARE_PATH
849DOCUMENTATION_PATH
850FILTER_PATH
851CODER_PATH
852CONFIGURE_PATH
853LIBRARY_PATH
854EXECUTABLE_PATH
855PERLMAINCC
856XML_LIBS
857XML_DELEGATE_FALSE
858XML_DELEGATE_TRUE
859xml2_config
860WMF_LIBS_DEPS
861WMF_LIBS
862WMF_DELEGATE_FALSE
863WMF_DELEGATE_TRUE
864TIFF_LIBS
865TIFF_DELEGATE_FALSE
866TIFF_DELEGATE_TRUE
867CAIRO_DELEGATE_FALSE
868CAIRO_DELEGATE_TRUE
869RSVG_DELEGATE_FALSE
870RSVG_DELEGATE_TRUE
871CAIRO_SVG_LIBS
872CAIRO_SVG_CFLAGS
873RSVG_LIBS
874RSVG_CFLAGS
875PNG_LIBS
876PNG_DELEGATE_FALSE
877PNG_DELEGATE_TRUE
878OPENEXR_DELEGATE_FALSE
879OPENEXR_DELEGATE_TRUE
880OPENEXR_LIBS
881OPENEXR_CFLAGS
882LQR_DELEGATE_FALSE
883LQR_DELEGATE_TRUE
884LQR_LIBS
885LQR_CFLAGS
886LCMS_LIBS
887LCMS_DELEGATE_FALSE
888LCMS_DELEGATE_TRUE
889JP2_LIBS
890JP2_DELEGATE_FALSE
891JP2_DELEGATE_TRUE
892JPEG_LIBS
893JPEG_DELEGATE_FALSE
894JPEG_DELEGATE_TRUE
895JBIG_LIBS
896JBIG_DELEGATE_FALSE
897JBIG_DELEGATE_TRUE
898GVC_DELEGATE_FALSE
899GVC_DELEGATE_TRUE
900GVC_LIBS
901GVC_CFLAGS
902GS_LIBS
903GS_DELEGATE_FALSE
904GS_DELEGATE_TRUE
905FREETYPE_LIBS
906FREETYPE_DELEGATE_FALSE
907FREETYPE_DELEGATE_TRUE
908freetype_config
909FONTCONFIG_DELEGATE_FALSE
910FONTCONFIG_DELEGATE_TRUE
911FONTCONFIG_LIBS
912FONTCONFIG_CFLAGS
913FPX_LIBS
914FPX_DELEGATE_FALSE
915FPX_DELEGATE_TRUE
916FFTW_LIBS
917FFTW_DELEGATE_FALSE
918FFTW_DELEGATE_TRUE
919DJVU_LIBS
920DJVU_DELEGATE_FALSE
921DJVU_DELEGATE_TRUE
922DPS_LIBS
923DPS_DELEGATE_FALSE
924DPS_DELEGATE_TRUE
925AUTOTRACE_DELEGATE_FALSE
926AUTOTRACE_DELEGATE_TRUE
927AUTOTRACE_LIBS
928AUTOTRACE_CFLAGS
929LIB_DL
930ZLIB_LIBS
931ZLIB_DELEGATE_FALSE
932ZLIB_DELEGATE_TRUE
933XEXT_LIBS
934X11_LIBS
935X11_DELEGATE_FALSE
936X11_DELEGATE_TRUE
937X_EXTRA_LIBS
938X_LIBS
939X_PRE_LIBS
940X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000941XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000942BZLIB_LIBS
943BZLIB_DELEGATE_FALSE
944BZLIB_DELEGATE_TRUE
945MATH_LIBS
946CCMALLOCDelegate
947UMEM_LIBS
948HasUMEM_FALSE
949HasUMEM_TRUE
950THREAD_LIBS
951GOMP_LIBS
952WITH_MAGICK_PLUS_PLUS_FALSE
953WITH_MAGICK_PLUS_PLUS_TRUE
954OPENMP_CXXFLAGS
955POW_LIB
956LIBOBJS
957UINTPTR_T
958UINTMAX_T
959UINT64_T
960INT64_T
961UINT32_T
962INT32_T
963UINT16_T
964INT16_T
965UINT8_T
966INT8_T
967LIBRARY_EXTRA_CPPFLAGS
968MODULE_EXTRA_CPPFLAGS
969LIBSTDCLDFLAGS
970PERL_MAKE_OPTIONS
971QUANTUM_DEPTH
972MAINT
973MAINTAINER_MODE_FALSE
974MAINTAINER_MODE_TRUE
975MAGICK_HDRI
976DLLDFLAGS
977WITH_LTDL_FALSE
978WITH_LTDL_TRUE
979WITH_MODULES_FALSE
980WITH_MODULES_TRUE
981LTCXXLIBOPTS
982LTDLOPEN
983LT_CONFIG_H
984CONVENIENCE_LTDL_FALSE
985CONVENIENCE_LTDL_TRUE
986INSTALL_LTDL_FALSE
987INSTALL_LTDL_TRUE
988ARGZ_H
989sys_symbol_underscore
990LIBADD_DL
991LT_DLPREOPEN
992LIBADD_DLD_LINK
993LIBADD_SHL_LOAD
994LIBADD_DLOPEN
995LT_DLLOADERS
996INCLTDL
997LTDLINCL
998LTDLDEPS
999LIBLTDL
1000LIBTOOL_DEPS
1001CXXCPP
1002OTOOL64
1003OTOOL
1004LIPO
1005NMEDIT
1006DSYMUTIL
1007lt_ECHO
1008AR
1009NM
1010ac_ct_DUMPBIN
1011DUMPBIN
1012LIBTOOL
1013OBJDUMP
1014DLLTOOL
1015AS
1016LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001017CL_LIBS
1018CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001019OPENMP_CFLAGS
1020PTHREAD_CFLAGS
1021PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001022PTHREAD_CC
1023acx_pthread_config
1024WinPathScript
1025USING_CL_FALSE
1026USING_CL_TRUE
1027CYGWIN_BUILD_FALSE
1028CYGWIN_BUILD_TRUE
1029WIN32_NATIVE_BUILD_FALSE
1030WIN32_NATIVE_BUILD_TRUE
1031WINGDI32_DELEGATE_FALSE
1032WINGDI32_DELEGATE_TRUE
1033GDI32_LIBS
1034PKG_CONFIG
1035LN_S
1036am__fastdepCXX_FALSE
1037am__fastdepCXX_TRUE
1038CXXDEPMODE
1039ac_ct_CXX
1040CXXFLAGS
1041CXX
1042RANLIB
1043LD
1044FGREP
1045EGREP
1046GREP
1047SED
1048CPP
1049am__fastdepCC_FALSE
1050am__fastdepCC_TRUE
1051CCDEPMODE
1052AMDEPBACKSLASH
1053AMDEP_FALSE
1054AMDEP_TRUE
1055am__quote
1056am__include
1057DEPDIR
1058OBJEXT
1059EXEEXT
1060ac_ct_CC
1061CPPFLAGS
1062LDFLAGS
1063CFLAGS
1064CC
1065DIRSEP
1066MAGICK_FILTER_MODULE_PATH
1067MAGICK_CONFIGURE_BUILD_PATH
1068MAGICK_CONFIGURE_SRC_PATH
1069MAGICK_CODER_MODULE_PATH
1070MAN_DIR
1071INFO_DIR
1072PERSISTINCLUDE_DIR
1073INCLUDE_DIR
1074LIB_DIR
1075LOCALSTATE_DIR
1076SHAREDSTATE_DIR
1077SYSCONF_DIR
1078DATA_DIR
1079LIBEXEC_DIR
1080SBIN_DIR
1081BIN_DIR
1082EXEC_PREFIX_DIR
1083PREFIX_DIR
1084CONFIG_STATUS_DEPENDENCIES
1085MAGICK_LIB_VERSION_NUMBER
1086MAGICK_LIB_VERSION_TEXT
1087MAGICK_LIB_VERSION
1088AM_BACKSLASH
1089AM_DEFAULT_VERBOSITY
1090am__untar
1091am__tar
1092AMTAR
1093am__leading_dot
1094SET_MAKE
1095AWK
1096mkdir_p
1097MKDIR_P
1098INSTALL_STRIP_PROGRAM
1099STRIP
1100install_sh
1101MAKEINFO
1102AUTOHEADER
1103AUTOMAKE
1104AUTOCONF
1105ACLOCAL
1106VERSION
1107PACKAGE
1108CYGPATH_W
1109am__isrc
1110INSTALL_DATA
1111INSTALL_SCRIPT
1112INSTALL_PROGRAM
1113PACKAGE_LIB_SUBVERSION
1114PACKAGE_RELEASE_DATE
1115PACKAGE_LIB_VERSION_NUMBER
1116PACKAGE_LIB_VERSION
1117PACKAGE_CHANGE_DATE
1118PACKAGE_RELEASE
1119MAGICK_LIBRARY_AGE
1120MAGICK_LIBRARY_REVISION
1121MAGICK_LIBRARY_CURRENT
1122target_os
1123target_vendor
1124target_cpu
1125target
1126host_os
1127host_vendor
1128host_cpu
1129host
1130build_os
1131build_vendor
1132build_cpu
1133build
1134CONFIGURE_ARGS
1135DISTCHECK_CONFIG_FLAGS
1136target_alias
1137host_alias
1138build_alias
1139LIBS
1140ECHO_T
1141ECHO_N
1142ECHO_C
1143DEFS
1144mandir
1145localedir
1146libdir
1147psdir
1148pdfdir
1149dvidir
1150htmldir
1151infodir
1152docdir
1153oldincludedir
1154includedir
1155localstatedir
1156sharedstatedir
1157sysconfdir
1158datadir
1159datarootdir
1160libexecdir
1161sbindir
1162bindir
1163program_transform_name
1164prefix
1165exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001166PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001167PACKAGE_BUGREPORT
1168PACKAGE_STRING
1169PACKAGE_VERSION
1170PACKAGE_TARNAME
1171PACKAGE_NAME
1172PATH_SEPARATOR
1173SHELL'
1174ac_subst_files=''
1175ac_user_opts='
1176enable_option_checking
1177enable_silent_rules
1178enable_dependency_tracking
1179with_gnu_ld
1180with_maximum_compile_warnings
1181with_dmalloc
1182enable_bounds_checking
1183enable_osx_universal_binary
1184with_threads
1185enable_openmp
1186enable_largefile
1187enable_shared
1188enable_static
1189with_pic
1190enable_fast_install
1191enable_libtool_lock
1192with_included_ltdl
1193with_ltdl_include
1194with_ltdl_lib
1195enable_ltdl_install
1196with_modules
1197enable_delegate_build
1198enable_deprecated
1199enable_installed
1200enable_cipher
1201enable_embeddable
1202enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001203enable_assert
1204enable_maintainer_mode
1205enable_ccmalloc
1206enable_efence
1207enable_prof
1208enable_gprof
1209enable_gcov
1210with_method_prefix
1211with_quantum_depth
1212with_cache
1213with_frozenpaths
1214with_magick_plus_plus
1215with_perl
1216with_perl_options
1217with_umem
1218with_libstdc
1219with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001220with_x
cristy3ed852e2009-09-05 21:47:34 +00001221with_zlib
1222with_autotrace
1223with_dps
1224with_djvu
1225with_fftw
1226with_fpx
1227with_fontconfig
1228with_freetype
1229with_gslib
1230with_fontpath
1231with_gs_font_dir
1232with_gvc
1233with_jbig
1234with_jpeg
1235with_jp2
1236with_lcms
1237with_lqr
1238with_openexr
1239with_png
1240with_rsvg
1241with_tiff
1242with_windows_font_dir
1243with_wmf
1244with_xml
1245'
1246 ac_precious_vars='build_alias
1247host_alias
1248target_alias
1249CC
1250CFLAGS
1251LDFLAGS
1252LIBS
1253CPPFLAGS
1254CPP
1255CXX
1256CXXFLAGS
1257CCC
1258PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001259CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001260XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001261AUTOTRACE_CFLAGS
1262AUTOTRACE_LIBS
1263FONTCONFIG_CFLAGS
1264FONTCONFIG_LIBS
1265GVC_CFLAGS
1266GVC_LIBS
1267LQR_CFLAGS
1268LQR_LIBS
1269OPENEXR_CFLAGS
1270OPENEXR_LIBS
1271RSVG_CFLAGS
1272RSVG_LIBS
1273CAIRO_SVG_CFLAGS
1274CAIRO_SVG_LIBS'
1275
1276
1277# Initialize some variables set by options.
1278ac_init_help=
1279ac_init_version=false
1280ac_unrecognized_opts=
1281ac_unrecognized_sep=
1282# The variables have the same names as the options, with
1283# dashes changed to underlines.
1284cache_file=/dev/null
1285exec_prefix=NONE
1286no_create=
1287no_recursion=
1288prefix=NONE
1289program_prefix=NONE
1290program_suffix=NONE
1291program_transform_name=s,x,x,
1292silent=
1293site=
1294srcdir=
1295verbose=
1296x_includes=NONE
1297x_libraries=NONE
1298
1299# Installation directory options.
1300# These are left unexpanded so users can "make install exec_prefix=/foo"
1301# and all the variables that are supposed to be based on exec_prefix
1302# by default will actually change.
1303# Use braces instead of parens because sh, perl, etc. also accept them.
1304# (The list follows the same order as the GNU Coding Standards.)
1305bindir='${exec_prefix}/bin'
1306sbindir='${exec_prefix}/sbin'
1307libexecdir='${exec_prefix}/libexec'
1308datarootdir='${prefix}/share'
1309datadir='${datarootdir}'
1310sysconfdir='${prefix}/etc'
1311sharedstatedir='${prefix}/com'
1312localstatedir='${prefix}/var'
1313includedir='${prefix}/include'
1314oldincludedir='/usr/include'
1315docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1316infodir='${datarootdir}/info'
1317htmldir='${docdir}'
1318dvidir='${docdir}'
1319pdfdir='${docdir}'
1320psdir='${docdir}'
1321libdir='${exec_prefix}/lib'
1322localedir='${datarootdir}/locale'
1323mandir='${datarootdir}/man'
1324
1325ac_prev=
1326ac_dashdash=
1327for ac_option
1328do
1329 # If the previous option needs an argument, assign it.
1330 if test -n "$ac_prev"; then
1331 eval $ac_prev=\$ac_option
1332 ac_prev=
1333 continue
1334 fi
1335
1336 case $ac_option in
1337 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1338 *) ac_optarg=yes ;;
1339 esac
1340
1341 # Accept the important Cygnus configure options, so we can diagnose typos.
1342
1343 case $ac_dashdash$ac_option in
1344 --)
1345 ac_dashdash=yes ;;
1346
1347 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1348 ac_prev=bindir ;;
1349 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1350 bindir=$ac_optarg ;;
1351
1352 -build | --build | --buil | --bui | --bu)
1353 ac_prev=build_alias ;;
1354 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1355 build_alias=$ac_optarg ;;
1356
1357 -cache-file | --cache-file | --cache-fil | --cache-fi \
1358 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1359 ac_prev=cache_file ;;
1360 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1361 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1362 cache_file=$ac_optarg ;;
1363
1364 --config-cache | -C)
1365 cache_file=config.cache ;;
1366
1367 -datadir | --datadir | --datadi | --datad)
1368 ac_prev=datadir ;;
1369 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1370 datadir=$ac_optarg ;;
1371
1372 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1373 | --dataroo | --dataro | --datar)
1374 ac_prev=datarootdir ;;
1375 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1376 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1377 datarootdir=$ac_optarg ;;
1378
1379 -disable-* | --disable-*)
1380 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1381 # Reject names that are not valid shell variable names.
1382 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001383 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001384 ac_useropt_orig=$ac_useropt
1385 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1386 case $ac_user_opts in
1387 *"
1388"enable_$ac_useropt"
1389"*) ;;
1390 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1391 ac_unrecognized_sep=', ';;
1392 esac
1393 eval enable_$ac_useropt=no ;;
1394
1395 -docdir | --docdir | --docdi | --doc | --do)
1396 ac_prev=docdir ;;
1397 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1398 docdir=$ac_optarg ;;
1399
1400 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1401 ac_prev=dvidir ;;
1402 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1403 dvidir=$ac_optarg ;;
1404
1405 -enable-* | --enable-*)
1406 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1407 # Reject names that are not valid shell variable names.
1408 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001409 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001410 ac_useropt_orig=$ac_useropt
1411 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1412 case $ac_user_opts in
1413 *"
1414"enable_$ac_useropt"
1415"*) ;;
1416 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1417 ac_unrecognized_sep=', ';;
1418 esac
1419 eval enable_$ac_useropt=\$ac_optarg ;;
1420
1421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1423 | --exec | --exe | --ex)
1424 ac_prev=exec_prefix ;;
1425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1427 | --exec=* | --exe=* | --ex=*)
1428 exec_prefix=$ac_optarg ;;
1429
1430 -gas | --gas | --ga | --g)
1431 # Obsolete; use --with-gas.
1432 with_gas=yes ;;
1433
1434 -help | --help | --hel | --he | -h)
1435 ac_init_help=long ;;
1436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1437 ac_init_help=recursive ;;
1438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1439 ac_init_help=short ;;
1440
1441 -host | --host | --hos | --ho)
1442 ac_prev=host_alias ;;
1443 -host=* | --host=* | --hos=* | --ho=*)
1444 host_alias=$ac_optarg ;;
1445
1446 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1447 ac_prev=htmldir ;;
1448 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1449 | --ht=*)
1450 htmldir=$ac_optarg ;;
1451
1452 -includedir | --includedir | --includedi | --included | --include \
1453 | --includ | --inclu | --incl | --inc)
1454 ac_prev=includedir ;;
1455 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1456 | --includ=* | --inclu=* | --incl=* | --inc=*)
1457 includedir=$ac_optarg ;;
1458
1459 -infodir | --infodir | --infodi | --infod | --info | --inf)
1460 ac_prev=infodir ;;
1461 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1462 infodir=$ac_optarg ;;
1463
1464 -libdir | --libdir | --libdi | --libd)
1465 ac_prev=libdir ;;
1466 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1467 libdir=$ac_optarg ;;
1468
1469 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1470 | --libexe | --libex | --libe)
1471 ac_prev=libexecdir ;;
1472 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1473 | --libexe=* | --libex=* | --libe=*)
1474 libexecdir=$ac_optarg ;;
1475
1476 -localedir | --localedir | --localedi | --localed | --locale)
1477 ac_prev=localedir ;;
1478 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1479 localedir=$ac_optarg ;;
1480
1481 -localstatedir | --localstatedir | --localstatedi | --localstated \
1482 | --localstate | --localstat | --localsta | --localst | --locals)
1483 ac_prev=localstatedir ;;
1484 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1485 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1486 localstatedir=$ac_optarg ;;
1487
1488 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1489 ac_prev=mandir ;;
1490 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1491 mandir=$ac_optarg ;;
1492
1493 -nfp | --nfp | --nf)
1494 # Obsolete; use --without-fp.
1495 with_fp=no ;;
1496
1497 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1498 | --no-cr | --no-c | -n)
1499 no_create=yes ;;
1500
1501 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1502 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1503 no_recursion=yes ;;
1504
1505 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1506 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1507 | --oldin | --oldi | --old | --ol | --o)
1508 ac_prev=oldincludedir ;;
1509 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1510 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1511 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1512 oldincludedir=$ac_optarg ;;
1513
1514 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1515 ac_prev=prefix ;;
1516 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1517 prefix=$ac_optarg ;;
1518
1519 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1520 | --program-pre | --program-pr | --program-p)
1521 ac_prev=program_prefix ;;
1522 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1523 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1524 program_prefix=$ac_optarg ;;
1525
1526 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1527 | --program-suf | --program-su | --program-s)
1528 ac_prev=program_suffix ;;
1529 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1530 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1531 program_suffix=$ac_optarg ;;
1532
1533 -program-transform-name | --program-transform-name \
1534 | --program-transform-nam | --program-transform-na \
1535 | --program-transform-n | --program-transform- \
1536 | --program-transform | --program-transfor \
1537 | --program-transfo | --program-transf \
1538 | --program-trans | --program-tran \
1539 | --progr-tra | --program-tr | --program-t)
1540 ac_prev=program_transform_name ;;
1541 -program-transform-name=* | --program-transform-name=* \
1542 | --program-transform-nam=* | --program-transform-na=* \
1543 | --program-transform-n=* | --program-transform-=* \
1544 | --program-transform=* | --program-transfor=* \
1545 | --program-transfo=* | --program-transf=* \
1546 | --program-trans=* | --program-tran=* \
1547 | --progr-tra=* | --program-tr=* | --program-t=*)
1548 program_transform_name=$ac_optarg ;;
1549
1550 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1551 ac_prev=pdfdir ;;
1552 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1553 pdfdir=$ac_optarg ;;
1554
1555 -psdir | --psdir | --psdi | --psd | --ps)
1556 ac_prev=psdir ;;
1557 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1558 psdir=$ac_optarg ;;
1559
1560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1561 | -silent | --silent | --silen | --sile | --sil)
1562 silent=yes ;;
1563
1564 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1565 ac_prev=sbindir ;;
1566 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1567 | --sbi=* | --sb=*)
1568 sbindir=$ac_optarg ;;
1569
1570 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1571 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1572 | --sharedst | --shareds | --shared | --share | --shar \
1573 | --sha | --sh)
1574 ac_prev=sharedstatedir ;;
1575 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1576 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1577 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1578 | --sha=* | --sh=*)
1579 sharedstatedir=$ac_optarg ;;
1580
1581 -site | --site | --sit)
1582 ac_prev=site ;;
1583 -site=* | --site=* | --sit=*)
1584 site=$ac_optarg ;;
1585
1586 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1587 ac_prev=srcdir ;;
1588 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1589 srcdir=$ac_optarg ;;
1590
1591 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1592 | --syscon | --sysco | --sysc | --sys | --sy)
1593 ac_prev=sysconfdir ;;
1594 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1595 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1596 sysconfdir=$ac_optarg ;;
1597
1598 -target | --target | --targe | --targ | --tar | --ta | --t)
1599 ac_prev=target_alias ;;
1600 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1601 target_alias=$ac_optarg ;;
1602
1603 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1604 verbose=yes ;;
1605
1606 -version | --version | --versio | --versi | --vers | -V)
1607 ac_init_version=: ;;
1608
1609 -with-* | --with-*)
1610 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1611 # Reject names that are not valid shell variable names.
1612 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001613 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001614 ac_useropt_orig=$ac_useropt
1615 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1616 case $ac_user_opts in
1617 *"
1618"with_$ac_useropt"
1619"*) ;;
1620 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1621 ac_unrecognized_sep=', ';;
1622 esac
1623 eval with_$ac_useropt=\$ac_optarg ;;
1624
1625 -without-* | --without-*)
1626 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1627 # Reject names that are not valid shell variable names.
1628 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001629 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001630 ac_useropt_orig=$ac_useropt
1631 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1632 case $ac_user_opts in
1633 *"
1634"with_$ac_useropt"
1635"*) ;;
1636 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1637 ac_unrecognized_sep=', ';;
1638 esac
1639 eval with_$ac_useropt=no ;;
1640
1641 --x)
1642 # Obsolete; use --with-x.
1643 with_x=yes ;;
1644
1645 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1646 | --x-incl | --x-inc | --x-in | --x-i)
1647 ac_prev=x_includes ;;
1648 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1649 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1650 x_includes=$ac_optarg ;;
1651
1652 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1653 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1654 ac_prev=x_libraries ;;
1655 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1656 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1657 x_libraries=$ac_optarg ;;
1658
cristy8b350f62009-11-15 23:12:43 +00001659 -*) as_fn_error "unrecognized option: \`$ac_option'
1660Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001661 ;;
1662
1663 *=*)
1664 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1665 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001666 case $ac_envvar in #(
1667 '' | [0-9]* | *[!_$as_cr_alnum]* )
1668 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1669 esac
cristy3ed852e2009-09-05 21:47:34 +00001670 eval $ac_envvar=\$ac_optarg
1671 export $ac_envvar ;;
1672
1673 *)
1674 # FIXME: should be removed in autoconf 3.0.
1675 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1676 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1677 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1678 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1679 ;;
1680
1681 esac
1682done
1683
1684if test -n "$ac_prev"; then
1685 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001686 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001687fi
1688
1689if test -n "$ac_unrecognized_opts"; then
1690 case $enable_option_checking in
1691 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001692 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001693 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1694 esac
1695fi
1696
1697# Check all directory arguments for consistency.
1698for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1699 datadir sysconfdir sharedstatedir localstatedir includedir \
1700 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1701 libdir localedir mandir
1702do
1703 eval ac_val=\$$ac_var
1704 # Remove trailing slashes.
1705 case $ac_val in
1706 */ )
1707 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1708 eval $ac_var=\$ac_val;;
1709 esac
1710 # Be sure to have absolute directory names.
1711 case $ac_val in
1712 [\\/$]* | ?:[\\/]* ) continue;;
1713 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1714 esac
cristy8b350f62009-11-15 23:12:43 +00001715 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001716done
1717
1718# There might be people who depend on the old broken behavior: `$host'
1719# used to hold the argument of --host etc.
1720# FIXME: To remove some day.
1721build=$build_alias
1722host=$host_alias
1723target=$target_alias
1724
1725# FIXME: To remove some day.
1726if test "x$host_alias" != x; then
1727 if test "x$build_alias" = x; then
1728 cross_compiling=maybe
1729 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1730 If a cross compiler is detected then cross compile mode will be used." >&2
1731 elif test "x$build_alias" != "x$host_alias"; then
1732 cross_compiling=yes
1733 fi
1734fi
1735
1736ac_tool_prefix=
1737test -n "$host_alias" && ac_tool_prefix=$host_alias-
1738
1739test "$silent" = yes && exec 6>/dev/null
1740
1741
1742ac_pwd=`pwd` && test -n "$ac_pwd" &&
1743ac_ls_di=`ls -di .` &&
1744ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001745 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001746test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001747 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001748
1749
1750# Find the source files, if location was not specified.
1751if test -z "$srcdir"; then
1752 ac_srcdir_defaulted=yes
1753 # Try the directory containing this script, then the parent directory.
1754 ac_confdir=`$as_dirname -- "$as_myself" ||
1755$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1756 X"$as_myself" : 'X\(//\)[^/]' \| \
1757 X"$as_myself" : 'X\(//\)$' \| \
1758 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1759$as_echo X"$as_myself" |
1760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1761 s//\1/
1762 q
1763 }
1764 /^X\(\/\/\)[^/].*/{
1765 s//\1/
1766 q
1767 }
1768 /^X\(\/\/\)$/{
1769 s//\1/
1770 q
1771 }
1772 /^X\(\/\).*/{
1773 s//\1/
1774 q
1775 }
1776 s/.*/./; q'`
1777 srcdir=$ac_confdir
1778 if test ! -r "$srcdir/$ac_unique_file"; then
1779 srcdir=..
1780 fi
1781else
1782 ac_srcdir_defaulted=no
1783fi
1784if test ! -r "$srcdir/$ac_unique_file"; then
1785 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001786 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001787fi
1788ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1789ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001790 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001791 pwd)`
1792# When building in place, set srcdir=.
1793if test "$ac_abs_confdir" = "$ac_pwd"; then
1794 srcdir=.
1795fi
1796# Remove unnecessary trailing slashes from srcdir.
1797# Double slashes in file names in object file debugging info
1798# mess up M-x gdb in Emacs.
1799case $srcdir in
1800*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1801esac
1802for ac_var in $ac_precious_vars; do
1803 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1804 eval ac_env_${ac_var}_value=\$${ac_var}
1805 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1806 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1807done
1808
1809#
1810# Report the --help message.
1811#
1812if test "$ac_init_help" = "long"; then
1813 # Omit some internal or obsolete options to make the list less imposing.
1814 # This message is too long to be a string in the A/UX 3.1 sh.
1815 cat <<_ACEOF
cristyd934d102009-10-10 12:55:13 +00001816\`configure' configures ImageMagick 6.5.7 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001817
1818Usage: $0 [OPTION]... [VAR=VALUE]...
1819
1820To assign environment variables (e.g., CC, CFLAGS...), specify them as
1821VAR=VALUE. See below for descriptions of some of the useful variables.
1822
1823Defaults for the options are specified in brackets.
1824
1825Configuration:
1826 -h, --help display this help and exit
1827 --help=short display options specific to this package
1828 --help=recursive display the short help of all the included packages
1829 -V, --version display version information and exit
1830 -q, --quiet, --silent do not print \`checking...' messages
1831 --cache-file=FILE cache test results in FILE [disabled]
1832 -C, --config-cache alias for \`--cache-file=config.cache'
1833 -n, --no-create do not create output files
1834 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1835
1836Installation directories:
1837 --prefix=PREFIX install architecture-independent files in PREFIX
1838 [$ac_default_prefix]
1839 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1840 [PREFIX]
1841
1842By default, \`make install' will install all the files in
1843\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1844an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1845for instance \`--prefix=\$HOME'.
1846
1847For better control, use the options below.
1848
1849Fine tuning of the installation directories:
1850 --bindir=DIR user executables [EPREFIX/bin]
1851 --sbindir=DIR system admin executables [EPREFIX/sbin]
1852 --libexecdir=DIR program executables [EPREFIX/libexec]
1853 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1854 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1855 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1856 --libdir=DIR object code libraries [EPREFIX/lib]
1857 --includedir=DIR C header files [PREFIX/include]
1858 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1859 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1860 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1861 --infodir=DIR info documentation [DATAROOTDIR/info]
1862 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1863 --mandir=DIR man documentation [DATAROOTDIR/man]
1864 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1865 --htmldir=DIR html documentation [DOCDIR]
1866 --dvidir=DIR dvi documentation [DOCDIR]
1867 --pdfdir=DIR pdf documentation [DOCDIR]
1868 --psdir=DIR ps documentation [DOCDIR]
1869_ACEOF
1870
1871 cat <<\_ACEOF
1872
1873Program names:
1874 --program-prefix=PREFIX prepend PREFIX to installed program names
1875 --program-suffix=SUFFIX append SUFFIX to installed program names
1876 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1877
1878X features:
1879 --x-includes=DIR X include files are in DIR
1880 --x-libraries=DIR X library files are in DIR
1881
1882System types:
1883 --build=BUILD configure for building on BUILD [guessed]
1884 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1885 --target=TARGET configure for building compilers for TARGET [HOST]
1886_ACEOF
1887fi
1888
1889if test -n "$ac_init_help"; then
1890 case $ac_init_help in
cristyd934d102009-10-10 12:55:13 +00001891 short | recursive ) echo "Configuration of ImageMagick 6.5.7:";;
cristy3ed852e2009-09-05 21:47:34 +00001892 esac
1893 cat <<\_ACEOF
1894
1895Optional Features:
1896 --disable-option-checking ignore unrecognized --enable/--with options
1897 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1898 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1899 --enable-silent-rules less verbose build output (undo: `make V=1')
1900 --disable-silent-rules verbose build output (undo: `make V=0')
1901 --disable-dependency-tracking speeds up one-time build
1902 --enable-dependency-tracking do not reject slow dependency extractors
1903 --bounds-checking enable run-time bounds-checking
1904 --enable-osx-universal-binary
1905 build universal binary on OS X [default=no]
1906 --disable-openmp do not use OpenMP
1907 --disable-largefile omit support for large files
1908 --enable-shared[=PKGS] build shared libraries [default=yes]
1909 --enable-static[=PKGS] build static libraries [default=yes]
1910 --enable-fast-install[=PKGS]
1911 optimize for fast installation [default=yes]
1912 --disable-libtool-lock avoid locking (might break parallel builds)
1913 --enable-ltdl-install install libltdl
1914 --enable-delegate-build look for delegate libraries in build directory
1915 --disable-deprecated exclude deprecated methods in MagickCore and
1916 MagickWand API's
1917 --disable-installed Formally install ImageMagick under PREFIX
1918 --disable-cipher disable enciphering and deciphering image pixels
1919 --enable-embeddable enable self-contained, embeddable,
1920 zero-configuration ImageMagick
1921 --enable-hdri accurately represent the wide range of intensity
1922 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001923 --disable-assert disable assert() statements in build
1924 --enable-maintainer-mode enable make rules and dependencies not useful
1925 (and sometimes confusing) to the casual installer
1926 --enable-ccmalloc enable 'ccmalloc' memory debug support
1927 --enable-efence enable 'efence' memory debug support
1928 --enable-prof enable 'prof' profiling support
1929 --enable-gprof enable 'gprof' profiling support
1930 --enable-gcov enable 'gcov' profiling support
1931
1932Optional Packages:
1933 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1934 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1935 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1936 --without-maximum-compile-warnings
1937 Disable maximum warning verbosity
1938 --with-dmalloc use dmalloc, as in
1939 http://www.dmalloc.com/dmalloc.tar.gz
1940 --without-threads disable threads support
1941 --with-pic try to use only PIC/non-PIC objects [default=use
1942 both]
1943 --with-included-ltdl use the GNU ltdl sources included here
1944 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1945 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1946 --with-modules enable building dynamically loadable modules
1947 --with-method-prefix=PREFIX
1948 prefix MagickCore API methods
1949 --with-quantum-depth=DEPTH
1950 number of bits in a pixel quantum (default 16)
1951 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1952 memory)
1953 --with-frozenpaths freeze delegate paths
1954 --without-magick-plus-plus
1955 disable build/install of Magick++
1956 --with-perl enable build/install of PerlMagick
1957 --with-perl-options=OPTIONS
1958 options to pass on command-line when generating
1959 PerlMagick's build file
1960 --with-umem enable umem memory allocation library support
1961 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1962 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001963 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001964 --without-zlib disable ZLIB support
1965 --with-autotrace enable autotrace support
1966 --without-dps disable Display Postscript support
1967 --without-djvu disable DjVu support
1968 --without-fftw disable FFTW support
1969 --without-fpx disable FlashPIX support
1970 --without-fontconfig disable fontconfig support
1971 --without-freetype disable Freetype support
1972 --without-gslib enable Ghostscript library support
1973 --with-fontpath=DIR prepend to default font search path
1974 --with-gs-font-dir=DIR Ghostscript font directory
1975 --without-gvc disable GVC support
1976 --without-jbig disable JBIG support
1977 --without-jpeg disable JPEG support
1978 --without-jp2 disable JPEG-2000 support
1979 --without-lcms disable LCMS support
1980 --without-lqr disable Liquid Rescale support (experimental)
1981 --without-openexr disable OpenEXR support
1982 --without-png disable PNG support
1983 --without-rsvg disable RSVG support
1984 --without-tiff disable TIFF support
1985 --with-windows-font-dir=DIR
1986 directory containing MS-Windows fonts
1987 --without-wmf disable WMF support
1988 --without-xml disable XML support
1989
1990Some influential environment variables:
1991 CC C compiler command
1992 CFLAGS C compiler flags
1993 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1994 nonstandard directory <lib dir>
1995 LIBS libraries to pass to the linker, e.g. -l<library>
1996 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1997 you have headers in a nonstandard directory <include dir>
1998 CPP C preprocessor
1999 CXX C++ compiler command
2000 CXXFLAGS C++ compiler flags
2001 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002002 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002003 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002004 AUTOTRACE_CFLAGS
2005 C compiler flags for AUTOTRACE, overriding pkg-config
2006 AUTOTRACE_LIBS
2007 linker flags for AUTOTRACE, overriding pkg-config
2008 FONTCONFIG_CFLAGS
2009 C compiler flags for FONTCONFIG, overriding pkg-config
2010 FONTCONFIG_LIBS
2011 linker flags for FONTCONFIG, overriding pkg-config
2012 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2013 GVC_LIBS linker flags for GVC, overriding pkg-config
2014 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2015 LQR_LIBS linker flags for LQR, overriding pkg-config
2016 OPENEXR_CFLAGS
2017 C compiler flags for OPENEXR, overriding pkg-config
2018 OPENEXR_LIBS
2019 linker flags for OPENEXR, overriding pkg-config
2020 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2021 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2022 CAIRO_SVG_CFLAGS
2023 C compiler flags for CAIRO_SVG, overriding pkg-config
2024 CAIRO_SVG_LIBS
2025 linker flags for CAIRO_SVG, overriding pkg-config
2026
2027Use these variables to override the choices made by `configure' or to help
2028it to find libraries and programs with nonstandard names/locations.
2029
2030Report bugs to <http://www.imagemagick.org>.
2031_ACEOF
2032ac_status=$?
2033fi
2034
2035if test "$ac_init_help" = "recursive"; then
2036 # If there are subdirs, report their specific --help.
2037 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2038 test -d "$ac_dir" ||
2039 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2040 continue
2041 ac_builddir=.
2042
2043case "$ac_dir" in
2044.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2045*)
2046 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2047 # A ".." for each directory in $ac_dir_suffix.
2048 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2049 case $ac_top_builddir_sub in
2050 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2051 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2052 esac ;;
2053esac
2054ac_abs_top_builddir=$ac_pwd
2055ac_abs_builddir=$ac_pwd$ac_dir_suffix
2056# for backward compatibility:
2057ac_top_builddir=$ac_top_build_prefix
2058
2059case $srcdir in
2060 .) # We are building in place.
2061 ac_srcdir=.
2062 ac_top_srcdir=$ac_top_builddir_sub
2063 ac_abs_top_srcdir=$ac_pwd ;;
2064 [\\/]* | ?:[\\/]* ) # Absolute name.
2065 ac_srcdir=$srcdir$ac_dir_suffix;
2066 ac_top_srcdir=$srcdir
2067 ac_abs_top_srcdir=$srcdir ;;
2068 *) # Relative name.
2069 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2070 ac_top_srcdir=$ac_top_build_prefix$srcdir
2071 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2072esac
2073ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2074
2075 cd "$ac_dir" || { ac_status=$?; continue; }
2076 # Check for guested configure.
2077 if test -f "$ac_srcdir/configure.gnu"; then
2078 echo &&
2079 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2080 elif test -f "$ac_srcdir/configure"; then
2081 echo &&
2082 $SHELL "$ac_srcdir/configure" --help=recursive
2083 else
2084 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2085 fi || ac_status=$?
2086 cd "$ac_pwd" || { ac_status=$?; break; }
2087 done
2088fi
2089
2090test -n "$ac_init_help" && exit $ac_status
2091if $ac_init_version; then
2092 cat <<\_ACEOF
cristyd934d102009-10-10 12:55:13 +00002093ImageMagick configure 6.5.7
cristy8b350f62009-11-15 23:12:43 +00002094generated by GNU Autoconf 2.64
cristy3ed852e2009-09-05 21:47:34 +00002095
cristy8b350f62009-11-15 23:12:43 +00002096Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002097This configure script is free software; the Free Software Foundation
2098gives unlimited permission to copy, distribute and modify it.
2099_ACEOF
2100 exit
2101fi
cristy8b350f62009-11-15 23:12:43 +00002102
2103## ------------------------ ##
2104## Autoconf initialization. ##
2105## ------------------------ ##
2106
2107# ac_fn_c_try_compile LINENO
2108# --------------------------
2109# Try to compile conftest.$ac_ext, and return whether this succeeded.
2110ac_fn_c_try_compile ()
2111{
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 rm -f conftest.$ac_objext
2114 if { { ac_try="$ac_compile"
2115case "(($ac_try" in
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2118esac
2119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120$as_echo "$ac_try_echo"; } >&5
2121 (eval "$ac_compile") 2>conftest.err
2122 ac_status=$?
2123 if test -s conftest.err; then
2124 grep -v '^ *+' conftest.err >conftest.er1
2125 cat conftest.er1 >&5
2126 mv -f conftest.er1 conftest.err
2127 fi
2128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129 test $ac_status = 0; } && {
2130 test -z "$ac_c_werror_flag" ||
2131 test ! -s conftest.err
2132 } && test -s conftest.$ac_objext; then :
2133 ac_retval=0
2134else
2135 $as_echo "$as_me: failed program was:" >&5
2136sed 's/^/| /' conftest.$ac_ext >&5
2137
2138 ac_retval=1
2139fi
2140 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2141 return $ac_retval
2142
2143} # ac_fn_c_try_compile
2144
2145# ac_fn_c_try_cpp LINENO
2146# ----------------------
2147# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2148ac_fn_c_try_cpp ()
2149{
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 if { { ac_try="$ac_cpp conftest.$ac_ext"
2152case "(($ac_try" in
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2155esac
2156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2157$as_echo "$ac_try_echo"; } >&5
2158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2159 ac_status=$?
2160 if test -s conftest.err; then
2161 grep -v '^ *+' conftest.err >conftest.er1
2162 cat conftest.er1 >&5
2163 mv -f conftest.er1 conftest.err
2164 fi
2165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2166 test $ac_status = 0; } >/dev/null && {
2167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2168 test ! -s conftest.err
2169 }; then :
2170 ac_retval=0
2171else
2172 $as_echo "$as_me: failed program was:" >&5
2173sed 's/^/| /' conftest.$ac_ext >&5
2174
2175 ac_retval=1
2176fi
2177 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2178 return $ac_retval
2179
2180} # ac_fn_c_try_cpp
2181
2182# ac_fn_cxx_try_compile LINENO
2183# ----------------------------
2184# Try to compile conftest.$ac_ext, and return whether this succeeded.
2185ac_fn_cxx_try_compile ()
2186{
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 rm -f conftest.$ac_objext
2189 if { { ac_try="$ac_compile"
2190case "(($ac_try" in
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2193esac
2194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195$as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_compile") 2>conftest.err
2197 ac_status=$?
2198 if test -s conftest.err; then
2199 grep -v '^ *+' conftest.err >conftest.er1
2200 cat conftest.er1 >&5
2201 mv -f conftest.er1 conftest.err
2202 fi
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; } && {
2205 test -z "$ac_cxx_werror_flag" ||
2206 test ! -s conftest.err
2207 } && test -s conftest.$ac_objext; then :
2208 ac_retval=0
2209else
2210 $as_echo "$as_me: failed program was:" >&5
2211sed 's/^/| /' conftest.$ac_ext >&5
2212
2213 ac_retval=1
2214fi
2215 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2216 return $ac_retval
2217
2218} # ac_fn_cxx_try_compile
2219
2220# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2221# -------------------------------------------------------
2222# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2223# the include files in INCLUDES and setting the cache variable VAR
2224# accordingly.
2225ac_fn_c_check_header_mongrel ()
2226{
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2230$as_echo_n "checking for $2... " >&6; }
2231if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2232 $as_echo_n "(cached) " >&6
2233fi
2234eval ac_res=\$$3
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236$as_echo "$ac_res" >&6; }
2237else
2238 # Is the header compilable?
2239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2240$as_echo_n "checking $2 usability... " >&6; }
2241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242/* end confdefs.h. */
2243$4
2244#include <$2>
2245_ACEOF
2246if ac_fn_c_try_compile "$LINENO"; then :
2247 ac_header_compiler=yes
2248else
2249 ac_header_compiler=no
2250fi
2251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2253$as_echo "$ac_header_compiler" >&6; }
2254
2255# Is the header present?
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2257$as_echo_n "checking $2 presence... " >&6; }
2258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259/* end confdefs.h. */
2260#include <$2>
2261_ACEOF
2262if ac_fn_c_try_cpp "$LINENO"; then :
2263 ac_header_preproc=yes
2264else
2265 ac_header_preproc=no
2266fi
2267rm -f conftest.err conftest.$ac_ext
2268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2269$as_echo "$ac_header_preproc" >&6; }
2270
2271# So? What about this header?
2272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2273 yes:no: )
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2275$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2277$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2278 ;;
2279 no:yes:* )
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2281$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2283$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2285$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2287$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2289$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2290( cat <<\_ASBOX
2291## ----------------------------------------- ##
2292## Report this to http://www.imagemagick.org ##
2293## ----------------------------------------- ##
2294_ASBOX
2295 ) | sed "s/^/$as_me: WARNING: /" >&2
2296 ;;
2297esac
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2299$as_echo_n "checking for $2... " >&6; }
2300if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2301 $as_echo_n "(cached) " >&6
2302else
2303 eval "$3=\$ac_header_compiler"
2304fi
2305eval ac_res=\$$3
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307$as_echo "$ac_res" >&6; }
2308fi
2309 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2310
2311} # ac_fn_c_check_header_mongrel
2312
2313# ac_fn_c_try_run LINENO
2314# ----------------------
2315# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2316# that executables *can* be run.
2317ac_fn_c_try_run ()
2318{
2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2320 if { { ac_try="$ac_link"
2321case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2324esac
2325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2326$as_echo "$ac_try_echo"; } >&5
2327 (eval "$ac_link") 2>&5
2328 ac_status=$?
2329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2330 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2331 { { case "(($ac_try" in
2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2334esac
2335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2336$as_echo "$ac_try_echo"; } >&5
2337 (eval "$ac_try") 2>&5
2338 ac_status=$?
2339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340 test $ac_status = 0; }; }; then :
2341 ac_retval=0
2342else
2343 $as_echo "$as_me: program exited with status $ac_status" >&5
2344 $as_echo "$as_me: failed program was:" >&5
2345sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 ac_retval=$ac_status
2348fi
2349 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2351 return $ac_retval
2352
2353} # ac_fn_c_try_run
2354
2355# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2356# -------------------------------------------------------
2357# Tests whether HEADER exists and can be compiled using the include files in
2358# INCLUDES, setting the cache variable VAR accordingly.
2359ac_fn_c_check_header_compile ()
2360{
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2363$as_echo_n "checking for $2... " >&6; }
2364if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2365 $as_echo_n "(cached) " >&6
2366else
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368/* end confdefs.h. */
2369$4
2370#include <$2>
2371_ACEOF
2372if ac_fn_c_try_compile "$LINENO"; then :
2373 eval "$3=yes"
2374else
2375 eval "$3=no"
2376fi
2377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378fi
2379eval ac_res=\$$3
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381$as_echo "$ac_res" >&6; }
2382 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2383
2384} # ac_fn_c_check_header_compile
2385
2386# ac_fn_c_try_link LINENO
2387# -----------------------
2388# Try to link conftest.$ac_ext, and return whether this succeeded.
2389ac_fn_c_try_link ()
2390{
2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392 rm -f conftest.$ac_objext conftest$ac_exeext
2393 if { { ac_try="$ac_link"
2394case "(($ac_try" in
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2397esac
2398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2399$as_echo "$ac_try_echo"; } >&5
2400 (eval "$ac_link") 2>conftest.err
2401 ac_status=$?
2402 if test -s conftest.err; then
2403 grep -v '^ *+' conftest.err >conftest.er1
2404 cat conftest.er1 >&5
2405 mv -f conftest.er1 conftest.err
2406 fi
2407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2408 test $ac_status = 0; } && {
2409 test -z "$ac_c_werror_flag" ||
2410 test ! -s conftest.err
2411 } && test -s conftest$ac_exeext && {
2412 test "$cross_compiling" = yes ||
2413 $as_test_x conftest$ac_exeext
2414 }; then :
2415 ac_retval=0
2416else
2417 $as_echo "$as_me: failed program was:" >&5
2418sed 's/^/| /' conftest.$ac_ext >&5
2419
2420 ac_retval=1
2421fi
2422 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2423 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2424 # interfere with the next link command; also delete a directory that is
2425 # left behind by Apple's compiler. We do this before executing the actions.
2426 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2427 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2428 return $ac_retval
2429
2430} # ac_fn_c_try_link
2431
2432# ac_fn_c_check_func LINENO FUNC VAR
2433# ----------------------------------
2434# Tests whether FUNC exists, setting the cache variable VAR accordingly
2435ac_fn_c_check_func ()
2436{
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2439$as_echo_n "checking for $2... " >&6; }
2440if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2441 $as_echo_n "(cached) " >&6
2442else
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444/* end confdefs.h. */
2445/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2447#define $2 innocuous_$2
2448
2449/* System header to define __stub macros and hopefully few prototypes,
2450 which can conflict with char $2 (); below.
2451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2452 <limits.h> exists even on freestanding compilers. */
2453
2454#ifdef __STDC__
2455# include <limits.h>
2456#else
2457# include <assert.h>
2458#endif
2459
2460#undef $2
2461
2462/* Override any GCC internal prototype to avoid an error.
2463 Use char because int might match the return type of a GCC
2464 builtin and then its argument prototype would still apply. */
2465#ifdef __cplusplus
2466extern "C"
2467#endif
2468char $2 ();
2469/* The GNU C library defines this for functions which it implements
2470 to always fail with ENOSYS. Some functions are actually named
2471 something starting with __ and the normal name is an alias. */
2472#if defined __stub_$2 || defined __stub___$2
2473choke me
2474#endif
2475
2476int
2477main ()
2478{
2479return $2 ();
2480 ;
2481 return 0;
2482}
2483_ACEOF
2484if ac_fn_c_try_link "$LINENO"; then :
2485 eval "$3=yes"
2486else
2487 eval "$3=no"
2488fi
2489rm -f core conftest.err conftest.$ac_objext \
2490 conftest$ac_exeext conftest.$ac_ext
2491fi
2492eval ac_res=\$$3
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2494$as_echo "$ac_res" >&6; }
2495 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2496
2497} # ac_fn_c_check_func
2498
2499# ac_fn_cxx_try_cpp LINENO
2500# ------------------------
2501# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2502ac_fn_cxx_try_cpp ()
2503{
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 if { { ac_try="$ac_cpp conftest.$ac_ext"
2506case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2509esac
2510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2511$as_echo "$ac_try_echo"; } >&5
2512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2513 ac_status=$?
2514 if test -s conftest.err; then
2515 grep -v '^ *+' conftest.err >conftest.er1
2516 cat conftest.er1 >&5
2517 mv -f conftest.er1 conftest.err
2518 fi
2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2520 test $ac_status = 0; } >/dev/null && {
2521 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2522 test ! -s conftest.err
2523 }; then :
2524 ac_retval=0
2525else
2526 $as_echo "$as_me: failed program was:" >&5
2527sed 's/^/| /' conftest.$ac_ext >&5
2528
2529 ac_retval=1
2530fi
2531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2532 return $ac_retval
2533
2534} # ac_fn_cxx_try_cpp
2535
2536# ac_fn_cxx_try_link LINENO
2537# -------------------------
2538# Try to link conftest.$ac_ext, and return whether this succeeded.
2539ac_fn_cxx_try_link ()
2540{
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 rm -f conftest.$ac_objext conftest$ac_exeext
2543 if { { ac_try="$ac_link"
2544case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2547esac
2548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2549$as_echo "$ac_try_echo"; } >&5
2550 (eval "$ac_link") 2>conftest.err
2551 ac_status=$?
2552 if test -s conftest.err; then
2553 grep -v '^ *+' conftest.err >conftest.er1
2554 cat conftest.er1 >&5
2555 mv -f conftest.er1 conftest.err
2556 fi
2557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2558 test $ac_status = 0; } && {
2559 test -z "$ac_cxx_werror_flag" ||
2560 test ! -s conftest.err
2561 } && test -s conftest$ac_exeext && {
2562 test "$cross_compiling" = yes ||
2563 $as_test_x conftest$ac_exeext
2564 }; then :
2565 ac_retval=0
2566else
2567 $as_echo "$as_me: failed program was:" >&5
2568sed 's/^/| /' conftest.$ac_ext >&5
2569
2570 ac_retval=1
2571fi
2572 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2573 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2574 # interfere with the next link command; also delete a directory that is
2575 # left behind by Apple's compiler. We do this before executing the actions.
2576 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2578 return $ac_retval
2579
2580} # ac_fn_cxx_try_link
2581
2582# ac_fn_c_check_decl LINENO SYMBOL VAR
2583# ------------------------------------
2584# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2585ac_fn_c_check_decl ()
2586{
2587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2589$as_echo_n "checking whether $2 is declared... " >&6; }
2590if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2591 $as_echo_n "(cached) " >&6
2592else
2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594/* end confdefs.h. */
2595$4
2596int
2597main ()
2598{
2599#ifndef $2
2600 (void) $2;
2601#endif
2602
2603 ;
2604 return 0;
2605}
2606_ACEOF
2607if ac_fn_c_try_compile "$LINENO"; then :
2608 eval "$3=yes"
2609else
2610 eval "$3=no"
2611fi
2612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613fi
2614eval ac_res=\$$3
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2616$as_echo "$ac_res" >&6; }
2617 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2618
2619} # ac_fn_c_check_decl
2620
2621# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2622# -------------------------------------------
2623# Tests whether TYPE exists after having included INCLUDES, setting cache
2624# variable VAR accordingly.
2625ac_fn_c_check_type ()
2626{
2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2629$as_echo_n "checking for $2... " >&6; }
2630if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2631 $as_echo_n "(cached) " >&6
2632else
2633 eval "$3=no"
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635/* end confdefs.h. */
2636$4
2637int
2638main ()
2639{
2640if (sizeof ($2))
2641 return 0;
2642 ;
2643 return 0;
2644}
2645_ACEOF
2646if ac_fn_c_try_compile "$LINENO"; then :
2647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2648/* end confdefs.h. */
2649$4
2650int
2651main ()
2652{
2653if (sizeof (($2)))
2654 return 0;
2655 ;
2656 return 0;
2657}
2658_ACEOF
2659if ac_fn_c_try_compile "$LINENO"; then :
2660
2661else
2662 eval "$3=yes"
2663fi
2664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665fi
2666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667fi
2668eval ac_res=\$$3
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2670$as_echo "$ac_res" >&6; }
2671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2672
2673} # ac_fn_c_check_type
2674
2675# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2676# --------------------------------------------
2677# Tries to find the compile-time value of EXPR in a program that includes
2678# INCLUDES, setting VAR accordingly. Returns whether the value could be
2679# computed
2680ac_fn_c_compute_int ()
2681{
2682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2683 if test "$cross_compiling" = yes; then
2684 # Depending upon the size, compute the lo and hi bounds.
2685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2686/* end confdefs.h. */
2687$4
2688int
2689main ()
2690{
2691static int test_array [1 - 2 * !(($2) >= 0)];
2692test_array [0] = 0
2693
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698if ac_fn_c_try_compile "$LINENO"; then :
2699 ac_lo=0 ac_mid=0
2700 while :; do
2701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2702/* end confdefs.h. */
2703$4
2704int
2705main ()
2706{
2707static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2708test_array [0] = 0
2709
2710 ;
2711 return 0;
2712}
2713_ACEOF
2714if ac_fn_c_try_compile "$LINENO"; then :
2715 ac_hi=$ac_mid; break
2716else
2717 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2718 if test $ac_lo -le $ac_mid; then
2719 ac_lo= ac_hi=
2720 break
2721 fi
2722 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2723fi
2724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 done
2726else
2727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728/* end confdefs.h. */
2729$4
2730int
2731main ()
2732{
2733static int test_array [1 - 2 * !(($2) < 0)];
2734test_array [0] = 0
2735
2736 ;
2737 return 0;
2738}
2739_ACEOF
2740if ac_fn_c_try_compile "$LINENO"; then :
2741 ac_hi=-1 ac_mid=-1
2742 while :; do
2743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744/* end confdefs.h. */
2745$4
2746int
2747main ()
2748{
2749static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2750test_array [0] = 0
2751
2752 ;
2753 return 0;
2754}
2755_ACEOF
2756if ac_fn_c_try_compile "$LINENO"; then :
2757 ac_lo=$ac_mid; break
2758else
2759 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2760 if test $ac_mid -le $ac_hi; then
2761 ac_lo= ac_hi=
2762 break
2763 fi
2764 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2765fi
2766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767 done
2768else
2769 ac_lo= ac_hi=
2770fi
2771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772fi
2773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774# Binary search between lo and hi bounds.
2775while test "x$ac_lo" != "x$ac_hi"; do
2776 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778/* end confdefs.h. */
2779$4
2780int
2781main ()
2782{
2783static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2784test_array [0] = 0
2785
2786 ;
2787 return 0;
2788}
2789_ACEOF
2790if ac_fn_c_try_compile "$LINENO"; then :
2791 ac_hi=$ac_mid
2792else
2793 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2794fi
2795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796done
2797case $ac_lo in #((
2798?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2799'') ac_retval=1 ;;
2800esac
2801 else
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h. */
2804$4
2805static long int longval () { return $2; }
2806static unsigned long int ulongval () { return $2; }
2807#include <stdio.h>
2808#include <stdlib.h>
2809int
2810main ()
2811{
2812
2813 FILE *f = fopen ("conftest.val", "w");
2814 if (! f)
2815 return 1;
2816 if (($2) < 0)
2817 {
2818 long int i = longval ();
2819 if (i != ($2))
2820 return 1;
2821 fprintf (f, "%ld", i);
2822 }
2823 else
2824 {
2825 unsigned long int i = ulongval ();
2826 if (i != ($2))
2827 return 1;
2828 fprintf (f, "%lu", i);
2829 }
2830 /* Do not output a trailing newline, as this causes \r\n confusion
2831 on some platforms. */
2832 return ferror (f) || fclose (f) != 0;
2833
2834 ;
2835 return 0;
2836}
2837_ACEOF
2838if ac_fn_c_try_run "$LINENO"; then :
2839 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2840else
2841 ac_retval=1
2842fi
2843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2844 conftest.$ac_objext conftest.beam conftest.$ac_ext
2845rm -f conftest.val
2846
2847 fi
2848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2849 return $ac_retval
2850
2851} # ac_fn_c_compute_int
2852
2853# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2854# ---------------------------------------------------------
2855# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2856# the include files in INCLUDES and setting the cache variable VAR
2857# accordingly.
2858ac_fn_cxx_check_header_mongrel ()
2859{
2860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2861 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2863$as_echo_n "checking for $2... " >&6; }
2864if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2865 $as_echo_n "(cached) " >&6
2866fi
2867eval ac_res=\$$3
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2869$as_echo "$ac_res" >&6; }
2870else
2871 # Is the header compilable?
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2873$as_echo_n "checking $2 usability... " >&6; }
2874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875/* end confdefs.h. */
2876$4
2877#include <$2>
2878_ACEOF
2879if ac_fn_cxx_try_compile "$LINENO"; then :
2880 ac_header_compiler=yes
2881else
2882 ac_header_compiler=no
2883fi
2884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2886$as_echo "$ac_header_compiler" >&6; }
2887
2888# Is the header present?
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2890$as_echo_n "checking $2 presence... " >&6; }
2891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892/* end confdefs.h. */
2893#include <$2>
2894_ACEOF
2895if ac_fn_cxx_try_cpp "$LINENO"; then :
2896 ac_header_preproc=yes
2897else
2898 ac_header_preproc=no
2899fi
2900rm -f conftest.err conftest.$ac_ext
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2902$as_echo "$ac_header_preproc" >&6; }
2903
2904# So? What about this header?
2905case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2906 yes:no: )
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2908$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2910$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2911 ;;
2912 no:yes:* )
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2914$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2916$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2918$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2920$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2922$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2923( cat <<\_ASBOX
2924## ----------------------------------------- ##
2925## Report this to http://www.imagemagick.org ##
2926## ----------------------------------------- ##
2927_ASBOX
2928 ) | sed "s/^/$as_me: WARNING: /" >&2
2929 ;;
2930esac
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2932$as_echo_n "checking for $2... " >&6; }
2933if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2934 $as_echo_n "(cached) " >&6
2935else
2936 eval "$3=\$ac_header_compiler"
2937fi
2938eval ac_res=\$$3
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2940$as_echo "$ac_res" >&6; }
2941fi
2942 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2943
2944} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002945cat >config.log <<_ACEOF
2946This file contains any messages produced by compilers while
2947running configure, to aid debugging if configure makes a mistake.
2948
cristyd934d102009-10-10 12:55:13 +00002949It was created by ImageMagick $as_me 6.5.7, which was
cristy8b350f62009-11-15 23:12:43 +00002950generated by GNU Autoconf 2.64. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002951
2952 $ $0 $@
2953
2954_ACEOF
2955exec 5>>config.log
2956{
2957cat <<_ASUNAME
2958## --------- ##
2959## Platform. ##
2960## --------- ##
2961
2962hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2963uname -m = `(uname -m) 2>/dev/null || echo unknown`
2964uname -r = `(uname -r) 2>/dev/null || echo unknown`
2965uname -s = `(uname -s) 2>/dev/null || echo unknown`
2966uname -v = `(uname -v) 2>/dev/null || echo unknown`
2967
2968/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2969/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2970
2971/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2972/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2973/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2974/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2975/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2976/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2977/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2978
2979_ASUNAME
2980
2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982for as_dir in $PATH
2983do
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002986 $as_echo "PATH: $as_dir"
2987 done
cristy3ed852e2009-09-05 21:47:34 +00002988IFS=$as_save_IFS
2989
2990} >&5
2991
2992cat >&5 <<_ACEOF
2993
2994
2995## ----------- ##
2996## Core tests. ##
2997## ----------- ##
2998
2999_ACEOF
3000
3001
3002# Keep a trace of the command line.
3003# Strip out --no-create and --no-recursion so they do not pile up.
3004# Strip out --silent because we don't want to record it for future runs.
3005# Also quote any args containing shell meta-characters.
3006# Make two passes to allow for proper duplicate-argument suppression.
3007ac_configure_args=
3008ac_configure_args0=
3009ac_configure_args1=
3010ac_must_keep_next=false
3011for ac_pass in 1 2
3012do
3013 for ac_arg
3014 do
3015 case $ac_arg in
3016 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3018 | -silent | --silent | --silen | --sile | --sil)
3019 continue ;;
3020 *\'*)
3021 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3022 esac
3023 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003024 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003025 2)
cristy8b350f62009-11-15 23:12:43 +00003026 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003027 if test $ac_must_keep_next = true; then
3028 ac_must_keep_next=false # Got value, back to normal.
3029 else
3030 case $ac_arg in
3031 *=* | --config-cache | -C | -disable-* | --disable-* \
3032 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3033 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3034 | -with-* | --with-* | -without-* | --without-* | --x)
3035 case "$ac_configure_args0 " in
3036 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3037 esac
3038 ;;
3039 -* ) ac_must_keep_next=true ;;
3040 esac
3041 fi
cristy8b350f62009-11-15 23:12:43 +00003042 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003043 ;;
3044 esac
3045 done
3046done
cristy8b350f62009-11-15 23:12:43 +00003047{ ac_configure_args0=; unset ac_configure_args0;}
3048{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003049
3050# When interrupted or exit'd, cleanup temporary files, and complete
3051# config.log. We remove comments because anyway the quotes in there
3052# would cause problems or look ugly.
3053# WARNING: Use '\'' to represent an apostrophe within the trap.
3054# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3055trap 'exit_status=$?
3056 # Save into config.log some information that might help in debugging.
3057 {
3058 echo
3059
3060 cat <<\_ASBOX
3061## ---------------- ##
3062## Cache variables. ##
3063## ---------------- ##
3064_ASBOX
3065 echo
3066 # The following way of writing the cache mishandles newlines in values,
3067(
3068 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3069 eval ac_val=\$$ac_var
3070 case $ac_val in #(
3071 *${as_nl}*)
3072 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003073 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003074$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3075 esac
3076 case $ac_var in #(
3077 _ | IFS | as_nl) ;; #(
3078 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003079 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003080 esac ;;
3081 esac
3082 done
3083 (set) 2>&1 |
3084 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3085 *${as_nl}ac_space=\ *)
3086 sed -n \
3087 "s/'\''/'\''\\\\'\'''\''/g;
3088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3089 ;; #(
3090 *)
3091 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3092 ;;
3093 esac |
3094 sort
3095)
3096 echo
3097
3098 cat <<\_ASBOX
3099## ----------------- ##
3100## Output variables. ##
3101## ----------------- ##
3102_ASBOX
3103 echo
3104 for ac_var in $ac_subst_vars
3105 do
3106 eval ac_val=\$$ac_var
3107 case $ac_val in
3108 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3109 esac
3110 $as_echo "$ac_var='\''$ac_val'\''"
3111 done | sort
3112 echo
3113
3114 if test -n "$ac_subst_files"; then
3115 cat <<\_ASBOX
3116## ------------------- ##
3117## File substitutions. ##
3118## ------------------- ##
3119_ASBOX
3120 echo
3121 for ac_var in $ac_subst_files
3122 do
3123 eval ac_val=\$$ac_var
3124 case $ac_val in
3125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3126 esac
3127 $as_echo "$ac_var='\''$ac_val'\''"
3128 done | sort
3129 echo
3130 fi
3131
3132 if test -s confdefs.h; then
3133 cat <<\_ASBOX
3134## ----------- ##
3135## confdefs.h. ##
3136## ----------- ##
3137_ASBOX
3138 echo
3139 cat confdefs.h
3140 echo
3141 fi
3142 test "$ac_signal" != 0 &&
3143 $as_echo "$as_me: caught signal $ac_signal"
3144 $as_echo "$as_me: exit $exit_status"
3145 } >&5
3146 rm -f core *.core core.conftest.* &&
3147 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3148 exit $exit_status
3149' 0
3150for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003151 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003152done
3153ac_signal=0
3154
3155# confdefs.h avoids OS command line length limits that DEFS can exceed.
3156rm -f -r conftest* confdefs.h
3157
cristy8b350f62009-11-15 23:12:43 +00003158$as_echo "/* confdefs.h */" > confdefs.h
3159
cristy3ed852e2009-09-05 21:47:34 +00003160# Predefined preprocessor variables.
3161
3162cat >>confdefs.h <<_ACEOF
3163#define PACKAGE_NAME "$PACKAGE_NAME"
3164_ACEOF
3165
cristy3ed852e2009-09-05 21:47:34 +00003166cat >>confdefs.h <<_ACEOF
3167#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3168_ACEOF
3169
cristy3ed852e2009-09-05 21:47:34 +00003170cat >>confdefs.h <<_ACEOF
3171#define PACKAGE_VERSION "$PACKAGE_VERSION"
3172_ACEOF
3173
cristy3ed852e2009-09-05 21:47:34 +00003174cat >>confdefs.h <<_ACEOF
3175#define PACKAGE_STRING "$PACKAGE_STRING"
3176_ACEOF
3177
cristy3ed852e2009-09-05 21:47:34 +00003178cat >>confdefs.h <<_ACEOF
3179#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3180_ACEOF
3181
cristy8b350f62009-11-15 23:12:43 +00003182cat >>confdefs.h <<_ACEOF
3183#define PACKAGE_URL "$PACKAGE_URL"
3184_ACEOF
3185
cristy3ed852e2009-09-05 21:47:34 +00003186
3187# Let the site file select an alternate cache file if it wants to.
3188# Prefer an explicitly selected file to automatically selected ones.
3189ac_site_file1=NONE
3190ac_site_file2=NONE
3191if test -n "$CONFIG_SITE"; then
3192 ac_site_file1=$CONFIG_SITE
3193elif test "x$prefix" != xNONE; then
3194 ac_site_file1=$prefix/share/config.site
3195 ac_site_file2=$prefix/etc/config.site
3196else
3197 ac_site_file1=$ac_default_prefix/share/config.site
3198 ac_site_file2=$ac_default_prefix/etc/config.site
3199fi
3200for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3201do
3202 test "x$ac_site_file" = xNONE && continue
3203 if test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003204 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003205$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3206 sed 's/^/| /' "$ac_site_file" >&5
3207 . "$ac_site_file"
3208 fi
3209done
3210
3211if test -r "$cache_file"; then
3212 # Some versions of bash will fail to source /dev/null (special
3213 # files actually), so we avoid doing that.
3214 if test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003216$as_echo "$as_me: loading cache $cache_file" >&6;}
3217 case $cache_file in
3218 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3219 *) . "./$cache_file";;
3220 esac
3221 fi
3222else
cristy8b350f62009-11-15 23:12:43 +00003223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003224$as_echo "$as_me: creating cache $cache_file" >&6;}
3225 >$cache_file
3226fi
3227
3228# Check that the precious variables saved in the cache have kept the same
3229# value.
3230ac_cache_corrupted=false
3231for ac_var in $ac_precious_vars; do
3232 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3233 eval ac_new_set=\$ac_env_${ac_var}_set
3234 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3235 eval ac_new_val=\$ac_env_${ac_var}_value
3236 case $ac_old_set,$ac_new_set in
3237 set,)
cristy8b350f62009-11-15 23:12:43 +00003238 { $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 +00003239$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3240 ac_cache_corrupted=: ;;
3241 ,set)
cristy8b350f62009-11-15 23:12:43 +00003242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003243$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3244 ac_cache_corrupted=: ;;
3245 ,);;
3246 *)
3247 if test "x$ac_old_val" != "x$ac_new_val"; then
3248 # differences in whitespace do not lead to failure.
3249 ac_old_val_w=`echo x $ac_old_val`
3250 ac_new_val_w=`echo x $ac_new_val`
3251 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003253$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3254 ac_cache_corrupted=:
3255 else
cristy8b350f62009-11-15 23:12:43 +00003256 { $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 +00003257$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3258 eval $ac_var=\$ac_old_val
3259 fi
cristy8b350f62009-11-15 23:12:43 +00003260 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003261$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003262 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003263$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3264 fi;;
3265 esac
3266 # Pass precious variables to config.status.
3267 if test "$ac_new_set" = set; then
3268 case $ac_new_val in
3269 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3270 *) ac_arg=$ac_var=$ac_new_val ;;
3271 esac
3272 case " $ac_configure_args " in
3273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003274 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003275 esac
3276 fi
3277done
3278if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003282$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003283 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003284fi
cristy8b350f62009-11-15 23:12:43 +00003285## -------------------- ##
3286## Main body of script. ##
3287## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003288
3289ac_ext=c
3290ac_cpp='$CPP $CPPFLAGS'
3291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294
3295
3296
3297ac_aux_dir=
3298for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003299 for ac_t in install-sh install.sh shtool; do
3300 if test -f "$ac_dir/$ac_t"; then
3301 ac_aux_dir=$ac_dir
3302 ac_install_sh="$ac_aux_dir/$ac_t -c"
3303 break 2
3304 fi
3305 done
cristy3ed852e2009-09-05 21:47:34 +00003306done
3307if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003308 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003309fi
3310
3311# These three variables are undocumented and unsupported,
3312# and are intended to be withdrawn in a future Autoconf release.
3313# They can cause serious problems if a builder's source tree is in a directory
3314# whose full name contains unusual characters.
3315ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3316ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3317ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3318
3319
3320
3321
3322ac_config_headers="$ac_config_headers config/config.h"
3323
3324ac_config_commands="$ac_config_commands magick/magick-config.h"
3325
3326ac_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"
3327
3328
3329#
3330# Save initial user-tunable values
3331#
3332USER_LIBS=$LIBS
3333for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3334 eval isset=\${$var+set}
3335 if test "$isset" = 'set'; then
3336 eval val=$`echo $var`
3337 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3338 fi
3339done
3340
3341
3342CONFIGURE_ARGS="$0 ${ac_configure_args}"
3343
3344
3345# Source file containing package/library versioning information.
3346. ${srcdir}/version.sh
3347
3348echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3349# Make sure we can run config.sub.
3350$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003351 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003352
cristy8b350f62009-11-15 23:12:43 +00003353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003354$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003355if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003356 $as_echo_n "(cached) " >&6
3357else
3358 ac_build_alias=$build_alias
3359test "x$ac_build_alias" = x &&
3360 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3361test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003362 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003363ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003364 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003365
3366fi
cristy8b350f62009-11-15 23:12:43 +00003367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003368$as_echo "$ac_cv_build" >&6; }
3369case $ac_cv_build in
3370*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003371*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003372esac
3373build=$ac_cv_build
3374ac_save_IFS=$IFS; IFS='-'
3375set x $ac_cv_build
3376shift
3377build_cpu=$1
3378build_vendor=$2
3379shift; shift
3380# Remember, the first character of IFS is used to create $*,
3381# except with old shells:
3382build_os=$*
3383IFS=$ac_save_IFS
3384case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3385
3386
cristy8b350f62009-11-15 23:12:43 +00003387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003388$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003389if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003390 $as_echo_n "(cached) " >&6
3391else
3392 if test "x$host_alias" = x; then
3393 ac_cv_host=$ac_cv_build
3394else
3395 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003396 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003397fi
3398
3399fi
cristy8b350f62009-11-15 23:12:43 +00003400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003401$as_echo "$ac_cv_host" >&6; }
3402case $ac_cv_host in
3403*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003404*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003405esac
3406host=$ac_cv_host
3407ac_save_IFS=$IFS; IFS='-'
3408set x $ac_cv_host
3409shift
3410host_cpu=$1
3411host_vendor=$2
3412shift; shift
3413# Remember, the first character of IFS is used to create $*,
3414# except with old shells:
3415host_os=$*
3416IFS=$ac_save_IFS
3417case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3418
3419
cristy8b350f62009-11-15 23:12:43 +00003420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003421$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003422if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003423 $as_echo_n "(cached) " >&6
3424else
3425 if test "x$target_alias" = x; then
3426 ac_cv_target=$ac_cv_host
3427else
3428 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003429 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003430fi
3431
3432fi
cristy8b350f62009-11-15 23:12:43 +00003433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003434$as_echo "$ac_cv_target" >&6; }
3435case $ac_cv_target in
3436*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003437*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003438esac
3439target=$ac_cv_target
3440ac_save_IFS=$IFS; IFS='-'
3441set x $ac_cv_target
3442shift
3443target_cpu=$1
3444target_vendor=$2
3445shift; shift
3446# Remember, the first character of IFS is used to create $*,
3447# except with old shells:
3448target_os=$*
3449IFS=$ac_save_IFS
3450case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3451
3452
3453# The aliases save the names the user supplied, while $host etc.
3454# will get canonicalized.
3455test -n "$target_alias" &&
3456 test "$program_prefix$program_suffix$program_transform_name" = \
3457 NONENONEs,x,x, &&
3458 program_prefix=${target_alias}-
3459
3460# Substitute library versioning
3461
3462
3463# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003465$as_echo_n "checking whether build environment is sane... " >&6; }
3466# Just in case
3467sleep 1
3468echo timestamp > conftest.file
3469# Reject unsafe characters in $srcdir or the absolute working directory
3470# name. Accept space and tab only in the latter.
3471am_lf='
3472'
3473case `pwd` in
3474 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003475 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003476esac
3477case $srcdir in
3478 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003479 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003480esac
3481
3482# Do `set' in a subshell so we don't clobber the current shell's
3483# arguments. Must try -L first in case configure is actually a
3484# symlink; some systems play weird games with the mod time of symlinks
3485# (eg FreeBSD returns the mod time of the symlink's containing
3486# directory).
3487if (
3488 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3489 if test "$*" = "X"; then
3490 # -L didn't work.
3491 set X `ls -t "$srcdir/configure" conftest.file`
3492 fi
3493 rm -f conftest.file
3494 if test "$*" != "X $srcdir/configure conftest.file" \
3495 && test "$*" != "X conftest.file $srcdir/configure"; then
3496
3497 # If neither matched, then we have a broken ls. This can happen
3498 # if, for instance, CONFIG_SHELL is bash and it inherits a
3499 # broken ls alias from the environment. This has actually
3500 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003501 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3502alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003503 fi
3504
3505 test "$2" = conftest.file
3506 )
3507then
3508 # Ok.
3509 :
3510else
cristy8b350f62009-11-15 23:12:43 +00003511 as_fn_error "newly created file is older than distributed files!
3512Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003513fi
cristy8b350f62009-11-15 23:12:43 +00003514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003515$as_echo "yes" >&6; }
3516
3517am__api_version='1.11'
3518
3519# Find a good install program. We prefer a C program (faster),
3520# so one script is as good as another. But avoid the broken or
3521# incompatible versions:
3522# SysV /etc/install, /usr/sbin/install
3523# SunOS /usr/etc/install
3524# IRIX /sbin/install
3525# AIX /bin/install
3526# AmigaOS /C/install, which installs bootblocks on floppy discs
3527# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3528# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3529# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3530# OS/2's system install, which has a completely different semantic
3531# ./install, which can be erroneously created by make from ./install.sh.
3532# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003534$as_echo_n "checking for a BSD-compatible install... " >&6; }
3535if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003536if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003537 $as_echo_n "(cached) " >&6
3538else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540for as_dir in $PATH
3541do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003544 # Account for people who put trailing slashes in PATH elements.
3545case $as_dir/ in #((
3546 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003547 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003548 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003549 /usr/ucb/* ) ;;
3550 *)
3551 # OSF1 and SCO ODT 3.0 have their own names for install.
3552 # Don't use installbsd from OSF since it installs stuff as root
3553 # by default.
3554 for ac_prog in ginstall scoinst install; do
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3557 if test $ac_prog = install &&
3558 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3559 # AIX install. It has an incompatible calling convention.
3560 :
3561 elif test $ac_prog = install &&
3562 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3563 # program-specific install script used by HP pwplus--don't use.
3564 :
3565 else
3566 rm -rf conftest.one conftest.two conftest.dir
3567 echo one > conftest.one
3568 echo two > conftest.two
3569 mkdir conftest.dir
3570 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3571 test -s conftest.one && test -s conftest.two &&
3572 test -s conftest.dir/conftest.one &&
3573 test -s conftest.dir/conftest.two
3574 then
3575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3576 break 3
3577 fi
3578 fi
3579 fi
3580 done
3581 done
3582 ;;
3583esac
3584
cristy8b350f62009-11-15 23:12:43 +00003585 done
cristy3ed852e2009-09-05 21:47:34 +00003586IFS=$as_save_IFS
3587
3588rm -rf conftest.one conftest.two conftest.dir
3589
3590fi
3591 if test "${ac_cv_path_install+set}" = set; then
3592 INSTALL=$ac_cv_path_install
3593 else
3594 # As a last resort, use the slow shell script. Don't cache a
3595 # value for INSTALL within a source directory, because that will
3596 # break other packages using the cache if that directory is
3597 # removed, or if the value is a relative name.
3598 INSTALL=$ac_install_sh
3599 fi
3600fi
cristy8b350f62009-11-15 23:12:43 +00003601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003602$as_echo "$INSTALL" >&6; }
3603
3604# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3605# It thinks the first close brace ends the variable substitution.
3606test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3607
3608test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3609
3610test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3611
3612test "$program_prefix" != NONE &&
3613 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3614# Use a double $ so make ignores it.
3615test "$program_suffix" != NONE &&
3616 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3617# Double any \ or $.
3618# By default was `s,x,x', remove it if useless.
3619ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3620program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3621
3622# expand $ac_aux_dir to an absolute path
3623am_aux_dir=`cd $ac_aux_dir && pwd`
3624
3625if test x"${MISSING+set}" != xset; then
3626 case $am_aux_dir in
3627 *\ * | *\ *)
3628 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3629 *)
3630 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3631 esac
3632fi
3633# Use eval to expand $SHELL
3634if eval "$MISSING --run true"; then
3635 am_missing_run="$MISSING --run "
3636else
3637 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003639$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3640fi
3641
3642if test x"${install_sh}" != xset; then
3643 case $am_aux_dir in
3644 *\ * | *\ *)
3645 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3646 *)
3647 install_sh="\${SHELL} $am_aux_dir/install-sh"
3648 esac
3649fi
3650
3651# Installed binaries are usually stripped using `strip' when the user
3652# run `make install-strip'. However `strip' might not be the right
3653# tool to use in cross-compilation environments, therefore Automake
3654# will honor the `STRIP' environment variable to overrule this program.
3655if test "$cross_compiling" != no; then
3656 if test -n "$ac_tool_prefix"; then
3657 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3658set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003660$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003661if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003662 $as_echo_n "(cached) " >&6
3663else
3664 if test -n "$STRIP"; then
3665 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3666else
3667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668for as_dir in $PATH
3669do
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003672 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3674 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003676 break 2
3677 fi
3678done
cristy8b350f62009-11-15 23:12:43 +00003679 done
cristy3ed852e2009-09-05 21:47:34 +00003680IFS=$as_save_IFS
3681
3682fi
3683fi
3684STRIP=$ac_cv_prog_STRIP
3685if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003687$as_echo "$STRIP" >&6; }
3688else
cristy8b350f62009-11-15 23:12:43 +00003689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003690$as_echo "no" >&6; }
3691fi
3692
3693
3694fi
3695if test -z "$ac_cv_prog_STRIP"; then
3696 ac_ct_STRIP=$STRIP
3697 # Extract the first word of "strip", so it can be a program name with args.
3698set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003700$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003701if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003702 $as_echo_n "(cached) " >&6
3703else
3704 if test -n "$ac_ct_STRIP"; then
3705 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3706else
3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708for as_dir in $PATH
3709do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003712 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3714 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003716 break 2
3717 fi
3718done
cristy8b350f62009-11-15 23:12:43 +00003719 done
cristy3ed852e2009-09-05 21:47:34 +00003720IFS=$as_save_IFS
3721
3722fi
3723fi
3724ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3725if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003727$as_echo "$ac_ct_STRIP" >&6; }
3728else
cristy8b350f62009-11-15 23:12:43 +00003729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003730$as_echo "no" >&6; }
3731fi
3732
3733 if test "x$ac_ct_STRIP" = x; then
3734 STRIP=":"
3735 else
3736 case $cross_compiling:$ac_tool_warned in
3737yes:)
cristy8b350f62009-11-15 23:12:43 +00003738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3740ac_tool_warned=yes ;;
3741esac
3742 STRIP=$ac_ct_STRIP
3743 fi
3744else
3745 STRIP="$ac_cv_prog_STRIP"
3746fi
3747
3748fi
3749INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3750
cristy8b350f62009-11-15 23:12:43 +00003751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003752$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3753if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003754 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003755 $as_echo_n "(cached) " >&6
3756else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3759do
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003762 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3765 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3766 'mkdir (GNU coreutils) '* | \
3767 'mkdir (coreutils) '* | \
3768 'mkdir (fileutils) '4.1*)
3769 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3770 break 3;;
3771 esac
3772 done
3773 done
cristy8b350f62009-11-15 23:12:43 +00003774 done
cristy3ed852e2009-09-05 21:47:34 +00003775IFS=$as_save_IFS
3776
3777fi
3778
3779 if test "${ac_cv_path_mkdir+set}" = set; then
3780 MKDIR_P="$ac_cv_path_mkdir -p"
3781 else
3782 # As a last resort, use the slow shell script. Don't cache a
3783 # value for MKDIR_P within a source directory, because that will
3784 # break other packages using the cache if that directory is
3785 # removed, or if the value is a relative name.
3786 test -d ./--version && rmdir ./--version
3787 MKDIR_P="$ac_install_sh -d"
3788 fi
3789fi
cristy8b350f62009-11-15 23:12:43 +00003790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003791$as_echo "$MKDIR_P" >&6; }
3792
3793mkdir_p="$MKDIR_P"
3794case $mkdir_p in
3795 [\\/$]* | ?:[\\/]*) ;;
3796 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3797esac
3798
3799for ac_prog in gawk mawk nawk awk
3800do
3801 # Extract the first word of "$ac_prog", so it can be a program name with args.
3802set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003804$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003805if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003806 $as_echo_n "(cached) " >&6
3807else
3808 if test -n "$AWK"; then
3809 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3810else
3811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812for as_dir in $PATH
3813do
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3818 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003820 break 2
3821 fi
3822done
cristy8b350f62009-11-15 23:12:43 +00003823 done
cristy3ed852e2009-09-05 21:47:34 +00003824IFS=$as_save_IFS
3825
3826fi
3827fi
3828AWK=$ac_cv_prog_AWK
3829if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003831$as_echo "$AWK" >&6; }
3832else
cristy8b350f62009-11-15 23:12:43 +00003833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003834$as_echo "no" >&6; }
3835fi
3836
3837
3838 test -n "$AWK" && break
3839done
3840
cristy8b350f62009-11-15 23:12:43 +00003841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003842$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3843set x ${MAKE-make}
3844ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003845if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003846 $as_echo_n "(cached) " >&6
3847else
3848 cat >conftest.make <<\_ACEOF
3849SHELL = /bin/sh
3850all:
3851 @echo '@@@%%%=$(MAKE)=@@@%%%'
3852_ACEOF
3853# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3854case `${MAKE-make} -f conftest.make 2>/dev/null` in
3855 *@@@%%%=?*=@@@%%%*)
3856 eval ac_cv_prog_make_${ac_make}_set=yes;;
3857 *)
3858 eval ac_cv_prog_make_${ac_make}_set=no;;
3859esac
3860rm -f conftest.make
3861fi
3862if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003864$as_echo "yes" >&6; }
3865 SET_MAKE=
3866else
cristy8b350f62009-11-15 23:12:43 +00003867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003868$as_echo "no" >&6; }
3869 SET_MAKE="MAKE=${MAKE-make}"
3870fi
3871
3872rm -rf .tst 2>/dev/null
3873mkdir .tst 2>/dev/null
3874if test -d .tst; then
3875 am__leading_dot=.
3876else
3877 am__leading_dot=_
3878fi
3879rmdir .tst 2>/dev/null
3880
3881if test "`cd $srcdir && pwd`" != "`pwd`"; then
3882 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3883 # is not polluted with repeated "-I."
3884 am__isrc=' -I$(srcdir)'
3885 # test to see if srcdir already configured
3886 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003887 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003888 fi
3889fi
3890
3891# test whether we have cygpath
3892if test -z "$CYGPATH_W"; then
3893 if (cygpath --version) >/dev/null 2>/dev/null; then
3894 CYGPATH_W='cygpath -w'
3895 else
3896 CYGPATH_W=echo
3897 fi
3898fi
3899
3900
3901# Define the identity of the package.
3902 PACKAGE=$PACKAGE_NAME
3903 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3904
3905
3906# Some tools Automake needs.
3907
3908ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3909
3910
3911AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3912
3913
3914AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3915
3916
3917AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3918
3919
3920MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3921
3922# We need awk for the "check" target. The system "awk" is bad on
3923# some platforms.
3924# Always define AMTAR for backward compatibility.
3925
3926AMTAR=${AMTAR-"${am_missing_run}tar"}
3927
3928am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3929
3930
3931
3932
3933
3934
3935# Enable support for silent build rules
3936# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003937if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003938 enableval=$enable_silent_rules;
3939fi
3940
3941case $enable_silent_rules in
3942yes) AM_DEFAULT_VERBOSITY=0;;
3943no) AM_DEFAULT_VERBOSITY=1;;
3944*) AM_DEFAULT_VERBOSITY=0;;
3945esac
3946AM_BACKSLASH='\'
3947
3948
3949MAGICK_LIB_VERSION="0x"
3950if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3951 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3952fi
3953MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3954if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3955 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3956fi
3957MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3958if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3959 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3960fi
3961MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3962
3963
3964# Definition used to define MagickLibVersionText in version.h
3965MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3966
3967
3968# Definition used to define MagickLibVersionNumber in version.h
3969MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3970
3971
3972# Regenerate config.status if ChangeLog or version.sh is updated.
3973CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3974
3975
3976PERLMAINCC=$CC
3977
3978MAGICK_CFLAGS=''
3979MAGICK_CPPFLAGS=$CPPFLAGS_USER
3980MAGICK_PCFLAGS=$CPPFLAGS_USER
3981MAGICK_LDFLAGS=''
3982MAGICK_LIBS=''
3983
3984#
3985# Evaluate shell variable equivalents to Makefile directory variables
3986#
3987if test "x$prefix" = xNONE; then
3988 prefix=$ac_default_prefix
3989fi
3990# Let make expand exec_prefix.
3991if test "x$exec_prefix" = xNONE; then
3992 exec_prefix='${prefix}'
3993fi
3994
3995#
3996eval "eval PREFIX_DIR=${prefix}"
3997
3998eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3999
4000eval "eval BIN_DIR=$bindir"
4001
4002eval "eval SBIN_DIR=$sbindir"
4003
4004eval "eval LIBEXEC_DIR=$libexecdir"
4005
4006eval "eval DATA_DIR=$datadir"
4007
4008eval "eval SYSCONF_DIR=$sysconfdir"
4009
4010eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4011
4012eval "eval LOCALSTATE_DIR=$localstatedir"
4013
4014eval "eval LIB_DIR=$libdir"
4015
4016eval "eval INCLUDE_DIR=$includedir"
4017
4018eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4019
4020eval "eval INFO_DIR=$infodir"
4021
4022eval "eval MAN_DIR=$mandir"
4023
4024
4025# Get full paths to source and build directories
4026srcdirfull="`cd $srcdir && pwd`"
4027builddir="`pwd`"
4028
4029#
4030# Compute variables useful for running uninstalled software.
4031#
4032MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4033MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4034MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4035MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4036DIRSEP=':'
4037case "${build_os}" in
4038 mingw* )
4039 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4040 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4041 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4042 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4043 DIRSEP=';'
4044 ;;
4045esac
4046case "${host_os}" in
4047 mingw* )
4048 DIRSEP=';'
4049 ;;
4050esac
4051
4052
4053
4054
4055
4056
4057# Check for programs
4058ac_ext=c
4059ac_cpp='$CPP $CPPFLAGS'
4060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063if test -n "$ac_tool_prefix"; then
4064 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4065set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004067$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004068if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004069 $as_echo_n "(cached) " >&6
4070else
4071 if test -n "$CC"; then
4072 ac_cv_prog_CC="$CC" # Let the user override the test.
4073else
4074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075for as_dir in $PATH
4076do
4077 IFS=$as_save_IFS
4078 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004079 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4081 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004083 break 2
4084 fi
4085done
cristy8b350f62009-11-15 23:12:43 +00004086 done
cristy3ed852e2009-09-05 21:47:34 +00004087IFS=$as_save_IFS
4088
4089fi
4090fi
4091CC=$ac_cv_prog_CC
4092if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004094$as_echo "$CC" >&6; }
4095else
cristy8b350f62009-11-15 23:12:43 +00004096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004097$as_echo "no" >&6; }
4098fi
4099
4100
4101fi
4102if test -z "$ac_cv_prog_CC"; then
4103 ac_ct_CC=$CC
4104 # Extract the first word of "gcc", so it can be a program name with args.
4105set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004107$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004108if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004109 $as_echo_n "(cached) " >&6
4110else
4111 if test -n "$ac_ct_CC"; then
4112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4113else
4114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115for as_dir in $PATH
4116do
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004119 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004123 break 2
4124 fi
4125done
cristy8b350f62009-11-15 23:12:43 +00004126 done
cristy3ed852e2009-09-05 21:47:34 +00004127IFS=$as_save_IFS
4128
4129fi
4130fi
4131ac_ct_CC=$ac_cv_prog_ac_ct_CC
4132if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004134$as_echo "$ac_ct_CC" >&6; }
4135else
cristy8b350f62009-11-15 23:12:43 +00004136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004137$as_echo "no" >&6; }
4138fi
4139
4140 if test "x$ac_ct_CC" = x; then
4141 CC=""
4142 else
4143 case $cross_compiling:$ac_tool_warned in
4144yes:)
cristy8b350f62009-11-15 23:12:43 +00004145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4147ac_tool_warned=yes ;;
4148esac
4149 CC=$ac_ct_CC
4150 fi
4151else
4152 CC="$ac_cv_prog_CC"
4153fi
4154
4155if test -z "$CC"; then
4156 if test -n "$ac_tool_prefix"; then
4157 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4158set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004160$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004161if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004162 $as_echo_n "(cached) " >&6
4163else
4164 if test -n "$CC"; then
4165 ac_cv_prog_CC="$CC" # Let the user override the test.
4166else
4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH
4169do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004172 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004176 break 2
4177 fi
4178done
cristy8b350f62009-11-15 23:12:43 +00004179 done
cristy3ed852e2009-09-05 21:47:34 +00004180IFS=$as_save_IFS
4181
4182fi
4183fi
4184CC=$ac_cv_prog_CC
4185if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004187$as_echo "$CC" >&6; }
4188else
cristy8b350f62009-11-15 23:12:43 +00004189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004190$as_echo "no" >&6; }
4191fi
4192
4193
4194 fi
4195fi
4196if test -z "$CC"; then
4197 # Extract the first word of "cc", so it can be a program name with args.
4198set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004200$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004201if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004202 $as_echo_n "(cached) " >&6
4203else
4204 if test -n "$CC"; then
4205 ac_cv_prog_CC="$CC" # Let the user override the test.
4206else
4207 ac_prog_rejected=no
4208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH
4210do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4216 ac_prog_rejected=yes
4217 continue
4218 fi
4219 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004221 break 2
4222 fi
4223done
cristy8b350f62009-11-15 23:12:43 +00004224 done
cristy3ed852e2009-09-05 21:47:34 +00004225IFS=$as_save_IFS
4226
4227if test $ac_prog_rejected = yes; then
4228 # We found a bogon in the path, so make sure we never use it.
4229 set dummy $ac_cv_prog_CC
4230 shift
4231 if test $# != 0; then
4232 # We chose a different compiler from the bogus one.
4233 # However, it has the same basename, so the bogon will be chosen
4234 # first if we set CC to just the basename; use the full file name.
4235 shift
4236 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4237 fi
4238fi
4239fi
4240fi
4241CC=$ac_cv_prog_CC
4242if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004244$as_echo "$CC" >&6; }
4245else
cristy8b350f62009-11-15 23:12:43 +00004246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004247$as_echo "no" >&6; }
4248fi
4249
4250
4251fi
4252if test -z "$CC"; then
4253 if test -n "$ac_tool_prefix"; then
4254 for ac_prog in cl.exe
4255 do
4256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4257set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004259$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004260if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004261 $as_echo_n "(cached) " >&6
4262else
4263 if test -n "$CC"; then
4264 ac_cv_prog_CC="$CC" # Let the user override the test.
4265else
4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004271 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004275 break 2
4276 fi
4277done
cristy8b350f62009-11-15 23:12:43 +00004278 done
cristy3ed852e2009-09-05 21:47:34 +00004279IFS=$as_save_IFS
4280
4281fi
4282fi
4283CC=$ac_cv_prog_CC
4284if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004286$as_echo "$CC" >&6; }
4287else
cristy8b350f62009-11-15 23:12:43 +00004288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004289$as_echo "no" >&6; }
4290fi
4291
4292
4293 test -n "$CC" && break
4294 done
4295fi
4296if test -z "$CC"; then
4297 ac_ct_CC=$CC
4298 for ac_prog in cl.exe
4299do
4300 # Extract the first word of "$ac_prog", so it can be a program name with args.
4301set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004303$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004304if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004305 $as_echo_n "(cached) " >&6
4306else
4307 if test -n "$ac_ct_CC"; then
4308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4309else
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004319 break 2
4320 fi
4321done
cristy8b350f62009-11-15 23:12:43 +00004322 done
cristy3ed852e2009-09-05 21:47:34 +00004323IFS=$as_save_IFS
4324
4325fi
4326fi
4327ac_ct_CC=$ac_cv_prog_ac_ct_CC
4328if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004330$as_echo "$ac_ct_CC" >&6; }
4331else
cristy8b350f62009-11-15 23:12:43 +00004332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004333$as_echo "no" >&6; }
4334fi
4335
4336
4337 test -n "$ac_ct_CC" && break
4338done
4339
4340 if test "x$ac_ct_CC" = x; then
4341 CC=""
4342 else
4343 case $cross_compiling:$ac_tool_warned in
4344yes:)
cristy8b350f62009-11-15 23:12:43 +00004345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4347ac_tool_warned=yes ;;
4348esac
4349 CC=$ac_ct_CC
4350 fi
4351fi
4352
4353fi
4354
4355
cristy8b350f62009-11-15 23:12:43 +00004356test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004358as_fn_error "no acceptable C compiler found in \$PATH
4359See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004360
4361# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004362$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004363set X $ac_compile
4364ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004365for ac_option in --version -v -V -qversion; do
4366 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004367case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370esac
cristy8b350f62009-11-15 23:12:43 +00004371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372$as_echo "$ac_try_echo"; } >&5
4373 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004374 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004375 if test -s conftest.err; then
4376 sed '10a\
4377... rest of stderr output deleted ...
4378 10q' conftest.err >conftest.er1
4379 cat conftest.er1 >&5
4380 rm -f conftest.er1 conftest.err
4381 fi
4382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4383 test $ac_status = 0; }
4384done
cristy3ed852e2009-09-05 21:47:34 +00004385
cristy8b350f62009-11-15 23:12:43 +00004386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004387/* end confdefs.h. */
cristy8b350f62009-11-15 23:12:43 +00004388#include <stdio.h>
cristy3ed852e2009-09-05 21:47:34 +00004389int
4390main ()
4391{
cristy8b350f62009-11-15 23:12:43 +00004392FILE *f = fopen ("conftest.out", "w");
4393 return ferror (f) || fclose (f) != 0;
cristy3ed852e2009-09-05 21:47:34 +00004394
4395 ;
4396 return 0;
4397}
4398_ACEOF
4399ac_clean_files_save=$ac_clean_files
cristy8b350f62009-11-15 23:12:43 +00004400ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
cristy3ed852e2009-09-05 21:47:34 +00004401# Try to create an executable without -o first, disregard a.out.
4402# It will help us diagnose broken compilers, and finding out an intuition
4403# of exeext.
cristy8b350f62009-11-15 23:12:43 +00004404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
cristy3ed852e2009-09-05 21:47:34 +00004405$as_echo_n "checking for C compiler default output file name... " >&6; }
4406ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4407
4408# The possible output files:
4409ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4410
4411ac_rmfiles=
4412for ac_file in $ac_files
4413do
4414 case $ac_file in
4415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4416 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4417 esac
4418done
4419rm -f $ac_rmfiles
4420
cristy8b350f62009-11-15 23:12:43 +00004421if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004422case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4425esac
cristy8b350f62009-11-15 23:12:43 +00004426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4427$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004428 (eval "$ac_link_default") 2>&5
4429 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4431 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004432 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4433# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4434# in a Makefile. We should not override ac_cv_exeext if it was cached,
4435# so that the user can short-circuit this test for compilers unknown to
4436# Autoconf.
4437for ac_file in $ac_files ''
4438do
4439 test -f "$ac_file" || continue
4440 case $ac_file in
4441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4442 ;;
4443 [ab].out )
4444 # We found the default executable, but exeext='' is most
4445 # certainly right.
4446 break;;
4447 *.* )
cristy8b350f62009-11-15 23:12:43 +00004448 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004449 then :; else
4450 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4451 fi
4452 # We set ac_cv_exeext here because the later test for it is not
4453 # safe: cross compilers may not add the suffix if given an `-o'
4454 # argument, so we may need to know it at that point already.
4455 # Even if this section looks crufty: it has the advantage of
4456 # actually working.
4457 break;;
4458 * )
4459 break;;
4460 esac
4461done
4462test "$ac_cv_exeext" = no && ac_cv_exeext=
4463
4464else
4465 ac_file=''
4466fi
cristy8b350f62009-11-15 23:12:43 +00004467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00004468$as_echo "$ac_file" >&6; }
cristy8b350f62009-11-15 23:12:43 +00004469if test -z "$ac_file"; then :
cristy3ed852e2009-09-05 21:47:34 +00004470 $as_echo "$as_me: failed program was:" >&5
4471sed 's/^/| /' conftest.$ac_ext >&5
4472
cristy8b350f62009-11-15 23:12:43 +00004473{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004475{ as_fn_set_status 77
4476as_fn_error "C compiler cannot create executables
4477See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +00004478fi
cristy3ed852e2009-09-05 21:47:34 +00004479ac_exeext=$ac_cv_exeext
4480
4481# Check that the compiler produces executables we can run. If not, either
4482# the compiler is broken, or we cross compile.
cristy8b350f62009-11-15 23:12:43 +00004483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
cristy3ed852e2009-09-05 21:47:34 +00004484$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004485# If not cross compiling, check that we can run a simple program.
4486if test "$cross_compiling" != yes; then
4487 if { ac_try='./$ac_file'
cristy8b350f62009-11-15 23:12:43 +00004488 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00004489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491esac
cristy8b350f62009-11-15 23:12:43 +00004492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004494 (eval "$ac_try") 2>&5
4495 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00004498 cross_compiling=no
4499 else
4500 if test "$cross_compiling" = maybe; then
4501 cross_compiling=yes
4502 else
cristy8b350f62009-11-15 23:12:43 +00004503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004505as_fn_error "cannot run C compiled programs.
cristy3ed852e2009-09-05 21:47:34 +00004506If you meant to cross compile, use \`--host'.
cristy8b350f62009-11-15 23:12:43 +00004507See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004508 fi
4509 fi
4510fi
cristy8b350f62009-11-15 23:12:43 +00004511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00004512$as_echo "yes" >&6; }
4513
cristy8b350f62009-11-15 23:12:43 +00004514rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
cristy3ed852e2009-09-05 21:47:34 +00004515ac_clean_files=$ac_clean_files_save
4516# Check that the compiler produces executables we can run. If not, either
4517# the compiler is broken, or we cross compile.
cristy8b350f62009-11-15 23:12:43 +00004518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
cristy3ed852e2009-09-05 21:47:34 +00004519$as_echo_n "checking whether we are cross compiling... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521$as_echo "$cross_compiling" >&6; }
4522
cristy8b350f62009-11-15 23:12:43 +00004523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004524$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004525if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004526case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529esac
cristy8b350f62009-11-15 23:12:43 +00004530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4531$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004532 (eval "$ac_link") 2>&5
4533 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004536 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4537# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4538# work properly (i.e., refer to `conftest.exe'), while it won't with
4539# `rm'.
4540for ac_file in conftest.exe conftest conftest.*; do
4541 test -f "$ac_file" || continue
4542 case $ac_file in
4543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4544 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4545 break;;
4546 * ) break;;
4547 esac
4548done
4549else
cristy8b350f62009-11-15 23:12:43 +00004550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004552as_fn_error "cannot compute suffix of executables: cannot compile and link
4553See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004554fi
cristy3ed852e2009-09-05 21:47:34 +00004555rm -f conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004557$as_echo "$ac_cv_exeext" >&6; }
4558
4559rm -f conftest.$ac_ext
4560EXEEXT=$ac_cv_exeext
4561ac_exeext=$EXEEXT
cristy8b350f62009-11-15 23:12:43 +00004562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004563$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004564if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004565 $as_echo_n "(cached) " >&6
4566else
cristy8b350f62009-11-15 23:12:43 +00004567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004568/* end confdefs.h. */
4569
4570int
4571main ()
4572{
4573
4574 ;
4575 return 0;
4576}
4577_ACEOF
4578rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004579if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004580case "(($ac_try" in
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4583esac
cristy8b350f62009-11-15 23:12:43 +00004584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4585$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004586 (eval "$ac_compile") 2>&5
4587 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4589 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004590 for ac_file in conftest.o conftest.obj conftest.*; do
4591 test -f "$ac_file" || continue;
4592 case $ac_file in
4593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4595 break;;
4596 esac
4597done
4598else
4599 $as_echo "$as_me: failed program was:" >&5
4600sed 's/^/| /' conftest.$ac_ext >&5
4601
cristy8b350f62009-11-15 23:12:43 +00004602{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004604as_fn_error "cannot compute suffix of object files: cannot compile
4605See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004606fi
cristy3ed852e2009-09-05 21:47:34 +00004607rm -f conftest.$ac_cv_objext conftest.$ac_ext
4608fi
cristy8b350f62009-11-15 23:12:43 +00004609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004610$as_echo "$ac_cv_objext" >&6; }
4611OBJEXT=$ac_cv_objext
4612ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004614$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004615if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004616 $as_echo_n "(cached) " >&6
4617else
cristy8b350f62009-11-15 23:12:43 +00004618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004619/* end confdefs.h. */
4620
4621int
4622main ()
4623{
4624#ifndef __GNUC__
4625 choke me
4626#endif
4627
4628 ;
4629 return 0;
4630}
4631_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004632if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004633 ac_compiler_gnu=yes
4634else
cristy8b350f62009-11-15 23:12:43 +00004635 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004636fi
cristy3ed852e2009-09-05 21:47:34 +00004637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638ac_cv_c_compiler_gnu=$ac_compiler_gnu
4639
4640fi
cristy8b350f62009-11-15 23:12:43 +00004641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004642$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4643if test $ac_compiler_gnu = yes; then
4644 GCC=yes
4645else
4646 GCC=
4647fi
4648ac_test_CFLAGS=${CFLAGS+set}
4649ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004651$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004652if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004653 $as_echo_n "(cached) " >&6
4654else
4655 ac_save_c_werror_flag=$ac_c_werror_flag
4656 ac_c_werror_flag=yes
4657 ac_cv_prog_cc_g=no
4658 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004660/* end confdefs.h. */
4661
4662int
4663main ()
4664{
4665
4666 ;
4667 return 0;
4668}
4669_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004670if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004671 ac_cv_prog_cc_g=yes
4672else
cristy8b350f62009-11-15 23:12:43 +00004673 CFLAGS=""
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004675/* end confdefs.h. */
4676
4677int
4678main ()
4679{
4680
4681 ;
4682 return 0;
4683}
4684_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004685if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004686
cristy8b350f62009-11-15 23:12:43 +00004687else
4688 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004689 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
cristy3ed852e2009-09-05 21:47:34 +00004703fi
cristy3ed852e2009-09-05 21:47:34 +00004704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705fi
cristy3ed852e2009-09-05 21:47:34 +00004706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707fi
cristy3ed852e2009-09-05 21:47:34 +00004708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 ac_c_werror_flag=$ac_save_c_werror_flag
4710fi
cristy8b350f62009-11-15 23:12:43 +00004711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004712$as_echo "$ac_cv_prog_cc_g" >&6; }
4713if test "$ac_test_CFLAGS" = set; then
4714 CFLAGS=$ac_save_CFLAGS
4715elif test $ac_cv_prog_cc_g = yes; then
4716 if test "$GCC" = yes; then
4717 CFLAGS="-g -O2"
4718 else
4719 CFLAGS="-g"
4720 fi
4721else
4722 if test "$GCC" = yes; then
4723 CFLAGS="-O2"
4724 else
4725 CFLAGS=
4726 fi
4727fi
cristy8b350f62009-11-15 23:12:43 +00004728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004729$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004730if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004731 $as_echo_n "(cached) " >&6
4732else
4733 ac_cv_prog_cc_c89=no
4734ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004736/* end confdefs.h. */
4737#include <stdarg.h>
4738#include <stdio.h>
4739#include <sys/types.h>
4740#include <sys/stat.h>
4741/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4742struct buf { int x; };
4743FILE * (*rcsopen) (struct buf *, struct stat *, int);
4744static char *e (p, i)
4745 char **p;
4746 int i;
4747{
4748 return p[i];
4749}
4750static char *f (char * (*g) (char **, int), char **p, ...)
4751{
4752 char *s;
4753 va_list v;
4754 va_start (v,p);
4755 s = g (p, va_arg (v,int));
4756 va_end (v);
4757 return s;
4758}
4759
4760/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4761 function prototypes and stuff, but not '\xHH' hex character constants.
4762 These don't provoke an error unfortunately, instead are silently treated
4763 as 'x'. The following induces an error, until -std is added to get
4764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4765 array size at least. It's necessary to write '\x00'==0 to get something
4766 that's true only with -std. */
4767int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4768
4769/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4770 inside strings and character constants. */
4771#define FOO(x) 'x'
4772int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4773
4774int test (int i, double x);
4775struct s1 {int (*f) (int a);};
4776struct s2 {int (*f) (double a);};
4777int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4778int argc;
4779char **argv;
4780int
4781main ()
4782{
4783return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4784 ;
4785 return 0;
4786}
4787_ACEOF
4788for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4789 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4790do
4791 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004792 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004793 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004794fi
cristy3ed852e2009-09-05 21:47:34 +00004795rm -f core conftest.err conftest.$ac_objext
4796 test "x$ac_cv_prog_cc_c89" != "xno" && break
4797done
4798rm -f conftest.$ac_ext
4799CC=$ac_save_CC
4800
4801fi
4802# AC_CACHE_VAL
4803case "x$ac_cv_prog_cc_c89" in
4804 x)
cristy8b350f62009-11-15 23:12:43 +00004805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004806$as_echo "none needed" >&6; } ;;
4807 xno)
cristy8b350f62009-11-15 23:12:43 +00004808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004809$as_echo "unsupported" >&6; } ;;
4810 *)
4811 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004813$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4814esac
cristy8b350f62009-11-15 23:12:43 +00004815if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004816
cristy8b350f62009-11-15 23:12:43 +00004817fi
cristy3ed852e2009-09-05 21:47:34 +00004818
4819ac_ext=c
4820ac_cpp='$CPP $CPPFLAGS'
4821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824DEPDIR="${am__leading_dot}deps"
4825
4826ac_config_commands="$ac_config_commands depfiles"
4827
4828
4829am_make=${MAKE-make}
4830cat > confinc << 'END'
4831am__doit:
4832 @echo this is the am__doit target
4833.PHONY: am__doit
4834END
4835# If we don't find an include directive, just comment out the code.
cristy8b350f62009-11-15 23:12:43 +00004836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cristy3ed852e2009-09-05 21:47:34 +00004837$as_echo_n "checking for style of include used by $am_make... " >&6; }
4838am__include="#"
4839am__quote=
4840_am_result=none
4841# First try GNU make style include.
4842echo "include confinc" > confmf
4843# Ignore all kinds of additional output from `make'.
4844case `$am_make -s -f confmf 2> /dev/null` in #(
4845*the\ am__doit\ target*)
4846 am__include=include
4847 am__quote=
4848 _am_result=GNU
4849 ;;
4850esac
4851# Now try BSD make style include.
4852if test "$am__include" = "#"; then
4853 echo '.include "confinc"' > confmf
4854 case `$am_make -s -f confmf 2> /dev/null` in #(
4855 *the\ am__doit\ target*)
4856 am__include=.include
4857 am__quote="\""
4858 _am_result=BSD
4859 ;;
4860 esac
4861fi
4862
4863
cristy8b350f62009-11-15 23:12:43 +00004864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cristy3ed852e2009-09-05 21:47:34 +00004865$as_echo "$_am_result" >&6; }
4866rm -f confinc confmf
4867
4868# Check whether --enable-dependency-tracking was given.
cristy8b350f62009-11-15 23:12:43 +00004869if test "${enable_dependency_tracking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004870 enableval=$enable_dependency_tracking;
4871fi
4872
4873if test "x$enable_dependency_tracking" != xno; then
4874 am_depcomp="$ac_aux_dir/depcomp"
4875 AMDEPBACKSLASH='\'
4876fi
4877 if test "x$enable_dependency_tracking" != xno; then
4878 AMDEP_TRUE=
4879 AMDEP_FALSE='#'
4880else
4881 AMDEP_TRUE='#'
4882 AMDEP_FALSE=
4883fi
4884
4885
4886
4887depcc="$CC" am_compiler_list=
4888
cristy8b350f62009-11-15 23:12:43 +00004889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00004890$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004891if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004892 $as_echo_n "(cached) " >&6
4893else
4894 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4895 # We make a subdir and do the tests there. Otherwise we can end up
4896 # making bogus files that we don't know about and never remove. For
4897 # instance it was reported that on HP-UX the gcc test will end up
4898 # making a dummy file named `D' -- because `-MD' means `put the output
4899 # in D'.
4900 mkdir conftest.dir
4901 # Copy depcomp to subdir because otherwise we won't find it if we're
4902 # using a relative directory.
4903 cp "$am_depcomp" conftest.dir
4904 cd conftest.dir
4905 # We will build objects and dependencies in a subdirectory because
4906 # it helps to detect inapplicable dependency modes. For instance
4907 # both Tru64's cc and ICC support -MD to output dependencies as a
4908 # side effect of compilation, but ICC will put the dependencies in
4909 # the current directory while Tru64 will put them in the object
4910 # directory.
4911 mkdir sub
4912
4913 am_cv_CC_dependencies_compiler_type=none
4914 if test "$am_compiler_list" = ""; then
4915 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4916 fi
4917 am__universal=false
4918 case " $depcc " in #(
4919 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4920 esac
4921
4922 for depmode in $am_compiler_list; do
4923 # Setup a source with many dependencies, because some compilers
4924 # like to wrap large dependency lists on column 80 (with \), and
4925 # we should not choose a depcomp mode which is confused by this.
4926 #
4927 # We need to recreate these files for each test, as the compiler may
4928 # overwrite some of them when testing with obscure command lines.
4929 # This happens at least with the AIX C compiler.
4930 : > sub/conftest.c
4931 for i in 1 2 3 4 5 6; do
4932 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4933 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4934 # Solaris 8's {/usr,}/bin/sh.
4935 touch sub/conftst$i.h
4936 done
4937 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4938
4939 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4940 # mode. It turns out that the SunPro C++ compiler does not properly
4941 # handle `-M -o', and we need to detect this. Also, some Intel
4942 # versions had trouble with output in subdirs
4943 am__obj=sub/conftest.${OBJEXT-o}
4944 am__minus_obj="-o $am__obj"
4945 case $depmode in
4946 gcc)
4947 # This depmode causes a compiler race in universal mode.
4948 test "$am__universal" = false || continue
4949 ;;
4950 nosideeffect)
4951 # after this tag, mechanisms are not by side-effect, so they'll
4952 # only be used when explicitly requested
4953 if test "x$enable_dependency_tracking" = xyes; then
4954 continue
4955 else
4956 break
4957 fi
4958 ;;
4959 msvisualcpp | msvcmsys)
4960 # This compiler won't grok `-c -o', but also, the minuso test has
4961 # not run yet. These depmodes are late enough in the game, and
4962 # so weak that their functioning should not be impacted.
4963 am__obj=conftest.${OBJEXT-o}
4964 am__minus_obj=
4965 ;;
4966 none) break ;;
4967 esac
4968 if depmode=$depmode \
4969 source=sub/conftest.c object=$am__obj \
4970 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4971 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4972 >/dev/null 2>conftest.err &&
4973 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4974 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4975 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4976 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4977 # icc doesn't choke on unknown options, it will just issue warnings
4978 # or remarks (even with -Werror). So we grep stderr for any message
4979 # that says an option was ignored or not supported.
4980 # When given -MP, icc 7.0 and 7.1 complain thusly:
4981 # icc: Command line warning: ignoring option '-M'; no argument required
4982 # The diagnosis changed in icc 8.0:
4983 # icc: Command line remark: option '-MP' not supported
4984 if (grep 'ignoring option' conftest.err ||
4985 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4986 am_cv_CC_dependencies_compiler_type=$depmode
4987 break
4988 fi
4989 fi
4990 done
4991
4992 cd ..
4993 rm -rf conftest.dir
4994else
4995 am_cv_CC_dependencies_compiler_type=none
4996fi
4997
4998fi
cristy8b350f62009-11-15 23:12:43 +00004999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00005000$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5001CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5002
5003 if
5004 test "x$enable_dependency_tracking" != xno \
5005 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5006 am__fastdepCC_TRUE=
5007 am__fastdepCC_FALSE='#'
5008else
5009 am__fastdepCC_TRUE='#'
5010 am__fastdepCC_FALSE=
5011fi
5012
5013
cristy8b350f62009-11-15 23:12:43 +00005014 case $ac_cv_prog_cc_stdc in #(
5015 no) :
5016 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5017 *) :
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005019$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005020if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005021 $as_echo_n "(cached) " >&6
5022else
5023 ac_cv_prog_cc_c99=no
5024ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005026/* end confdefs.h. */
5027#include <stdarg.h>
5028#include <stdbool.h>
5029#include <stdlib.h>
5030#include <wchar.h>
5031#include <stdio.h>
5032
5033// Check varargs macros. These examples are taken from C99 6.10.3.5.
5034#define debug(...) fprintf (stderr, __VA_ARGS__)
5035#define showlist(...) puts (#__VA_ARGS__)
5036#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5037static void
5038test_varargs_macros (void)
5039{
5040 int x = 1234;
5041 int y = 5678;
5042 debug ("Flag");
5043 debug ("X = %d\n", x);
5044 showlist (The first, second, and third items.);
5045 report (x>y, "x is %d but y is %d", x, y);
5046}
5047
5048// Check long long types.
5049#define BIG64 18446744073709551615ull
5050#define BIG32 4294967295ul
5051#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5052#if !BIG_OK
5053 your preprocessor is broken;
5054#endif
5055#if BIG_OK
5056#else
5057 your preprocessor is broken;
5058#endif
5059static long long int bignum = -9223372036854775807LL;
5060static unsigned long long int ubignum = BIG64;
5061
5062struct incomplete_array
5063{
5064 int datasize;
5065 double data[];
5066};
5067
5068struct named_init {
5069 int number;
5070 const wchar_t *name;
5071 double average;
5072};
5073
5074typedef const char *ccp;
5075
5076static inline int
5077test_restrict (ccp restrict text)
5078{
5079 // See if C++-style comments work.
5080 // Iterate through items via the restricted pointer.
5081 // Also check for declarations in for loops.
5082 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5083 continue;
5084 return 0;
5085}
5086
5087// Check varargs and va_copy.
5088static void
5089test_varargs (const char *format, ...)
5090{
5091 va_list args;
5092 va_start (args, format);
5093 va_list args_copy;
5094 va_copy (args_copy, args);
5095
5096 const char *str;
5097 int number;
5098 float fnumber;
5099
5100 while (*format)
5101 {
5102 switch (*format++)
5103 {
5104 case 's': // string
5105 str = va_arg (args_copy, const char *);
5106 break;
5107 case 'd': // int
5108 number = va_arg (args_copy, int);
5109 break;
5110 case 'f': // float
5111 fnumber = va_arg (args_copy, double);
5112 break;
5113 default:
5114 break;
5115 }
5116 }
5117 va_end (args_copy);
5118 va_end (args);
5119}
5120
5121int
5122main ()
5123{
5124
5125 // Check bool.
5126 _Bool success = false;
5127
5128 // Check restrict.
5129 if (test_restrict ("String literal") == 0)
5130 success = true;
5131 char *restrict newvar = "Another string";
5132
5133 // Check varargs.
5134 test_varargs ("s, d' f .", "string", 65, 34.234);
5135 test_varargs_macros ();
5136
5137 // Check flexible array members.
5138 struct incomplete_array *ia =
5139 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5140 ia->datasize = 10;
5141 for (int i = 0; i < ia->datasize; ++i)
5142 ia->data[i] = i * 1.234;
5143
5144 // Check named initializers.
5145 struct named_init ni = {
5146 .number = 34,
5147 .name = L"Test wide string",
5148 .average = 543.34343,
5149 };
5150
5151 ni.number = 58;
5152
5153 int dynamic_array[ni.number];
5154 dynamic_array[ni.number - 1] = 543;
5155
5156 // work around unused variable warnings
5157 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5158 || dynamic_array[ni.number - 1] != 543);
5159
5160 ;
5161 return 0;
5162}
5163_ACEOF
5164for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5165do
5166 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005167 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005168 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005169fi
cristy3ed852e2009-09-05 21:47:34 +00005170rm -f core conftest.err conftest.$ac_objext
5171 test "x$ac_cv_prog_cc_c99" != "xno" && break
5172done
5173rm -f conftest.$ac_ext
5174CC=$ac_save_CC
5175
5176fi
5177# AC_CACHE_VAL
5178case "x$ac_cv_prog_cc_c99" in
5179 x)
cristy8b350f62009-11-15 23:12:43 +00005180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005181$as_echo "none needed" >&6; } ;;
5182 xno)
cristy8b350f62009-11-15 23:12:43 +00005183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005184$as_echo "unsupported" >&6; } ;;
5185 *)
5186 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00005187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005188$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5189esac
cristy8b350f62009-11-15 23:12:43 +00005190if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005191 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5192else
cristy8b350f62009-11-15 23:12:43 +00005193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005194$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005195if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005196 $as_echo_n "(cached) " >&6
5197else
5198 ac_cv_prog_cc_c89=no
5199ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005201/* end confdefs.h. */
5202#include <stdarg.h>
5203#include <stdio.h>
5204#include <sys/types.h>
5205#include <sys/stat.h>
5206/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5207struct buf { int x; };
5208FILE * (*rcsopen) (struct buf *, struct stat *, int);
5209static char *e (p, i)
5210 char **p;
5211 int i;
5212{
5213 return p[i];
5214}
5215static char *f (char * (*g) (char **, int), char **p, ...)
5216{
5217 char *s;
5218 va_list v;
5219 va_start (v,p);
5220 s = g (p, va_arg (v,int));
5221 va_end (v);
5222 return s;
5223}
5224
5225/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5226 function prototypes and stuff, but not '\xHH' hex character constants.
5227 These don't provoke an error unfortunately, instead are silently treated
5228 as 'x'. The following induces an error, until -std is added to get
5229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5230 array size at least. It's necessary to write '\x00'==0 to get something
5231 that's true only with -std. */
5232int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5233
5234/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5235 inside strings and character constants. */
5236#define FOO(x) 'x'
5237int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5238
5239int test (int i, double x);
5240struct s1 {int (*f) (int a);};
5241struct s2 {int (*f) (double a);};
5242int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5243int argc;
5244char **argv;
5245int
5246main ()
5247{
5248return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5249 ;
5250 return 0;
5251}
5252_ACEOF
5253for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5254 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5255do
5256 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005257 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005258 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005259fi
cristy3ed852e2009-09-05 21:47:34 +00005260rm -f core conftest.err conftest.$ac_objext
5261 test "x$ac_cv_prog_cc_c89" != "xno" && break
5262done
5263rm -f conftest.$ac_ext
5264CC=$ac_save_CC
5265
5266fi
5267# AC_CACHE_VAL
5268case "x$ac_cv_prog_cc_c89" in
5269 x)
cristy8b350f62009-11-15 23:12:43 +00005270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005271$as_echo "none needed" >&6; } ;;
5272 xno)
cristy8b350f62009-11-15 23:12:43 +00005273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005274$as_echo "unsupported" >&6; } ;;
5275 *)
5276 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005278$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5279esac
cristy8b350f62009-11-15 23:12:43 +00005280if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005281 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5282else
5283 ac_cv_prog_cc_stdc=no
5284fi
5285
cristy3ed852e2009-09-05 21:47:34 +00005286fi
cristy3ed852e2009-09-05 21:47:34 +00005287 ;;
5288esac
cristy8b350f62009-11-15 23:12:43 +00005289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00005290$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005291 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005292 $as_echo_n "(cached) " >&6
5293fi
5294
cristy8b350f62009-11-15 23:12:43 +00005295 case $ac_cv_prog_cc_stdc in #(
5296 no) :
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5298$as_echo "unsupported" >&6; } ;; #(
5299 '') :
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5301$as_echo "none needed" >&6; } ;; #(
5302 *) :
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00005304$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5305esac
5306
cristy3ed852e2009-09-05 21:47:34 +00005307ac_ext=c
5308ac_cpp='$CPP $CPPFLAGS'
5309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00005312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00005313$as_echo_n "checking how to run the C preprocessor... " >&6; }
5314# On Suns, sometimes $CPP names a directory.
5315if test -n "$CPP" && test -d "$CPP"; then
5316 CPP=
5317fi
5318if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00005319 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005320 $as_echo_n "(cached) " >&6
5321else
5322 # Double quotes because CPP needs to be expanded
5323 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5324 do
5325 ac_preproc_ok=false
5326for ac_c_preproc_warn_flag in '' yes
5327do
5328 # Use a header file that comes with gcc, so configuring glibc
5329 # with a fresh cross-compiler works.
5330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5331 # <limits.h> exists even on freestanding compilers.
5332 # On the NeXT, cc -E runs the code through the compiler's parser,
5333 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005335/* end confdefs.h. */
5336#ifdef __STDC__
5337# include <limits.h>
5338#else
5339# include <assert.h>
5340#endif
5341 Syntax error
5342_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005343if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005344
cristy8b350f62009-11-15 23:12:43 +00005345else
cristy3ed852e2009-09-05 21:47:34 +00005346 # Broken: fails on valid input.
5347continue
5348fi
cristy3ed852e2009-09-05 21:47:34 +00005349rm -f conftest.err conftest.$ac_ext
5350
5351 # OK, works on sane cases. Now check whether nonexistent headers
5352 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005354/* end confdefs.h. */
5355#include <ac_nonexistent.h>
5356_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005357if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005358 # Broken: success on invalid input.
5359continue
5360else
cristy3ed852e2009-09-05 21:47:34 +00005361 # Passes both tests.
5362ac_preproc_ok=:
5363break
5364fi
cristy3ed852e2009-09-05 21:47:34 +00005365rm -f conftest.err conftest.$ac_ext
5366
5367done
5368# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5369rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005370if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00005371 break
5372fi
5373
5374 done
5375 ac_cv_prog_CPP=$CPP
5376
5377fi
5378 CPP=$ac_cv_prog_CPP
5379else
5380 ac_cv_prog_CPP=$CPP
5381fi
cristy8b350f62009-11-15 23:12:43 +00005382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005383$as_echo "$CPP" >&6; }
5384ac_preproc_ok=false
5385for ac_c_preproc_warn_flag in '' yes
5386do
5387 # Use a header file that comes with gcc, so configuring glibc
5388 # with a fresh cross-compiler works.
5389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5390 # <limits.h> exists even on freestanding compilers.
5391 # On the NeXT, cc -E runs the code through the compiler's parser,
5392 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005394/* end confdefs.h. */
5395#ifdef __STDC__
5396# include <limits.h>
5397#else
5398# include <assert.h>
5399#endif
5400 Syntax error
5401_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005402if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005403
cristy8b350f62009-11-15 23:12:43 +00005404else
cristy3ed852e2009-09-05 21:47:34 +00005405 # Broken: fails on valid input.
5406continue
5407fi
cristy3ed852e2009-09-05 21:47:34 +00005408rm -f conftest.err conftest.$ac_ext
5409
5410 # OK, works on sane cases. Now check whether nonexistent headers
5411 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005413/* end confdefs.h. */
5414#include <ac_nonexistent.h>
5415_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005416if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005417 # Broken: success on invalid input.
5418continue
5419else
cristy3ed852e2009-09-05 21:47:34 +00005420 # Passes both tests.
5421ac_preproc_ok=:
5422break
5423fi
cristy3ed852e2009-09-05 21:47:34 +00005424rm -f conftest.err conftest.$ac_ext
5425
5426done
5427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5428rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005429if $ac_preproc_ok; then :
5430
cristy3ed852e2009-09-05 21:47:34 +00005431else
cristy8b350f62009-11-15 23:12:43 +00005432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00005434as_fn_error "C preprocessor \"$CPP\" fails sanity check
5435See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005436fi
5437
5438ac_ext=c
5439ac_cpp='$CPP $CPPFLAGS'
5440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442ac_compiler_gnu=$ac_cv_c_compiler_gnu
5443
cristy8b350f62009-11-15 23:12:43 +00005444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00005445$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005446if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005447 $as_echo_n "(cached) " >&6
5448else
5449 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5450 for ac_i in 1 2 3 4 5 6 7; do
5451 ac_script="$ac_script$as_nl$ac_script"
5452 done
5453 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00005454 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00005455 if test -z "$SED"; then
5456 ac_path_SED_found=false
5457 # Loop through the user's path and test for each of PROGNAME-LIST
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005463 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00005464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5466 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5467# Check for GNU ac_path_SED and select it if it is found.
5468 # Check for GNU $ac_path_SED
5469case `"$ac_path_SED" --version 2>&1` in
5470*GNU*)
5471 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5472*)
5473 ac_count=0
5474 $as_echo_n 0123456789 >"conftest.in"
5475 while :
5476 do
5477 cat "conftest.in" "conftest.in" >"conftest.tmp"
5478 mv "conftest.tmp" "conftest.in"
5479 cp "conftest.in" "conftest.nl"
5480 $as_echo '' >> "conftest.nl"
5481 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005483 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005484 if test $ac_count -gt ${ac_path_SED_max-0}; then
5485 # Best one so far, save it but keep looking for a better one
5486 ac_cv_path_SED="$ac_path_SED"
5487 ac_path_SED_max=$ac_count
5488 fi
5489 # 10*(2^10) chars as input seems more than enough
5490 test $ac_count -gt 10 && break
5491 done
5492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5493esac
5494
5495 $ac_path_SED_found && break 3
5496 done
5497 done
cristy8b350f62009-11-15 23:12:43 +00005498 done
cristy3ed852e2009-09-05 21:47:34 +00005499IFS=$as_save_IFS
5500 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00005501 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005502 fi
5503else
5504 ac_cv_path_SED=$SED
5505fi
5506
5507fi
cristy8b350f62009-11-15 23:12:43 +00005508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00005509$as_echo "$ac_cv_path_SED" >&6; }
5510 SED="$ac_cv_path_SED"
5511 rm -f conftest.sed
5512
5513test -z "$SED" && SED=sed
5514Xsed="$SED -e 1s/^X//"
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
cristy8b350f62009-11-15 23:12:43 +00005526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cristy3ed852e2009-09-05 21:47:34 +00005527$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005528if test "${ac_cv_path_GREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005529 $as_echo_n "(cached) " >&6
5530else
5531 if test -z "$GREP"; then
5532 ac_path_GREP_found=false
5533 # Loop through the user's path and test for each of PROGNAME-LIST
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5536do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005539 for ac_prog in grep ggrep; do
cristy3ed852e2009-09-05 21:47:34 +00005540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5542 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5543# Check for GNU ac_path_GREP and select it if it is found.
5544 # Check for GNU $ac_path_GREP
5545case `"$ac_path_GREP" --version 2>&1` in
5546*GNU*)
5547 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5548*)
5549 ac_count=0
5550 $as_echo_n 0123456789 >"conftest.in"
5551 while :
5552 do
5553 cat "conftest.in" "conftest.in" >"conftest.tmp"
5554 mv "conftest.tmp" "conftest.in"
5555 cp "conftest.in" "conftest.nl"
5556 $as_echo 'GREP' >> "conftest.nl"
5557 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005559 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005560 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5561 # Best one so far, save it but keep looking for a better one
5562 ac_cv_path_GREP="$ac_path_GREP"
5563 ac_path_GREP_max=$ac_count
5564 fi
5565 # 10*(2^10) chars as input seems more than enough
5566 test $ac_count -gt 10 && break
5567 done
5568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5569esac
5570
5571 $ac_path_GREP_found && break 3
5572 done
5573 done
cristy8b350f62009-11-15 23:12:43 +00005574 done
cristy3ed852e2009-09-05 21:47:34 +00005575IFS=$as_save_IFS
5576 if test -z "$ac_cv_path_GREP"; then
cristy8b350f62009-11-15 23:12:43 +00005577 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005578 fi
5579else
5580 ac_cv_path_GREP=$GREP
5581fi
5582
5583fi
cristy8b350f62009-11-15 23:12:43 +00005584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005585$as_echo "$ac_cv_path_GREP" >&6; }
5586 GREP="$ac_cv_path_GREP"
5587
5588
cristy8b350f62009-11-15 23:12:43 +00005589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00005590$as_echo_n "checking for egrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005591if test "${ac_cv_path_EGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005592 $as_echo_n "(cached) " >&6
5593else
5594 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5595 then ac_cv_path_EGREP="$GREP -E"
5596 else
5597 if test -z "$EGREP"; then
5598 ac_path_EGREP_found=false
5599 # Loop through the user's path and test for each of PROGNAME-LIST
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5602do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005605 for ac_prog in egrep; do
cristy3ed852e2009-09-05 21:47:34 +00005606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5608 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5609# Check for GNU ac_path_EGREP and select it if it is found.
5610 # Check for GNU $ac_path_EGREP
5611case `"$ac_path_EGREP" --version 2>&1` in
5612*GNU*)
5613 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5614*)
5615 ac_count=0
5616 $as_echo_n 0123456789 >"conftest.in"
5617 while :
5618 do
5619 cat "conftest.in" "conftest.in" >"conftest.tmp"
5620 mv "conftest.tmp" "conftest.in"
5621 cp "conftest.in" "conftest.nl"
5622 $as_echo 'EGREP' >> "conftest.nl"
5623 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005625 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005626 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5627 # Best one so far, save it but keep looking for a better one
5628 ac_cv_path_EGREP="$ac_path_EGREP"
5629 ac_path_EGREP_max=$ac_count
5630 fi
5631 # 10*(2^10) chars as input seems more than enough
5632 test $ac_count -gt 10 && break
5633 done
5634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5635esac
5636
5637 $ac_path_EGREP_found && break 3
5638 done
5639 done
cristy8b350f62009-11-15 23:12:43 +00005640 done
cristy3ed852e2009-09-05 21:47:34 +00005641IFS=$as_save_IFS
5642 if test -z "$ac_cv_path_EGREP"; then
cristy8b350f62009-11-15 23:12:43 +00005643 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005644 fi
5645else
5646 ac_cv_path_EGREP=$EGREP
5647fi
5648
5649 fi
5650fi
cristy8b350f62009-11-15 23:12:43 +00005651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005652$as_echo "$ac_cv_path_EGREP" >&6; }
5653 EGREP="$ac_cv_path_EGREP"
5654
5655
cristy8b350f62009-11-15 23:12:43 +00005656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00005657$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005658if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005659 $as_echo_n "(cached) " >&6
5660else
5661 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5662 then ac_cv_path_FGREP="$GREP -F"
5663 else
5664 if test -z "$FGREP"; then
5665 ac_path_FGREP_found=false
5666 # Loop through the user's path and test for each of PROGNAME-LIST
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5669do
5670 IFS=$as_save_IFS
5671 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005672 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00005673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5675 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5676# Check for GNU ac_path_FGREP and select it if it is found.
5677 # Check for GNU $ac_path_FGREP
5678case `"$ac_path_FGREP" --version 2>&1` in
5679*GNU*)
5680 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5681*)
5682 ac_count=0
5683 $as_echo_n 0123456789 >"conftest.in"
5684 while :
5685 do
5686 cat "conftest.in" "conftest.in" >"conftest.tmp"
5687 mv "conftest.tmp" "conftest.in"
5688 cp "conftest.in" "conftest.nl"
5689 $as_echo 'FGREP' >> "conftest.nl"
5690 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005692 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005693 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5694 # Best one so far, save it but keep looking for a better one
5695 ac_cv_path_FGREP="$ac_path_FGREP"
5696 ac_path_FGREP_max=$ac_count
5697 fi
5698 # 10*(2^10) chars as input seems more than enough
5699 test $ac_count -gt 10 && break
5700 done
5701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5702esac
5703
5704 $ac_path_FGREP_found && break 3
5705 done
5706 done
cristy8b350f62009-11-15 23:12:43 +00005707 done
cristy3ed852e2009-09-05 21:47:34 +00005708IFS=$as_save_IFS
5709 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00005710 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005711 fi
5712else
5713 ac_cv_path_FGREP=$FGREP
5714fi
5715
5716 fi
5717fi
cristy8b350f62009-11-15 23:12:43 +00005718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005719$as_echo "$ac_cv_path_FGREP" >&6; }
5720 FGREP="$ac_cv_path_FGREP"
5721
5722
5723test -z "$GREP" && GREP=grep
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00005744if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005745 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5746else
5747 with_gnu_ld=no
5748fi
5749
5750ac_prog=ld
5751if test "$GCC" = yes; then
5752 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00005753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00005754$as_echo_n "checking for ld used by $CC... " >&6; }
5755 case $host in
5756 *-*-mingw*)
5757 # gcc leaves a trailing carriage return which upsets mingw
5758 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5759 *)
5760 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5761 esac
5762 case $ac_prog in
5763 # Accept absolute paths.
5764 [\\/]* | ?:[\\/]*)
5765 re_direlt='/[^/][^/]*/\.\./'
5766 # Canonicalize the pathname of ld
5767 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5768 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5769 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5770 done
5771 test -z "$LD" && LD="$ac_prog"
5772 ;;
5773 "")
5774 # If it fails, then pretend we aren't using GCC.
5775 ac_prog=ld
5776 ;;
5777 *)
5778 # If it is relative, then search for the first ld in PATH.
5779 with_gnu_ld=unknown
5780 ;;
5781 esac
5782elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00005783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005784$as_echo_n "checking for GNU ld... " >&6; }
5785else
cristy8b350f62009-11-15 23:12:43 +00005786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005787$as_echo_n "checking for non-GNU ld... " >&6; }
5788fi
cristy8b350f62009-11-15 23:12:43 +00005789if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005790 $as_echo_n "(cached) " >&6
5791else
5792 if test -z "$LD"; then
5793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5794 for ac_dir in $PATH; do
5795 IFS="$lt_save_ifs"
5796 test -z "$ac_dir" && ac_dir=.
5797 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5798 lt_cv_path_LD="$ac_dir/$ac_prog"
5799 # Check to see if the program is GNU ld. I'd rather use --version,
5800 # but apparently some variants of GNU ld only accept -v.
5801 # Break only if it was the GNU/non-GNU ld that we prefer.
5802 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5803 *GNU* | *'with BFD'*)
5804 test "$with_gnu_ld" != no && break
5805 ;;
5806 *)
5807 test "$with_gnu_ld" != yes && break
5808 ;;
5809 esac
5810 fi
5811 done
5812 IFS="$lt_save_ifs"
5813else
5814 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5815fi
5816fi
5817
5818LD="$lt_cv_path_LD"
5819if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00005820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00005821$as_echo "$LD" >&6; }
5822else
cristy8b350f62009-11-15 23:12:43 +00005823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005824$as_echo "no" >&6; }
5825fi
cristy8b350f62009-11-15 23:12:43 +00005826test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005828$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005829if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005830 $as_echo_n "(cached) " >&6
5831else
5832 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5833case `$LD -v 2>&1 </dev/null` in
5834*GNU* | *'with BFD'*)
5835 lt_cv_prog_gnu_ld=yes
5836 ;;
5837*)
5838 lt_cv_prog_gnu_ld=no
5839 ;;
5840esac
5841fi
cristy8b350f62009-11-15 23:12:43 +00005842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005843$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5844with_gnu_ld=$lt_cv_prog_gnu_ld
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854if test -n "$ac_tool_prefix"; then
5855 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5856set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00005857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00005858$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005859if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005860 $as_echo_n "(cached) " >&6
5861else
5862 if test -n "$RANLIB"; then
5863 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5864else
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00005871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00005873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005874 break 2
5875 fi
5876done
cristy8b350f62009-11-15 23:12:43 +00005877 done
cristy3ed852e2009-09-05 21:47:34 +00005878IFS=$as_save_IFS
5879
5880fi
5881fi
5882RANLIB=$ac_cv_prog_RANLIB
5883if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00005884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00005885$as_echo "$RANLIB" >&6; }
5886else
cristy8b350f62009-11-15 23:12:43 +00005887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005888$as_echo "no" >&6; }
5889fi
5890
5891
5892fi
5893if test -z "$ac_cv_prog_RANLIB"; then
5894 ac_ct_RANLIB=$RANLIB
5895 # Extract the first word of "ranlib", so it can be a program name with args.
5896set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00005897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00005898$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005899if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005900 $as_echo_n "(cached) " >&6
5901else
5902 if test -n "$ac_ct_RANLIB"; then
5903 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00005911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00005913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005914 break 2
5915 fi
5916done
cristy8b350f62009-11-15 23:12:43 +00005917 done
cristy3ed852e2009-09-05 21:47:34 +00005918IFS=$as_save_IFS
5919
5920fi
5921fi
5922ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5923if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00005924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00005925$as_echo "$ac_ct_RANLIB" >&6; }
5926else
cristy8b350f62009-11-15 23:12:43 +00005927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005928$as_echo "no" >&6; }
5929fi
5930
5931 if test "x$ac_ct_RANLIB" = x; then
5932 RANLIB=":"
5933 else
5934 case $cross_compiling:$ac_tool_warned in
5935yes:)
cristy8b350f62009-11-15 23:12:43 +00005936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00005937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5938ac_tool_warned=yes ;;
5939esac
5940 RANLIB=$ac_ct_RANLIB
5941 fi
5942else
5943 RANLIB="$ac_cv_prog_RANLIB"
5944fi
5945
5946
5947if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00005948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00005949$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5950else
cristy8b350f62009-11-15 23:12:43 +00005951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00005952$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5953fi
5954set dummy $CC; ac_cc=`$as_echo "$2" |
5955 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00005956if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005957 $as_echo_n "(cached) " >&6
5958else
cristy8b350f62009-11-15 23:12:43 +00005959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005960/* end confdefs.h. */
5961
5962int
5963main ()
5964{
5965
5966 ;
5967 return 0;
5968}
5969_ACEOF
5970# Make sure it works both with $CC and with simple cc.
5971# We do the test twice because some compilers refuse to overwrite an
5972# existing .o file with -o, though they will create one.
5973ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5974rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00005975if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00005976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978esac
cristy8b350f62009-11-15 23:12:43 +00005979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5980$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005981 (eval "$ac_try") 2>&5
5982 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5984 test $ac_status = 0; } &&
5985 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00005986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988esac
cristy8b350f62009-11-15 23:12:43 +00005989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5990$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005991 (eval "$ac_try") 2>&5
5992 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5994 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00005995then
5996 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5997 if test "x$CC" != xcc; then
5998 # Test first that cc exists at all.
5999 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00006000 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003esac
cristy8b350f62009-11-15 23:12:43 +00006004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6005$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006006 (eval "$ac_try") 2>&5
6007 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6009 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00006010 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6011 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00006012 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015esac
cristy8b350f62009-11-15 23:12:43 +00006016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6017$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006018 (eval "$ac_try") 2>&5
6019 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6021 test $ac_status = 0; } &&
6022 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6025esac
cristy8b350f62009-11-15 23:12:43 +00006026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6027$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006028 (eval "$ac_try") 2>&5
6029 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6031 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00006032 then
6033 # cc works too.
6034 :
6035 else
6036 # cc exists but doesn't like -o.
6037 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6038 fi
6039 fi
6040 fi
6041else
6042 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6043fi
6044rm -f core conftest*
6045
6046fi
6047if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00006048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006049$as_echo "yes" >&6; }
6050else
cristy8b350f62009-11-15 23:12:43 +00006051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006052$as_echo "no" >&6; }
6053
cristy8b350f62009-11-15 23:12:43 +00006054$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006055
6056fi
6057
6058# FIXME: we rely on the cache variable name because
6059# there is no other way.
6060set dummy $CC
6061am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6062eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6063if test "$am_t" != yes; then
6064 # Losing compiler, so override with the script.
6065 # FIXME: It is wrong to rewrite CC.
6066 # But if we don't then we get into trouble of one sort or another.
6067 # A longer-term fix would be to have automake use am__CC in this case,
6068 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6069 CC="$am_aux_dir/compile $CC"
6070fi
6071
6072
cristy3ed852e2009-09-05 21:47:34 +00006073
cristy8b350f62009-11-15 23:12:43 +00006074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00006075$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6076set x ${MAKE-make}
6077ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00006078if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00006079 $as_echo_n "(cached) " >&6
6080else
6081 cat >conftest.make <<\_ACEOF
6082SHELL = /bin/sh
6083all:
6084 @echo '@@@%%%=$(MAKE)=@@@%%%'
6085_ACEOF
6086# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6087case `${MAKE-make} -f conftest.make 2>/dev/null` in
6088 *@@@%%%=?*=@@@%%%*)
6089 eval ac_cv_prog_make_${ac_make}_set=yes;;
6090 *)
6091 eval ac_cv_prog_make_${ac_make}_set=no;;
6092esac
6093rm -f conftest.make
6094fi
6095if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00006096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006097$as_echo "yes" >&6; }
6098 SET_MAKE=
6099else
cristy8b350f62009-11-15 23:12:43 +00006100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006101$as_echo "no" >&6; }
6102 SET_MAKE="MAKE=${MAKE-make}"
6103fi
6104
6105ac_ext=cpp
6106ac_cpp='$CXXCPP $CPPFLAGS'
6107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6110if test -z "$CXX"; then
6111 if test -n "$CCC"; then
6112 CXX=$CCC
6113 else
6114 if test -n "$ac_tool_prefix"; then
6115 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6116 do
6117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6118set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006120$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006121if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006122 $as_echo_n "(cached) " >&6
6123else
6124 if test -n "$CXX"; then
6125 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6126else
6127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128for as_dir in $PATH
6129do
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00006135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006136 break 2
6137 fi
6138done
cristy8b350f62009-11-15 23:12:43 +00006139 done
cristy3ed852e2009-09-05 21:47:34 +00006140IFS=$as_save_IFS
6141
6142fi
6143fi
6144CXX=$ac_cv_prog_CXX
6145if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +00006146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +00006147$as_echo "$CXX" >&6; }
6148else
cristy8b350f62009-11-15 23:12:43 +00006149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006150$as_echo "no" >&6; }
6151fi
6152
6153
6154 test -n "$CXX" && break
6155 done
6156fi
6157if test -z "$CXX"; then
6158 ac_ct_CXX=$CXX
6159 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6160do
6161 # Extract the first word of "$ac_prog", so it can be a program name with args.
6162set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006164$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006165if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006166 $as_echo_n "(cached) " >&6
6167else
6168 if test -n "$ac_ct_CXX"; then
6169 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6170else
6171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172for as_dir in $PATH
6173do
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006176 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6178 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00006179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006180 break 2
6181 fi
6182done
cristy8b350f62009-11-15 23:12:43 +00006183 done
cristy3ed852e2009-09-05 21:47:34 +00006184IFS=$as_save_IFS
6185
6186fi
6187fi
6188ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6189if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +00006190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +00006191$as_echo "$ac_ct_CXX" >&6; }
6192else
cristy8b350f62009-11-15 23:12:43 +00006193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006194$as_echo "no" >&6; }
6195fi
6196
6197
6198 test -n "$ac_ct_CXX" && break
6199done
6200
6201 if test "x$ac_ct_CXX" = x; then
6202 CXX="g++"
6203 else
6204 case $cross_compiling:$ac_tool_warned in
6205yes:)
cristy8b350f62009-11-15 23:12:43 +00006206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6208ac_tool_warned=yes ;;
6209esac
6210 CXX=$ac_ct_CXX
6211 fi
6212fi
6213
6214 fi
6215fi
6216# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00006217$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00006218set X $ac_compile
6219ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00006220for ac_option in --version -v -V -qversion; do
6221 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00006222case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225esac
cristy8b350f62009-11-15 23:12:43 +00006226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6227$as_echo "$ac_try_echo"; } >&5
6228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00006229 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006230 if test -s conftest.err; then
6231 sed '10a\
6232... rest of stderr output deleted ...
6233 10q' conftest.err >conftest.er1
6234 cat conftest.er1 >&5
6235 rm -f conftest.er1 conftest.err
6236 fi
6237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6238 test $ac_status = 0; }
6239done
cristy3ed852e2009-09-05 21:47:34 +00006240
cristy8b350f62009-11-15 23:12:43 +00006241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00006242$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006243if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006244 $as_echo_n "(cached) " >&6
6245else
cristy8b350f62009-11-15 23:12:43 +00006246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006247/* end confdefs.h. */
6248
6249int
6250main ()
6251{
6252#ifndef __GNUC__
6253 choke me
6254#endif
6255
6256 ;
6257 return 0;
6258}
6259_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006260if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006261 ac_compiler_gnu=yes
6262else
cristy8b350f62009-11-15 23:12:43 +00006263 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00006264fi
cristy3ed852e2009-09-05 21:47:34 +00006265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6266ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6267
6268fi
cristy8b350f62009-11-15 23:12:43 +00006269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00006270$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6271if test $ac_compiler_gnu = yes; then
6272 GXX=yes
6273else
6274 GXX=
6275fi
6276ac_test_CXXFLAGS=${CXXFLAGS+set}
6277ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +00006278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00006279$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006280if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006281 $as_echo_n "(cached) " >&6
6282else
6283 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6284 ac_cxx_werror_flag=yes
6285 ac_cv_prog_cxx_g=no
6286 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00006287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006288/* end confdefs.h. */
6289
6290int
6291main ()
6292{
6293
6294 ;
6295 return 0;
6296}
6297_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006298if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006299 ac_cv_prog_cxx_g=yes
6300else
cristy8b350f62009-11-15 23:12:43 +00006301 CXXFLAGS=""
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006303/* end confdefs.h. */
6304
6305int
6306main ()
6307{
6308
6309 ;
6310 return 0;
6311}
6312_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006313if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006314
cristy8b350f62009-11-15 23:12:43 +00006315else
6316 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00006317 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00006318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006319/* end confdefs.h. */
6320
6321int
6322main ()
6323{
6324
6325 ;
6326 return 0;
6327}
6328_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006329if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006330 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +00006331fi
cristy3ed852e2009-09-05 21:47:34 +00006332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333fi
cristy3ed852e2009-09-05 21:47:34 +00006334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335fi
cristy3ed852e2009-09-05 21:47:34 +00006336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6338fi
cristy8b350f62009-11-15 23:12:43 +00006339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00006340$as_echo "$ac_cv_prog_cxx_g" >&6; }
6341if test "$ac_test_CXXFLAGS" = set; then
6342 CXXFLAGS=$ac_save_CXXFLAGS
6343elif test $ac_cv_prog_cxx_g = yes; then
6344 if test "$GXX" = yes; then
6345 CXXFLAGS="-g -O2"
6346 else
6347 CXXFLAGS="-g"
6348 fi
6349else
6350 if test "$GXX" = yes; then
6351 CXXFLAGS="-O2"
6352 else
6353 CXXFLAGS=
6354 fi
6355fi
6356ac_ext=c
6357ac_cpp='$CPP $CPPFLAGS'
6358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6360ac_compiler_gnu=$ac_cv_c_compiler_gnu
6361
6362depcc="$CXX" am_compiler_list=
6363
cristy8b350f62009-11-15 23:12:43 +00006364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006365$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006366if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006367 $as_echo_n "(cached) " >&6
6368else
6369 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6370 # We make a subdir and do the tests there. Otherwise we can end up
6371 # making bogus files that we don't know about and never remove. For
6372 # instance it was reported that on HP-UX the gcc test will end up
6373 # making a dummy file named `D' -- because `-MD' means `put the output
6374 # in D'.
6375 mkdir conftest.dir
6376 # Copy depcomp to subdir because otherwise we won't find it if we're
6377 # using a relative directory.
6378 cp "$am_depcomp" conftest.dir
6379 cd conftest.dir
6380 # We will build objects and dependencies in a subdirectory because
6381 # it helps to detect inapplicable dependency modes. For instance
6382 # both Tru64's cc and ICC support -MD to output dependencies as a
6383 # side effect of compilation, but ICC will put the dependencies in
6384 # the current directory while Tru64 will put them in the object
6385 # directory.
6386 mkdir sub
6387
6388 am_cv_CXX_dependencies_compiler_type=none
6389 if test "$am_compiler_list" = ""; then
6390 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6391 fi
6392 am__universal=false
6393 case " $depcc " in #(
6394 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6395 esac
6396
6397 for depmode in $am_compiler_list; do
6398 # Setup a source with many dependencies, because some compilers
6399 # like to wrap large dependency lists on column 80 (with \), and
6400 # we should not choose a depcomp mode which is confused by this.
6401 #
6402 # We need to recreate these files for each test, as the compiler may
6403 # overwrite some of them when testing with obscure command lines.
6404 # This happens at least with the AIX C compiler.
6405 : > sub/conftest.c
6406 for i in 1 2 3 4 5 6; do
6407 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6408 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6409 # Solaris 8's {/usr,}/bin/sh.
6410 touch sub/conftst$i.h
6411 done
6412 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6413
6414 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6415 # mode. It turns out that the SunPro C++ compiler does not properly
6416 # handle `-M -o', and we need to detect this. Also, some Intel
6417 # versions had trouble with output in subdirs
6418 am__obj=sub/conftest.${OBJEXT-o}
6419 am__minus_obj="-o $am__obj"
6420 case $depmode in
6421 gcc)
6422 # This depmode causes a compiler race in universal mode.
6423 test "$am__universal" = false || continue
6424 ;;
6425 nosideeffect)
6426 # after this tag, mechanisms are not by side-effect, so they'll
6427 # only be used when explicitly requested
6428 if test "x$enable_dependency_tracking" = xyes; then
6429 continue
6430 else
6431 break
6432 fi
6433 ;;
6434 msvisualcpp | msvcmsys)
6435 # This compiler won't grok `-c -o', but also, the minuso test has
6436 # not run yet. These depmodes are late enough in the game, and
6437 # so weak that their functioning should not be impacted.
6438 am__obj=conftest.${OBJEXT-o}
6439 am__minus_obj=
6440 ;;
6441 none) break ;;
6442 esac
6443 if depmode=$depmode \
6444 source=sub/conftest.c object=$am__obj \
6445 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6446 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6447 >/dev/null 2>conftest.err &&
6448 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6449 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6450 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6451 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6452 # icc doesn't choke on unknown options, it will just issue warnings
6453 # or remarks (even with -Werror). So we grep stderr for any message
6454 # that says an option was ignored or not supported.
6455 # When given -MP, icc 7.0 and 7.1 complain thusly:
6456 # icc: Command line warning: ignoring option '-M'; no argument required
6457 # The diagnosis changed in icc 8.0:
6458 # icc: Command line remark: option '-MP' not supported
6459 if (grep 'ignoring option' conftest.err ||
6460 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6461 am_cv_CXX_dependencies_compiler_type=$depmode
6462 break
6463 fi
6464 fi
6465 done
6466
6467 cd ..
6468 rm -rf conftest.dir
6469else
6470 am_cv_CXX_dependencies_compiler_type=none
6471fi
6472
6473fi
cristy8b350f62009-11-15 23:12:43 +00006474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006475$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6476CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6477
6478 if
6479 test "x$enable_dependency_tracking" != xno \
6480 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6481 am__fastdepCXX_TRUE=
6482 am__fastdepCXX_FALSE='#'
6483else
6484 am__fastdepCXX_TRUE='#'
6485 am__fastdepCXX_FALSE=
6486fi
6487
6488
6489
cristy8b350f62009-11-15 23:12:43 +00006490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006491$as_echo_n "checking maximum warning verbosity option... " >&6; }
6492
6493
6494
6495
6496# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00006497if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006498 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6499else
6500 ac_compile_warnings_on=""
6501fi
6502
6503
6504 if test x"$ac_compile_warnings_on" = xno
6505 then
6506 ac_compile_warnings_msg=no
6507 else
6508 if test -n "$CXX"
6509 then
6510 if test "$GXX" = "yes"
6511 then
6512 ac_compile_warnings_opt='-Wall -W'
6513 fi
6514 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6515 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6516 fi
6517
6518 if test -n "$CC"
6519 then
6520 if test "$GCC" = "yes"
6521 then
6522 ac_compile_warnings_opt='-Wall -W'
6523 fi
6524 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6525 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6526 fi
6527 fi
cristy8b350f62009-11-15 23:12:43 +00006528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00006529$as_echo "$ac_compile_warnings_msg" >&6; }
6530 unset ac_compile_warnings_msg
6531 unset ac_compile_warnings_opt
6532
cristy8b350f62009-11-15 23:12:43 +00006533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00006534$as_echo_n "checking whether ln -s works... " >&6; }
6535LN_S=$as_ln_s
6536if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00006537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006538$as_echo "yes" >&6; }
6539else
cristy8b350f62009-11-15 23:12:43 +00006540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00006541$as_echo "no, using $LN_S" >&6; }
6542fi
6543
cristy8b350f62009-11-15 23:12:43 +00006544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00006545$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6546
6547# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00006548if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006549 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006551$as_echo "yes" >&6; }
6552
cristy8b350f62009-11-15 23:12:43 +00006553$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006554
6555 LIBS="$LIBS -ldmalloc"
6556 LDFLAGS="$LDFLAGS -g"
6557else
cristy8b350f62009-11-15 23:12:43 +00006558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006559$as_echo "no" >&6; }
6560fi
6561else
cristy8b350f62009-11-15 23:12:43 +00006562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006563$as_echo "no" >&6; }
6564fi
6565
6566
6567
6568
6569if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6570 if test -n "$ac_tool_prefix"; then
6571 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6572set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006574$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006575if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006576 $as_echo_n "(cached) " >&6
6577else
6578 case $PKG_CONFIG in
6579 [\\/]* | ?:[\\/]*)
6580 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6581 ;;
6582 *)
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006588 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006592 break 2
6593 fi
6594done
cristy8b350f62009-11-15 23:12:43 +00006595 done
cristy3ed852e2009-09-05 21:47:34 +00006596IFS=$as_save_IFS
6597
6598 ;;
6599esac
6600fi
6601PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6602if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006604$as_echo "$PKG_CONFIG" >&6; }
6605else
cristy8b350f62009-11-15 23:12:43 +00006606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006607$as_echo "no" >&6; }
6608fi
6609
6610
6611fi
6612if test -z "$ac_cv_path_PKG_CONFIG"; then
6613 ac_pt_PKG_CONFIG=$PKG_CONFIG
6614 # Extract the first word of "pkg-config", so it can be a program name with args.
6615set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006617$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006618if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006619 $as_echo_n "(cached) " >&6
6620else
6621 case $ac_pt_PKG_CONFIG in
6622 [\\/]* | ?:[\\/]*)
6623 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6624 ;;
6625 *)
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006631 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006635 break 2
6636 fi
6637done
cristy8b350f62009-11-15 23:12:43 +00006638 done
cristy3ed852e2009-09-05 21:47:34 +00006639IFS=$as_save_IFS
6640
6641 ;;
6642esac
6643fi
6644ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6645if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006647$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6648else
cristy8b350f62009-11-15 23:12:43 +00006649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006650$as_echo "no" >&6; }
6651fi
6652
6653 if test "x$ac_pt_PKG_CONFIG" = x; then
6654 PKG_CONFIG=""
6655 else
6656 case $cross_compiling:$ac_tool_warned in
6657yes:)
cristy8b350f62009-11-15 23:12:43 +00006658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6660ac_tool_warned=yes ;;
6661esac
6662 PKG_CONFIG=$ac_pt_PKG_CONFIG
6663 fi
6664else
6665 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6666fi
6667
6668fi
6669if test -n "$PKG_CONFIG"; then
6670 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00006671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00006672$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6673 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00006674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006675$as_echo "yes" >&6; }
6676 else
cristy8b350f62009-11-15 23:12:43 +00006677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006678$as_echo "no" >&6; }
6679 PKG_CONFIG=""
6680 fi
6681
6682fi
6683
6684#
6685# Enable OS features.
6686#
6687
6688
cristy8b350f62009-11-15 23:12:43 +00006689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +00006690$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006691if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006692 $as_echo_n "(cached) " >&6
6693else
cristy8b350f62009-11-15 23:12:43 +00006694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006695/* end confdefs.h. */
6696#include <stdlib.h>
6697#include <stdarg.h>
6698#include <string.h>
6699#include <float.h>
6700
6701int
6702main ()
6703{
6704
6705 ;
6706 return 0;
6707}
6708_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006709if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006710 ac_cv_header_stdc=yes
6711else
cristy8b350f62009-11-15 23:12:43 +00006712 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006713fi
cristy3ed852e2009-09-05 21:47:34 +00006714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715
6716if test $ac_cv_header_stdc = yes; then
6717 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006719/* end confdefs.h. */
6720#include <string.h>
6721
6722_ACEOF
6723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006724 $EGREP "memchr" >/dev/null 2>&1; then :
6725
cristy3ed852e2009-09-05 21:47:34 +00006726else
6727 ac_cv_header_stdc=no
6728fi
6729rm -f conftest*
6730
6731fi
6732
6733if test $ac_cv_header_stdc = yes; then
6734 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006736/* end confdefs.h. */
6737#include <stdlib.h>
6738
6739_ACEOF
6740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006741 $EGREP "free" >/dev/null 2>&1; then :
6742
cristy3ed852e2009-09-05 21:47:34 +00006743else
6744 ac_cv_header_stdc=no
6745fi
6746rm -f conftest*
6747
6748fi
6749
6750if test $ac_cv_header_stdc = yes; then
6751 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +00006752 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006753 :
6754else
cristy8b350f62009-11-15 23:12:43 +00006755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006756/* end confdefs.h. */
6757#include <ctype.h>
6758#include <stdlib.h>
6759#if ((' ' & 0x0FF) == 0x020)
6760# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6761# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6762#else
6763# define ISLOWER(c) \
6764 (('a' <= (c) && (c) <= 'i') \
6765 || ('j' <= (c) && (c) <= 'r') \
6766 || ('s' <= (c) && (c) <= 'z'))
6767# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6768#endif
6769
6770#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6771int
6772main ()
6773{
6774 int i;
6775 for (i = 0; i < 256; i++)
6776 if (XOR (islower (i), ISLOWER (i))
6777 || toupper (i) != TOUPPER (i))
6778 return 2;
6779 return 0;
6780}
6781_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006782if ac_fn_c_try_run "$LINENO"; then :
6783
cristy3ed852e2009-09-05 21:47:34 +00006784else
cristy8b350f62009-11-15 23:12:43 +00006785 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006786fi
cristy8b350f62009-11-15 23:12:43 +00006787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6788 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006789fi
6790
cristy3ed852e2009-09-05 21:47:34 +00006791fi
6792fi
cristy8b350f62009-11-15 23:12:43 +00006793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006794$as_echo "$ac_cv_header_stdc" >&6; }
6795if test $ac_cv_header_stdc = yes; then
6796
cristy8b350f62009-11-15 23:12:43 +00006797$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006798
6799fi
6800
6801# On IRIX 5.3, sys/types and inttypes.h are conflicting.
cristy3ed852e2009-09-05 21:47:34 +00006802for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6803 inttypes.h stdint.h unistd.h
cristy8b350f62009-11-15 23:12:43 +00006804do :
6805 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6806ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6807"
6808eval as_val=\$$as_ac_Header
6809 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006810 cat >>confdefs.h <<_ACEOF
6811#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6812_ACEOF
6813
6814fi
6815
6816done
6817
6818
6819
cristy8b350f62009-11-15 23:12:43 +00006820 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6821if test "x$ac_cv_header_minix_config_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006822 MINIX=yes
6823else
6824 MINIX=
6825fi
6826
6827
6828 if test "$MINIX" = yes; then
6829
cristy8b350f62009-11-15 23:12:43 +00006830$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006831
6832
cristy8b350f62009-11-15 23:12:43 +00006833$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006834
6835
cristy8b350f62009-11-15 23:12:43 +00006836$as_echo "#define _MINIX 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006837
6838 fi
6839
6840
cristy8b350f62009-11-15 23:12:43 +00006841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006842$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006843if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006844 $as_echo_n "(cached) " >&6
6845else
cristy8b350f62009-11-15 23:12:43 +00006846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006847/* end confdefs.h. */
6848
6849# define __EXTENSIONS__ 1
6850 $ac_includes_default
6851int
6852main ()
6853{
6854
6855 ;
6856 return 0;
6857}
6858_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006859if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006860 ac_cv_safe_to_define___extensions__=yes
6861else
cristy8b350f62009-11-15 23:12:43 +00006862 ac_cv_safe_to_define___extensions__=no
cristy3ed852e2009-09-05 21:47:34 +00006863fi
cristy3ed852e2009-09-05 21:47:34 +00006864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865fi
cristy8b350f62009-11-15 23:12:43 +00006866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006867$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6868 test $ac_cv_safe_to_define___extensions__ = yes &&
cristy8b350f62009-11-15 23:12:43 +00006869 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006870
cristy8b350f62009-11-15 23:12:43 +00006871 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006872
cristy8b350f62009-11-15 23:12:43 +00006873 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006874
cristy8b350f62009-11-15 23:12:43 +00006875 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006876
cristy8b350f62009-11-15 23:12:43 +00006877 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6878
cristy3ed852e2009-09-05 21:47:34 +00006879
6880
6881
6882#
6883# Enable run-time checking.
6884#
6885# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00006886if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006887 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6888else
6889 enable_bounds_checking='no'
6890fi
6891
6892
6893if test "$enable_bounds_checking" = yes; then
6894
cristy8b350f62009-11-15 23:12:43 +00006895$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006896
6897fi
6898
6899#
6900# Tests for Windows
6901#
6902
6903
6904
6905GDI32_LIBS=''
6906StaticCplusPlusLibraries='no'
6907native_win32_build='no'
6908cygwin_build='no'
6909case "${host_os}" in
6910 cygwin* )
6911 StaticCplusPlusLibraries='yes'
6912 cygwin_build='yes'
6913 GDI32_LIBS='-lgdi32'
6914 ;;
6915 mingw* )
6916 StaticCplusPlusLibraries='yes'
6917 native_win32_build='yes'
6918 GDI32_LIBS='-lgdi32'
6919 ;;
6920esac
6921if test "${GDI32_LIBS}x" != 'x'; then
6922
cristy8b350f62009-11-15 23:12:43 +00006923$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006924
6925fi
6926
6927 if test "${GDI32_LIBS}x" != 'x' ; then
6928 WINGDI32_DELEGATE_TRUE=
6929 WINGDI32_DELEGATE_FALSE='#'
6930else
6931 WINGDI32_DELEGATE_TRUE='#'
6932 WINGDI32_DELEGATE_FALSE=
6933fi
6934
6935 if test "${native_win32_build}" = 'yes' ; then
6936 WIN32_NATIVE_BUILD_TRUE=
6937 WIN32_NATIVE_BUILD_FALSE='#'
6938else
6939 WIN32_NATIVE_BUILD_TRUE='#'
6940 WIN32_NATIVE_BUILD_FALSE=
6941fi
6942
6943 if test "${cygwin_build}" = 'yes' ; then
6944 CYGWIN_BUILD_TRUE=
6945 CYGWIN_BUILD_FALSE='#'
6946else
6947 CYGWIN_BUILD_TRUE='#'
6948 CYGWIN_BUILD_FALSE=
6949fi
6950
6951 if test "x${CC}" = 'xcl.exe' ; then
6952 USING_CL_TRUE=
6953 USING_CL_FALSE='#'
6954else
6955 USING_CL_TRUE='#'
6956 USING_CL_FALSE=
6957fi
6958
6959
6960WinPathScript="${srcdirfull}/winpath.sh"
6961
6962
6963#
6964# Compiler flags tweaks
6965#
6966if test "${GCC}" != "yes"; then
6967 case "${host}" in
6968 *-*-hpux* )
6969 # aCC: HP ANSI C++ B3910B A.03.34
6970 CFLAGS="${CFLAGS} -Wp,-H30000"
6971 if test -n "${CXXFLAGS}"; then
6972 CXXFLAGS='-AA'
6973 else
6974 CXXFLAGS="${CXXFLAGS} -AA"
6975 fi
6976 ;;
6977 *-dec-osf5.* )
6978 # Compaq alphaev68-dec-osf5.1 compiler
6979 if test -n "${CXXFLAGS}"; then
6980 CXXFLAGS='-std strict_ansi -noimplicit_include'
6981 else
6982 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
6983 fi
6984 esac
6985fi
6986
6987# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00006988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006989$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006990if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006991 $as_echo_n "(cached) " >&6
6992else
6993
6994im_cv_ld_lazyload='none'
6995case "${host}" in
6996 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
6997 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
6998 im_cv_ld_lazyload='-Wl,-zlazyload'
6999 fi
7000 ;;
7001esac
7002
7003fi
cristy8b350f62009-11-15 23:12:43 +00007004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00007005$as_echo "$im_cv_ld_lazyload" >&6; }
7006if test "${im_cv_ld_lazyload}" != 'none' ; then
7007 if test -z "${LDFLAGS}" ; then
7008 LDFLAGS="${im_cv_ld_lazyload}"
7009 else
7010 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7011 fi
7012fi
7013
7014case "$host" in
7015*darwin* | *-macos10*)
7016 if test -d /opt/local ; then
7017 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7018 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7019 elif test -d /sw ; then
7020 CPPFLAGS="$CPPFLAGS -I/sw/include"
7021 LDFLAGS="$LDFLAGS -L/sw/lib"
7022 fi
7023 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00007024if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007025 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7026else
7027 build_osxuniversal=no
7028fi
7029
7030
7031 if test "${build_osxuniversal}" != no ; then
7032 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00007033 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00007034Please re-run configure with these options:
7035 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00007036 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007037 fi
7038 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7039 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7040 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7041 fi
7042 ;;
7043esac
7044
7045# Enable support for threads
7046
7047# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00007048if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007049 withval=$with_threads; with_threads=$withval
7050else
7051 with_threads='yes'
7052fi
7053
7054
7055have_threads=no
7056if test "$with_threads" != 'no'; then
7057
7058
7059
7060ac_ext=c
7061ac_cpp='$CPP $CPPFLAGS'
7062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7064ac_compiler_gnu=$ac_cv_c_compiler_gnu
7065
7066acx_pthread_ok=no
7067
7068# We used to check for pthread.h first, but this fails if pthread.h
7069# requires special compiler flags (e.g. on True64 or Sequent).
7070# It gets checked for in the link test anyway.
7071
7072# First of all, check if the user has set any of the PTHREAD_LIBS,
7073# etcetera environment variables, and if threads linking works using
7074# them:
7075if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7076 save_CFLAGS="$CFLAGS"
7077 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7078 save_LIBS="$LIBS"
7079 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00007080 { $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 +00007081$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007083/* end confdefs.h. */
7084
7085/* Override any GCC internal prototype to avoid an error.
7086 Use char because int might match the return type of a GCC
7087 builtin and then its argument prototype would still apply. */
7088#ifdef __cplusplus
7089extern "C"
7090#endif
7091char pthread_join ();
7092int
7093main ()
7094{
7095return pthread_join ();
7096 ;
7097 return 0;
7098}
7099_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007100if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007101 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007102fi
cristy8b350f62009-11-15 23:12:43 +00007103rm -f core conftest.err conftest.$ac_objext \
7104 conftest$ac_exeext conftest.$ac_ext
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007106$as_echo "$acx_pthread_ok" >&6; }
7107 if test x"$acx_pthread_ok" = xno; then
7108 PTHREAD_LIBS=""
7109 PTHREAD_CFLAGS=""
7110 fi
7111 LIBS="$save_LIBS"
7112 CFLAGS="$save_CFLAGS"
7113fi
7114
7115# We must check for the threads library under a number of different
7116# names; the ordering is very important because some systems
7117# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7118# libraries is broken (non-POSIX).
7119
7120# Create a list of thread flags to try. Items starting with a "-" are
7121# C compiler flags, and other items are library names, except for "none"
7122# which indicates that we try without any flags at all, and "pthread-config"
7123# which is a program returning the flags for the Pth emulation library.
7124
7125acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7126
7127# The ordering *is* (sometimes) important. Some notes on the
7128# individual items follow:
7129
7130# pthreads: AIX (must check this before -lpthread)
7131# none: in case threads are in libc; should be tried before -Kthread and
7132# other compiler flags to prevent continual compiler warnings
7133# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7134# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7135# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7136# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7137# -pthreads: Solaris/gcc
7138# -mthreads: Mingw32/gcc, Lynx/gcc
7139# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7140# doesn't hurt to check since this sometimes defines pthreads too;
7141# also defines -D_REENTRANT)
7142# ... -mt is also the pthreads flag for HP/aCC
7143# pthread: Linux, etcetera
7144# --thread-safe: KAI C++
7145# pthread-config: use pthread-config program (for GNU Pth library)
7146
7147case "${host_cpu}-${host_os}" in
7148 *solaris*)
7149
7150 # On Solaris (at least, for some versions), libc contains stubbed
7151 # (non-functional) versions of the pthreads routines, so link-based
7152 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7153 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7154 # a function called by this macro, so we could check for that, but
7155 # who knows whether they'll stub that too in a future libc.) So,
7156 # we'll just look for -pthreads and -lpthread first:
7157
7158 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7159 ;;
cristy3ed852e2009-09-05 21:47:34 +00007160esac
7161
7162if test x"$acx_pthread_ok" = xno; then
7163for flag in $acx_pthread_flags; do
7164
7165 case $flag in
7166 none)
cristy8b350f62009-11-15 23:12:43 +00007167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00007168$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7169 ;;
7170
7171 -*)
cristy8b350f62009-11-15 23:12:43 +00007172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007173$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7174 PTHREAD_CFLAGS="$flag"
7175 ;;
7176
7177 pthread-config)
7178 # Extract the first word of "pthread-config", so it can be a program name with args.
7179set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007181$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007182if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007183 $as_echo_n "(cached) " >&6
7184else
7185 if test -n "$acx_pthread_config"; then
7186 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7187else
7188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189for as_dir in $PATH
7190do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007193 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00007196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007197 break 2
7198 fi
7199done
cristy8b350f62009-11-15 23:12:43 +00007200 done
cristy3ed852e2009-09-05 21:47:34 +00007201IFS=$as_save_IFS
7202
7203 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7204fi
7205fi
7206acx_pthread_config=$ac_cv_prog_acx_pthread_config
7207if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00007208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00007209$as_echo "$acx_pthread_config" >&6; }
7210else
cristy8b350f62009-11-15 23:12:43 +00007211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007212$as_echo "no" >&6; }
7213fi
7214
7215
7216 if test x"$acx_pthread_config" = xno; then continue; fi
7217 PTHREAD_CFLAGS="`pthread-config --cflags`"
7218 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7219 ;;
7220
7221 *)
cristy8b350f62009-11-15 23:12:43 +00007222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007223$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7224 PTHREAD_LIBS="-l$flag"
7225 ;;
7226 esac
7227
7228 save_LIBS="$LIBS"
7229 save_CFLAGS="$CFLAGS"
7230 LIBS="$PTHREAD_LIBS $LIBS"
7231 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7232
7233 # Check for various functions. We must include pthread.h,
7234 # since some functions may be macros. (On the Sequent, we
7235 # need a special flag -Kthread to make this header compile.)
7236 # We check for pthread_join because it is in -lpthread on IRIX
7237 # while pthread_create is in libc. We check for pthread_attr_init
7238 # due to DEC craziness with -lpthreads. We check for
7239 # pthread_cleanup_push because it is one of the few pthread
7240 # functions on Solaris that doesn't have a non-functional libc stub.
7241 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00007242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007243/* end confdefs.h. */
7244#include <pthread.h>
7245int
7246main ()
7247{
7248pthread_t th; pthread_join(th, 0);
7249 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7250 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7251 ;
7252 return 0;
7253}
7254_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007255if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007256 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007257fi
cristy8b350f62009-11-15 23:12:43 +00007258rm -f core conftest.err conftest.$ac_objext \
7259 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007260
7261 LIBS="$save_LIBS"
7262 CFLAGS="$save_CFLAGS"
7263
cristy8b350f62009-11-15 23:12:43 +00007264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007265$as_echo "$acx_pthread_ok" >&6; }
7266 if test "x$acx_pthread_ok" = xyes; then
7267 break;
7268 fi
7269
7270 PTHREAD_LIBS=""
7271 PTHREAD_CFLAGS=""
7272done
7273fi
7274
7275# Various other checks:
7276if test "x$acx_pthread_ok" = xyes; then
7277 save_LIBS="$LIBS"
7278 LIBS="$PTHREAD_LIBS $LIBS"
7279 save_CFLAGS="$CFLAGS"
7280 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7281
7282 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00007283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00007284$as_echo_n "checking for joinable pthread attribute... " >&6; }
7285 attr_name=unknown
7286 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00007287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007288/* end confdefs.h. */
7289#include <pthread.h>
7290int
7291main ()
7292{
7293int attr=$attr; return attr;
7294 ;
7295 return 0;
7296}
7297_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007298if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007299 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00007300fi
cristy8b350f62009-11-15 23:12:43 +00007301rm -f core conftest.err conftest.$ac_objext \
7302 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007303 done
cristy8b350f62009-11-15 23:12:43 +00007304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00007305$as_echo "$attr_name" >&6; }
7306 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7307
7308cat >>confdefs.h <<_ACEOF
7309#define PTHREAD_CREATE_JOINABLE $attr_name
7310_ACEOF
7311
7312 fi
7313
cristy8b350f62009-11-15 23:12:43 +00007314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00007315$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7316 flag=no
7317 case "${host_cpu}-${host_os}" in
7318 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7319 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7320 esac
cristy8b350f62009-11-15 23:12:43 +00007321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00007322$as_echo "${flag}" >&6; }
7323 if test "x$flag" != xno; then
7324 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7325 fi
7326
7327 LIBS="$save_LIBS"
7328 CFLAGS="$save_CFLAGS"
7329
7330 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00007331 if test x"$GCC" != xyes; then
7332 for ac_prog in xlc_r cc_r
7333do
7334 # Extract the first word of "$ac_prog", so it can be a program name with args.
7335set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007337$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007338if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007339 $as_echo_n "(cached) " >&6
7340else
7341 if test -n "$PTHREAD_CC"; then
7342 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7343else
7344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007349 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007350 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 +00007351 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00007352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007353 break 2
7354 fi
7355done
cristy8b350f62009-11-15 23:12:43 +00007356 done
cristy3ed852e2009-09-05 21:47:34 +00007357IFS=$as_save_IFS
7358
cristy3ed852e2009-09-05 21:47:34 +00007359fi
7360fi
7361PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7362if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007364$as_echo "$PTHREAD_CC" >&6; }
7365else
cristy8b350f62009-11-15 23:12:43 +00007366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007367$as_echo "no" >&6; }
7368fi
7369
cristy736173a2009-09-20 21:18:22 +00007370
7371 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00007372done
cristy736173a2009-09-20 21:18:22 +00007373test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00007374
cristy736173a2009-09-20 21:18:22 +00007375 else
7376 PTHREAD_CC=$CC
7377 fi
cristy3ed852e2009-09-05 21:47:34 +00007378else
cristy736173a2009-09-20 21:18:22 +00007379 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00007380fi
7381
cristy3ed852e2009-09-05 21:47:34 +00007382
7383
7384
7385
7386# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7387if test x"$acx_pthread_ok" = xyes; then
7388
cristy8b350f62009-11-15 23:12:43 +00007389$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007390
7391 :
7392else
7393 acx_pthread_ok=no
7394
7395fi
7396ac_ext=c
7397ac_cpp='$CPP $CPPFLAGS'
7398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7400ac_compiler_gnu=$ac_cv_c_compiler_gnu
7401
7402
7403 if test "$acx_pthread_ok" = yes; then
7404 have_threads=yes
7405 DEF_THREAD="$PTHREAD_CFLAGS"
7406 CFLAGS="$CFLAGS $DEF_THREAD"
7407 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7408 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007409 { $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 +00007410$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7411 CC="$PTHREAD_CC"
7412 fi
7413 fi
7414fi
7415
7416# Enable support for OpenMP
7417if test "$have_threads" != 'yes'; then
7418 ac_cv_prog_c_openmp=unsupported
7419fi
7420
7421 OPENMP_CFLAGS=
7422 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00007423if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007424 enableval=$enable_openmp;
7425fi
7426
7427 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00007428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007429$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007430if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007431 $as_echo_n "(cached) " >&6
7432else
cristy8b350f62009-11-15 23:12:43 +00007433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007435
7436#ifndef _OPENMP
7437 choke me
7438#endif
7439#include <omp.h>
7440int main () { return omp_get_num_threads (); }
7441
7442_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007443if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007444 ac_cv_prog_c_openmp='none needed'
7445else
cristy8b350f62009-11-15 23:12:43 +00007446 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00007447 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7448 ac_save_CFLAGS=$CFLAGS
7449 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00007450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007452
7453#ifndef _OPENMP
7454 choke me
7455#endif
7456#include <omp.h>
7457int main () { return omp_get_num_threads (); }
7458
7459_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007460if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007461 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00007462fi
cristy8b350f62009-11-15 23:12:43 +00007463rm -f core conftest.err conftest.$ac_objext \
7464 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007465 CFLAGS=$ac_save_CFLAGS
7466 if test "$ac_cv_prog_c_openmp" != unsupported; then
7467 break
7468 fi
7469 done
7470fi
cristy8b350f62009-11-15 23:12:43 +00007471rm -f core conftest.err conftest.$ac_objext \
7472 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007473fi
cristy8b350f62009-11-15 23:12:43 +00007474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00007475$as_echo "$ac_cv_prog_c_openmp" >&6; }
7476 case $ac_cv_prog_c_openmp in #(
7477 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00007478 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00007479 *)
cristy8b350f62009-11-15 23:12:43 +00007480 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00007481 esac
7482 fi
7483
7484
7485CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7486MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7487
7488
cristy736173a2009-09-20 21:18:22 +00007489# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00007490
7491ac_ext=c
7492ac_cpp='$CPP $CPPFLAGS'
7493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495ac_compiler_gnu=$ac_cv_c_compiler_gnu
7496
cristy8b350f62009-11-15 23:12:43 +00007497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00007498$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007499if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007500 $as_echo_n "(cached) " >&6
7501else
cristy8b350f62009-11-15 23:12:43 +00007502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007503/* end confdefs.h. */
7504
7505int
7506main ()
7507{
7508#ifndef _MSC_VER
7509 choke me
7510#endif
7511
7512 ;
7513 return 0;
7514}
7515_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007516if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007517 ax_compiler_ms=yes
7518else
cristy8b350f62009-11-15 23:12:43 +00007519 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00007520fi
cristy736173a2009-09-20 21:18:22 +00007521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522ax_cv_c_compiler_ms=$ax_compiler_ms
7523
7524fi
cristy8b350f62009-11-15 23:12:43 +00007525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00007526$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy8b350f62009-11-15 23:12:43 +00007527if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007528 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7529fi
7530
cristy736173a2009-09-20 21:18:22 +00007531ax_save_CPPFLAGS=$CPPFLAGS
7532CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +00007533for ac_header in CL/opencl.h OpenCL/OpenCL.h
cristy8b350f62009-11-15 23:12:43 +00007534do :
7535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7536ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7537eval as_val=\$$as_ac_Header
7538 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007539 cat >>confdefs.h <<_ACEOF
7540#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7541_ACEOF
7542
7543fi
7544
7545done
7546
7547CPPFLAGS=$ax_save_CPPFLAGS
7548
cristy736173a2009-09-20 21:18:22 +00007549for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00007550do :
7551 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7552if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007553 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007554#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00007555_ACEOF
7556
7557fi
7558
7559done
7560
7561
7562
7563
cristy8b350f62009-11-15 23:12:43 +00007564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00007565$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007566if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007567 $as_echo_n "(cached) " >&6
7568else
7569 ax_cv_check_cl_libcl=no
7570case $host_cpu in
7571 x86_64) ax_check_cl_libdir=lib64 ;;
7572 *) ax_check_cl_libdir=lib ;;
7573esac
7574ax_save_CPPFLAGS=$CPPFLAGS
7575CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7576ax_save_LIBS=$LIBS
7577LIBS=""
cristya49aa422009-09-20 23:40:10 +00007578ax_check_libs="-lOpenCL -lCL"
cristy736173a2009-09-20 21:18:22 +00007579for ax_lib in $ax_check_libs; do
cristy8b350f62009-11-15 23:12:43 +00007580 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007581 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
7582else
7583 ax_try_lib=$ax_lib
7584fi
cristy736173a2009-09-20 21:18:22 +00007585 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
cristy8b350f62009-11-15 23:12:43 +00007586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007587/* end confdefs.h. */
7588
7589# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7590# include <windows.h>
7591# endif
cristya03a0852009-10-13 02:02:39 +00007592# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007593# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007594# elif defined(HAVE_OPENCL_OPENCL_H)
7595# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007596# else
cristya03a0852009-10-13 02:02:39 +00007597# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007598# endif
7599int
7600main ()
7601{
cristyc7083c12009-10-14 03:16:55 +00007602clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007603 ;
7604 return 0;
7605}
7606_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007607if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007608 ax_cv_check_cl_libcl=$ax_try_lib; break
7609else
cristy8b350f62009-11-15 23:12:43 +00007610 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"
7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007612/* end confdefs.h. */
7613
7614# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7615# include <windows.h>
7616# endif
cristya03a0852009-10-13 02:02:39 +00007617# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007618# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007619# elif defined(HAVE_OPENCL_OPENCL_H)
7620# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007621# else
cristya03a0852009-10-13 02:02:39 +00007622# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007623# endif
7624int
7625main ()
7626{
cristyc7083c12009-10-14 03:16:55 +00007627clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007628 ;
7629 return 0;
7630}
7631_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007632if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007633 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
7634else
cristy8b350f62009-11-15 23:12:43 +00007635 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"
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007637/* end confdefs.h. */
7638
7639# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7640# include <windows.h>
7641# endif
cristya03a0852009-10-13 02:02:39 +00007642# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007643# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007644# elif defined(HAVE_OPENCL_OPENCL_H)
7645# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007646# else
cristya03a0852009-10-13 02:02:39 +00007647# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007648# endif
7649int
7650main ()
7651{
cristyc7083c12009-10-14 03:16:55 +00007652clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007653 ;
7654 return 0;
7655}
7656_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007657if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007658 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00007659fi
cristy8b350f62009-11-15 23:12:43 +00007660rm -f core conftest.err conftest.$ac_objext \
7661 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007662fi
cristy8b350f62009-11-15 23:12:43 +00007663rm -f core conftest.err conftest.$ac_objext \
7664 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007665fi
cristy8b350f62009-11-15 23:12:43 +00007666rm -f core conftest.err conftest.$ac_objext \
7667 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007668done
7669
cristy8b350f62009-11-15 23:12:43 +00007670if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007671 LIBS='-framework OpenCL'
cristy8b350f62009-11-15 23:12:43 +00007672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007673/* end confdefs.h. */
7674
7675# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7676# include <windows.h>
7677# endif
cristya03a0852009-10-13 02:02:39 +00007678# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007679# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007680# elif defined(HAVE_OPENCL_OPENCL_H)
7681# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007682# else
cristya03a0852009-10-13 02:02:39 +00007683# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007684# endif
7685int
7686main ()
7687{
cristyc7083c12009-10-14 03:16:55 +00007688clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007689 ;
7690 return 0;
7691}
7692_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007693if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007694 ax_cv_check_cl_libcl=$LIBS
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 +00007698fi
7699
cristy736173a2009-09-20 21:18:22 +00007700LIBS=$ax_save_LIBS
7701CPPFLAGS=$ax_save_CPPFLAGS
7702fi
cristy8b350f62009-11-15 23:12:43 +00007703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00007704$as_echo "$ax_cv_check_cl_libcl" >&6; }
7705
cristy8b350f62009-11-15 23:12:43 +00007706if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007707 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
7708else
7709 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
7710fi
cristy736173a2009-09-20 21:18:22 +00007711ac_ext=c
7712ac_cpp='$CPP $CPPFLAGS'
7713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7715ac_compiler_gnu=$ac_cv_c_compiler_gnu
7716
7717
7718
7719
7720
cristyc7083c12009-10-14 03:16:55 +00007721CFLAGS="$CL_CFLAGS $CFLAGS"
7722LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00007723
cristy2e8b51d2009-10-17 18:26:15 +00007724
cristy3ed852e2009-09-05 21:47:34 +00007725########
7726#
7727# Check for large file support
7728#
7729########
7730# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00007731if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007732 enableval=$enable_largefile;
7733fi
7734
7735if test "$enable_largefile" != no; then
7736
cristy8b350f62009-11-15 23:12:43 +00007737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007738$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007739if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007740 $as_echo_n "(cached) " >&6
7741else
7742 ac_cv_sys_largefile_CC=no
7743 if test "$GCC" != yes; then
7744 ac_save_CC=$CC
7745 while :; do
7746 # IRIX 6.2 and later do not support large files by default,
7747 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00007748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007749/* end confdefs.h. */
7750#include <sys/types.h>
7751 /* Check that off_t can represent 2**63 - 1 correctly.
7752 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7753 since some C++ compilers masquerading as C compilers
7754 incorrectly reject 9223372036854775807. */
7755#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7756 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7757 && LARGE_OFF_T % 2147483647 == 1)
7758 ? 1 : -1];
7759int
7760main ()
7761{
7762
7763 ;
7764 return 0;
7765}
7766_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007767 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007768 break
cristy3ed852e2009-09-05 21:47:34 +00007769fi
cristy3ed852e2009-09-05 21:47:34 +00007770rm -f core conftest.err conftest.$ac_objext
7771 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00007772 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007773 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00007774fi
cristy3ed852e2009-09-05 21:47:34 +00007775rm -f core conftest.err conftest.$ac_objext
7776 break
7777 done
7778 CC=$ac_save_CC
7779 rm -f conftest.$ac_ext
7780 fi
7781fi
cristy8b350f62009-11-15 23:12:43 +00007782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007783$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7784 if test "$ac_cv_sys_largefile_CC" != no; then
7785 CC=$CC$ac_cv_sys_largefile_CC
7786 fi
7787
cristy8b350f62009-11-15 23:12:43 +00007788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007789$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007790if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007791 $as_echo_n "(cached) " >&6
7792else
7793 while :; do
cristy8b350f62009-11-15 23:12:43 +00007794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007795/* end confdefs.h. */
7796#include <sys/types.h>
7797 /* Check that off_t can represent 2**63 - 1 correctly.
7798 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7799 since some C++ compilers masquerading as C compilers
7800 incorrectly reject 9223372036854775807. */
7801#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7803 && LARGE_OFF_T % 2147483647 == 1)
7804 ? 1 : -1];
7805int
7806main ()
7807{
7808
7809 ;
7810 return 0;
7811}
7812_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007813if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007814 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00007815fi
cristy3ed852e2009-09-05 21:47:34 +00007816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007818/* end confdefs.h. */
7819#define _FILE_OFFSET_BITS 64
7820#include <sys/types.h>
7821 /* Check that off_t can represent 2**63 - 1 correctly.
7822 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7823 since some C++ compilers masquerading as C compilers
7824 incorrectly reject 9223372036854775807. */
7825#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7826 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7827 && LARGE_OFF_T % 2147483647 == 1)
7828 ? 1 : -1];
7829int
7830main ()
7831{
7832
7833 ;
7834 return 0;
7835}
7836_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007837if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007838 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00007839fi
cristy3ed852e2009-09-05 21:47:34 +00007840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841 ac_cv_sys_file_offset_bits=unknown
7842 break
7843done
7844fi
cristy8b350f62009-11-15 23:12:43 +00007845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00007846$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7847case $ac_cv_sys_file_offset_bits in #(
7848 no | unknown) ;;
7849 *)
7850cat >>confdefs.h <<_ACEOF
7851#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7852_ACEOF
7853;;
7854esac
7855rm -rf conftest*
7856 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00007857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007858$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007859if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007860 $as_echo_n "(cached) " >&6
7861else
7862 while :; do
cristy8b350f62009-11-15 23:12:43 +00007863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007864/* end confdefs.h. */
7865#include <sys/types.h>
7866 /* Check that off_t can represent 2**63 - 1 correctly.
7867 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7868 since some C++ compilers masquerading as C compilers
7869 incorrectly reject 9223372036854775807. */
7870#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7871 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7872 && LARGE_OFF_T % 2147483647 == 1)
7873 ? 1 : -1];
7874int
7875main ()
7876{
7877
7878 ;
7879 return 0;
7880}
7881_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007882if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007883 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00007884fi
cristy3ed852e2009-09-05 21:47:34 +00007885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007887/* end confdefs.h. */
7888#define _LARGE_FILES 1
7889#include <sys/types.h>
7890 /* Check that off_t can represent 2**63 - 1 correctly.
7891 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7892 since some C++ compilers masquerading as C compilers
7893 incorrectly reject 9223372036854775807. */
7894#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7895 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7896 && LARGE_OFF_T % 2147483647 == 1)
7897 ? 1 : -1];
7898int
7899main ()
7900{
7901
7902 ;
7903 return 0;
7904}
7905_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007906if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007907 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00007908fi
cristy3ed852e2009-09-05 21:47:34 +00007909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910 ac_cv_sys_large_files=unknown
7911 break
7912done
7913fi
cristy8b350f62009-11-15 23:12:43 +00007914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007915$as_echo "$ac_cv_sys_large_files" >&6; }
7916case $ac_cv_sys_large_files in #(
7917 no | unknown) ;;
7918 *)
7919cat >>confdefs.h <<_ACEOF
7920#define _LARGE_FILES $ac_cv_sys_large_files
7921_ACEOF
7922;;
7923esac
7924rm -rf conftest*
7925 fi
7926fi
7927
cristy8b350f62009-11-15 23:12:43 +00007928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007929$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007930if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007931 $as_echo_n "(cached) " >&6
7932else
7933 while :; do
cristy8b350f62009-11-15 23:12:43 +00007934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007935/* end confdefs.h. */
7936#include <sys/types.h> /* for off_t */
7937 #include <stdio.h>
7938int
7939main ()
7940{
7941int (*fp) (FILE *, off_t, int) = fseeko;
7942 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7943 ;
7944 return 0;
7945}
7946_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007947if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007948 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00007949fi
cristy8b350f62009-11-15 23:12:43 +00007950rm -f core conftest.err conftest.$ac_objext \
7951 conftest$ac_exeext conftest.$ac_ext
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007953/* end confdefs.h. */
7954#define _LARGEFILE_SOURCE 1
7955#include <sys/types.h> /* for off_t */
7956 #include <stdio.h>
7957int
7958main ()
7959{
7960int (*fp) (FILE *, off_t, int) = fseeko;
7961 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7962 ;
7963 return 0;
7964}
7965_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007966if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007967 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00007968fi
cristy8b350f62009-11-15 23:12:43 +00007969rm -f core conftest.err conftest.$ac_objext \
7970 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007971 ac_cv_sys_largefile_source=unknown
7972 break
7973done
7974fi
cristy8b350f62009-11-15 23:12:43 +00007975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00007976$as_echo "$ac_cv_sys_largefile_source" >&6; }
7977case $ac_cv_sys_largefile_source in #(
7978 no | unknown) ;;
7979 *)
7980cat >>confdefs.h <<_ACEOF
7981#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7982_ACEOF
7983;;
7984esac
7985rm -rf conftest*
7986
7987# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7988# in glibc 2.1.3, but that breaks too many other things.
7989# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7990if test $ac_cv_sys_largefile_source != unknown; then
7991
cristy8b350f62009-11-15 23:12:43 +00007992$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007993
7994fi
7995
7996LFS_CPPFLAGS=''
7997if test "$enable_largefile" != no; then
7998 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
7999 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8000 else
cristy8b350f62009-11-15 23:12:43 +00008001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00008002$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008003 if test "$cross_compiling" = yes; then :
8004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00008006as_fn_error "cannot run test program while cross compiling
8007See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00008008else
cristy8b350f62009-11-15 23:12:43 +00008009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008011#include <unistd.h>
8012 main () {
8013 exit(!(sizeof(off_t) == 8));
8014 }
8015_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008016if ac_fn_c_try_run "$LINENO"; then :
8017 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008018
cristy8b350f62009-11-15 23:12:43 +00008019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008020$as_echo "yes" >&6; }
8021else
cristy8b350f62009-11-15 23:12:43 +00008022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008023$as_echo "no" >&6; }
8024fi
cristy8b350f62009-11-15 23:12:43 +00008025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8026 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008027fi
8028
cristy3ed852e2009-09-05 21:47:34 +00008029 fi
8030 if test "$ac_cv_sys_large_files" != 'no'; then
8031 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8032 fi
8033 if test "$ac_cv_sys_largefile_source" != 'no'; then
8034 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8035 fi
8036fi
8037
8038
8039#
8040# Configure libtool & libltdl
8041#
8042# Configure libtool
8043enable_dlopen=yes
8044
8045
8046
8047case `pwd` in
8048 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00008049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00008050$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8051esac
8052
8053
8054
cristy1f9e1ed2009-11-18 04:09:38 +00008055macro_version='2.2.6b'
8056macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00008057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070ltmain="$ac_aux_dir/ltmain.sh"
8071
cristy8b350f62009-11-15 23:12:43 +00008072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00008073$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008074if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008075 $as_echo_n "(cached) " >&6
8076else
8077 if test -n "$NM"; then
8078 # Let the user override the test.
8079 lt_cv_path_NM="$NM"
8080else
8081 lt_nm_to_check="${ac_tool_prefix}nm"
8082 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8083 lt_nm_to_check="$lt_nm_to_check nm"
8084 fi
8085 for lt_tmp_nm in $lt_nm_to_check; do
8086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8087 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8088 IFS="$lt_save_ifs"
8089 test -z "$ac_dir" && ac_dir=.
8090 tmp_nm="$ac_dir/$lt_tmp_nm"
8091 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8092 # Check to see if the nm accepts a BSD-compat flag.
8093 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8094 # nm: unknown option "B" ignored
8095 # Tru64's nm complains that /dev/null is an invalid object file
8096 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8097 */dev/null* | *'Invalid file or object type'*)
8098 lt_cv_path_NM="$tmp_nm -B"
8099 break
8100 ;;
8101 *)
8102 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8103 */dev/null*)
8104 lt_cv_path_NM="$tmp_nm -p"
8105 break
8106 ;;
8107 *)
8108 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8109 continue # so that we can try to find one that supports BSD flags
8110 ;;
8111 esac
8112 ;;
8113 esac
8114 fi
8115 done
8116 IFS="$lt_save_ifs"
8117 done
8118 : ${lt_cv_path_NM=no}
8119fi
8120fi
cristy8b350f62009-11-15 23:12:43 +00008121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00008122$as_echo "$lt_cv_path_NM" >&6; }
8123if test "$lt_cv_path_NM" != "no"; then
8124 NM="$lt_cv_path_NM"
8125else
8126 # Didn't find any BSD compatible name lister, look for dumpbin.
8127 if test -n "$ac_tool_prefix"; then
8128 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8129 do
8130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8131set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008133$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008134if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008135 $as_echo_n "(cached) " >&6
8136else
8137 if test -n "$DUMPBIN"; then
8138 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8139else
8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008145 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008149 break 2
8150 fi
8151done
cristy8b350f62009-11-15 23:12:43 +00008152 done
cristy3ed852e2009-09-05 21:47:34 +00008153IFS=$as_save_IFS
8154
8155fi
8156fi
8157DUMPBIN=$ac_cv_prog_DUMPBIN
8158if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008160$as_echo "$DUMPBIN" >&6; }
8161else
cristy8b350f62009-11-15 23:12:43 +00008162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008163$as_echo "no" >&6; }
8164fi
8165
8166
8167 test -n "$DUMPBIN" && break
8168 done
8169fi
8170if test -z "$DUMPBIN"; then
8171 ac_ct_DUMPBIN=$DUMPBIN
8172 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8173do
8174 # Extract the first word of "$ac_prog", so it can be a program name with args.
8175set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008177$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008178if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008179 $as_echo_n "(cached) " >&6
8180else
8181 if test -n "$ac_ct_DUMPBIN"; then
8182 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8183else
8184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185for as_dir in $PATH
8186do
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008189 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8191 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008193 break 2
8194 fi
8195done
cristy8b350f62009-11-15 23:12:43 +00008196 done
cristy3ed852e2009-09-05 21:47:34 +00008197IFS=$as_save_IFS
8198
8199fi
8200fi
8201ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8202if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008204$as_echo "$ac_ct_DUMPBIN" >&6; }
8205else
cristy8b350f62009-11-15 23:12:43 +00008206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008207$as_echo "no" >&6; }
8208fi
8209
8210
8211 test -n "$ac_ct_DUMPBIN" && break
8212done
8213
8214 if test "x$ac_ct_DUMPBIN" = x; then
8215 DUMPBIN=":"
8216 else
8217 case $cross_compiling:$ac_tool_warned in
8218yes:)
cristy8b350f62009-11-15 23:12:43 +00008219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8221ac_tool_warned=yes ;;
8222esac
8223 DUMPBIN=$ac_ct_DUMPBIN
8224 fi
8225fi
8226
8227
8228 if test "$DUMPBIN" != ":"; then
8229 NM="$DUMPBIN"
8230 fi
8231fi
8232test -z "$NM" && NM=nm
8233
8234
8235
8236
8237
8238
cristy8b350f62009-11-15 23:12:43 +00008239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008240$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008241if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008242 $as_echo_n "(cached) " >&6
8243else
8244 lt_cv_nm_interface="BSD nm"
8245 echo "int some_variable = 0;" > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00008246 (eval echo "\"\$as_me:8246: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008247 (eval "$ac_compile" 2>conftest.err)
8248 cat conftest.err >&5
cristy8b350f62009-11-15 23:12:43 +00008249 (eval echo "\"\$as_me:8249: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008250 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8251 cat conftest.err >&5
cristy8b350f62009-11-15 23:12:43 +00008252 (eval echo "\"\$as_me:8252: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008253 cat conftest.out >&5
8254 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8255 lt_cv_nm_interface="MS dumpbin"
8256 fi
8257 rm -f conftest*
8258fi
cristy8b350f62009-11-15 23:12:43 +00008259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008260$as_echo "$lt_cv_nm_interface" >&6; }
8261
8262# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00008263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00008264$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008265if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008266 $as_echo_n "(cached) " >&6
8267else
8268 i=0
8269 teststring="ABCD"
8270
8271 case $build_os in
8272 msdosdjgpp*)
8273 # On DJGPP, this test can blow up pretty badly due to problems in libc
8274 # (any single argument exceeding 2000 bytes causes a buffer overrun
8275 # during glob expansion). Even if it were fixed, the result of this
8276 # check would be larger than it should be.
8277 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8278 ;;
8279
8280 gnu*)
8281 # Under GNU Hurd, this test is not required because there is
8282 # no limit to the length of command line arguments.
8283 # Libtool will interpret -1 as no limit whatsoever
8284 lt_cv_sys_max_cmd_len=-1;
8285 ;;
8286
8287 cygwin* | mingw* | cegcc*)
8288 # On Win9x/ME, this test blows up -- it succeeds, but takes
8289 # about 5 minutes as the teststring grows exponentially.
8290 # Worse, since 9x/ME are not pre-emptively multitasking,
8291 # you end up with a "frozen" computer, even though with patience
8292 # the test eventually succeeds (with a max line length of 256k).
8293 # Instead, let's just punt: use the minimum linelength reported by
8294 # all of the supported platforms: 8192 (on NT/2K/XP).
8295 lt_cv_sys_max_cmd_len=8192;
8296 ;;
8297
8298 amigaos*)
8299 # On AmigaOS with pdksh, this test takes hours, literally.
8300 # So we just punt and use a minimum line length of 8192.
8301 lt_cv_sys_max_cmd_len=8192;
8302 ;;
8303
8304 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8305 # This has been around since 386BSD, at least. Likely further.
8306 if test -x /sbin/sysctl; then
8307 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8308 elif test -x /usr/sbin/sysctl; then
8309 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8310 else
8311 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8312 fi
8313 # And add a safety zone
8314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8315 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8316 ;;
8317
8318 interix*)
8319 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8320 lt_cv_sys_max_cmd_len=196608
8321 ;;
8322
8323 osf*)
8324 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8325 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8326 # nice to cause kernel panics so lets avoid the loop below.
8327 # First set a reasonable default.
8328 lt_cv_sys_max_cmd_len=16384
8329 #
8330 if test -x /sbin/sysconfig; then
8331 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8332 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8333 esac
8334 fi
8335 ;;
8336 sco3.2v5*)
8337 lt_cv_sys_max_cmd_len=102400
8338 ;;
8339 sysv5* | sco5v6* | sysv4.2uw2*)
8340 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8341 if test -n "$kargmax"; then
8342 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8343 else
8344 lt_cv_sys_max_cmd_len=32768
8345 fi
8346 ;;
8347 *)
8348 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8349 if test -n "$lt_cv_sys_max_cmd_len"; then
8350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8352 else
8353 # Make teststring a little bigger before we do anything with it.
8354 # a 1K string should be a reasonable start.
8355 for i in 1 2 3 4 5 6 7 8 ; do
8356 teststring=$teststring$teststring
8357 done
8358 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8359 # If test is not a shell built-in, we'll probably end up computing a
8360 # maximum length that is only half of the actual maximum length, but
8361 # we can't tell.
8362 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8363 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8364 test $i != 17 # 1/2 MB should be enough
8365 do
8366 i=`expr $i + 1`
8367 teststring=$teststring$teststring
8368 done
8369 # Only check the string length outside the loop.
8370 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8371 teststring=
8372 # Add a significant safety factor because C++ compilers can tack on
8373 # massive amounts of additional arguments before passing them to the
8374 # linker. It appears as though 1/2 is a usable value.
8375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8376 fi
8377 ;;
8378 esac
8379
8380fi
8381
8382if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00008383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00008384$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8385else
cristy8b350f62009-11-15 23:12:43 +00008386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00008387$as_echo "none" >&6; }
8388fi
8389max_cmd_len=$lt_cv_sys_max_cmd_len
8390
8391
8392
8393
8394
8395
8396: ${CP="cp -f"}
8397: ${MV="mv -f"}
8398: ${RM="rm -f"}
8399
cristy8b350f62009-11-15 23:12:43 +00008400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00008401$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8402# Try some XSI features
8403xsi_shell=no
8404( _lt_dummy="a/b/c"
8405 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8406 = c,a/b,, \
8407 && eval 'test $(( 1 + 1 )) -eq 2 \
8408 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8409 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00008410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00008411$as_echo "$xsi_shell" >&6; }
8412
8413
cristy8b350f62009-11-15 23:12:43 +00008414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00008415$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8416lt_shell_append=no
8417( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8418 >/dev/null 2>&1 \
8419 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00008420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00008421$as_echo "$lt_shell_append" >&6; }
8422
8423
8424if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8425 lt_unset=unset
8426else
8427 lt_unset=false
8428fi
8429
8430
8431
8432
8433
8434# test EBCDIC or ASCII
8435case `echo X|tr X '\101'` in
8436 A) # ASCII based system
8437 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8438 lt_SP2NL='tr \040 \012'
8439 lt_NL2SP='tr \015\012 \040\040'
8440 ;;
8441 *) # EBCDIC based system
8442 lt_SP2NL='tr \100 \n'
8443 lt_NL2SP='tr \r\n \100\100'
8444 ;;
8445esac
8446
8447
8448
8449
8450
8451
8452
8453
8454
cristy8b350f62009-11-15 23:12:43 +00008455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008456$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008457if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008458 $as_echo_n "(cached) " >&6
8459else
8460 lt_cv_ld_reload_flag='-r'
8461fi
cristy8b350f62009-11-15 23:12:43 +00008462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008463$as_echo "$lt_cv_ld_reload_flag" >&6; }
8464reload_flag=$lt_cv_ld_reload_flag
8465case $reload_flag in
8466"" | " "*) ;;
8467*) reload_flag=" $reload_flag" ;;
8468esac
8469reload_cmds='$LD$reload_flag -o $output$reload_objs'
8470case $host_os in
8471 darwin*)
8472 if test "$GCC" = yes; then
8473 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8474 else
8475 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8476 fi
8477 ;;
8478esac
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488if test -n "$ac_tool_prefix"; then
8489 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8490set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008492$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008493if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008494 $as_echo_n "(cached) " >&6
8495else
8496 if test -n "$OBJDUMP"; then
8497 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8498else
8499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500for as_dir in $PATH
8501do
8502 IFS=$as_save_IFS
8503 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008504 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8506 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00008507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008508 break 2
8509 fi
8510done
cristy8b350f62009-11-15 23:12:43 +00008511 done
cristy3ed852e2009-09-05 21:47:34 +00008512IFS=$as_save_IFS
8513
8514fi
8515fi
8516OBJDUMP=$ac_cv_prog_OBJDUMP
8517if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008519$as_echo "$OBJDUMP" >&6; }
8520else
cristy8b350f62009-11-15 23:12:43 +00008521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008522$as_echo "no" >&6; }
8523fi
8524
8525
8526fi
8527if test -z "$ac_cv_prog_OBJDUMP"; then
8528 ac_ct_OBJDUMP=$OBJDUMP
8529 # Extract the first word of "objdump", so it can be a program name with args.
8530set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008532$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008533if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008534 $as_echo_n "(cached) " >&6
8535else
8536 if test -n "$ac_ct_OBJDUMP"; then
8537 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8538else
8539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540for as_dir in $PATH
8541do
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008544 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8546 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00008547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008548 break 2
8549 fi
8550done
cristy8b350f62009-11-15 23:12:43 +00008551 done
cristy3ed852e2009-09-05 21:47:34 +00008552IFS=$as_save_IFS
8553
8554fi
8555fi
8556ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8557if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008559$as_echo "$ac_ct_OBJDUMP" >&6; }
8560else
cristy8b350f62009-11-15 23:12:43 +00008561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008562$as_echo "no" >&6; }
8563fi
8564
8565 if test "x$ac_ct_OBJDUMP" = x; then
8566 OBJDUMP="false"
8567 else
8568 case $cross_compiling:$ac_tool_warned in
8569yes:)
cristy8b350f62009-11-15 23:12:43 +00008570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8572ac_tool_warned=yes ;;
8573esac
8574 OBJDUMP=$ac_ct_OBJDUMP
8575 fi
8576else
8577 OBJDUMP="$ac_cv_prog_OBJDUMP"
8578fi
8579
8580test -z "$OBJDUMP" && OBJDUMP=objdump
8581
8582
8583
8584
8585
8586
cristy8b350f62009-11-15 23:12:43 +00008587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00008588$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008589if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008590 $as_echo_n "(cached) " >&6
8591else
8592 lt_cv_file_magic_cmd='$MAGIC_CMD'
8593lt_cv_file_magic_test_file=
8594lt_cv_deplibs_check_method='unknown'
8595# Need to set the preceding variable on all platforms that support
8596# interlibrary dependencies.
8597# 'none' -- dependencies not supported.
8598# `unknown' -- same as none, but documents that we really don't know.
8599# 'pass_all' -- all dependencies passed with no checks.
8600# 'test_compile' -- check by making test program.
8601# 'file_magic [[regex]]' -- check by looking for files in library path
8602# which responds to the $file_magic_cmd with a given extended regex.
8603# If you have `file' or equivalent on your system and you're not sure
8604# whether `pass_all' will *always* work, you probably want this one.
8605
8606case $host_os in
8607aix[4-9]*)
8608 lt_cv_deplibs_check_method=pass_all
8609 ;;
8610
8611beos*)
8612 lt_cv_deplibs_check_method=pass_all
8613 ;;
8614
8615bsdi[45]*)
8616 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8617 lt_cv_file_magic_cmd='/usr/bin/file -L'
8618 lt_cv_file_magic_test_file=/shlib/libc.so
8619 ;;
8620
8621cygwin*)
8622 # func_win32_libid is a shell function defined in ltmain.sh
8623 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8624 lt_cv_file_magic_cmd='func_win32_libid'
8625 ;;
8626
8627mingw* | pw32*)
8628 # Base MSYS/MinGW do not provide the 'file' command needed by
8629 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8630 # unless we find 'file', for example because we are cross-compiling.
8631 if ( file / ) >/dev/null 2>&1; then
8632 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8633 lt_cv_file_magic_cmd='func_win32_libid'
8634 else
8635 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8636 lt_cv_file_magic_cmd='$OBJDUMP -f'
8637 fi
8638 ;;
8639
8640cegcc)
8641 # use the weaker test based on 'objdump'. See mingw*.
8642 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8643 lt_cv_file_magic_cmd='$OBJDUMP -f'
8644 ;;
8645
8646darwin* | rhapsody*)
8647 lt_cv_deplibs_check_method=pass_all
8648 ;;
8649
8650freebsd* | dragonfly*)
8651 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8652 case $host_cpu in
8653 i*86 )
8654 # Not sure whether the presence of OpenBSD here was a mistake.
8655 # Let's accept both of them until this is cleared up.
8656 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8657 lt_cv_file_magic_cmd=/usr/bin/file
8658 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8659 ;;
8660 esac
8661 else
8662 lt_cv_deplibs_check_method=pass_all
8663 fi
8664 ;;
8665
8666gnu*)
8667 lt_cv_deplibs_check_method=pass_all
8668 ;;
8669
8670hpux10.20* | hpux11*)
8671 lt_cv_file_magic_cmd=/usr/bin/file
8672 case $host_cpu in
8673 ia64*)
8674 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8675 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8676 ;;
8677 hppa*64*)
8678 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]'
8679 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8680 ;;
8681 *)
8682 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8683 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8684 ;;
8685 esac
8686 ;;
8687
8688interix[3-9]*)
8689 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8691 ;;
8692
8693irix5* | irix6* | nonstopux*)
8694 case $LD in
8695 *-32|*"-32 ") libmagic=32-bit;;
8696 *-n32|*"-n32 ") libmagic=N32;;
8697 *-64|*"-64 ") libmagic=64-bit;;
8698 *) libmagic=never-match;;
8699 esac
8700 lt_cv_deplibs_check_method=pass_all
8701 ;;
8702
8703# This must be Linux ELF.
8704linux* | k*bsd*-gnu)
8705 lt_cv_deplibs_check_method=pass_all
8706 ;;
8707
8708netbsd*)
8709 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8711 else
8712 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8713 fi
8714 ;;
8715
8716newos6*)
8717 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8718 lt_cv_file_magic_cmd=/usr/bin/file
8719 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8720 ;;
8721
8722*nto* | *qnx*)
8723 lt_cv_deplibs_check_method=pass_all
8724 ;;
8725
8726openbsd*)
8727 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8729 else
8730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8731 fi
8732 ;;
8733
8734osf3* | osf4* | osf5*)
8735 lt_cv_deplibs_check_method=pass_all
8736 ;;
8737
8738rdos*)
8739 lt_cv_deplibs_check_method=pass_all
8740 ;;
8741
8742solaris*)
8743 lt_cv_deplibs_check_method=pass_all
8744 ;;
8745
8746sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8747 lt_cv_deplibs_check_method=pass_all
8748 ;;
8749
8750sysv4 | sysv4.3*)
8751 case $host_vendor in
8752 motorola)
8753 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]'
8754 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8755 ;;
8756 ncr)
8757 lt_cv_deplibs_check_method=pass_all
8758 ;;
8759 sequent)
8760 lt_cv_file_magic_cmd='/bin/file'
8761 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8762 ;;
8763 sni)
8764 lt_cv_file_magic_cmd='/bin/file'
8765 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8766 lt_cv_file_magic_test_file=/lib/libc.so
8767 ;;
8768 siemens)
8769 lt_cv_deplibs_check_method=pass_all
8770 ;;
8771 pc)
8772 lt_cv_deplibs_check_method=pass_all
8773 ;;
8774 esac
8775 ;;
8776
8777tpf*)
8778 lt_cv_deplibs_check_method=pass_all
8779 ;;
8780esac
8781
8782fi
cristy8b350f62009-11-15 23:12:43 +00008783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00008784$as_echo "$lt_cv_deplibs_check_method" >&6; }
8785file_magic_cmd=$lt_cv_file_magic_cmd
8786deplibs_check_method=$lt_cv_deplibs_check_method
8787test -z "$deplibs_check_method" && deplibs_check_method=unknown
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800if test -n "$ac_tool_prefix"; then
8801 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8802set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008804$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008805if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008806 $as_echo_n "(cached) " >&6
8807else
8808 if test -n "$AR"; then
8809 ac_cv_prog_AR="$AR" # Let the user override the test.
8810else
8811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812for as_dir in $PATH
8813do
8814 IFS=$as_save_IFS
8815 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8818 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00008819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008820 break 2
8821 fi
8822done
cristy8b350f62009-11-15 23:12:43 +00008823 done
cristy3ed852e2009-09-05 21:47:34 +00008824IFS=$as_save_IFS
8825
8826fi
8827fi
8828AR=$ac_cv_prog_AR
8829if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00008830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008831$as_echo "$AR" >&6; }
8832else
cristy8b350f62009-11-15 23:12:43 +00008833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008834$as_echo "no" >&6; }
8835fi
8836
8837
8838fi
8839if test -z "$ac_cv_prog_AR"; then
8840 ac_ct_AR=$AR
8841 # Extract the first word of "ar", so it can be a program name with args.
8842set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008844$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008845if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008846 $as_echo_n "(cached) " >&6
8847else
8848 if test -n "$ac_ct_AR"; then
8849 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8850else
8851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852for as_dir in $PATH
8853do
8854 IFS=$as_save_IFS
8855 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008856 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8858 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00008859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008860 break 2
8861 fi
8862done
cristy8b350f62009-11-15 23:12:43 +00008863 done
cristy3ed852e2009-09-05 21:47:34 +00008864IFS=$as_save_IFS
8865
8866fi
8867fi
8868ac_ct_AR=$ac_cv_prog_ac_ct_AR
8869if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00008870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008871$as_echo "$ac_ct_AR" >&6; }
8872else
cristy8b350f62009-11-15 23:12:43 +00008873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008874$as_echo "no" >&6; }
8875fi
8876
8877 if test "x$ac_ct_AR" = x; then
8878 AR="false"
8879 else
8880 case $cross_compiling:$ac_tool_warned in
8881yes:)
cristy8b350f62009-11-15 23:12:43 +00008882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8884ac_tool_warned=yes ;;
8885esac
8886 AR=$ac_ct_AR
8887 fi
8888else
8889 AR="$ac_cv_prog_AR"
8890fi
8891
8892test -z "$AR" && AR=ar
8893test -z "$AR_FLAGS" && AR_FLAGS=cru
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905if test -n "$ac_tool_prefix"; then
8906 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8907set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008909$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008910if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008911 $as_echo_n "(cached) " >&6
8912else
8913 if test -n "$STRIP"; then
8914 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8915else
8916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917for as_dir in $PATH
8918do
8919 IFS=$as_save_IFS
8920 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8923 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00008924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008925 break 2
8926 fi
8927done
cristy8b350f62009-11-15 23:12:43 +00008928 done
cristy3ed852e2009-09-05 21:47:34 +00008929IFS=$as_save_IFS
8930
8931fi
8932fi
8933STRIP=$ac_cv_prog_STRIP
8934if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00008935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008936$as_echo "$STRIP" >&6; }
8937else
cristy8b350f62009-11-15 23:12:43 +00008938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008939$as_echo "no" >&6; }
8940fi
8941
8942
8943fi
8944if test -z "$ac_cv_prog_STRIP"; then
8945 ac_ct_STRIP=$STRIP
8946 # Extract the first word of "strip", so it can be a program name with args.
8947set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008949$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008950if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008951 $as_echo_n "(cached) " >&6
8952else
8953 if test -n "$ac_ct_STRIP"; then
8954 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8955else
8956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957for as_dir in $PATH
8958do
8959 IFS=$as_save_IFS
8960 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8963 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00008964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008965 break 2
8966 fi
8967done
cristy8b350f62009-11-15 23:12:43 +00008968 done
cristy3ed852e2009-09-05 21:47:34 +00008969IFS=$as_save_IFS
8970
8971fi
8972fi
8973ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8974if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00008975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008976$as_echo "$ac_ct_STRIP" >&6; }
8977else
cristy8b350f62009-11-15 23:12:43 +00008978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008979$as_echo "no" >&6; }
8980fi
8981
8982 if test "x$ac_ct_STRIP" = x; then
8983 STRIP=":"
8984 else
8985 case $cross_compiling:$ac_tool_warned in
8986yes:)
cristy8b350f62009-11-15 23:12:43 +00008987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8989ac_tool_warned=yes ;;
8990esac
8991 STRIP=$ac_ct_STRIP
8992 fi
8993else
8994 STRIP="$ac_cv_prog_STRIP"
8995fi
8996
8997test -z "$STRIP" && STRIP=:
8998
8999
9000
9001
9002
9003
9004if test -n "$ac_tool_prefix"; then
9005 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9006set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009008$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009009if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009010 $as_echo_n "(cached) " >&6
9011else
9012 if test -n "$RANLIB"; then
9013 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9014else
9015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016for as_dir in $PATH
9017do
9018 IFS=$as_save_IFS
9019 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9022 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00009023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009024 break 2
9025 fi
9026done
cristy8b350f62009-11-15 23:12:43 +00009027 done
cristy3ed852e2009-09-05 21:47:34 +00009028IFS=$as_save_IFS
9029
9030fi
9031fi
9032RANLIB=$ac_cv_prog_RANLIB
9033if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009035$as_echo "$RANLIB" >&6; }
9036else
cristy8b350f62009-11-15 23:12:43 +00009037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009038$as_echo "no" >&6; }
9039fi
9040
9041
9042fi
9043if test -z "$ac_cv_prog_RANLIB"; then
9044 ac_ct_RANLIB=$RANLIB
9045 # Extract the first word of "ranlib", so it can be a program name with args.
9046set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009048$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009049if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009050 $as_echo_n "(cached) " >&6
9051else
9052 if test -n "$ac_ct_RANLIB"; then
9053 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9054else
9055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056for as_dir in $PATH
9057do
9058 IFS=$as_save_IFS
9059 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009060 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9062 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00009063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009064 break 2
9065 fi
9066done
cristy8b350f62009-11-15 23:12:43 +00009067 done
cristy3ed852e2009-09-05 21:47:34 +00009068IFS=$as_save_IFS
9069
9070fi
9071fi
9072ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9073if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009075$as_echo "$ac_ct_RANLIB" >&6; }
9076else
cristy8b350f62009-11-15 23:12:43 +00009077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009078$as_echo "no" >&6; }
9079fi
9080
9081 if test "x$ac_ct_RANLIB" = x; then
9082 RANLIB=":"
9083 else
9084 case $cross_compiling:$ac_tool_warned in
9085yes:)
cristy8b350f62009-11-15 23:12:43 +00009086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9088ac_tool_warned=yes ;;
9089esac
9090 RANLIB=$ac_ct_RANLIB
9091 fi
9092else
9093 RANLIB="$ac_cv_prog_RANLIB"
9094fi
9095
9096test -z "$RANLIB" && RANLIB=:
9097
9098
9099
9100
9101
9102
9103# Determine commands to create old-style static archives.
9104old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9105old_postinstall_cmds='chmod 644 $oldlib'
9106old_postuninstall_cmds=
9107
9108if test -n "$RANLIB"; then
9109 case $host_os in
9110 openbsd*)
9111 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9112 ;;
9113 *)
9114 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9115 ;;
9116 esac
9117 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9118fi
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153# If no C compiler was specified, use CC.
9154LTCC=${LTCC-"$CC"}
9155
9156# If no C compiler flags were specified, use CFLAGS.
9157LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9158
9159# Allow CC to be a program name with arguments.
9160compiler=$CC
9161
9162
9163# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +00009164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +00009165$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009166if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009167 $as_echo_n "(cached) " >&6
9168else
9169
9170# These are sane defaults that work on at least a few old systems.
9171# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9172
9173# Character class describing NM global symbol codes.
9174symcode='[BCDEGRST]'
9175
9176# Regexp to match symbols that can be accessed directly from C.
9177sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9178
9179# Define system-specific variables.
9180case $host_os in
9181aix*)
9182 symcode='[BCDT]'
9183 ;;
9184cygwin* | mingw* | pw32* | cegcc*)
9185 symcode='[ABCDGISTW]'
9186 ;;
9187hpux*)
9188 if test "$host_cpu" = ia64; then
9189 symcode='[ABCDEGRST]'
9190 fi
9191 ;;
9192irix* | nonstopux*)
9193 symcode='[BCDEGRST]'
9194 ;;
9195osf*)
9196 symcode='[BCDEGQRST]'
9197 ;;
9198solaris*)
9199 symcode='[BDRT]'
9200 ;;
9201sco3.2v5*)
9202 symcode='[DT]'
9203 ;;
9204sysv4.2uw2*)
9205 symcode='[DT]'
9206 ;;
9207sysv5* | sco5v6* | unixware* | OpenUNIX*)
9208 symcode='[ABDT]'
9209 ;;
9210sysv4)
9211 symcode='[DFNSTU]'
9212 ;;
9213esac
9214
9215# If we're using GNU nm, then use its standard symbol codes.
9216case `$NM -V 2>&1` in
9217*GNU* | *'with BFD'*)
9218 symcode='[ABCDGIRSTW]' ;;
9219esac
9220
9221# Transform an extracted symbol line into a proper C declaration.
9222# Some systems (esp. on ia64) link data and code symbols differently,
9223# so use this general approach.
9224lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9225
9226# Transform an extracted symbol line into symbol name and symbol address
9227lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9228lt_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'"
9229
9230# Handle CRLF in mingw tool chain
9231opt_cr=
9232case $build_os in
9233mingw*)
9234 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9235 ;;
9236esac
9237
9238# Try without a prefix underscore, then with it.
9239for ac_symprfx in "" "_"; do
9240
9241 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9242 symxfrm="\\1 $ac_symprfx\\2 \\2"
9243
9244 # Write the raw and C identifiers.
9245 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9246 # Fake it for dumpbin and say T for any non-static function
9247 # and D for any global variable.
9248 # Also find C++ and __fastcall symbols from MSVC++,
9249 # which start with @ or ?.
9250 lt_cv_sys_global_symbol_pipe="$AWK '"\
9251" {last_section=section; section=\$ 3};"\
9252" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9253" \$ 0!~/External *\|/{next};"\
9254" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9255" {if(hide[section]) next};"\
9256" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9257" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9258" s[1]~/^[@?]/{print s[1], s[1]; next};"\
9259" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9260" ' prfx=^$ac_symprfx"
9261 else
9262 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9263 fi
9264
9265 # Check to see that the pipe works correctly.
9266 pipe_works=no
9267
9268 rm -f conftest*
9269 cat > conftest.$ac_ext <<_LT_EOF
9270#ifdef __cplusplus
9271extern "C" {
9272#endif
9273char nm_test_var;
9274void nm_test_func(void);
9275void nm_test_func(void){}
9276#ifdef __cplusplus
9277}
9278#endif
9279int main(){nm_test_var='a';nm_test_func();return(0);}
9280_LT_EOF
9281
cristy8b350f62009-11-15 23:12:43 +00009282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009283 (eval $ac_compile) 2>&5
9284 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9286 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009287 # Now try to grab the symbols.
9288 nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +00009289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009290 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9291 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9293 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +00009294 # Try sorting and uniquifying the output.
9295 if sort "$nlist" | uniq > "$nlist"T; then
9296 mv -f "$nlist"T "$nlist"
9297 else
9298 rm -f "$nlist"T
9299 fi
9300
9301 # Make sure that we snagged all the symbols we need.
9302 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9303 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9304 cat <<_LT_EOF > conftest.$ac_ext
9305#ifdef __cplusplus
9306extern "C" {
9307#endif
9308
9309_LT_EOF
9310 # Now generate the symbol file.
9311 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9312
9313 cat <<_LT_EOF >> conftest.$ac_ext
9314
9315/* The mapping between symbol names and symbols. */
9316const struct {
9317 const char *name;
9318 void *address;
9319}
9320lt__PROGRAM__LTX_preloaded_symbols[] =
9321{
9322 { "@PROGRAM@", (void *) 0 },
9323_LT_EOF
9324 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9325 cat <<\_LT_EOF >> conftest.$ac_ext
9326 {0, (void *) 0}
9327};
9328
9329/* This works around a problem in FreeBSD linker */
9330#ifdef FREEBSD_WORKAROUND
9331static const void *lt_preloaded_setup() {
9332 return lt__PROGRAM__LTX_preloaded_symbols;
9333}
9334#endif
9335
9336#ifdef __cplusplus
9337}
9338#endif
9339_LT_EOF
9340 # Now try linking the two files.
9341 mv conftest.$ac_objext conftstm.$ac_objext
9342 lt_save_LIBS="$LIBS"
9343 lt_save_CFLAGS="$CFLAGS"
9344 LIBS="conftstm.$ac_objext"
9345 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +00009346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009347 (eval $ac_link) 2>&5
9348 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9350 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +00009351 pipe_works=yes
9352 fi
9353 LIBS="$lt_save_LIBS"
9354 CFLAGS="$lt_save_CFLAGS"
9355 else
9356 echo "cannot find nm_test_func in $nlist" >&5
9357 fi
9358 else
9359 echo "cannot find nm_test_var in $nlist" >&5
9360 fi
9361 else
9362 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9363 fi
9364 else
9365 echo "$progname: failed program was:" >&5
9366 cat conftest.$ac_ext >&5
9367 fi
9368 rm -rf conftest* conftst*
9369
9370 # Do not use the global_symbol_pipe unless it works.
9371 if test "$pipe_works" = yes; then
9372 break
9373 else
9374 lt_cv_sys_global_symbol_pipe=
9375 fi
9376done
9377
9378fi
9379
9380if test -z "$lt_cv_sys_global_symbol_pipe"; then
9381 lt_cv_sys_global_symbol_to_cdecl=
9382fi
9383if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +00009384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +00009385$as_echo "failed" >&6; }
9386else
cristy8b350f62009-11-15 23:12:43 +00009387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00009388$as_echo "ok" >&6; }
9389fi
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +00009413if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009414 enableval=$enable_libtool_lock;
9415fi
9416
9417test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9418
9419# Some flags need to be propagated to the compiler or linker for good
9420# libtool support.
9421case $host in
9422ia64-*-hpux*)
9423 # Find out which ABI we are using.
9424 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009426 (eval $ac_compile) 2>&5
9427 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9429 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009430 case `/usr/bin/file conftest.$ac_objext` in
9431 *ELF-32*)
9432 HPUX_IA64_MODE="32"
9433 ;;
9434 *ELF-64*)
9435 HPUX_IA64_MODE="64"
9436 ;;
9437 esac
9438 fi
9439 rm -rf conftest*
9440 ;;
9441*-*-irix6*)
9442 # Find out which ABI we are using.
cristy8b350f62009-11-15 23:12:43 +00009443 echo '#line 9443 "configure"' > conftest.$ac_ext
9444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009445 (eval $ac_compile) 2>&5
9446 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9448 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009449 if test "$lt_cv_prog_gnu_ld" = yes; then
9450 case `/usr/bin/file conftest.$ac_objext` in
9451 *32-bit*)
9452 LD="${LD-ld} -melf32bsmip"
9453 ;;
9454 *N32*)
9455 LD="${LD-ld} -melf32bmipn32"
9456 ;;
9457 *64-bit*)
9458 LD="${LD-ld} -melf64bmip"
9459 ;;
9460 esac
9461 else
9462 case `/usr/bin/file conftest.$ac_objext` in
9463 *32-bit*)
9464 LD="${LD-ld} -32"
9465 ;;
9466 *N32*)
9467 LD="${LD-ld} -n32"
9468 ;;
9469 *64-bit*)
9470 LD="${LD-ld} -64"
9471 ;;
9472 esac
9473 fi
9474 fi
9475 rm -rf conftest*
9476 ;;
9477
9478x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9479s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9480 # Find out which ABI we are using.
9481 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009483 (eval $ac_compile) 2>&5
9484 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9486 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009487 case `/usr/bin/file conftest.o` in
9488 *32-bit*)
9489 case $host in
9490 x86_64-*kfreebsd*-gnu)
9491 LD="${LD-ld} -m elf_i386_fbsd"
9492 ;;
9493 x86_64-*linux*)
9494 LD="${LD-ld} -m elf_i386"
9495 ;;
9496 ppc64-*linux*|powerpc64-*linux*)
9497 LD="${LD-ld} -m elf32ppclinux"
9498 ;;
9499 s390x-*linux*)
9500 LD="${LD-ld} -m elf_s390"
9501 ;;
9502 sparc64-*linux*)
9503 LD="${LD-ld} -m elf32_sparc"
9504 ;;
9505 esac
9506 ;;
9507 *64-bit*)
9508 case $host in
9509 x86_64-*kfreebsd*-gnu)
9510 LD="${LD-ld} -m elf_x86_64_fbsd"
9511 ;;
9512 x86_64-*linux*)
9513 LD="${LD-ld} -m elf_x86_64"
9514 ;;
9515 ppc*-*linux*|powerpc*-*linux*)
9516 LD="${LD-ld} -m elf64ppc"
9517 ;;
9518 s390*-*linux*|s390*-*tpf*)
9519 LD="${LD-ld} -m elf64_s390"
9520 ;;
9521 sparc*-*linux*)
9522 LD="${LD-ld} -m elf64_sparc"
9523 ;;
9524 esac
9525 ;;
9526 esac
9527 fi
9528 rm -rf conftest*
9529 ;;
9530
9531*-*-sco3.2v5*)
9532 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9533 SAVE_CFLAGS="$CFLAGS"
9534 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +00009535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009536$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009537if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009538 $as_echo_n "(cached) " >&6
9539else
9540 ac_ext=c
9541ac_cpp='$CPP $CPPFLAGS'
9542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9544ac_compiler_gnu=$ac_cv_c_compiler_gnu
9545
cristy8b350f62009-11-15 23:12:43 +00009546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009547/* end confdefs.h. */
9548
9549int
9550main ()
9551{
9552
9553 ;
9554 return 0;
9555}
9556_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009557if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009558 lt_cv_cc_needs_belf=yes
9559else
cristy8b350f62009-11-15 23:12:43 +00009560 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +00009561fi
cristy8b350f62009-11-15 23:12:43 +00009562rm -f core conftest.err conftest.$ac_objext \
9563 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009564 ac_ext=c
9565ac_cpp='$CPP $CPPFLAGS'
9566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9568ac_compiler_gnu=$ac_cv_c_compiler_gnu
9569
9570fi
cristy8b350f62009-11-15 23:12:43 +00009571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009572$as_echo "$lt_cv_cc_needs_belf" >&6; }
9573 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9574 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9575 CFLAGS="$SAVE_CFLAGS"
9576 fi
9577 ;;
9578sparc*-*solaris*)
9579 # Find out which ABI we are using.
9580 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009582 (eval $ac_compile) 2>&5
9583 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9585 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009586 case `/usr/bin/file conftest.o` in
9587 *64-bit*)
9588 case $lt_cv_prog_gnu_ld in
9589 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9590 *)
9591 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9592 LD="${LD-ld} -64"
9593 fi
9594 ;;
9595 esac
9596 ;;
9597 esac
9598 fi
9599 rm -rf conftest*
9600 ;;
9601esac
9602
9603need_locks="$enable_libtool_lock"
9604
9605
9606 case $host_os in
9607 rhapsody* | darwin*)
9608 if test -n "$ac_tool_prefix"; then
9609 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9610set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009612$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009613if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009614 $as_echo_n "(cached) " >&6
9615else
9616 if test -n "$DSYMUTIL"; then
9617 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9618else
9619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620for as_dir in $PATH
9621do
9622 IFS=$as_save_IFS
9623 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9626 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009628 break 2
9629 fi
9630done
cristy8b350f62009-11-15 23:12:43 +00009631 done
cristy3ed852e2009-09-05 21:47:34 +00009632IFS=$as_save_IFS
9633
9634fi
9635fi
9636DSYMUTIL=$ac_cv_prog_DSYMUTIL
9637if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009639$as_echo "$DSYMUTIL" >&6; }
9640else
cristy8b350f62009-11-15 23:12:43 +00009641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009642$as_echo "no" >&6; }
9643fi
9644
9645
9646fi
9647if test -z "$ac_cv_prog_DSYMUTIL"; then
9648 ac_ct_DSYMUTIL=$DSYMUTIL
9649 # Extract the first word of "dsymutil", so it can be a program name with args.
9650set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009652$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009653if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009654 $as_echo_n "(cached) " >&6
9655else
9656 if test -n "$ac_ct_DSYMUTIL"; then
9657 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9658else
9659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660for as_dir in $PATH
9661do
9662 IFS=$as_save_IFS
9663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9666 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009668 break 2
9669 fi
9670done
cristy8b350f62009-11-15 23:12:43 +00009671 done
cristy3ed852e2009-09-05 21:47:34 +00009672IFS=$as_save_IFS
9673
9674fi
9675fi
9676ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9677if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009679$as_echo "$ac_ct_DSYMUTIL" >&6; }
9680else
cristy8b350f62009-11-15 23:12:43 +00009681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009682$as_echo "no" >&6; }
9683fi
9684
9685 if test "x$ac_ct_DSYMUTIL" = x; then
9686 DSYMUTIL=":"
9687 else
9688 case $cross_compiling:$ac_tool_warned in
9689yes:)
cristy8b350f62009-11-15 23:12:43 +00009690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9692ac_tool_warned=yes ;;
9693esac
9694 DSYMUTIL=$ac_ct_DSYMUTIL
9695 fi
9696else
9697 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9698fi
9699
9700 if test -n "$ac_tool_prefix"; then
9701 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9702set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009704$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009705if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009706 $as_echo_n "(cached) " >&6
9707else
9708 if test -n "$NMEDIT"; then
9709 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9710else
9711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9712for as_dir in $PATH
9713do
9714 IFS=$as_save_IFS
9715 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009716 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9718 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +00009719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009720 break 2
9721 fi
9722done
cristy8b350f62009-11-15 23:12:43 +00009723 done
cristy3ed852e2009-09-05 21:47:34 +00009724IFS=$as_save_IFS
9725
9726fi
9727fi
9728NMEDIT=$ac_cv_prog_NMEDIT
9729if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009731$as_echo "$NMEDIT" >&6; }
9732else
cristy8b350f62009-11-15 23:12:43 +00009733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009734$as_echo "no" >&6; }
9735fi
9736
9737
9738fi
9739if test -z "$ac_cv_prog_NMEDIT"; then
9740 ac_ct_NMEDIT=$NMEDIT
9741 # Extract the first word of "nmedit", so it can be a program name with args.
9742set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009744$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009745if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009746 $as_echo_n "(cached) " >&6
9747else
9748 if test -n "$ac_ct_NMEDIT"; then
9749 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9750else
9751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752for as_dir in $PATH
9753do
9754 IFS=$as_save_IFS
9755 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009756 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9758 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +00009759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009760 break 2
9761 fi
9762done
cristy8b350f62009-11-15 23:12:43 +00009763 done
cristy3ed852e2009-09-05 21:47:34 +00009764IFS=$as_save_IFS
9765
9766fi
9767fi
9768ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9769if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009771$as_echo "$ac_ct_NMEDIT" >&6; }
9772else
cristy8b350f62009-11-15 23:12:43 +00009773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009774$as_echo "no" >&6; }
9775fi
9776
9777 if test "x$ac_ct_NMEDIT" = x; then
9778 NMEDIT=":"
9779 else
9780 case $cross_compiling:$ac_tool_warned in
9781yes:)
cristy8b350f62009-11-15 23:12:43 +00009782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9784ac_tool_warned=yes ;;
9785esac
9786 NMEDIT=$ac_ct_NMEDIT
9787 fi
9788else
9789 NMEDIT="$ac_cv_prog_NMEDIT"
9790fi
9791
9792 if test -n "$ac_tool_prefix"; then
9793 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9794set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009796$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009797if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009798 $as_echo_n "(cached) " >&6
9799else
9800 if test -n "$LIPO"; then
9801 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9802else
9803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804for as_dir in $PATH
9805do
9806 IFS=$as_save_IFS
9807 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009808 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9810 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +00009811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009812 break 2
9813 fi
9814done
cristy8b350f62009-11-15 23:12:43 +00009815 done
cristy3ed852e2009-09-05 21:47:34 +00009816IFS=$as_save_IFS
9817
9818fi
9819fi
9820LIPO=$ac_cv_prog_LIPO
9821if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009823$as_echo "$LIPO" >&6; }
9824else
cristy8b350f62009-11-15 23:12:43 +00009825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009826$as_echo "no" >&6; }
9827fi
9828
9829
9830fi
9831if test -z "$ac_cv_prog_LIPO"; then
9832 ac_ct_LIPO=$LIPO
9833 # Extract the first word of "lipo", so it can be a program name with args.
9834set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009836$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009837if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009838 $as_echo_n "(cached) " >&6
9839else
9840 if test -n "$ac_ct_LIPO"; then
9841 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9842else
9843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844for as_dir in $PATH
9845do
9846 IFS=$as_save_IFS
9847 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009848 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9850 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +00009851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009852 break 2
9853 fi
9854done
cristy8b350f62009-11-15 23:12:43 +00009855 done
cristy3ed852e2009-09-05 21:47:34 +00009856IFS=$as_save_IFS
9857
9858fi
9859fi
9860ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9861if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009863$as_echo "$ac_ct_LIPO" >&6; }
9864else
cristy8b350f62009-11-15 23:12:43 +00009865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009866$as_echo "no" >&6; }
9867fi
9868
9869 if test "x$ac_ct_LIPO" = x; then
9870 LIPO=":"
9871 else
9872 case $cross_compiling:$ac_tool_warned in
9873yes:)
cristy8b350f62009-11-15 23:12:43 +00009874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9876ac_tool_warned=yes ;;
9877esac
9878 LIPO=$ac_ct_LIPO
9879 fi
9880else
9881 LIPO="$ac_cv_prog_LIPO"
9882fi
9883
9884 if test -n "$ac_tool_prefix"; then
9885 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9886set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009888$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009889if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009890 $as_echo_n "(cached) " >&6
9891else
9892 if test -n "$OTOOL"; then
9893 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9894else
9895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9896for as_dir in $PATH
9897do
9898 IFS=$as_save_IFS
9899 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009900 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9902 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +00009903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009904 break 2
9905 fi
9906done
cristy8b350f62009-11-15 23:12:43 +00009907 done
cristy3ed852e2009-09-05 21:47:34 +00009908IFS=$as_save_IFS
9909
9910fi
9911fi
9912OTOOL=$ac_cv_prog_OTOOL
9913if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009915$as_echo "$OTOOL" >&6; }
9916else
cristy8b350f62009-11-15 23:12:43 +00009917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009918$as_echo "no" >&6; }
9919fi
9920
9921
9922fi
9923if test -z "$ac_cv_prog_OTOOL"; then
9924 ac_ct_OTOOL=$OTOOL
9925 # Extract the first word of "otool", so it can be a program name with args.
9926set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009928$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009929if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009930 $as_echo_n "(cached) " >&6
9931else
9932 if test -n "$ac_ct_OTOOL"; then
9933 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9934else
9935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936for as_dir in $PATH
9937do
9938 IFS=$as_save_IFS
9939 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9942 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +00009943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009944 break 2
9945 fi
9946done
cristy8b350f62009-11-15 23:12:43 +00009947 done
cristy3ed852e2009-09-05 21:47:34 +00009948IFS=$as_save_IFS
9949
9950fi
9951fi
9952ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9953if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009955$as_echo "$ac_ct_OTOOL" >&6; }
9956else
cristy8b350f62009-11-15 23:12:43 +00009957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009958$as_echo "no" >&6; }
9959fi
9960
9961 if test "x$ac_ct_OTOOL" = x; then
9962 OTOOL=":"
9963 else
9964 case $cross_compiling:$ac_tool_warned in
9965yes:)
cristy8b350f62009-11-15 23:12:43 +00009966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9968ac_tool_warned=yes ;;
9969esac
9970 OTOOL=$ac_ct_OTOOL
9971 fi
9972else
9973 OTOOL="$ac_cv_prog_OTOOL"
9974fi
9975
9976 if test -n "$ac_tool_prefix"; then
9977 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9978set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009980$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009981if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009982 $as_echo_n "(cached) " >&6
9983else
9984 if test -n "$OTOOL64"; then
9985 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9986else
9987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988for as_dir in $PATH
9989do
9990 IFS=$as_save_IFS
9991 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9994 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +00009995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009996 break 2
9997 fi
9998done
cristy8b350f62009-11-15 23:12:43 +00009999 done
cristy3ed852e2009-09-05 21:47:34 +000010000IFS=$as_save_IFS
10001
10002fi
10003fi
10004OTOOL64=$ac_cv_prog_OTOOL64
10005if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010007$as_echo "$OTOOL64" >&6; }
10008else
cristy8b350f62009-11-15 23:12:43 +000010009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010010$as_echo "no" >&6; }
10011fi
10012
10013
10014fi
10015if test -z "$ac_cv_prog_OTOOL64"; then
10016 ac_ct_OTOOL64=$OTOOL64
10017 # Extract the first word of "otool64", so it can be a program name with args.
10018set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010020$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010021if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010022 $as_echo_n "(cached) " >&6
10023else
10024 if test -n "$ac_ct_OTOOL64"; then
10025 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10026else
10027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028for as_dir in $PATH
10029do
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010032 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000010035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010036 break 2
10037 fi
10038done
cristy8b350f62009-11-15 23:12:43 +000010039 done
cristy3ed852e2009-09-05 21:47:34 +000010040IFS=$as_save_IFS
10041
10042fi
10043fi
10044ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10045if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010047$as_echo "$ac_ct_OTOOL64" >&6; }
10048else
cristy8b350f62009-11-15 23:12:43 +000010049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010050$as_echo "no" >&6; }
10051fi
10052
10053 if test "x$ac_ct_OTOOL64" = x; then
10054 OTOOL64=":"
10055 else
10056 case $cross_compiling:$ac_tool_warned in
10057yes:)
cristy8b350f62009-11-15 23:12:43 +000010058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10060ac_tool_warned=yes ;;
10061esac
10062 OTOOL64=$ac_ct_OTOOL64
10063 fi
10064else
10065 OTOOL64="$ac_cv_prog_OTOOL64"
10066fi
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
cristy8b350f62009-11-15 23:12:43 +000010094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010095$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010096if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010097 $as_echo_n "(cached) " >&6
10098else
10099 lt_cv_apple_cc_single_mod=no
10100 if test -z "${LT_MULTI_MODULE}"; then
10101 # By default we will add the -single_module flag. You can override
10102 # by either setting the environment variable LT_MULTI_MODULE
10103 # non-empty at configure time, or by adding -multi_module to the
10104 # link flags.
10105 rm -rf libconftest.dylib*
10106 echo "int foo(void){return 1;}" > conftest.c
10107 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10108-dynamiclib -Wl,-single_module conftest.c" >&5
10109 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10110 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10111 _lt_result=$?
10112 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10113 lt_cv_apple_cc_single_mod=yes
10114 else
10115 cat conftest.err >&5
10116 fi
10117 rm -rf libconftest.dylib*
10118 rm -f conftest.*
10119 fi
10120fi
cristy8b350f62009-11-15 23:12:43 +000010121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000010122$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010124$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010125if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010126 $as_echo_n "(cached) " >&6
10127else
10128 lt_cv_ld_exported_symbols_list=no
10129 save_LDFLAGS=$LDFLAGS
10130 echo "_main" > conftest.sym
10131 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000010132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010133/* end confdefs.h. */
10134
10135int
10136main ()
10137{
10138
10139 ;
10140 return 0;
10141}
10142_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010143if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010144 lt_cv_ld_exported_symbols_list=yes
10145else
cristy8b350f62009-11-15 23:12:43 +000010146 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000010147fi
cristy8b350f62009-11-15 23:12:43 +000010148rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010150 LDFLAGS="$save_LDFLAGS"
10151
10152fi
cristy8b350f62009-11-15 23:12:43 +000010153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000010154$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10155 case $host_os in
10156 rhapsody* | darwin1.[012])
10157 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10158 darwin1.*)
10159 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10160 darwin*) # darwin 5.x on
10161 # if running on 10.5 or later, the deployment target defaults
10162 # to the OS version, if on x86, and 10.4, the deployment
10163 # target defaults to 10.4. Don't you love it?
10164 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10165 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10166 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10167 10.[012]*)
10168 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10169 10.*)
10170 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10171 esac
10172 ;;
10173 esac
10174 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10175 _lt_dar_single_mod='$single_module'
10176 fi
10177 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10178 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10179 else
10180 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10181 fi
10182 if test "$DSYMUTIL" != ":"; then
10183 _lt_dsymutil='~$DSYMUTIL $lib || :'
10184 else
10185 _lt_dsymutil=
10186 fi
10187 ;;
10188 esac
10189
cristy3ed852e2009-09-05 21:47:34 +000010190for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000010191do :
10192 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10193"
10194if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010195 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010196#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000010197_ACEOF
10198
10199fi
10200
10201done
10202
10203
10204
10205ac_ext=cpp
10206ac_cpp='$CXXCPP $CPPFLAGS'
10207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10210if test -z "$CXX"; then
10211 if test -n "$CCC"; then
10212 CXX=$CCC
10213 else
10214 if test -n "$ac_tool_prefix"; then
10215 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10216 do
10217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10218set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010220$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010221if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010222 $as_echo_n "(cached) " >&6
10223else
10224 if test -n "$CXX"; then
10225 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10226else
10227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228for as_dir in $PATH
10229do
10230 IFS=$as_save_IFS
10231 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010232 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10234 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000010235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010236 break 2
10237 fi
10238done
cristy8b350f62009-11-15 23:12:43 +000010239 done
cristy3ed852e2009-09-05 21:47:34 +000010240IFS=$as_save_IFS
10241
10242fi
10243fi
10244CXX=$ac_cv_prog_CXX
10245if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000010246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000010247$as_echo "$CXX" >&6; }
10248else
cristy8b350f62009-11-15 23:12:43 +000010249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010250$as_echo "no" >&6; }
10251fi
10252
10253
10254 test -n "$CXX" && break
10255 done
10256fi
10257if test -z "$CXX"; then
10258 ac_ct_CXX=$CXX
10259 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10260do
10261 # Extract the first word of "$ac_prog", so it can be a program name with args.
10262set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010264$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010265if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010266 $as_echo_n "(cached) " >&6
10267else
10268 if test -n "$ac_ct_CXX"; then
10269 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10270else
10271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10272for as_dir in $PATH
10273do
10274 IFS=$as_save_IFS
10275 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010276 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10278 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000010279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010280 break 2
10281 fi
10282done
cristy8b350f62009-11-15 23:12:43 +000010283 done
cristy3ed852e2009-09-05 21:47:34 +000010284IFS=$as_save_IFS
10285
10286fi
10287fi
10288ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10289if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000010290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000010291$as_echo "$ac_ct_CXX" >&6; }
10292else
cristy8b350f62009-11-15 23:12:43 +000010293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010294$as_echo "no" >&6; }
10295fi
10296
10297
10298 test -n "$ac_ct_CXX" && break
10299done
10300
10301 if test "x$ac_ct_CXX" = x; then
10302 CXX="g++"
10303 else
10304 case $cross_compiling:$ac_tool_warned in
10305yes:)
cristy8b350f62009-11-15 23:12:43 +000010306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10308ac_tool_warned=yes ;;
10309esac
10310 CXX=$ac_ct_CXX
10311 fi
10312fi
10313
10314 fi
10315fi
10316# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000010317$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000010318set X $ac_compile
10319ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000010320for ac_option in --version -v -V -qversion; do
10321 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000010322case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10325esac
cristy8b350f62009-11-15 23:12:43 +000010326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10327$as_echo "$ac_try_echo"; } >&5
10328 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000010329 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010330 if test -s conftest.err; then
10331 sed '10a\
10332... rest of stderr output deleted ...
10333 10q' conftest.err >conftest.er1
10334 cat conftest.er1 >&5
10335 rm -f conftest.er1 conftest.err
10336 fi
10337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10338 test $ac_status = 0; }
10339done
cristy3ed852e2009-09-05 21:47:34 +000010340
cristy8b350f62009-11-15 23:12:43 +000010341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000010342$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010343if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010344 $as_echo_n "(cached) " >&6
10345else
cristy8b350f62009-11-15 23:12:43 +000010346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010347/* end confdefs.h. */
10348
10349int
10350main ()
10351{
10352#ifndef __GNUC__
10353 choke me
10354#endif
10355
10356 ;
10357 return 0;
10358}
10359_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010360if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010361 ac_compiler_gnu=yes
10362else
cristy8b350f62009-11-15 23:12:43 +000010363 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000010364fi
cristy3ed852e2009-09-05 21:47:34 +000010365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10366ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10367
10368fi
cristy8b350f62009-11-15 23:12:43 +000010369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000010370$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10371if test $ac_compiler_gnu = yes; then
10372 GXX=yes
10373else
10374 GXX=
10375fi
10376ac_test_CXXFLAGS=${CXXFLAGS+set}
10377ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000010378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000010379$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010380if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010381 $as_echo_n "(cached) " >&6
10382else
10383 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10384 ac_cxx_werror_flag=yes
10385 ac_cv_prog_cxx_g=no
10386 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000010387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010388/* end confdefs.h. */
10389
10390int
10391main ()
10392{
10393
10394 ;
10395 return 0;
10396}
10397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010398if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010399 ac_cv_prog_cxx_g=yes
10400else
cristy8b350f62009-11-15 23:12:43 +000010401 CXXFLAGS=""
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010403/* end confdefs.h. */
10404
10405int
10406main ()
10407{
10408
10409 ;
10410 return 0;
10411}
10412_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010413if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010414
cristy8b350f62009-11-15 23:12:43 +000010415else
10416 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000010417 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000010418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010419/* end confdefs.h. */
10420
10421int
10422main ()
10423{
10424
10425 ;
10426 return 0;
10427}
10428_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010429if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010430 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000010431fi
cristy3ed852e2009-09-05 21:47:34 +000010432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10433fi
cristy3ed852e2009-09-05 21:47:34 +000010434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10435fi
cristy3ed852e2009-09-05 21:47:34 +000010436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10437 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10438fi
cristy8b350f62009-11-15 23:12:43 +000010439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000010440$as_echo "$ac_cv_prog_cxx_g" >&6; }
10441if test "$ac_test_CXXFLAGS" = set; then
10442 CXXFLAGS=$ac_save_CXXFLAGS
10443elif test $ac_cv_prog_cxx_g = yes; then
10444 if test "$GXX" = yes; then
10445 CXXFLAGS="-g -O2"
10446 else
10447 CXXFLAGS="-g"
10448 fi
10449else
10450 if test "$GXX" = yes; then
10451 CXXFLAGS="-O2"
10452 else
10453 CXXFLAGS=
10454 fi
10455fi
10456ac_ext=c
10457ac_cpp='$CPP $CPPFLAGS'
10458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10460ac_compiler_gnu=$ac_cv_c_compiler_gnu
10461
10462depcc="$CXX" am_compiler_list=
10463
cristy8b350f62009-11-15 23:12:43 +000010464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000010465$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010466if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010467 $as_echo_n "(cached) " >&6
10468else
10469 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10470 # We make a subdir and do the tests there. Otherwise we can end up
10471 # making bogus files that we don't know about and never remove. For
10472 # instance it was reported that on HP-UX the gcc test will end up
10473 # making a dummy file named `D' -- because `-MD' means `put the output
10474 # in D'.
10475 mkdir conftest.dir
10476 # Copy depcomp to subdir because otherwise we won't find it if we're
10477 # using a relative directory.
10478 cp "$am_depcomp" conftest.dir
10479 cd conftest.dir
10480 # We will build objects and dependencies in a subdirectory because
10481 # it helps to detect inapplicable dependency modes. For instance
10482 # both Tru64's cc and ICC support -MD to output dependencies as a
10483 # side effect of compilation, but ICC will put the dependencies in
10484 # the current directory while Tru64 will put them in the object
10485 # directory.
10486 mkdir sub
10487
10488 am_cv_CXX_dependencies_compiler_type=none
10489 if test "$am_compiler_list" = ""; then
10490 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10491 fi
10492 am__universal=false
10493 case " $depcc " in #(
10494 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10495 esac
10496
10497 for depmode in $am_compiler_list; do
10498 # Setup a source with many dependencies, because some compilers
10499 # like to wrap large dependency lists on column 80 (with \), and
10500 # we should not choose a depcomp mode which is confused by this.
10501 #
10502 # We need to recreate these files for each test, as the compiler may
10503 # overwrite some of them when testing with obscure command lines.
10504 # This happens at least with the AIX C compiler.
10505 : > sub/conftest.c
10506 for i in 1 2 3 4 5 6; do
10507 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10508 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10509 # Solaris 8's {/usr,}/bin/sh.
10510 touch sub/conftst$i.h
10511 done
10512 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10513
10514 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10515 # mode. It turns out that the SunPro C++ compiler does not properly
10516 # handle `-M -o', and we need to detect this. Also, some Intel
10517 # versions had trouble with output in subdirs
10518 am__obj=sub/conftest.${OBJEXT-o}
10519 am__minus_obj="-o $am__obj"
10520 case $depmode in
10521 gcc)
10522 # This depmode causes a compiler race in universal mode.
10523 test "$am__universal" = false || continue
10524 ;;
10525 nosideeffect)
10526 # after this tag, mechanisms are not by side-effect, so they'll
10527 # only be used when explicitly requested
10528 if test "x$enable_dependency_tracking" = xyes; then
10529 continue
10530 else
10531 break
10532 fi
10533 ;;
10534 msvisualcpp | msvcmsys)
10535 # This compiler won't grok `-c -o', but also, the minuso test has
10536 # not run yet. These depmodes are late enough in the game, and
10537 # so weak that their functioning should not be impacted.
10538 am__obj=conftest.${OBJEXT-o}
10539 am__minus_obj=
10540 ;;
10541 none) break ;;
10542 esac
10543 if depmode=$depmode \
10544 source=sub/conftest.c object=$am__obj \
10545 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10546 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10547 >/dev/null 2>conftest.err &&
10548 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10549 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10550 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10551 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10552 # icc doesn't choke on unknown options, it will just issue warnings
10553 # or remarks (even with -Werror). So we grep stderr for any message
10554 # that says an option was ignored or not supported.
10555 # When given -MP, icc 7.0 and 7.1 complain thusly:
10556 # icc: Command line warning: ignoring option '-M'; no argument required
10557 # The diagnosis changed in icc 8.0:
10558 # icc: Command line remark: option '-MP' not supported
10559 if (grep 'ignoring option' conftest.err ||
10560 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10561 am_cv_CXX_dependencies_compiler_type=$depmode
10562 break
10563 fi
10564 fi
10565 done
10566
10567 cd ..
10568 rm -rf conftest.dir
10569else
10570 am_cv_CXX_dependencies_compiler_type=none
10571fi
10572
10573fi
cristy8b350f62009-11-15 23:12:43 +000010574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000010575$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10576CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10577
10578 if
10579 test "x$enable_dependency_tracking" != xno \
10580 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10581 am__fastdepCXX_TRUE=
10582 am__fastdepCXX_FALSE='#'
10583else
10584 am__fastdepCXX_TRUE='#'
10585 am__fastdepCXX_FALSE=
10586fi
10587
10588
10589if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10590 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10591 (test "X$CXX" != "Xg++"))) ; then
10592 ac_ext=cpp
10593ac_cpp='$CXXCPP $CPPFLAGS'
10594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +000010597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +000010598$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10599if test -z "$CXXCPP"; then
cristy8b350f62009-11-15 23:12:43 +000010600 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010601 $as_echo_n "(cached) " >&6
10602else
10603 # Double quotes because CXXCPP needs to be expanded
10604 for CXXCPP in "$CXX -E" "/lib/cpp"
10605 do
10606 ac_preproc_ok=false
10607for ac_cxx_preproc_warn_flag in '' yes
10608do
10609 # Use a header file that comes with gcc, so configuring glibc
10610 # with a fresh cross-compiler works.
10611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10612 # <limits.h> exists even on freestanding compilers.
10613 # On the NeXT, cc -E runs the code through the compiler's parser,
10614 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +000010615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010616/* end confdefs.h. */
10617#ifdef __STDC__
10618# include <limits.h>
10619#else
10620# include <assert.h>
10621#endif
10622 Syntax error
10623_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010624if ac_fn_cxx_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010625
cristy8b350f62009-11-15 23:12:43 +000010626else
cristy3ed852e2009-09-05 21:47:34 +000010627 # Broken: fails on valid input.
10628continue
10629fi
cristy3ed852e2009-09-05 21:47:34 +000010630rm -f conftest.err conftest.$ac_ext
10631
10632 # OK, works on sane cases. Now check whether nonexistent headers
10633 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +000010634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010635/* end confdefs.h. */
10636#include <ac_nonexistent.h>
10637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010638if ac_fn_cxx_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010639 # Broken: success on invalid input.
10640continue
10641else
cristy3ed852e2009-09-05 21:47:34 +000010642 # Passes both tests.
10643ac_preproc_ok=:
10644break
10645fi
cristy3ed852e2009-09-05 21:47:34 +000010646rm -f conftest.err conftest.$ac_ext
10647
10648done
10649# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10650rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010651if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +000010652 break
10653fi
10654
10655 done
10656 ac_cv_prog_CXXCPP=$CXXCPP
10657
10658fi
10659 CXXCPP=$ac_cv_prog_CXXCPP
10660else
10661 ac_cv_prog_CXXCPP=$CXXCPP
10662fi
cristy8b350f62009-11-15 23:12:43 +000010663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010664$as_echo "$CXXCPP" >&6; }
10665ac_preproc_ok=false
10666for ac_cxx_preproc_warn_flag in '' yes
10667do
10668 # Use a header file that comes with gcc, so configuring glibc
10669 # with a fresh cross-compiler works.
10670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10671 # <limits.h> exists even on freestanding compilers.
10672 # On the NeXT, cc -E runs the code through the compiler's parser,
10673 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +000010674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010675/* end confdefs.h. */
10676#ifdef __STDC__
10677# include <limits.h>
10678#else
10679# include <assert.h>
10680#endif
10681 Syntax error
10682_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010683if ac_fn_cxx_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010684
cristy8b350f62009-11-15 23:12:43 +000010685else
cristy3ed852e2009-09-05 21:47:34 +000010686 # Broken: fails on valid input.
10687continue
10688fi
cristy3ed852e2009-09-05 21:47:34 +000010689rm -f conftest.err conftest.$ac_ext
10690
10691 # OK, works on sane cases. Now check whether nonexistent headers
10692 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +000010693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010694/* end confdefs.h. */
10695#include <ac_nonexistent.h>
10696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010697if ac_fn_cxx_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010698 # Broken: success on invalid input.
10699continue
10700else
cristy3ed852e2009-09-05 21:47:34 +000010701 # Passes both tests.
10702ac_preproc_ok=:
10703break
10704fi
cristy3ed852e2009-09-05 21:47:34 +000010705rm -f conftest.err conftest.$ac_ext
10706
10707done
10708# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10709rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010710if $ac_preproc_ok; then :
10711
cristy3ed852e2009-09-05 21:47:34 +000010712else
cristy8b350f62009-11-15 23:12:43 +000010713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10715_lt_caught_CXX_error=yes; }
10716fi
10717
10718ac_ext=c
10719ac_cpp='$CPP $CPPFLAGS'
10720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10722ac_compiler_gnu=$ac_cv_c_compiler_gnu
10723
10724else
10725 _lt_caught_CXX_error=yes
10726fi
10727
10728
10729
10730
10731
10732# Set options
10733enable_win32_dll=yes
10734
10735case $host in
10736*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
10737 if test -n "$ac_tool_prefix"; then
10738 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10739set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010741$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010742if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010743 $as_echo_n "(cached) " >&6
10744else
10745 if test -n "$AS"; then
10746 ac_cv_prog_AS="$AS" # Let the user override the test.
10747else
10748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749for as_dir in $PATH
10750do
10751 IFS=$as_save_IFS
10752 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10755 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000010756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010757 break 2
10758 fi
10759done
cristy8b350f62009-11-15 23:12:43 +000010760 done
cristy3ed852e2009-09-05 21:47:34 +000010761IFS=$as_save_IFS
10762
10763fi
10764fi
10765AS=$ac_cv_prog_AS
10766if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000010767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010768$as_echo "$AS" >&6; }
10769else
cristy8b350f62009-11-15 23:12:43 +000010770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010771$as_echo "no" >&6; }
10772fi
10773
10774
10775fi
10776if test -z "$ac_cv_prog_AS"; then
10777 ac_ct_AS=$AS
10778 # Extract the first word of "as", so it can be a program name with args.
10779set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010781$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010782if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010783 $as_echo_n "(cached) " >&6
10784else
10785 if test -n "$ac_ct_AS"; then
10786 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10787else
10788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789for as_dir in $PATH
10790do
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000010796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010797 break 2
10798 fi
10799done
cristy8b350f62009-11-15 23:12:43 +000010800 done
cristy3ed852e2009-09-05 21:47:34 +000010801IFS=$as_save_IFS
10802
10803fi
10804fi
10805ac_ct_AS=$ac_cv_prog_ac_ct_AS
10806if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000010807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010808$as_echo "$ac_ct_AS" >&6; }
10809else
cristy8b350f62009-11-15 23:12:43 +000010810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010811$as_echo "no" >&6; }
10812fi
10813
10814 if test "x$ac_ct_AS" = x; then
10815 AS="false"
10816 else
10817 case $cross_compiling:$ac_tool_warned in
10818yes:)
cristy8b350f62009-11-15 23:12:43 +000010819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10821ac_tool_warned=yes ;;
10822esac
10823 AS=$ac_ct_AS
10824 fi
10825else
10826 AS="$ac_cv_prog_AS"
10827fi
10828
10829 if test -n "$ac_tool_prefix"; then
10830 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10831set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010833$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010834if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010835 $as_echo_n "(cached) " >&6
10836else
10837 if test -n "$DLLTOOL"; then
10838 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10839else
10840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841for as_dir in $PATH
10842do
10843 IFS=$as_save_IFS
10844 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010845 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10847 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000010848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010849 break 2
10850 fi
10851done
cristy8b350f62009-11-15 23:12:43 +000010852 done
cristy3ed852e2009-09-05 21:47:34 +000010853IFS=$as_save_IFS
10854
10855fi
10856fi
10857DLLTOOL=$ac_cv_prog_DLLTOOL
10858if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010860$as_echo "$DLLTOOL" >&6; }
10861else
cristy8b350f62009-11-15 23:12:43 +000010862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010863$as_echo "no" >&6; }
10864fi
10865
10866
10867fi
10868if test -z "$ac_cv_prog_DLLTOOL"; then
10869 ac_ct_DLLTOOL=$DLLTOOL
10870 # Extract the first word of "dlltool", so it can be a program name with args.
10871set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010873$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010874if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010875 $as_echo_n "(cached) " >&6
10876else
10877 if test -n "$ac_ct_DLLTOOL"; then
10878 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10879else
10880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881for as_dir in $PATH
10882do
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010885 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10887 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000010888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010889 break 2
10890 fi
10891done
cristy8b350f62009-11-15 23:12:43 +000010892 done
cristy3ed852e2009-09-05 21:47:34 +000010893IFS=$as_save_IFS
10894
10895fi
10896fi
10897ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10898if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010900$as_echo "$ac_ct_DLLTOOL" >&6; }
10901else
cristy8b350f62009-11-15 23:12:43 +000010902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010903$as_echo "no" >&6; }
10904fi
10905
10906 if test "x$ac_ct_DLLTOOL" = x; then
10907 DLLTOOL="false"
10908 else
10909 case $cross_compiling:$ac_tool_warned in
10910yes:)
cristy8b350f62009-11-15 23:12:43 +000010911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10913ac_tool_warned=yes ;;
10914esac
10915 DLLTOOL=$ac_ct_DLLTOOL
10916 fi
10917else
10918 DLLTOOL="$ac_cv_prog_DLLTOOL"
10919fi
10920
10921 if test -n "$ac_tool_prefix"; then
10922 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10923set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010925$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010926if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010927 $as_echo_n "(cached) " >&6
10928else
10929 if test -n "$OBJDUMP"; then
10930 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10931else
10932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933for as_dir in $PATH
10934do
10935 IFS=$as_save_IFS
10936 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10939 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000010940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010941 break 2
10942 fi
10943done
cristy8b350f62009-11-15 23:12:43 +000010944 done
cristy3ed852e2009-09-05 21:47:34 +000010945IFS=$as_save_IFS
10946
10947fi
10948fi
10949OBJDUMP=$ac_cv_prog_OBJDUMP
10950if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010952$as_echo "$OBJDUMP" >&6; }
10953else
cristy8b350f62009-11-15 23:12:43 +000010954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010955$as_echo "no" >&6; }
10956fi
10957
10958
10959fi
10960if test -z "$ac_cv_prog_OBJDUMP"; then
10961 ac_ct_OBJDUMP=$OBJDUMP
10962 # Extract the first word of "objdump", so it can be a program name with args.
10963set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010965$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010966if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010967 $as_echo_n "(cached) " >&6
10968else
10969 if test -n "$ac_ct_OBJDUMP"; then
10970 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10971else
10972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973for as_dir in $PATH
10974do
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010977 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10979 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000010980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010981 break 2
10982 fi
10983done
cristy8b350f62009-11-15 23:12:43 +000010984 done
cristy3ed852e2009-09-05 21:47:34 +000010985IFS=$as_save_IFS
10986
10987fi
10988fi
10989ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10990if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010992$as_echo "$ac_ct_OBJDUMP" >&6; }
10993else
cristy8b350f62009-11-15 23:12:43 +000010994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010995$as_echo "no" >&6; }
10996fi
10997
10998 if test "x$ac_ct_OBJDUMP" = x; then
10999 OBJDUMP="false"
11000 else
11001 case $cross_compiling:$ac_tool_warned in
11002yes:)
cristy8b350f62009-11-15 23:12:43 +000011003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11005ac_tool_warned=yes ;;
11006esac
11007 OBJDUMP=$ac_ct_OBJDUMP
11008 fi
11009else
11010 OBJDUMP="$ac_cv_prog_OBJDUMP"
11011fi
11012
11013 ;;
11014esac
11015
11016test -z "$AS" && AS=as
11017
11018
11019
11020
11021
11022test -z "$DLLTOOL" && DLLTOOL=dlltool
11023
11024
11025
11026
11027
11028test -z "$OBJDUMP" && OBJDUMP=objdump
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011039if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011040 enableval=$enable_shared; p=${PACKAGE-default}
11041 case $enableval in
11042 yes) enable_shared=yes ;;
11043 no) enable_shared=no ;;
11044 *)
11045 enable_shared=no
11046 # Look at the argument we got. We use all the common list separators.
11047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11048 for pkg in $enableval; do
11049 IFS="$lt_save_ifs"
11050 if test "X$pkg" = "X$p"; then
11051 enable_shared=yes
11052 fi
11053 done
11054 IFS="$lt_save_ifs"
11055 ;;
11056 esac
11057else
11058 enable_shared=yes
11059fi
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000011070if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011071 enableval=$enable_static; p=${PACKAGE-default}
11072 case $enableval in
11073 yes) enable_static=yes ;;
11074 no) enable_static=no ;;
11075 *)
11076 enable_static=no
11077 # Look at the argument we got. We use all the common list separators.
11078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11079 for pkg in $enableval; do
11080 IFS="$lt_save_ifs"
11081 if test "X$pkg" = "X$p"; then
11082 enable_static=yes
11083 fi
11084 done
11085 IFS="$lt_save_ifs"
11086 ;;
11087 esac
11088else
11089 enable_static=yes
11090fi
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000011102if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011103 withval=$with_pic; pic_mode="$withval"
11104else
11105 pic_mode=default
11106fi
11107
11108
11109test -z "$pic_mode" && pic_mode=default
11110
11111
11112
11113
11114
11115
11116
11117 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000011118if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011119 enableval=$enable_fast_install; p=${PACKAGE-default}
11120 case $enableval in
11121 yes) enable_fast_install=yes ;;
11122 no) enable_fast_install=no ;;
11123 *)
11124 enable_fast_install=no
11125 # Look at the argument we got. We use all the common list separators.
11126 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11127 for pkg in $enableval; do
11128 IFS="$lt_save_ifs"
11129 if test "X$pkg" = "X$p"; then
11130 enable_fast_install=yes
11131 fi
11132 done
11133 IFS="$lt_save_ifs"
11134 ;;
11135 esac
11136else
11137 enable_fast_install=yes
11138fi
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150# This can be used to rebuild libtool when needed
11151LIBTOOL_DEPS="$ltmain"
11152
11153# Always use our own libtool.
11154LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180test -z "$LN_S" && LN_S="ln -s"
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195if test -n "${ZSH_VERSION+set}" ; then
11196 setopt NO_GLOB_SUBST
11197fi
11198
cristy8b350f62009-11-15 23:12:43 +000011199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011200$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011201if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011202 $as_echo_n "(cached) " >&6
11203else
11204 rm -f .libs 2>/dev/null
11205mkdir .libs 2>/dev/null
11206if test -d .libs; then
11207 lt_cv_objdir=.libs
11208else
11209 # MS-DOS does not allow filenames that begin with a dot.
11210 lt_cv_objdir=_libs
11211fi
11212rmdir .libs 2>/dev/null
11213fi
cristy8b350f62009-11-15 23:12:43 +000011214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011215$as_echo "$lt_cv_objdir" >&6; }
11216objdir=$lt_cv_objdir
11217
11218
11219
11220
11221
11222cat >>confdefs.h <<_ACEOF
11223#define LT_OBJDIR "$lt_cv_objdir/"
11224_ACEOF
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242case $host_os in
11243aix3*)
11244 # AIX sometimes has problems with the GCC collect2 program. For some
11245 # reason, if we set the COLLECT_NAMES environment variable, the problems
11246 # vanish in a puff of smoke.
11247 if test "X${COLLECT_NAMES+set}" != Xset; then
11248 COLLECT_NAMES=
11249 export COLLECT_NAMES
11250 fi
11251 ;;
11252esac
11253
11254# Sed substitution that helps us do robust quoting. It backslashifies
11255# metacharacters that are still active within double-quoted strings.
11256sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11257
11258# Same as above, but do not quote variable references.
11259double_quote_subst='s/\(["`\\]\)/\\\1/g'
11260
11261# Sed substitution to delay expansion of an escaped shell variable in a
11262# double_quote_subst'ed string.
11263delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11264
11265# Sed substitution to delay expansion of an escaped single quote.
11266delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11267
11268# Sed substitution to avoid accidental globbing in evaled expressions
11269no_glob_subst='s/\*/\\\*/g'
11270
11271# Global variables:
11272ofile=libtool
11273can_build_shared=yes
11274
11275# All known linkers require a `.a' archive for static linking (except MSVC,
11276# which needs '.lib').
11277libext=a
11278
11279with_gnu_ld="$lt_cv_prog_gnu_ld"
11280
11281old_CC="$CC"
11282old_CFLAGS="$CFLAGS"
11283
11284# Set sane defaults for various variables
11285test -z "$CC" && CC=cc
11286test -z "$LTCC" && LTCC=$CC
11287test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11288test -z "$LD" && LD=ld
11289test -z "$ac_objext" && ac_objext=o
11290
11291for cc_temp in $compiler""; do
11292 case $cc_temp in
11293 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11294 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11295 \-*) ;;
11296 *) break;;
11297 esac
11298done
11299cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11300
11301
11302# Only perform the check for file, if the check method requires it
11303test -z "$MAGIC_CMD" && MAGIC_CMD=file
11304case $deplibs_check_method in
11305file_magic*)
11306 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000011307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011308$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011309if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011310 $as_echo_n "(cached) " >&6
11311else
11312 case $MAGIC_CMD in
11313[\\/*] | ?:[\\/]*)
11314 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11315 ;;
11316*)
11317 lt_save_MAGIC_CMD="$MAGIC_CMD"
11318 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11319 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11320 for ac_dir in $ac_dummy; do
11321 IFS="$lt_save_ifs"
11322 test -z "$ac_dir" && ac_dir=.
11323 if test -f $ac_dir/${ac_tool_prefix}file; then
11324 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11325 if test -n "$file_magic_test_file"; then
11326 case $deplibs_check_method in
11327 "file_magic "*)
11328 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11330 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11331 $EGREP "$file_magic_regex" > /dev/null; then
11332 :
11333 else
11334 cat <<_LT_EOF 1>&2
11335
11336*** Warning: the command libtool uses to detect shared libraries,
11337*** $file_magic_cmd, produces output that libtool cannot recognize.
11338*** The result is that libtool may fail to recognize shared libraries
11339*** as such. This will affect the creation of libtool libraries that
11340*** depend on shared libraries, but programs linked with such libtool
11341*** libraries will work regardless of this problem. Nevertheless, you
11342*** may want to report the problem to your system manager and/or to
11343*** bug-libtool@gnu.org
11344
11345_LT_EOF
11346 fi ;;
11347 esac
11348 fi
11349 break
11350 fi
11351 done
11352 IFS="$lt_save_ifs"
11353 MAGIC_CMD="$lt_save_MAGIC_CMD"
11354 ;;
11355esac
11356fi
11357
11358MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11359if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011361$as_echo "$MAGIC_CMD" >&6; }
11362else
cristy8b350f62009-11-15 23:12:43 +000011363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011364$as_echo "no" >&6; }
11365fi
11366
11367
11368
11369
11370
11371if test -z "$lt_cv_path_MAGIC_CMD"; then
11372 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000011373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011374$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011375if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011376 $as_echo_n "(cached) " >&6
11377else
11378 case $MAGIC_CMD in
11379[\\/*] | ?:[\\/]*)
11380 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11381 ;;
11382*)
11383 lt_save_MAGIC_CMD="$MAGIC_CMD"
11384 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11385 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11386 for ac_dir in $ac_dummy; do
11387 IFS="$lt_save_ifs"
11388 test -z "$ac_dir" && ac_dir=.
11389 if test -f $ac_dir/file; then
11390 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11391 if test -n "$file_magic_test_file"; then
11392 case $deplibs_check_method in
11393 "file_magic "*)
11394 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11396 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11397 $EGREP "$file_magic_regex" > /dev/null; then
11398 :
11399 else
11400 cat <<_LT_EOF 1>&2
11401
11402*** Warning: the command libtool uses to detect shared libraries,
11403*** $file_magic_cmd, produces output that libtool cannot recognize.
11404*** The result is that libtool may fail to recognize shared libraries
11405*** as such. This will affect the creation of libtool libraries that
11406*** depend on shared libraries, but programs linked with such libtool
11407*** libraries will work regardless of this problem. Nevertheless, you
11408*** may want to report the problem to your system manager and/or to
11409*** bug-libtool@gnu.org
11410
11411_LT_EOF
11412 fi ;;
11413 esac
11414 fi
11415 break
11416 fi
11417 done
11418 IFS="$lt_save_ifs"
11419 MAGIC_CMD="$lt_save_MAGIC_CMD"
11420 ;;
11421esac
11422fi
11423
11424MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11425if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011427$as_echo "$MAGIC_CMD" >&6; }
11428else
cristy8b350f62009-11-15 23:12:43 +000011429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011430$as_echo "no" >&6; }
11431fi
11432
11433
11434 else
11435 MAGIC_CMD=:
11436 fi
11437fi
11438
11439 fi
11440 ;;
11441esac
11442
11443# Use C for the default configuration in the libtool script
11444
11445lt_save_CC="$CC"
11446ac_ext=c
11447ac_cpp='$CPP $CPPFLAGS'
11448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11450ac_compiler_gnu=$ac_cv_c_compiler_gnu
11451
11452
11453# Source file extension for C test sources.
11454ac_ext=c
11455
11456# Object file extension for compiled C test sources.
11457objext=o
11458objext=$objext
11459
11460# Code to be used in simple compile tests
11461lt_simple_compile_test_code="int some_variable = 0;"
11462
11463# Code to be used in simple link tests
11464lt_simple_link_test_code='int main(){return(0);}'
11465
11466
11467
11468
11469
11470
11471
11472# If no C compiler was specified, use CC.
11473LTCC=${LTCC-"$CC"}
11474
11475# If no C compiler flags were specified, use CFLAGS.
11476LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11477
11478# Allow CC to be a program name with arguments.
11479compiler=$CC
11480
11481# Save the default compiler, since it gets overwritten when the other
11482# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11483compiler_DEFAULT=$CC
11484
11485# save warnings/boilerplate of simple test code
11486ac_outfile=conftest.$ac_objext
11487echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11488eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11489_lt_compiler_boilerplate=`cat conftest.err`
11490$RM conftest*
11491
11492ac_outfile=conftest.$ac_objext
11493echo "$lt_simple_link_test_code" >conftest.$ac_ext
11494eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11495_lt_linker_boilerplate=`cat conftest.err`
11496$RM -r conftest*
11497
11498
11499## CAVEAT EMPTOR:
11500## There is no encapsulation within the following macros, do not change
11501## the running order or otherwise move them around unless you know exactly
11502## what you are doing...
11503if test -n "$compiler"; then
11504
11505lt_prog_compiler_no_builtin_flag=
11506
11507if test "$GCC" = yes; then
11508 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11509
cristy8b350f62009-11-15 23:12:43 +000011510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011511$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011512if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011513 $as_echo_n "(cached) " >&6
11514else
11515 lt_cv_prog_compiler_rtti_exceptions=no
11516 ac_outfile=conftest.$ac_objext
11517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11518 lt_compiler_flag="-fno-rtti -fno-exceptions"
11519 # Insert the option either (1) after the last *FLAGS variable, or
11520 # (2) before a word containing "conftest.", or (3) at the end.
11521 # Note that $ac_compile itself does not contain backslashes and begins
11522 # with a dollar sign (not a hyphen), so the echo should work correctly.
11523 # The option is referenced via a variable to avoid confusing sed.
11524 lt_compile=`echo "$ac_compile" | $SED \
11525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11527 -e 's:$: $lt_compiler_flag:'`
cristy8b350f62009-11-15 23:12:43 +000011528 (eval echo "\"\$as_me:11528: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011529 (eval "$lt_compile" 2>conftest.err)
11530 ac_status=$?
11531 cat conftest.err >&5
cristy8b350f62009-11-15 23:12:43 +000011532 echo "$as_me:11532: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011533 if (exit $ac_status) && test -s "$ac_outfile"; then
11534 # The compiler can only warn and ignore the option if not recognized
11535 # So say no if there are warnings other than the usual output.
11536 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11538 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11539 lt_cv_prog_compiler_rtti_exceptions=yes
11540 fi
11541 fi
11542 $RM conftest*
11543
11544fi
cristy8b350f62009-11-15 23:12:43 +000011545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011546$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11547
11548if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11549 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11550else
11551 :
11552fi
11553
11554fi
11555
11556
11557
11558
11559
11560
11561 lt_prog_compiler_wl=
11562lt_prog_compiler_pic=
11563lt_prog_compiler_static=
11564
cristy8b350f62009-11-15 23:12:43 +000011565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011566$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11567
11568 if test "$GCC" = yes; then
11569 lt_prog_compiler_wl='-Wl,'
11570 lt_prog_compiler_static='-static'
11571
11572 case $host_os in
11573 aix*)
11574 # All AIX code is PIC.
11575 if test "$host_cpu" = ia64; then
11576 # AIX 5 now supports IA64 processor
11577 lt_prog_compiler_static='-Bstatic'
11578 fi
11579 ;;
11580
11581 amigaos*)
11582 case $host_cpu in
11583 powerpc)
11584 # see comment about AmigaOS4 .so support
11585 lt_prog_compiler_pic='-fPIC'
11586 ;;
11587 m68k)
11588 # FIXME: we need at least 68020 code to build shared libraries, but
11589 # adding the `-m68020' flag to GCC prevents building anything better,
11590 # like `-m68040'.
11591 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11592 ;;
11593 esac
11594 ;;
11595
11596 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11597 # PIC is the default for these OSes.
11598 ;;
11599
11600 mingw* | cygwin* | pw32* | os2* | cegcc*)
11601 # This hack is so that the source file can tell whether it is being
11602 # built for inclusion in a dll (and should export symbols for example).
11603 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11604 # (--disable-auto-import) libraries
11605 lt_prog_compiler_pic='-DDLL_EXPORT'
11606 ;;
11607
11608 darwin* | rhapsody*)
11609 # PIC is the default on this platform
11610 # Common symbols not allowed in MH_DYLIB files
11611 lt_prog_compiler_pic='-fno-common'
11612 ;;
11613
11614 hpux*)
11615 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11616 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11617 # sets the default TLS model and affects inlining.
11618 case $host_cpu in
11619 hppa*64*)
11620 # +Z the default
11621 ;;
11622 *)
11623 lt_prog_compiler_pic='-fPIC'
11624 ;;
11625 esac
11626 ;;
11627
11628 interix[3-9]*)
11629 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11630 # Instead, we relocate shared libraries at runtime.
11631 ;;
11632
11633 msdosdjgpp*)
11634 # Just because we use GCC doesn't mean we suddenly get shared libraries
11635 # on systems that don't support them.
11636 lt_prog_compiler_can_build_shared=no
11637 enable_shared=no
11638 ;;
11639
11640 *nto* | *qnx*)
11641 # QNX uses GNU C++, but need to define -shared option too, otherwise
11642 # it will coredump.
11643 lt_prog_compiler_pic='-fPIC -shared'
11644 ;;
11645
11646 sysv4*MP*)
11647 if test -d /usr/nec; then
11648 lt_prog_compiler_pic=-Kconform_pic
11649 fi
11650 ;;
11651
11652 *)
11653 lt_prog_compiler_pic='-fPIC'
11654 ;;
11655 esac
11656 else
11657 # PORTME Check for flag to pass linker flags through the system compiler.
11658 case $host_os in
11659 aix*)
11660 lt_prog_compiler_wl='-Wl,'
11661 if test "$host_cpu" = ia64; then
11662 # AIX 5 now supports IA64 processor
11663 lt_prog_compiler_static='-Bstatic'
11664 else
11665 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11666 fi
11667 ;;
11668
11669 mingw* | cygwin* | pw32* | os2* | cegcc*)
11670 # This hack is so that the source file can tell whether it is being
11671 # built for inclusion in a dll (and should export symbols for example).
11672 lt_prog_compiler_pic='-DDLL_EXPORT'
11673 ;;
11674
11675 hpux9* | hpux10* | hpux11*)
11676 lt_prog_compiler_wl='-Wl,'
11677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11678 # not for PA HP-UX.
11679 case $host_cpu in
11680 hppa*64*|ia64*)
11681 # +Z the default
11682 ;;
11683 *)
11684 lt_prog_compiler_pic='+Z'
11685 ;;
11686 esac
11687 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11688 lt_prog_compiler_static='${wl}-a ${wl}archive'
11689 ;;
11690
11691 irix5* | irix6* | nonstopux*)
11692 lt_prog_compiler_wl='-Wl,'
11693 # PIC (with -KPIC) is the default.
11694 lt_prog_compiler_static='-non_shared'
11695 ;;
11696
11697 linux* | k*bsd*-gnu)
11698 case $cc_basename in
11699 # old Intel for x86_64 which still supported -KPIC.
11700 ecc*)
11701 lt_prog_compiler_wl='-Wl,'
11702 lt_prog_compiler_pic='-KPIC'
11703 lt_prog_compiler_static='-static'
11704 ;;
11705 # icc used to be incompatible with GCC.
11706 # ICC 10 doesn't accept -KPIC any more.
11707 icc* | ifort*)
11708 lt_prog_compiler_wl='-Wl,'
11709 lt_prog_compiler_pic='-fPIC'
11710 lt_prog_compiler_static='-static'
11711 ;;
11712 # Lahey Fortran 8.1.
11713 lf95*)
11714 lt_prog_compiler_wl='-Wl,'
11715 lt_prog_compiler_pic='--shared'
11716 lt_prog_compiler_static='--static'
11717 ;;
11718 pgcc* | pgf77* | pgf90* | pgf95*)
11719 # Portland Group compilers (*not* the Pentium gcc compiler,
11720 # which looks to be a dead project)
11721 lt_prog_compiler_wl='-Wl,'
11722 lt_prog_compiler_pic='-fpic'
11723 lt_prog_compiler_static='-Bstatic'
11724 ;;
11725 ccc*)
11726 lt_prog_compiler_wl='-Wl,'
11727 # All Alpha code is PIC.
11728 lt_prog_compiler_static='-non_shared'
11729 ;;
11730 xl*)
11731 # IBM XL C 8.0/Fortran 10.1 on PPC
11732 lt_prog_compiler_wl='-Wl,'
11733 lt_prog_compiler_pic='-qpic'
11734 lt_prog_compiler_static='-qstaticlink'
11735 ;;
11736 *)
11737 case `$CC -V 2>&1 | sed 5q` in
11738 *Sun\ C*)
11739 # Sun C 5.9
11740 lt_prog_compiler_pic='-KPIC'
11741 lt_prog_compiler_static='-Bstatic'
11742 lt_prog_compiler_wl='-Wl,'
11743 ;;
11744 *Sun\ F*)
11745 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11746 lt_prog_compiler_pic='-KPIC'
11747 lt_prog_compiler_static='-Bstatic'
11748 lt_prog_compiler_wl=''
11749 ;;
11750 esac
11751 ;;
11752 esac
11753 ;;
11754
11755 newsos6)
11756 lt_prog_compiler_pic='-KPIC'
11757 lt_prog_compiler_static='-Bstatic'
11758 ;;
11759
11760 *nto* | *qnx*)
11761 # QNX uses GNU C++, but need to define -shared option too, otherwise
11762 # it will coredump.
11763 lt_prog_compiler_pic='-fPIC -shared'
11764 ;;
11765
11766 osf3* | osf4* | osf5*)
11767 lt_prog_compiler_wl='-Wl,'
11768 # All OSF/1 code is PIC.
11769 lt_prog_compiler_static='-non_shared'
11770 ;;
11771
11772 rdos*)
11773 lt_prog_compiler_static='-non_shared'
11774 ;;
11775
11776 solaris*)
11777 lt_prog_compiler_pic='-KPIC'
11778 lt_prog_compiler_static='-Bstatic'
11779 case $cc_basename in
11780 f77* | f90* | f95*)
11781 lt_prog_compiler_wl='-Qoption ld ';;
11782 *)
11783 lt_prog_compiler_wl='-Wl,';;
11784 esac
11785 ;;
11786
11787 sunos4*)
11788 lt_prog_compiler_wl='-Qoption ld '
11789 lt_prog_compiler_pic='-PIC'
11790 lt_prog_compiler_static='-Bstatic'
11791 ;;
11792
11793 sysv4 | sysv4.2uw2* | sysv4.3*)
11794 lt_prog_compiler_wl='-Wl,'
11795 lt_prog_compiler_pic='-KPIC'
11796 lt_prog_compiler_static='-Bstatic'
11797 ;;
11798
11799 sysv4*MP*)
11800 if test -d /usr/nec ;then
11801 lt_prog_compiler_pic='-Kconform_pic'
11802 lt_prog_compiler_static='-Bstatic'
11803 fi
11804 ;;
11805
11806 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11807 lt_prog_compiler_wl='-Wl,'
11808 lt_prog_compiler_pic='-KPIC'
11809 lt_prog_compiler_static='-Bstatic'
11810 ;;
11811
11812 unicos*)
11813 lt_prog_compiler_wl='-Wl,'
11814 lt_prog_compiler_can_build_shared=no
11815 ;;
11816
11817 uts4*)
11818 lt_prog_compiler_pic='-pic'
11819 lt_prog_compiler_static='-Bstatic'
11820 ;;
11821
11822 *)
11823 lt_prog_compiler_can_build_shared=no
11824 ;;
11825 esac
11826 fi
11827
11828case $host_os in
11829 # For platforms which do not support PIC, -DPIC is meaningless:
11830 *djgpp*)
11831 lt_prog_compiler_pic=
11832 ;;
11833 *)
11834 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11835 ;;
11836esac
cristy8b350f62009-11-15 23:12:43 +000011837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000011838$as_echo "$lt_prog_compiler_pic" >&6; }
11839
11840
11841
11842
11843
11844
11845#
11846# Check to make sure the PIC flag actually works.
11847#
11848if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000011849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011850$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011851if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011852 $as_echo_n "(cached) " >&6
11853else
11854 lt_cv_prog_compiler_pic_works=no
11855 ac_outfile=conftest.$ac_objext
11856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11857 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11858 # Insert the option either (1) after the last *FLAGS variable, or
11859 # (2) before a word containing "conftest.", or (3) at the end.
11860 # Note that $ac_compile itself does not contain backslashes and begins
11861 # with a dollar sign (not a hyphen), so the echo should work correctly.
11862 # The option is referenced via a variable to avoid confusing sed.
11863 lt_compile=`echo "$ac_compile" | $SED \
11864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11866 -e 's:$: $lt_compiler_flag:'`
cristy8b350f62009-11-15 23:12:43 +000011867 (eval echo "\"\$as_me:11867: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011868 (eval "$lt_compile" 2>conftest.err)
11869 ac_status=$?
11870 cat conftest.err >&5
cristy8b350f62009-11-15 23:12:43 +000011871 echo "$as_me:11871: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011872 if (exit $ac_status) && test -s "$ac_outfile"; then
11873 # The compiler can only warn and ignore the option if not recognized
11874 # So say no if there are warnings other than the usual output.
11875 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11877 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11878 lt_cv_prog_compiler_pic_works=yes
11879 fi
11880 fi
11881 $RM conftest*
11882
11883fi
cristy8b350f62009-11-15 23:12:43 +000011884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011885$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11886
11887if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11888 case $lt_prog_compiler_pic in
11889 "" | " "*) ;;
11890 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11891 esac
11892else
11893 lt_prog_compiler_pic=
11894 lt_prog_compiler_can_build_shared=no
11895fi
11896
11897fi
11898
11899
11900
11901
11902
11903
11904#
11905# Check to make sure the static flag actually works.
11906#
11907wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000011908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011909$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011910if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011911 $as_echo_n "(cached) " >&6
11912else
11913 lt_cv_prog_compiler_static_works=no
11914 save_LDFLAGS="$LDFLAGS"
11915 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11916 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11917 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11918 # The linker can only warn and ignore the option if not recognized
11919 # So say no if there are warnings
11920 if test -s conftest.err; then
11921 # Append any errors to the config.log.
11922 cat conftest.err 1>&5
11923 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11925 if diff conftest.exp conftest.er2 >/dev/null; then
11926 lt_cv_prog_compiler_static_works=yes
11927 fi
11928 else
11929 lt_cv_prog_compiler_static_works=yes
11930 fi
11931 fi
11932 $RM -r conftest*
11933 LDFLAGS="$save_LDFLAGS"
11934
11935fi
cristy8b350f62009-11-15 23:12:43 +000011936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011937$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11938
11939if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11940 :
11941else
11942 lt_prog_compiler_static=
11943fi
11944
11945
11946
11947
11948
11949
11950
cristy8b350f62009-11-15 23:12:43 +000011951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011952$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011953if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011954 $as_echo_n "(cached) " >&6
11955else
11956 lt_cv_prog_compiler_c_o=no
11957 $RM -r conftest 2>/dev/null
11958 mkdir conftest
11959 cd conftest
11960 mkdir out
11961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11962
11963 lt_compiler_flag="-o out/conftest2.$ac_objext"
11964 # Insert the option either (1) after the last *FLAGS variable, or
11965 # (2) before a word containing "conftest.", or (3) at the end.
11966 # Note that $ac_compile itself does not contain backslashes and begins
11967 # with a dollar sign (not a hyphen), so the echo should work correctly.
11968 lt_compile=`echo "$ac_compile" | $SED \
11969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11971 -e 's:$: $lt_compiler_flag:'`
cristy8b350f62009-11-15 23:12:43 +000011972 (eval echo "\"\$as_me:11972: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011973 (eval "$lt_compile" 2>out/conftest.err)
11974 ac_status=$?
11975 cat out/conftest.err >&5
cristy8b350f62009-11-15 23:12:43 +000011976 echo "$as_me:11976: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011977 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11978 then
11979 # The compiler can only warn and ignore the option if not recognized
11980 # So say no if there are warnings
11981 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11984 lt_cv_prog_compiler_c_o=yes
11985 fi
11986 fi
11987 chmod u+w . 2>&5
11988 $RM conftest*
11989 # SGI C++ compiler will create directory out/ii_files/ for
11990 # template instantiation
11991 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11992 $RM out/* && rmdir out
11993 cd ..
11994 $RM -r conftest
11995 $RM conftest*
11996
11997fi
cristy8b350f62009-11-15 23:12:43 +000011998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000011999$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12000
12001
12002
12003
12004
12005
cristy8b350f62009-11-15 23:12:43 +000012006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012007$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012008if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012009 $as_echo_n "(cached) " >&6
12010else
12011 lt_cv_prog_compiler_c_o=no
12012 $RM -r conftest 2>/dev/null
12013 mkdir conftest
12014 cd conftest
12015 mkdir out
12016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12017
12018 lt_compiler_flag="-o out/conftest2.$ac_objext"
12019 # Insert the option either (1) after the last *FLAGS variable, or
12020 # (2) before a word containing "conftest.", or (3) at the end.
12021 # Note that $ac_compile itself does not contain backslashes and begins
12022 # with a dollar sign (not a hyphen), so the echo should work correctly.
12023 lt_compile=`echo "$ac_compile" | $SED \
12024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12026 -e 's:$: $lt_compiler_flag:'`
cristy8b350f62009-11-15 23:12:43 +000012027 (eval echo "\"\$as_me:12027: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012028 (eval "$lt_compile" 2>out/conftest.err)
12029 ac_status=$?
12030 cat out/conftest.err >&5
cristy8b350f62009-11-15 23:12:43 +000012031 echo "$as_me:12031: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012032 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12033 then
12034 # The compiler can only warn and ignore the option if not recognized
12035 # So say no if there are warnings
12036 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12039 lt_cv_prog_compiler_c_o=yes
12040 fi
12041 fi
12042 chmod u+w . 2>&5
12043 $RM conftest*
12044 # SGI C++ compiler will create directory out/ii_files/ for
12045 # template instantiation
12046 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12047 $RM out/* && rmdir out
12048 cd ..
12049 $RM -r conftest
12050 $RM conftest*
12051
12052fi
cristy8b350f62009-11-15 23:12:43 +000012053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012054$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12055
12056
12057
12058
12059hard_links="nottested"
12060if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12061 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000012062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012063$as_echo_n "checking if we can lock with hard links... " >&6; }
12064 hard_links=yes
12065 $RM conftest*
12066 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12067 touch conftest.a
12068 ln conftest.a conftest.b 2>&5 || hard_links=no
12069 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000012070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012071$as_echo "$hard_links" >&6; }
12072 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000012073 { $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 +000012074$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12075 need_locks=warn
12076 fi
12077else
12078 need_locks=no
12079fi
12080
12081
12082
12083
12084
12085
cristy8b350f62009-11-15 23:12:43 +000012086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000012087$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12088
12089 runpath_var=
12090 allow_undefined_flag=
12091 always_export_symbols=no
12092 archive_cmds=
12093 archive_expsym_cmds=
12094 compiler_needs_object=no
12095 enable_shared_with_static_runtimes=no
12096 export_dynamic_flag_spec=
12097 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12098 hardcode_automatic=no
12099 hardcode_direct=no
12100 hardcode_direct_absolute=no
12101 hardcode_libdir_flag_spec=
12102 hardcode_libdir_flag_spec_ld=
12103 hardcode_libdir_separator=
12104 hardcode_minus_L=no
12105 hardcode_shlibpath_var=unsupported
12106 inherit_rpath=no
12107 link_all_deplibs=unknown
12108 module_cmds=
12109 module_expsym_cmds=
12110 old_archive_from_new_cmds=
12111 old_archive_from_expsyms_cmds=
12112 thread_safe_flag_spec=
12113 whole_archive_flag_spec=
12114 # include_expsyms should be a list of space-separated symbols to be *always*
12115 # included in the symbol list
12116 include_expsyms=
12117 # exclude_expsyms can be an extended regexp of symbols to exclude
12118 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12119 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12120 # as well as any symbol that contains `d'.
12121 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12122 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12123 # platforms (ab)use it in PIC code, but their linkers get confused if
12124 # the symbol is explicitly referenced. Since portable code cannot
12125 # rely on this symbol name, it's probably fine to never include it in
12126 # preloaded symbol tables.
12127 # Exclude shared library initialization/finalization symbols.
12128 extract_expsyms_cmds=
12129
12130 case $host_os in
12131 cygwin* | mingw* | pw32* | cegcc*)
12132 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12133 # When not using gcc, we currently assume that we are using
12134 # Microsoft Visual C++.
12135 if test "$GCC" != yes; then
12136 with_gnu_ld=no
12137 fi
12138 ;;
12139 interix*)
12140 # we just hope/assume this is gcc and not c89 (= MSVC++)
12141 with_gnu_ld=yes
12142 ;;
12143 openbsd*)
12144 with_gnu_ld=no
12145 ;;
12146 esac
12147
12148 ld_shlibs=yes
12149 if test "$with_gnu_ld" = yes; then
12150 # If archive_cmds runs LD, not CC, wlarc should be empty
12151 wlarc='${wl}'
12152
12153 # Set some defaults for GNU ld with shared library support. These
12154 # are reset later if shared libraries are not supported. Putting them
12155 # here allows them to be overridden if necessary.
12156 runpath_var=LD_RUN_PATH
12157 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12158 export_dynamic_flag_spec='${wl}--export-dynamic'
12159 # ancient GNU ld didn't support --whole-archive et. al.
12160 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12161 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12162 else
12163 whole_archive_flag_spec=
12164 fi
12165 supports_anon_versioning=no
12166 case `$LD -v 2>&1` in
12167 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12168 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12169 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12170 *\ 2.11.*) ;; # other 2.11 versions
12171 *) supports_anon_versioning=yes ;;
12172 esac
12173
12174 # See if GNU ld supports shared libraries.
12175 case $host_os in
12176 aix[3-9]*)
12177 # On AIX/PPC, the GNU linker is very broken
12178 if test "$host_cpu" != ia64; then
12179 ld_shlibs=no
12180 cat <<_LT_EOF 1>&2
12181
12182*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12183*** to be unable to reliably create shared libraries on AIX.
12184*** Therefore, libtool is disabling shared libraries support. If you
12185*** really care for shared libraries, you may want to modify your PATH
12186*** so that a non-GNU linker is found, and then restart.
12187
12188_LT_EOF
12189 fi
12190 ;;
12191
12192 amigaos*)
12193 case $host_cpu in
12194 powerpc)
12195 # see comment about AmigaOS4 .so support
12196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12197 archive_expsym_cmds=''
12198 ;;
12199 m68k)
12200 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)'
12201 hardcode_libdir_flag_spec='-L$libdir'
12202 hardcode_minus_L=yes
12203 ;;
12204 esac
12205 ;;
12206
12207 beos*)
12208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12209 allow_undefined_flag=unsupported
12210 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12211 # support --undefined. This deserves some investigation. FIXME
12212 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12213 else
12214 ld_shlibs=no
12215 fi
12216 ;;
12217
12218 cygwin* | mingw* | pw32* | cegcc*)
12219 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12220 # as there is no search path for DLLs.
12221 hardcode_libdir_flag_spec='-L$libdir'
12222 allow_undefined_flag=unsupported
12223 always_export_symbols=no
12224 enable_shared_with_static_runtimes=yes
12225 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12226
12227 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12229 # If the export-symbols file already is a .def file (1st line
12230 # is EXPORTS), use it as is; otherwise, prepend...
12231 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12232 cp $export_symbols $output_objdir/$soname.def;
12233 else
12234 echo EXPORTS > $output_objdir/$soname.def;
12235 cat $export_symbols >> $output_objdir/$soname.def;
12236 fi~
12237 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12238 else
12239 ld_shlibs=no
12240 fi
12241 ;;
12242
12243 interix[3-9]*)
12244 hardcode_direct=no
12245 hardcode_shlibpath_var=no
12246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12247 export_dynamic_flag_spec='${wl}-E'
12248 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12249 # Instead, shared libraries are loaded at an image base (0x10000000 by
12250 # default) and relocated if they conflict, which is a slow very memory
12251 # consuming and fragmenting process. To avoid this, we pick a random,
12252 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12253 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12254 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12255 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'
12256 ;;
12257
12258 gnu* | linux* | tpf* | k*bsd*-gnu)
12259 tmp_diet=no
12260 if test "$host_os" = linux-dietlibc; then
12261 case $cc_basename in
12262 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12263 esac
12264 fi
12265 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12266 && test "$tmp_diet" = no
12267 then
12268 tmp_addflag=
12269 tmp_sharedflag='-shared'
12270 case $cc_basename,$host_cpu in
12271 pgcc*) # Portland Group C compiler
12272 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'
12273 tmp_addflag=' $pic_flag'
12274 ;;
12275 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12276 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'
12277 tmp_addflag=' $pic_flag -Mnomain' ;;
12278 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12279 tmp_addflag=' -i_dynamic' ;;
12280 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12281 tmp_addflag=' -i_dynamic -nofor_main' ;;
12282 ifc* | ifort*) # Intel Fortran compiler
12283 tmp_addflag=' -nofor_main' ;;
12284 lf95*) # Lahey Fortran 8.1
12285 whole_archive_flag_spec=
12286 tmp_sharedflag='--shared' ;;
12287 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12288 tmp_sharedflag='-qmkshrobj'
12289 tmp_addflag= ;;
12290 esac
12291 case `$CC -V 2>&1 | sed 5q` in
12292 *Sun\ C*) # Sun C 5.9
12293 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'
12294 compiler_needs_object=yes
12295 tmp_sharedflag='-G' ;;
12296 *Sun\ F*) # Sun Fortran 8.3
12297 tmp_sharedflag='-G' ;;
12298 esac
12299 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12300
12301 if test "x$supports_anon_versioning" = xyes; then
12302 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12303 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12304 echo "local: *; };" >> $output_objdir/$libname.ver~
12305 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12306 fi
12307
12308 case $cc_basename in
12309 xlf*)
12310 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12311 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12312 hardcode_libdir_flag_spec=
12313 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12314 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12315 if test "x$supports_anon_versioning" = xyes; then
12316 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12317 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12318 echo "local: *; };" >> $output_objdir/$libname.ver~
12319 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12320 fi
12321 ;;
12322 esac
12323 else
12324 ld_shlibs=no
12325 fi
12326 ;;
12327
12328 netbsd*)
12329 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12330 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12331 wlarc=
12332 else
12333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12335 fi
12336 ;;
12337
12338 solaris*)
12339 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12340 ld_shlibs=no
12341 cat <<_LT_EOF 1>&2
12342
12343*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12344*** create shared libraries on Solaris systems. Therefore, libtool
12345*** is disabling shared libraries support. We urge you to upgrade GNU
12346*** binutils to release 2.9.1 or newer. Another option is to modify
12347*** your PATH or compiler configuration so that the native linker is
12348*** used, and then restart.
12349
12350_LT_EOF
12351 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12354 else
12355 ld_shlibs=no
12356 fi
12357 ;;
12358
12359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12360 case `$LD -v 2>&1` in
12361 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12362 ld_shlibs=no
12363 cat <<_LT_EOF 1>&2
12364
12365*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12366*** reliably create shared libraries on SCO systems. Therefore, libtool
12367*** is disabling shared libraries support. We urge you to upgrade GNU
12368*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12369*** your PATH or compiler configuration so that the native linker is
12370*** used, and then restart.
12371
12372_LT_EOF
12373 ;;
12374 *)
12375 # For security reasons, it is highly recommended that you always
12376 # use absolute paths for naming shared libraries, and exclude the
12377 # DT_RUNPATH tag from executables and libraries. But doing so
12378 # requires that you compile everything twice, which is a pain.
12379 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12382 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12383 else
12384 ld_shlibs=no
12385 fi
12386 ;;
12387 esac
12388 ;;
12389
12390 sunos4*)
12391 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12392 wlarc=
12393 hardcode_direct=yes
12394 hardcode_shlibpath_var=no
12395 ;;
12396
12397 *)
12398 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12400 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12401 else
12402 ld_shlibs=no
12403 fi
12404 ;;
12405 esac
12406
12407 if test "$ld_shlibs" = no; then
12408 runpath_var=
12409 hardcode_libdir_flag_spec=
12410 export_dynamic_flag_spec=
12411 whole_archive_flag_spec=
12412 fi
12413 else
12414 # PORTME fill in a description of your system's linker (not GNU ld)
12415 case $host_os in
12416 aix3*)
12417 allow_undefined_flag=unsupported
12418 always_export_symbols=yes
12419 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'
12420 # Note: this linker hardcodes the directories in LIBPATH if there
12421 # are no directories specified by -L.
12422 hardcode_minus_L=yes
12423 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12424 # Neither direct hardcoding nor static linking is supported with a
12425 # broken collect2.
12426 hardcode_direct=unsupported
12427 fi
12428 ;;
12429
12430 aix[4-9]*)
12431 if test "$host_cpu" = ia64; then
12432 # On IA64, the linker does run time linking by default, so we don't
12433 # have to do anything special.
12434 aix_use_runtimelinking=no
12435 exp_sym_flag='-Bexport'
12436 no_entry_flag=""
12437 else
12438 # If we're using GNU nm, then we don't want the "-C" option.
12439 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12440 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12441 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'
12442 else
12443 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'
12444 fi
12445 aix_use_runtimelinking=no
12446
12447 # Test if we are trying to use run time linking or normal
12448 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12449 # need to do runtime linking.
12450 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12451 for ld_flag in $LDFLAGS; do
12452 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12453 aix_use_runtimelinking=yes
12454 break
12455 fi
12456 done
12457 ;;
12458 esac
12459
12460 exp_sym_flag='-bexport'
12461 no_entry_flag='-bnoentry'
12462 fi
12463
12464 # When large executables or shared objects are built, AIX ld can
12465 # have problems creating the table of contents. If linking a library
12466 # or program results in "error TOC overflow" add -mminimal-toc to
12467 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12468 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12469
12470 archive_cmds=''
12471 hardcode_direct=yes
12472 hardcode_direct_absolute=yes
12473 hardcode_libdir_separator=':'
12474 link_all_deplibs=yes
12475 file_list_spec='${wl}-f,'
12476
12477 if test "$GCC" = yes; then
12478 case $host_os in aix4.[012]|aix4.[012].*)
12479 # We only want to do this on AIX 4.2 and lower, the check
12480 # below for broken collect2 doesn't work under 4.3+
12481 collect2name=`${CC} -print-prog-name=collect2`
12482 if test -f "$collect2name" &&
12483 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12484 then
12485 # We have reworked collect2
12486 :
12487 else
12488 # We have old collect2
12489 hardcode_direct=unsupported
12490 # It fails to find uninstalled libraries when the uninstalled
12491 # path is not listed in the libpath. Setting hardcode_minus_L
12492 # to unsupported forces relinking
12493 hardcode_minus_L=yes
12494 hardcode_libdir_flag_spec='-L$libdir'
12495 hardcode_libdir_separator=
12496 fi
12497 ;;
12498 esac
12499 shared_flag='-shared'
12500 if test "$aix_use_runtimelinking" = yes; then
12501 shared_flag="$shared_flag "'${wl}-G'
12502 fi
12503 else
12504 # not using gcc
12505 if test "$host_cpu" = ia64; then
12506 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12507 # chokes on -Wl,-G. The following line is correct:
12508 shared_flag='-G'
12509 else
12510 if test "$aix_use_runtimelinking" = yes; then
12511 shared_flag='${wl}-G'
12512 else
12513 shared_flag='${wl}-bM:SRE'
12514 fi
12515 fi
12516 fi
12517
12518 export_dynamic_flag_spec='${wl}-bexpall'
12519 # It seems that -bexpall does not export symbols beginning with
12520 # underscore (_), so it is better to generate a list of symbols to export.
12521 always_export_symbols=yes
12522 if test "$aix_use_runtimelinking" = yes; then
12523 # Warning - without using the other runtime loading flags (-brtl),
12524 # -berok will link without error, but may produce a broken library.
12525 allow_undefined_flag='-berok'
12526 # Determine the default libpath from the value encoded in an
12527 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012529/* end confdefs.h. */
12530
12531int
12532main ()
12533{
12534
12535 ;
12536 return 0;
12537}
12538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012539if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012540
12541lt_aix_libpath_sed='
12542 /Import File Strings/,/^$/ {
12543 /^0/ {
12544 s/^0 *\(.*\)$/\1/
12545 p
12546 }
12547 }'
12548aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12549# Check for a 64-bit object if we didn't find anything.
12550if test -z "$aix_libpath"; then
12551 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12552fi
cristy3ed852e2009-09-05 21:47:34 +000012553fi
cristy8b350f62009-11-15 23:12:43 +000012554rm -f core conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012556if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12557
12558 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12559 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"
12560 else
12561 if test "$host_cpu" = ia64; then
12562 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12563 allow_undefined_flag="-z nodefs"
12564 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"
12565 else
12566 # Determine the default libpath from the value encoded in an
12567 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012569/* end confdefs.h. */
12570
12571int
12572main ()
12573{
12574
12575 ;
12576 return 0;
12577}
12578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012579if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012580
12581lt_aix_libpath_sed='
12582 /Import File Strings/,/^$/ {
12583 /^0/ {
12584 s/^0 *\(.*\)$/\1/
12585 p
12586 }
12587 }'
12588aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12589# Check for a 64-bit object if we didn't find anything.
12590if test -z "$aix_libpath"; then
12591 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12592fi
cristy3ed852e2009-09-05 21:47:34 +000012593fi
cristy8b350f62009-11-15 23:12:43 +000012594rm -f core conftest.err conftest.$ac_objext \
12595 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012596if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12597
12598 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12599 # Warning - without using the other run time loading flags,
12600 # -berok will link without error, but may produce a broken library.
12601 no_undefined_flag=' ${wl}-bernotok'
12602 allow_undefined_flag=' ${wl}-berok'
12603 # Exported symbols can be pulled into shared objects from archives
12604 whole_archive_flag_spec='$convenience'
12605 archive_cmds_need_lc=yes
12606 # This is similar to how AIX traditionally builds its shared libraries.
12607 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'
12608 fi
12609 fi
12610 ;;
12611
12612 amigaos*)
12613 case $host_cpu in
12614 powerpc)
12615 # see comment about AmigaOS4 .so support
12616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12617 archive_expsym_cmds=''
12618 ;;
12619 m68k)
12620 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)'
12621 hardcode_libdir_flag_spec='-L$libdir'
12622 hardcode_minus_L=yes
12623 ;;
12624 esac
12625 ;;
12626
12627 bsdi[45]*)
12628 export_dynamic_flag_spec=-rdynamic
12629 ;;
12630
12631 cygwin* | mingw* | pw32* | cegcc*)
12632 # When not using gcc, we currently assume that we are using
12633 # Microsoft Visual C++.
12634 # hardcode_libdir_flag_spec is actually meaningless, as there is
12635 # no search path for DLLs.
12636 hardcode_libdir_flag_spec=' '
12637 allow_undefined_flag=unsupported
12638 # Tell ltmain to make .lib files, not .a files.
12639 libext=lib
12640 # Tell ltmain to make .dll files, not .so files.
12641 shrext_cmds=".dll"
12642 # FIXME: Setting linknames here is a bad hack.
12643 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12644 # The linker will automatically build a .lib file if we build a DLL.
12645 old_archive_from_new_cmds='true'
12646 # FIXME: Should let the user specify the lib program.
12647 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12648 fix_srcfile_path='`cygpath -w "$srcfile"`'
12649 enable_shared_with_static_runtimes=yes
12650 ;;
12651
12652 darwin* | rhapsody*)
12653
12654
12655 archive_cmds_need_lc=no
12656 hardcode_direct=no
12657 hardcode_automatic=yes
12658 hardcode_shlibpath_var=unsupported
12659 whole_archive_flag_spec=''
12660 link_all_deplibs=yes
12661 allow_undefined_flag="$_lt_dar_allow_undefined"
12662 case $cc_basename in
12663 ifort*) _lt_dar_can_shared=yes ;;
12664 *) _lt_dar_can_shared=$GCC ;;
12665 esac
12666 if test "$_lt_dar_can_shared" = "yes"; then
12667 output_verbose_link_cmd=echo
12668 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12669 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12670 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}"
12671 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}"
12672
12673 else
12674 ld_shlibs=no
12675 fi
12676
12677 ;;
12678
12679 dgux*)
12680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12681 hardcode_libdir_flag_spec='-L$libdir'
12682 hardcode_shlibpath_var=no
12683 ;;
12684
12685 freebsd1*)
12686 ld_shlibs=no
12687 ;;
12688
12689 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12690 # support. Future versions do this automatically, but an explicit c++rt0.o
12691 # does not break anything, and helps significantly (at the cost of a little
12692 # extra space).
12693 freebsd2.2*)
12694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12695 hardcode_libdir_flag_spec='-R$libdir'
12696 hardcode_direct=yes
12697 hardcode_shlibpath_var=no
12698 ;;
12699
12700 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12701 freebsd2*)
12702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12703 hardcode_direct=yes
12704 hardcode_minus_L=yes
12705 hardcode_shlibpath_var=no
12706 ;;
12707
12708 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12709 freebsd* | dragonfly*)
12710 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12711 hardcode_libdir_flag_spec='-R$libdir'
12712 hardcode_direct=yes
12713 hardcode_shlibpath_var=no
12714 ;;
12715
12716 hpux9*)
12717 if test "$GCC" = yes; then
12718 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'
12719 else
12720 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'
12721 fi
12722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12723 hardcode_libdir_separator=:
12724 hardcode_direct=yes
12725
12726 # hardcode_minus_L: Not really in the search PATH,
12727 # but as the default location of the library.
12728 hardcode_minus_L=yes
12729 export_dynamic_flag_spec='${wl}-E'
12730 ;;
12731
12732 hpux10*)
12733 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12734 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12735 else
12736 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12737 fi
12738 if test "$with_gnu_ld" = no; then
12739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12740 hardcode_libdir_flag_spec_ld='+b $libdir'
12741 hardcode_libdir_separator=:
12742 hardcode_direct=yes
12743 hardcode_direct_absolute=yes
12744 export_dynamic_flag_spec='${wl}-E'
12745 # hardcode_minus_L: Not really in the search PATH,
12746 # but as the default location of the library.
12747 hardcode_minus_L=yes
12748 fi
12749 ;;
12750
12751 hpux11*)
12752 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12753 case $host_cpu in
12754 hppa*64*)
12755 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12756 ;;
12757 ia64*)
12758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12759 ;;
12760 *)
12761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12762 ;;
12763 esac
12764 else
12765 case $host_cpu in
12766 hppa*64*)
12767 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12768 ;;
12769 ia64*)
12770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12771 ;;
12772 *)
12773 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12774 ;;
12775 esac
12776 fi
12777 if test "$with_gnu_ld" = no; then
12778 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12779 hardcode_libdir_separator=:
12780
12781 case $host_cpu in
12782 hppa*64*|ia64*)
12783 hardcode_direct=no
12784 hardcode_shlibpath_var=no
12785 ;;
12786 *)
12787 hardcode_direct=yes
12788 hardcode_direct_absolute=yes
12789 export_dynamic_flag_spec='${wl}-E'
12790
12791 # hardcode_minus_L: Not really in the search PATH,
12792 # but as the default location of the library.
12793 hardcode_minus_L=yes
12794 ;;
12795 esac
12796 fi
12797 ;;
12798
12799 irix5* | irix6* | nonstopux*)
12800 if test "$GCC" = yes; then
12801 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'
12802 # Try to use the -exported_symbol ld option, if it does not
12803 # work, assume that -exports_file does not work either and
12804 # implicitly export all symbols.
12805 save_LDFLAGS="$LDFLAGS"
12806 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000012807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000012809int foo(void) {}
12810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012811if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012812 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'
12813
cristy3ed852e2009-09-05 21:47:34 +000012814fi
cristy8b350f62009-11-15 23:12:43 +000012815rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012817 LDFLAGS="$save_LDFLAGS"
12818 else
12819 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'
12820 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'
12821 fi
12822 archive_cmds_need_lc='no'
12823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12824 hardcode_libdir_separator=:
12825 inherit_rpath=yes
12826 link_all_deplibs=yes
12827 ;;
12828
12829 netbsd*)
12830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12832 else
12833 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12834 fi
12835 hardcode_libdir_flag_spec='-R$libdir'
12836 hardcode_direct=yes
12837 hardcode_shlibpath_var=no
12838 ;;
12839
12840 newsos6)
12841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12842 hardcode_direct=yes
12843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12844 hardcode_libdir_separator=:
12845 hardcode_shlibpath_var=no
12846 ;;
12847
12848 *nto* | *qnx*)
12849 ;;
12850
12851 openbsd*)
12852 if test -f /usr/libexec/ld.so; then
12853 hardcode_direct=yes
12854 hardcode_shlibpath_var=no
12855 hardcode_direct_absolute=yes
12856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12857 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12858 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12859 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12860 export_dynamic_flag_spec='${wl}-E'
12861 else
12862 case $host_os in
12863 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12865 hardcode_libdir_flag_spec='-R$libdir'
12866 ;;
12867 *)
12868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12869 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12870 ;;
12871 esac
12872 fi
12873 else
12874 ld_shlibs=no
12875 fi
12876 ;;
12877
12878 os2*)
12879 hardcode_libdir_flag_spec='-L$libdir'
12880 hardcode_minus_L=yes
12881 allow_undefined_flag=unsupported
12882 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'
12883 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12884 ;;
12885
12886 osf3*)
12887 if test "$GCC" = yes; then
12888 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12889 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'
12890 else
12891 allow_undefined_flag=' -expect_unresolved \*'
12892 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'
12893 fi
12894 archive_cmds_need_lc='no'
12895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12896 hardcode_libdir_separator=:
12897 ;;
12898
12899 osf4* | osf5*) # as osf3* with the addition of -msym flag
12900 if test "$GCC" = yes; then
12901 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12902 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'
12903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12904 else
12905 allow_undefined_flag=' -expect_unresolved \*'
12906 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'
12907 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~
12908 $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'
12909
12910 # Both c and cxx compiler support -rpath directly
12911 hardcode_libdir_flag_spec='-rpath $libdir'
12912 fi
12913 archive_cmds_need_lc='no'
12914 hardcode_libdir_separator=:
12915 ;;
12916
12917 solaris*)
12918 no_undefined_flag=' -z defs'
12919 if test "$GCC" = yes; then
12920 wlarc='${wl}'
12921 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12922 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12923 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12924 else
12925 case `$CC -V 2>&1` in
12926 *"Compilers 5.0"*)
12927 wlarc=''
12928 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12929 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12930 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12931 ;;
12932 *)
12933 wlarc='${wl}'
12934 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12936 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12937 ;;
12938 esac
12939 fi
12940 hardcode_libdir_flag_spec='-R$libdir'
12941 hardcode_shlibpath_var=no
12942 case $host_os in
12943 solaris2.[0-5] | solaris2.[0-5].*) ;;
12944 *)
12945 # The compiler driver will combine and reorder linker options,
12946 # but understands `-z linker_flag'. GCC discards it without `$wl',
12947 # but is careful enough not to reorder.
12948 # Supported since Solaris 2.6 (maybe 2.5.1?)
12949 if test "$GCC" = yes; then
12950 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12951 else
12952 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12953 fi
12954 ;;
12955 esac
12956 link_all_deplibs=yes
12957 ;;
12958
12959 sunos4*)
12960 if test "x$host_vendor" = xsequent; then
12961 # Use $CC to link under sequent, because it throws in some extra .o
12962 # files that make .init and .fini sections work.
12963 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12964 else
12965 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12966 fi
12967 hardcode_libdir_flag_spec='-L$libdir'
12968 hardcode_direct=yes
12969 hardcode_minus_L=yes
12970 hardcode_shlibpath_var=no
12971 ;;
12972
12973 sysv4)
12974 case $host_vendor in
12975 sni)
12976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12977 hardcode_direct=yes # is this really true???
12978 ;;
12979 siemens)
12980 ## LD is ld it makes a PLAMLIB
12981 ## CC just makes a GrossModule.
12982 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12983 reload_cmds='$CC -r -o $output$reload_objs'
12984 hardcode_direct=no
12985 ;;
12986 motorola)
12987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12988 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12989 ;;
12990 esac
12991 runpath_var='LD_RUN_PATH'
12992 hardcode_shlibpath_var=no
12993 ;;
12994
12995 sysv4.3*)
12996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12997 hardcode_shlibpath_var=no
12998 export_dynamic_flag_spec='-Bexport'
12999 ;;
13000
13001 sysv4*MP*)
13002 if test -d /usr/nec; then
13003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13004 hardcode_shlibpath_var=no
13005 runpath_var=LD_RUN_PATH
13006 hardcode_runpath_var=yes
13007 ld_shlibs=yes
13008 fi
13009 ;;
13010
13011 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13012 no_undefined_flag='${wl}-z,text'
13013 archive_cmds_need_lc=no
13014 hardcode_shlibpath_var=no
13015 runpath_var='LD_RUN_PATH'
13016
13017 if test "$GCC" = yes; then
13018 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13019 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13020 else
13021 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13022 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13023 fi
13024 ;;
13025
13026 sysv5* | sco3.2v5* | sco5v6*)
13027 # Note: We can NOT use -z defs as we might desire, because we do not
13028 # link with -lc, and that would cause any symbols used from libc to
13029 # always be unresolved, which means just about no library would
13030 # ever link correctly. If we're not using GNU ld we use -z text
13031 # though, which does catch some bad symbols but isn't as heavy-handed
13032 # as -z defs.
13033 no_undefined_flag='${wl}-z,text'
13034 allow_undefined_flag='${wl}-z,nodefs'
13035 archive_cmds_need_lc=no
13036 hardcode_shlibpath_var=no
13037 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13038 hardcode_libdir_separator=':'
13039 link_all_deplibs=yes
13040 export_dynamic_flag_spec='${wl}-Bexport'
13041 runpath_var='LD_RUN_PATH'
13042
13043 if test "$GCC" = yes; then
13044 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13045 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13046 else
13047 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13048 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13049 fi
13050 ;;
13051
13052 uts4*)
13053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13054 hardcode_libdir_flag_spec='-L$libdir'
13055 hardcode_shlibpath_var=no
13056 ;;
13057
13058 *)
13059 ld_shlibs=no
13060 ;;
13061 esac
13062
13063 if test x$host_vendor = xsni; then
13064 case $host in
13065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13066 export_dynamic_flag_spec='${wl}-Blargedynsym'
13067 ;;
13068 esac
13069 fi
13070 fi
13071
cristy8b350f62009-11-15 23:12:43 +000013072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000013073$as_echo "$ld_shlibs" >&6; }
13074test "$ld_shlibs" = no && can_build_shared=no
13075
13076with_gnu_ld=$with_gnu_ld
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092#
13093# Do we need to explicitly link libc?
13094#
13095case "x$archive_cmds_need_lc" in
13096x|xyes)
13097 # Assume -lc should be added
13098 archive_cmds_need_lc=yes
13099
13100 if test "$enable_shared" = yes && test "$GCC" = yes; then
13101 case $archive_cmds in
13102 *'~'*)
13103 # FIXME: we may have to deal with multi-command sequences.
13104 ;;
13105 '$CC '*)
13106 # Test whether the compiler implicitly links with -lc since on some
13107 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13108 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000013109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000013110$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13111 $RM conftest*
13112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13113
cristy8b350f62009-11-15 23:12:43 +000013114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000013115 (eval $ac_compile) 2>&5
13116 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13118 test $ac_status = 0; } 2>conftest.err; then
cristy3ed852e2009-09-05 21:47:34 +000013119 soname=conftest
13120 lib=conftest
13121 libobjs=conftest.$ac_objext
13122 deplibs=
13123 wl=$lt_prog_compiler_wl
13124 pic_flag=$lt_prog_compiler_pic
13125 compiler_flags=-v
13126 linker_flags=-v
13127 verstring=
13128 output_objdir=.
13129 libname=conftest
13130 lt_save_allow_undefined_flag=$allow_undefined_flag
13131 allow_undefined_flag=
cristy8b350f62009-11-15 23:12:43 +000013132 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 +000013133 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13134 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13136 test $ac_status = 0; }
cristy3ed852e2009-09-05 21:47:34 +000013137 then
13138 archive_cmds_need_lc=no
13139 else
13140 archive_cmds_need_lc=yes
13141 fi
13142 allow_undefined_flag=$lt_save_allow_undefined_flag
13143 else
13144 cat conftest.err 1>&5
13145 fi
13146 $RM conftest*
cristy8b350f62009-11-15 23:12:43 +000013147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
cristy3ed852e2009-09-05 21:47:34 +000013148$as_echo "$archive_cmds_need_lc" >&6; }
13149 ;;
13150 esac
13151 fi
13152 ;;
13153esac
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
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
cristy8b350f62009-11-15 23:12:43 +000013311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000013312$as_echo_n "checking dynamic linker characteristics... " >&6; }
13313
13314if test "$GCC" = yes; then
13315 case $host_os in
13316 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13317 *) lt_awk_arg="/^libraries:/" ;;
13318 esac
13319 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13320 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13321 # if the path contains ";" then we assume it to be the separator
13322 # otherwise default to the standard path separator (i.e. ":") - it is
13323 # assumed that no part of a normal pathname contains ";" but that should
13324 # okay in the real world where ";" in dirpaths is itself problematic.
13325 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13326 else
13327 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13328 fi
13329 # Ok, now we have the path, separated by spaces, we can step through it
13330 # and add multilib dir if necessary.
13331 lt_tmp_lt_search_path_spec=
13332 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13333 for lt_sys_path in $lt_search_path_spec; do
13334 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13335 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13336 else
13337 test -d "$lt_sys_path" && \
13338 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13339 fi
13340 done
13341 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13342BEGIN {RS=" "; FS="/|\n";} {
13343 lt_foo="";
13344 lt_count=0;
13345 for (lt_i = NF; lt_i > 0; lt_i--) {
13346 if ($lt_i != "" && $lt_i != ".") {
13347 if ($lt_i == "..") {
13348 lt_count++;
13349 } else {
13350 if (lt_count == 0) {
13351 lt_foo="/" $lt_i lt_foo;
13352 } else {
13353 lt_count--;
13354 }
13355 }
13356 }
13357 }
13358 if (lt_foo != "") { lt_freq[lt_foo]++; }
13359 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13360}'`
13361 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13362else
13363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13364fi
13365library_names_spec=
13366libname_spec='lib$name'
13367soname_spec=
13368shrext_cmds=".so"
13369postinstall_cmds=
13370postuninstall_cmds=
13371finish_cmds=
13372finish_eval=
13373shlibpath_var=
13374shlibpath_overrides_runpath=unknown
13375version_type=none
13376dynamic_linker="$host_os ld.so"
13377sys_lib_dlsearch_path_spec="/lib /usr/lib"
13378need_lib_prefix=unknown
13379hardcode_into_libs=no
13380
13381# when you set need_version to no, make sure it does not cause -set_version
13382# flags to be left without arguments
13383need_version=unknown
13384
13385case $host_os in
13386aix3*)
13387 version_type=linux
13388 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13389 shlibpath_var=LIBPATH
13390
13391 # AIX 3 has no versioning support, so we append a major version to the name.
13392 soname_spec='${libname}${release}${shared_ext}$major'
13393 ;;
13394
13395aix[4-9]*)
13396 version_type=linux
13397 need_lib_prefix=no
13398 need_version=no
13399 hardcode_into_libs=yes
13400 if test "$host_cpu" = ia64; then
13401 # AIX 5 supports IA64
13402 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13403 shlibpath_var=LD_LIBRARY_PATH
13404 else
13405 # With GCC up to 2.95.x, collect2 would create an import file
13406 # for dependence libraries. The import file would start with
13407 # the line `#! .'. This would cause the generated library to
13408 # depend on `.', always an invalid library. This was fixed in
13409 # development snapshots of GCC prior to 3.0.
13410 case $host_os in
13411 aix4 | aix4.[01] | aix4.[01].*)
13412 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13413 echo ' yes '
13414 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13415 :
13416 else
13417 can_build_shared=no
13418 fi
13419 ;;
13420 esac
13421 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13422 # soname into executable. Probably we can add versioning support to
13423 # collect2, so additional links can be useful in future.
13424 if test "$aix_use_runtimelinking" = yes; then
13425 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13426 # instead of lib<name>.a to let people know that these are not
13427 # typical AIX shared libraries.
13428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13429 else
13430 # We preserve .a as extension for shared libraries through AIX4.2
13431 # and later when we are not doing run time linking.
13432 library_names_spec='${libname}${release}.a $libname.a'
13433 soname_spec='${libname}${release}${shared_ext}$major'
13434 fi
13435 shlibpath_var=LIBPATH
13436 fi
13437 ;;
13438
13439amigaos*)
13440 case $host_cpu in
13441 powerpc)
13442 # Since July 2007 AmigaOS4 officially supports .so libraries.
13443 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13445 ;;
13446 m68k)
13447 library_names_spec='$libname.ixlibrary $libname.a'
13448 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13449 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'
13450 ;;
13451 esac
13452 ;;
13453
13454beos*)
13455 library_names_spec='${libname}${shared_ext}'
13456 dynamic_linker="$host_os ld.so"
13457 shlibpath_var=LIBRARY_PATH
13458 ;;
13459
13460bsdi[45]*)
13461 version_type=linux
13462 need_version=no
13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464 soname_spec='${libname}${release}${shared_ext}$major'
13465 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13466 shlibpath_var=LD_LIBRARY_PATH
13467 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13468 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13469 # the default ld.so.conf also contains /usr/contrib/lib and
13470 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13471 # libtool to hard-code these into programs
13472 ;;
13473
13474cygwin* | mingw* | pw32* | cegcc*)
13475 version_type=windows
13476 shrext_cmds=".dll"
13477 need_version=no
13478 need_lib_prefix=no
13479
13480 case $GCC,$host_os in
13481 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13482 library_names_spec='$libname.dll.a'
13483 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13484 postinstall_cmds='base_file=`basename \${file}`~
13485 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13486 dldir=$destdir/`dirname \$dlpath`~
13487 test -d \$dldir || mkdir -p \$dldir~
13488 $install_prog $dir/$dlname \$dldir/$dlname~
13489 chmod a+x \$dldir/$dlname~
13490 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13491 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13492 fi'
13493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13494 dlpath=$dir/\$dldll~
13495 $RM \$dlpath'
13496 shlibpath_overrides_runpath=yes
13497
13498 case $host_os in
13499 cygwin*)
13500 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13501 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13502 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13503 ;;
13504 mingw* | cegcc*)
13505 # MinGW DLLs use traditional 'lib' prefix
13506 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13507 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13508 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13509 # It is most probably a Windows format PATH printed by
13510 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13511 # path with ; separators, and with drive letters. We can handle the
13512 # drive letters (cygwin fileutils understands them), so leave them,
13513 # especially as we might pass files found there to a mingw objdump,
13514 # which wouldn't understand a cygwinified path. Ahh.
13515 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13516 else
13517 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13518 fi
13519 ;;
13520 pw32*)
13521 # pw32 DLLs use 'pw' prefix rather than 'lib'
13522 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13523 ;;
13524 esac
13525 ;;
13526
13527 *)
13528 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13529 ;;
13530 esac
13531 dynamic_linker='Win32 ld.exe'
13532 # FIXME: first we should search . and the directory the executable is in
13533 shlibpath_var=PATH
13534 ;;
13535
13536darwin* | rhapsody*)
13537 dynamic_linker="$host_os dyld"
13538 version_type=darwin
13539 need_lib_prefix=no
13540 need_version=no
13541 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13542 soname_spec='${libname}${release}${major}$shared_ext'
13543 shlibpath_overrides_runpath=yes
13544 shlibpath_var=DYLD_LIBRARY_PATH
13545 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13546
13547 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13548 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13549 ;;
13550
13551dgux*)
13552 version_type=linux
13553 need_lib_prefix=no
13554 need_version=no
13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13556 soname_spec='${libname}${release}${shared_ext}$major'
13557 shlibpath_var=LD_LIBRARY_PATH
13558 ;;
13559
13560freebsd1*)
13561 dynamic_linker=no
13562 ;;
13563
13564freebsd* | dragonfly*)
13565 # DragonFly does not have aout. When/if they implement a new
13566 # versioning mechanism, adjust this.
13567 if test -x /usr/bin/objformat; then
13568 objformat=`/usr/bin/objformat`
13569 else
13570 case $host_os in
13571 freebsd[123]*) objformat=aout ;;
13572 *) objformat=elf ;;
13573 esac
13574 fi
13575 version_type=freebsd-$objformat
13576 case $version_type in
13577 freebsd-elf*)
13578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13579 need_version=no
13580 need_lib_prefix=no
13581 ;;
13582 freebsd-*)
13583 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13584 need_version=yes
13585 ;;
13586 esac
13587 shlibpath_var=LD_LIBRARY_PATH
13588 case $host_os in
13589 freebsd2*)
13590 shlibpath_overrides_runpath=yes
13591 ;;
13592 freebsd3.[01]* | freebsdelf3.[01]*)
13593 shlibpath_overrides_runpath=yes
13594 hardcode_into_libs=yes
13595 ;;
13596 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13597 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13598 shlibpath_overrides_runpath=no
13599 hardcode_into_libs=yes
13600 ;;
13601 *) # from 4.6 on, and DragonFly
13602 shlibpath_overrides_runpath=yes
13603 hardcode_into_libs=yes
13604 ;;
13605 esac
13606 ;;
13607
13608gnu*)
13609 version_type=linux
13610 need_lib_prefix=no
13611 need_version=no
13612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13613 soname_spec='${libname}${release}${shared_ext}$major'
13614 shlibpath_var=LD_LIBRARY_PATH
13615 hardcode_into_libs=yes
13616 ;;
13617
13618hpux9* | hpux10* | hpux11*)
13619 # Give a soname corresponding to the major version so that dld.sl refuses to
13620 # link against other versions.
13621 version_type=sunos
13622 need_lib_prefix=no
13623 need_version=no
13624 case $host_cpu in
13625 ia64*)
13626 shrext_cmds='.so'
13627 hardcode_into_libs=yes
13628 dynamic_linker="$host_os dld.so"
13629 shlibpath_var=LD_LIBRARY_PATH
13630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13632 soname_spec='${libname}${release}${shared_ext}$major'
13633 if test "X$HPUX_IA64_MODE" = X32; then
13634 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13635 else
13636 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13637 fi
13638 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13639 ;;
13640 hppa*64*)
13641 shrext_cmds='.sl'
13642 hardcode_into_libs=yes
13643 dynamic_linker="$host_os dld.sl"
13644 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13645 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13647 soname_spec='${libname}${release}${shared_ext}$major'
13648 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13649 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13650 ;;
13651 *)
13652 shrext_cmds='.sl'
13653 dynamic_linker="$host_os dld.sl"
13654 shlibpath_var=SHLIB_PATH
13655 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13657 soname_spec='${libname}${release}${shared_ext}$major'
13658 ;;
13659 esac
13660 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13661 postinstall_cmds='chmod 555 $lib'
13662 ;;
13663
13664interix[3-9]*)
13665 version_type=linux
13666 need_lib_prefix=no
13667 need_version=no
13668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13669 soname_spec='${libname}${release}${shared_ext}$major'
13670 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13671 shlibpath_var=LD_LIBRARY_PATH
13672 shlibpath_overrides_runpath=no
13673 hardcode_into_libs=yes
13674 ;;
13675
13676irix5* | irix6* | nonstopux*)
13677 case $host_os in
13678 nonstopux*) version_type=nonstopux ;;
13679 *)
13680 if test "$lt_cv_prog_gnu_ld" = yes; then
13681 version_type=linux
13682 else
13683 version_type=irix
13684 fi ;;
13685 esac
13686 need_lib_prefix=no
13687 need_version=no
13688 soname_spec='${libname}${release}${shared_ext}$major'
13689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13690 case $host_os in
13691 irix5* | nonstopux*)
13692 libsuff= shlibsuff=
13693 ;;
13694 *)
13695 case $LD in # libtool.m4 will add one of these switches to LD
13696 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13697 libsuff= shlibsuff= libmagic=32-bit;;
13698 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13699 libsuff=32 shlibsuff=N32 libmagic=N32;;
13700 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13701 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13702 *) libsuff= shlibsuff= libmagic=never-match;;
13703 esac
13704 ;;
13705 esac
13706 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13707 shlibpath_overrides_runpath=no
13708 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13709 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13710 hardcode_into_libs=yes
13711 ;;
13712
13713# No shared lib support for Linux oldld, aout, or coff.
13714linux*oldld* | linux*aout* | linux*coff*)
13715 dynamic_linker=no
13716 ;;
13717
13718# This must be Linux ELF.
13719linux* | k*bsd*-gnu)
13720 version_type=linux
13721 need_lib_prefix=no
13722 need_version=no
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13724 soname_spec='${libname}${release}${shared_ext}$major'
13725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13726 shlibpath_var=LD_LIBRARY_PATH
13727 shlibpath_overrides_runpath=no
13728 # Some binutils ld are patched to set DT_RUNPATH
13729 save_LDFLAGS=$LDFLAGS
13730 save_libdir=$libdir
13731 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13732 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
cristy8b350f62009-11-15 23:12:43 +000013733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013734/* end confdefs.h. */
13735
13736int
13737main ()
13738{
13739
13740 ;
13741 return 0;
13742}
13743_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013744if ac_fn_c_try_link "$LINENO"; then :
13745 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy3ed852e2009-09-05 21:47:34 +000013746 shlibpath_overrides_runpath=yes
13747fi
cristy3ed852e2009-09-05 21:47:34 +000013748fi
cristy8b350f62009-11-15 23:12:43 +000013749rm -f core conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013751 LDFLAGS=$save_LDFLAGS
13752 libdir=$save_libdir
13753
13754 # This implies no fast_install, which is unacceptable.
13755 # Some rework will be needed to allow for fast_install
13756 # before this can be enabled.
13757 hardcode_into_libs=yes
13758
13759 # Add ABI-specific directories to the system library path.
13760 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13761
13762 # Append ld.so.conf contents to the search path
13763 if test -f /etc/ld.so.conf; then
13764 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' ' '`
13765 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13766 fi
13767
13768 # We used to test for /lib/ld.so.1 and disable shared libraries on
13769 # powerpc, because MkLinux only supported shared libraries with the
13770 # GNU dynamic linker. Since this was broken with cross compilers,
13771 # most powerpc-linux boxes support dynamic linking these days and
13772 # people can always --disable-shared, the test was removed, and we
13773 # assume the GNU/Linux dynamic linker is in use.
13774 dynamic_linker='GNU/Linux ld.so'
13775 ;;
13776
13777netbsd*)
13778 version_type=sunos
13779 need_lib_prefix=no
13780 need_version=no
13781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13784 dynamic_linker='NetBSD (a.out) ld.so'
13785 else
13786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13787 soname_spec='${libname}${release}${shared_ext}$major'
13788 dynamic_linker='NetBSD ld.elf_so'
13789 fi
13790 shlibpath_var=LD_LIBRARY_PATH
13791 shlibpath_overrides_runpath=yes
13792 hardcode_into_libs=yes
13793 ;;
13794
13795newsos6)
13796 version_type=linux
13797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13798 shlibpath_var=LD_LIBRARY_PATH
13799 shlibpath_overrides_runpath=yes
13800 ;;
13801
13802*nto* | *qnx*)
13803 version_type=qnx
13804 need_lib_prefix=no
13805 need_version=no
13806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13807 soname_spec='${libname}${release}${shared_ext}$major'
13808 shlibpath_var=LD_LIBRARY_PATH
13809 shlibpath_overrides_runpath=no
13810 hardcode_into_libs=yes
13811 dynamic_linker='ldqnx.so'
13812 ;;
13813
13814openbsd*)
13815 version_type=sunos
13816 sys_lib_dlsearch_path_spec="/usr/lib"
13817 need_lib_prefix=no
13818 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13819 case $host_os in
13820 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13821 *) need_version=no ;;
13822 esac
13823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13825 shlibpath_var=LD_LIBRARY_PATH
13826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13827 case $host_os in
13828 openbsd2.[89] | openbsd2.[89].*)
13829 shlibpath_overrides_runpath=no
13830 ;;
13831 *)
13832 shlibpath_overrides_runpath=yes
13833 ;;
13834 esac
13835 else
13836 shlibpath_overrides_runpath=yes
13837 fi
13838 ;;
13839
13840os2*)
13841 libname_spec='$name'
13842 shrext_cmds=".dll"
13843 need_lib_prefix=no
13844 library_names_spec='$libname${shared_ext} $libname.a'
13845 dynamic_linker='OS/2 ld.exe'
13846 shlibpath_var=LIBPATH
13847 ;;
13848
13849osf3* | osf4* | osf5*)
13850 version_type=osf
13851 need_lib_prefix=no
13852 need_version=no
13853 soname_spec='${libname}${release}${shared_ext}$major'
13854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13855 shlibpath_var=LD_LIBRARY_PATH
13856 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13857 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13858 ;;
13859
13860rdos*)
13861 dynamic_linker=no
13862 ;;
13863
13864solaris*)
13865 version_type=linux
13866 need_lib_prefix=no
13867 need_version=no
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13869 soname_spec='${libname}${release}${shared_ext}$major'
13870 shlibpath_var=LD_LIBRARY_PATH
13871 shlibpath_overrides_runpath=yes
13872 hardcode_into_libs=yes
13873 # ldd complains unless libraries are executable
13874 postinstall_cmds='chmod +x $lib'
13875 ;;
13876
13877sunos4*)
13878 version_type=sunos
13879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13880 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13881 shlibpath_var=LD_LIBRARY_PATH
13882 shlibpath_overrides_runpath=yes
13883 if test "$with_gnu_ld" = yes; then
13884 need_lib_prefix=no
13885 fi
13886 need_version=yes
13887 ;;
13888
13889sysv4 | sysv4.3*)
13890 version_type=linux
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13892 soname_spec='${libname}${release}${shared_ext}$major'
13893 shlibpath_var=LD_LIBRARY_PATH
13894 case $host_vendor in
13895 sni)
13896 shlibpath_overrides_runpath=no
13897 need_lib_prefix=no
13898 runpath_var=LD_RUN_PATH
13899 ;;
13900 siemens)
13901 need_lib_prefix=no
13902 ;;
13903 motorola)
13904 need_lib_prefix=no
13905 need_version=no
13906 shlibpath_overrides_runpath=no
13907 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13908 ;;
13909 esac
13910 ;;
13911
13912sysv4*MP*)
13913 if test -d /usr/nec ;then
13914 version_type=linux
13915 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13916 soname_spec='$libname${shared_ext}.$major'
13917 shlibpath_var=LD_LIBRARY_PATH
13918 fi
13919 ;;
13920
13921sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13922 version_type=freebsd-elf
13923 need_lib_prefix=no
13924 need_version=no
13925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13926 soname_spec='${libname}${release}${shared_ext}$major'
13927 shlibpath_var=LD_LIBRARY_PATH
13928 shlibpath_overrides_runpath=yes
13929 hardcode_into_libs=yes
13930 if test "$with_gnu_ld" = yes; then
13931 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13932 else
13933 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13934 case $host_os in
13935 sco3.2v5*)
13936 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13937 ;;
13938 esac
13939 fi
13940 sys_lib_dlsearch_path_spec='/usr/lib'
13941 ;;
13942
13943tpf*)
13944 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13945 version_type=linux
13946 need_lib_prefix=no
13947 need_version=no
13948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949 shlibpath_var=LD_LIBRARY_PATH
13950 shlibpath_overrides_runpath=no
13951 hardcode_into_libs=yes
13952 ;;
13953
13954uts4*)
13955 version_type=linux
13956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13957 soname_spec='${libname}${release}${shared_ext}$major'
13958 shlibpath_var=LD_LIBRARY_PATH
13959 ;;
13960
13961*)
13962 dynamic_linker=no
13963 ;;
13964esac
cristy8b350f62009-11-15 23:12:43 +000013965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000013966$as_echo "$dynamic_linker" >&6; }
13967test "$dynamic_linker" = no && can_build_shared=no
13968
13969variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13970if test "$GCC" = yes; then
13971 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13972fi
13973
13974if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13975 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13976fi
13977if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13978 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13979fi
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
cristy8b350f62009-11-15 23:12:43 +000014067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014068$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14069hardcode_action=
14070if test -n "$hardcode_libdir_flag_spec" ||
14071 test -n "$runpath_var" ||
14072 test "X$hardcode_automatic" = "Xyes" ; then
14073
14074 # We can hardcode non-existent directories.
14075 if test "$hardcode_direct" != no &&
14076 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14077 # have to relink, otherwise we might link with an installed library
14078 # when we should be linking with a yet-to-be-installed one
14079 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14080 test "$hardcode_minus_L" != no; then
14081 # Linking always hardcodes the temporary library directory.
14082 hardcode_action=relink
14083 else
14084 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14085 hardcode_action=immediate
14086 fi
14087else
14088 # We cannot hardcode anything, or else we can only hardcode existing
14089 # directories.
14090 hardcode_action=unsupported
14091fi
cristy8b350f62009-11-15 23:12:43 +000014092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000014093$as_echo "$hardcode_action" >&6; }
14094
14095if test "$hardcode_action" = relink ||
14096 test "$inherit_rpath" = yes; then
14097 # Fast installation is not supported
14098 enable_fast_install=no
14099elif test "$shlibpath_overrides_runpath" = yes ||
14100 test "$enable_shared" = no; then
14101 # Fast installation is not necessary
14102 enable_fast_install=needless
14103fi
14104
14105
14106
14107
14108
14109
14110 if test "x$enable_dlopen" != xyes; then
14111 enable_dlopen=unknown
14112 enable_dlopen_self=unknown
14113 enable_dlopen_self_static=unknown
14114else
14115 lt_cv_dlopen=no
14116 lt_cv_dlopen_libs=
14117
14118 case $host_os in
14119 beos*)
14120 lt_cv_dlopen="load_add_on"
14121 lt_cv_dlopen_libs=
14122 lt_cv_dlopen_self=yes
14123 ;;
14124
14125 mingw* | pw32* | cegcc*)
14126 lt_cv_dlopen="LoadLibrary"
14127 lt_cv_dlopen_libs=
14128 ;;
14129
14130 cygwin*)
14131 lt_cv_dlopen="dlopen"
14132 lt_cv_dlopen_libs=
14133 ;;
14134
14135 darwin*)
14136 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000014137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014138$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014139if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014140 $as_echo_n "(cached) " >&6
14141else
14142 ac_check_lib_save_LIBS=$LIBS
14143LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014145/* end confdefs.h. */
14146
14147/* Override any GCC internal prototype to avoid an error.
14148 Use char because int might match the return type of a GCC
14149 builtin and then its argument prototype would still apply. */
14150#ifdef __cplusplus
14151extern "C"
14152#endif
14153char dlopen ();
14154int
14155main ()
14156{
14157return dlopen ();
14158 ;
14159 return 0;
14160}
14161_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014162if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014163 ac_cv_lib_dl_dlopen=yes
14164else
cristy8b350f62009-11-15 23:12:43 +000014165 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014166fi
cristy8b350f62009-11-15 23:12:43 +000014167rm -f core conftest.err conftest.$ac_objext \
14168 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014169LIBS=$ac_check_lib_save_LIBS
14170fi
cristy8b350f62009-11-15 23:12:43 +000014171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014172$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014173if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14175else
14176
14177 lt_cv_dlopen="dyld"
14178 lt_cv_dlopen_libs=
14179 lt_cv_dlopen_self=yes
14180
14181fi
14182
14183 ;;
14184
14185 *)
cristy8b350f62009-11-15 23:12:43 +000014186 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14187if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014188 lt_cv_dlopen="shl_load"
14189else
cristy8b350f62009-11-15 23:12:43 +000014190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014191$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014192if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014193 $as_echo_n "(cached) " >&6
14194else
14195 ac_check_lib_save_LIBS=$LIBS
14196LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014198/* end confdefs.h. */
14199
14200/* Override any GCC internal prototype to avoid an error.
14201 Use char because int might match the return type of a GCC
14202 builtin and then its argument prototype would still apply. */
14203#ifdef __cplusplus
14204extern "C"
14205#endif
14206char shl_load ();
14207int
14208main ()
14209{
14210return shl_load ();
14211 ;
14212 return 0;
14213}
14214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014216 ac_cv_lib_dld_shl_load=yes
14217else
cristy8b350f62009-11-15 23:12:43 +000014218 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000014219fi
cristy8b350f62009-11-15 23:12:43 +000014220rm -f core conftest.err conftest.$ac_objext \
14221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014222LIBS=$ac_check_lib_save_LIBS
14223fi
cristy8b350f62009-11-15 23:12:43 +000014224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000014225$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014226if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014227 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14228else
cristy8b350f62009-11-15 23:12:43 +000014229 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14230if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014231 lt_cv_dlopen="dlopen"
14232else
cristy8b350f62009-11-15 23:12:43 +000014233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014234$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014235if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014236 $as_echo_n "(cached) " >&6
14237else
14238 ac_check_lib_save_LIBS=$LIBS
14239LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014241/* end confdefs.h. */
14242
14243/* Override any GCC internal prototype to avoid an error.
14244 Use char because int might match the return type of a GCC
14245 builtin and then its argument prototype would still apply. */
14246#ifdef __cplusplus
14247extern "C"
14248#endif
14249char dlopen ();
14250int
14251main ()
14252{
14253return dlopen ();
14254 ;
14255 return 0;
14256}
14257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014258if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014259 ac_cv_lib_dl_dlopen=yes
14260else
cristy8b350f62009-11-15 23:12:43 +000014261 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014262fi
cristy8b350f62009-11-15 23:12:43 +000014263rm -f core conftest.err conftest.$ac_objext \
14264 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014265LIBS=$ac_check_lib_save_LIBS
14266fi
cristy8b350f62009-11-15 23:12:43 +000014267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014268$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014269if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14271else
cristy8b350f62009-11-15 23:12:43 +000014272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014273$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014274if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014275 $as_echo_n "(cached) " >&6
14276else
14277 ac_check_lib_save_LIBS=$LIBS
14278LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014280/* end confdefs.h. */
14281
14282/* Override any GCC internal prototype to avoid an error.
14283 Use char because int might match the return type of a GCC
14284 builtin and then its argument prototype would still apply. */
14285#ifdef __cplusplus
14286extern "C"
14287#endif
14288char dlopen ();
14289int
14290main ()
14291{
14292return dlopen ();
14293 ;
14294 return 0;
14295}
14296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014297if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014298 ac_cv_lib_svld_dlopen=yes
14299else
cristy8b350f62009-11-15 23:12:43 +000014300 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014301fi
cristy8b350f62009-11-15 23:12:43 +000014302rm -f core conftest.err conftest.$ac_objext \
14303 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014304LIBS=$ac_check_lib_save_LIBS
14305fi
cristy8b350f62009-11-15 23:12:43 +000014306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014307$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014308if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014309 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14310else
cristy8b350f62009-11-15 23:12:43 +000014311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014312$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014313if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014314 $as_echo_n "(cached) " >&6
14315else
14316 ac_check_lib_save_LIBS=$LIBS
14317LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014319/* end confdefs.h. */
14320
14321/* Override any GCC internal prototype to avoid an error.
14322 Use char because int might match the return type of a GCC
14323 builtin and then its argument prototype would still apply. */
14324#ifdef __cplusplus
14325extern "C"
14326#endif
14327char dld_link ();
14328int
14329main ()
14330{
14331return dld_link ();
14332 ;
14333 return 0;
14334}
14335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014336if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014337 ac_cv_lib_dld_dld_link=yes
14338else
cristy8b350f62009-11-15 23:12:43 +000014339 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000014340fi
cristy8b350f62009-11-15 23:12:43 +000014341rm -f core conftest.err conftest.$ac_objext \
14342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014343LIBS=$ac_check_lib_save_LIBS
14344fi
cristy8b350f62009-11-15 23:12:43 +000014345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000014346$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014347if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014348 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14349fi
14350
14351
14352fi
14353
14354
14355fi
14356
14357
14358fi
14359
14360
14361fi
14362
14363
14364fi
14365
14366 ;;
14367 esac
14368
14369 if test "x$lt_cv_dlopen" != xno; then
14370 enable_dlopen=yes
14371 else
14372 enable_dlopen=no
14373 fi
14374
14375 case $lt_cv_dlopen in
14376 dlopen)
14377 save_CPPFLAGS="$CPPFLAGS"
14378 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14379
14380 save_LDFLAGS="$LDFLAGS"
14381 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14382
14383 save_LIBS="$LIBS"
14384 LIBS="$lt_cv_dlopen_libs $LIBS"
14385
cristy8b350f62009-11-15 23:12:43 +000014386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014387$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014388if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014389 $as_echo_n "(cached) " >&6
14390else
14391 if test "$cross_compiling" = yes; then :
14392 lt_cv_dlopen_self=cross
14393else
14394 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14395 lt_status=$lt_dlunknown
14396 cat > conftest.$ac_ext <<_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014397#line 14397 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014398#include "confdefs.h"
14399
14400#if HAVE_DLFCN_H
14401#include <dlfcn.h>
14402#endif
14403
14404#include <stdio.h>
14405
14406#ifdef RTLD_GLOBAL
14407# define LT_DLGLOBAL RTLD_GLOBAL
14408#else
14409# ifdef DL_GLOBAL
14410# define LT_DLGLOBAL DL_GLOBAL
14411# else
14412# define LT_DLGLOBAL 0
14413# endif
14414#endif
14415
14416/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14417 find out it does not work in some platform. */
14418#ifndef LT_DLLAZY_OR_NOW
14419# ifdef RTLD_LAZY
14420# define LT_DLLAZY_OR_NOW RTLD_LAZY
14421# else
14422# ifdef DL_LAZY
14423# define LT_DLLAZY_OR_NOW DL_LAZY
14424# else
14425# ifdef RTLD_NOW
14426# define LT_DLLAZY_OR_NOW RTLD_NOW
14427# else
14428# ifdef DL_NOW
14429# define LT_DLLAZY_OR_NOW DL_NOW
14430# else
14431# define LT_DLLAZY_OR_NOW 0
14432# endif
14433# endif
14434# endif
14435# endif
14436#endif
14437
14438void fnord() { int i=42;}
14439int main ()
14440{
14441 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14442 int status = $lt_dlunknown;
14443
14444 if (self)
14445 {
14446 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14447 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14448 /* dlclose (self); */
14449 }
14450 else
14451 puts (dlerror ());
14452
14453 return status;
14454}
14455_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014457 (eval $ac_link) 2>&5
14458 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14460 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014461 (./conftest; exit; ) >&5 2>/dev/null
14462 lt_status=$?
14463 case x$lt_status in
14464 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14465 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14466 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14467 esac
14468 else :
14469 # compilation failed
14470 lt_cv_dlopen_self=no
14471 fi
14472fi
14473rm -fr conftest*
14474
14475
14476fi
cristy8b350f62009-11-15 23:12:43 +000014477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000014478$as_echo "$lt_cv_dlopen_self" >&6; }
14479
14480 if test "x$lt_cv_dlopen_self" = xyes; then
14481 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000014482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014483$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014484if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014485 $as_echo_n "(cached) " >&6
14486else
14487 if test "$cross_compiling" = yes; then :
14488 lt_cv_dlopen_self_static=cross
14489else
14490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14491 lt_status=$lt_dlunknown
14492 cat > conftest.$ac_ext <<_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014493#line 14493 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014494#include "confdefs.h"
14495
14496#if HAVE_DLFCN_H
14497#include <dlfcn.h>
14498#endif
14499
14500#include <stdio.h>
14501
14502#ifdef RTLD_GLOBAL
14503# define LT_DLGLOBAL RTLD_GLOBAL
14504#else
14505# ifdef DL_GLOBAL
14506# define LT_DLGLOBAL DL_GLOBAL
14507# else
14508# define LT_DLGLOBAL 0
14509# endif
14510#endif
14511
14512/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14513 find out it does not work in some platform. */
14514#ifndef LT_DLLAZY_OR_NOW
14515# ifdef RTLD_LAZY
14516# define LT_DLLAZY_OR_NOW RTLD_LAZY
14517# else
14518# ifdef DL_LAZY
14519# define LT_DLLAZY_OR_NOW DL_LAZY
14520# else
14521# ifdef RTLD_NOW
14522# define LT_DLLAZY_OR_NOW RTLD_NOW
14523# else
14524# ifdef DL_NOW
14525# define LT_DLLAZY_OR_NOW DL_NOW
14526# else
14527# define LT_DLLAZY_OR_NOW 0
14528# endif
14529# endif
14530# endif
14531# endif
14532#endif
14533
14534void fnord() { int i=42;}
14535int main ()
14536{
14537 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14538 int status = $lt_dlunknown;
14539
14540 if (self)
14541 {
14542 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14543 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14544 /* dlclose (self); */
14545 }
14546 else
14547 puts (dlerror ());
14548
14549 return status;
14550}
14551_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014553 (eval $ac_link) 2>&5
14554 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14556 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014557 (./conftest; exit; ) >&5 2>/dev/null
14558 lt_status=$?
14559 case x$lt_status in
14560 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14561 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14562 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14563 esac
14564 else :
14565 # compilation failed
14566 lt_cv_dlopen_self_static=no
14567 fi
14568fi
14569rm -fr conftest*
14570
14571
14572fi
cristy8b350f62009-11-15 23:12:43 +000014573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014574$as_echo "$lt_cv_dlopen_self_static" >&6; }
14575 fi
14576
14577 CPPFLAGS="$save_CPPFLAGS"
14578 LDFLAGS="$save_LDFLAGS"
14579 LIBS="$save_LIBS"
14580 ;;
14581 esac
14582
14583 case $lt_cv_dlopen_self in
14584 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14585 *) enable_dlopen_self=unknown ;;
14586 esac
14587
14588 case $lt_cv_dlopen_self_static in
14589 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14590 *) enable_dlopen_self_static=unknown ;;
14591 esac
14592fi
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610striplib=
14611old_striplib=
cristy8b350f62009-11-15 23:12:43 +000014612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000014613$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14614if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14615 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14616 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000014617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014618$as_echo "yes" >&6; }
14619else
14620# FIXME - insert some real tests, host_os isn't really good enough
14621 case $host_os in
14622 darwin*)
14623 if test -n "$STRIP" ; then
14624 striplib="$STRIP -x"
14625 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000014626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014627$as_echo "yes" >&6; }
14628 else
cristy8b350f62009-11-15 23:12:43 +000014629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014630$as_echo "no" >&6; }
14631 fi
14632 ;;
14633 *)
cristy8b350f62009-11-15 23:12:43 +000014634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014635$as_echo "no" >&6; }
14636 ;;
14637 esac
14638fi
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000014652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014653$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014655$as_echo "$can_build_shared" >&6; }
14656
cristy8b350f62009-11-15 23:12:43 +000014657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014658$as_echo_n "checking whether to build shared libraries... " >&6; }
14659 test "$can_build_shared" = "no" && enable_shared=no
14660
14661 # On AIX, shared libraries and static libraries use the same namespace, and
14662 # are all built from PIC.
14663 case $host_os in
14664 aix3*)
14665 test "$enable_shared" = yes && enable_static=no
14666 if test -n "$RANLIB"; then
14667 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14668 postinstall_cmds='$RANLIB $lib'
14669 fi
14670 ;;
14671
14672 aix[4-9]*)
14673 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14674 test "$enable_shared" = yes && enable_static=no
14675 fi
14676 ;;
14677 esac
cristy8b350f62009-11-15 23:12:43 +000014678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014679$as_echo "$enable_shared" >&6; }
14680
cristy8b350f62009-11-15 23:12:43 +000014681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014682$as_echo_n "checking whether to build static libraries... " >&6; }
14683 # Make sure either enable_shared or enable_static is yes.
14684 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000014685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014686$as_echo "$enable_static" >&6; }
14687
14688
14689
14690
14691fi
14692ac_ext=c
14693ac_cpp='$CPP $CPPFLAGS'
14694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14696ac_compiler_gnu=$ac_cv_c_compiler_gnu
14697
14698CC="$lt_save_CC"
14699
14700
14701ac_ext=cpp
14702ac_cpp='$CXXCPP $CPPFLAGS'
14703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14706
14707archive_cmds_need_lc_CXX=no
14708allow_undefined_flag_CXX=
14709always_export_symbols_CXX=no
14710archive_expsym_cmds_CXX=
14711compiler_needs_object_CXX=no
14712export_dynamic_flag_spec_CXX=
14713hardcode_direct_CXX=no
14714hardcode_direct_absolute_CXX=no
14715hardcode_libdir_flag_spec_CXX=
14716hardcode_libdir_flag_spec_ld_CXX=
14717hardcode_libdir_separator_CXX=
14718hardcode_minus_L_CXX=no
14719hardcode_shlibpath_var_CXX=unsupported
14720hardcode_automatic_CXX=no
14721inherit_rpath_CXX=no
14722module_cmds_CXX=
14723module_expsym_cmds_CXX=
14724link_all_deplibs_CXX=unknown
14725old_archive_cmds_CXX=$old_archive_cmds
14726no_undefined_flag_CXX=
14727whole_archive_flag_spec_CXX=
14728enable_shared_with_static_runtimes_CXX=no
14729
14730# Source file extension for C++ test sources.
14731ac_ext=cpp
14732
14733# Object file extension for compiled C++ test sources.
14734objext=o
14735objext_CXX=$objext
14736
14737# No sense in running all these tests if we already determined that
14738# the CXX compiler isn't working. Some variables (like enable_shared)
14739# are currently assumed to apply to all compilers on this platform,
14740# and will be corrupted by setting them based on a non-working compiler.
14741if test "$_lt_caught_CXX_error" != yes; then
14742 # Code to be used in simple compile tests
14743 lt_simple_compile_test_code="int some_variable = 0;"
14744
14745 # Code to be used in simple link tests
14746 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14747
14748 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14749
14750
14751
14752
14753
14754
14755# If no C compiler was specified, use CC.
14756LTCC=${LTCC-"$CC"}
14757
14758# If no C compiler flags were specified, use CFLAGS.
14759LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14760
14761# Allow CC to be a program name with arguments.
14762compiler=$CC
14763
14764
14765 # save warnings/boilerplate of simple test code
14766 ac_outfile=conftest.$ac_objext
14767echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14768eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14769_lt_compiler_boilerplate=`cat conftest.err`
14770$RM conftest*
14771
14772 ac_outfile=conftest.$ac_objext
14773echo "$lt_simple_link_test_code" >conftest.$ac_ext
14774eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14775_lt_linker_boilerplate=`cat conftest.err`
14776$RM -r conftest*
14777
14778
14779 # Allow CC to be a program name with arguments.
14780 lt_save_CC=$CC
14781 lt_save_LD=$LD
14782 lt_save_GCC=$GCC
14783 GCC=$GXX
14784 lt_save_with_gnu_ld=$with_gnu_ld
14785 lt_save_path_LD=$lt_cv_path_LD
14786 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14787 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14788 else
14789 $as_unset lt_cv_prog_gnu_ld
14790 fi
14791 if test -n "${lt_cv_path_LDCXX+set}"; then
14792 lt_cv_path_LD=$lt_cv_path_LDCXX
14793 else
14794 $as_unset lt_cv_path_LD
14795 fi
14796 test -z "${LDCXX+set}" || LD=$LDCXX
14797 CC=${CXX-"c++"}
14798 compiler=$CC
14799 compiler_CXX=$CC
14800 for cc_temp in $compiler""; do
14801 case $cc_temp in
14802 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14803 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14804 \-*) ;;
14805 *) break;;
14806 esac
14807done
14808cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14809
14810
14811 if test -n "$compiler"; then
14812 # We don't want -fno-exception when compiling C++ code, so set the
14813 # no_builtin_flag separately
14814 if test "$GXX" = yes; then
14815 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14816 else
14817 lt_prog_compiler_no_builtin_flag_CXX=
14818 fi
14819
14820 if test "$GXX" = yes; then
14821 # Set up default GNU C++ configuration
14822
14823
14824
14825# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000014826if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014827 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14828else
14829 with_gnu_ld=no
14830fi
14831
14832ac_prog=ld
14833if test "$GCC" = yes; then
14834 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000014835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000014836$as_echo_n "checking for ld used by $CC... " >&6; }
14837 case $host in
14838 *-*-mingw*)
14839 # gcc leaves a trailing carriage return which upsets mingw
14840 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14841 *)
14842 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14843 esac
14844 case $ac_prog in
14845 # Accept absolute paths.
14846 [\\/]* | ?:[\\/]*)
14847 re_direlt='/[^/][^/]*/\.\./'
14848 # Canonicalize the pathname of ld
14849 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14850 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14851 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14852 done
14853 test -z "$LD" && LD="$ac_prog"
14854 ;;
14855 "")
14856 # If it fails, then pretend we aren't using GCC.
14857 ac_prog=ld
14858 ;;
14859 *)
14860 # If it is relative, then search for the first ld in PATH.
14861 with_gnu_ld=unknown
14862 ;;
14863 esac
14864elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000014865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014866$as_echo_n "checking for GNU ld... " >&6; }
14867else
cristy8b350f62009-11-15 23:12:43 +000014868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014869$as_echo_n "checking for non-GNU ld... " >&6; }
14870fi
cristy8b350f62009-11-15 23:12:43 +000014871if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014872 $as_echo_n "(cached) " >&6
14873else
14874 if test -z "$LD"; then
14875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14876 for ac_dir in $PATH; do
14877 IFS="$lt_save_ifs"
14878 test -z "$ac_dir" && ac_dir=.
14879 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14880 lt_cv_path_LD="$ac_dir/$ac_prog"
14881 # Check to see if the program is GNU ld. I'd rather use --version,
14882 # but apparently some variants of GNU ld only accept -v.
14883 # Break only if it was the GNU/non-GNU ld that we prefer.
14884 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14885 *GNU* | *'with BFD'*)
14886 test "$with_gnu_ld" != no && break
14887 ;;
14888 *)
14889 test "$with_gnu_ld" != yes && break
14890 ;;
14891 esac
14892 fi
14893 done
14894 IFS="$lt_save_ifs"
14895else
14896 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14897fi
14898fi
14899
14900LD="$lt_cv_path_LD"
14901if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000014902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000014903$as_echo "$LD" >&6; }
14904else
cristy8b350f62009-11-15 23:12:43 +000014905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014906$as_echo "no" >&6; }
14907fi
cristy8b350f62009-11-15 23:12:43 +000014908test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014910$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014911if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014912 $as_echo_n "(cached) " >&6
14913else
14914 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14915case `$LD -v 2>&1 </dev/null` in
14916*GNU* | *'with BFD'*)
14917 lt_cv_prog_gnu_ld=yes
14918 ;;
14919*)
14920 lt_cv_prog_gnu_ld=no
14921 ;;
14922esac
14923fi
cristy8b350f62009-11-15 23:12:43 +000014924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014925$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14926with_gnu_ld=$lt_cv_prog_gnu_ld
14927
14928
14929
14930
14931
14932
14933
14934 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14935 # archiving commands below assume that GNU ld is being used.
14936 if test "$with_gnu_ld" = yes; then
14937 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14938 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'
14939
14940 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14941 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14942
14943 # If archive_cmds runs LD, not CC, wlarc should be empty
14944 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14945 # investigate it a little bit more. (MM)
14946 wlarc='${wl}'
14947
14948 # ancient GNU ld didn't support --whole-archive et. al.
14949 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14950 $GREP 'no-whole-archive' > /dev/null; then
14951 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14952 else
14953 whole_archive_flag_spec_CXX=
14954 fi
14955 else
14956 with_gnu_ld=no
14957 wlarc=
14958
14959 # A generic and very simple default shared library creation
14960 # command for GNU C++ for the case where it uses the native
14961 # linker, instead of GNU ld. If possible, this setting should
14962 # overridden to take advantage of the native linker features on
14963 # the platform it is being used on.
14964 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14965 fi
14966
14967 # Commands to make compiler produce verbose output that lists
14968 # what "hidden" libraries, object files and flags are used when
14969 # linking a shared library.
14970 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14971
14972 else
14973 GXX=no
14974 with_gnu_ld=no
14975 wlarc=
14976 fi
14977
14978 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000014979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014980$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14981 ld_shlibs_CXX=yes
14982 case $host_os in
14983 aix3*)
14984 # FIXME: insert proper C++ library support
14985 ld_shlibs_CXX=no
14986 ;;
14987 aix[4-9]*)
14988 if test "$host_cpu" = ia64; then
14989 # On IA64, the linker does run time linking by default, so we don't
14990 # have to do anything special.
14991 aix_use_runtimelinking=no
14992 exp_sym_flag='-Bexport'
14993 no_entry_flag=""
14994 else
14995 aix_use_runtimelinking=no
14996
14997 # Test if we are trying to use run time linking or normal
14998 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14999 # need to do runtime linking.
15000 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15001 for ld_flag in $LDFLAGS; do
15002 case $ld_flag in
15003 *-brtl*)
15004 aix_use_runtimelinking=yes
15005 break
15006 ;;
15007 esac
15008 done
15009 ;;
15010 esac
15011
15012 exp_sym_flag='-bexport'
15013 no_entry_flag='-bnoentry'
15014 fi
15015
15016 # When large executables or shared objects are built, AIX ld can
15017 # have problems creating the table of contents. If linking a library
15018 # or program results in "error TOC overflow" add -mminimal-toc to
15019 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15020 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15021
15022 archive_cmds_CXX=''
15023 hardcode_direct_CXX=yes
15024 hardcode_direct_absolute_CXX=yes
15025 hardcode_libdir_separator_CXX=':'
15026 link_all_deplibs_CXX=yes
15027 file_list_spec_CXX='${wl}-f,'
15028
15029 if test "$GXX" = yes; then
15030 case $host_os in aix4.[012]|aix4.[012].*)
15031 # We only want to do this on AIX 4.2 and lower, the check
15032 # below for broken collect2 doesn't work under 4.3+
15033 collect2name=`${CC} -print-prog-name=collect2`
15034 if test -f "$collect2name" &&
15035 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15036 then
15037 # We have reworked collect2
15038 :
15039 else
15040 # We have old collect2
15041 hardcode_direct_CXX=unsupported
15042 # It fails to find uninstalled libraries when the uninstalled
15043 # path is not listed in the libpath. Setting hardcode_minus_L
15044 # to unsupported forces relinking
15045 hardcode_minus_L_CXX=yes
15046 hardcode_libdir_flag_spec_CXX='-L$libdir'
15047 hardcode_libdir_separator_CXX=
15048 fi
15049 esac
15050 shared_flag='-shared'
15051 if test "$aix_use_runtimelinking" = yes; then
15052 shared_flag="$shared_flag "'${wl}-G'
15053 fi
15054 else
15055 # not using gcc
15056 if test "$host_cpu" = ia64; then
15057 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15058 # chokes on -Wl,-G. The following line is correct:
15059 shared_flag='-G'
15060 else
15061 if test "$aix_use_runtimelinking" = yes; then
15062 shared_flag='${wl}-G'
15063 else
15064 shared_flag='${wl}-bM:SRE'
15065 fi
15066 fi
15067 fi
15068
15069 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15070 # It seems that -bexpall does not export symbols beginning with
15071 # underscore (_), so it is better to generate a list of symbols to
15072 # export.
15073 always_export_symbols_CXX=yes
15074 if test "$aix_use_runtimelinking" = yes; then
15075 # Warning - without using the other runtime loading flags (-brtl),
15076 # -berok will link without error, but may produce a broken library.
15077 allow_undefined_flag_CXX='-berok'
15078 # Determine the default libpath from the value encoded in an empty
15079 # executable.
cristy8b350f62009-11-15 23:12:43 +000015080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015081/* end confdefs.h. */
15082
15083int
15084main ()
15085{
15086
15087 ;
15088 return 0;
15089}
15090_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015091if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015092
15093lt_aix_libpath_sed='
15094 /Import File Strings/,/^$/ {
15095 /^0/ {
15096 s/^0 *\(.*\)$/\1/
15097 p
15098 }
15099 }'
15100aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15101# Check for a 64-bit object if we didn't find anything.
15102if test -z "$aix_libpath"; then
15103 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15104fi
cristy3ed852e2009-09-05 21:47:34 +000015105fi
cristy8b350f62009-11-15 23:12:43 +000015106rm -f core conftest.err conftest.$ac_objext \
15107 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015108if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15109
15110 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15111
15112 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"
15113 else
15114 if test "$host_cpu" = ia64; then
15115 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15116 allow_undefined_flag_CXX="-z nodefs"
15117 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"
15118 else
15119 # Determine the default libpath from the value encoded in an
15120 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000015121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015122/* end confdefs.h. */
15123
15124int
15125main ()
15126{
15127
15128 ;
15129 return 0;
15130}
15131_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015132if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015133
15134lt_aix_libpath_sed='
15135 /Import File Strings/,/^$/ {
15136 /^0/ {
15137 s/^0 *\(.*\)$/\1/
15138 p
15139 }
15140 }'
15141aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15142# Check for a 64-bit object if we didn't find anything.
15143if test -z "$aix_libpath"; then
15144 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15145fi
cristy3ed852e2009-09-05 21:47:34 +000015146fi
cristy8b350f62009-11-15 23:12:43 +000015147rm -f core conftest.err conftest.$ac_objext \
15148 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015149if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15150
15151 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15152 # Warning - without using the other run time loading flags,
15153 # -berok will link without error, but may produce a broken library.
15154 no_undefined_flag_CXX=' ${wl}-bernotok'
15155 allow_undefined_flag_CXX=' ${wl}-berok'
15156 # Exported symbols can be pulled into shared objects from archives
15157 whole_archive_flag_spec_CXX='$convenience'
15158 archive_cmds_need_lc_CXX=yes
15159 # This is similar to how AIX traditionally builds its shared
15160 # libraries.
15161 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'
15162 fi
15163 fi
15164 ;;
15165
15166 beos*)
15167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15168 allow_undefined_flag_CXX=unsupported
15169 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15170 # support --undefined. This deserves some investigation. FIXME
15171 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15172 else
15173 ld_shlibs_CXX=no
15174 fi
15175 ;;
15176
15177 chorus*)
15178 case $cc_basename in
15179 *)
15180 # FIXME: insert proper C++ library support
15181 ld_shlibs_CXX=no
15182 ;;
15183 esac
15184 ;;
15185
15186 cygwin* | mingw* | pw32* | cegcc*)
15187 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15188 # as there is no search path for DLLs.
15189 hardcode_libdir_flag_spec_CXX='-L$libdir'
15190 allow_undefined_flag_CXX=unsupported
15191 always_export_symbols_CXX=no
15192 enable_shared_with_static_runtimes_CXX=yes
15193
15194 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15195 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'
15196 # If the export-symbols file already is a .def file (1st line
15197 # is EXPORTS), use it as is; otherwise, prepend...
15198 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15199 cp $export_symbols $output_objdir/$soname.def;
15200 else
15201 echo EXPORTS > $output_objdir/$soname.def;
15202 cat $export_symbols >> $output_objdir/$soname.def;
15203 fi~
15204 $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'
15205 else
15206 ld_shlibs_CXX=no
15207 fi
15208 ;;
15209 darwin* | rhapsody*)
15210
15211
15212 archive_cmds_need_lc_CXX=no
15213 hardcode_direct_CXX=no
15214 hardcode_automatic_CXX=yes
15215 hardcode_shlibpath_var_CXX=unsupported
15216 whole_archive_flag_spec_CXX=''
15217 link_all_deplibs_CXX=yes
15218 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15219 case $cc_basename in
15220 ifort*) _lt_dar_can_shared=yes ;;
15221 *) _lt_dar_can_shared=$GCC ;;
15222 esac
15223 if test "$_lt_dar_can_shared" = "yes"; then
15224 output_verbose_link_cmd=echo
15225 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}"
15226 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15227 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}"
15228 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}"
15229 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15230 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}"
15231 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}"
15232 fi
15233
15234 else
15235 ld_shlibs_CXX=no
15236 fi
15237
15238 ;;
15239
15240 dgux*)
15241 case $cc_basename in
15242 ec++*)
15243 # FIXME: insert proper C++ library support
15244 ld_shlibs_CXX=no
15245 ;;
15246 ghcx*)
15247 # Green Hills C++ Compiler
15248 # FIXME: insert proper C++ library support
15249 ld_shlibs_CXX=no
15250 ;;
15251 *)
15252 # FIXME: insert proper C++ library support
15253 ld_shlibs_CXX=no
15254 ;;
15255 esac
15256 ;;
15257
15258 freebsd[12]*)
15259 # C++ shared libraries reported to be fairly broken before
15260 # switch to ELF
15261 ld_shlibs_CXX=no
15262 ;;
15263
15264 freebsd-elf*)
15265 archive_cmds_need_lc_CXX=no
15266 ;;
15267
15268 freebsd* | dragonfly*)
15269 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15270 # conventions
15271 ld_shlibs_CXX=yes
15272 ;;
15273
15274 gnu*)
15275 ;;
15276
15277 hpux9*)
15278 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15279 hardcode_libdir_separator_CXX=:
15280 export_dynamic_flag_spec_CXX='${wl}-E'
15281 hardcode_direct_CXX=yes
15282 hardcode_minus_L_CXX=yes # Not in the search PATH,
15283 # but as the default
15284 # location of the library.
15285
15286 case $cc_basename in
15287 CC*)
15288 # FIXME: insert proper C++ library support
15289 ld_shlibs_CXX=no
15290 ;;
15291 aCC*)
15292 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'
15293 # Commands to make compiler produce verbose output that lists
15294 # what "hidden" libraries, object files and flags are used when
15295 # linking a shared library.
15296 #
15297 # There doesn't appear to be a way to prevent this compiler from
15298 # explicitly linking system object files so we need to strip them
15299 # from the output so that they don't get included in the library
15300 # dependencies.
15301 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'
15302 ;;
15303 *)
15304 if test "$GXX" = yes; then
15305 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'
15306 else
15307 # FIXME: insert proper C++ library support
15308 ld_shlibs_CXX=no
15309 fi
15310 ;;
15311 esac
15312 ;;
15313
15314 hpux10*|hpux11*)
15315 if test $with_gnu_ld = no; then
15316 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15317 hardcode_libdir_separator_CXX=:
15318
15319 case $host_cpu in
15320 hppa*64*|ia64*)
15321 ;;
15322 *)
15323 export_dynamic_flag_spec_CXX='${wl}-E'
15324 ;;
15325 esac
15326 fi
15327 case $host_cpu in
15328 hppa*64*|ia64*)
15329 hardcode_direct_CXX=no
15330 hardcode_shlibpath_var_CXX=no
15331 ;;
15332 *)
15333 hardcode_direct_CXX=yes
15334 hardcode_direct_absolute_CXX=yes
15335 hardcode_minus_L_CXX=yes # Not in the search PATH,
15336 # but as the default
15337 # location of the library.
15338 ;;
15339 esac
15340
15341 case $cc_basename in
15342 CC*)
15343 # FIXME: insert proper C++ library support
15344 ld_shlibs_CXX=no
15345 ;;
15346 aCC*)
15347 case $host_cpu in
15348 hppa*64*)
15349 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15350 ;;
15351 ia64*)
15352 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15353 ;;
15354 *)
15355 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15356 ;;
15357 esac
15358 # Commands to make compiler produce verbose output that lists
15359 # what "hidden" libraries, object files and flags are used when
15360 # linking a shared library.
15361 #
15362 # There doesn't appear to be a way to prevent this compiler from
15363 # explicitly linking system object files so we need to strip them
15364 # from the output so that they don't get included in the library
15365 # dependencies.
15366 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'
15367 ;;
15368 *)
15369 if test "$GXX" = yes; then
15370 if test $with_gnu_ld = no; then
15371 case $host_cpu in
15372 hppa*64*)
15373 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15374 ;;
15375 ia64*)
15376 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15377 ;;
15378 *)
15379 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'
15380 ;;
15381 esac
15382 fi
15383 else
15384 # FIXME: insert proper C++ library support
15385 ld_shlibs_CXX=no
15386 fi
15387 ;;
15388 esac
15389 ;;
15390
15391 interix[3-9]*)
15392 hardcode_direct_CXX=no
15393 hardcode_shlibpath_var_CXX=no
15394 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15395 export_dynamic_flag_spec_CXX='${wl}-E'
15396 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15397 # Instead, shared libraries are loaded at an image base (0x10000000 by
15398 # default) and relocated if they conflict, which is a slow very memory
15399 # consuming and fragmenting process. To avoid this, we pick a random,
15400 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15401 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15402 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'
15403 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'
15404 ;;
15405 irix5* | irix6*)
15406 case $cc_basename in
15407 CC*)
15408 # SGI C++
15409 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'
15410
15411 # Archives containing C++ object files must be created using
15412 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15413 # necessary to make sure instantiated templates are included
15414 # in the archive.
15415 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15416 ;;
15417 *)
15418 if test "$GXX" = yes; then
15419 if test "$with_gnu_ld" = no; then
15420 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'
15421 else
15422 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'
15423 fi
15424 fi
15425 link_all_deplibs_CXX=yes
15426 ;;
15427 esac
15428 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15429 hardcode_libdir_separator_CXX=:
15430 inherit_rpath_CXX=yes
15431 ;;
15432
15433 linux* | k*bsd*-gnu)
15434 case $cc_basename in
15435 KCC*)
15436 # Kuck and Associates, Inc. (KAI) C++ Compiler
15437
15438 # KCC will only create a shared library if the output file
15439 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15440 # to its proper name (with version) after linking.
15441 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'
15442 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'
15443 # Commands to make compiler produce verbose output that lists
15444 # what "hidden" libraries, object files and flags are used when
15445 # linking a shared library.
15446 #
15447 # There doesn't appear to be a way to prevent this compiler from
15448 # explicitly linking system object files so we need to strip them
15449 # from the output so that they don't get included in the library
15450 # dependencies.
15451 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'
15452
15453 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15454 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15455
15456 # Archives containing C++ object files must be created using
15457 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15458 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15459 ;;
15460 icpc* | ecpc* )
15461 # Intel C++
15462 with_gnu_ld=yes
15463 # version 8.0 and above of icpc choke on multiply defined symbols
15464 # if we add $predep_objects and $postdep_objects, however 7.1 and
15465 # earlier do not add the objects themselves.
15466 case `$CC -V 2>&1` in
15467 *"Version 7."*)
15468 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15469 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'
15470 ;;
15471 *) # Version 8.0 or newer
15472 tmp_idyn=
15473 case $host_cpu in
15474 ia64*) tmp_idyn=' -i_dynamic';;
15475 esac
15476 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15477 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'
15478 ;;
15479 esac
15480 archive_cmds_need_lc_CXX=no
15481 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15482 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15483 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15484 ;;
15485 pgCC* | pgcpp*)
15486 # Portland Group C++ compiler
15487 case `$CC -V` in
15488 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15489 prelink_cmds_CXX='tpldir=Template.dir~
15490 rm -rf $tpldir~
15491 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15492 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15493 old_archive_cmds_CXX='tpldir=Template.dir~
15494 rm -rf $tpldir~
15495 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15496 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15497 $RANLIB $oldlib'
15498 archive_cmds_CXX='tpldir=Template.dir~
15499 rm -rf $tpldir~
15500 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15501 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15502 archive_expsym_cmds_CXX='tpldir=Template.dir~
15503 rm -rf $tpldir~
15504 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15505 $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'
15506 ;;
15507 *) # Version 6 will use weak symbols
15508 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15509 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'
15510 ;;
15511 esac
15512
15513 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15514 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15515 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'
15516 ;;
15517 cxx*)
15518 # Compaq C++
15519 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15520 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'
15521
15522 runpath_var=LD_RUN_PATH
15523 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15524 hardcode_libdir_separator_CXX=:
15525
15526 # Commands to make compiler produce verbose output that lists
15527 # what "hidden" libraries, object files and flags are used when
15528 # linking a shared library.
15529 #
15530 # There doesn't appear to be a way to prevent this compiler from
15531 # explicitly linking system object files so we need to strip them
15532 # from the output so that they don't get included in the library
15533 # dependencies.
15534 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'
15535 ;;
15536 xl*)
15537 # IBM XL 8.0 on PPC, with GNU ld
15538 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15539 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15540 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15541 if test "x$supports_anon_versioning" = xyes; then
15542 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15543 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15544 echo "local: *; };" >> $output_objdir/$libname.ver~
15545 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15546 fi
15547 ;;
15548 *)
15549 case `$CC -V 2>&1 | sed 5q` in
15550 *Sun\ C*)
15551 # Sun C++ 5.9
15552 no_undefined_flag_CXX=' -zdefs'
15553 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15554 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'
15555 hardcode_libdir_flag_spec_CXX='-R$libdir'
15556 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'
15557 compiler_needs_object_CXX=yes
15558
15559 # Not sure whether something based on
15560 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15561 # would be better.
15562 output_verbose_link_cmd='echo'
15563
15564 # Archives containing C++ object files must be created using
15565 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15566 # necessary to make sure instantiated templates are included
15567 # in the archive.
15568 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15569 ;;
15570 esac
15571 ;;
15572 esac
15573 ;;
15574
15575 lynxos*)
15576 # FIXME: insert proper C++ library support
15577 ld_shlibs_CXX=no
15578 ;;
15579
15580 m88k*)
15581 # FIXME: insert proper C++ library support
15582 ld_shlibs_CXX=no
15583 ;;
15584
15585 mvs*)
15586 case $cc_basename in
15587 cxx*)
15588 # FIXME: insert proper C++ library support
15589 ld_shlibs_CXX=no
15590 ;;
15591 *)
15592 # FIXME: insert proper C++ library support
15593 ld_shlibs_CXX=no
15594 ;;
15595 esac
15596 ;;
15597
15598 netbsd*)
15599 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15600 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15601 wlarc=
15602 hardcode_libdir_flag_spec_CXX='-R$libdir'
15603 hardcode_direct_CXX=yes
15604 hardcode_shlibpath_var_CXX=no
15605 fi
15606 # Workaround some broken pre-1.5 toolchains
15607 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15608 ;;
15609
15610 *nto* | *qnx*)
15611 ld_shlibs_CXX=yes
15612 ;;
15613
15614 openbsd2*)
15615 # C++ shared libraries are fairly broken
15616 ld_shlibs_CXX=no
15617 ;;
15618
15619 openbsd*)
15620 if test -f /usr/libexec/ld.so; then
15621 hardcode_direct_CXX=yes
15622 hardcode_shlibpath_var_CXX=no
15623 hardcode_direct_absolute_CXX=yes
15624 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15625 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15627 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15628 export_dynamic_flag_spec_CXX='${wl}-E'
15629 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15630 fi
15631 output_verbose_link_cmd=echo
15632 else
15633 ld_shlibs_CXX=no
15634 fi
15635 ;;
15636
15637 osf3* | osf4* | osf5*)
15638 case $cc_basename in
15639 KCC*)
15640 # Kuck and Associates, Inc. (KAI) C++ Compiler
15641
15642 # KCC will only create a shared library if the output file
15643 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15644 # to its proper name (with version) after linking.
15645 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'
15646
15647 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15648 hardcode_libdir_separator_CXX=:
15649
15650 # Archives containing C++ object files must be created using
15651 # the KAI C++ compiler.
15652 case $host in
15653 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15654 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15655 esac
15656 ;;
15657 RCC*)
15658 # Rational C++ 2.4.1
15659 # FIXME: insert proper C++ library support
15660 ld_shlibs_CXX=no
15661 ;;
15662 cxx*)
15663 case $host in
15664 osf3*)
15665 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15666 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'
15667 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15668 ;;
15669 *)
15670 allow_undefined_flag_CXX=' -expect_unresolved \*'
15671 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'
15672 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15673 echo "-hidden">> $lib.exp~
15674 $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~
15675 $RM $lib.exp'
15676 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15677 ;;
15678 esac
15679
15680 hardcode_libdir_separator_CXX=:
15681
15682 # Commands to make compiler produce verbose output that lists
15683 # what "hidden" libraries, object files and flags are used when
15684 # linking a shared library.
15685 #
15686 # There doesn't appear to be a way to prevent this compiler from
15687 # explicitly linking system object files so we need to strip them
15688 # from the output so that they don't get included in the library
15689 # dependencies.
15690 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'
15691 ;;
15692 *)
15693 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15694 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15695 case $host in
15696 osf3*)
15697 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'
15698 ;;
15699 *)
15700 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'
15701 ;;
15702 esac
15703
15704 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15705 hardcode_libdir_separator_CXX=:
15706
15707 # Commands to make compiler produce verbose output that lists
15708 # what "hidden" libraries, object files and flags are used when
15709 # linking a shared library.
15710 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15711
15712 else
15713 # FIXME: insert proper C++ library support
15714 ld_shlibs_CXX=no
15715 fi
15716 ;;
15717 esac
15718 ;;
15719
15720 psos*)
15721 # FIXME: insert proper C++ library support
15722 ld_shlibs_CXX=no
15723 ;;
15724
15725 sunos4*)
15726 case $cc_basename in
15727 CC*)
15728 # Sun C++ 4.x
15729 # FIXME: insert proper C++ library support
15730 ld_shlibs_CXX=no
15731 ;;
15732 lcc*)
15733 # Lucid
15734 # FIXME: insert proper C++ library support
15735 ld_shlibs_CXX=no
15736 ;;
15737 *)
15738 # FIXME: insert proper C++ library support
15739 ld_shlibs_CXX=no
15740 ;;
15741 esac
15742 ;;
15743
15744 solaris*)
15745 case $cc_basename in
15746 CC*)
15747 # Sun C++ 4.2, 5.x and Centerline C++
15748 archive_cmds_need_lc_CXX=yes
15749 no_undefined_flag_CXX=' -zdefs'
15750 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15751 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15752 $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'
15753
15754 hardcode_libdir_flag_spec_CXX='-R$libdir'
15755 hardcode_shlibpath_var_CXX=no
15756 case $host_os in
15757 solaris2.[0-5] | solaris2.[0-5].*) ;;
15758 *)
15759 # The compiler driver will combine and reorder linker options,
15760 # but understands `-z linker_flag'.
15761 # Supported since Solaris 2.6 (maybe 2.5.1?)
15762 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15763 ;;
15764 esac
15765 link_all_deplibs_CXX=yes
15766
15767 output_verbose_link_cmd='echo'
15768
15769 # Archives containing C++ object files must be created using
15770 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15771 # necessary to make sure instantiated templates are included
15772 # in the archive.
15773 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15774 ;;
15775 gcx*)
15776 # Green Hills C++ Compiler
15777 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15778
15779 # The C++ compiler must be used to create the archive.
15780 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15781 ;;
15782 *)
15783 # GNU C++ compiler with Solaris linker
15784 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15785 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15786 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15787 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15788 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15789 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15790
15791 # Commands to make compiler produce verbose output that lists
15792 # what "hidden" libraries, object files and flags are used when
15793 # linking a shared library.
15794 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15795 else
15796 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15797 # platform.
15798 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15799 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15800 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15801
15802 # Commands to make compiler produce verbose output that lists
15803 # what "hidden" libraries, object files and flags are used when
15804 # linking a shared library.
15805 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15806 fi
15807
15808 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15809 case $host_os in
15810 solaris2.[0-5] | solaris2.[0-5].*) ;;
15811 *)
15812 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15813 ;;
15814 esac
15815 fi
15816 ;;
15817 esac
15818 ;;
15819
15820 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15821 no_undefined_flag_CXX='${wl}-z,text'
15822 archive_cmds_need_lc_CXX=no
15823 hardcode_shlibpath_var_CXX=no
15824 runpath_var='LD_RUN_PATH'
15825
15826 case $cc_basename in
15827 CC*)
15828 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15829 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15830 ;;
15831 *)
15832 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15833 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15834 ;;
15835 esac
15836 ;;
15837
15838 sysv5* | sco3.2v5* | sco5v6*)
15839 # Note: We can NOT use -z defs as we might desire, because we do not
15840 # link with -lc, and that would cause any symbols used from libc to
15841 # always be unresolved, which means just about no library would
15842 # ever link correctly. If we're not using GNU ld we use -z text
15843 # though, which does catch some bad symbols but isn't as heavy-handed
15844 # as -z defs.
15845 no_undefined_flag_CXX='${wl}-z,text'
15846 allow_undefined_flag_CXX='${wl}-z,nodefs'
15847 archive_cmds_need_lc_CXX=no
15848 hardcode_shlibpath_var_CXX=no
15849 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15850 hardcode_libdir_separator_CXX=':'
15851 link_all_deplibs_CXX=yes
15852 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15853 runpath_var='LD_RUN_PATH'
15854
15855 case $cc_basename in
15856 CC*)
15857 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15858 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15859 ;;
15860 *)
15861 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15862 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15863 ;;
15864 esac
15865 ;;
15866
15867 tandem*)
15868 case $cc_basename in
15869 NCC*)
15870 # NonStop-UX NCC 3.20
15871 # FIXME: insert proper C++ library support
15872 ld_shlibs_CXX=no
15873 ;;
15874 *)
15875 # FIXME: insert proper C++ library support
15876 ld_shlibs_CXX=no
15877 ;;
15878 esac
15879 ;;
15880
15881 vxworks*)
15882 # FIXME: insert proper C++ library support
15883 ld_shlibs_CXX=no
15884 ;;
15885
15886 *)
15887 # FIXME: insert proper C++ library support
15888 ld_shlibs_CXX=no
15889 ;;
15890 esac
15891
cristy8b350f62009-11-15 23:12:43 +000015892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000015893$as_echo "$ld_shlibs_CXX" >&6; }
15894 test "$ld_shlibs_CXX" = no && can_build_shared=no
15895
15896 GCC_CXX="$GXX"
15897 LD_CXX="$LD"
15898
15899 ## CAVEAT EMPTOR:
15900 ## There is no encapsulation within the following macros, do not change
15901 ## the running order or otherwise move them around unless you know exactly
15902 ## what you are doing...
15903 # Dependencies to place before and after the object being linked:
15904predep_objects_CXX=
15905postdep_objects_CXX=
15906predeps_CXX=
15907postdeps_CXX=
15908compiler_lib_search_path_CXX=
15909
15910cat > conftest.$ac_ext <<_LT_EOF
15911class Foo
15912{
15913public:
15914 Foo (void) { a = 0; }
15915private:
15916 int a;
15917};
15918_LT_EOF
15919
cristy8b350f62009-11-15 23:12:43 +000015920if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015921 (eval $ac_compile) 2>&5
15922 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15924 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000015925 # Parse the compiler output and extract the necessary
15926 # objects, libraries and library flags.
15927
15928 # Sentinel used to keep track of whether or not we are before
15929 # the conftest object file.
15930 pre_test_object_deps_done=no
15931
15932 for p in `eval "$output_verbose_link_cmd"`; do
15933 case $p in
15934
15935 -L* | -R* | -l*)
15936 # Some compilers place space between "-{L,R}" and the path.
15937 # Remove the space.
15938 if test $p = "-L" ||
15939 test $p = "-R"; then
15940 prev=$p
15941 continue
15942 else
15943 prev=
15944 fi
15945
15946 if test "$pre_test_object_deps_done" = no; then
15947 case $p in
15948 -L* | -R*)
15949 # Internal compiler library paths should come after those
15950 # provided the user. The postdeps already come after the
15951 # user supplied libs so there is no need to process them.
15952 if test -z "$compiler_lib_search_path_CXX"; then
15953 compiler_lib_search_path_CXX="${prev}${p}"
15954 else
15955 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15956 fi
15957 ;;
15958 # The "-l" case would never come before the object being
15959 # linked, so don't bother handling this case.
15960 esac
15961 else
15962 if test -z "$postdeps_CXX"; then
15963 postdeps_CXX="${prev}${p}"
15964 else
15965 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15966 fi
15967 fi
15968 ;;
15969
15970 *.$objext)
15971 # This assumes that the test object file only shows up
15972 # once in the compiler output.
15973 if test "$p" = "conftest.$objext"; then
15974 pre_test_object_deps_done=yes
15975 continue
15976 fi
15977
15978 if test "$pre_test_object_deps_done" = no; then
15979 if test -z "$predep_objects_CXX"; then
15980 predep_objects_CXX="$p"
15981 else
15982 predep_objects_CXX="$predep_objects_CXX $p"
15983 fi
15984 else
15985 if test -z "$postdep_objects_CXX"; then
15986 postdep_objects_CXX="$p"
15987 else
15988 postdep_objects_CXX="$postdep_objects_CXX $p"
15989 fi
15990 fi
15991 ;;
15992
15993 *) ;; # Ignore the rest.
15994
15995 esac
15996 done
15997
15998 # Clean up.
15999 rm -f a.out a.exe
16000else
16001 echo "libtool.m4: error: problem compiling CXX test program"
16002fi
16003
16004$RM -f confest.$objext
16005
16006# PORTME: override above test on systems where it is broken
16007case $host_os in
16008interix[3-9]*)
16009 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16010 # hack all around it, let's just trust "g++" to DTRT.
16011 predep_objects_CXX=
16012 postdep_objects_CXX=
16013 postdeps_CXX=
16014 ;;
16015
16016linux*)
16017 case `$CC -V 2>&1 | sed 5q` in
16018 *Sun\ C*)
16019 # Sun C++ 5.9
16020
16021 # The more standards-conforming stlport4 library is
16022 # incompatible with the Cstd library. Avoid specifying
16023 # it if it's in CXXFLAGS. Ignore libCrun as
16024 # -library=stlport4 depends on it.
16025 case " $CXX $CXXFLAGS " in
16026 *" -library=stlport4 "*)
16027 solaris_use_stlport4=yes
16028 ;;
16029 esac
16030
16031 if test "$solaris_use_stlport4" != yes; then
16032 postdeps_CXX='-library=Cstd -library=Crun'
16033 fi
16034 ;;
16035 esac
16036 ;;
16037
16038solaris*)
16039 case $cc_basename in
16040 CC*)
16041 # The more standards-conforming stlport4 library is
16042 # incompatible with the Cstd library. Avoid specifying
16043 # it if it's in CXXFLAGS. Ignore libCrun as
16044 # -library=stlport4 depends on it.
16045 case " $CXX $CXXFLAGS " in
16046 *" -library=stlport4 "*)
16047 solaris_use_stlport4=yes
16048 ;;
16049 esac
16050
16051 # Adding this requires a known-good setup of shared libraries for
16052 # Sun compiler versions before 5.6, else PIC objects from an old
16053 # archive will be linked into the output, leading to subtle bugs.
16054 if test "$solaris_use_stlport4" != yes; then
16055 postdeps_CXX='-library=Cstd -library=Crun'
16056 fi
16057 ;;
16058 esac
16059 ;;
16060esac
16061
16062
16063case " $postdeps_CXX " in
16064*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16065esac
16066 compiler_lib_search_dirs_CXX=
16067if test -n "${compiler_lib_search_path_CXX}"; then
16068 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16069fi
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101 lt_prog_compiler_wl_CXX=
16102lt_prog_compiler_pic_CXX=
16103lt_prog_compiler_static_CXX=
16104
cristy8b350f62009-11-15 23:12:43 +000016105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016106$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16107
16108 # C++ specific cases for pic, static, wl, etc.
16109 if test "$GXX" = yes; then
16110 lt_prog_compiler_wl_CXX='-Wl,'
16111 lt_prog_compiler_static_CXX='-static'
16112
16113 case $host_os in
16114 aix*)
16115 # All AIX code is PIC.
16116 if test "$host_cpu" = ia64; then
16117 # AIX 5 now supports IA64 processor
16118 lt_prog_compiler_static_CXX='-Bstatic'
16119 fi
16120 ;;
16121
16122 amigaos*)
16123 case $host_cpu in
16124 powerpc)
16125 # see comment about AmigaOS4 .so support
16126 lt_prog_compiler_pic_CXX='-fPIC'
16127 ;;
16128 m68k)
16129 # FIXME: we need at least 68020 code to build shared libraries, but
16130 # adding the `-m68020' flag to GCC prevents building anything better,
16131 # like `-m68040'.
16132 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16133 ;;
16134 esac
16135 ;;
16136
16137 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16138 # PIC is the default for these OSes.
16139 ;;
16140 mingw* | cygwin* | os2* | pw32* | cegcc*)
16141 # This hack is so that the source file can tell whether it is being
16142 # built for inclusion in a dll (and should export symbols for example).
16143 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16144 # (--disable-auto-import) libraries
16145 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16146 ;;
16147 darwin* | rhapsody*)
16148 # PIC is the default on this platform
16149 # Common symbols not allowed in MH_DYLIB files
16150 lt_prog_compiler_pic_CXX='-fno-common'
16151 ;;
16152 *djgpp*)
16153 # DJGPP does not support shared libraries at all
16154 lt_prog_compiler_pic_CXX=
16155 ;;
16156 interix[3-9]*)
16157 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16158 # Instead, we relocate shared libraries at runtime.
16159 ;;
16160 sysv4*MP*)
16161 if test -d /usr/nec; then
16162 lt_prog_compiler_pic_CXX=-Kconform_pic
16163 fi
16164 ;;
16165 hpux*)
16166 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16167 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16168 # sets the default TLS model and affects inlining.
16169 case $host_cpu in
16170 hppa*64*)
16171 ;;
16172 *)
16173 lt_prog_compiler_pic_CXX='-fPIC'
16174 ;;
16175 esac
16176 ;;
16177 *qnx* | *nto*)
16178 # QNX uses GNU C++, but need to define -shared option too, otherwise
16179 # it will coredump.
16180 lt_prog_compiler_pic_CXX='-fPIC -shared'
16181 ;;
16182 *)
16183 lt_prog_compiler_pic_CXX='-fPIC'
16184 ;;
16185 esac
16186 else
16187 case $host_os in
16188 aix[4-9]*)
16189 # All AIX code is PIC.
16190 if test "$host_cpu" = ia64; then
16191 # AIX 5 now supports IA64 processor
16192 lt_prog_compiler_static_CXX='-Bstatic'
16193 else
16194 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16195 fi
16196 ;;
16197 chorus*)
16198 case $cc_basename in
16199 cxch68*)
16200 # Green Hills C++ Compiler
16201 # _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"
16202 ;;
16203 esac
16204 ;;
16205 dgux*)
16206 case $cc_basename in
16207 ec++*)
16208 lt_prog_compiler_pic_CXX='-KPIC'
16209 ;;
16210 ghcx*)
16211 # Green Hills C++ Compiler
16212 lt_prog_compiler_pic_CXX='-pic'
16213 ;;
16214 *)
16215 ;;
16216 esac
16217 ;;
16218 freebsd* | dragonfly*)
16219 # FreeBSD uses GNU C++
16220 ;;
16221 hpux9* | hpux10* | hpux11*)
16222 case $cc_basename in
16223 CC*)
16224 lt_prog_compiler_wl_CXX='-Wl,'
16225 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16226 if test "$host_cpu" != ia64; then
16227 lt_prog_compiler_pic_CXX='+Z'
16228 fi
16229 ;;
16230 aCC*)
16231 lt_prog_compiler_wl_CXX='-Wl,'
16232 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16233 case $host_cpu in
16234 hppa*64*|ia64*)
16235 # +Z the default
16236 ;;
16237 *)
16238 lt_prog_compiler_pic_CXX='+Z'
16239 ;;
16240 esac
16241 ;;
16242 *)
16243 ;;
16244 esac
16245 ;;
16246 interix*)
16247 # This is c89, which is MS Visual C++ (no shared libs)
16248 # Anyone wants to do a port?
16249 ;;
16250 irix5* | irix6* | nonstopux*)
16251 case $cc_basename in
16252 CC*)
16253 lt_prog_compiler_wl_CXX='-Wl,'
16254 lt_prog_compiler_static_CXX='-non_shared'
16255 # CC pic flag -KPIC is the default.
16256 ;;
16257 *)
16258 ;;
16259 esac
16260 ;;
16261 linux* | k*bsd*-gnu)
16262 case $cc_basename in
16263 KCC*)
16264 # KAI C++ Compiler
16265 lt_prog_compiler_wl_CXX='--backend -Wl,'
16266 lt_prog_compiler_pic_CXX='-fPIC'
16267 ;;
16268 ecpc* )
16269 # old Intel C++ for x86_64 which still supported -KPIC.
16270 lt_prog_compiler_wl_CXX='-Wl,'
16271 lt_prog_compiler_pic_CXX='-KPIC'
16272 lt_prog_compiler_static_CXX='-static'
16273 ;;
16274 icpc* )
16275 # Intel C++, used to be incompatible with GCC.
16276 # ICC 10 doesn't accept -KPIC any more.
16277 lt_prog_compiler_wl_CXX='-Wl,'
16278 lt_prog_compiler_pic_CXX='-fPIC'
16279 lt_prog_compiler_static_CXX='-static'
16280 ;;
16281 pgCC* | pgcpp*)
16282 # Portland Group C++ compiler
16283 lt_prog_compiler_wl_CXX='-Wl,'
16284 lt_prog_compiler_pic_CXX='-fpic'
16285 lt_prog_compiler_static_CXX='-Bstatic'
16286 ;;
16287 cxx*)
16288 # Compaq C++
16289 # Make sure the PIC flag is empty. It appears that all Alpha
16290 # Linux and Compaq Tru64 Unix objects are PIC.
16291 lt_prog_compiler_pic_CXX=
16292 lt_prog_compiler_static_CXX='-non_shared'
16293 ;;
16294 xlc* | xlC*)
16295 # IBM XL 8.0 on PPC
16296 lt_prog_compiler_wl_CXX='-Wl,'
16297 lt_prog_compiler_pic_CXX='-qpic'
16298 lt_prog_compiler_static_CXX='-qstaticlink'
16299 ;;
16300 *)
16301 case `$CC -V 2>&1 | sed 5q` in
16302 *Sun\ C*)
16303 # Sun C++ 5.9
16304 lt_prog_compiler_pic_CXX='-KPIC'
16305 lt_prog_compiler_static_CXX='-Bstatic'
16306 lt_prog_compiler_wl_CXX='-Qoption ld '
16307 ;;
16308 esac
16309 ;;
16310 esac
16311 ;;
16312 lynxos*)
16313 ;;
16314 m88k*)
16315 ;;
16316 mvs*)
16317 case $cc_basename in
16318 cxx*)
16319 lt_prog_compiler_pic_CXX='-W c,exportall'
16320 ;;
16321 *)
16322 ;;
16323 esac
16324 ;;
16325 netbsd*)
16326 ;;
16327 *qnx* | *nto*)
16328 # QNX uses GNU C++, but need to define -shared option too, otherwise
16329 # it will coredump.
16330 lt_prog_compiler_pic_CXX='-fPIC -shared'
16331 ;;
16332 osf3* | osf4* | osf5*)
16333 case $cc_basename in
16334 KCC*)
16335 lt_prog_compiler_wl_CXX='--backend -Wl,'
16336 ;;
16337 RCC*)
16338 # Rational C++ 2.4.1
16339 lt_prog_compiler_pic_CXX='-pic'
16340 ;;
16341 cxx*)
16342 # Digital/Compaq C++
16343 lt_prog_compiler_wl_CXX='-Wl,'
16344 # Make sure the PIC flag is empty. It appears that all Alpha
16345 # Linux and Compaq Tru64 Unix objects are PIC.
16346 lt_prog_compiler_pic_CXX=
16347 lt_prog_compiler_static_CXX='-non_shared'
16348 ;;
16349 *)
16350 ;;
16351 esac
16352 ;;
16353 psos*)
16354 ;;
16355 solaris*)
16356 case $cc_basename in
16357 CC*)
16358 # Sun C++ 4.2, 5.x and Centerline C++
16359 lt_prog_compiler_pic_CXX='-KPIC'
16360 lt_prog_compiler_static_CXX='-Bstatic'
16361 lt_prog_compiler_wl_CXX='-Qoption ld '
16362 ;;
16363 gcx*)
16364 # Green Hills C++ Compiler
16365 lt_prog_compiler_pic_CXX='-PIC'
16366 ;;
16367 *)
16368 ;;
16369 esac
16370 ;;
16371 sunos4*)
16372 case $cc_basename in
16373 CC*)
16374 # Sun C++ 4.x
16375 lt_prog_compiler_pic_CXX='-pic'
16376 lt_prog_compiler_static_CXX='-Bstatic'
16377 ;;
16378 lcc*)
16379 # Lucid
16380 lt_prog_compiler_pic_CXX='-pic'
16381 ;;
16382 *)
16383 ;;
16384 esac
16385 ;;
16386 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16387 case $cc_basename in
16388 CC*)
16389 lt_prog_compiler_wl_CXX='-Wl,'
16390 lt_prog_compiler_pic_CXX='-KPIC'
16391 lt_prog_compiler_static_CXX='-Bstatic'
16392 ;;
16393 esac
16394 ;;
16395 tandem*)
16396 case $cc_basename in
16397 NCC*)
16398 # NonStop-UX NCC 3.20
16399 lt_prog_compiler_pic_CXX='-KPIC'
16400 ;;
16401 *)
16402 ;;
16403 esac
16404 ;;
16405 vxworks*)
16406 ;;
16407 *)
16408 lt_prog_compiler_can_build_shared_CXX=no
16409 ;;
16410 esac
16411 fi
16412
16413case $host_os in
16414 # For platforms which do not support PIC, -DPIC is meaningless:
16415 *djgpp*)
16416 lt_prog_compiler_pic_CXX=
16417 ;;
16418 *)
16419 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16420 ;;
16421esac
cristy8b350f62009-11-15 23:12:43 +000016422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016423$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16424
16425
16426
16427#
16428# Check to make sure the PIC flag actually works.
16429#
16430if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000016431 { $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 +000016432$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016433if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016434 $as_echo_n "(cached) " >&6
16435else
16436 lt_cv_prog_compiler_pic_works_CXX=no
16437 ac_outfile=conftest.$ac_objext
16438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16439 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16440 # Insert the option either (1) after the last *FLAGS variable, or
16441 # (2) before a word containing "conftest.", or (3) at the end.
16442 # Note that $ac_compile itself does not contain backslashes and begins
16443 # with a dollar sign (not a hyphen), so the echo should work correctly.
16444 # The option is referenced via a variable to avoid confusing sed.
16445 lt_compile=`echo "$ac_compile" | $SED \
16446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16448 -e 's:$: $lt_compiler_flag:'`
cristy8b350f62009-11-15 23:12:43 +000016449 (eval echo "\"\$as_me:16449: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016450 (eval "$lt_compile" 2>conftest.err)
16451 ac_status=$?
16452 cat conftest.err >&5
cristy8b350f62009-11-15 23:12:43 +000016453 echo "$as_me:16453: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016454 if (exit $ac_status) && test -s "$ac_outfile"; then
16455 # The compiler can only warn and ignore the option if not recognized
16456 # So say no if there are warnings other than the usual output.
16457 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16460 lt_cv_prog_compiler_pic_works_CXX=yes
16461 fi
16462 fi
16463 $RM conftest*
16464
16465fi
cristy8b350f62009-11-15 23:12:43 +000016466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016467$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16468
16469if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16470 case $lt_prog_compiler_pic_CXX in
16471 "" | " "*) ;;
16472 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16473 esac
16474else
16475 lt_prog_compiler_pic_CXX=
16476 lt_prog_compiler_can_build_shared_CXX=no
16477fi
16478
16479fi
16480
16481
16482
16483#
16484# Check to make sure the static flag actually works.
16485#
16486wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000016487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000016488$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016489if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016490 $as_echo_n "(cached) " >&6
16491else
16492 lt_cv_prog_compiler_static_works_CXX=no
16493 save_LDFLAGS="$LDFLAGS"
16494 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16495 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16496 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16497 # The linker can only warn and ignore the option if not recognized
16498 # So say no if there are warnings
16499 if test -s conftest.err; then
16500 # Append any errors to the config.log.
16501 cat conftest.err 1>&5
16502 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16504 if diff conftest.exp conftest.er2 >/dev/null; then
16505 lt_cv_prog_compiler_static_works_CXX=yes
16506 fi
16507 else
16508 lt_cv_prog_compiler_static_works_CXX=yes
16509 fi
16510 fi
16511 $RM -r conftest*
16512 LDFLAGS="$save_LDFLAGS"
16513
16514fi
cristy8b350f62009-11-15 23:12:43 +000016515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016516$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16517
16518if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16519 :
16520else
16521 lt_prog_compiler_static_CXX=
16522fi
16523
16524
16525
16526
cristy8b350f62009-11-15 23:12:43 +000016527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016528$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016529if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016530 $as_echo_n "(cached) " >&6
16531else
16532 lt_cv_prog_compiler_c_o_CXX=no
16533 $RM -r conftest 2>/dev/null
16534 mkdir conftest
16535 cd conftest
16536 mkdir out
16537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16538
16539 lt_compiler_flag="-o out/conftest2.$ac_objext"
16540 # Insert the option either (1) after the last *FLAGS variable, or
16541 # (2) before a word containing "conftest.", or (3) at the end.
16542 # Note that $ac_compile itself does not contain backslashes and begins
16543 # with a dollar sign (not a hyphen), so the echo should work correctly.
16544 lt_compile=`echo "$ac_compile" | $SED \
16545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16547 -e 's:$: $lt_compiler_flag:'`
cristy8b350f62009-11-15 23:12:43 +000016548 (eval echo "\"\$as_me:16548: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016549 (eval "$lt_compile" 2>out/conftest.err)
16550 ac_status=$?
16551 cat out/conftest.err >&5
cristy8b350f62009-11-15 23:12:43 +000016552 echo "$as_me:16552: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016553 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16554 then
16555 # The compiler can only warn and ignore the option if not recognized
16556 # So say no if there are warnings
16557 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16558 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16559 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16560 lt_cv_prog_compiler_c_o_CXX=yes
16561 fi
16562 fi
16563 chmod u+w . 2>&5
16564 $RM conftest*
16565 # SGI C++ compiler will create directory out/ii_files/ for
16566 # template instantiation
16567 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16568 $RM out/* && rmdir out
16569 cd ..
16570 $RM -r conftest
16571 $RM conftest*
16572
16573fi
cristy8b350f62009-11-15 23:12:43 +000016574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016575$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16576
16577
16578
cristy8b350f62009-11-15 23:12:43 +000016579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016580$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016581if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016582 $as_echo_n "(cached) " >&6
16583else
16584 lt_cv_prog_compiler_c_o_CXX=no
16585 $RM -r conftest 2>/dev/null
16586 mkdir conftest
16587 cd conftest
16588 mkdir out
16589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16590
16591 lt_compiler_flag="-o out/conftest2.$ac_objext"
16592 # Insert the option either (1) after the last *FLAGS variable, or
16593 # (2) before a word containing "conftest.", or (3) at the end.
16594 # Note that $ac_compile itself does not contain backslashes and begins
16595 # with a dollar sign (not a hyphen), so the echo should work correctly.
16596 lt_compile=`echo "$ac_compile" | $SED \
16597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16599 -e 's:$: $lt_compiler_flag:'`
cristy8b350f62009-11-15 23:12:43 +000016600 (eval echo "\"\$as_me:16600: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016601 (eval "$lt_compile" 2>out/conftest.err)
16602 ac_status=$?
16603 cat out/conftest.err >&5
cristy8b350f62009-11-15 23:12:43 +000016604 echo "$as_me:16604: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016605 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16606 then
16607 # The compiler can only warn and ignore the option if not recognized
16608 # So say no if there are warnings
16609 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16610 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16611 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16612 lt_cv_prog_compiler_c_o_CXX=yes
16613 fi
16614 fi
16615 chmod u+w . 2>&5
16616 $RM conftest*
16617 # SGI C++ compiler will create directory out/ii_files/ for
16618 # template instantiation
16619 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16620 $RM out/* && rmdir out
16621 cd ..
16622 $RM -r conftest
16623 $RM conftest*
16624
16625fi
cristy8b350f62009-11-15 23:12:43 +000016626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016627$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16628
16629
16630
16631
16632hard_links="nottested"
16633if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16634 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000016635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016636$as_echo_n "checking if we can lock with hard links... " >&6; }
16637 hard_links=yes
16638 $RM conftest*
16639 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16640 touch conftest.a
16641 ln conftest.a conftest.b 2>&5 || hard_links=no
16642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000016643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016644$as_echo "$hard_links" >&6; }
16645 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000016646 { $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 +000016647$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16648 need_locks=warn
16649 fi
16650else
16651 need_locks=no
16652fi
16653
16654
16655
cristy8b350f62009-11-15 23:12:43 +000016656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016657$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16658
16659 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16660 case $host_os in
16661 aix[4-9]*)
16662 # If we're using GNU nm, then we don't want the "-C" option.
16663 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16664 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16665 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'
16666 else
16667 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'
16668 fi
16669 ;;
16670 pw32*)
16671 export_symbols_cmds_CXX="$ltdll_cmds"
16672 ;;
16673 cygwin* | mingw* | cegcc*)
16674 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'
16675 ;;
16676 *)
16677 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16678 ;;
16679 esac
16680 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16681
cristy8b350f62009-11-15 23:12:43 +000016682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016683$as_echo "$ld_shlibs_CXX" >&6; }
16684test "$ld_shlibs_CXX" = no && can_build_shared=no
16685
16686with_gnu_ld_CXX=$with_gnu_ld
16687
16688
16689
16690
16691
16692
16693#
16694# Do we need to explicitly link libc?
16695#
16696case "x$archive_cmds_need_lc_CXX" in
16697x|xyes)
16698 # Assume -lc should be added
16699 archive_cmds_need_lc_CXX=yes
16700
16701 if test "$enable_shared" = yes && test "$GCC" = yes; then
16702 case $archive_cmds_CXX in
16703 *'~'*)
16704 # FIXME: we may have to deal with multi-command sequences.
16705 ;;
16706 '$CC '*)
16707 # Test whether the compiler implicitly links with -lc since on some
16708 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16709 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000016710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000016711$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16712 $RM conftest*
16713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16714
cristy8b350f62009-11-15 23:12:43 +000016715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016716 (eval $ac_compile) 2>&5
16717 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16719 test $ac_status = 0; } 2>conftest.err; then
cristy3ed852e2009-09-05 21:47:34 +000016720 soname=conftest
16721 lib=conftest
16722 libobjs=conftest.$ac_objext
16723 deplibs=
16724 wl=$lt_prog_compiler_wl_CXX
16725 pic_flag=$lt_prog_compiler_pic_CXX
16726 compiler_flags=-v
16727 linker_flags=-v
16728 verstring=
16729 output_objdir=.
16730 libname=conftest
16731 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16732 allow_undefined_flag_CXX=
cristy8b350f62009-11-15 23:12:43 +000016733 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 +000016734 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16735 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16737 test $ac_status = 0; }
cristy3ed852e2009-09-05 21:47:34 +000016738 then
16739 archive_cmds_need_lc_CXX=no
16740 else
16741 archive_cmds_need_lc_CXX=yes
16742 fi
16743 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16744 else
16745 cat conftest.err 1>&5
16746 fi
16747 $RM conftest*
cristy8b350f62009-11-15 23:12:43 +000016748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016749$as_echo "$archive_cmds_need_lc_CXX" >&6; }
16750 ;;
16751 esac
16752 fi
16753 ;;
16754esac
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
cristy8b350f62009-11-15 23:12:43 +000016819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000016820$as_echo_n "checking dynamic linker characteristics... " >&6; }
16821
16822library_names_spec=
16823libname_spec='lib$name'
16824soname_spec=
16825shrext_cmds=".so"
16826postinstall_cmds=
16827postuninstall_cmds=
16828finish_cmds=
16829finish_eval=
16830shlibpath_var=
16831shlibpath_overrides_runpath=unknown
16832version_type=none
16833dynamic_linker="$host_os ld.so"
16834sys_lib_dlsearch_path_spec="/lib /usr/lib"
16835need_lib_prefix=unknown
16836hardcode_into_libs=no
16837
16838# when you set need_version to no, make sure it does not cause -set_version
16839# flags to be left without arguments
16840need_version=unknown
16841
16842case $host_os in
16843aix3*)
16844 version_type=linux
16845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16846 shlibpath_var=LIBPATH
16847
16848 # AIX 3 has no versioning support, so we append a major version to the name.
16849 soname_spec='${libname}${release}${shared_ext}$major'
16850 ;;
16851
16852aix[4-9]*)
16853 version_type=linux
16854 need_lib_prefix=no
16855 need_version=no
16856 hardcode_into_libs=yes
16857 if test "$host_cpu" = ia64; then
16858 # AIX 5 supports IA64
16859 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16860 shlibpath_var=LD_LIBRARY_PATH
16861 else
16862 # With GCC up to 2.95.x, collect2 would create an import file
16863 # for dependence libraries. The import file would start with
16864 # the line `#! .'. This would cause the generated library to
16865 # depend on `.', always an invalid library. This was fixed in
16866 # development snapshots of GCC prior to 3.0.
16867 case $host_os in
16868 aix4 | aix4.[01] | aix4.[01].*)
16869 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16870 echo ' yes '
16871 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16872 :
16873 else
16874 can_build_shared=no
16875 fi
16876 ;;
16877 esac
16878 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16879 # soname into executable. Probably we can add versioning support to
16880 # collect2, so additional links can be useful in future.
16881 if test "$aix_use_runtimelinking" = yes; then
16882 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16883 # instead of lib<name>.a to let people know that these are not
16884 # typical AIX shared libraries.
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886 else
16887 # We preserve .a as extension for shared libraries through AIX4.2
16888 # and later when we are not doing run time linking.
16889 library_names_spec='${libname}${release}.a $libname.a'
16890 soname_spec='${libname}${release}${shared_ext}$major'
16891 fi
16892 shlibpath_var=LIBPATH
16893 fi
16894 ;;
16895
16896amigaos*)
16897 case $host_cpu in
16898 powerpc)
16899 # Since July 2007 AmigaOS4 officially supports .so libraries.
16900 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16902 ;;
16903 m68k)
16904 library_names_spec='$libname.ixlibrary $libname.a'
16905 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16906 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'
16907 ;;
16908 esac
16909 ;;
16910
16911beos*)
16912 library_names_spec='${libname}${shared_ext}'
16913 dynamic_linker="$host_os ld.so"
16914 shlibpath_var=LIBRARY_PATH
16915 ;;
16916
16917bsdi[45]*)
16918 version_type=linux
16919 need_version=no
16920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16921 soname_spec='${libname}${release}${shared_ext}$major'
16922 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16923 shlibpath_var=LD_LIBRARY_PATH
16924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16925 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16926 # the default ld.so.conf also contains /usr/contrib/lib and
16927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16928 # libtool to hard-code these into programs
16929 ;;
16930
16931cygwin* | mingw* | pw32* | cegcc*)
16932 version_type=windows
16933 shrext_cmds=".dll"
16934 need_version=no
16935 need_lib_prefix=no
16936
16937 case $GCC,$host_os in
16938 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16939 library_names_spec='$libname.dll.a'
16940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16941 postinstall_cmds='base_file=`basename \${file}`~
16942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16943 dldir=$destdir/`dirname \$dlpath`~
16944 test -d \$dldir || mkdir -p \$dldir~
16945 $install_prog $dir/$dlname \$dldir/$dlname~
16946 chmod a+x \$dldir/$dlname~
16947 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16948 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16949 fi'
16950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16951 dlpath=$dir/\$dldll~
16952 $RM \$dlpath'
16953 shlibpath_overrides_runpath=yes
16954
16955 case $host_os in
16956 cygwin*)
16957 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16958 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16959 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16960 ;;
16961 mingw* | cegcc*)
16962 # MinGW DLLs use traditional 'lib' prefix
16963 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16964 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16965 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16966 # It is most probably a Windows format PATH printed by
16967 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16968 # path with ; separators, and with drive letters. We can handle the
16969 # drive letters (cygwin fileutils understands them), so leave them,
16970 # especially as we might pass files found there to a mingw objdump,
16971 # which wouldn't understand a cygwinified path. Ahh.
16972 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16973 else
16974 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16975 fi
16976 ;;
16977 pw32*)
16978 # pw32 DLLs use 'pw' prefix rather than 'lib'
16979 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16980 ;;
16981 esac
16982 ;;
16983
16984 *)
16985 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16986 ;;
16987 esac
16988 dynamic_linker='Win32 ld.exe'
16989 # FIXME: first we should search . and the directory the executable is in
16990 shlibpath_var=PATH
16991 ;;
16992
16993darwin* | rhapsody*)
16994 dynamic_linker="$host_os dyld"
16995 version_type=darwin
16996 need_lib_prefix=no
16997 need_version=no
16998 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16999 soname_spec='${libname}${release}${major}$shared_ext'
17000 shlibpath_overrides_runpath=yes
17001 shlibpath_var=DYLD_LIBRARY_PATH
17002 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17003
17004 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17005 ;;
17006
17007dgux*)
17008 version_type=linux
17009 need_lib_prefix=no
17010 need_version=no
17011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17012 soname_spec='${libname}${release}${shared_ext}$major'
17013 shlibpath_var=LD_LIBRARY_PATH
17014 ;;
17015
17016freebsd1*)
17017 dynamic_linker=no
17018 ;;
17019
17020freebsd* | dragonfly*)
17021 # DragonFly does not have aout. When/if they implement a new
17022 # versioning mechanism, adjust this.
17023 if test -x /usr/bin/objformat; then
17024 objformat=`/usr/bin/objformat`
17025 else
17026 case $host_os in
17027 freebsd[123]*) objformat=aout ;;
17028 *) objformat=elf ;;
17029 esac
17030 fi
17031 version_type=freebsd-$objformat
17032 case $version_type in
17033 freebsd-elf*)
17034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17035 need_version=no
17036 need_lib_prefix=no
17037 ;;
17038 freebsd-*)
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17040 need_version=yes
17041 ;;
17042 esac
17043 shlibpath_var=LD_LIBRARY_PATH
17044 case $host_os in
17045 freebsd2*)
17046 shlibpath_overrides_runpath=yes
17047 ;;
17048 freebsd3.[01]* | freebsdelf3.[01]*)
17049 shlibpath_overrides_runpath=yes
17050 hardcode_into_libs=yes
17051 ;;
17052 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17053 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17054 shlibpath_overrides_runpath=no
17055 hardcode_into_libs=yes
17056 ;;
17057 *) # from 4.6 on, and DragonFly
17058 shlibpath_overrides_runpath=yes
17059 hardcode_into_libs=yes
17060 ;;
17061 esac
17062 ;;
17063
17064gnu*)
17065 version_type=linux
17066 need_lib_prefix=no
17067 need_version=no
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 shlibpath_var=LD_LIBRARY_PATH
17071 hardcode_into_libs=yes
17072 ;;
17073
17074hpux9* | hpux10* | hpux11*)
17075 # Give a soname corresponding to the major version so that dld.sl refuses to
17076 # link against other versions.
17077 version_type=sunos
17078 need_lib_prefix=no
17079 need_version=no
17080 case $host_cpu in
17081 ia64*)
17082 shrext_cmds='.so'
17083 hardcode_into_libs=yes
17084 dynamic_linker="$host_os dld.so"
17085 shlibpath_var=LD_LIBRARY_PATH
17086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 if test "X$HPUX_IA64_MODE" = X32; then
17090 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17091 else
17092 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17093 fi
17094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17095 ;;
17096 hppa*64*)
17097 shrext_cmds='.sl'
17098 hardcode_into_libs=yes
17099 dynamic_linker="$host_os dld.sl"
17100 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17103 soname_spec='${libname}${release}${shared_ext}$major'
17104 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17106 ;;
17107 *)
17108 shrext_cmds='.sl'
17109 dynamic_linker="$host_os dld.sl"
17110 shlibpath_var=SHLIB_PATH
17111 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17113 soname_spec='${libname}${release}${shared_ext}$major'
17114 ;;
17115 esac
17116 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17117 postinstall_cmds='chmod 555 $lib'
17118 ;;
17119
17120interix[3-9]*)
17121 version_type=linux
17122 need_lib_prefix=no
17123 need_version=no
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17125 soname_spec='${libname}${release}${shared_ext}$major'
17126 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17127 shlibpath_var=LD_LIBRARY_PATH
17128 shlibpath_overrides_runpath=no
17129 hardcode_into_libs=yes
17130 ;;
17131
17132irix5* | irix6* | nonstopux*)
17133 case $host_os in
17134 nonstopux*) version_type=nonstopux ;;
17135 *)
17136 if test "$lt_cv_prog_gnu_ld" = yes; then
17137 version_type=linux
17138 else
17139 version_type=irix
17140 fi ;;
17141 esac
17142 need_lib_prefix=no
17143 need_version=no
17144 soname_spec='${libname}${release}${shared_ext}$major'
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17146 case $host_os in
17147 irix5* | nonstopux*)
17148 libsuff= shlibsuff=
17149 ;;
17150 *)
17151 case $LD in # libtool.m4 will add one of these switches to LD
17152 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17153 libsuff= shlibsuff= libmagic=32-bit;;
17154 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17155 libsuff=32 shlibsuff=N32 libmagic=N32;;
17156 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17157 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17158 *) libsuff= shlibsuff= libmagic=never-match;;
17159 esac
17160 ;;
17161 esac
17162 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17163 shlibpath_overrides_runpath=no
17164 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17165 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17166 hardcode_into_libs=yes
17167 ;;
17168
17169# No shared lib support for Linux oldld, aout, or coff.
17170linux*oldld* | linux*aout* | linux*coff*)
17171 dynamic_linker=no
17172 ;;
17173
17174# This must be Linux ELF.
17175linux* | k*bsd*-gnu)
17176 version_type=linux
17177 need_lib_prefix=no
17178 need_version=no
17179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17180 soname_spec='${libname}${release}${shared_ext}$major'
17181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17182 shlibpath_var=LD_LIBRARY_PATH
17183 shlibpath_overrides_runpath=no
17184 # Some binutils ld are patched to set DT_RUNPATH
17185 save_LDFLAGS=$LDFLAGS
17186 save_libdir=$libdir
17187 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17188 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
cristy8b350f62009-11-15 23:12:43 +000017189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017190/* end confdefs.h. */
17191
17192int
17193main ()
17194{
17195
17196 ;
17197 return 0;
17198}
17199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017200if ac_fn_cxx_try_link "$LINENO"; then :
17201 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy3ed852e2009-09-05 21:47:34 +000017202 shlibpath_overrides_runpath=yes
17203fi
cristy3ed852e2009-09-05 21:47:34 +000017204fi
cristy8b350f62009-11-15 23:12:43 +000017205rm -f core conftest.err conftest.$ac_objext \
17206 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017207 LDFLAGS=$save_LDFLAGS
17208 libdir=$save_libdir
17209
17210 # This implies no fast_install, which is unacceptable.
17211 # Some rework will be needed to allow for fast_install
17212 # before this can be enabled.
17213 hardcode_into_libs=yes
17214
17215 # Add ABI-specific directories to the system library path.
17216 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17217
17218 # Append ld.so.conf contents to the search path
17219 if test -f /etc/ld.so.conf; then
17220 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' ' '`
17221 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17222 fi
17223
17224 # We used to test for /lib/ld.so.1 and disable shared libraries on
17225 # powerpc, because MkLinux only supported shared libraries with the
17226 # GNU dynamic linker. Since this was broken with cross compilers,
17227 # most powerpc-linux boxes support dynamic linking these days and
17228 # people can always --disable-shared, the test was removed, and we
17229 # assume the GNU/Linux dynamic linker is in use.
17230 dynamic_linker='GNU/Linux ld.so'
17231 ;;
17232
17233netbsd*)
17234 version_type=sunos
17235 need_lib_prefix=no
17236 need_version=no
17237 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17240 dynamic_linker='NetBSD (a.out) ld.so'
17241 else
17242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17243 soname_spec='${libname}${release}${shared_ext}$major'
17244 dynamic_linker='NetBSD ld.elf_so'
17245 fi
17246 shlibpath_var=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath=yes
17248 hardcode_into_libs=yes
17249 ;;
17250
17251newsos6)
17252 version_type=linux
17253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17254 shlibpath_var=LD_LIBRARY_PATH
17255 shlibpath_overrides_runpath=yes
17256 ;;
17257
17258*nto* | *qnx*)
17259 version_type=qnx
17260 need_lib_prefix=no
17261 need_version=no
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263 soname_spec='${libname}${release}${shared_ext}$major'
17264 shlibpath_var=LD_LIBRARY_PATH
17265 shlibpath_overrides_runpath=no
17266 hardcode_into_libs=yes
17267 dynamic_linker='ldqnx.so'
17268 ;;
17269
17270openbsd*)
17271 version_type=sunos
17272 sys_lib_dlsearch_path_spec="/usr/lib"
17273 need_lib_prefix=no
17274 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17275 case $host_os in
17276 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17277 *) need_version=no ;;
17278 esac
17279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17281 shlibpath_var=LD_LIBRARY_PATH
17282 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17283 case $host_os in
17284 openbsd2.[89] | openbsd2.[89].*)
17285 shlibpath_overrides_runpath=no
17286 ;;
17287 *)
17288 shlibpath_overrides_runpath=yes
17289 ;;
17290 esac
17291 else
17292 shlibpath_overrides_runpath=yes
17293 fi
17294 ;;
17295
17296os2*)
17297 libname_spec='$name'
17298 shrext_cmds=".dll"
17299 need_lib_prefix=no
17300 library_names_spec='$libname${shared_ext} $libname.a'
17301 dynamic_linker='OS/2 ld.exe'
17302 shlibpath_var=LIBPATH
17303 ;;
17304
17305osf3* | osf4* | osf5*)
17306 version_type=osf
17307 need_lib_prefix=no
17308 need_version=no
17309 soname_spec='${libname}${release}${shared_ext}$major'
17310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17311 shlibpath_var=LD_LIBRARY_PATH
17312 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17313 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17314 ;;
17315
17316rdos*)
17317 dynamic_linker=no
17318 ;;
17319
17320solaris*)
17321 version_type=linux
17322 need_lib_prefix=no
17323 need_version=no
17324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17325 soname_spec='${libname}${release}${shared_ext}$major'
17326 shlibpath_var=LD_LIBRARY_PATH
17327 shlibpath_overrides_runpath=yes
17328 hardcode_into_libs=yes
17329 # ldd complains unless libraries are executable
17330 postinstall_cmds='chmod +x $lib'
17331 ;;
17332
17333sunos4*)
17334 version_type=sunos
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17336 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17337 shlibpath_var=LD_LIBRARY_PATH
17338 shlibpath_overrides_runpath=yes
17339 if test "$with_gnu_ld" = yes; then
17340 need_lib_prefix=no
17341 fi
17342 need_version=yes
17343 ;;
17344
17345sysv4 | sysv4.3*)
17346 version_type=linux
17347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348 soname_spec='${libname}${release}${shared_ext}$major'
17349 shlibpath_var=LD_LIBRARY_PATH
17350 case $host_vendor in
17351 sni)
17352 shlibpath_overrides_runpath=no
17353 need_lib_prefix=no
17354 runpath_var=LD_RUN_PATH
17355 ;;
17356 siemens)
17357 need_lib_prefix=no
17358 ;;
17359 motorola)
17360 need_lib_prefix=no
17361 need_version=no
17362 shlibpath_overrides_runpath=no
17363 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17364 ;;
17365 esac
17366 ;;
17367
17368sysv4*MP*)
17369 if test -d /usr/nec ;then
17370 version_type=linux
17371 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17372 soname_spec='$libname${shared_ext}.$major'
17373 shlibpath_var=LD_LIBRARY_PATH
17374 fi
17375 ;;
17376
17377sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17378 version_type=freebsd-elf
17379 need_lib_prefix=no
17380 need_version=no
17381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17382 soname_spec='${libname}${release}${shared_ext}$major'
17383 shlibpath_var=LD_LIBRARY_PATH
17384 shlibpath_overrides_runpath=yes
17385 hardcode_into_libs=yes
17386 if test "$with_gnu_ld" = yes; then
17387 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17388 else
17389 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17390 case $host_os in
17391 sco3.2v5*)
17392 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17393 ;;
17394 esac
17395 fi
17396 sys_lib_dlsearch_path_spec='/usr/lib'
17397 ;;
17398
17399tpf*)
17400 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17401 version_type=linux
17402 need_lib_prefix=no
17403 need_version=no
17404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17405 shlibpath_var=LD_LIBRARY_PATH
17406 shlibpath_overrides_runpath=no
17407 hardcode_into_libs=yes
17408 ;;
17409
17410uts4*)
17411 version_type=linux
17412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17413 soname_spec='${libname}${release}${shared_ext}$major'
17414 shlibpath_var=LD_LIBRARY_PATH
17415 ;;
17416
17417*)
17418 dynamic_linker=no
17419 ;;
17420esac
cristy8b350f62009-11-15 23:12:43 +000017421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000017422$as_echo "$dynamic_linker" >&6; }
17423test "$dynamic_linker" = no && can_build_shared=no
17424
17425variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17426if test "$GCC" = yes; then
17427 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17428fi
17429
17430if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17431 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17432fi
17433if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17434 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17435fi
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
cristy8b350f62009-11-15 23:12:43 +000017472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000017473$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17474hardcode_action_CXX=
17475if test -n "$hardcode_libdir_flag_spec_CXX" ||
17476 test -n "$runpath_var_CXX" ||
17477 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17478
17479 # We can hardcode non-existent directories.
17480 if test "$hardcode_direct_CXX" != no &&
17481 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17482 # have to relink, otherwise we might link with an installed library
17483 # when we should be linking with a yet-to-be-installed one
17484 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17485 test "$hardcode_minus_L_CXX" != no; then
17486 # Linking always hardcodes the temporary library directory.
17487 hardcode_action_CXX=relink
17488 else
17489 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17490 hardcode_action_CXX=immediate
17491 fi
17492else
17493 # We cannot hardcode anything, or else we can only hardcode existing
17494 # directories.
17495 hardcode_action_CXX=unsupported
17496fi
cristy8b350f62009-11-15 23:12:43 +000017497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017498$as_echo "$hardcode_action_CXX" >&6; }
17499
17500if test "$hardcode_action_CXX" = relink ||
17501 test "$inherit_rpath_CXX" = yes; then
17502 # Fast installation is not supported
17503 enable_fast_install=no
17504elif test "$shlibpath_overrides_runpath" = yes ||
17505 test "$enable_shared" = no; then
17506 # Fast installation is not necessary
17507 enable_fast_install=needless
17508fi
17509
17510
17511
17512
17513
17514
17515
17516 fi # test -n "$compiler"
17517
17518 CC=$lt_save_CC
17519 LDCXX=$LD
17520 LD=$lt_save_LD
17521 GCC=$lt_save_GCC
17522 with_gnu_ld=$lt_save_with_gnu_ld
17523 lt_cv_path_LDCXX=$lt_cv_path_LD
17524 lt_cv_path_LD=$lt_save_path_LD
17525 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17526 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17527fi # test "$_lt_caught_CXX_error" != yes
17528
17529ac_ext=c
17530ac_cpp='$CPP $CPPFLAGS'
17531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17533ac_compiler_gnu=$ac_cv_c_compiler_gnu
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547 ac_config_commands="$ac_config_commands libtool"
17548
17549
17550
17551
17552# Only expand once:
17553
17554
17555
17556
17557
17558# Configure libltdl
17559
17560
17561
17562
17563
17564
17565
17566
cristy8b350f62009-11-15 23:12:43 +000017567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000017568$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017569if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017570 $as_echo_n "(cached) " >&6
17571else
17572
17573module=yes
17574eval libltdl_cv_shlibext=$shrext_cmds
17575
17576fi
cristy8b350f62009-11-15 23:12:43 +000017577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017578$as_echo "$libltdl_cv_shlibext" >&6; }
17579if test -n "$libltdl_cv_shlibext"; then
17580
17581cat >>confdefs.h <<_ACEOF
17582#define LT_MODULE_EXT "$libltdl_cv_shlibext"
17583_ACEOF
17584
17585fi
17586
cristy8b350f62009-11-15 23:12:43 +000017587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017588$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017589if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017590 $as_echo_n "(cached) " >&6
17591else
17592 lt_cv_module_path_var="$shlibpath_var"
17593fi
cristy8b350f62009-11-15 23:12:43 +000017594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000017595$as_echo "$lt_cv_module_path_var" >&6; }
17596if test -n "$lt_cv_module_path_var"; then
17597
17598cat >>confdefs.h <<_ACEOF
17599#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
17600_ACEOF
17601
17602fi
17603
cristy8b350f62009-11-15 23:12:43 +000017604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017605$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017606if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017607 $as_echo_n "(cached) " >&6
17608else
17609 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
17610fi
cristy8b350f62009-11-15 23:12:43 +000017611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017612$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
17613if test -n "$lt_cv_sys_dlsearch_path"; then
17614 sys_dlsearch_path=
17615 for dir in $lt_cv_sys_dlsearch_path; do
17616 if test -z "$sys_dlsearch_path"; then
17617 sys_dlsearch_path="$dir"
17618 else
17619 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
17620 fi
17621 done
17622
17623cat >>confdefs.h <<_ACEOF
17624#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
17625_ACEOF
17626
17627fi
17628
17629
17630LT_DLLOADERS=
17631
17632
17633ac_ext=c
17634ac_cpp='$CPP $CPPFLAGS'
17635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17637ac_compiler_gnu=$ac_cv_c_compiler_gnu
17638
17639
17640LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000017641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017642$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017643if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017644 $as_echo_n "(cached) " >&6
17645else
17646 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000017647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017648/* end confdefs.h. */
17649
17650/* Override any GCC internal prototype to avoid an error.
17651 Use char because int might match the return type of a GCC
17652 builtin and then its argument prototype would still apply. */
17653#ifdef __cplusplus
17654extern "C"
17655#endif
17656char dlopen ();
17657int
17658main ()
17659{
17660return dlopen ();
17661 ;
17662 return 0;
17663}
17664_ACEOF
17665for ac_lib in '' dl; do
17666 if test -z "$ac_lib"; then
17667 ac_res="none required"
17668 else
17669 ac_res=-l$ac_lib
17670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17671 fi
cristy8b350f62009-11-15 23:12:43 +000017672 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017673 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000017674fi
cristy8b350f62009-11-15 23:12:43 +000017675rm -f core conftest.err conftest.$ac_objext \
17676 conftest$ac_exeext
17677 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017678 break
17679fi
17680done
cristy8b350f62009-11-15 23:12:43 +000017681if test "${ac_cv_search_dlopen+set}" = set; then :
17682
cristy3ed852e2009-09-05 21:47:34 +000017683else
17684 ac_cv_search_dlopen=no
17685fi
17686rm conftest.$ac_ext
17687LIBS=$ac_func_search_save_LIBS
17688fi
cristy8b350f62009-11-15 23:12:43 +000017689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017690$as_echo "$ac_cv_search_dlopen" >&6; }
17691ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000017692if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000017693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17694
cristy8b350f62009-11-15 23:12:43 +000017695$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017696
17697 if test "$ac_cv_search_dlopen" != "none required" ; then
17698 LIBADD_DLOPEN="-ldl"
17699 fi
17700 libltdl_cv_lib_dl_dlopen="yes"
17701 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17702else
cristy8b350f62009-11-15 23:12:43 +000017703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017704/* end confdefs.h. */
17705#if HAVE_DLFCN_H
17706# include <dlfcn.h>
17707#endif
17708
17709int
17710main ()
17711{
17712dlopen(0, 0);
17713 ;
17714 return 0;
17715}
17716_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017717if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017718
cristy8b350f62009-11-15 23:12:43 +000017719$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017720
17721 libltdl_cv_func_dlopen="yes"
17722 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17723else
cristy8b350f62009-11-15 23:12:43 +000017724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017725$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017726if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017727 $as_echo_n "(cached) " >&6
17728else
17729 ac_check_lib_save_LIBS=$LIBS
17730LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017732/* end confdefs.h. */
17733
17734/* Override any GCC internal prototype to avoid an error.
17735 Use char because int might match the return type of a GCC
17736 builtin and then its argument prototype would still apply. */
17737#ifdef __cplusplus
17738extern "C"
17739#endif
17740char dlopen ();
17741int
17742main ()
17743{
17744return dlopen ();
17745 ;
17746 return 0;
17747}
17748_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017749if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017750 ac_cv_lib_svld_dlopen=yes
17751else
cristy8b350f62009-11-15 23:12:43 +000017752 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000017753fi
cristy8b350f62009-11-15 23:12:43 +000017754rm -f core conftest.err conftest.$ac_objext \
17755 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017756LIBS=$ac_check_lib_save_LIBS
17757fi
cristy8b350f62009-11-15 23:12:43 +000017758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017759$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017760if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017761
cristy8b350f62009-11-15 23:12:43 +000017762$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017763
17764 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
17765 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17766fi
17767
17768fi
cristy8b350f62009-11-15 23:12:43 +000017769rm -f core conftest.err conftest.$ac_objext \
17770 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017771fi
17772
17773if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17774then
17775 lt_save_LIBS="$LIBS"
17776 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000017777 for ac_func in dlerror
17778do :
17779 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
17780if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017781 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017782#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000017783_ACEOF
17784
17785fi
17786done
17787
17788 LIBS="$lt_save_LIBS"
17789fi
17790
17791
17792LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000017793ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17794if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017795
cristy8b350f62009-11-15 23:12:43 +000017796$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017797
17798 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17799else
cristy8b350f62009-11-15 23:12:43 +000017800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017801$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017802if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017803 $as_echo_n "(cached) " >&6
17804else
17805 ac_check_lib_save_LIBS=$LIBS
17806LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017808/* end confdefs.h. */
17809
17810/* Override any GCC internal prototype to avoid an error.
17811 Use char because int might match the return type of a GCC
17812 builtin and then its argument prototype would still apply. */
17813#ifdef __cplusplus
17814extern "C"
17815#endif
17816char shl_load ();
17817int
17818main ()
17819{
17820return shl_load ();
17821 ;
17822 return 0;
17823}
17824_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017825if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017826 ac_cv_lib_dld_shl_load=yes
17827else
cristy8b350f62009-11-15 23:12:43 +000017828 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000017829fi
cristy8b350f62009-11-15 23:12:43 +000017830rm -f core conftest.err conftest.$ac_objext \
17831 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017832LIBS=$ac_check_lib_save_LIBS
17833fi
cristy8b350f62009-11-15 23:12:43 +000017834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000017835$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017836if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017837
cristy8b350f62009-11-15 23:12:43 +000017838$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017839
17840 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17841 LIBADD_SHL_LOAD="-ldld"
17842fi
17843
17844fi
17845
17846
17847
17848case $host_os in
17849darwin[1567].*)
17850# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000017851 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
17852if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017853
cristy8b350f62009-11-15 23:12:43 +000017854$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017855
17856 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
17857fi
17858
17859 ;;
17860beos*)
17861 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
17862 ;;
17863cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000017864 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
17865"
17866if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
17867 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000017868else
cristy8b350f62009-11-15 23:12:43 +000017869 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000017870fi
17871
cristy3ed852e2009-09-05 21:47:34 +000017872cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017873#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000017874_ACEOF
17875
cristy3ed852e2009-09-05 21:47:34 +000017876 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
17877 ;;
17878esac
17879
cristy8b350f62009-11-15 23:12:43 +000017880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017881$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017882if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017883 $as_echo_n "(cached) " >&6
17884else
17885 ac_check_lib_save_LIBS=$LIBS
17886LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017888/* end confdefs.h. */
17889
17890/* Override any GCC internal prototype to avoid an error.
17891 Use char because int might match the return type of a GCC
17892 builtin and then its argument prototype would still apply. */
17893#ifdef __cplusplus
17894extern "C"
17895#endif
17896char dld_link ();
17897int
17898main ()
17899{
17900return dld_link ();
17901 ;
17902 return 0;
17903}
17904_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017905if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017906 ac_cv_lib_dld_dld_link=yes
17907else
cristy8b350f62009-11-15 23:12:43 +000017908 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000017909fi
cristy8b350f62009-11-15 23:12:43 +000017910rm -f core conftest.err conftest.$ac_objext \
17911 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017912LIBS=$ac_check_lib_save_LIBS
17913fi
cristy8b350f62009-11-15 23:12:43 +000017914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000017915$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017916if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017917
cristy8b350f62009-11-15 23:12:43 +000017918$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017919
17920 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
17921fi
17922
17923
17924
17925
17926LT_DLPREOPEN=
17927if test -n "$LT_DLLOADERS"
17928then
17929 for lt_loader in $LT_DLLOADERS; do
17930 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
17931 done
17932
cristy8b350f62009-11-15 23:12:43 +000017933$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017934
17935fi
17936
17937
17938LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
17939
17940
17941ac_ext=c
17942ac_cpp='$CPP $CPPFLAGS'
17943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17945ac_compiler_gnu=$ac_cv_c_compiler_gnu
17946
17947
cristy8b350f62009-11-15 23:12:43 +000017948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000017949$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017950if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017951 $as_echo_n "(cached) " >&6
17952else
17953 lt_cv_sys_symbol_underscore=no
17954 cat > conftest.$ac_ext <<_LT_EOF
17955void nm_test_func(){}
17956int main(){nm_test_func;return 0;}
17957_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000017958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017959 (eval $ac_compile) 2>&5
17960 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17962 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017963 # Now try to grab the symbols.
17964 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000017965 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 +000017966 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
17967 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17969 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000017970 # See whether the symbols have a leading underscore.
17971 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
17972 lt_cv_sys_symbol_underscore=yes
17973 else
17974 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
17975 :
17976 else
17977 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
17978 fi
17979 fi
17980 else
17981 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
17982 fi
17983 else
17984 echo "configure: failed program was:" >&5
17985 cat conftest.c >&5
17986 fi
17987 rm -rf conftest*
17988
17989fi
cristy8b350f62009-11-15 23:12:43 +000017990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000017991$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
17992 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
17993
17994
17995if test x"$lt_cv_sys_symbol_underscore" = xyes; then
17996 if test x"$libltdl_cv_func_dlopen" = xyes ||
17997 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000017998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000017999$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018000if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018001 $as_echo_n "(cached) " >&6
18002else
18003 libltdl_cv_need_uscore=unknown
18004 save_LIBS="$LIBS"
18005 LIBS="$LIBS $LIBADD_DLOPEN"
18006 if test "$cross_compiling" = yes; then :
18007 libltdl_cv_need_uscore=cross
18008else
18009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18010 lt_status=$lt_dlunknown
18011 cat > conftest.$ac_ext <<_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018012#line 18012 "configure"
cristy3ed852e2009-09-05 21:47:34 +000018013#include "confdefs.h"
18014
18015#if HAVE_DLFCN_H
18016#include <dlfcn.h>
18017#endif
18018
18019#include <stdio.h>
18020
18021#ifdef RTLD_GLOBAL
18022# define LT_DLGLOBAL RTLD_GLOBAL
18023#else
18024# ifdef DL_GLOBAL
18025# define LT_DLGLOBAL DL_GLOBAL
18026# else
18027# define LT_DLGLOBAL 0
18028# endif
18029#endif
18030
18031/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18032 find out it does not work in some platform. */
18033#ifndef LT_DLLAZY_OR_NOW
18034# ifdef RTLD_LAZY
18035# define LT_DLLAZY_OR_NOW RTLD_LAZY
18036# else
18037# ifdef DL_LAZY
18038# define LT_DLLAZY_OR_NOW DL_LAZY
18039# else
18040# ifdef RTLD_NOW
18041# define LT_DLLAZY_OR_NOW RTLD_NOW
18042# else
18043# ifdef DL_NOW
18044# define LT_DLLAZY_OR_NOW DL_NOW
18045# else
18046# define LT_DLLAZY_OR_NOW 0
18047# endif
18048# endif
18049# endif
18050# endif
18051#endif
18052
18053void fnord() { int i=42;}
18054int main ()
18055{
18056 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18057 int status = $lt_dlunknown;
18058
18059 if (self)
18060 {
18061 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18062 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18063 /* dlclose (self); */
18064 }
18065 else
18066 puts (dlerror ());
18067
18068 return status;
18069}
18070_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018072 (eval $ac_link) 2>&5
18073 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18075 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000018076 (./conftest; exit; ) >&5 2>/dev/null
18077 lt_status=$?
18078 case x$lt_status in
18079 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
18080 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
18081 x$lt_dlunknown|x*) ;;
18082 esac
18083 else :
18084 # compilation failed
18085
18086 fi
18087fi
18088rm -fr conftest*
18089
18090 LIBS="$save_LIBS"
18091
18092fi
cristy8b350f62009-11-15 23:12:43 +000018093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018094$as_echo "$libltdl_cv_need_uscore" >&6; }
18095 fi
18096fi
18097
18098if test x"$libltdl_cv_need_uscore" = xyes; then
18099
cristy8b350f62009-11-15 23:12:43 +000018100$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018101
18102fi
18103
cristy8b350f62009-11-15 23:12:43 +000018104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018105$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018106if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018107 $as_echo_n "(cached) " >&6
18108else
18109 # PORTME does your system automatically load deplibs for dlopen?
18110 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18111 # For now, we just catch OSes we know something about -- in the
18112 # future, we'll try test this programmatically.
18113 lt_cv_sys_dlopen_deplibs=unknown
18114 case $host_os in
18115 aix3*|aix4.1.*|aix4.2.*)
18116 # Unknown whether this is true for these versions of AIX, but
18117 # we want this `case' here to explicitly catch those versions.
18118 lt_cv_sys_dlopen_deplibs=unknown
18119 ;;
18120 aix[4-9]*)
18121 lt_cv_sys_dlopen_deplibs=yes
18122 ;;
18123 amigaos*)
18124 case $host_cpu in
18125 powerpc)
18126 lt_cv_sys_dlopen_deplibs=no
18127 ;;
18128 esac
18129 ;;
18130 darwin*)
18131 # Assuming the user has installed a libdl from somewhere, this is true
18132 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
18133 lt_cv_sys_dlopen_deplibs=yes
18134 ;;
18135 freebsd* | dragonfly*)
18136 lt_cv_sys_dlopen_deplibs=yes
18137 ;;
18138 gnu* | linux* | k*bsd*-gnu)
18139 # GNU and its variants, using gnu ld.so (Glibc)
18140 lt_cv_sys_dlopen_deplibs=yes
18141 ;;
18142 hpux10*|hpux11*)
18143 lt_cv_sys_dlopen_deplibs=yes
18144 ;;
18145 interix*)
18146 lt_cv_sys_dlopen_deplibs=yes
18147 ;;
18148 irix[12345]*|irix6.[01]*)
18149 # Catch all versions of IRIX before 6.2, and indicate that we don't
18150 # know how it worked for any of those versions.
18151 lt_cv_sys_dlopen_deplibs=unknown
18152 ;;
18153 irix*)
18154 # The case above catches anything before 6.2, and it's known that
18155 # at 6.2 and later dlopen does load deplibs.
18156 lt_cv_sys_dlopen_deplibs=yes
18157 ;;
18158 netbsd*)
18159 lt_cv_sys_dlopen_deplibs=yes
18160 ;;
18161 openbsd*)
18162 lt_cv_sys_dlopen_deplibs=yes
18163 ;;
18164 osf[1234]*)
18165 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18166 # it did *not* use an RPATH in a shared library to find objects the
18167 # library depends on, so we explicitly say `no'.
18168 lt_cv_sys_dlopen_deplibs=no
18169 ;;
18170 osf5.0|osf5.0a|osf5.1)
18171 # dlopen *does* load deplibs and with the right loader patch applied
18172 # it even uses RPATH in a shared library to search for shared objects
18173 # that the library depends on, but there's no easy way to know if that
18174 # patch is installed. Since this is the case, all we can really
18175 # say is unknown -- it depends on the patch being installed. If
18176 # it is, this changes to `yes'. Without it, it would be `no'.
18177 lt_cv_sys_dlopen_deplibs=unknown
18178 ;;
18179 osf*)
18180 # the two cases above should catch all versions of osf <= 5.1. Read
18181 # the comments above for what we know about them.
18182 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18183 # is used to find them so we can finally say `yes'.
18184 lt_cv_sys_dlopen_deplibs=yes
18185 ;;
18186 qnx*)
18187 lt_cv_sys_dlopen_deplibs=yes
18188 ;;
18189 solaris*)
18190 lt_cv_sys_dlopen_deplibs=yes
18191 ;;
18192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18193 libltdl_cv_sys_dlopen_deplibs=yes
18194 ;;
18195 esac
18196
18197fi
cristy8b350f62009-11-15 23:12:43 +000018198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018199$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18200if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18201
cristy8b350f62009-11-15 23:12:43 +000018202$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018203
18204fi
18205
18206:
18207
cristy3ed852e2009-09-05 21:47:34 +000018208for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000018209do :
18210 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18211"
18212if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018213 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018214#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000018215_ACEOF
18216
18217fi
18218
18219done
18220
18221
cristy8b350f62009-11-15 23:12:43 +000018222ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000018223# include <argz.h>
18224#endif
cristy8b350f62009-11-15 23:12:43 +000018225"
18226if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018227
18228cat >>confdefs.h <<_ACEOF
18229#define HAVE_ERROR_T 1
18230_ACEOF
18231
18232
18233else
18234
cristy8b350f62009-11-15 23:12:43 +000018235$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018236
18237
cristy8b350f62009-11-15 23:12:43 +000018238$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018239
18240fi
18241
18242
18243ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000018244for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
18245 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000018246do :
18247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18248ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18249eval as_val=\$$as_ac_var
18250 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018251 cat >>confdefs.h <<_ACEOF
18252#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18253_ACEOF
18254
18255else
18256 ARGZ_H=argz.h;
18257
18258 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18259
18260fi
18261done
18262
18263
cristy8b350f62009-11-15 23:12:43 +000018264if test -z "$ARGZ_H"; then :
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018266$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018267if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018268 $as_echo_n "(cached) " >&6
18269else
18270 case $host_os in #(
18271 *cygwin*)
18272 lt_cv_sys_argz_works=no
18273 if test "$cross_compiling" != no; then
18274 lt_cv_sys_argz_works="guessing no"
18275 else
18276 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
18277 save_IFS=$IFS
18278 IFS=-.
18279 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
18280 IFS=$save_IFS
18281 lt_os_major=${2-0}
18282 lt_os_minor=${3-0}
18283 lt_os_micro=${4-0}
18284 if test "$lt_os_major" -gt 1 \
18285 || { test "$lt_os_major" -eq 1 \
18286 && { test "$lt_os_minor" -gt 5 \
18287 || { test "$lt_os_minor" -eq 5 \
18288 && test "$lt_os_micro" -gt 24; }; }; }; then
18289 lt_cv_sys_argz_works=yes
18290 fi
18291 fi
18292 ;; #(
18293 *) lt_cv_sys_argz_works=yes ;;
18294 esac
18295fi
cristy8b350f62009-11-15 23:12:43 +000018296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018297$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018298 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018299
cristy8b350f62009-11-15 23:12:43 +000018300$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018301
18302else
18303 ARGZ_H=argz.h
18304
18305
18306 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18307
18308fi
cristy3ed852e2009-09-05 21:47:34 +000018309fi
18310
18311
18312
cristy8b350f62009-11-15 23:12:43 +000018313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018314$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018315if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018316 $as_echo_n "(cached) " >&6
18317else
18318 if test -n "$lt_cv_sys_global_symbol_pipe"; then
18319 libltdl_cv_preloaded_symbols=yes
18320 else
18321 libltdl_cv_preloaded_symbols=no
18322 fi
18323
18324fi
cristy8b350f62009-11-15 23:12:43 +000018325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018326$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
18327if test x"$libltdl_cv_preloaded_symbols" = xyes; then
18328
cristy8b350f62009-11-15 23:12:43 +000018329$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018330
18331fi
18332
18333# Set options
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000018346if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018347 withval=$with_included_ltdl;
18348fi
18349
18350
18351if test "x$with_included_ltdl" != xyes; then
18352 # We are not being forced to use the included libltdl sources, so
18353 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000018354 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000018355
cristy8b350f62009-11-15 23:12:43 +000018356"
18357if test "x$ac_cv_header_ltdl_h" = x""yes; then :
18358 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 +000018359 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000018360"
18361if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000018363$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018364if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018365 $as_echo_n "(cached) " >&6
18366else
18367 ac_check_lib_save_LIBS=$LIBS
18368LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018370/* end confdefs.h. */
18371
18372/* Override any GCC internal prototype to avoid an error.
18373 Use char because int might match the return type of a GCC
18374 builtin and then its argument prototype would still apply. */
18375#ifdef __cplusplus
18376extern "C"
18377#endif
18378char lt_dladvise_preload ();
18379int
18380main ()
18381{
18382return lt_dladvise_preload ();
18383 ;
18384 return 0;
18385}
18386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018387if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018388 ac_cv_lib_ltdl_lt_dladvise_preload=yes
18389else
cristy8b350f62009-11-15 23:12:43 +000018390 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000018391fi
cristy8b350f62009-11-15 23:12:43 +000018392rm -f core conftest.err conftest.$ac_objext \
18393 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018394LIBS=$ac_check_lib_save_LIBS
18395fi
cristy8b350f62009-11-15 23:12:43 +000018396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000018397$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018398if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018399 with_included_ltdl=no
18400else
18401 with_included_ltdl=yes
18402fi
18403
18404else
18405 with_included_ltdl=yes
18406fi
18407
18408else
18409 with_included_ltdl=yes
18410fi
18411
18412
18413fi
18414
18415
18416
18417
18418# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000018419if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018420 withval=$with_ltdl_include;
18421fi
18422
18423
18424if test -n "$with_ltdl_include"; then
18425 if test -f "$with_ltdl_include/ltdl.h"; then :
18426 else
cristy8b350f62009-11-15 23:12:43 +000018427 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018428 fi
18429else
18430 with_ltdl_include=no
18431fi
18432
18433
18434# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000018435if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018436 withval=$with_ltdl_lib;
18437fi
18438
18439
18440if test -n "$with_ltdl_lib"; then
18441 if test -f "$with_ltdl_lib/libltdl.la"; then :
18442 else
cristy8b350f62009-11-15 23:12:43 +000018443 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018444 fi
18445else
18446 with_ltdl_lib=no
18447fi
18448
18449case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
18450 ,yes,no,no,)
18451 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000018452 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000018453 "") enable_ltdl_convenience=yes
18454 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
18455esac
18456LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
18457LTDLDEPS=$LIBLTDL
18458LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
18459
18460
18461
18462
18463
18464# For backwards non-gettext consistent compatibility...
18465INCLTDL="$LTDLINCL"
18466
18467
18468 ;;
18469 ,no,no,no,)
18470 # If the included ltdl is not to be used, then use the
18471 # preinstalled libltdl we found.
18472
cristy8b350f62009-11-15 23:12:43 +000018473$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018474
18475 LIBLTDL=-lltdl
18476 LTDLDEPS=
18477 LTDLINCL=
18478 ;;
18479 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000018480 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018481 ;;
18482 *) with_included_ltdl=no
18483 LIBLTDL="-L$with_ltdl_lib -lltdl"
18484 LTDLDEPS=
18485 LTDLINCL="-I$with_ltdl_include"
18486 ;;
18487esac
18488INCLTDL="$LTDLINCL"
18489
18490# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000018491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000018492$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018494$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000018496$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018498$as_echo "$LIBLTDL" >&6; }
18499
18500
18501
18502# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000018503if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018504 enableval=$enable_ltdl_install;
18505fi
18506
18507
18508case ,${enable_ltdl_install},${enable_ltdl_convenience} in
18509 *yes*) ;;
18510 *) enable_ltdl_convenience=yes ;;
18511esac
18512
18513 if test x"${enable_ltdl_install-no}" != xno; then
18514 INSTALL_LTDL_TRUE=
18515 INSTALL_LTDL_FALSE='#'
18516else
18517 INSTALL_LTDL_TRUE='#'
18518 INSTALL_LTDL_FALSE=
18519fi
18520
18521 if test x"${enable_ltdl_convenience-no}" != xno; then
18522 CONVENIENCE_LTDL_TRUE=
18523 CONVENIENCE_LTDL_FALSE='#'
18524else
18525 CONVENIENCE_LTDL_TRUE='#'
18526 CONVENIENCE_LTDL_FALSE=
18527fi
18528
18529
18530
18531
18532
18533
18534
18535# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
18536# the user used. This is so that ltdl.h can pick up the parent projects
18537# config.h file, The first file in AC_CONFIG_HEADERS must contain the
18538# definitions required by ltdl.c.
18539# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
18540
18541
18542
cristy3ed852e2009-09-05 21:47:34 +000018543for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000018544do :
18545 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18546ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18547"
18548eval as_val=\$$as_ac_Header
18549 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018550 cat >>confdefs.h <<_ACEOF
18551#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18552_ACEOF
18553
18554fi
18555
18556done
18557
18558
cristy3ed852e2009-09-05 21:47:34 +000018559for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000018560do :
18561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18562ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18563eval as_val=\$$as_ac_var
18564 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018565 cat >>confdefs.h <<_ACEOF
18566#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18567_ACEOF
18568
18569else
18570
18571
18572 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
18573
18574fi
18575done
18576
cristy3ed852e2009-09-05 21:47:34 +000018577for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000018578do :
18579 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18580ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18581eval as_val=\$$as_ac_var
18582 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018583 cat >>confdefs.h <<_ACEOF
18584#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18585_ACEOF
18586
18587else
18588
18589
18590 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
18591
18592fi
18593done
18594
18595
18596
18597cat >>confdefs.h <<_ACEOF
18598#define LT_LIBEXT "$libext"
18599_ACEOF
18600
18601
18602name=ltdl
18603LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
18604
18605
18606
18607
18608
18609
18610
18611
18612# Only expand once:
18613
18614
18615
18616# Check to see if building shared libraries
18617libtool_build_shared_libs='no'
18618if test "$enable_shared" = 'yes'; then
18619 libtool_build_shared_libs='yes'
18620fi
18621
18622# Check to see if building static libraries
18623libtool_build_static_libs='no'
18624if test "$enable_static" = 'yes'; then
18625 libtool_build_static_libs='yes'
18626fi
18627
18628# MinGW and Cygwin can't build C++ DLLs which support exceptions.
18629if test "${StaticCplusPlusLibraries}" = 'yes'; then
18630 LTCXXLIBOPTS='--static'
18631
18632fi
18633
18634#
18635# Enable support for building loadable modules
18636#
18637
18638# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000018639if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018640 withval=$with_modules; with_modules=$withval
18641else
18642 with_modules=$libtool_build_shared_libs
18643fi
18644
18645
18646# Only allow building loadable modules if we are building shared libraries
18647if test "$with_modules" != 'no' ; then
18648 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000018649 { $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 +000018650$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
18651 with_modules='no'
18652 fi
18653fi
18654if test "$with_modules" != 'no'; then
18655
cristy8b350f62009-11-15 23:12:43 +000018656$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018657
18658fi
18659 if test "$with_modules" != 'no'; then
18660 WITH_MODULES_TRUE=
18661 WITH_MODULES_FALSE='#'
18662else
18663 WITH_MODULES_TRUE='#'
18664 WITH_MODULES_FALSE=
18665fi
18666
18667
18668# Enable building/use of libltdl if we are building shared libraries regardless
18669# of whether modules are built or not.
18670with_ltdl='no'
18671if test "$libtool_build_shared_libs" != 'no'; then
18672 with_ltdl='yes'
18673fi
18674
18675 if test "$with_ltdl" != 'no'; then
18676 WITH_LTDL_TRUE=
18677 WITH_LTDL_FALSE='#'
18678else
18679 WITH_LTDL_TRUE='#'
18680 WITH_LTDL_FALSE=
18681fi
18682
18683if test "$with_ltdl" != 'no'; then
18684
cristy8b350f62009-11-15 23:12:43 +000018685$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018686
18687
18688 # Set DLLDFLAGS
18689 if test X"$enable_shared" = Xyes; then
18690 DLLDFLAGS=-export-dynamic
18691
18692 fi
18693fi
18694
18695# Enable build using delegate libraries built in subdirectories rather than installed
18696# delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
18697# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000018698if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018699 enableval=$enable_delegate_build; enable_delegate_build=$enableval
18700else
18701 enable_delegate_build='no'
18702fi
18703
18704
18705# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000018706if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018707 enableval=$enable_deprecated; enable_deprecated=$enableval
18708else
18709 enable_deprecated='no'
18710fi
18711
18712
18713if test "$enable_deprecated" = 'yes'; then
18714
cristy8b350f62009-11-15 23:12:43 +000018715$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018716
18717else
18718 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
18719fi
18720
18721# Build a version of ImageMagick which operates uninstalled.
18722# Used to build distributions located via MAGICK_HOME / executable path
18723# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000018724if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018725 enableval=$enable_installed; enable_installed=$enableval
18726else
18727 enable_installed='yes'
18728fi
18729
18730
18731if test "$enable_installed" = 'yes'; then
18732
cristy8b350f62009-11-15 23:12:43 +000018733$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018734
18735else
18736 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
18737fi
18738
18739# Permit enciphering and deciphering image pixels.
18740# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000018741if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018742 enableval=$enable_cipher; enable_cipher=$enableval
18743else
18744 enable_cipher='yes'
18745fi
18746
18747
18748if test "$enable_cipher" = 'yes'; then
18749
cristy8b350f62009-11-15 23:12:43 +000018750$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018751
18752fi
18753
18754# Build an embeddable version of ImageMagick.
18755# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000018756if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018757 enableval=$enable_embeddable; enable_embeddable=$enableval
18758else
18759 enable_embeddable='no'
18760fi
18761
18762
18763if test "$enable_embeddable" = 'yes'; then
18764
cristy8b350f62009-11-15 23:12:43 +000018765$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018766
18767fi
18768
18769# Build a high dynamic range version of ImageMagick.
18770# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000018771if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018772 enableval=$enable_hdri; enable_hdri=$enableval
18773else
18774 enable_hdri='no'
18775fi
18776
18777
18778MAGICK_HDRI=""
18779if test "$enable_hdri" = 'yes'; then
18780 MAGICK_HDRI="HDRI"
18781
cristy8b350f62009-11-15 23:12:43 +000018782$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018783
18784fi
18785
cristy3ed852e2009-09-05 21:47:34 +000018786# Build a version of ImageMagick with assert statements.
18787# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000018788if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018789 enableval=$enable_assert; enable_assert=$enableval
18790else
18791 enable_assert='yes'
18792fi
18793
18794
18795if test "$enable_assert" = 'no'; then
18796
cristy8b350f62009-11-15 23:12:43 +000018797$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018798
18799fi
18800
18801# Add configure option --enable-maintainer-mode which enables dependency
18802# checking and generation useful to package maintainers. This is made an
18803# option to avoid confusing end users.
18804
cristy8b350f62009-11-15 23:12:43 +000018805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000018806$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18807 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000018808if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018809 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18810else
18811 USE_MAINTAINER_MODE=no
18812fi
18813
cristy8b350f62009-11-15 23:12:43 +000018814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000018815$as_echo "$USE_MAINTAINER_MODE" >&6; }
18816 if test $USE_MAINTAINER_MODE = yes; then
18817 MAINTAINER_MODE_TRUE=
18818 MAINTAINER_MODE_FALSE='#'
18819else
18820 MAINTAINER_MODE_TRUE='#'
18821 MAINTAINER_MODE_FALSE=
18822fi
18823
18824 MAINT=$MAINTAINER_MODE_TRUE
18825
18826
18827
18828
18829# Enable ccmalloc memory debugging support
18830# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000018831if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018832 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
18833else
18834 enable_ccmalloc='no'
18835fi
18836
18837
18838# Enable Electric Fence memory debugging support
18839# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000018840if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018841 enableval=$enable_efence; enable_efence=$enableval
18842else
18843 enable_efence='no'
18844fi
18845
18846
18847# Enable prof-based profiling support
18848# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000018849if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018850 enableval=$enable_prof; enable_prof=$enableval
18851else
18852 enable_prof='no'
18853fi
18854
18855
18856# Enable gprof-based profiling support
18857# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000018858if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018859 enableval=$enable_gprof; enable_gprof=$enableval
18860else
18861 enable_gprof='no'
18862fi
18863
18864
18865# Enable gcov-based profiling support
18866# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000018867if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018868 enableval=$enable_gcov; enable_gcov=$enableval
18869else
18870 enable_gcov='no'
18871fi
18872
18873
18874enable_profiling='no'
18875if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
18876 enable_profiling='yes'
18877 if test "$libtool_build_shared_libs" = 'yes'; then
18878 echo "Warning: Can not profile code using shared libraries"
18879 fi
18880fi
18881
18882# Magick API method prefix
18883
18884# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000018885if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018886 withval=$with_method_prefix; with_method_prefix=$enableval
18887else
18888 with_method_prefix=''
18889fi
18890
18891
18892if test "$with_method_prefix" != ''; then
18893
18894cat >>confdefs.h <<_ACEOF
18895#define NAMESPACE_PREFIX $with_method_prefix
18896_ACEOF
18897
18898fi
18899
18900# Number of bits in a Quantum
18901
18902# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000018903if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018904 withval=$with_quantum_depth; with_quantum_depth=$withval
18905else
18906 with_quantum_depth=16
18907fi
18908
18909
18910if test "$with_quantum_depth" != '8'; then
18911 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
18912fi
18913
18914case "${with_quantum_depth}" in
18915 8 ) ;;
18916 16 ) ;;
18917 32 ) ;;
18918 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000018919 * ) { as_fn_set_status 16
18920as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000018921esac
18922QUANTUM_DEPTH="$with_quantum_depth"
18923
18924cat >>confdefs.h <<_ACEOF
18925#define QUANTUM_DEPTH $QUANTUM_DEPTH
18926_ACEOF
18927
18928
18929# Set pixel cache threshold
18930
18931# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000018932if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018933 withval=$with_cache; with_cache=$withval
18934else
18935 with_cache=''
18936fi
18937
18938
18939if test "$with_cache" != ''; then
18940
18941cat >>confdefs.h <<_ACEOF
18942#define PixelCacheThreshold $with_cache
18943_ACEOF
18944
18945 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
18946fi
18947
18948# Disable/Enable support for full delegate paths
18949
18950# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000018951if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018952 withval=$with_frozenpaths; with_frozenpaths=$withval
18953else
18954 with_frozenpaths='no'
18955fi
18956
18957
18958# Enable build/install of Magick++
18959
18960# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000018961if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018962 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
18963else
18964 with_magick_plus_plus='yes'
18965fi
18966
18967
18968# Disable build/install of PerlMagick.
18969
18970# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000018971if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018972 withval=$with_perl; with_perl=$withval
18973else
18974 with_perl=$libtool_build_shared_libs
18975fi
18976
18977
18978# Options to pass when configuring PerlMagick
18979
18980# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000018981if test "${with_perl_options+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018982 withval=$with_perl_options;
18983fi
18984
18985
18986PERL_MAKE_OPTIONS=$with_perl_options
18987
18988
18989
18990# Enable umem, object-caching memory allocation library.
18991
18992# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000018993if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018994 withval=$with_umem; with_umem=$withval
18995else
18996 with_umem='no'
18997fi
18998
18999if test "$with_umem" != 'yes' ; then
19000 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19001fi
19002
19003#
19004# Specify path to shared libstdc++ if not in normal location
19005#
19006
19007# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000019008if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019009 withval=$with_libstdc; with_libstdc=$withval
19010else
19011 with_libstdc=''
19012fi
19013
19014
19015if test "$with_libstdc" != ''; then
19016 if test -d "$with_libstdc"; then
19017 LIBSTDCLDFLAGS="-L$with_libstdc"
19018 fi
19019fi
19020
19021
19022# Does gcc required -traditional?
19023if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000019024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019025$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019026if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019027 $as_echo_n "(cached) " >&6
19028else
19029 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000019030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019031/* end confdefs.h. */
19032#include <sgtty.h>
19033Autoconf TIOCGETP
19034_ACEOF
19035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019036 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019037 ac_cv_prog_gcc_traditional=yes
19038else
19039 ac_cv_prog_gcc_traditional=no
19040fi
19041rm -f conftest*
19042
19043
19044 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000019045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019046/* end confdefs.h. */
19047#include <termio.h>
19048Autoconf TCGETA
19049_ACEOF
19050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019051 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019052 ac_cv_prog_gcc_traditional=yes
19053fi
19054rm -f conftest*
19055
19056 fi
19057fi
cristy8b350f62009-11-15 23:12:43 +000019058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019059$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19060 if test $ac_cv_prog_gcc_traditional = yes; then
19061 CC="$CC -traditional"
19062 fi
19063fi
19064
19065
19066########
19067#
19068# Set defines required to build DLLs and modules using MinGW
19069#
19070########
19071# These options are set for multi-thread DLL module build
19072# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
19073# module: _DLL
19074# executable/Magick++: _DLL _MAGICKMOD_
19075MODULE_EXTRA_CPPFLAGS=''
19076LIBRARY_EXTRA_CPPFLAGS=''
19077if test "${native_win32_build}" = 'yes'; then
19078 if test "${libtool_build_shared_libs}" = 'yes'; then
19079 CPPFLAGS="$CPPFLAGS -D_DLL"
19080 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
19081 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
19082 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19083 if test "$with_modules" = 'yes'; then
19084 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
19085 else
19086 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19087 fi
19088 else
19089 CPPFLAGS="$CPPFLAGS -D_LIB"
19090 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
19091 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
19092 fi
19093 if test "$with_threads" = 'yes'; then
19094 CPPFLAGS="$CPPFLAGS -D_MT"
19095 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
19096 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
19097 fi
19098fi
19099
19100
19101
19102# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000019103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000019104$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019105if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019106 $as_echo_n "(cached) " >&6
19107else
cristy8b350f62009-11-15 23:12:43 +000019108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019109/* end confdefs.h. */
19110#include <stdlib.h>
19111#include <stdarg.h>
19112#include <string.h>
19113#include <float.h>
19114
19115int
19116main ()
19117{
19118
19119 ;
19120 return 0;
19121}
19122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019123if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019124 ac_cv_header_stdc=yes
19125else
cristy8b350f62009-11-15 23:12:43 +000019126 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019127fi
cristy3ed852e2009-09-05 21:47:34 +000019128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19129
19130if test $ac_cv_header_stdc = yes; then
19131 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019133/* end confdefs.h. */
19134#include <string.h>
19135
19136_ACEOF
19137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019138 $EGREP "memchr" >/dev/null 2>&1; then :
19139
cristy3ed852e2009-09-05 21:47:34 +000019140else
19141 ac_cv_header_stdc=no
19142fi
19143rm -f conftest*
19144
19145fi
19146
19147if test $ac_cv_header_stdc = yes; then
19148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019150/* end confdefs.h. */
19151#include <stdlib.h>
19152
19153_ACEOF
19154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019155 $EGREP "free" >/dev/null 2>&1; then :
19156
cristy3ed852e2009-09-05 21:47:34 +000019157else
19158 ac_cv_header_stdc=no
19159fi
19160rm -f conftest*
19161
19162fi
19163
19164if test $ac_cv_header_stdc = yes; then
19165 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000019166 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019167 :
19168else
cristy8b350f62009-11-15 23:12:43 +000019169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019170/* end confdefs.h. */
19171#include <ctype.h>
19172#include <stdlib.h>
19173#if ((' ' & 0x0FF) == 0x020)
19174# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19175# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19176#else
19177# define ISLOWER(c) \
19178 (('a' <= (c) && (c) <= 'i') \
19179 || ('j' <= (c) && (c) <= 'r') \
19180 || ('s' <= (c) && (c) <= 'z'))
19181# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19182#endif
19183
19184#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19185int
19186main ()
19187{
19188 int i;
19189 for (i = 0; i < 256; i++)
19190 if (XOR (islower (i), ISLOWER (i))
19191 || toupper (i) != TOUPPER (i))
19192 return 2;
19193 return 0;
19194}
19195_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019196if ac_fn_c_try_run "$LINENO"; then :
19197
cristy3ed852e2009-09-05 21:47:34 +000019198else
cristy8b350f62009-11-15 23:12:43 +000019199 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019200fi
cristy8b350f62009-11-15 23:12:43 +000019201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19202 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019203fi
19204
cristy3ed852e2009-09-05 21:47:34 +000019205fi
19206fi
cristy8b350f62009-11-15 23:12:43 +000019207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000019208$as_echo "$ac_cv_header_stdc" >&6; }
19209if test $ac_cv_header_stdc = yes; then
19210
cristy8b350f62009-11-15 23:12:43 +000019211$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019212
19213fi
19214
19215if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000019216 { $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 +000019217 header files. Compilation cannot proceed. Please install the ANSI C
19218 headers and rerun this script." >&5
19219$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19220 header files. Compilation cannot proceed. Please install the ANSI C
19221 headers and rerun this script." >&2;};
19222fi
cristy3ed852e2009-09-05 21:47:34 +000019223ac_header_dirent=no
19224for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19225 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000019226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000019227$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000019229 $as_echo_n "(cached) " >&6
19230else
cristy8b350f62009-11-15 23:12:43 +000019231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019232/* end confdefs.h. */
19233#include <sys/types.h>
19234#include <$ac_hdr>
19235
19236int
19237main ()
19238{
19239if ((DIR *) 0)
19240return 0;
19241 ;
19242 return 0;
19243}
19244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019245if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019246 eval "$as_ac_Header=yes"
19247else
cristy8b350f62009-11-15 23:12:43 +000019248 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000019249fi
cristy3ed852e2009-09-05 21:47:34 +000019250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19251fi
cristy8b350f62009-11-15 23:12:43 +000019252eval ac_res=\$$as_ac_Header
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000019254$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019255eval as_val=\$$as_ac_Header
19256 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019257 cat >>confdefs.h <<_ACEOF
19258#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19259_ACEOF
19260
19261ac_header_dirent=$ac_hdr; break
19262fi
19263
19264done
19265# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19266if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000019267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019268$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019269if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019270 $as_echo_n "(cached) " >&6
19271else
19272 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019274/* end confdefs.h. */
19275
19276/* Override any GCC internal prototype to avoid an error.
19277 Use char because int might match the return type of a GCC
19278 builtin and then its argument prototype would still apply. */
19279#ifdef __cplusplus
19280extern "C"
19281#endif
19282char opendir ();
19283int
19284main ()
19285{
19286return opendir ();
19287 ;
19288 return 0;
19289}
19290_ACEOF
19291for ac_lib in '' dir; do
19292 if test -z "$ac_lib"; then
19293 ac_res="none required"
19294 else
19295 ac_res=-l$ac_lib
19296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19297 fi
cristy8b350f62009-11-15 23:12:43 +000019298 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019299 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019300fi
cristy8b350f62009-11-15 23:12:43 +000019301rm -f core conftest.err conftest.$ac_objext \
19302 conftest$ac_exeext
19303 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019304 break
19305fi
19306done
cristy8b350f62009-11-15 23:12:43 +000019307if test "${ac_cv_search_opendir+set}" = set; then :
19308
cristy3ed852e2009-09-05 21:47:34 +000019309else
19310 ac_cv_search_opendir=no
19311fi
19312rm conftest.$ac_ext
19313LIBS=$ac_func_search_save_LIBS
19314fi
cristy8b350f62009-11-15 23:12:43 +000019315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019316$as_echo "$ac_cv_search_opendir" >&6; }
19317ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019318if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19320
19321fi
19322
19323else
cristy8b350f62009-11-15 23:12:43 +000019324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019325$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019326if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019327 $as_echo_n "(cached) " >&6
19328else
19329 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019331/* end confdefs.h. */
19332
19333/* Override any GCC internal prototype to avoid an error.
19334 Use char because int might match the return type of a GCC
19335 builtin and then its argument prototype would still apply. */
19336#ifdef __cplusplus
19337extern "C"
19338#endif
19339char opendir ();
19340int
19341main ()
19342{
19343return opendir ();
19344 ;
19345 return 0;
19346}
19347_ACEOF
19348for ac_lib in '' x; do
19349 if test -z "$ac_lib"; then
19350 ac_res="none required"
19351 else
19352 ac_res=-l$ac_lib
19353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19354 fi
cristy8b350f62009-11-15 23:12:43 +000019355 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019356 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019357fi
cristy8b350f62009-11-15 23:12:43 +000019358rm -f core conftest.err conftest.$ac_objext \
19359 conftest$ac_exeext
19360 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019361 break
19362fi
19363done
cristy8b350f62009-11-15 23:12:43 +000019364if test "${ac_cv_search_opendir+set}" = set; then :
19365
cristy3ed852e2009-09-05 21:47:34 +000019366else
19367 ac_cv_search_opendir=no
19368fi
19369rm conftest.$ac_ext
19370LIBS=$ac_func_search_save_LIBS
19371fi
cristy8b350f62009-11-15 23:12:43 +000019372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019373$as_echo "$ac_cv_search_opendir" >&6; }
19374ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019375if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19377
19378fi
19379
19380fi
19381
19382
19383# Check additional headers
cristy3ed852e2009-09-05 21:47:34 +000019384for 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 +000019385do :
19386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19387ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19388eval as_val=\$$as_ac_Header
19389 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019390 cat >>confdefs.h <<_ACEOF
19391#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19392_ACEOF
19393
19394fi
19395
19396done
19397
19398
19399########
19400#
19401# Checks for typedefs, structures, and compiler characteristics.
19402#
19403########
19404
cristy8b350f62009-11-15 23:12:43 +000019405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000019406$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019407if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019408 $as_echo_n "(cached) " >&6
19409else
cristy8b350f62009-11-15 23:12:43 +000019410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019411/* end confdefs.h. */
19412
19413#include <stdbool.h>
19414#ifndef bool
19415 "error: bool is not defined"
19416#endif
19417#ifndef false
19418 "error: false is not defined"
19419#endif
19420#if false
19421 "error: false is not 0"
19422#endif
19423#ifndef true
19424 "error: true is not defined"
19425#endif
19426#if true != 1
19427 "error: true is not 1"
19428#endif
19429#ifndef __bool_true_false_are_defined
19430 "error: __bool_true_false_are_defined is not defined"
19431#endif
19432
19433 struct s { _Bool s: 1; _Bool t; } s;
19434
19435 char a[true == 1 ? 1 : -1];
19436 char b[false == 0 ? 1 : -1];
19437 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19438 char d[(bool) 0.5 == true ? 1 : -1];
19439 bool e = &s;
19440 char f[(_Bool) 0.0 == false ? 1 : -1];
19441 char g[true];
19442 char h[sizeof (_Bool)];
19443 char i[sizeof s.t];
19444 enum { j = false, k = true, l = false * true, m = true * 256 };
19445 /* The following fails for
19446 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19447 _Bool n[m];
19448 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19449 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19450# if defined __xlc__ || defined __GNUC__
19451 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19452 reported by James Lemley on 2005-10-05; see
19453 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19454 This test is not quite right, since xlc is allowed to
19455 reject this program, as the initializer for xlcbug is
19456 not one of the forms that C requires support for.
19457 However, doing the test right would require a runtime
19458 test, and that would make cross-compilation harder.
19459 Let us hope that IBM fixes the xlc bug, and also adds
19460 support for this kind of constant expression. In the
19461 meantime, this test will reject xlc, which is OK, since
19462 our stdbool.h substitute should suffice. We also test
19463 this with GCC, where it should work, to detect more
19464 quickly whether someone messes up the test in the
19465 future. */
19466 char digs[] = "0123456789";
19467 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19468# endif
19469 /* Catch a bug in an HP-UX C compiler. See
19470 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19471 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19472 */
19473 _Bool q = true;
19474 _Bool *pq = &q;
19475
19476int
19477main ()
19478{
19479
19480 *pq |= q;
19481 *pq |= ! q;
19482 /* Refer to every declared value, to avoid compiler optimizations. */
19483 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19484 + !m + !n + !o + !p + !q + !pq);
19485
19486 ;
19487 return 0;
19488}
19489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019490if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019491 ac_cv_header_stdbool_h=yes
19492else
cristy8b350f62009-11-15 23:12:43 +000019493 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000019494fi
cristy3ed852e2009-09-05 21:47:34 +000019495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19496fi
cristy8b350f62009-11-15 23:12:43 +000019497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000019498$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019499ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19500if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019501
19502cat >>confdefs.h <<_ACEOF
19503#define HAVE__BOOL 1
19504_ACEOF
19505
19506
19507fi
19508
19509if test $ac_cv_header_stdbool_h = yes; then
19510
cristy8b350f62009-11-15 23:12:43 +000019511$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019512
19513fi
19514
cristy8b350f62009-11-15 23:12:43 +000019515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019516$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019517if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019518 $as_echo_n "(cached) " >&6
19519else
cristy8b350f62009-11-15 23:12:43 +000019520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019521/* end confdefs.h. */
19522
19523int
19524main ()
19525{
19526
19527volatile int x;
19528int * volatile y = (int *) 0;
19529return !x && !y;
19530 ;
19531 return 0;
19532}
19533_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019534if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019535 ac_cv_c_volatile=yes
19536else
cristy8b350f62009-11-15 23:12:43 +000019537 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000019538fi
cristy3ed852e2009-09-05 21:47:34 +000019539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19540fi
cristy8b350f62009-11-15 23:12:43 +000019541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019542$as_echo "$ac_cv_c_volatile" >&6; }
19543if test $ac_cv_c_volatile = no; then
19544
cristy8b350f62009-11-15 23:12:43 +000019545$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019546
19547fi
19548
cristy8b350f62009-11-15 23:12:43 +000019549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000019550$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019551if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019552 $as_echo_n "(cached) " >&6
19553else
cristy8b350f62009-11-15 23:12:43 +000019554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019555/* end confdefs.h. */
19556#define x(y) #y
19557
19558char *s = x(teststring);
19559_ACEOF
19560if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019561 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019562 ac_cv_c_stringize=no
19563else
19564 ac_cv_c_stringize=yes
19565fi
19566rm -f conftest*
19567
19568fi
cristy8b350f62009-11-15 23:12:43 +000019569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000019570$as_echo "$ac_cv_c_stringize" >&6; }
19571if test $ac_cv_c_stringize = yes; then
19572
cristy8b350f62009-11-15 23:12:43 +000019573$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019574
19575fi
19576
cristy8b350f62009-11-15 23:12:43 +000019577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019578$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019579if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019580 $as_echo_n "(cached) " >&6
19581else
cristy8b350f62009-11-15 23:12:43 +000019582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019583/* end confdefs.h. */
19584#include <sys/types.h>
19585#include <sys/stat.h>
19586
19587#if defined S_ISBLK && defined S_IFDIR
19588extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19589#endif
19590
19591#if defined S_ISBLK && defined S_IFCHR
19592extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19593#endif
19594
19595#if defined S_ISLNK && defined S_IFREG
19596extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19597#endif
19598
19599#if defined S_ISSOCK && defined S_IFREG
19600extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19601#endif
19602
19603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019604if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019605 ac_cv_header_stat_broken=no
19606else
cristy8b350f62009-11-15 23:12:43 +000019607 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000019608fi
cristy3ed852e2009-09-05 21:47:34 +000019609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19610fi
cristy8b350f62009-11-15 23:12:43 +000019611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019612$as_echo "$ac_cv_header_stat_broken" >&6; }
19613if test $ac_cv_header_stat_broken = yes; then
19614
cristy8b350f62009-11-15 23:12:43 +000019615$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019616
19617fi
19618
cristy8b350f62009-11-15 23:12:43 +000019619{ $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 +000019620$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019621if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019622 $as_echo_n "(cached) " >&6
19623else
cristy8b350f62009-11-15 23:12:43 +000019624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019625/* end confdefs.h. */
19626#include <sys/types.h>
19627#include <sys/time.h>
19628#include <time.h>
19629
19630int
19631main ()
19632{
19633if ((struct tm *) 0)
19634return 0;
19635 ;
19636 return 0;
19637}
19638_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019639if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019640 ac_cv_header_time=yes
19641else
cristy8b350f62009-11-15 23:12:43 +000019642 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000019643fi
cristy3ed852e2009-09-05 21:47:34 +000019644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19645fi
cristy8b350f62009-11-15 23:12:43 +000019646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000019647$as_echo "$ac_cv_header_time" >&6; }
19648if test $ac_cv_header_time = yes; then
19649
cristy8b350f62009-11-15 23:12:43 +000019650$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019651
19652fi
19653
cristy8b350f62009-11-15 23:12:43 +000019654{ $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 +000019655$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019656if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019657 $as_echo_n "(cached) " >&6
19658else
cristy8b350f62009-11-15 23:12:43 +000019659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019660/* end confdefs.h. */
19661#include <sys/types.h>
19662#include <time.h>
19663
19664int
19665main ()
19666{
19667struct tm tm;
19668 int *p = &tm.tm_sec;
19669 return !p;
19670 ;
19671 return 0;
19672}
19673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019674if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019675 ac_cv_struct_tm=time.h
19676else
cristy8b350f62009-11-15 23:12:43 +000019677 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000019678fi
cristy3ed852e2009-09-05 21:47:34 +000019679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19680fi
cristy8b350f62009-11-15 23:12:43 +000019681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000019682$as_echo "$ac_cv_struct_tm" >&6; }
19683if test $ac_cv_struct_tm = sys/time.h; then
19684
cristy8b350f62009-11-15 23:12:43 +000019685$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019686
19687fi
19688
cristy8b350f62009-11-15 23:12:43 +000019689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000019690$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019691if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019692 $as_echo_n "(cached) " >&6
19693else
19694 echo '#! /bin/cat
19695exit 69
19696' >conftest
19697chmod u+x conftest
19698(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
19699if test $? -ne 69; then
19700 ac_cv_sys_interpreter=yes
19701else
19702 ac_cv_sys_interpreter=no
19703fi
19704rm -f conftest
19705fi
cristy8b350f62009-11-15 23:12:43 +000019706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000019707$as_echo "$ac_cv_sys_interpreter" >&6; }
19708interpval=$ac_cv_sys_interpreter
19709
19710
19711# If the C compiler does not fully support the ANSI C qualifier const,
19712# define const to be empty.
cristy8b350f62009-11-15 23:12:43 +000019713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019714$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019715if test "${ac_cv_c_const+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019716 $as_echo_n "(cached) " >&6
19717else
cristy8b350f62009-11-15 23:12:43 +000019718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019719/* end confdefs.h. */
19720
19721int
19722main ()
19723{
19724/* FIXME: Include the comments suggested by Paul. */
19725#ifndef __cplusplus
19726 /* Ultrix mips cc rejects this. */
19727 typedef int charset[2];
19728 const charset cs;
19729 /* SunOS 4.1.1 cc rejects this. */
19730 char const *const *pcpcc;
19731 char **ppc;
19732 /* NEC SVR4.0.2 mips cc rejects this. */
19733 struct point {int x, y;};
19734 static struct point const zero = {0,0};
19735 /* AIX XL C 1.02.0.0 rejects this.
19736 It does not let you subtract one const X* pointer from another in
19737 an arm of an if-expression whose if-part is not a constant
19738 expression */
19739 const char *g = "string";
19740 pcpcc = &g + (g ? g-g : 0);
19741 /* HPUX 7.0 cc rejects these. */
19742 ++pcpcc;
19743 ppc = (char**) pcpcc;
19744 pcpcc = (char const *const *) ppc;
19745 { /* SCO 3.2v4 cc rejects this. */
19746 char *t;
19747 char const *s = 0 ? (char *) 0 : (char const *) 0;
19748
19749 *t++ = 0;
19750 if (s) return 0;
19751 }
19752 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19753 int x[] = {25, 17};
19754 const int *foo = &x[0];
19755 ++foo;
19756 }
19757 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19758 typedef const int *iptr;
19759 iptr p = 0;
19760 ++p;
19761 }
19762 { /* AIX XL C 1.02.0.0 rejects this saying
19763 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19764 struct s { int j; const int *ap[3]; };
19765 struct s *b; b->j = 5;
19766 }
19767 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19768 const int foo = 10;
19769 if (!foo) return 0;
19770 }
19771 return !cs[0] && !zero.x;
19772#endif
19773
19774 ;
19775 return 0;
19776}
19777_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019778if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019779 ac_cv_c_const=yes
19780else
cristy8b350f62009-11-15 23:12:43 +000019781 ac_cv_c_const=no
cristy3ed852e2009-09-05 21:47:34 +000019782fi
cristy3ed852e2009-09-05 21:47:34 +000019783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19784fi
cristy8b350f62009-11-15 23:12:43 +000019785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019786$as_echo "$ac_cv_c_const" >&6; }
19787if test $ac_cv_c_const = no; then
19788
cristy8b350f62009-11-15 23:12:43 +000019789$as_echo "#define const /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019790
19791fi
19792
19793
19794# If the C compiler supports the keyword inline, do nothing. Otherwise
19795# define inline to __inline__ or __inline if it accepts one of those,
19796# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000019797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019798$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019799if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019800 $as_echo_n "(cached) " >&6
19801else
19802 ac_cv_c_inline=no
19803for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000019804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019805/* end confdefs.h. */
19806#ifndef __cplusplus
19807typedef int foo_t;
19808static $ac_kw foo_t static_foo () {return 0; }
19809$ac_kw foo_t foo () {return 0; }
19810#endif
19811
19812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019813if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019814 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019815fi
cristy3ed852e2009-09-05 21:47:34 +000019816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19817 test "$ac_cv_c_inline" != no && break
19818done
19819
19820fi
cristy8b350f62009-11-15 23:12:43 +000019821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019822$as_echo "$ac_cv_c_inline" >&6; }
19823
cristy3ed852e2009-09-05 21:47:34 +000019824case $ac_cv_c_inline in
19825 inline | yes) ;;
19826 *)
19827 case $ac_cv_c_inline in
19828 no) ac_val=;;
19829 *) ac_val=$ac_cv_c_inline;;
19830 esac
19831 cat >>confdefs.h <<_ACEOF
19832#ifndef __cplusplus
19833#define inline $ac_val
19834#endif
19835_ACEOF
19836 ;;
19837esac
19838
19839
19840# If the C compiler supports the keyword restrict, do nothing. Otherwise
19841# define restrict to __restrict__ or __restrict if it accepts one of those,
19842# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000019843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000019844$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019845if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019846 $as_echo_n "(cached) " >&6
19847else
19848 ac_cv_c_restrict=no
19849 # The order here caters to the fact that C++ does not require restrict.
19850 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000019851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019852/* end confdefs.h. */
19853typedef int * int_ptr;
19854 int foo (int_ptr $ac_kw ip) {
19855 return ip[0];
19856 }
19857int
19858main ()
19859{
19860int s[1];
19861 int * $ac_kw t = s;
19862 t[0] = 0;
19863 return foo(t)
19864 ;
19865 return 0;
19866}
19867_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019868if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019869 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019870fi
cristy3ed852e2009-09-05 21:47:34 +000019871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19872 test "$ac_cv_c_restrict" != no && break
19873 done
19874
19875fi
cristy8b350f62009-11-15 23:12:43 +000019876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000019877$as_echo "$ac_cv_c_restrict" >&6; }
19878
cristy3ed852e2009-09-05 21:47:34 +000019879 case $ac_cv_c_restrict in
19880 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000019881 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019882 ;;
19883 *) cat >>confdefs.h <<_ACEOF
19884#define restrict $ac_cv_c_restrict
19885_ACEOF
19886 ;;
19887 esac
19888
19889
19890# If words are stored with the most significant byte first (like
19891# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000019892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000019893$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019894if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019895 $as_echo_n "(cached) " >&6
19896else
19897 ac_cv_c_bigendian=unknown
19898 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000019899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019900/* end confdefs.h. */
19901#ifndef __APPLE_CC__
19902 not a universal capable compiler
19903 #endif
19904 typedef int dummy;
19905
19906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019907if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019908
19909 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000019910 # there are at least two -arch flags with different values.
19911 ac_arch=
19912 ac_prev=
19913 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19914 if test -n "$ac_prev"; then
19915 case $ac_word in
19916 i?86 | x86_64 | ppc | ppc64)
19917 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19918 ac_arch=$ac_word
19919 else
19920 ac_cv_c_bigendian=universal
19921 break
19922 fi
19923 ;;
19924 esac
19925 ac_prev=
19926 elif test "x$ac_word" = "x-arch"; then
19927 ac_prev=arch
19928 fi
19929 done
cristy3ed852e2009-09-05 21:47:34 +000019930fi
cristy3ed852e2009-09-05 21:47:34 +000019931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19932 if test $ac_cv_c_bigendian = unknown; then
19933 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000019934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019935/* end confdefs.h. */
19936#include <sys/types.h>
19937 #include <sys/param.h>
19938
19939int
19940main ()
19941{
19942#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19943 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19944 && LITTLE_ENDIAN)
19945 bogus endian macros
19946 #endif
19947
19948 ;
19949 return 0;
19950}
19951_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019952if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019953 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000019954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019955/* end confdefs.h. */
19956#include <sys/types.h>
19957 #include <sys/param.h>
19958
19959int
19960main ()
19961{
19962#if BYTE_ORDER != BIG_ENDIAN
19963 not big endian
19964 #endif
19965
19966 ;
19967 return 0;
19968}
19969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019970if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019971 ac_cv_c_bigendian=yes
19972else
cristy8b350f62009-11-15 23:12:43 +000019973 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000019974fi
cristy3ed852e2009-09-05 21:47:34 +000019975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019976fi
cristy3ed852e2009-09-05 21:47:34 +000019977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19978 fi
19979 if test $ac_cv_c_bigendian = unknown; then
19980 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000019981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019982/* end confdefs.h. */
19983#include <limits.h>
19984
19985int
19986main ()
19987{
19988#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
19989 bogus endian macros
19990 #endif
19991
19992 ;
19993 return 0;
19994}
19995_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019996if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019997 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000019998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019999/* end confdefs.h. */
20000#include <limits.h>
20001
20002int
20003main ()
20004{
20005#ifndef _BIG_ENDIAN
20006 not big endian
20007 #endif
20008
20009 ;
20010 return 0;
20011}
20012_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020013if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020014 ac_cv_c_bigendian=yes
20015else
cristy8b350f62009-11-15 23:12:43 +000020016 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020017fi
cristy3ed852e2009-09-05 21:47:34 +000020018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020019fi
cristy3ed852e2009-09-05 21:47:34 +000020020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20021 fi
20022 if test $ac_cv_c_bigendian = unknown; then
20023 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000020024 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020025 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000020026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020027/* end confdefs.h. */
20028short int ascii_mm[] =
20029 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20030 short int ascii_ii[] =
20031 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20032 int use_ascii (int i) {
20033 return ascii_mm[i] + ascii_ii[i];
20034 }
20035 short int ebcdic_ii[] =
20036 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20037 short int ebcdic_mm[] =
20038 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20039 int use_ebcdic (int i) {
20040 return ebcdic_mm[i] + ebcdic_ii[i];
20041 }
20042 extern int foo;
20043
20044int
20045main ()
20046{
20047return use_ascii (foo) == use_ebcdic (foo);
20048 ;
20049 return 0;
20050}
20051_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020052if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020053 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20054 ac_cv_c_bigendian=yes
20055 fi
20056 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20057 if test "$ac_cv_c_bigendian" = unknown; then
20058 ac_cv_c_bigendian=no
20059 else
20060 # finding both strings is unlikely to happen, but who knows?
20061 ac_cv_c_bigendian=unknown
20062 fi
20063 fi
cristy3ed852e2009-09-05 21:47:34 +000020064fi
cristy3ed852e2009-09-05 21:47:34 +000020065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20066else
cristy8b350f62009-11-15 23:12:43 +000020067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020068/* end confdefs.h. */
20069$ac_includes_default
20070int
20071main ()
20072{
20073
20074 /* Are we little or big endian? From Harbison&Steele. */
20075 union
20076 {
20077 long int l;
20078 char c[sizeof (long int)];
20079 } u;
20080 u.l = 1;
20081 return u.c[sizeof (long int) - 1] == 1;
20082
20083 ;
20084 return 0;
20085}
20086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020087if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020088 ac_cv_c_bigendian=no
20089else
cristy8b350f62009-11-15 23:12:43 +000020090 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000020091fi
cristy8b350f62009-11-15 23:12:43 +000020092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20093 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020094fi
20095
cristy3ed852e2009-09-05 21:47:34 +000020096 fi
20097fi
cristy8b350f62009-11-15 23:12:43 +000020098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020099$as_echo "$ac_cv_c_bigendian" >&6; }
20100 case $ac_cv_c_bigendian in #(
20101 yes)
cristy8b350f62009-11-15 23:12:43 +000020102 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020103;; #(
20104 no)
20105 ;; #(
20106 universal)
20107
cristy8b350f62009-11-15 23:12:43 +000020108$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020109
20110 ;; #(
20111 *)
cristy8b350f62009-11-15 23:12:43 +000020112 as_fn_error "unknown endianness
20113 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020114 esac
20115
20116
20117# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020118ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20119if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020120
cristy3ed852e2009-09-05 21:47:34 +000020121else
20122
20123cat >>confdefs.h <<_ACEOF
20124#define mode_t int
20125_ACEOF
20126
20127fi
20128
20129
20130# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020131ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20132if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020133
cristy3ed852e2009-09-05 21:47:34 +000020134else
20135
20136cat >>confdefs.h <<_ACEOF
20137#define off_t long int
20138_ACEOF
20139
20140fi
20141
20142
20143# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020144ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20145if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020146
cristy3ed852e2009-09-05 21:47:34 +000020147else
20148
20149cat >>confdefs.h <<_ACEOF
20150#define pid_t int
20151_ACEOF
20152
20153fi
20154
20155
20156# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020157ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20158if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020159
cristy3ed852e2009-09-05 21:47:34 +000020160else
20161
20162cat >>confdefs.h <<_ACEOF
20163#define size_t unsigned int
20164_ACEOF
20165
20166fi
20167
20168
20169# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020170ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20171if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020172
cristy3ed852e2009-09-05 21:47:34 +000020173else
20174
20175cat >>confdefs.h <<_ACEOF
20176#define ssize_t int
20177_ACEOF
20178
20179fi
20180
20181
20182# If the C compiler supports a working long double type with more range
20183# or precision than the double type, define HAVE_LONG_DOUBLE.
20184
cristy8b350f62009-11-15 23:12:43 +000020185 { $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 +000020186$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020187if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020188 $as_echo_n "(cached) " >&6
20189else
cristy8b350f62009-11-15 23:12:43 +000020190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020191/* end confdefs.h. */
20192#include <float.h>
20193 long double const a[] =
20194 {
20195 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20196 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20197 };
20198 long double
20199 f (long double x)
20200 {
20201 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20202 + (x ? f (x) : 'c'));
20203 }
20204
20205int
20206main ()
20207{
20208static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20209 + (DBL_MANT_DIG < LDBL_MANT_DIG)
20210 - (LDBL_MAX_EXP < DBL_MAX_EXP)
20211 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20212 && (int) LDBL_EPSILON == 0
20213 )];
20214test_array [0] = 0
20215
20216 ;
20217 return 0;
20218}
20219_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020220if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020221 ac_cv_type_long_double_wider=yes
20222else
cristy8b350f62009-11-15 23:12:43 +000020223 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000020224fi
cristy3ed852e2009-09-05 21:47:34 +000020225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20226fi
cristy8b350f62009-11-15 23:12:43 +000020227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000020228$as_echo "$ac_cv_type_long_double_wider" >&6; }
20229 if test $ac_cv_type_long_double_wider = yes; then
20230
cristy8b350f62009-11-15 23:12:43 +000020231$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020232
20233 fi
20234
20235
20236# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20237# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000020238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020239$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020240if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020241 $as_echo_n "(cached) " >&6
20242else
cristy8b350f62009-11-15 23:12:43 +000020243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020244/* end confdefs.h. */
20245$ac_includes_default
20246int
20247main ()
20248{
20249static int test_array [1 - 2 * !(((char) -1) < 0)];
20250test_array [0] = 0
20251
20252 ;
20253 return 0;
20254}
20255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020256if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020257 ac_cv_c_char_unsigned=no
20258else
cristy8b350f62009-11-15 23:12:43 +000020259 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000020260fi
cristy3ed852e2009-09-05 21:47:34 +000020261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20262fi
cristy8b350f62009-11-15 23:12:43 +000020263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020264$as_echo "$ac_cv_c_char_unsigned" >&6; }
20265if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000020266 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020267
20268fi
20269
20270
20271# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20272# The cast to long int works around a bug in the HP C Compiler
20273# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20274# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20275# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020277$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020278if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020279 $as_echo_n "(cached) " >&6
20280else
cristy8b350f62009-11-15 23:12:43 +000020281 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 +000020282
cristy3ed852e2009-09-05 21:47:34 +000020283else
cristy8b350f62009-11-15 23:12:43 +000020284 if test "$ac_cv_type_signed_short" = yes; then
20285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020287{ as_fn_set_status 77
20288as_fn_error "cannot compute sizeof (signed short)
20289See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020290 else
20291 ac_cv_sizeof_signed_short=0
20292 fi
20293fi
cristy8b350f62009-11-15 23:12:43 +000020294
cristy3ed852e2009-09-05 21:47:34 +000020295fi
cristy8b350f62009-11-15 23:12:43 +000020296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020297$as_echo "$ac_cv_sizeof_signed_short" >&6; }
20298
20299
20300
20301cat >>confdefs.h <<_ACEOF
20302#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
20303_ACEOF
20304
20305
20306
20307# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
20308# The cast to long int works around a bug in the HP C Compiler
20309# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20310# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20311# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020313$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020314if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020315 $as_echo_n "(cached) " >&6
20316else
cristy8b350f62009-11-15 23:12:43 +000020317 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 +000020318
cristy3ed852e2009-09-05 21:47:34 +000020319else
cristy8b350f62009-11-15 23:12:43 +000020320 if test "$ac_cv_type_unsigned_short" = yes; then
20321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020323{ as_fn_set_status 77
20324as_fn_error "cannot compute sizeof (unsigned short)
20325See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020326 else
20327 ac_cv_sizeof_unsigned_short=0
20328 fi
20329fi
cristy8b350f62009-11-15 23:12:43 +000020330
cristy3ed852e2009-09-05 21:47:34 +000020331fi
cristy8b350f62009-11-15 23:12:43 +000020332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020333$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20334
20335
20336
20337cat >>confdefs.h <<_ACEOF
20338#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20339_ACEOF
20340
20341
20342
20343# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
20344# The cast to long int works around a bug in the HP C Compiler
20345# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20346# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20347# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020349$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020350if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020351 $as_echo_n "(cached) " >&6
20352else
cristy8b350f62009-11-15 23:12:43 +000020353 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 +000020354
cristy3ed852e2009-09-05 21:47:34 +000020355else
cristy8b350f62009-11-15 23:12:43 +000020356 if test "$ac_cv_type_signed_int" = yes; then
20357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020359{ as_fn_set_status 77
20360as_fn_error "cannot compute sizeof (signed int)
20361See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020362 else
20363 ac_cv_sizeof_signed_int=0
20364 fi
20365fi
cristy8b350f62009-11-15 23:12:43 +000020366
cristy3ed852e2009-09-05 21:47:34 +000020367fi
cristy8b350f62009-11-15 23:12:43 +000020368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020369$as_echo "$ac_cv_sizeof_signed_int" >&6; }
20370
20371
20372
20373cat >>confdefs.h <<_ACEOF
20374#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
20375_ACEOF
20376
20377
20378
20379# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
20380# The cast to long int works around a bug in the HP C Compiler
20381# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20382# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20383# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020385$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020386if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020387 $as_echo_n "(cached) " >&6
20388else
cristy8b350f62009-11-15 23:12:43 +000020389 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 +000020390
cristy3ed852e2009-09-05 21:47:34 +000020391else
cristy8b350f62009-11-15 23:12:43 +000020392 if test "$ac_cv_type_unsigned_int" = yes; then
20393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020395{ as_fn_set_status 77
20396as_fn_error "cannot compute sizeof (unsigned int)
20397See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020398 else
20399 ac_cv_sizeof_unsigned_int=0
20400 fi
20401fi
cristy8b350f62009-11-15 23:12:43 +000020402
cristy3ed852e2009-09-05 21:47:34 +000020403fi
cristy8b350f62009-11-15 23:12:43 +000020404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020405$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20406
20407
20408
20409cat >>confdefs.h <<_ACEOF
20410#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20411_ACEOF
20412
20413
20414
20415# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
20416# The cast to long int works around a bug in the HP C Compiler
20417# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20418# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20419# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020421$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020422if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020423 $as_echo_n "(cached) " >&6
20424else
cristy8b350f62009-11-15 23:12:43 +000020425 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 +000020426
cristy3ed852e2009-09-05 21:47:34 +000020427else
cristy8b350f62009-11-15 23:12:43 +000020428 if test "$ac_cv_type_signed_long" = yes; then
20429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020431{ as_fn_set_status 77
20432as_fn_error "cannot compute sizeof (signed long)
20433See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020434 else
20435 ac_cv_sizeof_signed_long=0
20436 fi
20437fi
cristy8b350f62009-11-15 23:12:43 +000020438
cristy3ed852e2009-09-05 21:47:34 +000020439fi
cristy8b350f62009-11-15 23:12:43 +000020440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020441$as_echo "$ac_cv_sizeof_signed_long" >&6; }
20442
20443
20444
20445cat >>confdefs.h <<_ACEOF
20446#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
20447_ACEOF
20448
20449
20450
20451# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
20452# The cast to long int works around a bug in the HP C Compiler
20453# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20454# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20455# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020457$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020458if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020459 $as_echo_n "(cached) " >&6
20460else
cristy8b350f62009-11-15 23:12:43 +000020461 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 +000020462
cristy3ed852e2009-09-05 21:47:34 +000020463else
cristy8b350f62009-11-15 23:12:43 +000020464 if test "$ac_cv_type_unsigned_long" = yes; then
20465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020467{ as_fn_set_status 77
20468as_fn_error "cannot compute sizeof (unsigned long)
20469See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020470 else
20471 ac_cv_sizeof_unsigned_long=0
20472 fi
20473fi
cristy8b350f62009-11-15 23:12:43 +000020474
cristy3ed852e2009-09-05 21:47:34 +000020475fi
cristy8b350f62009-11-15 23:12:43 +000020476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020477$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20478
20479
20480
20481cat >>confdefs.h <<_ACEOF
20482#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20483_ACEOF
20484
20485
20486
20487# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
20488# 'signed long long' is not supported then the value defined is zero.
20489# The cast to long int works around a bug in the HP C Compiler
20490# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20491# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20492# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020494$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020495if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020496 $as_echo_n "(cached) " >&6
20497else
cristy8b350f62009-11-15 23:12:43 +000020498 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 +000020499
cristy3ed852e2009-09-05 21:47:34 +000020500else
cristy8b350f62009-11-15 23:12:43 +000020501 if test "$ac_cv_type_signed_long_long" = yes; then
20502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020504{ as_fn_set_status 77
20505as_fn_error "cannot compute sizeof (signed long long)
20506See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020507 else
20508 ac_cv_sizeof_signed_long_long=0
20509 fi
20510fi
cristy8b350f62009-11-15 23:12:43 +000020511
cristy3ed852e2009-09-05 21:47:34 +000020512fi
cristy8b350f62009-11-15 23:12:43 +000020513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020514$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
20515
20516
20517
20518cat >>confdefs.h <<_ACEOF
20519#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
20520_ACEOF
20521
20522
20523
20524# Obtain size of a 'unsigned long long' and define as
20525# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
20526# supported then the value defined is zero.
20527# The cast to long int works around a bug in the HP C Compiler
20528# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20529# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20530# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020532$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020533if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020534 $as_echo_n "(cached) " >&6
20535else
cristy8b350f62009-11-15 23:12:43 +000020536 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 +000020537
cristy3ed852e2009-09-05 21:47:34 +000020538else
cristy8b350f62009-11-15 23:12:43 +000020539 if test "$ac_cv_type_unsigned_long_long" = yes; then
20540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020542{ as_fn_set_status 77
20543as_fn_error "cannot compute sizeof (unsigned long long)
20544See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020545 else
20546 ac_cv_sizeof_unsigned_long_long=0
20547 fi
20548fi
cristy8b350f62009-11-15 23:12:43 +000020549
cristy3ed852e2009-09-05 21:47:34 +000020550fi
cristy8b350f62009-11-15 23:12:43 +000020551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020552$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20553
20554
20555
20556cat >>confdefs.h <<_ACEOF
20557#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20558_ACEOF
20559
20560
20561
20562# Obtain size of off_t and define as SIZEOF_OFF_T
20563# The cast to long int works around a bug in the HP C Compiler
20564# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20565# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20566# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020568$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020569if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020570 $as_echo_n "(cached) " >&6
20571else
cristy8b350f62009-11-15 23:12:43 +000020572 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 +000020573
cristy3ed852e2009-09-05 21:47:34 +000020574else
cristy8b350f62009-11-15 23:12:43 +000020575 if test "$ac_cv_type_off_t" = yes; then
20576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020578{ as_fn_set_status 77
20579as_fn_error "cannot compute sizeof (off_t)
20580See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020581 else
20582 ac_cv_sizeof_off_t=0
20583 fi
20584fi
cristy8b350f62009-11-15 23:12:43 +000020585
cristy3ed852e2009-09-05 21:47:34 +000020586fi
cristy8b350f62009-11-15 23:12:43 +000020587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020588$as_echo "$ac_cv_sizeof_off_t" >&6; }
20589
20590
20591
20592cat >>confdefs.h <<_ACEOF
20593#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20594_ACEOF
20595
20596
20597
20598# Obtain size of size_t and define as SIZEOF_SIZE_T
20599# The cast to long int works around a bug in the HP C Compiler
20600# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20601# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20602# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020604$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020605if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020606 $as_echo_n "(cached) " >&6
20607else
cristy8b350f62009-11-15 23:12:43 +000020608 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 +000020609
cristy3ed852e2009-09-05 21:47:34 +000020610else
cristy8b350f62009-11-15 23:12:43 +000020611 if test "$ac_cv_type_size_t" = yes; then
20612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020614{ as_fn_set_status 77
20615as_fn_error "cannot compute sizeof (size_t)
20616See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020617 else
20618 ac_cv_sizeof_size_t=0
20619 fi
20620fi
cristy8b350f62009-11-15 23:12:43 +000020621
cristy3ed852e2009-09-05 21:47:34 +000020622fi
cristy8b350f62009-11-15 23:12:43 +000020623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020624$as_echo "$ac_cv_sizeof_size_t" >&6; }
20625
20626
20627
20628cat >>confdefs.h <<_ACEOF
20629#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20630_ACEOF
20631
20632
20633
20634# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
20635# The cast to long int works around a bug in the HP C Compiler
20636# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20637# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20638# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000020640$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020641if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020642 $as_echo_n "(cached) " >&6
20643else
cristy8b350f62009-11-15 23:12:43 +000020644 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 +000020645
cristy3ed852e2009-09-05 21:47:34 +000020646else
cristy8b350f62009-11-15 23:12:43 +000020647 if test "$ac_cv_type_unsigned_intp" = yes; then
20648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020650{ as_fn_set_status 77
20651as_fn_error "cannot compute sizeof (unsigned int*)
20652See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020653 else
20654 ac_cv_sizeof_unsigned_intp=0
20655 fi
20656fi
cristy8b350f62009-11-15 23:12:43 +000020657
cristy3ed852e2009-09-05 21:47:34 +000020658fi
cristy8b350f62009-11-15 23:12:43 +000020659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000020660$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
20661
20662
20663
20664cat >>confdefs.h <<_ACEOF
20665#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
20666_ACEOF
20667
20668
20669
20670#
20671# Compute sized types for current CPU and compiler options.
20672#
20673
cristy8b350f62009-11-15 23:12:43 +000020674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020675$as_echo_n "checking for signed 8-bit type... " >&6; }
20676INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000020677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020678$as_echo "$INT8_T" >&6; }
20679
20680
cristy8b350f62009-11-15 23:12:43 +000020681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020682$as_echo_n "checking for unsigned 8-bit type... " >&6; }
20683UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000020684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020685$as_echo "$UINT8_T" >&6; }
20686
20687
cristy8b350f62009-11-15 23:12:43 +000020688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020689$as_echo_n "checking for signed 16-bit type... " >&6; }
20690INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000020691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020692$as_echo "$INT16_T" >&6; }
20693
20694
cristy8b350f62009-11-15 23:12:43 +000020695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020696$as_echo_n "checking for unsigned 16-bit type... " >&6; }
20697UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000020698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020699$as_echo "$UINT16_T" >&6; }
20700
20701
cristy8b350f62009-11-15 23:12:43 +000020702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020703$as_echo_n "checking for signed 32-bit type... " >&6; }
20704INT32_T='none'
20705if test $ac_cv_sizeof_signed_int -eq 4; then
20706 INT32_T='signed int'
20707elif test $ac_cv_sizeof_signed_long -eq 4; then
20708 INT32_T='signed long'
20709fi
cristy8b350f62009-11-15 23:12:43 +000020710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020711$as_echo "$INT32_T" >&6; }
20712
20713
cristy8b350f62009-11-15 23:12:43 +000020714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020715$as_echo_n "checking for unsigned 32-bit type... " >&6; }
20716UINT32_T='none'
20717if test $ac_cv_sizeof_unsigned_int -eq 4; then
20718 UINT32_T='unsigned int'
20719elif test $ac_cv_sizeof_unsigned_long -eq 4; then
20720 UINT32_T='unsigned long'
20721fi
cristy8b350f62009-11-15 23:12:43 +000020722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020723$as_echo "$UINT32_T" >&6; }
20724
20725
cristy8b350f62009-11-15 23:12:43 +000020726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020727$as_echo_n "checking for signed 64-bit type... " >&6; }
20728INT64_T='none'
20729if test $ac_cv_sizeof_signed_long -eq 8; then
20730 INT64_T='signed long'
20731elif test $ac_cv_sizeof_signed_long_long -eq 8; then
20732 INT64_T='signed long long'
20733fi
cristy8b350f62009-11-15 23:12:43 +000020734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020735$as_echo "$INT64_T" >&6; }
20736
20737
cristy8b350f62009-11-15 23:12:43 +000020738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020739$as_echo_n "checking for unsigned 64-bit type... " >&6; }
20740UINT64_T='none'
20741if test $ac_cv_sizeof_unsigned_long -eq 8; then
20742 UINT64_T='unsigned long'
20743elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
20744 UINT64_T='unsigned long long'
20745fi
cristy8b350f62009-11-15 23:12:43 +000020746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020747$as_echo "$UINT64_T" >&6; }
20748
20749
cristy8b350f62009-11-15 23:12:43 +000020750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020751$as_echo_n "checking for unsigned maximum type... " >&6; }
20752UINTMAX_T='none'
20753if test "$UINT64_T" != 'none'; then
20754 UINTMAX_T=$UINT64_T
20755elif test "$UINT32_T" != 'none'; then
20756 UINTMAX_T=$UINT32_T
20757fi
cristy8b350f62009-11-15 23:12:43 +000020758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020759$as_echo "$UINTMAX_T" >&6; }
20760
20761
cristy8b350f62009-11-15 23:12:43 +000020762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020763$as_echo_n "checking for pointer difference type... " >&6; }
20764UINTPTR_T='none'
20765if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
20766 UINTPTR_T='unsigned long'
20767elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
20768 UINTPTR_T='unsigned long long'
20769fi
cristy8b350f62009-11-15 23:12:43 +000020770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020771$as_echo "$UINTPTR_T" >&6; }
20772
20773
cristy8b350f62009-11-15 23:12:43 +000020774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020775$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020777/* end confdefs.h. */
20778
20779int
20780main ()
20781{
20782{ const char *func = __func__; return(func != 0 ? 0 : 1); }
20783 ;
20784 return 0;
20785}
20786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020787if ac_fn_c_try_compile "$LINENO"; then :
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020789$as_echo "yes" >&6; }
20790else
cristy8b350f62009-11-15 23:12:43 +000020791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020792$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020794$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020796/* end confdefs.h. */
20797
20798int
20799main ()
20800{
20801{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
20802 ;
20803 return 0;
20804}
20805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020806if ac_fn_c_try_compile "$LINENO"; then :
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020808$as_echo "yes" >&6; }
20809
cristy8b350f62009-11-15 23:12:43 +000020810$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020811
20812else
cristy8b350f62009-11-15 23:12:43 +000020813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020814$as_echo "no" >&6; }
20815
cristy8b350f62009-11-15 23:12:43 +000020816$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020817
20818fi
cristy3ed852e2009-09-05 21:47:34 +000020819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20820fi
cristy3ed852e2009-09-05 21:47:34 +000020821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20822
20823########
20824#
20825# Check for functions
20826#
20827########
cristy3ed852e2009-09-05 21:47:34 +000020828for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000020829do :
20830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20831ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20832eval as_val=\$$as_ac_Header
20833 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020834 cat >>confdefs.h <<_ACEOF
20835#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20836_ACEOF
20837
20838fi
20839
20840done
20841
cristy3ed852e2009-09-05 21:47:34 +000020842for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000020843do :
20844 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20845if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020846 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020847#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000020848_ACEOF
20849
20850fi
20851done
20852
cristy8b350f62009-11-15 23:12:43 +000020853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000020854$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020855if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020856 $as_echo_n "(cached) " >&6
20857else
cristy8b350f62009-11-15 23:12:43 +000020858 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020859 magick_cv_func_mmap_fileio=no
20860else
cristy8b350f62009-11-15 23:12:43 +000020861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020862/* end confdefs.h. */
20863$ac_includes_default
20864/* malloc might have been renamed as rpl_malloc. */
20865#undef malloc
20866
20867/*
20868 This test is derived from GNU Autoconf's similar macro.
20869 The purpose of this test is to verify that files may be memory
20870 mapped, and that memory mapping and file I/O are coherent.
20871
20872 The test creates a test file, memory maps the file, updates
20873 the file using the memory map, and then reads the file using
20874 file I/O to verify that the file contains the updates.
20875*/
20876
20877#include <fcntl.h>
20878#include <sys/mman.h>
20879
20880#if !STDC_HEADERS && !HAVE_STDLIB_H
20881char *malloc ();
20882#endif
20883
20884/* This mess was copied from the GNU getpagesize.h. */
20885#if !HAVE_GETPAGESIZE
20886/* Assume that all systems that can run configure have sys/param.h. */
20887# if !HAVE_SYS_PARAM_H
20888# define HAVE_SYS_PARAM_H 1
20889# endif
20890
20891# ifdef _SC_PAGESIZE
20892# define getpagesize() sysconf(_SC_PAGESIZE)
20893# else /* no _SC_PAGESIZE */
20894# if HAVE_SYS_PARAM_H
20895# include <sys/param.h>
20896# ifdef EXEC_PAGESIZE
20897# define getpagesize() EXEC_PAGESIZE
20898# else /* no EXEC_PAGESIZE */
20899# ifdef NBPG
20900# define getpagesize() NBPG * CLSIZE
20901# ifndef CLSIZE
20902# define CLSIZE 1
20903# endif /* no CLSIZE */
20904# else /* no NBPG */
20905# ifdef NBPC
20906# define getpagesize() NBPC
20907# else /* no NBPC */
20908# ifdef PAGESIZE
20909# define getpagesize() PAGESIZE
20910# endif /* PAGESIZE */
20911# endif /* no NBPC */
20912# endif /* no NBPG */
20913# endif /* no EXEC_PAGESIZE */
20914# else /* no HAVE_SYS_PARAM_H */
20915# define getpagesize() 8192 /* punt totally */
20916# endif /* no HAVE_SYS_PARAM_H */
20917# endif /* no _SC_PAGESIZE */
20918
20919#endif /* no HAVE_GETPAGESIZE */
20920
20921int
20922main ()
20923{
20924 char *data, *data2, *data3;
20925 int i, pagesize;
20926 int fd;
20927
20928 pagesize = getpagesize ();
20929
20930 /* First, make a file with some known garbage in it. */
20931 data = (char *) malloc (pagesize);
20932 if (!data)
20933 exit (1);
20934 for (i = 0; i < pagesize; ++i)
20935 *(data + i) = rand ();
20936 umask (0);
20937 fd = creat ("conftest.mmap", 0600);
20938 if (fd < 0)
20939 exit (1);
20940 if (write (fd, data, pagesize) != pagesize)
20941 exit (1);
20942 close (fd);
20943
20944 /* Mmap the file as read/write/shared and verify that we see the
20945 same garbage. */
20946 fd = open ("conftest.mmap", O_RDWR);
20947 if (fd < 0)
20948 exit (1);
20949 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
20950 if (data2 == 0)
20951 exit (1);
20952 for (i = 0; i < pagesize; ++i)
20953 if (*(data + i) != *(data2 + i))
20954 exit (1);
20955
20956 /* Finally, make sure that changes to the mapped area
20957 percolate back to the file as seen by read(). */
20958 for (i = 0; i < pagesize; ++i)
20959 *(data2 + i) = *(data2 + i) + 1;
20960 data3 = (char *) malloc (pagesize);
20961 if (!data3)
20962 exit (1);
20963 if (read (fd, data3, pagesize) != pagesize)
20964 exit (1);
20965 for (i = 0; i < pagesize; ++i)
20966 if (*(data2 + i) != *(data3 + i))
20967 exit (1);
20968 close (fd);
20969 exit (0);
20970}
20971_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020972if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020973 magick_cv_func_mmap_fileio=yes
20974else
cristy8b350f62009-11-15 23:12:43 +000020975 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000020976fi
cristy8b350f62009-11-15 23:12:43 +000020977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20978 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020979fi
20980
cristy3ed852e2009-09-05 21:47:34 +000020981fi
cristy8b350f62009-11-15 23:12:43 +000020982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000020983$as_echo "$magick_cv_func_mmap_fileio" >&6; }
20984if test $magick_cv_func_mmap_fileio = yes; then
20985
cristy8b350f62009-11-15 23:12:43 +000020986$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020987
20988fi
20989rm -f conftest.mmap
20990
cristy8b350f62009-11-15 23:12:43 +000020991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000020992$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020993if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020994 $as_echo_n "(cached) " >&6
20995else
cristy8b350f62009-11-15 23:12:43 +000020996 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020997 ac_cv_func_closedir_void=yes
20998else
cristy8b350f62009-11-15 23:12:43 +000020999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021000/* end confdefs.h. */
21001$ac_includes_default
21002#include <$ac_header_dirent>
21003#ifndef __cplusplus
21004int closedir ();
21005#endif
21006
21007int
21008main ()
21009{
21010return closedir (opendir (".")) != 0;
21011 ;
21012 return 0;
21013}
21014_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021015if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021016 ac_cv_func_closedir_void=no
21017else
cristy8b350f62009-11-15 23:12:43 +000021018 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000021019fi
cristy8b350f62009-11-15 23:12:43 +000021020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21021 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021022fi
21023
cristy3ed852e2009-09-05 21:47:34 +000021024fi
cristy8b350f62009-11-15 23:12:43 +000021025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021026$as_echo "$ac_cv_func_closedir_void" >&6; }
21027if test $ac_cv_func_closedir_void = yes; then
21028
cristy8b350f62009-11-15 23:12:43 +000021029$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021030
21031fi
21032
cristy3ed852e2009-09-05 21:47:34 +000021033for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000021034do :
21035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21036ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21037eval as_val=\$$as_ac_Header
21038 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021039 cat >>confdefs.h <<_ACEOF
21040#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21041_ACEOF
21042
21043fi
21044
21045done
21046
cristy3ed852e2009-09-05 21:47:34 +000021047for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021048do :
21049 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21050if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021051 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021052#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021053_ACEOF
21054
21055fi
21056done
21057
cristy8b350f62009-11-15 23:12:43 +000021058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000021059$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021060if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021061 $as_echo_n "(cached) " >&6
21062else
cristy8b350f62009-11-15 23:12:43 +000021063 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021064 ac_cv_func_mmap_fixed_mapped=no
21065else
cristy8b350f62009-11-15 23:12:43 +000021066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021067/* end confdefs.h. */
21068$ac_includes_default
21069/* malloc might have been renamed as rpl_malloc. */
21070#undef malloc
21071
21072/* Thanks to Mike Haertel and Jim Avera for this test.
21073 Here is a matrix of mmap possibilities:
21074 mmap private not fixed
21075 mmap private fixed at somewhere currently unmapped
21076 mmap private fixed at somewhere already mapped
21077 mmap shared not fixed
21078 mmap shared fixed at somewhere currently unmapped
21079 mmap shared fixed at somewhere already mapped
21080 For private mappings, we should verify that changes cannot be read()
21081 back from the file, nor mmap's back from the file at a different
21082 address. (There have been systems where private was not correctly
21083 implemented like the infamous i386 svr4.0, and systems where the
21084 VM page cache was not coherent with the file system buffer cache
21085 like early versions of FreeBSD and possibly contemporary NetBSD.)
21086 For shared mappings, we should conversely verify that changes get
21087 propagated back to all the places they're supposed to be.
21088
21089 Grep wants private fixed already mapped.
21090 The main things grep needs to know about mmap are:
21091 * does it exist and is it safe to write into the mmap'd area
21092 * how to use it (BSD variants) */
21093
21094#include <fcntl.h>
21095#include <sys/mman.h>
21096
21097#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21098char *malloc ();
21099#endif
21100
21101/* This mess was copied from the GNU getpagesize.h. */
21102#ifndef HAVE_GETPAGESIZE
21103/* Assume that all systems that can run configure have sys/param.h. */
21104# ifndef HAVE_SYS_PARAM_H
21105# define HAVE_SYS_PARAM_H 1
21106# endif
21107
21108# ifdef _SC_PAGESIZE
21109# define getpagesize() sysconf(_SC_PAGESIZE)
21110# else /* no _SC_PAGESIZE */
21111# ifdef HAVE_SYS_PARAM_H
21112# include <sys/param.h>
21113# ifdef EXEC_PAGESIZE
21114# define getpagesize() EXEC_PAGESIZE
21115# else /* no EXEC_PAGESIZE */
21116# ifdef NBPG
21117# define getpagesize() NBPG * CLSIZE
21118# ifndef CLSIZE
21119# define CLSIZE 1
21120# endif /* no CLSIZE */
21121# else /* no NBPG */
21122# ifdef NBPC
21123# define getpagesize() NBPC
21124# else /* no NBPC */
21125# ifdef PAGESIZE
21126# define getpagesize() PAGESIZE
21127# endif /* PAGESIZE */
21128# endif /* no NBPC */
21129# endif /* no NBPG */
21130# endif /* no EXEC_PAGESIZE */
21131# else /* no HAVE_SYS_PARAM_H */
21132# define getpagesize() 8192 /* punt totally */
21133# endif /* no HAVE_SYS_PARAM_H */
21134# endif /* no _SC_PAGESIZE */
21135
21136#endif /* no HAVE_GETPAGESIZE */
21137
21138int
21139main ()
21140{
21141 char *data, *data2, *data3;
21142 int i, pagesize;
21143 int fd;
21144
21145 pagesize = getpagesize ();
21146
21147 /* First, make a file with some known garbage in it. */
21148 data = (char *) malloc (pagesize);
21149 if (!data)
21150 return 1;
21151 for (i = 0; i < pagesize; ++i)
21152 *(data + i) = rand ();
21153 umask (0);
21154 fd = creat ("conftest.mmap", 0600);
21155 if (fd < 0)
21156 return 1;
21157 if (write (fd, data, pagesize) != pagesize)
21158 return 1;
21159 close (fd);
21160
21161 /* Next, try to mmap the file at a fixed address which already has
21162 something else allocated at it. If we can, also make sure that
21163 we see the same garbage. */
21164 fd = open ("conftest.mmap", O_RDWR);
21165 if (fd < 0)
21166 return 1;
21167 data2 = (char *) malloc (2 * pagesize);
21168 if (!data2)
21169 return 1;
21170 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21171 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21172 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21173 return 1;
21174 for (i = 0; i < pagesize; ++i)
21175 if (*(data + i) != *(data2 + i))
21176 return 1;
21177
21178 /* Finally, make sure that changes to the mapped area do not
21179 percolate back to the file as seen by read(). (This is a bug on
21180 some variants of i386 svr4.0.) */
21181 for (i = 0; i < pagesize; ++i)
21182 *(data2 + i) = *(data2 + i) + 1;
21183 data3 = (char *) malloc (pagesize);
21184 if (!data3)
21185 return 1;
21186 if (read (fd, data3, pagesize) != pagesize)
21187 return 1;
21188 for (i = 0; i < pagesize; ++i)
21189 if (*(data + i) != *(data3 + i))
21190 return 1;
21191 close (fd);
21192 return 0;
21193}
21194_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021195if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021196 ac_cv_func_mmap_fixed_mapped=yes
21197else
cristy8b350f62009-11-15 23:12:43 +000021198 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000021199fi
cristy8b350f62009-11-15 23:12:43 +000021200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21201 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021202fi
21203
cristy3ed852e2009-09-05 21:47:34 +000021204fi
cristy8b350f62009-11-15 23:12:43 +000021205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000021206$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21207if test $ac_cv_func_mmap_fixed_mapped = yes; then
21208
cristy8b350f62009-11-15 23:12:43 +000021209$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021210
21211fi
21212rm -f conftest.mmap
21213
cristy3ed852e2009-09-05 21:47:34 +000021214for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000021215do :
21216 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21217if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021218 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021219#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000021220_ACEOF
21221
21222fi
21223
21224done
21225
cristy3ed852e2009-09-05 21:47:34 +000021226for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000021227do :
21228 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21229ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21230eval as_val=\$$as_ac_var
21231 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021232 cat >>confdefs.h <<_ACEOF
21233#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21234_ACEOF
21235
21236fi
21237done
21238
21239if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021241$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021242if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021243 $as_echo_n "(cached) " >&6
21244else
cristy8b350f62009-11-15 23:12:43 +000021245 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021246 ac_cv_func_fork_works=cross
21247else
cristy8b350f62009-11-15 23:12:43 +000021248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021249/* end confdefs.h. */
21250$ac_includes_default
21251int
21252main ()
21253{
21254
21255 /* By Ruediger Kuhlmann. */
21256 return fork () < 0;
21257
21258 ;
21259 return 0;
21260}
21261_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021262if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021263 ac_cv_func_fork_works=yes
21264else
cristy8b350f62009-11-15 23:12:43 +000021265 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021266fi
cristy8b350f62009-11-15 23:12:43 +000021267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21268 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021269fi
21270
cristy3ed852e2009-09-05 21:47:34 +000021271fi
cristy8b350f62009-11-15 23:12:43 +000021272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021273$as_echo "$ac_cv_func_fork_works" >&6; }
21274
21275else
21276 ac_cv_func_fork_works=$ac_cv_func_fork
21277fi
21278if test "x$ac_cv_func_fork_works" = xcross; then
21279 case $host in
21280 *-*-amigaos* | *-*-msdosdjgpp*)
21281 # Override, as these systems have only a dummy fork() stub
21282 ac_cv_func_fork_works=no
21283 ;;
21284 *)
21285 ac_cv_func_fork_works=yes
21286 ;;
21287 esac
cristy8b350f62009-11-15 23:12:43 +000021288 { $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 +000021289$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21290fi
21291ac_cv_func_vfork_works=$ac_cv_func_vfork
21292if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021294$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021295if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021296 $as_echo_n "(cached) " >&6
21297else
cristy8b350f62009-11-15 23:12:43 +000021298 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021299 ac_cv_func_vfork_works=cross
21300else
cristy8b350f62009-11-15 23:12:43 +000021301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021302/* end confdefs.h. */
21303/* Thanks to Paul Eggert for this test. */
21304$ac_includes_default
21305#include <sys/wait.h>
21306#ifdef HAVE_VFORK_H
21307# include <vfork.h>
21308#endif
21309/* On some sparc systems, changes by the child to local and incoming
21310 argument registers are propagated back to the parent. The compiler
21311 is told about this with #include <vfork.h>, but some compilers
21312 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21313 static variable whose address is put into a register that is
21314 clobbered by the vfork. */
21315static void
21316#ifdef __cplusplus
21317sparc_address_test (int arg)
21318# else
21319sparc_address_test (arg) int arg;
21320#endif
21321{
21322 static pid_t child;
21323 if (!child) {
21324 child = vfork ();
21325 if (child < 0) {
21326 perror ("vfork");
21327 _exit(2);
21328 }
21329 if (!child) {
21330 arg = getpid();
21331 write(-1, "", 0);
21332 _exit (arg);
21333 }
21334 }
21335}
21336
21337int
21338main ()
21339{
21340 pid_t parent = getpid ();
21341 pid_t child;
21342
21343 sparc_address_test (0);
21344
21345 child = vfork ();
21346
21347 if (child == 0) {
21348 /* Here is another test for sparc vfork register problems. This
21349 test uses lots of local variables, at least as many local
21350 variables as main has allocated so far including compiler
21351 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21352 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21353 reuse the register of parent for one of the local variables,
21354 since it will think that parent can't possibly be used any more
21355 in this routine. Assigning to the local variable will thus
21356 munge parent in the parent process. */
21357 pid_t
21358 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21359 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21360 /* Convince the compiler that p..p7 are live; otherwise, it might
21361 use the same hardware register for all 8 local variables. */
21362 if (p != p1 || p != p2 || p != p3 || p != p4
21363 || p != p5 || p != p6 || p != p7)
21364 _exit(1);
21365
21366 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21367 from child file descriptors. If the child closes a descriptor
21368 before it execs or exits, this munges the parent's descriptor
21369 as well. Test for this by closing stdout in the child. */
21370 _exit(close(fileno(stdout)) != 0);
21371 } else {
21372 int status;
21373 struct stat st;
21374
21375 while (wait(&status) != child)
21376 ;
21377 return (
21378 /* Was there some problem with vforking? */
21379 child < 0
21380
21381 /* Did the child fail? (This shouldn't happen.) */
21382 || status
21383
21384 /* Did the vfork/compiler bug occur? */
21385 || parent != getpid()
21386
21387 /* Did the file descriptor bug occur? */
21388 || fstat(fileno(stdout), &st) != 0
21389 );
21390 }
21391}
21392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021393if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021394 ac_cv_func_vfork_works=yes
21395else
cristy8b350f62009-11-15 23:12:43 +000021396 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021397fi
cristy8b350f62009-11-15 23:12:43 +000021398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21399 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021400fi
21401
cristy3ed852e2009-09-05 21:47:34 +000021402fi
cristy8b350f62009-11-15 23:12:43 +000021403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021404$as_echo "$ac_cv_func_vfork_works" >&6; }
21405
21406fi;
21407if test "x$ac_cv_func_fork_works" = xcross; then
21408 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000021409 { $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 +000021410$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21411fi
21412
21413if test "x$ac_cv_func_vfork_works" = xyes; then
21414
cristy8b350f62009-11-15 23:12:43 +000021415$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021416
21417else
21418
cristy8b350f62009-11-15 23:12:43 +000021419$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021420
21421fi
21422if test "x$ac_cv_func_fork_works" = xyes; then
21423
cristy8b350f62009-11-15 23:12:43 +000021424$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021425
21426fi
21427
cristy8b350f62009-11-15 23:12:43 +000021428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021429$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021430if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021431 $as_echo_n "(cached) " >&6
21432else
cristy8b350f62009-11-15 23:12:43 +000021433 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021434 ac_cv_func_memcmp_working=no
21435else
cristy8b350f62009-11-15 23:12:43 +000021436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021437/* end confdefs.h. */
21438$ac_includes_default
21439int
21440main ()
21441{
21442
21443 /* Some versions of memcmp are not 8-bit clean. */
21444 char c0 = '\100', c1 = '\200', c2 = '\201';
21445 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21446 return 1;
21447
21448 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21449 or more and with at least one buffer not starting on a 4-byte boundary.
21450 William Lewis provided this test program. */
21451 {
21452 char foo[21];
21453 char bar[21];
21454 int i;
21455 for (i = 0; i < 4; i++)
21456 {
21457 char *a = foo + i;
21458 char *b = bar + i;
21459 strcpy (a, "--------01111111");
21460 strcpy (b, "--------10000000");
21461 if (memcmp (a, b, 16) >= 0)
21462 return 1;
21463 }
21464 return 0;
21465 }
21466
21467 ;
21468 return 0;
21469}
21470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021471if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021472 ac_cv_func_memcmp_working=yes
21473else
cristy8b350f62009-11-15 23:12:43 +000021474 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000021475fi
cristy8b350f62009-11-15 23:12:43 +000021476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21477 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021478fi
21479
cristy3ed852e2009-09-05 21:47:34 +000021480fi
cristy8b350f62009-11-15 23:12:43 +000021481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000021482$as_echo "$ac_cv_func_memcmp_working" >&6; }
21483test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21484 *" memcmp.$ac_objext "* ) ;;
21485 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21486 ;;
21487esac
21488
21489
cristy3ed852e2009-09-05 21:47:34 +000021490for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000021491do :
21492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21493ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21494eval as_val=\$$as_ac_Header
21495 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021496 cat >>confdefs.h <<_ACEOF
21497#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21498_ACEOF
21499
21500fi
21501
21502done
21503
cristy8b350f62009-11-15 23:12:43 +000021504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000021505$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021506if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021507 $as_echo_n "(cached) " >&6
21508else
21509 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21510 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21511 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000021512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021513/* end confdefs.h. */
21514$ac_includes_default
21515#ifdef HAVE_SYS_SELECT_H
21516# include <sys/select.h>
21517#endif
21518#ifdef HAVE_SYS_SOCKET_H
21519# include <sys/socket.h>
21520#endif
21521
21522int
21523main ()
21524{
21525extern int select ($ac_arg1,
21526 $ac_arg234, $ac_arg234, $ac_arg234,
21527 $ac_arg5);
21528 ;
21529 return 0;
21530}
21531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021532if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021533 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000021534fi
cristy3ed852e2009-09-05 21:47:34 +000021535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21536 done
21537 done
21538done
21539# Provide a safe default value.
21540: ${ac_cv_func_select_args='int,int *,struct timeval *'}
21541
21542fi
cristy8b350f62009-11-15 23:12:43 +000021543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000021544$as_echo "$ac_cv_func_select_args" >&6; }
21545ac_save_IFS=$IFS; IFS=','
21546set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21547IFS=$ac_save_IFS
21548shift
21549
21550cat >>confdefs.h <<_ACEOF
21551#define SELECT_TYPE_ARG1 $1
21552_ACEOF
21553
21554
21555cat >>confdefs.h <<_ACEOF
21556#define SELECT_TYPE_ARG234 ($2)
21557_ACEOF
21558
21559
21560cat >>confdefs.h <<_ACEOF
21561#define SELECT_TYPE_ARG5 ($3)
21562_ACEOF
21563
21564rm -f conftest*
21565
cristy8b350f62009-11-15 23:12:43 +000021566if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021567 $as_echo_n "(cached) " >&6
21568else
21569 ac_cv_func_setvbuf_reversed=no
21570fi
21571
21572
cristy8b350f62009-11-15 23:12:43 +000021573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000021574$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021575if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021576 $as_echo_n "(cached) " >&6
21577else
cristy8b350f62009-11-15 23:12:43 +000021578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021579/* end confdefs.h. */
21580#include <sys/types.h>
21581#include <signal.h>
21582
21583int
21584main ()
21585{
21586return *(signal (0, 0)) (0) == 1;
21587 ;
21588 return 0;
21589}
21590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021591if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021592 ac_cv_type_signal=int
21593else
cristy8b350f62009-11-15 23:12:43 +000021594 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000021595fi
cristy3ed852e2009-09-05 21:47:34 +000021596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21597fi
cristy8b350f62009-11-15 23:12:43 +000021598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000021599$as_echo "$ac_cv_type_signal" >&6; }
21600
21601cat >>confdefs.h <<_ACEOF
21602#define RETSIGTYPE $ac_cv_type_signal
21603_ACEOF
21604
21605
cristy8b350f62009-11-15 23:12:43 +000021606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021607$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021608if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021609 $as_echo_n "(cached) " >&6
21610else
cristy8b350f62009-11-15 23:12:43 +000021611 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021612 ac_cv_func_strtod=no
21613else
cristy8b350f62009-11-15 23:12:43 +000021614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021615/* end confdefs.h. */
21616
21617$ac_includes_default
21618#ifndef strtod
21619double strtod ();
21620#endif
21621int
21622main()
21623{
21624 {
21625 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
21626 char *string = " +69";
21627 char *term;
21628 double value;
21629 value = strtod (string, &term);
21630 if (value != 69 || term != (string + 4))
21631 return 1;
21632 }
21633
21634 {
21635 /* Under Solaris 2.4, strtod returns the wrong value for the
21636 terminating character under some conditions. */
21637 char *string = "NaN";
21638 char *term;
21639 strtod (string, &term);
21640 if (term != string && *(term - 1) == 0)
21641 return 1;
21642 }
21643 return 0;
21644}
21645
21646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021647if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021648 ac_cv_func_strtod=yes
21649else
cristy8b350f62009-11-15 23:12:43 +000021650 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000021651fi
cristy8b350f62009-11-15 23:12:43 +000021652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21653 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021654fi
21655
cristy3ed852e2009-09-05 21:47:34 +000021656fi
cristy8b350f62009-11-15 23:12:43 +000021657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021658$as_echo "$ac_cv_func_strtod" >&6; }
21659if test $ac_cv_func_strtod = no; then
21660 case " $LIBOBJS " in
21661 *" strtod.$ac_objext "* ) ;;
21662 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21663 ;;
21664esac
21665
cristy8b350f62009-11-15 23:12:43 +000021666ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21667if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021668
cristy3ed852e2009-09-05 21:47:34 +000021669fi
21670
cristy3ed852e2009-09-05 21:47:34 +000021671if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000021672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021673$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021674if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021675 $as_echo_n "(cached) " >&6
21676else
21677 ac_check_lib_save_LIBS=$LIBS
21678LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000021679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021680/* end confdefs.h. */
21681
21682/* Override any GCC internal prototype to avoid an error.
21683 Use char because int might match the return type of a GCC
21684 builtin and then its argument prototype would still apply. */
21685#ifdef __cplusplus
21686extern "C"
21687#endif
21688char pow ();
21689int
21690main ()
21691{
21692return pow ();
21693 ;
21694 return 0;
21695}
21696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021697if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021698 ac_cv_lib_m_pow=yes
21699else
cristy8b350f62009-11-15 23:12:43 +000021700 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000021701fi
cristy8b350f62009-11-15 23:12:43 +000021702rm -f core conftest.err conftest.$ac_objext \
21703 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021704LIBS=$ac_check_lib_save_LIBS
21705fi
cristy8b350f62009-11-15 23:12:43 +000021706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021707$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021708if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021709 POW_LIB=-lm
21710else
cristy8b350f62009-11-15 23:12:43 +000021711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021712$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21713fi
21714
21715fi
21716
21717fi
21718
cristy3ed852e2009-09-05 21:47:34 +000021719for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000021720do :
21721 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21722if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021723 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021724#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000021725_ACEOF
21726
cristy8b350f62009-11-15 23:12:43 +000021727ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21728if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021729
cristy8b350f62009-11-15 23:12:43 +000021730$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021731
21732fi
21733
21734fi
21735done
21736
21737
21738
cristye43a45e2009-09-28 14:49:00 +000021739for ac_func in _exit atexit clock directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol symlink sysconf sigemptyset sigaction strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000021740do :
21741 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21742ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21743eval as_val=\$$as_ac_var
21744 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021745 cat >>confdefs.h <<_ACEOF
21746#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21747_ACEOF
21748
21749fi
21750done
21751
21752
cristye43a45e2009-09-28 14:49:00 +000021753#
21754# Check for clock_gettime().
21755#
cristy8b350f62009-11-15 23:12:43 +000021756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021757$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021758if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021759 $as_echo_n "(cached) " >&6
21760else
21761 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021763/* end confdefs.h. */
21764
21765/* Override any GCC internal prototype to avoid an error.
21766 Use char because int might match the return type of a GCC
21767 builtin and then its argument prototype would still apply. */
21768#ifdef __cplusplus
21769extern "C"
21770#endif
21771char clock_gettime ();
21772int
21773main ()
21774{
21775return clock_gettime ();
21776 ;
21777 return 0;
21778}
21779_ACEOF
21780for ac_lib in '' rt; do
21781 if test -z "$ac_lib"; then
21782 ac_res="none required"
21783 else
21784 ac_res=-l$ac_lib
21785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21786 fi
cristy8b350f62009-11-15 23:12:43 +000021787 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021788 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000021789fi
cristy8b350f62009-11-15 23:12:43 +000021790rm -f core conftest.err conftest.$ac_objext \
21791 conftest$ac_exeext
21792 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021793 break
21794fi
21795done
cristy8b350f62009-11-15 23:12:43 +000021796if test "${ac_cv_search_clock_gettime+set}" = set; then :
21797
cristye43a45e2009-09-28 14:49:00 +000021798else
21799 ac_cv_search_clock_gettime=no
21800fi
21801rm conftest.$ac_ext
21802LIBS=$ac_func_search_save_LIBS
21803fi
cristy8b350f62009-11-15 23:12:43 +000021804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021805$as_echo "$ac_cv_search_clock_gettime" >&6; }
21806ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000021807if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000021808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21809
21810
cristy8b350f62009-11-15 23:12:43 +000021811$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021812
cristy8b350f62009-11-15 23:12:43 +000021813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000021814$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021816/* end confdefs.h. */
21817#include <time.h>
21818int
21819main ()
21820{
21821clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000021822 ;
21823 return 0;
21824}
21825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021826if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021827
cristy8b350f62009-11-15 23:12:43 +000021828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000021829$as_echo "yes" >&6; }
21830
cristy8b350f62009-11-15 23:12:43 +000021831$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021832
21833
21834else
cristy8b350f62009-11-15 23:12:43 +000021835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000021836$as_echo "no" >&6; }
21837
21838fi
cristye43a45e2009-09-28 14:49:00 +000021839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21840
21841else
21842
cristy8b350f62009-11-15 23:12:43 +000021843 for ac_func in gettimeofday ftime
21844do :
21845 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21846ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21847eval as_val=\$$as_ac_var
21848 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000021849 cat >>confdefs.h <<_ACEOF
21850#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21851_ACEOF
21852 break
21853fi
21854done
21855
21856
21857
21858fi
21859
21860
cristy3ed852e2009-09-05 21:47:34 +000021861########
21862#
21863# Check for function prototypes
21864#
21865########
21866
cristy8b350f62009-11-15 23:12:43 +000021867ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000021868#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021869"
21870if test "x$ac_cv_have_decl_pread" = x""yes; then :
21871 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021872else
cristy8b350f62009-11-15 23:12:43 +000021873 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021874fi
21875
cristy3ed852e2009-09-05 21:47:34 +000021876cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021877#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021878_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021879ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000021880#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021881"
21882if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
21883 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021884else
cristy8b350f62009-11-15 23:12:43 +000021885 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021886fi
21887
cristy3ed852e2009-09-05 21:47:34 +000021888cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021889#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021890_ACEOF
21891
21892
cristy8b350f62009-11-15 23:12:43 +000021893ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000021894#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000021895"
21896if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
21897 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021898else
cristy8b350f62009-11-15 23:12:43 +000021899 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021900fi
21901
cristy3ed852e2009-09-05 21:47:34 +000021902cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021903#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021904_ACEOF
21905
21906
cristy8b350f62009-11-15 23:12:43 +000021907ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000021908#include <stdio.h>
21909#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000021910"
21911if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
21912 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021913else
cristy8b350f62009-11-15 23:12:43 +000021914 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021915fi
21916
cristy3ed852e2009-09-05 21:47:34 +000021917cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021918#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021919_ACEOF
21920
21921
cristy3ed852e2009-09-05 21:47:34 +000021922########
21923#
21924# C++ Support Tests (For Magick++)
21925#
21926########
21927have_magick_plus_plus='no'
21928if test "$with_magick_plus_plus" = 'yes'; then
21929 OLIBS="$LIBS"
21930 LIBS=''
21931 ac_ext=cpp
21932ac_cpp='$CXXCPP $CPPFLAGS'
21933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21936
21937
21938 # Full set of headers used...
21939 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
21940 # functional iomanip iosfwd iostream iterator list string strstream utility
21941 ac_ext=cpp
21942ac_cpp='$CXXCPP $CPPFLAGS'
21943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21946
21947 ac_ext=cpp
21948ac_cpp='$CXXCPP $CPPFLAGS'
21949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21952if test -z "$CXX"; then
21953 if test -n "$CCC"; then
21954 CXX=$CCC
21955 else
21956 if test -n "$ac_tool_prefix"; then
21957 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
21958 do
21959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21960set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000021961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000021962$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021963if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021964 $as_echo_n "(cached) " >&6
21965else
21966 if test -n "$CXX"; then
21967 ac_cv_prog_CXX="$CXX" # Let the user override the test.
21968else
21969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21970for as_dir in $PATH
21971do
21972 IFS=$as_save_IFS
21973 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000021974 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000021975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21976 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000021977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000021978 break 2
21979 fi
21980done
cristy8b350f62009-11-15 23:12:43 +000021981 done
cristy3ed852e2009-09-05 21:47:34 +000021982IFS=$as_save_IFS
21983
21984fi
21985fi
21986CXX=$ac_cv_prog_CXX
21987if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000021988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000021989$as_echo "$CXX" >&6; }
21990else
cristy8b350f62009-11-15 23:12:43 +000021991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021992$as_echo "no" >&6; }
21993fi
21994
21995
21996 test -n "$CXX" && break
21997 done
21998fi
21999if test -z "$CXX"; then
22000 ac_ct_CXX=$CXX
22001 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22002do
22003 # Extract the first word of "$ac_prog", so it can be a program name with args.
22004set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022006$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022007if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022008 $as_echo_n "(cached) " >&6
22009else
22010 if test -n "$ac_ct_CXX"; then
22011 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22012else
22013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22014for as_dir in $PATH
22015do
22016 IFS=$as_save_IFS
22017 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022018 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22020 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022022 break 2
22023 fi
22024done
cristy8b350f62009-11-15 23:12:43 +000022025 done
cristy3ed852e2009-09-05 21:47:34 +000022026IFS=$as_save_IFS
22027
22028fi
22029fi
22030ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22031if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022033$as_echo "$ac_ct_CXX" >&6; }
22034else
cristy8b350f62009-11-15 23:12:43 +000022035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022036$as_echo "no" >&6; }
22037fi
22038
22039
22040 test -n "$ac_ct_CXX" && break
22041done
22042
22043 if test "x$ac_ct_CXX" = x; then
22044 CXX="g++"
22045 else
22046 case $cross_compiling:$ac_tool_warned in
22047yes:)
cristy8b350f62009-11-15 23:12:43 +000022048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000022049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22050ac_tool_warned=yes ;;
22051esac
22052 CXX=$ac_ct_CXX
22053 fi
22054fi
22055
22056 fi
22057fi
22058# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000022059$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000022060set X $ac_compile
22061ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000022062for ac_option in --version -v -V -qversion; do
22063 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000022064case "(($ac_try" in
22065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066 *) ac_try_echo=$ac_try;;
22067esac
cristy8b350f62009-11-15 23:12:43 +000022068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22069$as_echo "$ac_try_echo"; } >&5
22070 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000022071 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000022072 if test -s conftest.err; then
22073 sed '10a\
22074... rest of stderr output deleted ...
22075 10q' conftest.err >conftest.er1
22076 cat conftest.er1 >&5
22077 rm -f conftest.er1 conftest.err
22078 fi
22079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22080 test $ac_status = 0; }
22081done
cristy3ed852e2009-09-05 21:47:34 +000022082
cristy8b350f62009-11-15 23:12:43 +000022083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000022084$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022085if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022086 $as_echo_n "(cached) " >&6
22087else
cristy8b350f62009-11-15 23:12:43 +000022088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022089/* end confdefs.h. */
22090
22091int
22092main ()
22093{
22094#ifndef __GNUC__
22095 choke me
22096#endif
22097
22098 ;
22099 return 0;
22100}
22101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022102if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022103 ac_compiler_gnu=yes
22104else
cristy8b350f62009-11-15 23:12:43 +000022105 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000022106fi
cristy3ed852e2009-09-05 21:47:34 +000022107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22108ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22109
22110fi
cristy8b350f62009-11-15 23:12:43 +000022111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000022112$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22113if test $ac_compiler_gnu = yes; then
22114 GXX=yes
22115else
22116 GXX=
22117fi
22118ac_test_CXXFLAGS=${CXXFLAGS+set}
22119ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000022120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022121$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022122if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022123 $as_echo_n "(cached) " >&6
22124else
22125 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22126 ac_cxx_werror_flag=yes
22127 ac_cv_prog_cxx_g=no
22128 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022130/* end confdefs.h. */
22131
22132int
22133main ()
22134{
22135
22136 ;
22137 return 0;
22138}
22139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022140if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022141 ac_cv_prog_cxx_g=yes
22142else
cristy8b350f62009-11-15 23:12:43 +000022143 CXXFLAGS=""
22144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022145/* end confdefs.h. */
22146
22147int
22148main ()
22149{
22150
22151 ;
22152 return 0;
22153}
22154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022155if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022156
cristy8b350f62009-11-15 23:12:43 +000022157else
22158 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000022159 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022161/* end confdefs.h. */
22162
22163int
22164main ()
22165{
22166
22167 ;
22168 return 0;
22169}
22170_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022171if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022172 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000022173fi
cristy3ed852e2009-09-05 21:47:34 +000022174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22175fi
cristy3ed852e2009-09-05 21:47:34 +000022176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22177fi
cristy3ed852e2009-09-05 21:47:34 +000022178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22179 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22180fi
cristy8b350f62009-11-15 23:12:43 +000022181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022182$as_echo "$ac_cv_prog_cxx_g" >&6; }
22183if test "$ac_test_CXXFLAGS" = set; then
22184 CXXFLAGS=$ac_save_CXXFLAGS
22185elif test $ac_cv_prog_cxx_g = yes; then
22186 if test "$GXX" = yes; then
22187 CXXFLAGS="-g -O2"
22188 else
22189 CXXFLAGS="-g"
22190 fi
22191else
22192 if test "$GXX" = yes; then
22193 CXXFLAGS="-O2"
22194 else
22195 CXXFLAGS=
22196 fi
22197fi
22198ac_ext=cpp
22199ac_cpp='$CXXCPP $CPPFLAGS'
22200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22203
22204depcc="$CXX" am_compiler_list=
22205
cristy8b350f62009-11-15 23:12:43 +000022206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022207$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022208if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022209 $as_echo_n "(cached) " >&6
22210else
22211 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22212 # We make a subdir and do the tests there. Otherwise we can end up
22213 # making bogus files that we don't know about and never remove. For
22214 # instance it was reported that on HP-UX the gcc test will end up
22215 # making a dummy file named `D' -- because `-MD' means `put the output
22216 # in D'.
22217 mkdir conftest.dir
22218 # Copy depcomp to subdir because otherwise we won't find it if we're
22219 # using a relative directory.
22220 cp "$am_depcomp" conftest.dir
22221 cd conftest.dir
22222 # We will build objects and dependencies in a subdirectory because
22223 # it helps to detect inapplicable dependency modes. For instance
22224 # both Tru64's cc and ICC support -MD to output dependencies as a
22225 # side effect of compilation, but ICC will put the dependencies in
22226 # the current directory while Tru64 will put them in the object
22227 # directory.
22228 mkdir sub
22229
22230 am_cv_CXX_dependencies_compiler_type=none
22231 if test "$am_compiler_list" = ""; then
22232 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22233 fi
22234 am__universal=false
22235 case " $depcc " in #(
22236 *\ -arch\ *\ -arch\ *) am__universal=true ;;
22237 esac
22238
22239 for depmode in $am_compiler_list; do
22240 # Setup a source with many dependencies, because some compilers
22241 # like to wrap large dependency lists on column 80 (with \), and
22242 # we should not choose a depcomp mode which is confused by this.
22243 #
22244 # We need to recreate these files for each test, as the compiler may
22245 # overwrite some of them when testing with obscure command lines.
22246 # This happens at least with the AIX C compiler.
22247 : > sub/conftest.c
22248 for i in 1 2 3 4 5 6; do
22249 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22250 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22251 # Solaris 8's {/usr,}/bin/sh.
22252 touch sub/conftst$i.h
22253 done
22254 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22255
22256 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22257 # mode. It turns out that the SunPro C++ compiler does not properly
22258 # handle `-M -o', and we need to detect this. Also, some Intel
22259 # versions had trouble with output in subdirs
22260 am__obj=sub/conftest.${OBJEXT-o}
22261 am__minus_obj="-o $am__obj"
22262 case $depmode in
22263 gcc)
22264 # This depmode causes a compiler race in universal mode.
22265 test "$am__universal" = false || continue
22266 ;;
22267 nosideeffect)
22268 # after this tag, mechanisms are not by side-effect, so they'll
22269 # only be used when explicitly requested
22270 if test "x$enable_dependency_tracking" = xyes; then
22271 continue
22272 else
22273 break
22274 fi
22275 ;;
22276 msvisualcpp | msvcmsys)
22277 # This compiler won't grok `-c -o', but also, the minuso test has
22278 # not run yet. These depmodes are late enough in the game, and
22279 # so weak that their functioning should not be impacted.
22280 am__obj=conftest.${OBJEXT-o}
22281 am__minus_obj=
22282 ;;
22283 none) break ;;
22284 esac
22285 if depmode=$depmode \
22286 source=sub/conftest.c object=$am__obj \
22287 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22288 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
22289 >/dev/null 2>conftest.err &&
22290 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22291 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22292 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
22293 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22294 # icc doesn't choke on unknown options, it will just issue warnings
22295 # or remarks (even with -Werror). So we grep stderr for any message
22296 # that says an option was ignored or not supported.
22297 # When given -MP, icc 7.0 and 7.1 complain thusly:
22298 # icc: Command line warning: ignoring option '-M'; no argument required
22299 # The diagnosis changed in icc 8.0:
22300 # icc: Command line remark: option '-MP' not supported
22301 if (grep 'ignoring option' conftest.err ||
22302 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22303 am_cv_CXX_dependencies_compiler_type=$depmode
22304 break
22305 fi
22306 fi
22307 done
22308
22309 cd ..
22310 rm -rf conftest.dir
22311else
22312 am_cv_CXX_dependencies_compiler_type=none
22313fi
22314
22315fi
cristy8b350f62009-11-15 23:12:43 +000022316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022317$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
22318CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
22319
22320 if
22321 test "x$enable_dependency_tracking" != xno \
22322 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
22323 am__fastdepCXX_TRUE=
22324 am__fastdepCXX_FALSE='#'
22325else
22326 am__fastdepCXX_TRUE='#'
22327 am__fastdepCXX_FALSE=
22328fi
22329
22330
cristy8b350f62009-11-15 23:12:43 +000022331 { $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 +000022332$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022333if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022334 $as_echo_n "(cached) " >&6
22335else
22336
22337 ac_ext=cpp
22338ac_cpp='$CXXCPP $CPPFLAGS'
22339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22342
cristy8b350f62009-11-15 23:12:43 +000022343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022344/* end confdefs.h. */
22345
22346int f(int x){return 1;}
22347int f(char x){return 1;}
22348int f(bool x){return 1;}
22349
22350int
22351main ()
22352{
22353bool b = true; return f(b);
22354 ;
22355 return 0;
22356}
22357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022358if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022359 ac_cv_cxx_have_bool=yes
22360else
cristy8b350f62009-11-15 23:12:43 +000022361 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000022362fi
cristy3ed852e2009-09-05 21:47:34 +000022363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22364 ac_ext=cpp
22365ac_cpp='$CXXCPP $CPPFLAGS'
22366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22369
22370
22371fi
cristy8b350f62009-11-15 23:12:43 +000022372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000022373$as_echo "$ac_cv_cxx_have_bool" >&6; }
22374if test "$ac_cv_cxx_have_bool" = yes; then
22375
cristy8b350f62009-11-15 23:12:43 +000022376$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022377
22378fi
22379
cristy8b350f62009-11-15 23:12:43 +000022380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022381$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022382if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022383 $as_echo_n "(cached) " >&6
22384else
22385
22386 ac_ext=cpp
22387ac_cpp='$CXXCPP $CPPFLAGS'
22388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22391
cristy8b350f62009-11-15 23:12:43 +000022392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022393/* end confdefs.h. */
22394namespace Outer { namespace Inner { int i = 0; }}
22395int
22396main ()
22397{
22398using namespace Outer::Inner; return i;
22399 ;
22400 return 0;
22401}
22402_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022403if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022404 ac_cv_cxx_have_namespaces=yes
22405else
cristy8b350f62009-11-15 23:12:43 +000022406 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000022407fi
cristy3ed852e2009-09-05 21:47:34 +000022408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22409 ac_ext=cpp
22410ac_cpp='$CXXCPP $CPPFLAGS'
22411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22414
22415
22416fi
cristy8b350f62009-11-15 23:12:43 +000022417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022418$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
22419if test "$ac_cv_cxx_have_namespaces" = yes; then
22420
cristy8b350f62009-11-15 23:12:43 +000022421$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022422
22423fi
22424
cristy8b350f62009-11-15 23:12:43 +000022425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022426$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022427if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022428 $as_echo_n "(cached) " >&6
22429else
22430
22431 ac_ext=cpp
22432ac_cpp='$CXXCPP $CPPFLAGS'
22433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22436
cristy8b350f62009-11-15 23:12:43 +000022437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022438/* end confdefs.h. */
22439#include <iostream>
22440 std::istream& is = std::cin;
22441
22442int
22443main ()
22444{
22445return 0;
22446 ;
22447 return 0;
22448}
22449_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022450if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022451 ac_cv_cxx_have_std_namespace=yes
22452else
cristy8b350f62009-11-15 23:12:43 +000022453 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000022454fi
cristy3ed852e2009-09-05 21:47:34 +000022455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22456 ac_ext=cpp
22457ac_cpp='$CXXCPP $CPPFLAGS'
22458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22461
22462
22463fi
cristy8b350f62009-11-15 23:12:43 +000022464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022465$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
22466if test "$ac_cv_cxx_have_std_namespace" = yes; then
22467
cristy8b350f62009-11-15 23:12:43 +000022468$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022469
22470fi
22471
cristy8b350f62009-11-15 23:12:43 +000022472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000022473$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022474if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022475 $as_echo_n "(cached) " >&6
22476else
22477
22478
22479 ac_ext=cpp
22480ac_cpp='$CXXCPP $CPPFLAGS'
22481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22484
cristy8b350f62009-11-15 23:12:43 +000022485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022486/* end confdefs.h. */
22487#include <iostream>
22488#include <map>
22489#include <iomanip>
22490#include <cmath>
22491#ifdef HAVE_NAMESPACES
22492using namespace std;
22493#endif
22494int
22495main ()
22496{
22497return 0;
22498 ;
22499 return 0;
22500}
22501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022502if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022503 ac_cv_cxx_have_std_libs=yes
22504else
cristy8b350f62009-11-15 23:12:43 +000022505 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000022506fi
cristy3ed852e2009-09-05 21:47:34 +000022507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22508 ac_ext=cpp
22509ac_cpp='$CXXCPP $CPPFLAGS'
22510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22513
22514
22515fi
cristy8b350f62009-11-15 23:12:43 +000022516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000022517$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
22518if test "$ac_cv_cxx_have_std_libs" = yes; then
22519
cristy8b350f62009-11-15 23:12:43 +000022520$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022521
22522fi
22523
cristy8b350f62009-11-15 23:12:43 +000022524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000022525$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022526if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022527 $as_echo_n "(cached) " >&6
22528else
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. */
22538const wchar_t* s=L"wide string";
22539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022540if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022541 ac_cv_cxx_have_lstring=yes
22542else
cristy8b350f62009-11-15 23:12:43 +000022543 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000022544fi
cristy3ed852e2009-09-05 21:47:34 +000022545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22546 ac_ext=cpp
22547ac_cpp='$CXXCPP $CPPFLAGS'
22548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22551
22552
22553fi
cristy8b350f62009-11-15 23:12:43 +000022554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000022555$as_echo "$ac_cv_cxx_have_lstring" >&6; }
22556if test "$ac_cv_cxx_have_lstring" = yes; then
22557
cristy8b350f62009-11-15 23:12:43 +000022558$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022559
22560fi
22561
22562
22563 OPENMP_CXXFLAGS=
22564 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000022565if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022566 enableval=$enable_openmp;
22567fi
22568
22569 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000022570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000022571$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022572if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022573 $as_echo_n "(cached) " >&6
22574else
cristy8b350f62009-11-15 23:12:43 +000022575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22576/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022577
22578#ifndef _OPENMP
22579 choke me
22580#endif
22581#include <omp.h>
22582int main () { return omp_get_num_threads (); }
22583
22584_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022585if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022586 ac_cv_prog_cxx_openmp='none needed'
22587else
cristy8b350f62009-11-15 23:12:43 +000022588 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000022589 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
22590 ac_save_CXXFLAGS=$CXXFLAGS
22591 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000022592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22593/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022594
22595#ifndef _OPENMP
22596 choke me
22597#endif
22598#include <omp.h>
22599int main () { return omp_get_num_threads (); }
22600
22601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022602if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022603 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000022604fi
cristy8b350f62009-11-15 23:12:43 +000022605rm -f core conftest.err conftest.$ac_objext \
22606 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022607 CXXFLAGS=$ac_save_CXXFLAGS
22608 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
22609 break
22610 fi
22611 done
22612fi
cristy8b350f62009-11-15 23:12:43 +000022613rm -f core conftest.err conftest.$ac_objext \
22614 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022615fi
cristy8b350f62009-11-15 23:12:43 +000022616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022617$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
22618 case $ac_cv_prog_cxx_openmp in #(
22619 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000022620 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000022621 *)
cristy8b350f62009-11-15 23:12:43 +000022622 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000022623 esac
22624 fi
22625
22626
22627 ac_ext=c
22628ac_cpp='$CPP $CPPFLAGS'
22629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22631ac_compiler_gnu=$ac_cv_c_compiler_gnu
22632
22633
cristy8b350f62009-11-15 23:12:43 +000022634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000022635$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
22636 if \
22637 test $ac_cv_cxx_have_bool = 'yes' && \
22638 test $ac_cv_cxx_have_lstring = 'yes' && \
22639 test $ac_cv_cxx_have_namespaces = 'yes' && \
22640 test $ac_cv_cxx_have_std_libs = 'yes' && \
22641 test $ac_cv_cxx_have_std_namespace = 'yes'; then
22642 have_magick_plus_plus='yes'
22643 else
22644 have_magick_plus_plus='no (failed tests)'
22645 fi
cristy8b350f62009-11-15 23:12:43 +000022646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000022647$as_echo "$have_magick_plus_plus" >&6; }
22648 LIBS="$OLIBS"
22649fi
22650 if test "$have_magick_plus_plus" = 'yes'; then
22651 WITH_MAGICK_PLUS_PLUS_TRUE=
22652 WITH_MAGICK_PLUS_PLUS_FALSE='#'
22653else
22654 WITH_MAGICK_PLUS_PLUS_TRUE='#'
22655 WITH_MAGICK_PLUS_PLUS_FALSE=
22656fi
22657
22658
22659# Only check for delegate libraries in subdirectories if requested.
22660if test "$enable_delegate_build" != 'no'; then
22661 # Check for delegate sub-directories and add -I & -L options as required.
22662 # This presumes that delegates are installed as detailed in the ImageMagick
22663 # README. If delegates are installed in a standard location where the
22664 # compiler will automatically find them then these options should not be
22665 # required.
22666
22667 #
22668 # Most delegates have includes in the same directory as the library, but not all...
22669 #
22670 # Includes
22671 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
22672 if test -d "$builddir/$dir"; then
22673 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
22674 else
22675 if test -d "$srcdirfull/$dir"; then
22676 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
22677 fi
22678 fi
22679 done
22680
22681 # Libraries
22682 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
22683 if test -d "$builddir/$dir/.libs"; then
22684 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
22685 else
22686 if test -d "$srcdirfull/$dir/.libs"; then
22687 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
22688 fi
22689 fi
22690 if test -d "$builddir/$dir"; then
22691 LDFLAGS="$LDFLAGS -L$builddir/$dir"
22692 else
22693 if test -d "$srcdirfull/$dir"; then
22694 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
22695 fi
22696 fi
22697 done
22698fi
22699
22700# Assume that delegate headers reside under same directory as ImageMagick
22701# installation prefix.
22702MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
22703
22704#
22705# Find the X11 RGB database
22706#
cristy8b350f62009-11-15 23:12:43 +000022707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022708$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022709if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022710 $as_echo_n "(cached) " >&6
22711else
22712 # Look for the header file in a standard set of common directories.
22713# Check X11 before X11Rn because it is often a symlink to the current release.
22714 for ac_dir in \
22715 /lib/usr/lib/X11 \
22716 /usr/X11/lib \
22717 /usr/X11R4/lib \
22718 /usr/X11R5/lib \
22719 /usr/X11R6/lib \
22720 /usr/X11R7/lib \
22721 /usr/X386/lib \
22722 /usr/XFree86/lib/X11 \
22723 /usr/athena/lib \
22724 /usr/lib \
22725 /usr/lib/X11 \
22726 /usr/lib/X11R4 \
22727 /usr/lib/X11R5 \
22728 /usr/lib/X11R6 \
22729 /usr/lib/X11R7 \
22730 /usr/local/X11/lib \
22731 /usr/local/X11R4/lib \
22732 /usr/local/X11R5/lib \
22733 /usr/local/X11R6/lib \
22734 /usr/local/lib \
22735 /usr/local/lib/X11 \
22736 /usr/local/lib/X11R4 \
22737 /usr/local/lib/X11R5 \
22738 /usr/local/lib/X11R6 \
22739 /usr/local/lib/X11R7 \
22740 /usr/local/x11r5/lib \
22741 /usr/lpp/Xamples/lib \
22742 /usr/openwin/lib \
22743 /usr/openwin/share/lib \
22744 /usr/unsupported/lib \
22745 /usr/x386/lib \
22746 ; do
22747 if test -f "$ac_dir/X11/rgb.txt"; then
22748 im_cv_x_configure="$ac_dir/X11/"
22749 break
22750 elif test -f "$ac_dir/rgb.txt"; then
22751 im_cv_x_configure="$ac_dir/"
22752 break
22753 fi
22754
22755 done
22756fi
cristy8b350f62009-11-15 23:12:43 +000022757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000022758$as_echo "$im_cv_x_configure" >&6; }
22759X11_CONFIGURE_PATH="$im_cv_x_configure"
22760case "${build_os}" in
22761 mingw* )
22762 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
22763 ;;
22764esac
22765
22766cat >>confdefs.h <<_ACEOF
22767#define X11_CONFIGURE_PATH "$X11ConfigurePath"
22768_ACEOF
22769
22770
22771#
22772# Find OpenMP library
22773#
22774GOMP_LIBS=''
22775if test "$enable_openmp" != 'no'; then
22776 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000022777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022778$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022779if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022780 $as_echo_n "(cached) " >&6
22781else
22782 ac_check_lib_save_LIBS=$LIBS
22783LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022785/* end confdefs.h. */
22786
22787/* Override any GCC internal prototype to avoid an error.
22788 Use char because int might match the return type of a GCC
22789 builtin and then its argument prototype would still apply. */
22790#ifdef __cplusplus
22791extern "C"
22792#endif
22793char GOMP_parallel_start ();
22794int
22795main ()
22796{
22797return GOMP_parallel_start ();
22798 ;
22799 return 0;
22800}
22801_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022802if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022803 ac_cv_lib_gomp_GOMP_parallel_start=yes
22804else
cristy8b350f62009-11-15 23:12:43 +000022805 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000022806fi
cristy8b350f62009-11-15 23:12:43 +000022807rm -f core conftest.err conftest.$ac_objext \
22808 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022809LIBS=$ac_check_lib_save_LIBS
22810fi
cristy8b350f62009-11-15 23:12:43 +000022811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000022812$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022813if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022814 GOMP_LIBS="-lgomp"
22815fi
22816 # gcc
22817 else
cristy8b350f62009-11-15 23:12:43 +000022818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000022819$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022820if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022821 $as_echo_n "(cached) " >&6
22822else
22823 ac_check_lib_save_LIBS=$LIBS
22824LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022826/* end confdefs.h. */
22827
22828/* Override any GCC internal prototype to avoid an error.
22829 Use char because int might match the return type of a GCC
22830 builtin and then its argument prototype would still apply. */
22831#ifdef __cplusplus
22832extern "C"
22833#endif
22834char sunw_mp_register_warn ();
22835int
22836main ()
22837{
22838return sunw_mp_register_warn ();
22839 ;
22840 return 0;
22841}
22842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022843if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022844 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
22845else
cristy8b350f62009-11-15 23:12:43 +000022846 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000022847fi
cristy8b350f62009-11-15 23:12:43 +000022848rm -f core conftest.err conftest.$ac_objext \
22849 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022850LIBS=$ac_check_lib_save_LIBS
22851fi
cristy8b350f62009-11-15 23:12:43 +000022852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000022853$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022854if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022855 GOMP_LIBS="-lmtsk"
22856fi
22857 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000022858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022859$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022860if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022861 $as_echo_n "(cached) " >&6
22862else
22863 ac_check_lib_save_LIBS=$LIBS
22864LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022866/* end confdefs.h. */
22867
22868/* Override any GCC internal prototype to avoid an error.
22869 Use char because int might match the return type of a GCC
22870 builtin and then its argument prototype would still apply. */
22871#ifdef __cplusplus
22872extern "C"
22873#endif
22874char _xlsmpFlush ();
22875int
22876main ()
22877{
22878return _xlsmpFlush ();
22879 ;
22880 return 0;
22881}
22882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022883if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022884 ac_cv_lib_xlsmp__xlsmpFlush=yes
22885else
cristy8b350f62009-11-15 23:12:43 +000022886 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000022887fi
cristy8b350f62009-11-15 23:12:43 +000022888rm -f core conftest.err conftest.$ac_objext \
22889 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022890LIBS=$ac_check_lib_save_LIBS
22891fi
cristy8b350f62009-11-15 23:12:43 +000022892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000022893$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022894if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022895 GOMP_LIBS="-lxlsmp"
22896fi
22897 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000022898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022899$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022900if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022901 $as_echo_n "(cached) " >&6
22902else
22903 ac_check_lib_save_LIBS=$LIBS
22904LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022906/* end confdefs.h. */
22907
22908/* Override any GCC internal prototype to avoid an error.
22909 Use char because int might match the return type of a GCC
22910 builtin and then its argument prototype would still apply. */
22911#ifdef __cplusplus
22912extern "C"
22913#endif
22914char mp_destroy ();
22915int
22916main ()
22917{
22918return mp_destroy ();
22919 ;
22920 return 0;
22921}
22922_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022923if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022924 ac_cv_lib_mp_mp_destroy=yes
22925else
cristy8b350f62009-11-15 23:12:43 +000022926 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000022927fi
cristy8b350f62009-11-15 23:12:43 +000022928rm -f core conftest.err conftest.$ac_objext \
22929 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022930LIBS=$ac_check_lib_save_LIBS
22931fi
cristy8b350f62009-11-15 23:12:43 +000022932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000022933$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022934if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022935 GOMP_LIBS="-lmp"
22936fi
22937 # SGI IRIX 6.5 MIPSpro C/C++
22938 fi
22939 LIBS="$GOMP_LIBS $LIBS"
22940fi
22941
22942
22943#
22944# Find Posix threads library
22945#
22946THREAD_LIBS=''
22947if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
22948
22949 if test "x$PTHREAD_LIBS" = "x"; then
22950 case "${host_cpu}-${host_os}" in
22951 *-freebsd*)
22952
22953
22954
22955ac_ext=c
22956ac_cpp='$CPP $CPPFLAGS'
22957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22959ac_compiler_gnu=$ac_cv_c_compiler_gnu
22960
22961magick_pthread_lib_ok=no
22962
22963LIB=-lc_r
22964save_LIBS="$LIBS"
22965LIBS="$LIBS $LIB"
22966
cristy8b350f62009-11-15 23:12:43 +000022967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000022968$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022970/* end confdefs.h. */
22971#include <pthread.h>
22972int
22973main ()
22974{
22975 pthread_t th;
22976 pthread_join(th, 0);
22977 pthread_attr_init(0);
22978 pthread_cleanup_push(0, 0);
22979 pthread_create(0,0,0,0);
22980 pthread_cleanup_pop(0);
22981 ;
22982 return 0;
22983}
22984_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022985if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022986 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000022987fi
cristy8b350f62009-11-15 23:12:43 +000022988rm -f core conftest.err conftest.$ac_objext \
22989 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022990
cristy8b350f62009-11-15 23:12:43 +000022991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000022992$as_echo "${magick_pthread_lib_ok}" >&6; }
22993if test "$magick_pthread_lib_ok" = yes
22994then
22995 PTHREAD_LIBS=-lc_r
22996 :
22997else
22998
22999 :
23000fi
23001
23002LIBS="$save_LIBS"
23003
23004ac_ext=c
23005ac_cpp='$CPP $CPPFLAGS'
23006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23008ac_compiler_gnu=$ac_cv_c_compiler_gnu
23009
23010 ;;
23011 esac
23012 fi
23013
23014 for lib in pthread pthreads; do
23015 if test "x$PTHREAD_LIBS" = "x"; then
23016
23017
23018
23019ac_ext=c
23020ac_cpp='$CPP $CPPFLAGS'
23021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23023ac_compiler_gnu=$ac_cv_c_compiler_gnu
23024
23025magick_pthread_lib_ok=no
23026
23027LIB=-l$lib
23028save_LIBS="$LIBS"
23029LIBS="$LIBS $LIB"
23030
cristy8b350f62009-11-15 23:12:43 +000023031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023032$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023034/* end confdefs.h. */
23035#include <pthread.h>
23036int
23037main ()
23038{
23039 pthread_t th;
23040 pthread_join(th, 0);
23041 pthread_attr_init(0);
23042 pthread_cleanup_push(0, 0);
23043 pthread_create(0,0,0,0);
23044 pthread_cleanup_pop(0);
23045 ;
23046 return 0;
23047}
23048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023049if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023050 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023051fi
cristy8b350f62009-11-15 23:12:43 +000023052rm -f core conftest.err conftest.$ac_objext \
23053 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023054
cristy8b350f62009-11-15 23:12:43 +000023055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023056$as_echo "${magick_pthread_lib_ok}" >&6; }
23057if test "$magick_pthread_lib_ok" = yes
23058then
23059 PTHREAD_LIBS=-l$lib
23060 :
23061else
23062
23063 :
23064fi
23065
23066LIBS="$save_LIBS"
23067
23068ac_ext=c
23069ac_cpp='$CPP $CPPFLAGS'
23070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23072ac_compiler_gnu=$ac_cv_c_compiler_gnu
23073
23074
23075 fi
23076 done
23077
23078 THREAD_LIBS="$PTHREAD_LIBS"
23079 LIBS="$LIBS $THREAD_LIBS"
23080fi
23081
23082
23083#
23084# Check for umem.
23085#
23086have_umem='no'
23087UMEM_LIBS=''
23088if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000023089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000023090$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023092$as_echo "" >&6; }
23093 failed=0
23094 passed=0
cristy8b350f62009-11-15 23:12:43 +000023095 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
23096if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023097 passed=`expr $passed + 1`
23098else
23099 failed=`expr $failed + 1`
23100fi
23101
23102
cristy8b350f62009-11-15 23:12:43 +000023103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023104$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023105if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023106 $as_echo_n "(cached) " >&6
23107else
23108 ac_check_lib_save_LIBS=$LIBS
23109LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023111/* end confdefs.h. */
23112
23113/* Override any GCC internal prototype to avoid an error.
23114 Use char because int might match the return type of a GCC
23115 builtin and then its argument prototype would still apply. */
23116#ifdef __cplusplus
23117extern "C"
23118#endif
23119char umem_alloc ();
23120int
23121main ()
23122{
23123return umem_alloc ();
23124 ;
23125 return 0;
23126}
23127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023128if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023129 ac_cv_lib_umem_umem_alloc=yes
23130else
cristy8b350f62009-11-15 23:12:43 +000023131 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000023132fi
cristy8b350f62009-11-15 23:12:43 +000023133rm -f core conftest.err conftest.$ac_objext \
23134 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023135LIBS=$ac_check_lib_save_LIBS
23136fi
cristy8b350f62009-11-15 23:12:43 +000023137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023138$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023139if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023140 passed=`expr $passed + 1`
23141else
23142 failed=`expr $failed + 1`
23143fi
23144
cristy8b350f62009-11-15 23:12:43 +000023145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023146$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023147if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023148 $as_echo_n "(cached) " >&6
23149else
23150 ac_check_lib_save_LIBS=$LIBS
23151LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023153/* end confdefs.h. */
23154
23155/* Override any GCC internal prototype to avoid an error.
23156 Use char because int might match the return type of a GCC
23157 builtin and then its argument prototype would still apply. */
23158#ifdef __cplusplus
23159extern "C"
23160#endif
23161char umem_free ();
23162int
23163main ()
23164{
23165return umem_free ();
23166 ;
23167 return 0;
23168}
23169_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023170if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023171 ac_cv_lib_umem_umem_free=yes
23172else
cristy8b350f62009-11-15 23:12:43 +000023173 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000023174fi
cristy8b350f62009-11-15 23:12:43 +000023175rm -f core conftest.err conftest.$ac_objext \
23176 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023177LIBS=$ac_check_lib_save_LIBS
23178fi
cristy8b350f62009-11-15 23:12:43 +000023179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000023180$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023181if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023182 passed=`expr $passed + 1`
23183else
23184 failed=`expr $failed + 1`
23185fi
23186
cristy8b350f62009-11-15 23:12:43 +000023187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023188$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23189 if test $passed -gt 0; then
23190 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023192$as_echo "no -- some components failed test" >&6; }
23193 have_umem='no (failed tests)'
23194 else
23195 UMEM_LIBS='-lumem'
23196 LIBS="$UMEM_LIBS $LIBS"
23197
cristy8b350f62009-11-15 23:12:43 +000023198$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023199
cristy8b350f62009-11-15 23:12:43 +000023200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023201$as_echo "yes" >&6; }
23202 have_umem='yes'
23203 fi
23204 else
cristy8b350f62009-11-15 23:12:43 +000023205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023206$as_echo "no" >&6; }
23207 fi
23208fi
23209 if test "$have_umem" = 'yes'; then
23210 HasUMEM_TRUE=
23211 HasUMEM_FALSE='#'
23212else
23213 HasUMEM_TRUE='#'
23214 HasUMEM_FALSE=
23215fi
23216
23217
23218
23219#
23220# Add support for ccmalloc memory debugging library if requested
23221#
23222have_ccmalloc='no'
23223CCMALLOC_LIBS=''
23224if test "$enable_ccmalloc" = 'yes'; then
23225 # Extract the first word of "ccmalloc", so it can be a program name with args.
23226set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023228$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023229if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023230 $as_echo_n "(cached) " >&6
23231else
23232 case $CCMALLOCDelegate in
23233 [\\/]* | ?:[\\/]*)
23234 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23235 ;;
23236 *)
23237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23238for as_dir in $PATH
23239do
23240 IFS=$as_save_IFS
23241 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023242 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23244 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000023245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023246 break 2
23247 fi
23248done
cristy8b350f62009-11-15 23:12:43 +000023249 done
cristy3ed852e2009-09-05 21:47:34 +000023250IFS=$as_save_IFS
23251
23252 ;;
23253esac
23254fi
23255CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23256if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000023257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000023258$as_echo "$CCMALLOCDelegate" >&6; }
23259else
cristy8b350f62009-11-15 23:12:43 +000023260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023261$as_echo "no" >&6; }
23262fi
23263
23264
23265 if test -n "$CCMALLOCDelegate"; then
23266 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23267 OLIBS="$LIBS"
23268 # Assume that gcc is used with ccmalloc.
23269 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000023270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023271$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023272if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023273 $as_echo_n "(cached) " >&6
23274else
23275 ac_check_lib_save_LIBS=$LIBS
23276LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023278/* end confdefs.h. */
23279
23280/* Override any GCC internal prototype to avoid an error.
23281 Use char because int might match the return type of a GCC
23282 builtin and then its argument prototype would still apply. */
23283#ifdef __cplusplus
23284extern "C"
23285#endif
23286char ccmalloc_malloc ();
23287int
23288main ()
23289{
23290return ccmalloc_malloc ();
23291 ;
23292 return 0;
23293}
23294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023295if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023296 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
23297else
cristy8b350f62009-11-15 23:12:43 +000023298 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000023299fi
cristy8b350f62009-11-15 23:12:43 +000023300rm -f core conftest.err conftest.$ac_objext \
23301 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023302LIBS=$ac_check_lib_save_LIBS
23303fi
cristy8b350f62009-11-15 23:12:43 +000023304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023305$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023306if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023307 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
23308fi
23309
23310 if test -n "$CCMALLOC_LIBS"; then
23311 LIBS="$OLIBS"
23312 LIBS="$LIBS $CCMALLOC_LIBS"
23313 have_ccmalloc='yes'
23314 else
23315 LIBS="$OLIBS"
23316 fi
23317 fi
23318fi
23319
23320#
23321# Add support for efence memory debugging library if requested
23322#
23323if test "$enable_efence" = 'yes'; then
23324 EFENCE_LIBS='-lefence'
23325 LIBS="$EFENCE_LIBS $LIBS"
23326fi
23327
23328#
23329# Find math library
23330#
23331MATH_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023333$as_echo_n "checking for sqrt in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023334if test "${ac_cv_lib_m_sqrt+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023335 $as_echo_n "(cached) " >&6
23336else
23337 ac_check_lib_save_LIBS=$LIBS
23338LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023340/* end confdefs.h. */
23341
23342/* Override any GCC internal prototype to avoid an error.
23343 Use char because int might match the return type of a GCC
23344 builtin and then its argument prototype would still apply. */
23345#ifdef __cplusplus
23346extern "C"
23347#endif
23348char sqrt ();
23349int
23350main ()
23351{
23352return sqrt ();
23353 ;
23354 return 0;
23355}
23356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023357if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023358 ac_cv_lib_m_sqrt=yes
23359else
cristy8b350f62009-11-15 23:12:43 +000023360 ac_cv_lib_m_sqrt=no
cristy3ed852e2009-09-05 21:47:34 +000023361fi
cristy8b350f62009-11-15 23:12:43 +000023362rm -f core conftest.err conftest.$ac_objext \
23363 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023364LIBS=$ac_check_lib_save_LIBS
23365fi
cristy8b350f62009-11-15 23:12:43 +000023366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
cristy3ed852e2009-09-05 21:47:34 +000023367$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023368if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023369 MATH_LIBS="-lm"
23370fi
23371
23372LIBS="$MATH_LIBS $LIBS"
23373
23374
23375
23376#
23377# Check for BZLIB
23378#
23379
23380
23381# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000023382if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023383 withval=$with_bzlib; with_bzlib=$withval
23384else
23385 with_bzlib='yes'
23386fi
23387
23388
23389if test "$with_bzlib" != 'yes'; then
23390 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
23391fi
23392
23393have_bzlib='no'
23394if test "$with_bzlib" != 'no'; then
23395 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000023397$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023399$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023401$as_echo "" >&6; }
23402 failed=0
23403 passed=0
23404 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000023405 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
23406if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023407 passed=`expr $passed + 1`
23408else
23409 failed=`expr $failed + 1`
23410fi
23411
23412
cristy8b350f62009-11-15 23:12:43 +000023413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023414$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023415if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023416 $as_echo_n "(cached) " >&6
23417else
23418 ac_check_lib_save_LIBS=$LIBS
23419LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023421/* end confdefs.h. */
23422
23423/* Override any GCC internal prototype to avoid an error.
23424 Use char because int might match the return type of a GCC
23425 builtin and then its argument prototype would still apply. */
23426#ifdef __cplusplus
23427extern "C"
23428#endif
23429char BZ2_bzDecompress ();
23430int
23431main ()
23432{
23433return BZ2_bzDecompress ();
23434 ;
23435 return 0;
23436}
23437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023438if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023439 ac_cv_lib_bz2_BZ2_bzDecompress=yes
23440else
cristy8b350f62009-11-15 23:12:43 +000023441 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000023442fi
cristy8b350f62009-11-15 23:12:43 +000023443rm -f core conftest.err conftest.$ac_objext \
23444 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023445LIBS=$ac_check_lib_save_LIBS
23446fi
cristy8b350f62009-11-15 23:12:43 +000023447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023448$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023449if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023450 found_libbz=`expr $found_libbz + 1`
23451fi
23452
23453 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000023454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023455$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023456if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023457 $as_echo_n "(cached) " >&6
23458else
23459 ac_check_lib_save_LIBS=$LIBS
23460LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023462/* end confdefs.h. */
23463
23464/* Override any GCC internal prototype to avoid an error.
23465 Use char because int might match the return type of a GCC
23466 builtin and then its argument prototype would still apply. */
23467#ifdef __cplusplus
23468extern "C"
23469#endif
23470char _imp__BZ2_decompress ();
23471int
23472main ()
23473{
23474return _imp__BZ2_decompress ();
23475 ;
23476 return 0;
23477}
23478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023479if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023480 ac_cv_lib_bz2__imp__BZ2_decompress=yes
23481else
cristy8b350f62009-11-15 23:12:43 +000023482 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000023483fi
cristy8b350f62009-11-15 23:12:43 +000023484rm -f core conftest.err conftest.$ac_objext \
23485 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023486LIBS=$ac_check_lib_save_LIBS
23487fi
cristy8b350f62009-11-15 23:12:43 +000023488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023489$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023490if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023491 found_libbz=`expr $found_libbz + 1`
23492fi
23493
23494 fi
23495 if test $found_libbz -gt 0; then
23496 passed=`expr $passed + 1`
23497 else
23498 failed=`expr $failed + 1`
23499 fi
cristy8b350f62009-11-15 23:12:43 +000023500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023501$as_echo_n "checking if BZLIB package is complete... " >&6; }
23502 if test $passed -gt 0; then
23503 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023505$as_echo "no -- some components failed test" >&6; }
23506 have_bzlib='no (failed tests)'
23507 else
23508 BZLIB_LIBS='-lbz2'
23509 LIBS="$BZLIB_LIBS $LIBS"
23510
cristy8b350f62009-11-15 23:12:43 +000023511$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023512
cristy8b350f62009-11-15 23:12:43 +000023513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023514$as_echo "yes" >&6; }
23515 have_bzlib='yes'
23516 fi
23517 else
cristy8b350f62009-11-15 23:12:43 +000023518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023519$as_echo "no" >&6; }
23520 fi
23521fi
23522 if test "$have_bzlib" = 'yes'; then
23523 BZLIB_DELEGATE_TRUE=
23524 BZLIB_DELEGATE_FALSE='#'
23525else
23526 BZLIB_DELEGATE_TRUE='#'
23527 BZLIB_DELEGATE_FALSE=
23528fi
23529
23530
23531
23532#
23533# Find the X11 include and library directories.
23534#
23535IPC_LIBS=''
23536X11_LIBS=''
23537XEXT_LIBS=''
23538XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000023540$as_echo_n "checking for X... " >&6; }
23541
23542
23543# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000023544if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023545 withval=$with_x;
23546fi
23547
23548# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23549if test "x$with_x" = xno; then
23550 # The user explicitly disabled X.
23551 have_x=disabled
23552else
23553 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000023554 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
23555 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023556 $as_echo_n "(cached) " >&6
23557else
23558 # One or both of the vars are not set, and there is no cached value.
23559ac_x_includes=no ac_x_libraries=no
23560rm -f -r conftest.dir
23561if mkdir conftest.dir; then
23562 cd conftest.dir
23563 cat >Imakefile <<'_ACEOF'
23564incroot:
23565 @echo incroot='${INCROOT}'
23566usrlibdir:
23567 @echo usrlibdir='${USRLIBDIR}'
23568libdir:
23569 @echo libdir='${LIBDIR}'
23570_ACEOF
23571 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23573 for ac_var in incroot usrlibdir libdir; do
23574 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23575 done
23576 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23577 for ac_extension in a so sl dylib la dll; do
23578 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23579 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23580 ac_im_usrlibdir=$ac_im_libdir; break
23581 fi
23582 done
23583 # Screen out bogus values from the imake configuration. They are
23584 # bogus both because they are the default anyway, and because
23585 # using them would break gcc on systems where it needs fixed includes.
23586 case $ac_im_incroot in
23587 /usr/include) ac_x_includes= ;;
23588 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23589 esac
23590 case $ac_im_usrlibdir in
23591 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23592 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23593 esac
23594 fi
23595 cd ..
23596 rm -f -r conftest.dir
23597fi
23598
23599# Standard set of common directories for X headers.
23600# Check X11 before X11Rn because it is often a symlink to the current release.
23601ac_x_header_dirs='
23602/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000023603/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023604/usr/X11R6/include
23605/usr/X11R5/include
23606/usr/X11R4/include
23607
23608/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000023609/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023610/usr/include/X11R6
23611/usr/include/X11R5
23612/usr/include/X11R4
23613
23614/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000023615/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023616/usr/local/X11R6/include
23617/usr/local/X11R5/include
23618/usr/local/X11R4/include
23619
23620/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000023621/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023622/usr/local/include/X11R6
23623/usr/local/include/X11R5
23624/usr/local/include/X11R4
23625
23626/usr/X386/include
23627/usr/x386/include
23628/usr/XFree86/include/X11
23629
23630/usr/include
23631/usr/local/include
23632/usr/unsupported/include
23633/usr/athena/include
23634/usr/local/x11r5/include
23635/usr/lpp/Xamples/include
23636
23637/usr/openwin/include
23638/usr/openwin/share/include'
23639
23640if test "$ac_x_includes" = no; then
23641 # Guess where to find include files, by looking for Xlib.h.
23642 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000023643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023644/* end confdefs.h. */
23645#include <X11/Xlib.h>
23646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023647if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023648 # We can compile using X headers with no special include directory.
23649ac_x_includes=
23650else
cristyc7083c12009-10-14 03:16:55 +000023651 for ac_dir in $ac_x_header_dirs; do
23652 if test -r "$ac_dir/X11/Xlib.h"; then
23653 ac_x_includes=$ac_dir
23654 break
23655 fi
23656done
23657fi
cristyc7083c12009-10-14 03:16:55 +000023658rm -f conftest.err conftest.$ac_ext
23659fi # $ac_x_includes = no
23660
23661if test "$ac_x_libraries" = no; then
23662 # Check for the libraries.
23663 # See if we find them without any special options.
23664 # Don't add to $LIBS permanently.
23665 ac_save_LIBS=$LIBS
23666 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023668/* end confdefs.h. */
23669#include <X11/Xlib.h>
23670int
23671main ()
23672{
23673XrmInitialize ()
23674 ;
23675 return 0;
23676}
23677_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023678if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023679 LIBS=$ac_save_LIBS
23680# We can link X programs with no special library path.
23681ac_x_libraries=
23682else
cristy8b350f62009-11-15 23:12:43 +000023683 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000023684for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23685do
23686 # Don't even attempt the hair of trying to link an X program!
23687 for ac_extension in a so sl dylib la dll; do
23688 if test -r "$ac_dir/libX11.$ac_extension"; then
23689 ac_x_libraries=$ac_dir
23690 break 2
23691 fi
23692 done
23693done
23694fi
cristy8b350f62009-11-15 23:12:43 +000023695rm -f core conftest.err conftest.$ac_objext \
23696 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023697fi # $ac_x_libraries = no
23698
23699case $ac_x_includes,$ac_x_libraries in #(
23700 no,* | *,no | *\'*)
23701 # Didn't find X, or a directory has "'" in its name.
23702 ac_cv_have_x="have_x=no";; #(
23703 *)
23704 # Record where we found X for the cache.
23705 ac_cv_have_x="have_x=yes\
23706 ac_x_includes='$ac_x_includes'\
23707 ac_x_libraries='$ac_x_libraries'"
23708esac
23709fi
23710;; #(
23711 *) have_x=yes;;
23712 esac
23713 eval "$ac_cv_have_x"
23714fi # $with_x != no
23715
23716if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000023718$as_echo "$have_x" >&6; }
23719 no_x=yes
23720else
23721 # If each of the values was on the command line, it overrides each guess.
23722 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23723 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23724 # Update the cache value to reflect the command line values.
23725 ac_cv_have_x="have_x=yes\
23726 ac_x_includes='$x_includes'\
23727 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000023728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000023729$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23730fi
23731
cristy3ed852e2009-09-05 21:47:34 +000023732if test "$no_x" = yes; then
23733 # Not all programs may use this symbol, but it does not hurt to define it.
23734
cristy8b350f62009-11-15 23:12:43 +000023735$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023736
23737 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23738else
23739 if test -n "$x_includes"; then
23740 X_CFLAGS="$X_CFLAGS -I$x_includes"
23741 fi
23742
23743 # It would also be nice to do this for all -L options, not just this one.
23744 if test -n "$x_libraries"; then
23745 X_LIBS="$X_LIBS -L$x_libraries"
23746 # For Solaris; some versions of Sun CC require a space after -R and
23747 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000023748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000023749$as_echo_n "checking whether -R must be followed by a space... " >&6; }
23750 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23751 ac_xsave_c_werror_flag=$ac_c_werror_flag
23752 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000023753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023754/* end confdefs.h. */
23755
23756int
23757main ()
23758{
23759
23760 ;
23761 return 0;
23762}
23763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023764if ac_fn_c_try_link "$LINENO"; then :
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023766$as_echo "no" >&6; }
23767 X_LIBS="$X_LIBS -R$x_libraries"
23768else
cristy8b350f62009-11-15 23:12:43 +000023769 LIBS="$ac_xsave_LIBS -R $x_libraries"
23770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023771/* end confdefs.h. */
23772
23773int
23774main ()
23775{
23776
23777 ;
23778 return 0;
23779}
23780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023781if ac_fn_c_try_link "$LINENO"; then :
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023783$as_echo "yes" >&6; }
23784 X_LIBS="$X_LIBS -R $x_libraries"
23785else
cristy8b350f62009-11-15 23:12:43 +000023786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023787$as_echo "neither works" >&6; }
23788fi
cristy8b350f62009-11-15 23:12:43 +000023789rm -f core conftest.err conftest.$ac_objext \
23790 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023791fi
cristy8b350f62009-11-15 23:12:43 +000023792rm -f core conftest.err conftest.$ac_objext \
23793 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023794 ac_c_werror_flag=$ac_xsave_c_werror_flag
23795 LIBS=$ac_xsave_LIBS
23796 fi
23797
23798 # Check for system-dependent libraries X programs must link with.
23799 # Do this before checking for the system-independent R6 libraries
23800 # (-lICE), since we may need -lsocket or whatever for X linking.
23801
23802 if test "$ISC" = yes; then
23803 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23804 else
23805 # Martyn Johnson says this is needed for Ultrix, if the X
23806 # libraries were built with DECnet support. And Karl Berry says
23807 # the Alpha needs dnet_stub (dnet does not exist).
23808 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000023809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023810/* end confdefs.h. */
23811
23812/* Override any GCC internal prototype to avoid an error.
23813 Use char because int might match the return type of a GCC
23814 builtin and then its argument prototype would still apply. */
23815#ifdef __cplusplus
23816extern "C"
23817#endif
23818char XOpenDisplay ();
23819int
23820main ()
23821{
23822return XOpenDisplay ();
23823 ;
23824 return 0;
23825}
23826_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023827if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023828
cristy8b350f62009-11-15 23:12:43 +000023829else
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023831$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023832if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023833 $as_echo_n "(cached) " >&6
23834else
23835 ac_check_lib_save_LIBS=$LIBS
23836LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023838/* end confdefs.h. */
23839
23840/* Override any GCC internal prototype to avoid an error.
23841 Use char because int might match the return type of a GCC
23842 builtin and then its argument prototype would still apply. */
23843#ifdef __cplusplus
23844extern "C"
23845#endif
23846char dnet_ntoa ();
23847int
23848main ()
23849{
23850return dnet_ntoa ();
23851 ;
23852 return 0;
23853}
23854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023855if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023856 ac_cv_lib_dnet_dnet_ntoa=yes
23857else
cristy8b350f62009-11-15 23:12:43 +000023858 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023859fi
cristy8b350f62009-11-15 23:12:43 +000023860rm -f core conftest.err conftest.$ac_objext \
23861 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023862LIBS=$ac_check_lib_save_LIBS
23863fi
cristy8b350f62009-11-15 23:12:43 +000023864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023865$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023866if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023867 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23868fi
23869
23870 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000023871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000023872$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023873if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023874 $as_echo_n "(cached) " >&6
23875else
23876 ac_check_lib_save_LIBS=$LIBS
23877LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023879/* end confdefs.h. */
23880
23881/* Override any GCC internal prototype to avoid an error.
23882 Use char because int might match the return type of a GCC
23883 builtin and then its argument prototype would still apply. */
23884#ifdef __cplusplus
23885extern "C"
23886#endif
23887char dnet_ntoa ();
23888int
23889main ()
23890{
23891return dnet_ntoa ();
23892 ;
23893 return 0;
23894}
23895_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023896if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023897 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23898else
cristy8b350f62009-11-15 23:12:43 +000023899 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023900fi
cristy8b350f62009-11-15 23:12:43 +000023901rm -f core conftest.err conftest.$ac_objext \
23902 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023903LIBS=$ac_check_lib_save_LIBS
23904fi
cristy8b350f62009-11-15 23:12:43 +000023905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023906$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023907if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023908 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23909fi
23910
23911 fi
23912fi
cristy8b350f62009-11-15 23:12:43 +000023913rm -f core conftest.err conftest.$ac_objext \
23914 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023915 LIBS="$ac_xsave_LIBS"
23916
23917 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23918 # to get the SysV transport functions.
23919 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23920 # needs -lnsl.
23921 # The nsl library prevents programs from opening the X display
23922 # on Irix 5.2, according to T.E. Dickey.
23923 # The functions gethostbyname, getservbyname, and inet_addr are
23924 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000023925 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23926if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023927
cristy3ed852e2009-09-05 21:47:34 +000023928fi
23929
cristy3ed852e2009-09-05 21:47:34 +000023930 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000023931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000023932$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023933if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023934 $as_echo_n "(cached) " >&6
23935else
23936 ac_check_lib_save_LIBS=$LIBS
23937LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023939/* end confdefs.h. */
23940
23941/* Override any GCC internal prototype to avoid an error.
23942 Use char because int might match the return type of a GCC
23943 builtin and then its argument prototype would still apply. */
23944#ifdef __cplusplus
23945extern "C"
23946#endif
23947char gethostbyname ();
23948int
23949main ()
23950{
23951return gethostbyname ();
23952 ;
23953 return 0;
23954}
23955_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023956if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023957 ac_cv_lib_nsl_gethostbyname=yes
23958else
cristy8b350f62009-11-15 23:12:43 +000023959 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000023960fi
cristy8b350f62009-11-15 23:12:43 +000023961rm -f core conftest.err conftest.$ac_objext \
23962 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023963LIBS=$ac_check_lib_save_LIBS
23964fi
cristy8b350f62009-11-15 23:12:43 +000023965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000023966$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023967if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023968 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23969fi
23970
23971 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000023972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000023973$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023974if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023975 $as_echo_n "(cached) " >&6
23976else
23977 ac_check_lib_save_LIBS=$LIBS
23978LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023980/* end confdefs.h. */
23981
23982/* Override any GCC internal prototype to avoid an error.
23983 Use char because int might match the return type of a GCC
23984 builtin and then its argument prototype would still apply. */
23985#ifdef __cplusplus
23986extern "C"
23987#endif
23988char gethostbyname ();
23989int
23990main ()
23991{
23992return gethostbyname ();
23993 ;
23994 return 0;
23995}
23996_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023997if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023998 ac_cv_lib_bsd_gethostbyname=yes
23999else
cristy8b350f62009-11-15 23:12:43 +000024000 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024001fi
cristy8b350f62009-11-15 23:12:43 +000024002rm -f core conftest.err conftest.$ac_objext \
24003 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024004LIBS=$ac_check_lib_save_LIBS
24005fi
cristy8b350f62009-11-15 23:12:43 +000024006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024007$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024008if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024009 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24010fi
24011
24012 fi
24013 fi
24014
24015 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24016 # socket/setsockopt and other routines are undefined under SCO ODT
24017 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24018 # on later versions), says Simon Leinen: it contains gethostby*
24019 # variants that don't use the name server (or something). -lsocket
24020 # must be given before -lnsl if both are needed. We assume that
24021 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000024022 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24023if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024024
cristy3ed852e2009-09-05 21:47:34 +000024025fi
24026
cristy3ed852e2009-09-05 21:47:34 +000024027 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000024028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000024029$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024030if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024031 $as_echo_n "(cached) " >&6
24032else
24033 ac_check_lib_save_LIBS=$LIBS
24034LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024036/* end confdefs.h. */
24037
24038/* Override any GCC internal prototype to avoid an error.
24039 Use char because int might match the return type of a GCC
24040 builtin and then its argument prototype would still apply. */
24041#ifdef __cplusplus
24042extern "C"
24043#endif
24044char connect ();
24045int
24046main ()
24047{
24048return connect ();
24049 ;
24050 return 0;
24051}
24052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024053if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024054 ac_cv_lib_socket_connect=yes
24055else
cristy8b350f62009-11-15 23:12:43 +000024056 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000024057fi
cristy8b350f62009-11-15 23:12:43 +000024058rm -f core conftest.err conftest.$ac_objext \
24059 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024060LIBS=$ac_check_lib_save_LIBS
24061fi
cristy8b350f62009-11-15 23:12:43 +000024062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000024063$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024064if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024065 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24066fi
24067
24068 fi
24069
24070 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000024071 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24072if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024073
cristy3ed852e2009-09-05 21:47:34 +000024074fi
24075
cristy3ed852e2009-09-05 21:47:34 +000024076 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000024077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000024078$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024079if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024080 $as_echo_n "(cached) " >&6
24081else
24082 ac_check_lib_save_LIBS=$LIBS
24083LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024085/* end confdefs.h. */
24086
24087/* Override any GCC internal prototype to avoid an error.
24088 Use char because int might match the return type of a GCC
24089 builtin and then its argument prototype would still apply. */
24090#ifdef __cplusplus
24091extern "C"
24092#endif
24093char remove ();
24094int
24095main ()
24096{
24097return remove ();
24098 ;
24099 return 0;
24100}
24101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024102if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024103 ac_cv_lib_posix_remove=yes
24104else
cristy8b350f62009-11-15 23:12:43 +000024105 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000024106fi
cristy8b350f62009-11-15 23:12:43 +000024107rm -f core conftest.err conftest.$ac_objext \
24108 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024109LIBS=$ac_check_lib_save_LIBS
24110fi
cristy8b350f62009-11-15 23:12:43 +000024111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000024112$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024113if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024114 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24115fi
24116
24117 fi
24118
24119 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000024120 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24121if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024122
cristy3ed852e2009-09-05 21:47:34 +000024123fi
24124
cristy3ed852e2009-09-05 21:47:34 +000024125 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000024126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024127$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024128if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024129 $as_echo_n "(cached) " >&6
24130else
24131 ac_check_lib_save_LIBS=$LIBS
24132LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024134/* end confdefs.h. */
24135
24136/* Override any GCC internal prototype to avoid an error.
24137 Use char because int might match the return type of a GCC
24138 builtin and then its argument prototype would still apply. */
24139#ifdef __cplusplus
24140extern "C"
24141#endif
24142char shmat ();
24143int
24144main ()
24145{
24146return shmat ();
24147 ;
24148 return 0;
24149}
24150_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024151if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024152 ac_cv_lib_ipc_shmat=yes
24153else
cristy8b350f62009-11-15 23:12:43 +000024154 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000024155fi
cristy8b350f62009-11-15 23:12:43 +000024156rm -f core conftest.err conftest.$ac_objext \
24157 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024158LIBS=$ac_check_lib_save_LIBS
24159fi
cristy8b350f62009-11-15 23:12:43 +000024160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000024161$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024162if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024163 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24164fi
24165
24166 fi
24167 fi
24168
24169 # Check for libraries that X11R6 Xt/Xaw programs need.
24170 ac_save_LDFLAGS=$LDFLAGS
24171 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24172 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24173 # check for ICE first), but we must link in the order -lSM -lICE or
24174 # we get undefined symbols. So assume we have SM if we have ICE.
24175 # These have to be linked with before -lX11, unlike the other
24176 # libraries we check for below, so use a different variable.
24177 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000024178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024179$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024180if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024181 $as_echo_n "(cached) " >&6
24182else
24183 ac_check_lib_save_LIBS=$LIBS
24184LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024186/* end confdefs.h. */
24187
24188/* Override any GCC internal prototype to avoid an error.
24189 Use char because int might match the return type of a GCC
24190 builtin and then its argument prototype would still apply. */
24191#ifdef __cplusplus
24192extern "C"
24193#endif
24194char IceConnectionNumber ();
24195int
24196main ()
24197{
24198return IceConnectionNumber ();
24199 ;
24200 return 0;
24201}
24202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024203if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024204 ac_cv_lib_ICE_IceConnectionNumber=yes
24205else
cristy8b350f62009-11-15 23:12:43 +000024206 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000024207fi
cristy8b350f62009-11-15 23:12:43 +000024208rm -f core conftest.err conftest.$ac_objext \
24209 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024210LIBS=$ac_check_lib_save_LIBS
24211fi
cristy8b350f62009-11-15 23:12:43 +000024212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000024213$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024214if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024215 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24216fi
24217
24218 LDFLAGS=$ac_save_LDFLAGS
24219
24220fi
24221
24222if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024224$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000024226$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024228$as_echo "" >&6; }
24229 LDFLAGS="$LDFLAGS $X_LIBS"
24230 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24231 LIBS="$X11_LIBS $LIBS"
24232 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24233
24234
cristy8b350f62009-11-15 23:12:43 +000024235$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024236
24237 #
24238 # Check for X11 shared memory extension
24239 #
24240 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000024241 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24242if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024243 have_shmctl='yes'
24244fi
24245
24246 if test "$have_shmctl" != 'yes'; then
24247 PERSIST_LIBS=$LIBS
24248 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000024249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024250/* end confdefs.h. */
24251
24252/* Override any GCC internal prototype to avoid an error.
24253 Use char because int might match the return type of a GCC
24254 builtin and then its argument prototype would still apply. */
24255#ifdef __cplusplus
24256extern "C"
24257#endif
24258char shmctl ();
24259int
24260main ()
24261{
24262return shmctl ();
24263 ;
24264 return 0;
24265}
24266_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024267if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024268 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000024269fi
cristy8b350f62009-11-15 23:12:43 +000024270rm -f core conftest.err conftest.$ac_objext \
24271 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024272 LIBS=$PERSIST_LIBS
24273 fi
24274
24275 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024277$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024278if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024279 $as_echo_n "(cached) " >&6
24280else
24281 ac_check_lib_save_LIBS=$LIBS
24282LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024284/* end confdefs.h. */
24285
24286/* Override any GCC internal prototype to avoid an error.
24287 Use char because int might match the return type of a GCC
24288 builtin and then its argument prototype would still apply. */
24289#ifdef __cplusplus
24290extern "C"
24291#endif
24292char XShmAttach ();
24293int
24294main ()
24295{
24296return XShmAttach ();
24297 ;
24298 return 0;
24299}
24300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024301if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024302 ac_cv_lib_Xext_XShmAttach=yes
24303else
cristy8b350f62009-11-15 23:12:43 +000024304 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000024305fi
cristy8b350f62009-11-15 23:12:43 +000024306rm -f core conftest.err conftest.$ac_objext \
24307 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024308LIBS=$ac_check_lib_save_LIBS
24309fi
cristy8b350f62009-11-15 23:12:43 +000024310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000024311$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024312if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024313 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024314$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024315
24316fi
24317
24318 fi
24319
24320 #
24321 # Check for X11 shape extension
24322 #
cristy8b350f62009-11-15 23:12:43 +000024323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024324$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024325if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024326 $as_echo_n "(cached) " >&6
24327else
24328 ac_check_lib_save_LIBS=$LIBS
24329LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024331/* end confdefs.h. */
24332
24333/* Override any GCC internal prototype to avoid an error.
24334 Use char because int might match the return type of a GCC
24335 builtin and then its argument prototype would still apply. */
24336#ifdef __cplusplus
24337extern "C"
24338#endif
24339char XShapeCombineMask ();
24340int
24341main ()
24342{
24343return XShapeCombineMask ();
24344 ;
24345 return 0;
24346}
24347_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024348if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024349 ac_cv_lib_Xext_XShapeCombineMask=yes
24350else
cristy8b350f62009-11-15 23:12:43 +000024351 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000024352fi
cristy8b350f62009-11-15 23:12:43 +000024353rm -f core conftest.err conftest.$ac_objext \
24354 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024355LIBS=$ac_check_lib_save_LIBS
24356fi
cristy8b350f62009-11-15 23:12:43 +000024357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000024358$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024359if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024360 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024361$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024362
24363fi
24364
cristy8b350f62009-11-15 23:12:43 +000024365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000024366$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024367if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024368 $as_echo_n "(cached) " >&6
24369else
24370 ac_check_lib_save_LIBS=$LIBS
24371LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024373/* end confdefs.h. */
24374
24375/* Override any GCC internal prototype to avoid an error.
24376 Use char because int might match the return type of a GCC
24377 builtin and then its argument prototype would still apply. */
24378#ifdef __cplusplus
24379extern "C"
24380#endif
24381char XtSetEventDispatcher ();
24382int
24383main ()
24384{
24385return XtSetEventDispatcher ();
24386 ;
24387 return 0;
24388}
24389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024390if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024391 ac_cv_lib_Xt_XtSetEventDispatcher=yes
24392else
cristy8b350f62009-11-15 23:12:43 +000024393 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000024394fi
cristy8b350f62009-11-15 23:12:43 +000024395rm -f core conftest.err conftest.$ac_objext \
24396 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024397LIBS=$ac_check_lib_save_LIBS
24398fi
cristy8b350f62009-11-15 23:12:43 +000024399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000024400$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024401if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024402 XT_LIBS='-lXt'
24403fi
24404
24405 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
24406fi
24407if test "$no_x" != 'yes'; then
24408 have_x='yes'
24409else
24410 have_x='no'
24411fi
24412 if test "$have_x" = 'yes'; then
24413 X11_DELEGATE_TRUE=
24414 X11_DELEGATE_FALSE='#'
24415else
24416 X11_DELEGATE_TRUE='#'
24417 X11_DELEGATE_FALSE=
24418fi
24419
24420
24421
24422
24423
24424#
24425# Check for ZLIB
24426#
24427
24428# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000024429if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024430 withval=$with_zlib; with_zlib=$withval
24431else
24432 with_zlib='yes'
24433fi
24434
24435
24436if test "$with_zlib" != 'yes'; then
24437 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
24438fi
24439
24440have_zlib='no'
24441ZLIB_LIBS=''
24442if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024444$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024446$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024448$as_echo "" >&6; }
24449 ZLIB_LIBS=''
24450 failed=0
24451 passed=0
cristy8b350f62009-11-15 23:12:43 +000024452 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
24453if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024454 passed=`expr $passed + 1`
24455else
24456 failed=`expr $failed + 1`
24457fi
24458
24459
cristy8b350f62009-11-15 23:12:43 +000024460 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24461if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024462 passed=`expr $passed + 1`
24463else
24464 failed=`expr $failed + 1`
24465fi
24466
24467
cristy8b350f62009-11-15 23:12:43 +000024468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024469$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024470if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024471 $as_echo_n "(cached) " >&6
24472else
24473 ac_check_lib_save_LIBS=$LIBS
24474LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024476/* end confdefs.h. */
24477
24478/* Override any GCC internal prototype to avoid an error.
24479 Use char because int might match the return type of a GCC
24480 builtin and then its argument prototype would still apply. */
24481#ifdef __cplusplus
24482extern "C"
24483#endif
24484char compress ();
24485int
24486main ()
24487{
24488return compress ();
24489 ;
24490 return 0;
24491}
24492_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024493if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024494 ac_cv_lib_z_compress=yes
24495else
cristy8b350f62009-11-15 23:12:43 +000024496 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000024497fi
cristy8b350f62009-11-15 23:12:43 +000024498rm -f core conftest.err conftest.$ac_objext \
24499 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024500LIBS=$ac_check_lib_save_LIBS
24501fi
cristy8b350f62009-11-15 23:12:43 +000024502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024503$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024504if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024505 passed=`expr $passed + 1`
24506else
24507 failed=`expr $failed + 1`
24508fi
24509
cristy8b350f62009-11-15 23:12:43 +000024510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024511$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024512if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024513 $as_echo_n "(cached) " >&6
24514else
24515 ac_check_lib_save_LIBS=$LIBS
24516LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024518/* end confdefs.h. */
24519
24520/* Override any GCC internal prototype to avoid an error.
24521 Use char because int might match the return type of a GCC
24522 builtin and then its argument prototype would still apply. */
24523#ifdef __cplusplus
24524extern "C"
24525#endif
24526char uncompress ();
24527int
24528main ()
24529{
24530return uncompress ();
24531 ;
24532 return 0;
24533}
24534_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024535if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024536 ac_cv_lib_z_uncompress=yes
24537else
cristy8b350f62009-11-15 23:12:43 +000024538 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000024539fi
cristy8b350f62009-11-15 23:12:43 +000024540rm -f core conftest.err conftest.$ac_objext \
24541 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024542LIBS=$ac_check_lib_save_LIBS
24543fi
cristy8b350f62009-11-15 23:12:43 +000024544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024545$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024546if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024547 passed=`expr $passed + 1`
24548else
24549 failed=`expr $failed + 1`
24550fi
24551
cristy8b350f62009-11-15 23:12:43 +000024552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024553$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024554if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024555 $as_echo_n "(cached) " >&6
24556else
24557 ac_check_lib_save_LIBS=$LIBS
24558LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024560/* end confdefs.h. */
24561
24562/* Override any GCC internal prototype to avoid an error.
24563 Use char because int might match the return type of a GCC
24564 builtin and then its argument prototype would still apply. */
24565#ifdef __cplusplus
24566extern "C"
24567#endif
24568char deflate ();
24569int
24570main ()
24571{
24572return deflate ();
24573 ;
24574 return 0;
24575}
24576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024577if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024578 ac_cv_lib_z_deflate=yes
24579else
cristy8b350f62009-11-15 23:12:43 +000024580 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000024581fi
cristy8b350f62009-11-15 23:12:43 +000024582rm -f core conftest.err conftest.$ac_objext \
24583 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024584LIBS=$ac_check_lib_save_LIBS
24585fi
cristy8b350f62009-11-15 23:12:43 +000024586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024587$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024588if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024589 passed=`expr $passed + 1`
24590else
24591 failed=`expr $failed + 1`
24592fi
24593
cristy8b350f62009-11-15 23:12:43 +000024594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024595$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024596if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024597 $as_echo_n "(cached) " >&6
24598else
24599 ac_check_lib_save_LIBS=$LIBS
24600LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024602/* end confdefs.h. */
24603
24604/* Override any GCC internal prototype to avoid an error.
24605 Use char because int might match the return type of a GCC
24606 builtin and then its argument prototype would still apply. */
24607#ifdef __cplusplus
24608extern "C"
24609#endif
24610char inflate ();
24611int
24612main ()
24613{
24614return inflate ();
24615 ;
24616 return 0;
24617}
24618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024619if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024620 ac_cv_lib_z_inflate=yes
24621else
cristy8b350f62009-11-15 23:12:43 +000024622 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000024623fi
cristy8b350f62009-11-15 23:12:43 +000024624rm -f core conftest.err conftest.$ac_objext \
24625 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024626LIBS=$ac_check_lib_save_LIBS
24627fi
cristy8b350f62009-11-15 23:12:43 +000024628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024629$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024630if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024631 passed=`expr $passed + 1`
24632else
24633 failed=`expr $failed + 1`
24634fi
24635
cristy8b350f62009-11-15 23:12:43 +000024636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024637$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024638if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024639 $as_echo_n "(cached) " >&6
24640else
24641 ac_check_lib_save_LIBS=$LIBS
24642LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024644/* end confdefs.h. */
24645
24646/* Override any GCC internal prototype to avoid an error.
24647 Use char because int might match the return type of a GCC
24648 builtin and then its argument prototype would still apply. */
24649#ifdef __cplusplus
24650extern "C"
24651#endif
24652char gzseek ();
24653int
24654main ()
24655{
24656return gzseek ();
24657 ;
24658 return 0;
24659}
24660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024661if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024662 ac_cv_lib_z_gzseek=yes
24663else
cristy8b350f62009-11-15 23:12:43 +000024664 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000024665fi
cristy8b350f62009-11-15 23:12:43 +000024666rm -f core conftest.err conftest.$ac_objext \
24667 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024668LIBS=$ac_check_lib_save_LIBS
24669fi
cristy8b350f62009-11-15 23:12:43 +000024670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000024671$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024672if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024673 passed=`expr $passed + 1`
24674else
24675 failed=`expr $failed + 1`
24676fi
24677
cristy8b350f62009-11-15 23:12:43 +000024678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024679$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024680if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024681 $as_echo_n "(cached) " >&6
24682else
24683 ac_check_lib_save_LIBS=$LIBS
24684LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024686/* end confdefs.h. */
24687
24688/* Override any GCC internal prototype to avoid an error.
24689 Use char because int might match the return type of a GCC
24690 builtin and then its argument prototype would still apply. */
24691#ifdef __cplusplus
24692extern "C"
24693#endif
24694char gztell ();
24695int
24696main ()
24697{
24698return gztell ();
24699 ;
24700 return 0;
24701}
24702_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024703if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024704 ac_cv_lib_z_gztell=yes
24705else
cristy8b350f62009-11-15 23:12:43 +000024706 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000024707fi
cristy8b350f62009-11-15 23:12:43 +000024708rm -f core conftest.err conftest.$ac_objext \
24709 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024710LIBS=$ac_check_lib_save_LIBS
24711fi
cristy8b350f62009-11-15 23:12:43 +000024712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000024713$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024714if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024715 passed=`expr $passed + 1`
24716else
24717 failed=`expr $failed + 1`
24718fi
24719
cristy8b350f62009-11-15 23:12:43 +000024720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024721$as_echo_n "checking if ZLIB package is complete... " >&6; }
24722 if test $passed -gt 0; then
24723 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024725$as_echo "no -- some components failed test" >&6; }
24726 have_zlib='no (failed tests)'
24727 else
24728 ZLIB_LIBS='-lz'
24729 LIBS="$ZLIB_LIBS $LIBS"
24730
cristy8b350f62009-11-15 23:12:43 +000024731$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024732
cristy8b350f62009-11-15 23:12:43 +000024733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024734$as_echo "yes" >&6; }
24735 have_zlib='yes'
24736 fi
24737 else
cristy8b350f62009-11-15 23:12:43 +000024738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024739$as_echo "no" >&6; }
24740 fi
24741fi
24742 if test "$have_zlib" = 'yes'; then
24743 ZLIB_DELEGATE_TRUE=
24744 ZLIB_DELEGATE_FALSE='#'
24745else
24746 ZLIB_DELEGATE_TRUE='#'
24747 ZLIB_DELEGATE_FALSE=
24748fi
24749
24750
24751
24752#
24753# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
24754#
24755LIB_DL=''
24756if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024758$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024759if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024760 $as_echo_n "(cached) " >&6
24761else
24762 ac_check_lib_save_LIBS=$LIBS
24763LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024765/* end confdefs.h. */
24766
24767/* Override any GCC internal prototype to avoid an error.
24768 Use char because int might match the return type of a GCC
24769 builtin and then its argument prototype would still apply. */
24770#ifdef __cplusplus
24771extern "C"
24772#endif
24773char dlopen ();
24774int
24775main ()
24776{
24777return dlopen ();
24778 ;
24779 return 0;
24780}
24781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024782if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024783 ac_cv_lib_dl_dlopen=yes
24784else
cristy8b350f62009-11-15 23:12:43 +000024785 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000024786fi
cristy8b350f62009-11-15 23:12:43 +000024787rm -f core conftest.err conftest.$ac_objext \
24788 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024789LIBS=$ac_check_lib_save_LIBS
24790fi
cristy8b350f62009-11-15 23:12:43 +000024791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000024792$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024793if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024794 LIB_DL='-ldl'
24795fi
24796
24797 LIBS="$LIB_DL $LIBS"
24798fi
24799
24800
24801
24802#
24803# Check for Autotrace delegate library.
24804#
24805
24806# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000024807if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024808 withval=$with_autotrace; with_autotrace=$withval
24809else
24810 with_autotrace='no'
24811fi
24812
24813
24814if test "$with_autotrace" != 'yes'; then
24815 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
24816fi
24817
24818have_autotrace='no'
24819AUTOTRACE_CFLAGS=""
24820AUTOTRACE_LIBS=""
24821AUTOTRACE_PKG=""
24822if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000024823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024824$as_echo "-------------------------------------------------------------" >&6; }
24825
24826pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000024827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024828$as_echo_n "checking for AUTOTRACE... " >&6; }
24829
24830if test -n "$AUTOTRACE_CFLAGS"; then
24831 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
24832 elif test -n "$PKG_CONFIG"; then
24833 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024835 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24836 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24838 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024839 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
24840else
24841 pkg_failed=yes
24842fi
24843 else
24844 pkg_failed=untried
24845fi
24846if test -n "$AUTOTRACE_LIBS"; then
24847 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
24848 elif test -n "$PKG_CONFIG"; then
24849 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024850 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024851 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24852 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24854 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024855 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
24856else
24857 pkg_failed=yes
24858fi
24859 else
24860 pkg_failed=untried
24861fi
24862
24863
24864
24865if test $pkg_failed = yes; then
24866
24867if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24868 _pkg_short_errors_supported=yes
24869else
24870 _pkg_short_errors_supported=no
24871fi
24872 if test $_pkg_short_errors_supported = yes; then
24873 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
24874 else
24875 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
24876 fi
24877 # Put the nasty error message in config.log where it belongs
24878 echo "$AUTOTRACE_PKG_ERRORS" >&5
24879
cristy8b350f62009-11-15 23:12:43 +000024880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024881$as_echo "no" >&6; }
24882 have_autotrace=no
24883elif test $pkg_failed = untried; then
24884 have_autotrace=no
24885else
24886 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
24887 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000024888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024889$as_echo "yes" >&6; }
24890 have_autotrace=yes
24891fi
cristy8b350f62009-11-15 23:12:43 +000024892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024893$as_echo "" >&6; }
24894fi
24895
24896if test "$have_autotrace" = 'yes'; then
24897 failed=0
24898
cristy8b350f62009-11-15 23:12:43 +000024899$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024900
24901 if test "$with_modules" = 'no'; then
24902 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
24903 fi
24904fi
24905
24906 if test "$have_autotrace" = 'yes'; then
24907 AUTOTRACE_DELEGATE_TRUE=
24908 AUTOTRACE_DELEGATE_FALSE='#'
24909else
24910 AUTOTRACE_DELEGATE_TRUE='#'
24911 AUTOTRACE_DELEGATE_FALSE=
24912fi
24913
24914
24915
24916
24917
24918#
24919# Check for Display Postscript delegate library.
24920#
24921
24922# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000024923if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024924 withval=$with_dps; with_dps=$withval
24925else
24926 with_dps='yes'
24927fi
24928
24929
24930if test "$with_dps" != 'yes'; then
24931 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
24932fi
24933
24934have_dps='no'
24935DPS_LIBS=''
24936if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024938$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000024940$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024942$as_echo "" >&6; }
24943 failed=0
24944 passed=0
24945 PERSIST_CPPFLAGS="$CPPFLAGS"
24946 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000024947 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
24948if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024949 passed=`expr $passed + 1`
24950else
24951 failed=`expr $failed + 1`
24952fi
24953
24954
24955 # DPS issues:
24956 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
24957 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
24958 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
24959 # ImageMagick itself doesn't use -lXt.
24960 have_libdps='no'
24961 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000024962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000024963$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024964if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024965 $as_echo_n "(cached) " >&6
24966else
24967 ac_check_lib_save_LIBS=$LIBS
24968LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024970/* end confdefs.h. */
24971
24972/* Override any GCC internal prototype to avoid an error.
24973 Use char because int might match the return type of a GCC
24974 builtin and then its argument prototype would still apply. */
24975#ifdef __cplusplus
24976extern "C"
24977#endif
24978char DPSInitialize ();
24979int
24980main ()
24981{
24982return DPSInitialize ();
24983 ;
24984 return 0;
24985}
24986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024987if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024988 ac_cv_lib_dps_DPSInitialize=yes
24989else
cristy8b350f62009-11-15 23:12:43 +000024990 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000024991fi
cristy8b350f62009-11-15 23:12:43 +000024992rm -f core conftest.err conftest.$ac_objext \
24993 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024994LIBS=$ac_check_lib_save_LIBS
24995fi
cristy8b350f62009-11-15 23:12:43 +000024996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000024997$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024998if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024999 have_libdps='yes'
25000else
25001 have_libdps='no'
25002fi
25003
25004 if test "$have_libdps" != 'yes'; then
25005 # Unset cache variable so we can try again.
25006 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000025007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025008$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025009if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025010 $as_echo_n "(cached) " >&6
25011else
25012 ac_check_lib_save_LIBS=$LIBS
25013LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025015/* end confdefs.h. */
25016
25017/* Override any GCC internal prototype to avoid an error.
25018 Use char because int might match the return type of a GCC
25019 builtin and then its argument prototype would still apply. */
25020#ifdef __cplusplus
25021extern "C"
25022#endif
25023char DPSInitialize ();
25024int
25025main ()
25026{
25027return DPSInitialize ();
25028 ;
25029 return 0;
25030}
25031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025032if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025033 ac_cv_lib_dps_DPSInitialize=yes
25034else
cristy8b350f62009-11-15 23:12:43 +000025035 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025036fi
cristy8b350f62009-11-15 23:12:43 +000025037rm -f core conftest.err conftest.$ac_objext \
25038 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025039LIBS=$ac_check_lib_save_LIBS
25040fi
cristy8b350f62009-11-15 23:12:43 +000025041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025042$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025043if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025044 have_libdps='yes'
25045else
25046 have_libdps='no'
25047fi
25048
25049 if test "$have_libdps" = 'yes'; then
25050 LIBDPS_XT='-lXt'
25051 fi
25052 fi
25053 if test "$have_libdps" = 'yes'; then
25054 passed=`expr $passed + 1`
25055 else
25056 failed=`expr $failed + 1`
25057 fi
cristy8b350f62009-11-15 23:12:43 +000025058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025059$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025060if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025061 $as_echo_n "(cached) " >&6
25062else
25063 ac_check_lib_save_LIBS=$LIBS
25064LIBS="-ldpstk -ldps $LIBDPS_XT $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 XDPSPixelsPerPoint ();
25075int
25076main ()
25077{
25078return XDPSPixelsPerPoint ();
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_dpstk_XDPSPixelsPerPoint=yes
25085else
cristy8b350f62009-11-15 23:12:43 +000025086 ac_cv_lib_dpstk_XDPSPixelsPerPoint=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_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000025093$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025094if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025095 passed=`expr $passed + 1`
25096else
25097 failed=`expr $failed + 1`
25098fi
25099
cristy8b350f62009-11-15 23:12:43 +000025100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025101$as_echo_n "checking if DPS package is complete... " >&6; }
25102 if test $passed -gt 0; then
25103 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025105$as_echo "no -- some components failed test" >&6; }
25106 have_dps='no (failed tests)'
25107 CPPFLAGS="$PERSIST_CPPFLAGS"
25108 else
25109 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
25110 LIBS="$DPS_LIBS $LIBS"
25111
cristy8b350f62009-11-15 23:12:43 +000025112$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025113
cristy8b350f62009-11-15 23:12:43 +000025114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025115$as_echo "yes" >&6; }
25116 have_dps='yes'
25117 fi
25118 else
cristy8b350f62009-11-15 23:12:43 +000025119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025120$as_echo "no" >&6; }
25121 CPPFLAGS=$PERSIST_CPPFLAGS
25122 fi
25123fi
25124 if test "$have_dps" = 'yes'; then
25125 DPS_DELEGATE_TRUE=
25126 DPS_DELEGATE_FALSE='#'
25127else
25128 DPS_DELEGATE_TRUE='#'
25129 DPS_DELEGATE_FALSE=
25130fi
25131
25132
25133
25134
25135#
25136# Check for DJVU delegate library.
25137#
25138
25139# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000025140if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025141 withval=$with_djvu; with_djvu=$withval
25142else
25143 with_djvu='yes'
25144fi
25145
25146
25147if test "$with_djvu" != 'yes'; then
25148 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
25149fi
25150
25151have_djvu='no'
25152DJVU_LIBS=''
25153if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025155$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000025157$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025159$as_echo "" >&6; }
25160 failed=0
25161 passed=0
cristy8b350f62009-11-15 23:12:43 +000025162 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25163if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025164 passed=`expr $passed + 1`
25165else
25166 failed=`expr $failed + 1`
25167fi
25168
25169
cristy8b350f62009-11-15 23:12:43 +000025170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000025171$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025172if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025173 $as_echo_n "(cached) " >&6
25174else
25175 ac_check_lib_save_LIBS=$LIBS
25176LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025178/* end confdefs.h. */
25179
25180/* Override any GCC internal prototype to avoid an error.
25181 Use char because int might match the return type of a GCC
25182 builtin and then its argument prototype would still apply. */
25183#ifdef __cplusplus
25184extern "C"
25185#endif
25186char ddjvu_context_create ();
25187int
25188main ()
25189{
25190return ddjvu_context_create ();
25191 ;
25192 return 0;
25193}
25194_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025195if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025196 ac_cv_lib_djvulibre_ddjvu_context_create=yes
25197else
cristy8b350f62009-11-15 23:12:43 +000025198 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000025199fi
cristy8b350f62009-11-15 23:12:43 +000025200rm -f core conftest.err conftest.$ac_objext \
25201 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025202LIBS=$ac_check_lib_save_LIBS
25203fi
cristy8b350f62009-11-15 23:12:43 +000025204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000025205$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025206if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025207 passed=`expr $passed + 1`
25208else
25209 failed=`expr $failed + 1`
25210fi
25211
cristy8b350f62009-11-15 23:12:43 +000025212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025213$as_echo_n "checking if DJVU package is complete... " >&6; }
25214 if test $passed -gt 0; then
25215 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025217$as_echo "no -- some components failed test" >&6; }
25218 have_djvu='no (failed tests)'
25219 else
25220 DJVU_LIBS='-ldjvulibre'
25221 LIBS="$DJVU_LIBS $LIBS"
25222
cristy8b350f62009-11-15 23:12:43 +000025223$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025224
cristy8b350f62009-11-15 23:12:43 +000025225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025226$as_echo "yes" >&6; }
25227 have_djvu='yes'
25228 fi
25229 else
cristy8b350f62009-11-15 23:12:43 +000025230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025231$as_echo "no" >&6; }
25232 fi
25233fi
25234 if test "$have_djvu" = 'yes'; then
25235 DJVU_DELEGATE_TRUE=
25236 DJVU_DELEGATE_FALSE='#'
25237else
25238 DJVU_DELEGATE_TRUE='#'
25239 DJVU_DELEGATE_FALSE=
25240fi
25241
25242
25243
25244
25245#
25246# Check for FFTW delegate library.
25247#
25248
25249# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000025250if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025251 withval=$with_fftw; with_fftw=$withval
25252else
25253 with_fftw='yes'
25254fi
25255
25256
25257if test "$with_fftw" != 'yes'; then
25258 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
25259fi
25260
25261have_fftw='no'
25262FFTW_LIBS=''
25263if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025265$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000025267$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025269$as_echo "" >&6; }
25270 failed=0
25271 passed=0
cristy8b350f62009-11-15 23:12:43 +000025272 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
25273if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025274 passed=`expr $passed + 1`
25275else
25276 failed=`expr $failed + 1`
25277fi
25278
25279
cristy8b350f62009-11-15 23:12:43 +000025280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000025281$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025282if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025283 $as_echo_n "(cached) " >&6
25284else
25285 ac_check_lib_save_LIBS=$LIBS
25286LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025288/* end confdefs.h. */
25289
25290/* Override any GCC internal prototype to avoid an error.
25291 Use char because int might match the return type of a GCC
25292 builtin and then its argument prototype would still apply. */
25293#ifdef __cplusplus
25294extern "C"
25295#endif
25296char fftw_execute ();
25297int
25298main ()
25299{
25300return fftw_execute ();
25301 ;
25302 return 0;
25303}
25304_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025305if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025306 ac_cv_lib_fftw3_fftw_execute=yes
25307else
cristy8b350f62009-11-15 23:12:43 +000025308 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000025309fi
cristy8b350f62009-11-15 23:12:43 +000025310rm -f core conftest.err conftest.$ac_objext \
25311 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025312LIBS=$ac_check_lib_save_LIBS
25313fi
cristy8b350f62009-11-15 23:12:43 +000025314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000025315$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025316if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025317 passed=`expr $passed + 1`
25318else
25319 failed=`expr $failed + 1`
25320fi
25321
cristy8b350f62009-11-15 23:12:43 +000025322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025323$as_echo_n "checking if FFTW package is complete... " >&6; }
25324 if test $passed -gt 0; then
25325 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025327$as_echo "no -- some components failed test" >&6; }
25328 have_fftw='no (failed tests)'
25329 else
25330 FFTW_LIBS='-lfftw3'
25331 LIBS="$FFTW_LIBS $LIBS"
25332
cristy8b350f62009-11-15 23:12:43 +000025333$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025334
cristy8b350f62009-11-15 23:12:43 +000025335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025336$as_echo "yes" >&6; }
25337 have_fftw='yes'
25338 fi
25339 else
cristy8b350f62009-11-15 23:12:43 +000025340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025341$as_echo "no" >&6; }
25342 fi
25343fi
25344 if test "$have_fftw" = 'yes'; then
25345 FFTW_DELEGATE_TRUE=
25346 FFTW_DELEGATE_FALSE='#'
25347else
25348 FFTW_DELEGATE_TRUE='#'
25349 FFTW_DELEGATE_FALSE=
25350fi
25351
25352
25353
25354
25355#
25356# Check for FlashPIX delegate library.
25357#
25358
25359# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000025360if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025361 withval=$with_fpx; with_fpx=$withval
25362else
25363 with_fpx='yes'
25364fi
25365
25366
25367if test "$with_fpx" != 'yes'; then
25368 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
25369fi
25370
25371have_fpx='no'
25372FPX_LIBS=''
25373if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025375$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025377$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025379$as_echo "" >&6; }
25380 failed=0
25381 passed=0
25382 ac_ext=cpp
25383ac_cpp='$CXXCPP $CPPFLAGS'
25384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25387
25388
cristy8b350f62009-11-15 23:12:43 +000025389ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
25390if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025391 passed=`expr $passed + 1`
25392else
25393 failed=`expr $failed + 1`
25394fi
25395
25396
cristy8b350f62009-11-15 23:12:43 +000025397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000025398$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025399if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025400 $as_echo_n "(cached) " >&6
25401else
25402 ac_check_lib_save_LIBS=$LIBS
25403LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025405/* end confdefs.h. */
25406
25407/* Override any GCC internal prototype to avoid an error.
25408 Use char because int might match the return type of a GCC
25409 builtin and then its argument prototype would still apply. */
25410#ifdef __cplusplus
25411extern "C"
25412#endif
25413char FPX_OpenImageByFilename ();
25414int
25415main ()
25416{
25417return FPX_OpenImageByFilename ();
25418 ;
25419 return 0;
25420}
25421_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025422if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025423 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
25424else
cristy8b350f62009-11-15 23:12:43 +000025425 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000025426fi
cristy8b350f62009-11-15 23:12:43 +000025427rm -f core conftest.err conftest.$ac_objext \
25428 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025429LIBS=$ac_check_lib_save_LIBS
25430fi
cristy8b350f62009-11-15 23:12:43 +000025431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000025432$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025433if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025434 passed=`expr $passed + 1`
25435else
25436 failed=`expr $failed + 1`
25437fi
25438
25439 ac_ext=c
25440ac_cpp='$CPP $CPPFLAGS'
25441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25443ac_compiler_gnu=$ac_cv_c_compiler_gnu
25444
cristy8b350f62009-11-15 23:12:43 +000025445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025446$as_echo_n "checking if FlashPIX package is complete... " >&6; }
25447 if test $passed -gt 0; then
25448 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025450$as_echo "no -- some components failed test" >&6; }
25451 have_fpx='no (failed tests)'
25452 else
25453 FPX_LIBS='-lfpx'
25454
cristy8b350f62009-11-15 23:12:43 +000025455$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025456
cristy8b350f62009-11-15 23:12:43 +000025457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025458$as_echo "yes" >&6; }
25459 have_fpx='yes'
25460 PERLMAINCC="$CXX"
25461 fi
25462 else
cristy8b350f62009-11-15 23:12:43 +000025463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025464$as_echo "no" >&6; }
25465 fi
25466fi
25467 if test "$have_fpx" = 'yes'; then
25468 FPX_DELEGATE_TRUE=
25469 FPX_DELEGATE_FALSE='#'
25470else
25471 FPX_DELEGATE_TRUE='#'
25472 FPX_DELEGATE_FALSE=
25473fi
25474
25475
25476
25477
25478#
25479# Check for fontconfig delegate library.
25480#
25481
25482# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000025483if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025484 withval=$with_fontconfig; with_fontconfig=$withval
25485else
25486 with_fontconfig=$have_x
25487fi
25488
25489
25490if test "$with_fontconfig" != 'yes'; then
25491 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
25492fi
25493
25494have_fontconfig='no'
25495FONTCONFIG_CFLAGS=""
25496FONTCONFIG_LIBS=""
25497FONTCONFIG_PKG=""
25498if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025500$as_echo "-------------------------------------------------------------" >&6; }
25501
25502pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000025504$as_echo_n "checking for FONTCONFIG... " >&6; }
25505
25506if test -n "$FONTCONFIG_CFLAGS"; then
25507 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
25508 elif test -n "$PKG_CONFIG"; then
25509 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025511 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25512 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25514 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025515 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
25516else
25517 pkg_failed=yes
25518fi
25519 else
25520 pkg_failed=untried
25521fi
25522if test -n "$FONTCONFIG_LIBS"; then
25523 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
25524 elif test -n "$PKG_CONFIG"; then
25525 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025526 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025527 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25528 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25530 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025531 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
25532else
25533 pkg_failed=yes
25534fi
25535 else
25536 pkg_failed=untried
25537fi
25538
25539
25540
25541if test $pkg_failed = yes; then
25542
25543if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25544 _pkg_short_errors_supported=yes
25545else
25546 _pkg_short_errors_supported=no
25547fi
25548 if test $_pkg_short_errors_supported = yes; then
25549 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
25550 else
25551 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
25552 fi
25553 # Put the nasty error message in config.log where it belongs
25554 echo "$FONTCONFIG_PKG_ERRORS" >&5
25555
cristy8b350f62009-11-15 23:12:43 +000025556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025557$as_echo "no" >&6; }
25558 have_fontconfig=no
25559elif test $pkg_failed = untried; then
25560 have_fontconfig=no
25561else
25562 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
25563 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000025564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025565$as_echo "yes" >&6; }
25566 have_fontconfig=yes
25567fi
cristy8b350f62009-11-15 23:12:43 +000025568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025569$as_echo "" >&6; }
25570fi
25571
25572if test "$have_fontconfig" = 'yes'; then
25573
cristy8b350f62009-11-15 23:12:43 +000025574$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025575
25576 if test "$with_modules" = 'no'; then
25577 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
25578 fi
25579fi
25580
25581 if test "$have_fontconfig" = 'yes'; then
25582 FONTCONFIG_DELEGATE_TRUE=
25583 FONTCONFIG_DELEGATE_FALSE='#'
25584else
25585 FONTCONFIG_DELEGATE_TRUE='#'
25586 FONTCONFIG_DELEGATE_FALSE=
25587fi
25588
25589
25590
25591
25592
25593#
25594# Check for freetype delegate library.
25595#
25596
25597# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000025598if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025599 withval=$with_freetype; with_freetype=$withval
25600else
25601 with_freetype='yes'
25602fi
25603
25604
25605
25606if test "$with_freetype" != 'yes'; then
25607 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
25608fi
25609
25610have_freetype='no'
25611FREETYPE_LIBS=''
25612if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025614$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000025616$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025618$as_echo "" >&6; }
25619 failed=0
25620 passed=0
cristy66291112009-10-03 22:44:36 +000025621 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025622 PERSIST_CPPFLAGS="$CPPFLAGS"
25623 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
25624 :
25625 else
25626 freetype_config=''
25627 for ac_prog in freetype-config
25628do
25629 # Extract the first word of "$ac_prog", so it can be a program name with args.
25630set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025632$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025633if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025634 $as_echo_n "(cached) " >&6
25635else
25636 if test -n "$freetype_config"; then
25637 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
25638else
25639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25640for as_dir in $PATH
25641do
25642 IFS=$as_save_IFS
25643 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25646 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025648 break 2
25649 fi
25650done
cristy8b350f62009-11-15 23:12:43 +000025651 done
cristy3ed852e2009-09-05 21:47:34 +000025652IFS=$as_save_IFS
25653
25654fi
25655fi
25656freetype_config=$ac_cv_prog_freetype_config
25657if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000025658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000025659$as_echo "$freetype_config" >&6; }
25660else
cristy8b350f62009-11-15 23:12:43 +000025661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025662$as_echo "no" >&6; }
25663fi
25664
25665
25666 test -n "$freetype_config" && break
25667done
25668 if test -n "$freetype_config"; then
25669 freetype_cflags=`$freetype_config --cflags`
25670 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000025671 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000025672 CPPFLAGS="$freetype_cflags $CPPFLAGS"
25673 fi
25674 fi
25675
25676 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000025677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000025678$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025679if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025680 $as_echo_n "(cached) " >&6
25681else
25682 ac_check_lib_save_LIBS=$LIBS
25683LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025685/* end confdefs.h. */
25686
25687/* Override any GCC internal prototype to avoid an error.
25688 Use char because int might match the return type of a GCC
25689 builtin and then its argument prototype would still apply. */
25690#ifdef __cplusplus
25691extern "C"
25692#endif
25693char FT_Init_FreeType ();
25694int
25695main ()
25696{
25697return FT_Init_FreeType ();
25698 ;
25699 return 0;
25700}
25701_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025702if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025703 ac_cv_lib_freetype_FT_Init_FreeType=yes
25704else
cristy8b350f62009-11-15 23:12:43 +000025705 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000025706fi
cristy8b350f62009-11-15 23:12:43 +000025707rm -f core conftest.err conftest.$ac_objext \
25708 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025709LIBS=$ac_check_lib_save_LIBS
25710fi
cristy8b350f62009-11-15 23:12:43 +000025711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000025712$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025713if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025714 FREETYPE_LIBS='-lfreetype'
25715fi
25716
25717 if test "$FREETYPE_LIBS" != ''; then
25718 passed=`expr $passed + 1`
25719 else
25720 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000025721 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025722 fi
25723 fi
25724
cristy8b350f62009-11-15 23:12:43 +000025725 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
25726if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025727 FT2BUILD_H='#include <ft2build.h>'
25728else
25729 ft2build=''
25730fi
25731
25732
cristy8b350f62009-11-15 23:12:43 +000025733 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
25734"
25735if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025736 have_freetype_h='yes'
25737else
25738 have_freetype_h='no'
25739fi
25740
25741
25742 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
25743 passed=`expr $passed + 1`
25744 else
25745 failed=`expr $failed + 1`
25746 CPPFLAGS="$PERSIST_CPPFLAGS"
25747 fi
25748
cristy8b350f62009-11-15 23:12:43 +000025749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025750$as_echo_n "checking if FreeType package is complete... " >&6; }
25751 if test $passed -gt 0; then
25752 if test $failed -gt 0; then
25753 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025755$as_echo "no -- some components failed test" >&6; }
25756 have_freetype='no (failed tests)'
25757 else
25758 LIBS="$FREETYPE_LIBS $LIBS"
25759
cristy8b350f62009-11-15 23:12:43 +000025760$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025761
25762 if test "$ac_cv_header_ft2build_h" = 'yes'; then
25763
cristy8b350f62009-11-15 23:12:43 +000025764$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025765
25766 fi
cristy8b350f62009-11-15 23:12:43 +000025767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025768$as_echo "yes" >&6; }
25769 have_freetype='yes'
25770 fi
25771 else
cristy8b350f62009-11-15 23:12:43 +000025772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025773$as_echo "no" >&6; }
25774 fi
25775fi
25776 if test "$have_freetype" = 'yes'; then
25777 FREETYPE_DELEGATE_TRUE=
25778 FREETYPE_DELEGATE_FALSE='#'
25779else
25780 FREETYPE_DELEGATE_TRUE='#'
25781 FREETYPE_DELEGATE_FALSE=
25782fi
25783
25784
25785
25786
25787
25788#
25789# Check for Ghostscript library or framework.
25790#
25791# Test for iapi.h & test for gsapi_new_instance in -lgs
25792# or -framework Ghostscript
25793
25794
25795# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000025796if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025797 withval=$with_gslib; with_gslib=$withval
25798else
25799 with_gslib='no'
25800fi
25801
25802
cristyb7931f12009-09-25 10:22:21 +000025803gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000025804if test "$with_gslib" != 'yes'; then
25805 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
25806fi
25807
25808have_gslib='no'
25809GS_LIBS=''
25810if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025812$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000025814$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025816$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000025817 framework=0
cristy3ed852e2009-09-05 21:47:34 +000025818 failed=0
25819 passed=0
cristy8b350f62009-11-15 23:12:43 +000025820 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
25821if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025822 passed=`expr $passed + 1`
25823else
25824 failed=`expr $failed + 1`
25825fi
25826
25827
cristy8b350f62009-11-15 23:12:43 +000025828 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
25829if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025830 passed=`expr $passed + 1`
25831else
25832 failed=`expr $failed + 1`
25833fi
25834
25835
cristy8b350f62009-11-15 23:12:43 +000025836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000025837$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025838if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025839 $as_echo_n "(cached) " >&6
25840else
25841 ac_check_framework_save_LIBS=$LIBS
25842LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025844/* end confdefs.h. */
25845
25846/* Override any GCC internal prototype to avoid an error.
25847 Use char because int might match the return type of a GCC
25848 builtin and then its argument prototype would still apply. */
25849#ifdef __cplusplus
25850extern "C"
25851#endif
25852char gsapi_new_instance ();
25853int
25854main ()
25855{
25856return gsapi_new_instance ();
25857 ;
25858 return 0;
25859}
25860_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025861if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025862 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
25863else
cristy8b350f62009-11-15 23:12:43 +000025864 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025865fi
cristy8b350f62009-11-15 23:12:43 +000025866rm -f core conftest.err conftest.$ac_objext \
25867 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025868LIBS=$ac_check_framework_save_LIBS
25869fi
cristy8b350f62009-11-15 23:12:43 +000025870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025871$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025872if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025873 framework=`expr $framework + 1`
25874else
cristy8b350f62009-11-15 23:12:43 +000025875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000025876$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025877if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025878 $as_echo_n "(cached) " >&6
25879else
25880 ac_check_lib_save_LIBS=$LIBS
25881LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025883/* end confdefs.h. */
25884
25885/* Override any GCC internal prototype to avoid an error.
25886 Use char because int might match the return type of a GCC
25887 builtin and then its argument prototype would still apply. */
25888#ifdef __cplusplus
25889extern "C"
25890#endif
25891char gsapi_new_instance ();
25892int
25893main ()
25894{
25895return gsapi_new_instance ();
25896 ;
25897 return 0;
25898}
25899_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025900if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025901 ac_cv_lib_gs_gsapi_new_instance=yes
25902else
cristy8b350f62009-11-15 23:12:43 +000025903 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025904fi
cristy8b350f62009-11-15 23:12:43 +000025905rm -f core conftest.err conftest.$ac_objext \
25906 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025907LIBS=$ac_check_lib_save_LIBS
25908fi
cristy8b350f62009-11-15 23:12:43 +000025909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025910$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025911if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025912 passed=`expr $passed + 1`
25913else
25914 failed=`expr $failed + 1`
25915fi
25916
25917fi
cristy8b350f62009-11-15 23:12:43 +000025918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025919$as_echo_n "checking if Ghostscript package is complete... " >&6; }
25920 if test $passed -gt 0; then
25921 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025923$as_echo "no -- some components failed test" >&6; }
25924 have_gslib='no (failed tests)'
25925 else
25926 if test $framework -gt 0; then
25927 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000025928 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000025929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000025930$as_echo "yes, using framework." >&6; }
25931 else
cristy8b350f62009-11-15 23:12:43 +000025932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000025933$as_echo "yes, using library." >&6; }
25934 GS_LIBS='-lgs'
25935 fi
25936 LIBS="$GS_LIBS $LIBS"
25937
cristy8b350f62009-11-15 23:12:43 +000025938$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025939
25940 have_gslib='yes'
25941 fi
25942 else
cristy8b350f62009-11-15 23:12:43 +000025943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025944$as_echo "no" >&6; }
25945 fi
25946fi
25947 if test "$have_gslib" = 'yes'; then
25948 GS_DELEGATE_TRUE=
25949 GS_DELEGATE_FALSE='#'
25950else
25951 GS_DELEGATE_TRUE='#'
25952 GS_DELEGATE_FALSE=
25953fi
25954
25955
25956
25957# Set default font search path
25958
25959# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000025960if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025961 withval=$with_fontpath; with_fontpath=$withval
25962else
25963 with_fontpath=''
25964fi
25965
25966
25967if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
25968 with_fontpath=''
25969else
25970
25971cat >>confdefs.h <<_ACEOF
25972#define MAGICK_FONT_PATH "$with_fontpath"
25973_ACEOF
25974
25975fi
25976if test "$with_fontpath=" != ''; then
25977 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
25978fi
25979
25980# Set Ghostscript font directory
25981
25982# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000025983if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025984 withval=$with_gs_font_dir; with_gs_font_dir=$withval
25985else
25986 with_gs_font_dir='default'
25987fi
25988
25989
25990if test "$with_gs_font_dir" != 'default'; then
25991 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
25992fi
25993
25994
25995#
25996# Check for GVC delegate library.
25997#
25998
25999# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000026000if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026001 withval=$with_gvc; with_gvc=$withval
26002else
26003 with_gvc='yes'
26004fi
26005
26006
26007if test "$with_gvc" != 'yes'; then
26008 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26009fi
26010
26011GVC_PKG=""
26012if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026014$as_echo "-------------------------------------------------------------" >&6; }
26015
26016pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000026018$as_echo_n "checking for GVC... " >&6; }
26019
26020if test -n "$GVC_CFLAGS"; then
26021 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26022 elif test -n "$PKG_CONFIG"; then
26023 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026024 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026025 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26026 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26028 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026029 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26030else
26031 pkg_failed=yes
26032fi
26033 else
26034 pkg_failed=untried
26035fi
26036if test -n "$GVC_LIBS"; then
26037 pkg_cv_GVC_LIBS="$GVC_LIBS"
26038 elif test -n "$PKG_CONFIG"; then
26039 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026040 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026041 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26042 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26044 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026045 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26046else
26047 pkg_failed=yes
26048fi
26049 else
26050 pkg_failed=untried
26051fi
26052
26053
26054
26055if test $pkg_failed = yes; then
26056
26057if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26058 _pkg_short_errors_supported=yes
26059else
26060 _pkg_short_errors_supported=no
26061fi
26062 if test $_pkg_short_errors_supported = yes; then
26063 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26064 else
26065 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26066 fi
26067 # Put the nasty error message in config.log where it belongs
26068 echo "$GVC_PKG_ERRORS" >&5
26069
cristy8b350f62009-11-15 23:12:43 +000026070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026071$as_echo "no" >&6; }
26072 have_gvc=no
26073elif test $pkg_failed = untried; then
26074 have_gvc=no
26075else
26076 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
26077 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000026078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026079$as_echo "yes" >&6; }
26080 have_gvc=yes
26081fi
cristy8b350f62009-11-15 23:12:43 +000026082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026083$as_echo "" >&6; }
26084fi
26085
26086if test "$have_gvc" = 'yes'; then
26087
cristy8b350f62009-11-15 23:12:43 +000026088$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026089
26090 if test "$with_modules" = 'no'; then
26091 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
26092 fi
26093fi
26094
26095 if test "$have_gvc" = 'yes'; then
26096 GVC_DELEGATE_TRUE=
26097 GVC_DELEGATE_FALSE='#'
26098else
26099 GVC_DELEGATE_TRUE='#'
26100 GVC_DELEGATE_FALSE=
26101fi
26102
26103
26104
26105
26106
26107#
26108# Check for JBIG delegate library.
26109#
26110
26111
26112# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000026113if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026114 withval=$with_jbig; with_jbig=$withval
26115else
26116 with_jbig='yes'
26117fi
26118
26119
26120have_jbig='no'
26121JBIG_LIBS=''
26122if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026124$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026126$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026128$as_echo "" >&6; }
26129 failed=0
26130 passed=0
cristy8b350f62009-11-15 23:12:43 +000026131 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
26132if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026133 passed=`expr $passed + 1`
26134else
26135 failed=`expr $failed + 1`
26136fi
26137
26138
cristy8b350f62009-11-15 23:12:43 +000026139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000026140$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026141if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026142 $as_echo_n "(cached) " >&6
26143else
26144 ac_check_lib_save_LIBS=$LIBS
26145LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026147/* end confdefs.h. */
26148
26149/* Override any GCC internal prototype to avoid an error.
26150 Use char because int might match the return type of a GCC
26151 builtin and then its argument prototype would still apply. */
26152#ifdef __cplusplus
26153extern "C"
26154#endif
26155char jbg_dec_init ();
26156int
26157main ()
26158{
26159return jbg_dec_init ();
26160 ;
26161 return 0;
26162}
26163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026164if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026165 ac_cv_lib_jbig_jbg_dec_init=yes
26166else
cristy8b350f62009-11-15 23:12:43 +000026167 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000026168fi
cristy8b350f62009-11-15 23:12:43 +000026169rm -f core conftest.err conftest.$ac_objext \
26170 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026171LIBS=$ac_check_lib_save_LIBS
26172fi
cristy8b350f62009-11-15 23:12:43 +000026173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000026174$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026175if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026176 passed=`expr $passed + 1`
26177else
26178 failed=`expr $failed + 1`
26179fi
26180
cristy8b350f62009-11-15 23:12:43 +000026181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026182$as_echo_n "checking if JBIG package is complete... " >&6; }
26183 if test $passed -gt 0; then
26184 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026186$as_echo "no -- some components failed test" >&6; }
26187 have_jbig='no (failed tests)'
26188 else
26189 JBIG_LIBS='-ljbig'
26190 LIBS="$JBIG_LIBS $LIBS"
26191
cristy8b350f62009-11-15 23:12:43 +000026192$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026193
cristy8b350f62009-11-15 23:12:43 +000026194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026195$as_echo "yes" >&6; }
26196 have_jbig='yes'
26197 fi
26198 else
cristy8b350f62009-11-15 23:12:43 +000026199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026200$as_echo "no" >&6; }
26201 fi
26202fi
26203 if test "$have_jbig" = 'yes'; then
26204 JBIG_DELEGATE_TRUE=
26205 JBIG_DELEGATE_FALSE='#'
26206else
26207 JBIG_DELEGATE_TRUE='#'
26208 JBIG_DELEGATE_FALSE=
26209fi
26210
26211
26212
26213
26214#
26215# Check for JPEG delegate library.
26216#
26217
26218# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000026219if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026220 withval=$with_jpeg; with_jpeg=$withval
26221else
26222 with_jpeg='yes'
26223fi
26224
26225
26226if test "$with_jpeg" != 'yes'; then
26227 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26228fi
26229
26230have_jpeg='no'
26231JPEG_LIBS=''
26232if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026234$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026236$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026238$as_echo "" >&6; }
26239 failed=0
26240 passed=0
cristy8b350f62009-11-15 23:12:43 +000026241 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26242if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026243 passed=`expr $passed + 1`
26244else
26245 failed=`expr $failed + 1`
26246fi
26247
26248
cristy8b350f62009-11-15 23:12:43 +000026249 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26250if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026251 passed=`expr $passed + 1`
26252else
26253 failed=`expr $failed + 1`
26254fi
26255
26256
cristy8b350f62009-11-15 23:12:43 +000026257 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
26258if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026259 passed=`expr $passed + 1`
26260else
26261 failed=`expr $failed + 1`
26262fi
26263
26264
cristy8b350f62009-11-15 23:12:43 +000026265 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
26266if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026267 passed=`expr $passed + 1`
26268else
26269 failed=`expr $failed + 1`
26270fi
26271
26272
cristy8b350f62009-11-15 23:12:43 +000026273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000026274$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026275if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026276 $as_echo_n "(cached) " >&6
26277else
26278 ac_check_lib_save_LIBS=$LIBS
26279LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026281/* end confdefs.h. */
26282
26283/* Override any GCC internal prototype to avoid an error.
26284 Use char because int might match the return type of a GCC
26285 builtin and then its argument prototype would still apply. */
26286#ifdef __cplusplus
26287extern "C"
26288#endif
26289char jpeg_read_header ();
26290int
26291main ()
26292{
26293return jpeg_read_header ();
26294 ;
26295 return 0;
26296}
26297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026298if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026299 ac_cv_lib_jpeg_jpeg_read_header=yes
26300else
cristy8b350f62009-11-15 23:12:43 +000026301 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000026302fi
cristy8b350f62009-11-15 23:12:43 +000026303rm -f core conftest.err conftest.$ac_objext \
26304 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026305LIBS=$ac_check_lib_save_LIBS
26306fi
cristy8b350f62009-11-15 23:12:43 +000026307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000026308$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026309if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026310 passed=`expr $passed + 1`
26311else
26312 failed=`expr $failed + 1`
26313fi
26314
26315
26316# Test for compatible JPEG library
26317if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000026319$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026320if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026321 $as_echo_n "(cached) " >&6
26322else
cristy8b350f62009-11-15 23:12:43 +000026323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026324/* end confdefs.h. */
26325#include <stdio.h>
26326#include <stdlib.h>
26327#include <jpeglib.h>
26328
26329int
26330main ()
26331{
26332
26333#if JPEG_LIB_VERSION < 62
26334#error IJG JPEG library must be version 6b or newer!
26335#endif
26336return 0;
26337
26338 ;
26339 return 0;
26340}
26341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026342if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026343 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
26344else
cristy8b350f62009-11-15 23:12:43 +000026345 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000026346fi
cristy3ed852e2009-09-05 21:47:34 +000026347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26348fi
cristy8b350f62009-11-15 23:12:43 +000026349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000026350$as_echo "$ac_cv_jpeg_version_ok" >&6; }
26351fi
cristy8b350f62009-11-15 23:12:43 +000026352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026353$as_echo_n "checking if JPEG package is complete... " >&6; }
26354 if test $passed -gt 0; then
26355 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026357$as_echo "no -- some components failed test" >&6; }
26358 have_jpeg='no (failed tests)'
26359 else
26360 JPEG_LIBS='-ljpeg'
26361 LIBS="$JPEG_LIBS $LIBS"
26362
cristy8b350f62009-11-15 23:12:43 +000026363$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026364
cristy8b350f62009-11-15 23:12:43 +000026365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026366$as_echo "yes" >&6; }
26367 have_jpeg='yes'
26368 fi
26369 else
cristy8b350f62009-11-15 23:12:43 +000026370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026371$as_echo "no" >&6; }
26372 fi
26373fi
26374 if test "$have_jpeg" = 'yes'; then
26375 JPEG_DELEGATE_TRUE=
26376 JPEG_DELEGATE_FALSE='#'
26377else
26378 JPEG_DELEGATE_TRUE='#'
26379 JPEG_DELEGATE_FALSE=
26380fi
26381
26382
26383
26384
26385#
26386# Check for JPEG Version 2 delegate library.
26387#
26388
26389# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000026390if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026391 withval=$with_jp2; with_jp2=$withval
26392else
26393 with_jp2='yes'
26394fi
26395
26396
26397if test "$with_jp2" != 'yes'; then
26398 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
26399fi
26400
26401have_jp2='no'
26402JP2_LIBS=''
26403if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026405$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026407$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026409$as_echo "" >&6; }
26410 failed=0
26411 passed=0
cristy8b350f62009-11-15 23:12:43 +000026412 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
26413if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026414 passed=`expr $passed + 1`
26415else
26416 failed=`expr $failed + 1`
26417fi
26418
26419
cristy8b350f62009-11-15 23:12:43 +000026420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000026421$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026422if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026423 $as_echo_n "(cached) " >&6
26424else
26425 ac_check_lib_save_LIBS=$LIBS
26426LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026428/* end confdefs.h. */
26429
26430/* Override any GCC internal prototype to avoid an error.
26431 Use char because int might match the return type of a GCC
26432 builtin and then its argument prototype would still apply. */
26433#ifdef __cplusplus
26434extern "C"
26435#endif
26436char jas_stream_fopen ();
26437int
26438main ()
26439{
26440return jas_stream_fopen ();
26441 ;
26442 return 0;
26443}
26444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026445if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026446 ac_cv_lib_jasper_jas_stream_fopen=yes
26447else
cristy8b350f62009-11-15 23:12:43 +000026448 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000026449fi
cristy8b350f62009-11-15 23:12:43 +000026450rm -f core conftest.err conftest.$ac_objext \
26451 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026452LIBS=$ac_check_lib_save_LIBS
26453fi
cristy8b350f62009-11-15 23:12:43 +000026454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026455$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026456if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026457 passed=`expr $passed + 1`
26458else
26459 failed=`expr $failed + 1`
26460fi
26461
cristy8b350f62009-11-15 23:12:43 +000026462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026463$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
26464 if test $passed -gt 0; then
26465 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026467$as_echo "no -- some components failed test" >&6; }
26468 have_jp2='no (failed tests)'
26469 else
26470 JP2_LIBS='-ljasper'
26471 LIBS="$JP2_LIBS $LIBS"
26472
cristy8b350f62009-11-15 23:12:43 +000026473$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026474
cristy8b350f62009-11-15 23:12:43 +000026475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026476$as_echo "yes" >&6; }
26477 have_jp2='yes'
26478 fi
26479 else
cristy8b350f62009-11-15 23:12:43 +000026480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026481$as_echo "no" >&6; }
26482 fi
26483fi
26484 if test "$have_jp2" = 'yes'; then
26485 JP2_DELEGATE_TRUE=
26486 JP2_DELEGATE_FALSE='#'
26487else
26488 JP2_DELEGATE_TRUE='#'
26489 JP2_DELEGATE_FALSE=
26490fi
26491
26492
26493
26494
26495#
26496# Check for LCMS delegate library.
26497#
26498
26499# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000026500if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026501 withval=$with_lcms; with_lcms=$withval
26502else
26503 with_lcms='yes'
26504fi
26505
26506
26507if test "$with_lcms" != 'yes'; then
26508 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
26509fi
26510
26511have_lcms='no'
26512LCMS_LIBS=''
26513if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026515$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026517$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026519$as_echo "" >&6; }
26520 failed=0
26521 passed=0
26522 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000026523 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
26524if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026525 have_lcms_header='yes'
26526fi
26527
26528
26529 if test "$have_lcms_header" = 'yes'; then
26530 passed=`expr $passed + 1`
26531
cristy8b350f62009-11-15 23:12:43 +000026532$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026533
26534 else
cristy8b350f62009-11-15 23:12:43 +000026535 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
26536if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026537 have_lcms_header='yes'
26538fi
26539
26540
26541 if test "$have_lcms_header" = 'yes'; then
26542 passed=`expr $passed + 1`
26543
cristy8b350f62009-11-15 23:12:43 +000026544$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026545
26546 else
26547 failed=`expr $failed + 1`
26548 fi
26549 fi
cristy8b350f62009-11-15 23:12:43 +000026550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000026551$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026552if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026553 $as_echo_n "(cached) " >&6
26554else
26555 ac_check_lib_save_LIBS=$LIBS
26556LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026558/* end confdefs.h. */
26559
26560/* Override any GCC internal prototype to avoid an error.
26561 Use char because int might match the return type of a GCC
26562 builtin and then its argument prototype would still apply. */
26563#ifdef __cplusplus
26564extern "C"
26565#endif
26566char cmsOpenProfileFromMem ();
26567int
26568main ()
26569{
26570return cmsOpenProfileFromMem ();
26571 ;
26572 return 0;
26573}
26574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026575if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026576 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
26577else
cristy8b350f62009-11-15 23:12:43 +000026578 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000026579fi
cristy8b350f62009-11-15 23:12:43 +000026580rm -f core conftest.err conftest.$ac_objext \
26581 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026582LIBS=$ac_check_lib_save_LIBS
26583fi
cristy8b350f62009-11-15 23:12:43 +000026584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026585$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026586if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026587 passed=`expr $passed + 1`
26588else
26589 failed=`expr $failed + 1`
26590fi
26591
cristy8b350f62009-11-15 23:12:43 +000026592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026593$as_echo_n "checking if LCMS package is complete... " >&6; }
26594 if test $passed -gt 0; then
26595 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026597$as_echo "no -- some components failed test" >&6; }
26598 have_lcms='no (failed tests)'
26599 else
26600 LCMS_LIBS='-llcms'
26601 LIBS="$LCMS_LIBS $LIBS"
26602
cristy8b350f62009-11-15 23:12:43 +000026603$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026604
cristy8b350f62009-11-15 23:12:43 +000026605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026606$as_echo "yes" >&6; }
26607 have_lcms='yes'
26608 fi
26609 else
cristy8b350f62009-11-15 23:12:43 +000026610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026611$as_echo "no" >&6; }
26612 fi
26613fi
26614 if test "$have_lcms" = 'yes'; then
26615 LCMS_DELEGATE_TRUE=
26616 LCMS_DELEGATE_FALSE='#'
26617else
26618 LCMS_DELEGATE_TRUE='#'
26619 LCMS_DELEGATE_FALSE=
26620fi
26621
26622
26623
26624
26625#
26626# Check for the LQR (Liquid Rescale) delegate library.
26627#
26628
26629# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000026630if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026631 withval=$with_lqr; with_lqr=$withval
26632else
26633 with_lqr='yes'
26634fi
26635
26636
26637if test "$with_lqr" != 'yes'; then
26638 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
26639fi
26640
26641have_lqr='no'
26642LQR_CFLAGS=""
26643LQR_LIBS=""
26644LQR_PKG=""
26645if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026647$as_echo "-------------------------------------------------------------" >&6; }
26648
26649pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026651$as_echo_n "checking for LQR... " >&6; }
26652
26653if test -n "$LQR_CFLAGS"; then
26654 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
26655 elif test -n "$PKG_CONFIG"; then
26656 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026657 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026658 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26659 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26661 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026662 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
26663else
26664 pkg_failed=yes
26665fi
26666 else
26667 pkg_failed=untried
26668fi
26669if test -n "$LQR_LIBS"; then
26670 pkg_cv_LQR_LIBS="$LQR_LIBS"
26671 elif test -n "$PKG_CONFIG"; then
26672 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026673 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026674 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26675 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26677 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026678 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
26679else
26680 pkg_failed=yes
26681fi
26682 else
26683 pkg_failed=untried
26684fi
26685
26686
26687
26688if test $pkg_failed = yes; then
26689
26690if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26691 _pkg_short_errors_supported=yes
26692else
26693 _pkg_short_errors_supported=no
26694fi
26695 if test $_pkg_short_errors_supported = yes; then
26696 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
26697 else
26698 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
26699 fi
26700 # Put the nasty error message in config.log where it belongs
26701 echo "$LQR_PKG_ERRORS" >&5
26702
cristy8b350f62009-11-15 23:12:43 +000026703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026704$as_echo "no" >&6; }
26705 have_lqr=no
26706elif test $pkg_failed = untried; then
26707 have_lqr=no
26708else
26709 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
26710 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026712$as_echo "yes" >&6; }
26713 have_lqr=yes
26714fi
cristy8b350f62009-11-15 23:12:43 +000026715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026716$as_echo "" >&6; }
26717fi
26718
26719if test "$have_lqr" = 'yes'; then
26720
cristy8b350f62009-11-15 23:12:43 +000026721$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026722
26723 CFLAGS="$LQR_CFLAGS $CFLAGS"
26724fi
26725
26726 if test "$have_lqr" = 'yes'; then
26727 LQR_DELEGATE_TRUE=
26728 LQR_DELEGATE_FALSE='#'
26729else
26730 LQR_DELEGATE_TRUE='#'
26731 LQR_DELEGATE_FALSE=
26732fi
26733
26734
26735
26736
26737
26738#
26739# Check for the OpenEXR delegate library.
26740#
26741
26742# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000026743if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026744 withval=$with_openexr; with_openexr=$withval
26745else
26746 with_openexr='yes'
26747fi
26748
26749
26750if test "$with_openexr" != 'yes'; then
26751 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
26752fi
26753
26754have_openexr='no'
26755OPENEXR_CFLAGS=""
26756OPENEXR_LIBS=""
26757OPENEXR_PKG=""
26758if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026760$as_echo "-------------------------------------------------------------" >&6; }
26761
26762pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026764$as_echo_n "checking for OPENEXR... " >&6; }
26765
26766if test -n "$OPENEXR_CFLAGS"; then
26767 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
26768 elif test -n "$PKG_CONFIG"; then
26769 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026770 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026771 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26772 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26774 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026775 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
26776else
26777 pkg_failed=yes
26778fi
26779 else
26780 pkg_failed=untried
26781fi
26782if test -n "$OPENEXR_LIBS"; then
26783 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
26784 elif test -n "$PKG_CONFIG"; then
26785 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026786 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026787 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26788 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26790 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026791 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
26792else
26793 pkg_failed=yes
26794fi
26795 else
26796 pkg_failed=untried
26797fi
26798
26799
26800
26801if test $pkg_failed = yes; then
26802
26803if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26804 _pkg_short_errors_supported=yes
26805else
26806 _pkg_short_errors_supported=no
26807fi
26808 if test $_pkg_short_errors_supported = yes; then
26809 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
26810 else
26811 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
26812 fi
26813 # Put the nasty error message in config.log where it belongs
26814 echo "$OPENEXR_PKG_ERRORS" >&5
26815
cristy8b350f62009-11-15 23:12:43 +000026816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026817$as_echo "no" >&6; }
26818 have_openexr=no
26819elif test $pkg_failed = untried; then
26820 have_openexr=no
26821else
26822 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
26823 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026825$as_echo "yes" >&6; }
26826 have_openexr=yes
26827fi
cristy8b350f62009-11-15 23:12:43 +000026828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026829$as_echo "" >&6; }
26830fi
26831
26832if test "$have_openexr" = 'yes'; then
26833
cristy8b350f62009-11-15 23:12:43 +000026834$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026835
26836 if test "$with_modules" = 'no'; then
26837 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
26838 fi
26839fi
26840
26841 if test "$have_openexr" = 'yes'; then
26842 OPENEXR_DELEGATE_TRUE=
26843 OPENEXR_DELEGATE_FALSE='#'
26844else
26845 OPENEXR_DELEGATE_TRUE='#'
26846 OPENEXR_DELEGATE_FALSE=
26847fi
26848
26849
26850
26851
26852
26853#
26854# Check for PNG delegate library.
26855#
26856
26857# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000026858if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026859 withval=$with_png; with_png=$withval
26860else
26861 with_png='yes'
26862fi
26863
26864
26865if test "$with_png" != 'yes'; then
26866 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
26867fi
26868
26869have_png='no'
26870PNG_LIBS=''
26871if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026873$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026875$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026877$as_echo "" >&6; }
26878 failed=0
26879 passed=0
cristy8b350f62009-11-15 23:12:43 +000026880 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
26881if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026882 passed=`expr $passed + 1`
26883else
26884 failed=`expr $failed + 1`
26885fi
26886
26887
cristy8b350f62009-11-15 23:12:43 +000026888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000026889$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026890if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026891 $as_echo_n "(cached) " >&6
26892else
26893 ac_check_lib_save_LIBS=$LIBS
26894LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026896/* end confdefs.h. */
26897
26898/* Override any GCC internal prototype to avoid an error.
26899 Use char because int might match the return type of a GCC
26900 builtin and then its argument prototype would still apply. */
26901#ifdef __cplusplus
26902extern "C"
26903#endif
26904char png_get_io_ptr ();
26905int
26906main ()
26907{
26908return png_get_io_ptr ();
26909 ;
26910 return 0;
26911}
26912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026913if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026914 ac_cv_lib_png_png_get_io_ptr=yes
26915else
cristy8b350f62009-11-15 23:12:43 +000026916 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000026917fi
cristy8b350f62009-11-15 23:12:43 +000026918rm -f core conftest.err conftest.$ac_objext \
26919 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026920LIBS=$ac_check_lib_save_LIBS
26921fi
cristy8b350f62009-11-15 23:12:43 +000026922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026924if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026925 passed=`expr $passed + 1`
26926else
26927 failed=`expr $failed + 1`
26928fi
26929
cristy8b350f62009-11-15 23:12:43 +000026930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026931$as_echo_n "checking if PNG package is complete... " >&6; }
26932 if test $passed -gt 0; then
26933 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026935$as_echo "no -- some components failed test" >&6; }
26936 have_png='no (failed tests)'
26937 else
26938 PNG_LIBS='-lpng'
26939 LIBS="$PNG_LIBS $LIBS"
26940
cristy8b350f62009-11-15 23:12:43 +000026941$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026942
cristy8b350f62009-11-15 23:12:43 +000026943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026944$as_echo "yes" >&6; }
26945 have_png='yes'
26946 fi
26947 else
cristy8b350f62009-11-15 23:12:43 +000026948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026949$as_echo "no" >&6; }
26950 fi
26951fi
26952 if test "$have_png" = 'yes'; then
26953 PNG_DELEGATE_TRUE=
26954 PNG_DELEGATE_FALSE='#'
26955else
26956 PNG_DELEGATE_TRUE='#'
26957 PNG_DELEGATE_FALSE=
26958fi
26959
26960
26961
26962
26963#
26964# Check for RSVG delegate library.
26965#
26966
26967# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000026968if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026969 withval=$with_rsvg; with_rsvg=$withval
26970else
26971 with_rsvg=$have_x
26972fi
26973
26974
26975if test "$with_rsvg" != 'yes'; then
26976 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
26977fi
26978
26979have_rsvg='no'
26980have_cairo='no'
26981RSVG_CFLAGS=""
26982RSVG_LIBS=""
26983RSVG_PKG=""
26984if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026986$as_echo "-------------------------------------------------------------" >&6; }
26987
26988pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026990$as_echo_n "checking for RSVG... " >&6; }
26991
26992if test -n "$RSVG_CFLAGS"; then
26993 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
26994 elif test -n "$PKG_CONFIG"; then
26995 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026996 { { $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 +000026997 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
26998 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27000 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027001 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27002else
27003 pkg_failed=yes
27004fi
27005 else
27006 pkg_failed=untried
27007fi
27008if test -n "$RSVG_LIBS"; then
27009 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
27010 elif test -n "$PKG_CONFIG"; then
27011 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027012 { { $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 +000027013 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27014 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27016 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027017 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27018else
27019 pkg_failed=yes
27020fi
27021 else
27022 pkg_failed=untried
27023fi
27024
27025
27026
27027if test $pkg_failed = yes; then
27028
27029if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27030 _pkg_short_errors_supported=yes
27031else
27032 _pkg_short_errors_supported=no
27033fi
27034 if test $_pkg_short_errors_supported = yes; then
27035 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27036 else
27037 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27038 fi
27039 # Put the nasty error message in config.log where it belongs
27040 echo "$RSVG_PKG_ERRORS" >&5
27041
cristy8b350f62009-11-15 23:12:43 +000027042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027043$as_echo "no" >&6; }
27044 have_rsvg=no
27045elif test $pkg_failed = untried; then
27046 have_rsvg=no
27047else
27048 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
27049 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027051$as_echo "yes" >&6; }
27052 have_rsvg=yes
27053fi
cristy8b350f62009-11-15 23:12:43 +000027054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027055$as_echo "" >&6; }
27056
27057pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027059$as_echo_n "checking for CAIRO_SVG... " >&6; }
27060
27061if test -n "$CAIRO_SVG_CFLAGS"; then
27062 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
27063 elif test -n "$PKG_CONFIG"; then
27064 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027065 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027066 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27067 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27069 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027070 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
27071else
27072 pkg_failed=yes
27073fi
27074 else
27075 pkg_failed=untried
27076fi
27077if test -n "$CAIRO_SVG_LIBS"; then
27078 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
27079 elif test -n "$PKG_CONFIG"; then
27080 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027081 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027082 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27083 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27085 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027086 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
27087else
27088 pkg_failed=yes
27089fi
27090 else
27091 pkg_failed=untried
27092fi
27093
27094
27095
27096if test $pkg_failed = yes; then
27097
27098if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27099 _pkg_short_errors_supported=yes
27100else
27101 _pkg_short_errors_supported=no
27102fi
27103 if test $_pkg_short_errors_supported = yes; then
27104 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
27105 else
27106 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
27107 fi
27108 # Put the nasty error message in config.log where it belongs
27109 echo "$CAIRO_SVG_PKG_ERRORS" >&5
27110
cristy8b350f62009-11-15 23:12:43 +000027111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027112$as_echo "no" >&6; }
27113 have_cairo=no
27114elif test $pkg_failed = untried; then
27115 have_cairo=no
27116else
27117 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
27118 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027120$as_echo "yes" >&6; }
27121 have_cairo=yes
27122fi
cristy8b350f62009-11-15 23:12:43 +000027123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027124$as_echo "" >&6; }
27125fi
27126
27127if test "$have_rsvg" = 'yes'; then
27128
cristy8b350f62009-11-15 23:12:43 +000027129$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027130
27131 if test "$with_modules" = 'no'; then
27132 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
27133 fi
27134fi
27135
27136if test "$have_cairo" = 'yes'; then
27137
cristy8b350f62009-11-15 23:12:43 +000027138$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027139
27140 if test "$with_modules" = 'no'; then
27141 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
27142 fi
27143fi
27144
27145 if test "$have_rsvg" = 'yes'; then
27146 RSVG_DELEGATE_TRUE=
27147 RSVG_DELEGATE_FALSE='#'
27148else
27149 RSVG_DELEGATE_TRUE='#'
27150 RSVG_DELEGATE_FALSE=
27151fi
27152
27153 if test "$have_cairo" = 'yes'; then
27154 CAIRO_DELEGATE_TRUE=
27155 CAIRO_DELEGATE_FALSE='#'
27156else
27157 CAIRO_DELEGATE_TRUE='#'
27158 CAIRO_DELEGATE_FALSE=
27159fi
27160
27161
27162
27163
27164
27165#
27166# Check for TIFF delegate library.
27167#
27168
27169# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000027170if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027171 withval=$with_tiff; with_tiff=$withval
27172else
27173 with_tiff='yes'
27174fi
27175
27176
27177if test "$with_tiff" != 'yes'; then
27178 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27179fi
27180
27181have_tiff='no'
27182TIFF_LIBS=''
27183if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027185$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027187$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027189$as_echo "" >&6; }
27190 failed=0
27191 passed=0
cristy8b350f62009-11-15 23:12:43 +000027192 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27193if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027194 passed=`expr $passed + 1`
27195else
27196 failed=`expr $failed + 1`
27197fi
27198
27199
cristy8b350f62009-11-15 23:12:43 +000027200 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27201if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027202 passed=`expr $passed + 1`
27203else
27204 failed=`expr $failed + 1`
27205fi
27206
27207
cristy8b350f62009-11-15 23:12:43 +000027208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027209$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027210if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027211 $as_echo_n "(cached) " >&6
27212else
27213 ac_check_lib_save_LIBS=$LIBS
27214LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027216/* end confdefs.h. */
27217
27218/* Override any GCC internal prototype to avoid an error.
27219 Use char because int might match the return type of a GCC
27220 builtin and then its argument prototype would still apply. */
27221#ifdef __cplusplus
27222extern "C"
27223#endif
27224char TIFFOpen ();
27225int
27226main ()
27227{
27228return TIFFOpen ();
27229 ;
27230 return 0;
27231}
27232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027233if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027234 ac_cv_lib_tiff_TIFFOpen=yes
27235else
cristy8b350f62009-11-15 23:12:43 +000027236 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027237fi
cristy8b350f62009-11-15 23:12:43 +000027238rm -f core conftest.err conftest.$ac_objext \
27239 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027240LIBS=$ac_check_lib_save_LIBS
27241fi
cristy8b350f62009-11-15 23:12:43 +000027242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027243$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027244if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027245 passed=`expr $passed + 1`
27246else
27247 failed=`expr $failed + 1`
27248fi
27249
cristy8b350f62009-11-15 23:12:43 +000027250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027251$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027252if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027253 $as_echo_n "(cached) " >&6
27254else
27255 ac_check_lib_save_LIBS=$LIBS
27256LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027258/* end confdefs.h. */
27259
27260/* Override any GCC internal prototype to avoid an error.
27261 Use char because int might match the return type of a GCC
27262 builtin and then its argument prototype would still apply. */
27263#ifdef __cplusplus
27264extern "C"
27265#endif
27266char TIFFClientOpen ();
27267int
27268main ()
27269{
27270return TIFFClientOpen ();
27271 ;
27272 return 0;
27273}
27274_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027275if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027276 ac_cv_lib_tiff_TIFFClientOpen=yes
27277else
cristy8b350f62009-11-15 23:12:43 +000027278 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027279fi
cristy8b350f62009-11-15 23:12:43 +000027280rm -f core conftest.err conftest.$ac_objext \
27281 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027282LIBS=$ac_check_lib_save_LIBS
27283fi
cristy8b350f62009-11-15 23:12:43 +000027284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027285$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027286if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027287 passed=`expr $passed + 1`
27288else
27289 failed=`expr $failed + 1`
27290fi
27291
cristy8b350f62009-11-15 23:12:43 +000027292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027293$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027294if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027295 $as_echo_n "(cached) " >&6
27296else
27297 ac_check_lib_save_LIBS=$LIBS
27298LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027300/* end confdefs.h. */
27301
27302/* Override any GCC internal prototype to avoid an error.
27303 Use char because int might match the return type of a GCC
27304 builtin and then its argument prototype would still apply. */
27305#ifdef __cplusplus
27306extern "C"
27307#endif
27308char TIFFIsByteSwapped ();
27309int
27310main ()
27311{
27312return TIFFIsByteSwapped ();
27313 ;
27314 return 0;
27315}
27316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027317if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027318 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
27319else
cristy8b350f62009-11-15 23:12:43 +000027320 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000027321fi
cristy8b350f62009-11-15 23:12:43 +000027322rm -f core conftest.err conftest.$ac_objext \
27323 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027324LIBS=$ac_check_lib_save_LIBS
27325fi
cristy8b350f62009-11-15 23:12:43 +000027326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000027327$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027328if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027329 passed=`expr $passed + 1`
27330else
27331 failed=`expr $failed + 1`
27332fi
27333
cristy8b350f62009-11-15 23:12:43 +000027334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027335$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027336if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027337 $as_echo_n "(cached) " >&6
27338else
27339 ac_check_lib_save_LIBS=$LIBS
27340LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027342/* end confdefs.h. */
27343
27344/* Override any GCC internal prototype to avoid an error.
27345 Use char because int might match the return type of a GCC
27346 builtin and then its argument prototype would still apply. */
27347#ifdef __cplusplus
27348extern "C"
27349#endif
27350char TIFFReadRGBATile ();
27351int
27352main ()
27353{
27354return TIFFReadRGBATile ();
27355 ;
27356 return 0;
27357}
27358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027359if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027360 ac_cv_lib_tiff_TIFFReadRGBATile=yes
27361else
cristy8b350f62009-11-15 23:12:43 +000027362 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000027363fi
cristy8b350f62009-11-15 23:12:43 +000027364rm -f core conftest.err conftest.$ac_objext \
27365 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027366LIBS=$ac_check_lib_save_LIBS
27367fi
cristy8b350f62009-11-15 23:12:43 +000027368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000027369$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027370if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027371 passed=`expr $passed + 1`
27372else
27373 failed=`expr $failed + 1`
27374fi
27375
cristy8b350f62009-11-15 23:12:43 +000027376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027377$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027378if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027379 $as_echo_n "(cached) " >&6
27380else
27381 ac_check_lib_save_LIBS=$LIBS
27382LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027384/* end confdefs.h. */
27385
27386/* Override any GCC internal prototype to avoid an error.
27387 Use char because int might match the return type of a GCC
27388 builtin and then its argument prototype would still apply. */
27389#ifdef __cplusplus
27390extern "C"
27391#endif
27392char TIFFReadRGBAStrip ();
27393int
27394main ()
27395{
27396return TIFFReadRGBAStrip ();
27397 ;
27398 return 0;
27399}
27400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027401if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027402 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
27403else
cristy8b350f62009-11-15 23:12:43 +000027404 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000027405fi
cristy8b350f62009-11-15 23:12:43 +000027406rm -f core conftest.err conftest.$ac_objext \
27407 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027408LIBS=$ac_check_lib_save_LIBS
27409fi
cristy8b350f62009-11-15 23:12:43 +000027410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000027411$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027412if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027413 passed=`expr $passed + 1`
27414else
27415 failed=`expr $failed + 1`
27416fi
27417
cristy8b350f62009-11-15 23:12:43 +000027418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027419$as_echo_n "checking if TIFF package is complete... " >&6; }
27420 if test $passed -gt 0; then
27421 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027423$as_echo "no -- some components failed test" >&6; }
27424 have_tiff='no (failed tests)'
27425 else
27426 TIFF_LIBS='-ltiff'
27427 LIBS="$TIFF_LIBS $LIBS"
27428
cristy8b350f62009-11-15 23:12:43 +000027429$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027430
cristy8b350f62009-11-15 23:12:43 +000027431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027432$as_echo "yes" >&6; }
27433 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000027434 for ac_header in tiffconf.h
27435do :
27436 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
27437if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027438 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027439#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000027440_ACEOF
27441
27442fi
27443
27444done
27445
cristy8b350f62009-11-15 23:12:43 +000027446 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000027447 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
27448 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000027449do :
27450 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27451ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27452eval as_val=\$$as_ac_var
27453 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027454 cat >>confdefs.h <<_ACEOF
27455#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27456_ACEOF
27457
27458fi
27459done
27460
27461 fi
27462 else
cristy8b350f62009-11-15 23:12:43 +000027463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027464$as_echo "no" >&6; }
27465 fi
27466fi
27467 if test "$have_tiff" = 'yes'; then
27468 TIFF_DELEGATE_TRUE=
27469 TIFF_DELEGATE_FALSE='#'
27470else
27471 TIFF_DELEGATE_TRUE='#'
27472 TIFF_DELEGATE_FALSE=
27473fi
27474
27475
27476
27477
27478#
27479# Set Windows font directory.
27480#
27481
27482# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027483if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027484 withval=$with_windows_font_dir; with_windows_font_dir=$withval
27485else
27486 with_windows_font_dir=''
27487fi
27488
27489if test "$with_windows_font_dir" != '' ; then
27490 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
27491fi
27492
27493
27494#
27495# Check for WMF delegate library.
27496#
27497
27498# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000027499if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027500 withval=$with_wmf; with_wmf=$withval
27501else
27502 with_wmf=$with_modules
27503fi
27504
27505
27506if test "$with_wmf" != 'yes'; then
27507 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
27508fi
27509
27510have_wmf='no'
27511WMF_LIBS=''
27512WMF_LIBS_DEPS=''
27513OLIBS="$LIBS"
27514if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027516$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027518$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027520$as_echo "" >&6; }
27521 have_libwmf='no'
27522 have_libwmflite='no'
27523 have_libwmf_ipa_h='no'
27524
cristy8b350f62009-11-15 23:12:43 +000027525 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
27526"
27527if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027528 have_libwmf_ipa_h='yes'
27529fi
27530
27531
27532 if test "$have_libwmf_ipa_h" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
cristy3ed852e2009-09-05 21:47:34 +000027534$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027535if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027536 $as_echo_n "(cached) " >&6
27537else
27538 ac_check_lib_save_LIBS=$LIBS
27539LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027541/* end confdefs.h. */
27542
27543/* Override any GCC internal prototype to avoid an error.
27544 Use char because int might match the return type of a GCC
27545 builtin and then its argument prototype would still apply. */
27546#ifdef __cplusplus
27547extern "C"
27548#endif
27549char wmf_lite_create ();
27550int
27551main ()
27552{
27553return wmf_lite_create ();
27554 ;
27555 return 0;
27556}
27557_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027558if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027559 ac_cv_lib_wmflite_wmf_lite_create=yes
27560else
cristy8b350f62009-11-15 23:12:43 +000027561 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000027562fi
cristy8b350f62009-11-15 23:12:43 +000027563rm -f core conftest.err conftest.$ac_objext \
27564 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027565LIBS=$ac_check_lib_save_LIBS
27566fi
cristy8b350f62009-11-15 23:12:43 +000027567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027568$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027569if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027570 have_libwmflite='yes'
27571fi
27572
27573 if test "$have_libwmflite" = 'yes'; then
27574
cristy8b350f62009-11-15 23:12:43 +000027575$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027576
27577 WMF_LIBS='-lwmflite'
27578 LIBS="$WMF_LIBS $LIBS"
27579 have_wmf='yes'
27580 else
27581 WMF_LIBS_DEPS=''
27582 WMF_CONFIG_LIBS=`libwmf-config --libs`
27583 for lib in xml2 expat freetype jpeg png z; do
27584 testlib="-l${lib}"
27585 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
27586 done
cristy8b350f62009-11-15 23:12:43 +000027587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
cristy3ed852e2009-09-05 21:47:34 +000027588$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027589if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027590 $as_echo_n "(cached) " >&6
27591else
27592 ac_check_lib_save_LIBS=$LIBS
27593LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027595/* end confdefs.h. */
27596
27597/* Override any GCC internal prototype to avoid an error.
27598 Use char because int might match the return type of a GCC
27599 builtin and then its argument prototype would still apply. */
27600#ifdef __cplusplus
27601extern "C"
27602#endif
27603char wmf_api_create ();
27604int
27605main ()
27606{
27607return wmf_api_create ();
27608 ;
27609 return 0;
27610}
27611_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027612if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027613 ac_cv_lib_wmf_wmf_api_create=yes
27614else
cristy8b350f62009-11-15 23:12:43 +000027615 ac_cv_lib_wmf_wmf_api_create=no
cristy3ed852e2009-09-05 21:47:34 +000027616fi
cristy8b350f62009-11-15 23:12:43 +000027617rm -f core conftest.err conftest.$ac_objext \
27618 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027619LIBS=$ac_check_lib_save_LIBS
27620fi
cristy8b350f62009-11-15 23:12:43 +000027621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027622$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027623if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027624 have_libwmf='yes'
27625fi
27626
27627 if test "$have_libwmf" = 'yes'; then
27628
cristy8b350f62009-11-15 23:12:43 +000027629$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027630
27631 WMF_LIBS='-lwmf'
27632 LIBS="$WMF_LIBS $LIBS"
27633 have_wmf='yes'
27634 else
cristy8b350f62009-11-15 23:12:43 +000027635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027636$as_echo "no -- some components failed test" >&6; }
27637 have_wmf='no (failed tests)'
27638 have_wmflite='no (failed tests)'
27639 LIBS="$OLIBS"
27640 WMF_LIBS=''
27641 fi
27642 fi
27643 fi
cristy8b350f62009-11-15 23:12:43 +000027644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027645$as_echo_n "checking if WMF package is complete... " >&6; }
27646 if test "$have_wmf" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027648$as_echo "yes" >&6; }
27649 else
cristy8b350f62009-11-15 23:12:43 +000027650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027651$as_echo "no" >&6; }
27652 fi
27653fi
27654 if test "$have_wmf" = 'yes'; then
27655 WMF_DELEGATE_TRUE=
27656 WMF_DELEGATE_FALSE='#'
27657else
27658 WMF_DELEGATE_TRUE='#'
27659 WMF_DELEGATE_FALSE=
27660fi
27661
27662
27663
27664
27665
27666#
27667# Check for XML delegate library.
27668#
27669
27670# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000027671if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027672 withval=$with_xml; with_xml=$withval
27673else
27674 with_xml=$have_x
27675fi
27676
27677
27678if test "$with_xml" != 'yes' ; then
27679 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
27680fi
27681
27682have_xml='no'
27683XML_LIBS=''
27684if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027686$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000027688$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027690$as_echo "" >&6; }
27691 PERSIST_LDFLAGS=$LDFLAGS
27692 PERSIST_CPPFLAGS=$CPPFLAGS
27693 xml2_config=''
27694 for ac_prog in xml2-config
27695do
27696 # Extract the first word of "$ac_prog", so it can be a program name with args.
27697set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027699$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027700if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027701 $as_echo_n "(cached) " >&6
27702else
27703 if test -n "$xml2_config"; then
27704 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
27705else
27706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27707for as_dir in $PATH
27708do
27709 IFS=$as_save_IFS
27710 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027711 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27713 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027715 break 2
27716 fi
27717done
cristy8b350f62009-11-15 23:12:43 +000027718 done
cristy3ed852e2009-09-05 21:47:34 +000027719IFS=$as_save_IFS
27720
27721fi
27722fi
27723xml2_config=$ac_cv_prog_xml2_config
27724if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000027725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027726$as_echo "$xml2_config" >&6; }
27727else
cristy8b350f62009-11-15 23:12:43 +000027728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027729$as_echo "no" >&6; }
27730fi
27731
27732
27733 test -n "$xml2_config" && break
27734done
27735 if test -n "$xml2_config"; then
27736 # Debian installs libxml headers under /usr/include/libxml2/libxml with
27737 # the shared library installed under /usr/lib, whereas the package
27738 # installs itself under $prefix/libxml and $prefix/lib.
27739 xml2_prefix=`xml2-config --prefix`
27740 if test -d "${xml2_prefix}/include/libxml2"; then
27741 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
27742 fi
27743 if test "${xml2_prefix}" != '/usr'; then
27744 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
27745 fi
27746 fi
27747 failed=0
27748 passed=0
cristy8b350f62009-11-15 23:12:43 +000027749 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
27750if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027751 passed=`expr $passed + 1`
27752else
27753 failed=`expr $failed + 1`
27754fi
27755
27756
cristy8b350f62009-11-15 23:12:43 +000027757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027758$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027759if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027760 $as_echo_n "(cached) " >&6
27761else
27762 ac_check_lib_save_LIBS=$LIBS
27763LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027765/* end confdefs.h. */
27766
27767/* Override any GCC internal prototype to avoid an error.
27768 Use char because int might match the return type of a GCC
27769 builtin and then its argument prototype would still apply. */
27770#ifdef __cplusplus
27771extern "C"
27772#endif
27773char xmlParseExternalEntity ();
27774int
27775main ()
27776{
27777return xmlParseExternalEntity ();
27778 ;
27779 return 0;
27780}
27781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027782if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027783 ac_cv_lib_xml2_xmlParseExternalEntity=yes
27784else
cristy8b350f62009-11-15 23:12:43 +000027785 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000027786fi
cristy8b350f62009-11-15 23:12:43 +000027787rm -f core conftest.err conftest.$ac_objext \
27788 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027789LIBS=$ac_check_lib_save_LIBS
27790fi
cristy8b350f62009-11-15 23:12:43 +000027791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000027792$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027793if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027794 passed=`expr $passed + 1`
27795else
27796 failed=`expr $failed + 1`
27797fi
27798
cristy8b350f62009-11-15 23:12:43 +000027799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027800$as_echo_n "checking if XML package is complete... " >&6; }
27801 if test $passed -gt 0; then
27802 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027804$as_echo "no -- some components failed test" >&6; }
27805 have_xml='no (failed tests)'
27806 LDFLAGS="$PERSIST_LDFLAGS"
27807 CPPFLAGS="$PERSIST_CPPFLAGS"
27808 else
27809 XML_LIBS='-lxml2'
27810 LIBS="$XML_LIBS $LIBS"
27811
cristy8b350f62009-11-15 23:12:43 +000027812$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027813
cristy8b350f62009-11-15 23:12:43 +000027814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027815$as_echo "yes" >&6; }
27816 have_xml='yes'
27817 fi
27818 else
cristy8b350f62009-11-15 23:12:43 +000027819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027820$as_echo "no" >&6; }
27821 fi
27822fi
27823 if test "$have_xml" = 'yes'; then
27824 XML_DELEGATE_TRUE=
27825 XML_DELEGATE_FALSE='#'
27826else
27827 XML_DELEGATE_TRUE='#'
27828 XML_DELEGATE_FALSE=
27829fi
27830
27831
27832
27833
27834# Substitute compiler name to build/link PerlMagick
27835#
27836
27837
27838#
27839# Configure install Paths
27840#
27841
27842# Subdirectory under lib to place ImageMagick lib files
27843LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27844
27845cat >>confdefs.h <<_ACEOF
27846#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
27847_ACEOF
27848
27849
27850# Path to ImageMagick bin directory
27851EXECUTABLE_PATH="${BIN_DIR}"
27852DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
27853case "${build_os}" in
27854 mingw* )
27855 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
27856 ;;
27857esac
27858
27859cat >>confdefs.h <<_ACEOF
27860#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
27861_ACEOF
27862
27863
27864
27865# Path to ImageMagick lib
27866LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
27867DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
27868case "${build_os}" in
27869 mingw* )
27870 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
27871 ;;
27872esac
27873
27874cat >>confdefs.h <<_ACEOF
27875#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
27876_ACEOF
27877
27878
27879
27880# Subdirectory under lib to place ImageMagick configuration files
27881CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27882
27883cat >>confdefs.h <<_ACEOF
27884#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
27885_ACEOF
27886
27887CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27888DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27889case "${build_os}" in
27890 mingw* )
27891 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
27892 ;;
27893esac
27894
27895cat >>confdefs.h <<_ACEOF
27896#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
27897_ACEOF
27898
27899
27900
27901#
27902# Subdirectory under lib to place ImageMagick coder module files
27903CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
27904
27905cat >>confdefs.h <<_ACEOF
27906#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
27907_ACEOF
27908
27909CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
27910DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
27911case "${build_os}" in
27912 mingw* )
27913 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
27914 ;;
27915esac
27916
27917cat >>confdefs.h <<_ACEOF
27918#define CODER_PATH "$DEFINE_CODER_PATH"
27919_ACEOF
27920
27921
27922
27923#
27924# Subdirectory under lib to place ImageMagick filter module files
27925FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
27926
27927cat >>confdefs.h <<_ACEOF
27928#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
27929_ACEOF
27930
27931FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
27932DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
27933case "${build_os}" in
27934 mingw* )
27935 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
27936 ;;
27937esac
27938
27939cat >>confdefs.h <<_ACEOF
27940#define FILTER_PATH "$DEFINE_FILTER_PATH"
27941_ACEOF
27942
27943
27944
27945#
27946# Path to ImageMagick documentation files
27947DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27948DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
27949DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
27950case "${build_os}" in
27951 mingw* )
27952 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
27953 ;;
27954esac
27955
27956cat >>confdefs.h <<_ACEOF
27957#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
27958_ACEOF
27959
27960
27961
27962#
27963# Path to ImageMagick share files
27964SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27965SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
27966DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
27967case "${build_os}" in
27968 mingw* )
27969 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
27970 ;;
27971esac
27972
27973cat >>confdefs.h <<_ACEOF
27974#define SHARE_PATH "$DEFINE_SHARE_PATH"
27975_ACEOF
27976
27977
27978
27979# Subdirectory under share to place ImageMagick configuration files
27980SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27981
27982cat >>confdefs.h <<_ACEOF
27983#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
27984_ACEOF
27985
27986SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
27987DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
27988case "${build_os}" in
27989 mingw* )
27990 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
27991 ;;
27992esac
27993
27994cat >>confdefs.h <<_ACEOF
27995#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
27996_ACEOF
27997
27998
27999
28000#
28001# program_transform_name is formed for use in a Makefile, so create a
28002# modified version for use in a shell script.
28003configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28004
28005# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000028006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028007$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028009$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028011$as_echo "" >&6; }
28012AutotraceDecodeDelegateDefault='autotrace'
28013AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000028014BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000028015BZIPDelegateDefault='bzip2'
28016BrowseDelegateDefault='xdg-open'
28017CGMDecodeDelegateDefault='ralcgm'
28018CatDelegateDefault='cat'
28019DNGDecodeDelegateDefault='ufraw-batch'
28020GVCDecodeDelegateDefault='dot'
28021DVIDecodeDelegateDefault='dvips'
28022EchoDelegateDefault='echo'
28023EditorDelegateDefault='xterm'
28024FIGDecodeDelegateDefault='fig2dev'
28025ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
28026DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
28027MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
28028GnuplotDecodeDelegateDefault='gnuplot'
28029HDRDecodeDelegateDefault='ra_pfm'
28030HPGLDecodeDelegateDefault='hp2xx'
28031HTMLDecodeDelegateDefault='html2ps'
28032ILBMDecodeDelegateDefault='ilbmtoppm'
28033ILBMEncodeDelegateDefault='ppmtoilbm'
28034LPDelegateDefault='lp'
28035LPRDelegateDefault='lpr'
28036LZWDecodeDelegateDefault='uncompress'
28037LZWEncodeDelegateDefault='compress'
28038LaunchDelegateDefault='gimp'
28039MANDelegateDefault='groff'
28040MPEGDecodeDelegateDefault='ffmpeg'
28041MPEGEncodeDelegateDefault='ffmpeg'
28042MVDelegateDefault='mv'
28043PCLDelegateDefault='pcl6'
28044PGPDecodeDelegateDefault='pgpv'
28045POVDelegateDefault='povray'
28046if test "$native_win32_build" = 'yes'; then
28047 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000028048elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028049 PSDelegateDefault='gsc'
28050else
28051 PSDelegateDefault='gs'
28052fi
28053RLEEncodeDelegateDefault='rawtorle'
28054RMDelegateDefault='rm'
28055SCANDecodeDelegateDefault='scanimage'
28056TXTDelegateDefault='enscript'
28057WMFDecodeDelegateDefault='wmf2eps'
28058WWWDecodeDelegateDefault='curl'
28059XPSDelegateDefault='gxps'
28060ZipDelegateDefault='gzip'
28061
28062# Search for delegates
28063# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
28064set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028066$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028067if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028068 $as_echo_n "(cached) " >&6
28069else
28070 case $AutotraceDecodeDelegate in
28071 [\\/]* | ?:[\\/]*)
28072 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
28073 ;;
28074 *)
28075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28076for as_dir in $PATH
28077do
28078 IFS=$as_save_IFS
28079 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028080 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28082 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028084 break 2
28085 fi
28086done
cristy8b350f62009-11-15 23:12:43 +000028087 done
cristy3ed852e2009-09-05 21:47:34 +000028088IFS=$as_save_IFS
28089
28090 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
28091 ;;
28092esac
28093fi
28094AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
28095if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028097$as_echo "$AutotraceDecodeDelegate" >&6; }
28098else
cristy8b350f62009-11-15 23:12:43 +000028099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028100$as_echo "no" >&6; }
28101fi
28102
28103
28104# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
28105set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028107$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028108if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028109 $as_echo_n "(cached) " >&6
28110else
28111 case $AVIDecodeDelegate in
28112 [\\/]* | ?:[\\/]*)
28113 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
28114 ;;
28115 *)
28116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28117for as_dir in $PATH
28118do
28119 IFS=$as_save_IFS
28120 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028121 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28123 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028125 break 2
28126 fi
28127done
cristy8b350f62009-11-15 23:12:43 +000028128 done
cristy3ed852e2009-09-05 21:47:34 +000028129IFS=$as_save_IFS
28130
28131 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
28132 ;;
28133esac
28134fi
28135AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
28136if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028138$as_echo "$AVIDecodeDelegate" >&6; }
28139else
cristy8b350f62009-11-15 23:12:43 +000028140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028141$as_echo "no" >&6; }
28142fi
28143
28144
28145# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
28146set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028148$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028149if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028150 $as_echo_n "(cached) " >&6
28151else
28152 case $BlenderDecodeDelegate in
28153 [\\/]* | ?:[\\/]*)
28154 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
28155 ;;
28156 *)
28157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28158for as_dir in $PATH
28159do
28160 IFS=$as_save_IFS
28161 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028162 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28164 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028166 break 2
28167 fi
28168done
cristy8b350f62009-11-15 23:12:43 +000028169 done
cristy3ed852e2009-09-05 21:47:34 +000028170IFS=$as_save_IFS
28171
28172 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28173 ;;
28174esac
28175fi
28176BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28177if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028179$as_echo "$BlenderDecodeDelegate" >&6; }
28180else
cristy8b350f62009-11-15 23:12:43 +000028181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028182$as_echo "no" >&6; }
28183fi
28184
28185
28186# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28187set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028189$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028190if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028191 $as_echo_n "(cached) " >&6
28192else
28193 case $BZIPDelegate in
28194 [\\/]* | ?:[\\/]*)
28195 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28196 ;;
28197 *)
28198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28199for as_dir in $PATH
28200do
28201 IFS=$as_save_IFS
28202 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028203 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28205 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028207 break 2
28208 fi
28209done
cristy8b350f62009-11-15 23:12:43 +000028210 done
cristy3ed852e2009-09-05 21:47:34 +000028211IFS=$as_save_IFS
28212
28213 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28214 ;;
28215esac
28216fi
28217BZIPDelegate=$ac_cv_path_BZIPDelegate
28218if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028220$as_echo "$BZIPDelegate" >&6; }
28221else
cristy8b350f62009-11-15 23:12:43 +000028222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028223$as_echo "no" >&6; }
28224fi
28225
28226
28227# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28228set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028230$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028231if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028232 $as_echo_n "(cached) " >&6
28233else
28234 case $BrowseDelegate in
28235 [\\/]* | ?:[\\/]*)
28236 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28237 ;;
28238 *)
28239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28240for as_dir in $PATH
28241do
28242 IFS=$as_save_IFS
28243 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028244 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28246 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028248 break 2
28249 fi
28250done
cristy8b350f62009-11-15 23:12:43 +000028251 done
cristy3ed852e2009-09-05 21:47:34 +000028252IFS=$as_save_IFS
28253
28254 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28255 ;;
28256esac
28257fi
28258BrowseDelegate=$ac_cv_path_BrowseDelegate
28259if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028261$as_echo "$BrowseDelegate" >&6; }
28262else
cristy8b350f62009-11-15 23:12:43 +000028263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028264$as_echo "no" >&6; }
28265fi
28266
28267
28268# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
28269set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028271$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028272if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028273 $as_echo_n "(cached) " >&6
28274else
28275 case $CGMDecodeDelegate in
28276 [\\/]* | ?:[\\/]*)
28277 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
28278 ;;
28279 *)
28280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28281for as_dir in $PATH
28282do
28283 IFS=$as_save_IFS
28284 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028285 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28287 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028289 break 2
28290 fi
28291done
cristy8b350f62009-11-15 23:12:43 +000028292 done
cristy3ed852e2009-09-05 21:47:34 +000028293IFS=$as_save_IFS
28294
28295 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
28296 ;;
28297esac
28298fi
28299CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
28300if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028302$as_echo "$CGMDecodeDelegate" >&6; }
28303else
cristy8b350f62009-11-15 23:12:43 +000028304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028305$as_echo "no" >&6; }
28306fi
28307
28308
28309# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
28310set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028312$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028313if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028314 $as_echo_n "(cached) " >&6
28315else
28316 case $CatDelegate in
28317 [\\/]* | ?:[\\/]*)
28318 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
28319 ;;
28320 *)
28321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28322for as_dir in $PATH
28323do
28324 IFS=$as_save_IFS
28325 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028326 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28328 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028330 break 2
28331 fi
28332done
cristy8b350f62009-11-15 23:12:43 +000028333 done
cristy3ed852e2009-09-05 21:47:34 +000028334IFS=$as_save_IFS
28335
28336 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
28337 ;;
28338esac
28339fi
28340CatDelegate=$ac_cv_path_CatDelegate
28341if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028343$as_echo "$CatDelegate" >&6; }
28344else
cristy8b350f62009-11-15 23:12:43 +000028345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028346$as_echo "no" >&6; }
28347fi
28348
28349
28350# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
28351set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028353$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028354if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028355 $as_echo_n "(cached) " >&6
28356else
28357 case $DNGDecodeDelegate in
28358 [\\/]* | ?:[\\/]*)
28359 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
28360 ;;
28361 *)
28362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28363for as_dir in $PATH
28364do
28365 IFS=$as_save_IFS
28366 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028367 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28369 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028371 break 2
28372 fi
28373done
cristy8b350f62009-11-15 23:12:43 +000028374 done
cristy3ed852e2009-09-05 21:47:34 +000028375IFS=$as_save_IFS
28376
28377 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
28378 ;;
28379esac
28380fi
28381DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
28382if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028384$as_echo "$DNGDecodeDelegate" >&6; }
28385else
cristy8b350f62009-11-15 23:12:43 +000028386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028387$as_echo "no" >&6; }
28388fi
28389
28390
28391# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
28392set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028394$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028395if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028396 $as_echo_n "(cached) " >&6
28397else
28398 case $GVCDecodeDelegate in
28399 [\\/]* | ?:[\\/]*)
28400 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
28401 ;;
28402 *)
28403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28404for as_dir in $PATH
28405do
28406 IFS=$as_save_IFS
28407 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028408 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28410 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028412 break 2
28413 fi
28414done
cristy8b350f62009-11-15 23:12:43 +000028415 done
cristy3ed852e2009-09-05 21:47:34 +000028416IFS=$as_save_IFS
28417
28418 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
28419 ;;
28420esac
28421fi
28422GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
28423if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028425$as_echo "$GVCDecodeDelegate" >&6; }
28426else
cristy8b350f62009-11-15 23:12:43 +000028427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028428$as_echo "no" >&6; }
28429fi
28430
28431
28432# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
28433set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028435$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028436if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028437 $as_echo_n "(cached) " >&6
28438else
28439 case $DVIDecodeDelegate in
28440 [\\/]* | ?:[\\/]*)
28441 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
28442 ;;
28443 *)
28444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28445for as_dir in $PATH
28446do
28447 IFS=$as_save_IFS
28448 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28451 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028453 break 2
28454 fi
28455done
cristy8b350f62009-11-15 23:12:43 +000028456 done
cristy3ed852e2009-09-05 21:47:34 +000028457IFS=$as_save_IFS
28458
28459 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
28460 ;;
28461esac
28462fi
28463DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
28464if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028466$as_echo "$DVIDecodeDelegate" >&6; }
28467else
cristy8b350f62009-11-15 23:12:43 +000028468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028469$as_echo "no" >&6; }
28470fi
28471
28472
28473# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
28474set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028476$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028477if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028478 $as_echo_n "(cached) " >&6
28479else
28480 case $EchoDelegate in
28481 [\\/]* | ?:[\\/]*)
28482 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
28483 ;;
28484 *)
28485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28486for as_dir in $PATH
28487do
28488 IFS=$as_save_IFS
28489 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28492 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028494 break 2
28495 fi
28496done
cristy8b350f62009-11-15 23:12:43 +000028497 done
cristy3ed852e2009-09-05 21:47:34 +000028498IFS=$as_save_IFS
28499
28500 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
28501 ;;
28502esac
28503fi
28504EchoDelegate=$ac_cv_path_EchoDelegate
28505if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028507$as_echo "$EchoDelegate" >&6; }
28508else
cristy8b350f62009-11-15 23:12:43 +000028509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028510$as_echo "no" >&6; }
28511fi
28512
28513
28514# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
28515set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028517$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028518if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028519 $as_echo_n "(cached) " >&6
28520else
28521 case $EditorDelegate in
28522 [\\/]* | ?:[\\/]*)
28523 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
28524 ;;
28525 *)
28526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28527for as_dir in $PATH
28528do
28529 IFS=$as_save_IFS
28530 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028531 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28533 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028535 break 2
28536 fi
28537done
cristy8b350f62009-11-15 23:12:43 +000028538 done
cristy3ed852e2009-09-05 21:47:34 +000028539IFS=$as_save_IFS
28540
28541 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
28542 ;;
28543esac
28544fi
28545EditorDelegate=$ac_cv_path_EditorDelegate
28546if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028548$as_echo "$EditorDelegate" >&6; }
28549else
cristy8b350f62009-11-15 23:12:43 +000028550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028551$as_echo "no" >&6; }
28552fi
28553
28554
28555# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
28556set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028558$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028559if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028560 $as_echo_n "(cached) " >&6
28561else
28562 case $FIGDecodeDelegate in
28563 [\\/]* | ?:[\\/]*)
28564 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
28565 ;;
28566 *)
28567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28568for as_dir in $PATH
28569do
28570 IFS=$as_save_IFS
28571 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28574 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028576 break 2
28577 fi
28578done
cristy8b350f62009-11-15 23:12:43 +000028579 done
cristy3ed852e2009-09-05 21:47:34 +000028580IFS=$as_save_IFS
28581
28582 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
28583 ;;
28584esac
28585fi
28586FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
28587if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028589$as_echo "$FIGDecodeDelegate" >&6; }
28590else
cristy8b350f62009-11-15 23:12:43 +000028591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028592$as_echo "no" >&6; }
28593fi
28594
28595
28596# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
28597set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028599$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028600if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028601 $as_echo_n "(cached) " >&6
28602else
28603 case $ConvertDelegate in
28604 [\\/]* | ?:[\\/]*)
28605 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
28606 ;;
28607 *)
28608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28609for as_dir in $PATH
28610do
28611 IFS=$as_save_IFS
28612 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28615 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028617 break 2
28618 fi
28619done
cristy8b350f62009-11-15 23:12:43 +000028620 done
cristy3ed852e2009-09-05 21:47:34 +000028621IFS=$as_save_IFS
28622
28623 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
28624 ;;
28625esac
28626fi
28627ConvertDelegate=$ac_cv_path_ConvertDelegate
28628if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028630$as_echo "$ConvertDelegate" >&6; }
28631else
cristy8b350f62009-11-15 23:12:43 +000028632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028633$as_echo "no" >&6; }
28634fi
28635
28636
28637# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
28638set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028640$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028641if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028642 $as_echo_n "(cached) " >&6
28643else
28644 case $DisplayDelegate in
28645 [\\/]* | ?:[\\/]*)
28646 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
28647 ;;
28648 *)
28649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28650for as_dir in $PATH
28651do
28652 IFS=$as_save_IFS
28653 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028654 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28656 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028658 break 2
28659 fi
28660done
cristy8b350f62009-11-15 23:12:43 +000028661 done
cristy3ed852e2009-09-05 21:47:34 +000028662IFS=$as_save_IFS
28663
28664 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
28665 ;;
28666esac
28667fi
28668DisplayDelegate=$ac_cv_path_DisplayDelegate
28669if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028671$as_echo "$DisplayDelegate" >&6; }
28672else
cristy8b350f62009-11-15 23:12:43 +000028673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028674$as_echo "no" >&6; }
28675fi
28676
28677
28678# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
28679set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028681$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028682if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028683 $as_echo_n "(cached) " >&6
28684else
28685 case $MogrifyDelegate in
28686 [\\/]* | ?:[\\/]*)
28687 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
28688 ;;
28689 *)
28690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28691for as_dir in $PATH
28692do
28693 IFS=$as_save_IFS
28694 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028695 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28697 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028699 break 2
28700 fi
28701done
cristy8b350f62009-11-15 23:12:43 +000028702 done
cristy3ed852e2009-09-05 21:47:34 +000028703IFS=$as_save_IFS
28704
28705 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
28706 ;;
28707esac
28708fi
28709MogrifyDelegate=$ac_cv_path_MogrifyDelegate
28710if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028712$as_echo "$MogrifyDelegate" >&6; }
28713else
cristy8b350f62009-11-15 23:12:43 +000028714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028715$as_echo "no" >&6; }
28716fi
28717
28718
28719# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
28720set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028722$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028723if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028724 $as_echo_n "(cached) " >&6
28725else
28726 case $GnuplotDecodeDelegate in
28727 [\\/]* | ?:[\\/]*)
28728 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
28729 ;;
28730 *)
28731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28732for as_dir in $PATH
28733do
28734 IFS=$as_save_IFS
28735 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28738 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028740 break 2
28741 fi
28742done
cristy8b350f62009-11-15 23:12:43 +000028743 done
cristy3ed852e2009-09-05 21:47:34 +000028744IFS=$as_save_IFS
28745
28746 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
28747 ;;
28748esac
28749fi
28750GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
28751if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028753$as_echo "$GnuplotDecodeDelegate" >&6; }
28754else
cristy8b350f62009-11-15 23:12:43 +000028755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028756$as_echo "no" >&6; }
28757fi
28758
28759
28760# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
28761set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028763$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028764if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028765 $as_echo_n "(cached) " >&6
28766else
28767 case $HDRDecodeDelegate in
28768 [\\/]* | ?:[\\/]*)
28769 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
28770 ;;
28771 *)
28772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28773for as_dir in $PATH
28774do
28775 IFS=$as_save_IFS
28776 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028777 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28779 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028781 break 2
28782 fi
28783done
cristy8b350f62009-11-15 23:12:43 +000028784 done
cristy3ed852e2009-09-05 21:47:34 +000028785IFS=$as_save_IFS
28786
28787 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
28788 ;;
28789esac
28790fi
28791HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
28792if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028794$as_echo "$HDRDecodeDelegate" >&6; }
28795else
cristy8b350f62009-11-15 23:12:43 +000028796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028797$as_echo "no" >&6; }
28798fi
28799
28800
28801# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
28802set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028804$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028805if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028806 $as_echo_n "(cached) " >&6
28807else
28808 case $HPGLDecodeDelegate in
28809 [\\/]* | ?:[\\/]*)
28810 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
28811 ;;
28812 *)
28813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28814for as_dir in $PATH
28815do
28816 IFS=$as_save_IFS
28817 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28820 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028822 break 2
28823 fi
28824done
cristy8b350f62009-11-15 23:12:43 +000028825 done
cristy3ed852e2009-09-05 21:47:34 +000028826IFS=$as_save_IFS
28827
28828 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
28829 ;;
28830esac
28831fi
28832HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
28833if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028835$as_echo "$HPGLDecodeDelegate" >&6; }
28836else
cristy8b350f62009-11-15 23:12:43 +000028837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028838$as_echo "no" >&6; }
28839fi
28840
28841
28842# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
28843set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028845$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028846if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028847 $as_echo_n "(cached) " >&6
28848else
28849 case $HTMLDecodeDelegate in
28850 [\\/]* | ?:[\\/]*)
28851 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
28852 ;;
28853 *)
28854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28855for as_dir in $PATH
28856do
28857 IFS=$as_save_IFS
28858 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028859 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28861 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028863 break 2
28864 fi
28865done
cristy8b350f62009-11-15 23:12:43 +000028866 done
cristy3ed852e2009-09-05 21:47:34 +000028867IFS=$as_save_IFS
28868
28869 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
28870 ;;
28871esac
28872fi
28873HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
28874if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028876$as_echo "$HTMLDecodeDelegate" >&6; }
28877else
cristy8b350f62009-11-15 23:12:43 +000028878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028879$as_echo "no" >&6; }
28880fi
28881
28882
28883# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
28884set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028886$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028887if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028888 $as_echo_n "(cached) " >&6
28889else
28890 case $ILBMDecodeDelegate in
28891 [\\/]* | ?:[\\/]*)
28892 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
28893 ;;
28894 *)
28895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28896for as_dir in $PATH
28897do
28898 IFS=$as_save_IFS
28899 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028900 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28902 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028904 break 2
28905 fi
28906done
cristy8b350f62009-11-15 23:12:43 +000028907 done
cristy3ed852e2009-09-05 21:47:34 +000028908IFS=$as_save_IFS
28909
28910 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
28911 ;;
28912esac
28913fi
28914ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
28915if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028917$as_echo "$ILBMDecodeDelegate" >&6; }
28918else
cristy8b350f62009-11-15 23:12:43 +000028919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028920$as_echo "no" >&6; }
28921fi
28922
28923
28924# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
28925set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028927$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028928if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028929 $as_echo_n "(cached) " >&6
28930else
28931 case $ILBMEncodeDelegate in
28932 [\\/]* | ?:[\\/]*)
28933 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
28934 ;;
28935 *)
28936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28937for as_dir in $PATH
28938do
28939 IFS=$as_save_IFS
28940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28943 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028945 break 2
28946 fi
28947done
cristy8b350f62009-11-15 23:12:43 +000028948 done
cristy3ed852e2009-09-05 21:47:34 +000028949IFS=$as_save_IFS
28950
28951 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
28952 ;;
28953esac
28954fi
28955ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
28956if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028958$as_echo "$ILBMEncodeDelegate" >&6; }
28959else
cristy8b350f62009-11-15 23:12:43 +000028960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028961$as_echo "no" >&6; }
28962fi
28963
28964
28965# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
28966set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028968$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028969if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028970 $as_echo_n "(cached) " >&6
28971else
28972 case $LPDelegate in
28973 [\\/]* | ?:[\\/]*)
28974 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
28975 ;;
28976 *)
28977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28978for as_dir in $PATH
28979do
28980 IFS=$as_save_IFS
28981 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028982 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28984 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028986 break 2
28987 fi
28988done
cristy8b350f62009-11-15 23:12:43 +000028989 done
cristy3ed852e2009-09-05 21:47:34 +000028990IFS=$as_save_IFS
28991
28992 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
28993 ;;
28994esac
28995fi
28996LPDelegate=$ac_cv_path_LPDelegate
28997if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028999$as_echo "$LPDelegate" >&6; }
29000else
cristy8b350f62009-11-15 23:12:43 +000029001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029002$as_echo "no" >&6; }
29003fi
29004
29005
29006# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29007set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029009$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029010if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029011 $as_echo_n "(cached) " >&6
29012else
29013 case $LPRDelegate in
29014 [\\/]* | ?:[\\/]*)
29015 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
29016 ;;
29017 *)
29018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29019for as_dir in $PATH
29020do
29021 IFS=$as_save_IFS
29022 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029023 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29025 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029027 break 2
29028 fi
29029done
cristy8b350f62009-11-15 23:12:43 +000029030 done
cristy3ed852e2009-09-05 21:47:34 +000029031IFS=$as_save_IFS
29032
29033 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
29034 ;;
29035esac
29036fi
29037LPRDelegate=$ac_cv_path_LPRDelegate
29038if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029040$as_echo "$LPRDelegate" >&6; }
29041else
cristy8b350f62009-11-15 23:12:43 +000029042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029043$as_echo "no" >&6; }
29044fi
29045
29046
29047# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
29048set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029050$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029051if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029052 $as_echo_n "(cached) " >&6
29053else
29054 case $LZWDecodeDelegate in
29055 [\\/]* | ?:[\\/]*)
29056 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
29057 ;;
29058 *)
29059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29060for as_dir in $PATH
29061do
29062 IFS=$as_save_IFS
29063 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029064 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29066 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029068 break 2
29069 fi
29070done
cristy8b350f62009-11-15 23:12:43 +000029071 done
cristy3ed852e2009-09-05 21:47:34 +000029072IFS=$as_save_IFS
29073
29074 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
29075 ;;
29076esac
29077fi
29078LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
29079if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029081$as_echo "$LZWDecodeDelegate" >&6; }
29082else
cristy8b350f62009-11-15 23:12:43 +000029083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029084$as_echo "no" >&6; }
29085fi
29086
29087
29088# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
29089set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029091$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029092if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029093 $as_echo_n "(cached) " >&6
29094else
29095 case $LZWEncodeDelegate in
29096 [\\/]* | ?:[\\/]*)
29097 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
29098 ;;
29099 *)
29100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29101for as_dir in $PATH
29102do
29103 IFS=$as_save_IFS
29104 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029105 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29107 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029109 break 2
29110 fi
29111done
cristy8b350f62009-11-15 23:12:43 +000029112 done
cristy3ed852e2009-09-05 21:47:34 +000029113IFS=$as_save_IFS
29114
29115 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
29116 ;;
29117esac
29118fi
29119LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
29120if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029122$as_echo "$LZWEncodeDelegate" >&6; }
29123else
cristy8b350f62009-11-15 23:12:43 +000029124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029125$as_echo "no" >&6; }
29126fi
29127
29128
29129# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
29130set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029132$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029133if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029134 $as_echo_n "(cached) " >&6
29135else
29136 case $LaunchDelegate in
29137 [\\/]* | ?:[\\/]*)
29138 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
29139 ;;
29140 *)
29141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29142for as_dir in $PATH
29143do
29144 IFS=$as_save_IFS
29145 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029146 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29148 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029150 break 2
29151 fi
29152done
cristy8b350f62009-11-15 23:12:43 +000029153 done
cristy3ed852e2009-09-05 21:47:34 +000029154IFS=$as_save_IFS
29155
29156 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29157 ;;
29158esac
29159fi
29160LaunchDelegate=$ac_cv_path_LaunchDelegate
29161if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029163$as_echo "$LaunchDelegate" >&6; }
29164else
cristy8b350f62009-11-15 23:12:43 +000029165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029166$as_echo "no" >&6; }
29167fi
29168
29169
29170# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
29171set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029173$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029174if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029175 $as_echo_n "(cached) " >&6
29176else
29177 case $MANDelegate in
29178 [\\/]* | ?:[\\/]*)
29179 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
29180 ;;
29181 *)
29182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29183for as_dir in $PATH
29184do
29185 IFS=$as_save_IFS
29186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029187 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29189 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029191 break 2
29192 fi
29193done
cristy8b350f62009-11-15 23:12:43 +000029194 done
cristy3ed852e2009-09-05 21:47:34 +000029195IFS=$as_save_IFS
29196
29197 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29198 ;;
29199esac
29200fi
29201MANDelegate=$ac_cv_path_MANDelegate
29202if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029204$as_echo "$MANDelegate" >&6; }
29205else
cristy8b350f62009-11-15 23:12:43 +000029206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029207$as_echo "no" >&6; }
29208fi
29209
29210
29211# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29212set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029214$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029215if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029216 $as_echo_n "(cached) " >&6
29217else
29218 case $MPEGDecodeDelegate in
29219 [\\/]* | ?:[\\/]*)
29220 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29221 ;;
29222 *)
29223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29224for as_dir in $PATH
29225do
29226 IFS=$as_save_IFS
29227 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029228 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29230 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029232 break 2
29233 fi
29234done
cristy8b350f62009-11-15 23:12:43 +000029235 done
cristy3ed852e2009-09-05 21:47:34 +000029236IFS=$as_save_IFS
29237
29238 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29239 ;;
29240esac
29241fi
29242MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29243if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029245$as_echo "$MPEGDecodeDelegate" >&6; }
29246else
cristy8b350f62009-11-15 23:12:43 +000029247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029248$as_echo "no" >&6; }
29249fi
29250
29251
29252# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29253set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029255$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029256if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029257 $as_echo_n "(cached) " >&6
29258else
29259 case $MPEGEncodeDelegate in
29260 [\\/]* | ?:[\\/]*)
29261 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
29262 ;;
29263 *)
29264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29265for as_dir in $PATH
29266do
29267 IFS=$as_save_IFS
29268 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029269 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29271 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029273 break 2
29274 fi
29275done
cristy8b350f62009-11-15 23:12:43 +000029276 done
cristy3ed852e2009-09-05 21:47:34 +000029277IFS=$as_save_IFS
29278
29279 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
29280 ;;
29281esac
29282fi
29283MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
29284if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029286$as_echo "$MPEGEncodeDelegate" >&6; }
29287else
cristy8b350f62009-11-15 23:12:43 +000029288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029289$as_echo "no" >&6; }
29290fi
29291
29292
29293# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
29294set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029296$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029297if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029298 $as_echo_n "(cached) " >&6
29299else
29300 case $MVDelegate in
29301 [\\/]* | ?:[\\/]*)
29302 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
29303 ;;
29304 *)
29305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29306for as_dir in $PATH
29307do
29308 IFS=$as_save_IFS
29309 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029310 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29312 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029314 break 2
29315 fi
29316done
cristy8b350f62009-11-15 23:12:43 +000029317 done
cristy3ed852e2009-09-05 21:47:34 +000029318IFS=$as_save_IFS
29319
29320 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
29321 ;;
29322esac
29323fi
29324MVDelegate=$ac_cv_path_MVDelegate
29325if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029327$as_echo "$MVDelegate" >&6; }
29328else
cristy8b350f62009-11-15 23:12:43 +000029329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029330$as_echo "no" >&6; }
29331fi
29332
29333
29334# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
29335set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029337$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029338if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029339 $as_echo_n "(cached) " >&6
29340else
29341 case $PCLDelegate in
29342 [\\/]* | ?:[\\/]*)
29343 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
29344 ;;
29345 *)
29346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29347for as_dir in $PATH
29348do
29349 IFS=$as_save_IFS
29350 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029351 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29353 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029355 break 2
29356 fi
29357done
cristy8b350f62009-11-15 23:12:43 +000029358 done
cristy3ed852e2009-09-05 21:47:34 +000029359IFS=$as_save_IFS
29360
29361 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
29362 ;;
29363esac
29364fi
29365PCLDelegate=$ac_cv_path_PCLDelegate
29366if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029368$as_echo "$PCLDelegate" >&6; }
29369else
cristy8b350f62009-11-15 23:12:43 +000029370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029371$as_echo "no" >&6; }
29372fi
29373
29374
29375# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
29376set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029378$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029379if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029380 $as_echo_n "(cached) " >&6
29381else
29382 case $PGPDecodeDelegate in
29383 [\\/]* | ?:[\\/]*)
29384 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
29385 ;;
29386 *)
29387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29388for as_dir in $PATH
29389do
29390 IFS=$as_save_IFS
29391 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029392 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29394 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029396 break 2
29397 fi
29398done
cristy8b350f62009-11-15 23:12:43 +000029399 done
cristy3ed852e2009-09-05 21:47:34 +000029400IFS=$as_save_IFS
29401
29402 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
29403 ;;
29404esac
29405fi
29406PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
29407if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029409$as_echo "$PGPDecodeDelegate" >&6; }
29410else
cristy8b350f62009-11-15 23:12:43 +000029411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029412$as_echo "no" >&6; }
29413fi
29414
29415
29416# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
29417set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029419$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029420if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029421 $as_echo_n "(cached) " >&6
29422else
29423 case $POVDelegate in
29424 [\\/]* | ?:[\\/]*)
29425 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
29426 ;;
29427 *)
29428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29429for as_dir in $PATH
29430do
29431 IFS=$as_save_IFS
29432 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029433 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29435 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029437 break 2
29438 fi
29439done
cristy8b350f62009-11-15 23:12:43 +000029440 done
cristy3ed852e2009-09-05 21:47:34 +000029441IFS=$as_save_IFS
29442
29443 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
29444 ;;
29445esac
29446fi
29447POVDelegate=$ac_cv_path_POVDelegate
29448if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029450$as_echo "$POVDelegate" >&6; }
29451else
cristy8b350f62009-11-15 23:12:43 +000029452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029453$as_echo "no" >&6; }
29454fi
29455
29456
29457for ac_prog in gsx gsc "$PSDelegateDefault"
29458do
29459 # Extract the first word of "$ac_prog", so it can be a program name with args.
29460set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029462$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029463if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029464 $as_echo_n "(cached) " >&6
29465else
29466 case $PSDelegate in
29467 [\\/]* | ?:[\\/]*)
29468 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
29469 ;;
29470 *)
29471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29472for as_dir in $PATH
29473do
29474 IFS=$as_save_IFS
29475 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029476 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29478 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029480 break 2
29481 fi
29482done
cristy8b350f62009-11-15 23:12:43 +000029483 done
cristy3ed852e2009-09-05 21:47:34 +000029484IFS=$as_save_IFS
29485
29486 ;;
29487esac
29488fi
29489PSDelegate=$ac_cv_path_PSDelegate
29490if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029492$as_echo "$PSDelegate" >&6; }
29493else
cristy8b350f62009-11-15 23:12:43 +000029494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029495$as_echo "no" >&6; }
29496fi
29497
29498
29499 test -n "$PSDelegate" && break
29500done
29501test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
29502
29503# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
29504set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029506$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029507if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029508 $as_echo_n "(cached) " >&6
29509else
29510 case $RLEEncodeDelegate in
29511 [\\/]* | ?:[\\/]*)
29512 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
29513 ;;
29514 *)
29515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29516for as_dir in $PATH
29517do
29518 IFS=$as_save_IFS
29519 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029520 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29522 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029524 break 2
29525 fi
29526done
cristy8b350f62009-11-15 23:12:43 +000029527 done
cristy3ed852e2009-09-05 21:47:34 +000029528IFS=$as_save_IFS
29529
29530 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
29531 ;;
29532esac
29533fi
29534RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
29535if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029537$as_echo "$RLEEncodeDelegate" >&6; }
29538else
cristy8b350f62009-11-15 23:12:43 +000029539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029540$as_echo "no" >&6; }
29541fi
29542
29543
29544# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
29545set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029547$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029548if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029549 $as_echo_n "(cached) " >&6
29550else
29551 case $RMDelegate in
29552 [\\/]* | ?:[\\/]*)
29553 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
29554 ;;
29555 *)
29556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29557for as_dir in $PATH
29558do
29559 IFS=$as_save_IFS
29560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29563 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029565 break 2
29566 fi
29567done
cristy8b350f62009-11-15 23:12:43 +000029568 done
cristy3ed852e2009-09-05 21:47:34 +000029569IFS=$as_save_IFS
29570
29571 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
29572 ;;
29573esac
29574fi
29575RMDelegate=$ac_cv_path_RMDelegate
29576if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029578$as_echo "$RMDelegate" >&6; }
29579else
cristy8b350f62009-11-15 23:12:43 +000029580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029581$as_echo "no" >&6; }
29582fi
29583
29584
29585# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
29586set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029588$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029589if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029590 $as_echo_n "(cached) " >&6
29591else
29592 case $SCANDecodeDelegate in
29593 [\\/]* | ?:[\\/]*)
29594 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
29595 ;;
29596 *)
29597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29598for as_dir in $PATH
29599do
29600 IFS=$as_save_IFS
29601 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29604 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029606 break 2
29607 fi
29608done
cristy8b350f62009-11-15 23:12:43 +000029609 done
cristy3ed852e2009-09-05 21:47:34 +000029610IFS=$as_save_IFS
29611
29612 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
29613 ;;
29614esac
29615fi
29616SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
29617if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029619$as_echo "$SCANDecodeDelegate" >&6; }
29620else
cristy8b350f62009-11-15 23:12:43 +000029621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029622$as_echo "no" >&6; }
29623fi
29624
29625
29626# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
29627set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029629$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029630if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029631 $as_echo_n "(cached) " >&6
29632else
29633 case $TXTDelegate in
29634 [\\/]* | ?:[\\/]*)
29635 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
29636 ;;
29637 *)
29638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29639for as_dir in $PATH
29640do
29641 IFS=$as_save_IFS
29642 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029643 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29645 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029647 break 2
29648 fi
29649done
cristy8b350f62009-11-15 23:12:43 +000029650 done
cristy3ed852e2009-09-05 21:47:34 +000029651IFS=$as_save_IFS
29652
29653 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
29654 ;;
29655esac
29656fi
29657TXTDelegate=$ac_cv_path_TXTDelegate
29658if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029660$as_echo "$TXTDelegate" >&6; }
29661else
cristy8b350f62009-11-15 23:12:43 +000029662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029663$as_echo "no" >&6; }
29664fi
29665
29666
29667# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
29668set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029670$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029671if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029672 $as_echo_n "(cached) " >&6
29673else
29674 case $WMFDecodeDelegate in
29675 [\\/]* | ?:[\\/]*)
29676 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
29677 ;;
29678 *)
29679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29680for as_dir in $PATH
29681do
29682 IFS=$as_save_IFS
29683 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29686 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029688 break 2
29689 fi
29690done
cristy8b350f62009-11-15 23:12:43 +000029691 done
cristy3ed852e2009-09-05 21:47:34 +000029692IFS=$as_save_IFS
29693
29694 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
29695 ;;
29696esac
29697fi
29698WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
29699if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029701$as_echo "$WMFDecodeDelegate" >&6; }
29702else
cristy8b350f62009-11-15 23:12:43 +000029703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029704$as_echo "no" >&6; }
29705fi
29706
29707
29708# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
29709set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029711$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029712if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029713 $as_echo_n "(cached) " >&6
29714else
29715 case $WWWDecodeDelegate in
29716 [\\/]* | ?:[\\/]*)
29717 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
29718 ;;
29719 *)
29720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29721for as_dir in $PATH
29722do
29723 IFS=$as_save_IFS
29724 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029725 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29727 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029729 break 2
29730 fi
29731done
cristy8b350f62009-11-15 23:12:43 +000029732 done
cristy3ed852e2009-09-05 21:47:34 +000029733IFS=$as_save_IFS
29734
29735 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
29736 ;;
29737esac
29738fi
29739WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
29740if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029742$as_echo "$WWWDecodeDelegate" >&6; }
29743else
cristy8b350f62009-11-15 23:12:43 +000029744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029745$as_echo "no" >&6; }
29746fi
29747
29748
29749# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
29750set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029752$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029753if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029754 $as_echo_n "(cached) " >&6
29755else
29756 case $XPSDelegate in
29757 [\\/]* | ?:[\\/]*)
29758 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
29759 ;;
29760 *)
29761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29762for as_dir in $PATH
29763do
29764 IFS=$as_save_IFS
29765 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29768 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029770 break 2
29771 fi
29772done
cristy8b350f62009-11-15 23:12:43 +000029773 done
cristy3ed852e2009-09-05 21:47:34 +000029774IFS=$as_save_IFS
29775
29776 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
29777 ;;
29778esac
29779fi
29780XPSDelegate=$ac_cv_path_XPSDelegate
29781if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029783$as_echo "$XPSDelegate" >&6; }
29784else
cristy8b350f62009-11-15 23:12:43 +000029785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029786$as_echo "no" >&6; }
29787fi
29788
29789
29790# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
29791set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029793$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029794if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029795 $as_echo_n "(cached) " >&6
29796else
29797 case $ZipDelegate in
29798 [\\/]* | ?:[\\/]*)
29799 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
29800 ;;
29801 *)
29802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29803for as_dir in $PATH
29804do
29805 IFS=$as_save_IFS
29806 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29809 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029811 break 2
29812 fi
29813done
cristy8b350f62009-11-15 23:12:43 +000029814 done
cristy3ed852e2009-09-05 21:47:34 +000029815IFS=$as_save_IFS
29816
29817 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
29818 ;;
29819esac
29820fi
29821ZipDelegate=$ac_cv_path_ZipDelegate
29822if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029824$as_echo "$ZipDelegate" >&6; }
29825else
cristy8b350f62009-11-15 23:12:43 +000029826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029827$as_echo "no" >&6; }
29828fi
29829
29830
29831
29832# Prefer lpr to lp; lp needs options tacked on.
29833if test "$LPRDelegate" != no; then
29834 PrintDelegate="$LPRDelegate"
29835else
29836 PrintDelegate="$LPDelegate -c -s"
29837fi
29838
29839
29840# Installed ImageMagick utiltity paths
29841ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
29842DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
29843MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
29844
29845# Set delegate booleans
29846have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
29847have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
29848have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
29849have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
29850have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
29851have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
29852have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
29853have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
29854have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
29855have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
29856have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
29857
29858#
29859# Test for font directories
29860#
29861type_include_files=''
29862
29863# Windows
29864windows_font_dir=''
29865if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
29866 windows_font_dir="${with_windows_font_dir}/"
29867fi
29868if test -n "$windows_font_dir"; then
29869 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
29870 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
29871 fi
29872 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
29873 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
29874 fi
29875 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
29876 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
29877 fi
29878fi
29879if test -n "$windows_font_dir"; then
29880 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
29881fi
29882
29883
29884# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000029885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000029886$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
29887ghostscript_font_dir=''
29888if test "${with_gs_font_dir}" != 'default'; then
29889 ghostscript_font_dir="${with_gs_font_dir}/"
29890else
29891 if test "${native_win32_build}" = 'yes'; then
29892 # Native Windows Build
29893 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
29894 if test -f "${font_dir}a010013l.pfb"; then
29895 ghostscript_font_dir="$font_dir"
29896 break 1
29897 fi
29898 done
29899 if test "${PSDelegate}" != 'gswin32c'; then
29900 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
29901 fi
29902 else
29903 # Linux / Mac OS X / Unix Build
29904 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
29905 if test -f "${font_dir}a010013l.pfb"; then
29906 ghostscript_font_dir="${font_dir}"
29907 break 1
29908 fi
29909 done
29910 if test "${ghostscript_font_dir}x" = 'x'; then
29911 if test "$PSDelegate" != 'gs'; then
29912 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
29913 fi
29914 fi
29915 fi
29916fi
29917if test "${ghostscript_font_dir}x" != 'x'; then
29918 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000029919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000029920$as_echo "$ghostscript_font_dir" >&6; }
29921else
cristy8b350f62009-11-15 23:12:43 +000029922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000029923$as_echo "not found!" >&6; };
29924fi
29925
29926case "${build_os}" in
29927 mingw* )
29928 PSDelegate=`$WinPathScript "$PSDelegate" 1`
29929 ;;
29930esac
29931
29932
29933
29934#
29935# Handle case where user doesn't want frozen paths
29936#
29937if test "$with_frozenpaths" != 'yes'; then
29938 # Re-set delegate definitions to default (no paths)
29939 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
29940 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
29941 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
29942 BZIPDelegate="$BZIPDelegateDefault"
29943 BrowseDelegate="$BrowseDelegateDefault"
29944 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
29945 CatDelegate="$CatDelegateDefault"
29946 ConvertDelegate="$ConvertDelegateDefault"
29947 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
29948 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
29949 EchoDelegate="$EchoDelegateDefault"
29950 EditorDelegate="$EditorDelegateDefault"
29951 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
29952 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
29953 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
29954 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
29955 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
29956 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
29957 LPDelegate="$LPDelegateDefault"
29958 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
29959 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
29960 LaunchDelegate="$LaunchDelegateDefault"
29961 MANDelegate="$MANDelegateDefault"
29962 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
29963 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
29964 MVDelegate="$MVDelegateDefault"
29965 MogrifyDelegate="$MogrifyDelegateDefault"
29966 PCLDelegate="$PCLDelegateDefault"
29967 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
29968 POVDelegate="$POVDelegateDefault"
29969 PSDelegate="$PSDelegateDefault"
29970 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
29971 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
29972 RMDelegate="$RMDelegateDefault"
29973 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
29974 ShowImageDelegate="$ShowImageDelegateDefault"
29975 TXTDelegate="$TXTDelegateDefault"
29976 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
29977 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
29978 XPSDelegate="$XPSDelegateDefault"
29979 ZipDelegate="$ZipDelegateDefault"
29980fi
29981
29982# Delegate substitutions
29983
29984
29985
29986
29987
29988
29989
29990
29991
29992
29993
29994
29995
29996
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009
30010
30011
30012
30013
30014
30015
30016
30017
30018
30019
30020
30021
30022
30023
30024
30025#
30026# RPM support.
30027#
30028RPM=''
30029for ac_prog in gnutar gtar tar
30030do
30031 # Extract the first word of "$ac_prog", so it can be a program name with args.
30032set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030034$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030035if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030036 $as_echo_n "(cached) " >&6
30037else
30038 if test -n "$TAR"; then
30039 ac_cv_prog_TAR="$TAR" # Let the user override the test.
30040else
30041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30042for as_dir in $PATH
30043do
30044 IFS=$as_save_IFS
30045 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030046 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30048 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030050 break 2
30051 fi
30052done
cristy8b350f62009-11-15 23:12:43 +000030053 done
cristy3ed852e2009-09-05 21:47:34 +000030054IFS=$as_save_IFS
30055
30056fi
30057fi
30058TAR=$ac_cv_prog_TAR
30059if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000030061$as_echo "$TAR" >&6; }
30062else
cristy8b350f62009-11-15 23:12:43 +000030063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030064$as_echo "no" >&6; }
30065fi
30066
30067
30068 test -n "$TAR" && break
30069done
30070
30071for ac_prog in perl
30072do
30073 # Extract the first word of "$ac_prog", so it can be a program name with args.
30074set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030076$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030077if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030078 $as_echo_n "(cached) " >&6
30079else
30080 if test -n "$PERL"; then
30081 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30082else
30083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30084for as_dir in $PATH
30085do
30086 IFS=$as_save_IFS
30087 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030088 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30090 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030092 break 2
30093 fi
30094done
cristy8b350f62009-11-15 23:12:43 +000030095 done
cristy3ed852e2009-09-05 21:47:34 +000030096IFS=$as_save_IFS
30097
30098fi
30099fi
30100PERL=$ac_cv_prog_PERL
30101if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030103$as_echo "$PERL" >&6; }
30104else
cristy8b350f62009-11-15 23:12:43 +000030105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030106$as_echo "no" >&6; }
30107fi
30108
30109
30110 test -n "$PERL" && break
30111done
30112
30113for ac_prog in rpmbuild rpm
30114do
30115 # Extract the first word of "$ac_prog", so it can be a program name with args.
30116set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030118$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030119if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030120 $as_echo_n "(cached) " >&6
30121else
30122 if test -n "$RPM"; then
30123 ac_cv_prog_RPM="$RPM" # Let the user override the test.
30124else
30125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30126for as_dir in $PATH
30127do
30128 IFS=$as_save_IFS
30129 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030130 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30132 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030134 break 2
30135 fi
30136done
cristy8b350f62009-11-15 23:12:43 +000030137 done
cristy3ed852e2009-09-05 21:47:34 +000030138IFS=$as_save_IFS
30139
30140fi
30141fi
30142RPM=$ac_cv_prog_RPM
30143if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000030144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000030145$as_echo "$RPM" >&6; }
30146else
cristy8b350f62009-11-15 23:12:43 +000030147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030148$as_echo "no" >&6; }
30149fi
30150
30151
30152 test -n "$RPM" && break
30153done
30154
30155
30156ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30157
30158
30159AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30160
30161
30162AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30163
30164
30165AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30166
30167
30168 if test "x$RPM" != "x" ; then
30169 RPM_DELEGATE_TRUE=
30170 RPM_DELEGATE_FALSE='#'
30171else
30172 RPM_DELEGATE_TRUE='#'
30173 RPM_DELEGATE_FALSE=
30174fi
30175
30176
30177#
30178# 7ZIP support (http://p7zip.sourceforge.net/)
30179#
30180P7ZIP=''
30181for ac_prog in 7za
30182do
30183 # Extract the first word of "$ac_prog", so it can be a program name with args.
30184set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030186$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030187if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030188 $as_echo_n "(cached) " >&6
30189else
30190 if test -n "$P7ZIP"; then
30191 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
30192else
30193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30194for as_dir in $PATH
30195do
30196 IFS=$as_save_IFS
30197 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30200 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030202 break 2
30203 fi
30204done
cristy8b350f62009-11-15 23:12:43 +000030205 done
cristy3ed852e2009-09-05 21:47:34 +000030206IFS=$as_save_IFS
30207
30208fi
30209fi
30210P7ZIP=$ac_cv_prog_P7ZIP
30211if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030213$as_echo "$P7ZIP" >&6; }
30214else
cristy8b350f62009-11-15 23:12:43 +000030215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030216$as_echo "no" >&6; }
30217fi
30218
30219
30220 test -n "$P7ZIP" && break
30221done
30222
30223
30224 if test "x$P7ZIP" != "x" ; then
30225 P7ZIP_DELEGATE_TRUE=
30226 P7ZIP_DELEGATE_FALSE='#'
30227else
30228 P7ZIP_DELEGATE_TRUE='#'
30229 P7ZIP_DELEGATE_FALSE=
30230fi
30231
30232
30233#
30234# ZIP support (http://www.info-zip.org/Zip.html)
30235#
30236ZIP=''
30237for ac_prog in zip
30238do
30239 # Extract the first word of "$ac_prog", so it can be a program name with args.
30240set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030242$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030243if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030244 $as_echo_n "(cached) " >&6
30245else
30246 if test -n "$ZIP"; then
30247 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
30248else
30249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30250for as_dir in $PATH
30251do
30252 IFS=$as_save_IFS
30253 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030254 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30256 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030258 break 2
30259 fi
30260done
cristy8b350f62009-11-15 23:12:43 +000030261 done
cristy3ed852e2009-09-05 21:47:34 +000030262IFS=$as_save_IFS
30263
30264fi
30265fi
30266ZIP=$ac_cv_prog_ZIP
30267if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030269$as_echo "$ZIP" >&6; }
30270else
cristy8b350f62009-11-15 23:12:43 +000030271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030272$as_echo "no" >&6; }
30273fi
30274
30275
30276 test -n "$ZIP" && break
30277done
30278
30279
30280 if test "x$ZIP" != "x" ; then
30281 ZIP_DELEGATE_TRUE=
30282 ZIP_DELEGATE_FALSE='#'
30283else
30284 ZIP_DELEGATE_TRUE='#'
30285 ZIP_DELEGATE_FALSE=
30286fi
30287
30288
30289#
30290# GhostPCL related configuration.
30291#
30292PCLColorDevice=ppmraw
30293PCLCMYKDevice=bmpsep8
30294PCLMonoDevice=pbmraw
30295if test -z "$PCLVersion"; then
30296 PCLVersion='unknown'
30297fi
30298if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030300$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030302$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030304$as_echo "" >&6; }
30305 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000030306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030307$as_echo_n "checking for pcl color device... " >&6; }
30308 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30309 :
30310 else
30311 PCLColorDevice=ppmraw
30312 fi
cristy8b350f62009-11-15 23:12:43 +000030313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030314$as_echo "$PCLColorDevice" >&6; }
30315
30316 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030318$as_echo_n "checking for pcl CMYK device... " >&6; }
30319 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30320 :
30321 else
30322 PCLCMYKDevice=$PCLColorDevice
30323 fi
cristy8b350f62009-11-15 23:12:43 +000030324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030325$as_echo "$PCLCMYKDevice" >&6; }
30326
30327 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030329$as_echo_n "checking for pcl mono device... " >&6; }
30330 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30331 :
30332 else
30333 PCLMonoDevice=$PCLColorDevice
30334 fi
cristy8b350f62009-11-15 23:12:43 +000030335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030336$as_echo "$PCLMonoDevice" >&6; }
30337fi
30338
30339
30340
30341
30342
30343
30344#
30345# GhostXPS related configuration.
30346#
30347XPSColorDevice=ppmraw
30348XPSCMYKDevice=bmpsep8
30349XPSMonoDevice=pbmraw
30350if test -z "$XPSVersion"; then
30351 XPSVersion='unknown'
30352fi
30353if test $have_xps = 'yes'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000030356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000030357$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030359$as_echo "" >&6; }
30360 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030362$as_echo_n "checking for xps color device... " >&6; }
30363 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30364 :
30365 else
30366 XPSColorDevice=ppmraw
30367 fi
cristy8b350f62009-11-15 23:12:43 +000030368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030369$as_echo "$XPSColorDevice" >&6; }
30370
30371 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030373$as_echo_n "checking for xps CMYK device... " >&6; }
30374 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30375 :
30376 else
30377 XPSCMYKDevice=$XPSColorDevice
30378 fi
cristy8b350f62009-11-15 23:12:43 +000030379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030380$as_echo "$XPSCMYKDevice" >&6; }
30381
30382 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030384$as_echo_n "checking for xps mono device... " >&6; }
30385 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30386 :
30387 else
30388 XPSMonoDevice=$XPSColorDevice
30389 fi
cristy8b350f62009-11-15 23:12:43 +000030390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030391$as_echo "$XPSMonoDevice" >&6; }
30392fi
30393
30394
30395
30396
30397
30398
30399#
30400# Ghostscript related configuration.
30401#
30402if test "$have_png" = 'yes'; then
30403 GSAlphaDevice=pngalpha
30404else
30405 GSAlphaDevice=pnmraw
30406fi
30407GSColorDevice=pnmraw
30408GSCMYKDevice=pam
30409GSMonoDevice=pbmraw
30410GSPDFDevice=pdfwrite
30411GSPSDevice=pswrite
30412GSEPSDevice=epswrite
30413GSVersion='unknown'
30414if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030416$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000030418$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030420$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000030422$as_echo_n "checking for Ghostscript version... " >&6; }
30423 if GSVersion=`$PSDelegate --version`; then
30424 :
30425 else
30426 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
30427 fi
cristy8b350f62009-11-15 23:12:43 +000030428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000030429$as_echo "$GSVersion" >&6; }
30430
30431 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000030432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030433$as_echo_n "checking for gs alpha device... " >&6; }
30434 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30435 :
30436 else
30437 GSAlphaDevice=pnmraw
30438 fi
cristy8b350f62009-11-15 23:12:43 +000030439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030440$as_echo "$GSAlphaDevice" >&6; }
30441
30442 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030444$as_echo_n "checking for gs color device... " >&6; }
30445 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30446 :
30447 else
30448 GSColorDevice=pnmraw
30449 fi
cristy8b350f62009-11-15 23:12:43 +000030450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030451$as_echo "$GSColorDevice" >&6; }
30452
30453 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030455$as_echo_n "checking for gs CMYK device... " >&6; }
30456 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30457 :
30458 else
30459 GSCMYKDevice=bmpsep8
30460 fi
cristy8b350f62009-11-15 23:12:43 +000030461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030462$as_echo "$GSCMYKDevice" >&6; }
30463
30464 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030466$as_echo_n "checking for gs mono device... " >&6; }
30467 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30468 :
30469 else
30470 GSMonoDevice=$GSColorDevice
30471 fi
cristy8b350f62009-11-15 23:12:43 +000030472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030473$as_echo "$GSMonoDevice" >&6; }
30474
30475 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000030476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030477$as_echo_n "checking for gs PDF writing device... " >&6; }
30478 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30479 :
30480 else
30481 GSPDFDevice=nodevice
30482 fi
cristy8b350f62009-11-15 23:12:43 +000030483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030484$as_echo "$GSPDFDevice" >&6; }
30485
30486 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000030487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030488$as_echo_n "checking for gs PS writing device... " >&6; }
30489 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30490 :
30491 else
30492 GSPSDevice=nodevice
30493 fi
cristy8b350f62009-11-15 23:12:43 +000030494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030495$as_echo "$GSPSDevice" >&6; }
30496
30497 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000030498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030499$as_echo_n "checking for gs EPS writing device... " >&6; }
30500 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30501 :
30502 else
30503 GSEPSDevice=nodevice
30504 fi
cristy8b350f62009-11-15 23:12:43 +000030505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030506$as_echo "$GSEPSDevice" >&6; }
30507fi
30508
30509
30510
30511
30512
30513
30514
30515
30516
30517
30518#
30519# PerlMagick-related configuration
30520#
30521
30522# Look for PERL if PerlMagick requested
30523# If name/path of desired PERL interpreter is specified, look for that one first
30524have_perl='no'
30525if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030527$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030529$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030531$as_echo "" >&6; }
30532 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030534$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030535if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030536 $as_echo_n "(cached) " >&6
30537else
30538 ac_cv_path_PERL="$with_perl"
30539fi
cristy8b350f62009-11-15 23:12:43 +000030540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030541$as_echo "$ac_cv_path_PERL" >&6; };
30542 PERL=$ac_cv_path_PERL
30543 have_perl="$ac_cv_path_PERL"
30544 else
30545 for ac_prog in perl perl5
30546do
30547 # Extract the first word of "$ac_prog", so it can be a program name with args.
30548set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030550$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030551if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030552 $as_echo_n "(cached) " >&6
30553else
30554 case $PERL in
30555 [\\/]* | ?:[\\/]*)
30556 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30557 ;;
30558 *)
30559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30560for as_dir in $PATH
30561do
30562 IFS=$as_save_IFS
30563 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030564 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30566 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030568 break 2
30569 fi
30570done
cristy8b350f62009-11-15 23:12:43 +000030571 done
cristy3ed852e2009-09-05 21:47:34 +000030572IFS=$as_save_IFS
30573
30574 ;;
30575esac
30576fi
30577PERL=$ac_cv_path_PERL
30578if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030580$as_echo "$PERL" >&6; }
30581else
cristy8b350f62009-11-15 23:12:43 +000030582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030583$as_echo "no" >&6; }
30584fi
30585
30586
30587 test -n "$PERL" && break
30588done
30589 if test "$ac_cv_path_PERL"; then
30590 have_perl="$ac_cv_path_PERL"
30591 fi
30592 fi
30593fi
30594
30595with_perl_static='no'
30596with_perl_dynamic='no'
30597if test "$have_perl" != 'no'; then
30598 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
30599 with_perl_static='yes'
30600 fi
30601 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
30602 with_perl_dynamic='yes'
30603 fi
30604 # Is PERL's MakeMaker new enough to support DESTDIR?
30605 # Make sure we have perl
30606if test -z "$PERL"; then
30607# Extract the first word of "perl", so it can be a program name with args.
30608set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030610$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030611if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030612 $as_echo_n "(cached) " >&6
30613else
30614 if test -n "$PERL"; then
30615 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30616else
30617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30618for as_dir in $PATH
30619do
30620 IFS=$as_save_IFS
30621 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030622 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30624 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000030625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030626 break 2
30627 fi
30628done
cristy8b350f62009-11-15 23:12:43 +000030629 done
cristy3ed852e2009-09-05 21:47:34 +000030630IFS=$as_save_IFS
30631
30632fi
30633fi
30634PERL=$ac_cv_prog_PERL
30635if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030637$as_echo "$PERL" >&6; }
30638else
cristy8b350f62009-11-15 23:12:43 +000030639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030640$as_echo "no" >&6; }
30641fi
30642
30643
30644fi
30645
30646# Check if version of Perl is sufficient
30647ac_perl_version="5.8.1"
30648
30649if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000030650 { $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 +000030651$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
30652 # NB: It would be nice to log the error if there is one, but we cannot rely
30653 # on autoconf internals
30654 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
30655 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000030656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030657$as_echo "no" >&6; };
30658 PERL_SUPPORTS_DESTDIR='no'
30659 else
cristy8b350f62009-11-15 23:12:43 +000030660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030661$as_echo "ok" >&6; };
30662 PERL_SUPPORTS_DESTDIR='yes'
30663 fi
30664else
cristy8b350f62009-11-15 23:12:43 +000030665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030666$as_echo "$as_me: WARNING: could not find perl" >&2;}
30667fi
30668
30669fi
30670 if test "$have_perl" != 'no'; then
30671 WITH_PERL_TRUE=
30672 WITH_PERL_FALSE='#'
30673else
30674 WITH_PERL_TRUE='#'
30675 WITH_PERL_FALSE=
30676fi
30677
30678 if test $with_perl_static = 'yes'; then
30679 WITH_PERL_STATIC_TRUE=
30680 WITH_PERL_STATIC_FALSE='#'
30681else
30682 WITH_PERL_STATIC_TRUE='#'
30683 WITH_PERL_STATIC_FALSE=
30684fi
30685
30686 if test $with_perl_dynamic = 'yes'; then
30687 WITH_PERL_DYNAMIC_TRUE=
30688 WITH_PERL_DYNAMIC_FALSE='#'
30689else
30690 WITH_PERL_DYNAMIC_TRUE='#'
30691 WITH_PERL_DYNAMIC_FALSE=
30692fi
30693
30694
30695
30696# Determine path to pick up MagickCore library from for use with building PerlMagick
30697MAGICKCORE_PATH="${LIB_DIR}"
30698if test $with_perl_static = 'yes'; then
30699 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
30700 libtool_objdir=$objdir
30701
30702 # Linker search path to library, followed by -lMagickCore
30703 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
30704fi
30705
30706
30707# Create a simple string containing format names for all delegate libraries
30708DELEGATES=''
30709if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
30710if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
30711if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
30712if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
30713if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
30714if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
30715if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
30716if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
30717if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
30718if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
30719if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
30720if test "$have_jpeg" = 'yes'; then
30721 DELEGATES="$DELEGATES jpeg";
30722 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
30723fi
30724if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
30725if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
30726if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
30727if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
30728if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
30729if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
30730if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
30731if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
30732if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
30733if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
30734if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
30735if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
30736
30737
30738
30739#
30740# Handle special compiler flags
30741#
30742
30743# Add '-p' if prof source profiling support enabled
30744if test "$enable_prof" = 'yes'; then
30745 CFLAGS="-p $CFLAGS"
30746 CXXFLAGS="-p $CXXFLAGS"
30747 LDFLAGS="-p $LDFLAGS"
30748fi
30749
30750# Add '-pg' if gprof source profiling support enabled
30751if test "$enable_gprof" = 'yes'; then
30752 CFLAGS="-pg $CFLAGS"
30753 CXXFLAGS="-pg $CXXFLAGS"
30754 LDFLAGS="-pg $LDFLAGS"
30755fi
30756
30757# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
30758# This is a gcc-specific feature
30759if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030761$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030762if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030763 $as_echo_n "(cached) " >&6
30764else
30765 ac_check_lib_save_LIBS=$LIBS
30766LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030768/* end confdefs.h. */
30769
30770/* Override any GCC internal prototype to avoid an error.
30771 Use char because int might match the return type of a GCC
30772 builtin and then its argument prototype would still apply. */
30773#ifdef __cplusplus
30774extern "C"
30775#endif
30776char _gcov_init ();
30777int
30778main ()
30779{
30780return _gcov_init ();
30781 ;
30782 return 0;
30783}
30784_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030785if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030786 ac_cv_lib_gcov__gcov_init=yes
30787else
cristy8b350f62009-11-15 23:12:43 +000030788 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030789fi
cristy8b350f62009-11-15 23:12:43 +000030790rm -f core conftest.err conftest.$ac_objext \
30791 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030792LIBS=$ac_check_lib_save_LIBS
30793fi
cristy8b350f62009-11-15 23:12:43 +000030794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030795$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030796if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030797 cat >>confdefs.h <<_ACEOF
30798#define HAVE_LIBGCOV 1
30799_ACEOF
30800
30801 LIBS="-lgcov $LIBS"
30802
30803fi
30804
cristy8b350f62009-11-15 23:12:43 +000030805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030806$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030807if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030808 $as_echo_n "(cached) " >&6
30809else
30810 ac_check_lib_save_LIBS=$LIBS
30811LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030813/* end confdefs.h. */
30814
30815/* Override any GCC internal prototype to avoid an error.
30816 Use char because int might match the return type of a GCC
30817 builtin and then its argument prototype would still apply. */
30818#ifdef __cplusplus
30819extern "C"
30820#endif
30821char __gcov_init ();
30822int
30823main ()
30824{
30825return __gcov_init ();
30826 ;
30827 return 0;
30828}
30829_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030830if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030831 ac_cv_lib_gcov___gcov_init=yes
30832else
cristy8b350f62009-11-15 23:12:43 +000030833 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030834fi
cristy8b350f62009-11-15 23:12:43 +000030835rm -f core conftest.err conftest.$ac_objext \
30836 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030837LIBS=$ac_check_lib_save_LIBS
30838fi
cristy8b350f62009-11-15 23:12:43 +000030839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030840$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030841if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030842 cat >>confdefs.h <<_ACEOF
30843#define HAVE_LIBGCOV 1
30844_ACEOF
30845
30846 LIBS="-lgcov $LIBS"
30847
30848fi
30849
30850 case "$target_os" in
30851 darwin*)
30852 OSX_GCOV_LDFLAG="-Wl,-single_module"
30853 ;;
30854 *)
30855 OSX_GCOV_LDFLAG=""
30856 ;;
30857 esac
30858
30859 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
30860 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
30861 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
30862fi
30863
30864#
30865# Build library dependency list for libMagickCore
30866#
30867
30868MAGICK_LIBLTDL='' # Libltdl for build
30869MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
30870MAGICK_LTDLDEPS='' # extra libltdl dependencies
30871if test "$with_ltdl" != 'no'
30872then
30873 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
30874 MAGICK_API_LIBLTDL='-lltdl'
30875 fi
30876 MAGICK_LIBLTDL=${LIBLTDL}
30877 MAGICK_LTDLDEPS=${LTDLDEPS}
30878fi
30879
30880
30881
30882if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000030883 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 +000030884else
cristy2e8b51d2009-10-17 18:26:15 +000030885 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 +000030886fi
30887
30888
30889#
30890# Remove extraneous spaces from output variables (asthetic)
30891#
30892X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
30893X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
30894X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
30895X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
30896
30897CC=`echo $CC | sed -e 's/ */ /g'`
30898CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
30899CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
30900CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
30901DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
30902DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
30903LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
30904TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30905MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
30906#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30907
30908# Pass only user-provided LIBS as "global" libraries
30909LIBS=$USER_LIBS
30910
30911#AC_SUBST(CPPFLAGS)
30912
30913#AC_SUBST(LDFLAGS)
30914#AC_SUBST(X_PRE_LIBS)
30915#AC_SUBST(X_LIBS)
30916#AC_SUBST(X_EXTRA_LIBS)
30917
30918MAGICK_CFLAGS=$CFLAGS
30919MAGICK_CXXFLAGS="$CXXFLAGS"
30920MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
30921MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
30922MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
30923MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
30924
30925
30926
30927
30928
30929
30930
30931
30932# Set configured scripts to executable.
30933ac_config_commands="$ac_config_commands default"
30934
30935ac_config_commands="$ac_config_commands MagickCore-config.in"
30936
30937ac_config_commands="$ac_config_commands Magick-config.in"
30938
30939ac_config_commands="$ac_config_commands MagickWand-config.in"
30940
30941ac_config_commands="$ac_config_commands Wand-config.in"
30942
30943ac_config_commands="$ac_config_commands Magick++-config.in"
30944
30945ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
30946
30947
cristy8b350f62009-11-15 23:12:43 +000030948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030949$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000030951$as_echo "Update ImageMagick configuration" >&6; }
30952cat >confcache <<\_ACEOF
30953# This file is a shell script that caches the results of configure
30954# tests run on this system so they can be shared between configure
30955# scripts and configure runs, see configure's option --config-cache.
30956# It is not useful on other systems. If it contains results you don't
30957# want to keep, you may remove or edit it.
30958#
30959# config.status only pays attention to the cache file if you give it
30960# the --recheck option to rerun configure.
30961#
30962# `ac_cv_env_foo' variables (set or unset) will be overridden when
30963# loading this file, other *unset* `ac_cv_foo' will be assigned the
30964# following values.
30965
30966_ACEOF
30967
30968# The following way of writing the cache mishandles newlines in values,
30969# but we know of no workaround that is simple, portable, and efficient.
30970# So, we kill variables containing newlines.
30971# Ultrix sh set writes to stderr and can't be redirected directly,
30972# and sets the high bit in the cache file unless we assign to the vars.
30973(
30974 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30975 eval ac_val=\$$ac_var
30976 case $ac_val in #(
30977 *${as_nl}*)
30978 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000030979 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000030980$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30981 esac
30982 case $ac_var in #(
30983 _ | IFS | as_nl) ;; #(
30984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000030985 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000030986 esac ;;
30987 esac
30988 done
30989
30990 (set) 2>&1 |
30991 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30992 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000030993 # `set' does not quote correctly, so add quotes: double-quote
30994 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000030995 sed -n \
30996 "s/'/'\\\\''/g;
30997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30998 ;; #(
30999 *)
31000 # `set' quotes correctly as required by POSIX, so do not add quotes.
31001 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31002 ;;
31003 esac |
31004 sort
31005) |
31006 sed '
31007 /^ac_cv_env_/b end
31008 t clear
31009 :clear
31010 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31011 t end
31012 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31013 :end' >>confcache
31014if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31015 if test -w "$cache_file"; then
31016 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000031017 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031018$as_echo "$as_me: updating cache $cache_file" >&6;}
31019 cat confcache >$cache_file
31020 else
cristy8b350f62009-11-15 23:12:43 +000031021 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031022$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31023 fi
31024fi
31025rm -f confcache
31026
31027test "x$prefix" = xNONE && prefix=$ac_default_prefix
31028# Let make expand exec_prefix.
31029test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31030
31031DEFS=-DHAVE_CONFIG_H
31032
31033ac_libobjs=
31034ac_ltlibobjs=
31035for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31036 # 1. Remove the extension, and $U if already installed.
31037 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31038 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31039 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31040 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000031041 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31042 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000031043done
31044LIBOBJS=$ac_libobjs
31045
31046LTLIBOBJS=$ac_ltlibobjs
31047
31048
31049 if test -n "$EXEEXT"; then
31050 am__EXEEXT_TRUE=
31051 am__EXEEXT_FALSE='#'
31052else
31053 am__EXEEXT_TRUE='#'
31054 am__EXEEXT_FALSE=
31055fi
31056
31057if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031058 as_fn_error "conditional \"AMDEP\" was never defined.
31059Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031060fi
31061if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031062 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31063Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031064fi
31065if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031066 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31067Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031068fi
31069if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031070 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
31071Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031072fi
31073if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031074 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
31075Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031076fi
31077if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031078 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
31079Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031080fi
31081if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031082 as_fn_error "conditional \"USING_CL\" was never defined.
31083Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031084fi
31085if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031086 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31087Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031088fi
31089if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031090 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
31091Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031092fi
31093if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031094 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
31095Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031096fi
31097LT_CONFIG_H=config/config.h
31098
31099 _ltdl_libobjs=
31100 _ltdl_ltlibobjs=
31101 if test -n "$_LT_LIBOBJS"; then
31102 # Remove the extension.
31103 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
31104 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
31105 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
31106 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
31107 done
31108 fi
31109 ltdl_LIBOBJS=$_ltdl_libobjs
31110
31111 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
31112
31113
31114if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031115 as_fn_error "conditional \"WITH_MODULES\" was never defined.
31116Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031117fi
31118if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031119 as_fn_error "conditional \"WITH_LTDL\" was never defined.
31120Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031121fi
31122if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031123 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
31124Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031125fi
31126
31127if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031128 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31129Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031130fi
31131if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031132 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
31133Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031134fi
31135if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031136 as_fn_error "conditional \"HasUMEM\" was never defined.
31137Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031138fi
31139if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031140 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
31141Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031142fi
31143if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031144 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
31145Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031146fi
31147if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031148 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
31149Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031150fi
31151if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031152 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
31153Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031154fi
31155if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031156 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
31157Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031158fi
31159if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031160 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
31161Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031162fi
31163if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031164 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
31165Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031166fi
31167if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031168 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
31169Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031170fi
31171if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031172 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
31173Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031174fi
31175if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031176 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
31177Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031178fi
31179if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031180 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
31181Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031182fi
31183if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031184 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
31185Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031186fi
31187if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031188 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
31189Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031190fi
31191if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031192 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
31193Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031194fi
31195if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031196 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
31197Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031198fi
31199if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031200 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
31201Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031202fi
31203if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031204 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
31205Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031206fi
31207if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031208 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
31209Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031210fi
31211if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031212 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
31213Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031214fi
31215if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031216 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
31217Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031218fi
31219if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031220 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
31221Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031222fi
31223if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031224 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
31225Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031226fi
31227if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031228 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
31229Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031230fi
31231if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031232 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
31233Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031234fi
31235if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031236 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
31237Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031238fi
31239if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031240 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
31241Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031242fi
31243if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031244 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
31245Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031246fi
31247if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031248 as_fn_error "conditional \"WITH_PERL\" was never defined.
31249Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031250fi
31251if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031252 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
31253Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031254fi
31255if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031256 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
31257Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031258fi
31259
31260: ${CONFIG_STATUS=./config.status}
31261ac_write_fail=0
31262ac_clean_files_save=$ac_clean_files
31263ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000031264{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031265$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031266as_write_fail=0
31267cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031268#! $SHELL
31269# Generated by $as_me.
31270# Run this file to recreate the current configuration.
31271# Compiler output produced by configure, useful for debugging
31272# configure, is in config.log if it exists.
31273
31274debug=false
31275ac_cs_recheck=false
31276ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000031277
cristy8b350f62009-11-15 23:12:43 +000031278SHELL=\${CONFIG_SHELL-$SHELL}
31279export SHELL
31280_ASEOF
31281cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31282## -------------------- ##
31283## M4sh Initialization. ##
31284## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000031285
31286# Be more Bourne compatible
31287DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000031288if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000031289 emulate sh
31290 NULLCMD=:
31291 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31292 # is contrary to our usage. Disable this feature.
31293 alias -g '${1+"$@"}'='"$@"'
31294 setopt NO_GLOB_SUBST
31295else
cristy8b350f62009-11-15 23:12:43 +000031296 case `(set -o) 2>/dev/null` in #(
31297 *posix*) :
31298 set -o posix ;; #(
31299 *) :
31300 ;;
cristy3ed852e2009-09-05 21:47:34 +000031301esac
cristy3ed852e2009-09-05 21:47:34 +000031302fi
31303
31304
cristy3ed852e2009-09-05 21:47:34 +000031305as_nl='
31306'
31307export as_nl
31308# Printing a long string crashes Solaris 7 /usr/bin/printf.
31309as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31310as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31311as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000031312# Prefer a ksh shell builtin over an external printf program on Solaris,
31313# but without wasting forks for bash or zsh.
31314if test -z "$BASH_VERSION$ZSH_VERSION" \
31315 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31316 as_echo='print -r --'
31317 as_echo_n='print -rn --'
31318elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000031319 as_echo='printf %s\n'
31320 as_echo_n='printf %s'
31321else
31322 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31323 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31324 as_echo_n='/usr/ucb/echo -n'
31325 else
31326 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31327 as_echo_n_body='eval
31328 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000031329 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000031330 *"$as_nl"*)
31331 expr "X$arg" : "X\\(.*\\)$as_nl";
31332 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31333 esac;
31334 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31335 '
31336 export as_echo_n_body
31337 as_echo_n='sh -c $as_echo_n_body as_echo'
31338 fi
31339 export as_echo_body
31340 as_echo='sh -c $as_echo_body as_echo'
31341fi
31342
31343# The user is always right.
31344if test "${PATH_SEPARATOR+set}" != set; then
31345 PATH_SEPARATOR=:
31346 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31347 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31348 PATH_SEPARATOR=';'
31349 }
31350fi
31351
cristy3ed852e2009-09-05 21:47:34 +000031352
31353# IFS
31354# We need space, tab and new line, in precisely that order. Quoting is
31355# there to prevent editors from complaining about space-tab.
31356# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31357# splitting by setting IFS to empty value.)
31358IFS=" "" $as_nl"
31359
31360# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000031361case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000031362 *[\\/]* ) as_myself=$0 ;;
31363 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31364for as_dir in $PATH
31365do
31366 IFS=$as_save_IFS
31367 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031368 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31369 done
cristy3ed852e2009-09-05 21:47:34 +000031370IFS=$as_save_IFS
31371
31372 ;;
31373esac
31374# We did not find ourselves, most probably we were run as `sh COMMAND'
31375# in which case we are not to be found in the path.
31376if test "x$as_myself" = x; then
31377 as_myself=$0
31378fi
31379if test ! -f "$as_myself"; then
31380 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000031381 exit 1
cristy3ed852e2009-09-05 21:47:34 +000031382fi
31383
cristy8b350f62009-11-15 23:12:43 +000031384# Unset variables that we do not need and which cause bugs (e.g. in
31385# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31386# suppresses any "Segmentation fault" message there. '((' could
31387# trigger a bug in pdksh 5.2.14.
31388for as_var in BASH_ENV ENV MAIL MAILPATH
31389do eval test x\${$as_var+set} = xset \
31390 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000031391done
31392PS1='$ '
31393PS2='> '
31394PS4='+ '
31395
31396# NLS nuisances.
31397LC_ALL=C
31398export LC_ALL
31399LANGUAGE=C
31400export LANGUAGE
31401
cristy8b350f62009-11-15 23:12:43 +000031402# CDPATH.
31403(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31404
31405
31406# as_fn_error ERROR [LINENO LOG_FD]
31407# ---------------------------------
31408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31410# script with status $?, using 1 if that was 0.
31411as_fn_error ()
31412{
31413 as_status=$?; test $as_status -eq 0 && as_status=1
31414 if test "$3"; then
31415 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
31417 fi
31418 $as_echo "$as_me: error: $1" >&2
31419 as_fn_exit $as_status
31420} # as_fn_error
31421
31422
31423# as_fn_set_status STATUS
31424# -----------------------
31425# Set $? to STATUS, without forking.
31426as_fn_set_status ()
31427{
31428 return $1
31429} # as_fn_set_status
31430
31431# as_fn_exit STATUS
31432# -----------------
31433# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31434as_fn_exit ()
31435{
31436 set +e
31437 as_fn_set_status $1
31438 exit $1
31439} # as_fn_exit
31440
31441# as_fn_unset VAR
31442# ---------------
31443# Portably unset VAR.
31444as_fn_unset ()
31445{
31446 { eval $1=; unset $1;}
31447}
31448as_unset=as_fn_unset
31449# as_fn_append VAR VALUE
31450# ----------------------
31451# Append the text in VALUE to the end of the definition contained in VAR. Take
31452# advantage of any shell optimizations that allow amortized linear growth over
31453# repeated appends, instead of the typical quadratic growth present in naive
31454# implementations.
31455if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31456 eval 'as_fn_append ()
31457 {
31458 eval $1+=\$2
31459 }'
31460else
31461 as_fn_append ()
31462 {
31463 eval $1=\$$1\$2
31464 }
31465fi # as_fn_append
31466
31467# as_fn_arith ARG...
31468# ------------------
31469# Perform arithmetic evaluation on the ARGs, and store the result in the
31470# global $as_val. Take advantage of shells that can avoid forks. The arguments
31471# must be portable across $(()) and expr.
31472if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31473 eval 'as_fn_arith ()
31474 {
31475 as_val=$(( $* ))
31476 }'
31477else
31478 as_fn_arith ()
31479 {
31480 as_val=`expr "$@" || test $? -eq 1`
31481 }
31482fi # as_fn_arith
31483
31484
cristy3ed852e2009-09-05 21:47:34 +000031485if expr a : '\(a\)' >/dev/null 2>&1 &&
31486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31487 as_expr=expr
31488else
31489 as_expr=false
31490fi
31491
31492if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31493 as_basename=basename
31494else
31495 as_basename=false
31496fi
31497
cristy8b350f62009-11-15 23:12:43 +000031498if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31499 as_dirname=dirname
31500else
31501 as_dirname=false
31502fi
cristy3ed852e2009-09-05 21:47:34 +000031503
cristy3ed852e2009-09-05 21:47:34 +000031504as_me=`$as_basename -- "$0" ||
31505$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31506 X"$0" : 'X\(//\)$' \| \
31507 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31508$as_echo X/"$0" |
31509 sed '/^.*\/\([^/][^/]*\)\/*$/{
31510 s//\1/
31511 q
31512 }
31513 /^X\/\(\/\/\)$/{
31514 s//\1/
31515 q
31516 }
31517 /^X\/\(\/\).*/{
31518 s//\1/
31519 q
31520 }
31521 s/.*/./; q'`
31522
cristy8b350f62009-11-15 23:12:43 +000031523# Avoid depending upon Character Ranges.
31524as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31525as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31526as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31527as_cr_digits='0123456789'
31528as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000031529
31530ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000031531case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000031532-n*)
cristy8b350f62009-11-15 23:12:43 +000031533 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000031534 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000031535 xy) ECHO_C='\c';;
31536 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31537 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000031538 esac;;
31539*)
31540 ECHO_N='-n';;
31541esac
cristy3ed852e2009-09-05 21:47:34 +000031542
31543rm -f conf$$ conf$$.exe conf$$.file
31544if test -d conf$$.dir; then
31545 rm -f conf$$.dir/conf$$.file
31546else
31547 rm -f conf$$.dir
31548 mkdir conf$$.dir 2>/dev/null
31549fi
31550if (echo >conf$$.file) 2>/dev/null; then
31551 if ln -s conf$$.file conf$$ 2>/dev/null; then
31552 as_ln_s='ln -s'
31553 # ... but there are two gotchas:
31554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31556 # In both cases, we have to default to `cp -p'.
31557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31558 as_ln_s='cp -p'
31559 elif ln conf$$.file conf$$ 2>/dev/null; then
31560 as_ln_s=ln
31561 else
31562 as_ln_s='cp -p'
31563 fi
31564else
31565 as_ln_s='cp -p'
31566fi
31567rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31568rmdir conf$$.dir 2>/dev/null
31569
cristy8b350f62009-11-15 23:12:43 +000031570
31571# as_fn_mkdir_p
31572# -------------
31573# Create "$as_dir" as a directory, including parents if necessary.
31574as_fn_mkdir_p ()
31575{
31576
31577 case $as_dir in #(
31578 -*) as_dir=./$as_dir;;
31579 esac
31580 test -d "$as_dir" || eval $as_mkdir_p || {
31581 as_dirs=
31582 while :; do
31583 case $as_dir in #(
31584 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31585 *) as_qdir=$as_dir;;
31586 esac
31587 as_dirs="'$as_qdir' $as_dirs"
31588 as_dir=`$as_dirname -- "$as_dir" ||
31589$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31590 X"$as_dir" : 'X\(//\)[^/]' \| \
31591 X"$as_dir" : 'X\(//\)$' \| \
31592 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31593$as_echo X"$as_dir" |
31594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31595 s//\1/
31596 q
31597 }
31598 /^X\(\/\/\)[^/].*/{
31599 s//\1/
31600 q
31601 }
31602 /^X\(\/\/\)$/{
31603 s//\1/
31604 q
31605 }
31606 /^X\(\/\).*/{
31607 s//\1/
31608 q
31609 }
31610 s/.*/./; q'`
31611 test -d "$as_dir" && break
31612 done
31613 test -z "$as_dirs" || eval "mkdir $as_dirs"
31614 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
31615
31616
31617} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000031618if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000031619 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000031620else
31621 test -d ./-p && rmdir ./-p
31622 as_mkdir_p=false
31623fi
31624
31625if test -x / >/dev/null 2>&1; then
31626 as_test_x='test -x'
31627else
31628 if ls -dL / >/dev/null 2>&1; then
31629 as_ls_L_option=L
31630 else
31631 as_ls_L_option=
31632 fi
31633 as_test_x='
31634 eval sh -c '\''
31635 if test -d "$1"; then
31636 test -d "$1/.";
31637 else
cristy8b350f62009-11-15 23:12:43 +000031638 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000031639 -*)set "./$1";;
31640 esac;
cristy8b350f62009-11-15 23:12:43 +000031641 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000031642 ???[sx]*):;;*)false;;esac;fi
31643 '\'' sh
31644 '
31645fi
31646as_executable_p=$as_test_x
31647
31648# Sed expression to map a string onto a valid CPP name.
31649as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31650
31651# Sed expression to map a string onto a valid variable name.
31652as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31653
31654
31655exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000031656## ----------------------------------- ##
31657## Main body of $CONFIG_STATUS script. ##
31658## ----------------------------------- ##
31659_ASEOF
31660test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031661
cristy8b350f62009-11-15 23:12:43 +000031662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31663# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000031664# report actual input values of CONFIG_FILES etc. instead of their
31665# values after options handling.
31666ac_log="
cristyd934d102009-10-10 12:55:13 +000031667This file was extended by ImageMagick $as_me 6.5.7, which was
cristy8b350f62009-11-15 23:12:43 +000031668generated by GNU Autoconf 2.64. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000031669
31670 CONFIG_FILES = $CONFIG_FILES
31671 CONFIG_HEADERS = $CONFIG_HEADERS
31672 CONFIG_LINKS = $CONFIG_LINKS
31673 CONFIG_COMMANDS = $CONFIG_COMMANDS
31674 $ $0 $@
31675
31676on `(hostname || uname -n) 2>/dev/null | sed 1q`
31677"
31678
31679_ACEOF
31680
31681case $ac_config_files in *"
31682"*) set x $ac_config_files; shift; ac_config_files=$*;;
31683esac
31684
31685case $ac_config_headers in *"
31686"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31687esac
31688
31689
31690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31691# Files that config.status was made for.
31692config_files="$ac_config_files"
31693config_headers="$ac_config_headers"
31694config_commands="$ac_config_commands"
31695
31696_ACEOF
31697
31698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31699ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000031700\`$as_me' instantiates files and other configuration actions
31701from templates according to the current configuration. Unless the files
31702and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000031703
cristy8b350f62009-11-15 23:12:43 +000031704Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000031705
31706 -h, --help print this help, then exit
31707 -V, --version print version number and configuration settings, then exit
31708 -q, --quiet, --silent
31709 do not print progress messages
31710 -d, --debug don't remove temporary files
31711 --recheck update $as_me by reconfiguring in the same conditions
31712 --file=FILE[:TEMPLATE]
31713 instantiate the configuration file FILE
31714 --header=FILE[:TEMPLATE]
31715 instantiate the configuration header FILE
31716
31717Configuration files:
31718$config_files
31719
31720Configuration headers:
31721$config_headers
31722
31723Configuration commands:
31724$config_commands
31725
cristy8b350f62009-11-15 23:12:43 +000031726Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000031727
31728_ACEOF
31729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31730ac_cs_version="\\
cristyd934d102009-10-10 12:55:13 +000031731ImageMagick config.status 6.5.7
cristy8b350f62009-11-15 23:12:43 +000031732configured by $0, generated by GNU Autoconf 2.64,
cristy3ed852e2009-09-05 21:47:34 +000031733 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31734
cristy8b350f62009-11-15 23:12:43 +000031735Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000031736This config.status script is free software; the Free Software Foundation
31737gives unlimited permission to copy, distribute and modify it."
31738
31739ac_pwd='$ac_pwd'
31740srcdir='$srcdir'
31741INSTALL='$INSTALL'
31742MKDIR_P='$MKDIR_P'
31743AWK='$AWK'
31744test -n "\$AWK" || AWK=awk
31745_ACEOF
31746
31747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31748# The default lists apply if the user does not specify any file.
31749ac_need_defaults=:
31750while test $# != 0
31751do
31752 case $1 in
31753 --*=*)
31754 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31755 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31756 ac_shift=:
31757 ;;
31758 *)
31759 ac_option=$1
31760 ac_optarg=$2
31761 ac_shift=shift
31762 ;;
31763 esac
31764
31765 case $ac_option in
31766 # Handling of the options.
31767 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31768 ac_cs_recheck=: ;;
31769 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31770 $as_echo "$ac_cs_version"; exit ;;
31771 --debug | --debu | --deb | --de | --d | -d )
31772 debug=: ;;
31773 --file | --fil | --fi | --f )
31774 $ac_shift
31775 case $ac_optarg in
31776 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31777 esac
cristy8b350f62009-11-15 23:12:43 +000031778 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031779 ac_need_defaults=false;;
31780 --header | --heade | --head | --hea )
31781 $ac_shift
31782 case $ac_optarg in
31783 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31784 esac
cristy8b350f62009-11-15 23:12:43 +000031785 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031786 ac_need_defaults=false;;
31787 --he | --h)
31788 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000031789 as_fn_error "ambiguous option: \`$1'
31790Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000031791 --help | --hel | -h )
31792 $as_echo "$ac_cs_usage"; exit ;;
31793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31794 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31795 ac_cs_silent=: ;;
31796
31797 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000031798 -*) as_fn_error "unrecognized option: \`$1'
31799Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000031800
cristy8b350f62009-11-15 23:12:43 +000031801 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000031802 ac_need_defaults=false ;;
31803
31804 esac
31805 shift
31806done
31807
31808ac_configure_extra_args=
31809
31810if $ac_cs_silent; then
31811 exec 6>/dev/null
31812 ac_configure_extra_args="$ac_configure_extra_args --silent"
31813fi
31814
31815_ACEOF
31816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31817if \$ac_cs_recheck; then
31818 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31819 shift
31820 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31821 CONFIG_SHELL='$SHELL'
31822 export CONFIG_SHELL
31823 exec "\$@"
31824fi
31825
31826_ACEOF
31827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31828exec 5>>config.log
31829{
31830 echo
31831 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31832## Running $as_me. ##
31833_ASBOX
31834 $as_echo "$ac_log"
31835} >&5
31836
31837_ACEOF
31838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31839#
31840# INIT-COMMANDS
31841#
31842PACKAGE="$PACKAGE"
31843AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31844
31845
31846# The HP-UX ksh and POSIX shell print the target directory to stdout
31847# if CDPATH is set.
31848(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31849
31850sed_quote_subst='$sed_quote_subst'
31851double_quote_subst='$double_quote_subst'
31852delay_variable_subst='$delay_variable_subst'
31853SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
31854Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
31855GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
31856EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
31857FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
31858LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
31859macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
31860macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
31861AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
31862DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31863OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
31864enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
31865enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
31866pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
31867enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
31868host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
31869host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
31870host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
31871build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
31872build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
31873build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
31874NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
31875LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
31876max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
31877ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
31878exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
31879lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
31880lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
31881lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
31882reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
31883reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31884deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
31885file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
31886AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
31887AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31888STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
31889RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
31890old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31891old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31892old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31893CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
31894CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31895compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
31896GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
31897lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
31898lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
31899lt_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"`'
31900lt_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"`'
31901objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
31902SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
31903ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
31904MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
31905lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
31906lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
31907lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
31908lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
31909lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
31910need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
31911DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
31912NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
31913LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
31914OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31915OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
31916libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
31917shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31918extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31919archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
31920enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
31921export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31922whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31923compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
31924old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31925old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31926archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31927archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31928module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31929module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31930with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
31931allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31932no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31933hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31934hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
31935hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
31936hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
31937hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
31938hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
31939hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31940hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
31941inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
31942link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
31943fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
31944always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
31945export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31946exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31947include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31948prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31949file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
31950variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
31951need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
31952need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
31953version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
31954runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31955shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31956shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
31957libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
31958library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
31959soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
31960postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31961postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31962finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31963finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
31964hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
31965sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
31966sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
31967hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
31968enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
31969enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
31970enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
31971old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
31972striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
31973compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
31974predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
31975postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
31976predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
31977postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
31978compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
31979LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31980old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31981compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31982GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31983lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31984lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31985lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31986lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31987lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31988archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31989enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31990export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31991whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31992compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31993old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31994old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31995archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31996archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31997module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31998module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31999with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32000allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32001no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32002hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32003hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32004hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32005hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32006hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32007hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32008hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32009hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32010inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32011link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32012fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32013always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32014export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32015exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32016include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32017prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32018file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32019hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32020compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32021predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32022postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32023predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32024postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32025compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32026
32027LTCC='$LTCC'
32028LTCFLAGS='$LTCFLAGS'
32029compiler='$compiler_DEFAULT'
32030
32031# Quote evaled strings.
32032for var in SED \
32033GREP \
32034EGREP \
32035FGREP \
32036LD \
32037NM \
32038LN_S \
32039lt_SP2NL \
32040lt_NL2SP \
32041reload_flag \
32042deplibs_check_method \
32043file_magic_cmd \
32044AR \
32045AR_FLAGS \
32046STRIP \
32047RANLIB \
32048CC \
32049CFLAGS \
32050compiler \
32051lt_cv_sys_global_symbol_pipe \
32052lt_cv_sys_global_symbol_to_cdecl \
32053lt_cv_sys_global_symbol_to_c_name_address \
32054lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32055SHELL \
32056ECHO \
32057lt_prog_compiler_no_builtin_flag \
32058lt_prog_compiler_wl \
32059lt_prog_compiler_pic \
32060lt_prog_compiler_static \
32061lt_cv_prog_compiler_c_o \
32062need_locks \
32063DSYMUTIL \
32064NMEDIT \
32065LIPO \
32066OTOOL \
32067OTOOL64 \
32068shrext_cmds \
32069export_dynamic_flag_spec \
32070whole_archive_flag_spec \
32071compiler_needs_object \
32072with_gnu_ld \
32073allow_undefined_flag \
32074no_undefined_flag \
32075hardcode_libdir_flag_spec \
32076hardcode_libdir_flag_spec_ld \
32077hardcode_libdir_separator \
32078fix_srcfile_path \
32079exclude_expsyms \
32080include_expsyms \
32081file_list_spec \
32082variables_saved_for_relink \
32083libname_spec \
32084library_names_spec \
32085soname_spec \
32086finish_eval \
32087old_striplib \
32088striplib \
32089compiler_lib_search_dirs \
32090predep_objects \
32091postdep_objects \
32092predeps \
32093postdeps \
32094compiler_lib_search_path \
32095LD_CXX \
32096compiler_CXX \
32097lt_prog_compiler_no_builtin_flag_CXX \
32098lt_prog_compiler_wl_CXX \
32099lt_prog_compiler_pic_CXX \
32100lt_prog_compiler_static_CXX \
32101lt_cv_prog_compiler_c_o_CXX \
32102export_dynamic_flag_spec_CXX \
32103whole_archive_flag_spec_CXX \
32104compiler_needs_object_CXX \
32105with_gnu_ld_CXX \
32106allow_undefined_flag_CXX \
32107no_undefined_flag_CXX \
32108hardcode_libdir_flag_spec_CXX \
32109hardcode_libdir_flag_spec_ld_CXX \
32110hardcode_libdir_separator_CXX \
32111fix_srcfile_path_CXX \
32112exclude_expsyms_CXX \
32113include_expsyms_CXX \
32114file_list_spec_CXX \
32115compiler_lib_search_dirs_CXX \
32116predep_objects_CXX \
32117postdep_objects_CXX \
32118predeps_CXX \
32119postdeps_CXX \
32120compiler_lib_search_path_CXX; do
32121 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
32122 *[\\\\\\\`\\"\\\$]*)
32123 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32124 ;;
32125 *)
32126 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32127 ;;
32128 esac
32129done
32130
32131# Double-quote double-evaled strings.
32132for var in reload_cmds \
32133old_postinstall_cmds \
32134old_postuninstall_cmds \
32135old_archive_cmds \
32136extract_expsyms_cmds \
32137old_archive_from_new_cmds \
32138old_archive_from_expsyms_cmds \
32139archive_cmds \
32140archive_expsym_cmds \
32141module_cmds \
32142module_expsym_cmds \
32143export_symbols_cmds \
32144prelink_cmds \
32145postinstall_cmds \
32146postuninstall_cmds \
32147finish_cmds \
32148sys_lib_search_path_spec \
32149sys_lib_dlsearch_path_spec \
32150old_archive_cmds_CXX \
32151old_archive_from_new_cmds_CXX \
32152old_archive_from_expsyms_cmds_CXX \
32153archive_cmds_CXX \
32154archive_expsym_cmds_CXX \
32155module_cmds_CXX \
32156module_expsym_cmds_CXX \
32157export_symbols_cmds_CXX \
32158prelink_cmds_CXX; do
32159 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
32160 *[\\\\\\\`\\"\\\$]*)
32161 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32162 ;;
32163 *)
32164 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32165 ;;
32166 esac
32167done
32168
32169# Fix-up fallback echo if it was mangled by the above quoting rules.
32170case \$lt_ECHO in
32171*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
32172 ;;
32173esac
32174
32175ac_aux_dir='$ac_aux_dir'
32176xsi_shell='$xsi_shell'
32177lt_shell_append='$lt_shell_append'
32178
32179# See if we are running on zsh, and set the options which allow our
32180# commands through without removal of \ escapes INIT.
32181if test -n "\${ZSH_VERSION+set}" ; then
32182 setopt NO_GLOB_SUBST
32183fi
32184
32185
32186 PACKAGE='$PACKAGE'
32187 VERSION='$VERSION'
32188 TIMESTAMP='$TIMESTAMP'
32189 RM='$RM'
32190 ofile='$ofile'
32191
32192
32193
32194
32195
32196
32197_ACEOF
32198
32199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32200
32201# Handling of arguments.
32202for ac_config_target in $ac_config_targets
32203do
32204 case $ac_config_target in
32205 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32206 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32207 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32208 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32209 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32210 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32211 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
32212 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32213 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
32214 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
32215 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
32216 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
32217 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
32218 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
32219 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
32220 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
32221 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
32222 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
32223 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
32224 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32225 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
32226 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
32227 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
32228 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
32229 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
32230 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
32231 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
32232 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
32233 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
32234 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
32235 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
32236 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
32237 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
32238 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
32239 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
32240 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
32241 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
32242 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
32243 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
32244 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
32245 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32246 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32247 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32248 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
32249 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
32250 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
32251 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
32252 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
32253 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
32254
cristy8b350f62009-11-15 23:12:43 +000032255 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032256 esac
32257done
32258
32259
32260# If the user did not use the arguments to specify the items to instantiate,
32261# then the envvar interface is used. Set only those that are not.
32262# We use the long form for the default assignment because of an extremely
32263# bizarre bug on SunOS 4.1.3.
32264if $ac_need_defaults; then
32265 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32266 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32267 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32268fi
32269
32270# Have a temporary directory for convenience. Make it in the build tree
32271# simply because there is no reason against having it here, and in addition,
32272# creating and moving files from /tmp can sometimes cause problems.
32273# Hook for its removal unless debugging.
32274# Note that there is a small window in which the directory will not be cleaned:
32275# after its creation but before its name has been assigned to `$tmp'.
32276$debug ||
32277{
32278 tmp=
32279 trap 'exit_status=$?
32280 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32281' 0
cristy8b350f62009-11-15 23:12:43 +000032282 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000032283}
32284# Create a (secure) tmp directory for tmp files.
32285
32286{
32287 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32288 test -n "$tmp" && test -d "$tmp"
32289} ||
32290{
32291 tmp=./conf$$-$RANDOM
32292 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000032293} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032294
32295# Set up the scripts for CONFIG_FILES section.
32296# No need to generate them if there are no CONFIG_FILES.
32297# This happens for instance with `./config.status config.h'.
32298if test -n "$CONFIG_FILES"; then
32299
32300
cristy8b350f62009-11-15 23:12:43 +000032301ac_cr=`echo X | tr X '\015'`
32302# On cygwin, bash can eat \r inside `` if the user requested igncr.
32303# But we know of no other shell where ac_cr would be empty at this
32304# point, so we can use a bashism as a fallback.
32305if test "x$ac_cr" = x; then
32306 eval ac_cr=\$\'\\r\'
32307fi
cristy3ed852e2009-09-05 21:47:34 +000032308ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32309if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000032310 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000032311else
32312 ac_cs_awk_cr=$ac_cr
32313fi
32314
32315echo 'BEGIN {' >"$tmp/subs1.awk" &&
32316_ACEOF
32317
32318
32319{
32320 echo "cat >conf$$subs.awk <<_ACEOF" &&
32321 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32322 echo "_ACEOF"
32323} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032324 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032325ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32326ac_delim='%!_!# '
32327for ac_last_try in false false false false false :; do
32328 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032329 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032330
32331 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32332 if test $ac_delim_n = $ac_delim_num; then
32333 break
32334 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032335 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032336 else
32337 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32338 fi
32339done
32340rm -f conf$$subs.sh
32341
32342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32343cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32344_ACEOF
32345sed -n '
32346h
32347s/^/S["/; s/!.*/"]=/
32348p
32349g
32350s/^[^!]*!//
32351:repl
32352t repl
32353s/'"$ac_delim"'$//
32354t delim
32355:nl
32356h
32357s/\(.\{148\}\).*/\1/
32358t more1
32359s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32360p
32361n
32362b repl
32363:more1
32364s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32365p
32366g
32367s/.\{148\}//
32368t nl
32369:delim
32370h
32371s/\(.\{148\}\).*/\1/
32372t more2
32373s/["\\]/\\&/g; s/^/"/; s/$/"/
32374p
32375b
32376:more2
32377s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32378p
32379g
32380s/.\{148\}//
32381t delim
32382' <conf$$subs.awk | sed '
32383/^[^""]/{
32384 N
32385 s/\n//
32386}
32387' >>$CONFIG_STATUS || ac_write_fail=1
32388rm -f conf$$subs.awk
32389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32390_ACAWK
32391cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32392 for (key in S) S_is_set[key] = 1
32393 FS = ""
32394
32395}
32396{
32397 line = $ 0
32398 nfields = split(line, field, "@")
32399 substed = 0
32400 len = length(field[1])
32401 for (i = 2; i < nfields; i++) {
32402 key = field[i]
32403 keylen = length(key)
32404 if (S_is_set[key]) {
32405 value = S[key]
32406 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32407 len += length(value) + length(field[++i])
32408 substed = 1
32409 } else
32410 len += 1 + keylen
32411 }
32412
32413 print line
32414}
32415
32416_ACAWK
32417_ACEOF
32418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32419if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32420 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32421else
32422 cat
32423fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000032424 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032425_ACEOF
32426
32427# VPATH may cause trouble with some makes, so we remove $(srcdir),
32428# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32429# trailing colons and then remove the whole line if VPATH becomes empty
32430# (actually we leave an empty line to preserve line numbers).
32431if test "x$srcdir" = x.; then
32432 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32433s/:*\$(srcdir):*/:/
32434s/:*\${srcdir}:*/:/
32435s/:*@srcdir@:*/:/
32436s/^\([^=]*=[ ]*\):*/\1/
32437s/:*$//
32438s/^[^=]*=[ ]*$//
32439}'
32440fi
32441
32442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32443fi # test -n "$CONFIG_FILES"
32444
32445# Set up the scripts for CONFIG_HEADERS section.
32446# No need to generate them if there are no CONFIG_HEADERS.
32447# This happens for instance with `./config.status Makefile'.
32448if test -n "$CONFIG_HEADERS"; then
32449cat >"$tmp/defines.awk" <<\_ACAWK ||
32450BEGIN {
32451_ACEOF
32452
32453# Transform confdefs.h into an awk script `defines.awk', embedded as
32454# here-document in config.status, that substitutes the proper values into
32455# config.h.in to produce config.h.
32456
32457# Create a delimiter string that does not exist in confdefs.h, to ease
32458# handling of long lines.
32459ac_delim='%!_!# '
32460for ac_last_try in false false :; do
32461 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32462 if test -z "$ac_t"; then
32463 break
32464 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032465 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032466 else
32467 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32468 fi
32469done
32470
32471# For the awk script, D is an array of macro values keyed by name,
32472# likewise P contains macro parameters if any. Preserve backslash
32473# newline sequences.
32474
32475ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32476sed -n '
32477s/.\{148\}/&'"$ac_delim"'/g
32478t rset
32479:rset
32480s/^[ ]*#[ ]*define[ ][ ]*/ /
32481t def
32482d
32483:def
32484s/\\$//
32485t bsnl
32486s/["\\]/\\&/g
32487s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32488D["\1"]=" \3"/p
32489s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32490d
32491:bsnl
32492s/["\\]/\\&/g
32493s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32494D["\1"]=" \3\\\\\\n"\\/p
32495t cont
32496s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32497t cont
32498d
32499:cont
32500n
32501s/.\{148\}/&'"$ac_delim"'/g
32502t clear
32503:clear
32504s/\\$//
32505t bsnlc
32506s/["\\]/\\&/g; s/^/"/; s/$/"/p
32507d
32508:bsnlc
32509s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32510b cont
32511' <confdefs.h | sed '
32512s/'"$ac_delim"'/"\\\
32513"/g' >>$CONFIG_STATUS || ac_write_fail=1
32514
32515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32516 for (key in D) D_is_set[key] = 1
32517 FS = ""
32518}
32519/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32520 line = \$ 0
32521 split(line, arg, " ")
32522 if (arg[1] == "#") {
32523 defundef = arg[2]
32524 mac1 = arg[3]
32525 } else {
32526 defundef = substr(arg[1], 2)
32527 mac1 = arg[2]
32528 }
32529 split(mac1, mac2, "(") #)
32530 macro = mac2[1]
32531 prefix = substr(line, 1, index(line, defundef) - 1)
32532 if (D_is_set[macro]) {
32533 # Preserve the white space surrounding the "#".
32534 print prefix "define", macro P[macro] D[macro]
32535 next
32536 } else {
32537 # Replace #undef with comments. This is necessary, for example,
32538 # in the case of _POSIX_SOURCE, which is predefined and required
32539 # on some systems where configure will not decide to define it.
32540 if (defundef == "undef") {
32541 print "/*", prefix defundef, macro, "*/"
32542 next
32543 }
32544 }
32545}
32546{ print }
32547_ACAWK
32548_ACEOF
32549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000032550 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032551fi # test -n "$CONFIG_HEADERS"
32552
32553
32554eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32555shift
32556for ac_tag
32557do
32558 case $ac_tag in
32559 :[FHLC]) ac_mode=$ac_tag; continue;;
32560 esac
32561 case $ac_mode$ac_tag in
32562 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000032563 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032564 :[FH]-) ac_tag=-:-;;
32565 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32566 esac
32567 ac_save_IFS=$IFS
32568 IFS=:
32569 set x $ac_tag
32570 IFS=$ac_save_IFS
32571 shift
32572 ac_file=$1
32573 shift
32574
32575 case $ac_mode in
32576 :L) ac_source=$1;;
32577 :[FH])
32578 ac_file_inputs=
32579 for ac_f
32580 do
32581 case $ac_f in
32582 -) ac_f="$tmp/stdin";;
32583 *) # Look for the file first in the build tree, then in the source tree
32584 # (if the path is not absolute). The absolute path cannot be DOS-style,
32585 # because $ac_f cannot contain `:'.
32586 test -f "$ac_f" ||
32587 case $ac_f in
32588 [\\/$]*) false;;
32589 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32590 esac ||
cristy8b350f62009-11-15 23:12:43 +000032591 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032592 esac
32593 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000032594 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000032595 done
32596
32597 # Let's still pretend it is `configure' which instantiates (i.e., don't
32598 # use $as_me), people would be surprised to read:
32599 # /* config.h. Generated by config.status. */
32600 configure_input='Generated from '`
32601 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32602 `' by configure.'
32603 if test x"$ac_file" != x-; then
32604 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000032605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032606$as_echo "$as_me: creating $ac_file" >&6;}
32607 fi
32608 # Neutralize special characters interpreted by sed in replacement strings.
32609 case $configure_input in #(
32610 *\&* | *\|* | *\\* )
32611 ac_sed_conf_input=`$as_echo "$configure_input" |
32612 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32613 *) ac_sed_conf_input=$configure_input;;
32614 esac
32615
32616 case $ac_tag in
32617 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000032618 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000032619 esac
32620 ;;
32621 esac
32622
32623 ac_dir=`$as_dirname -- "$ac_file" ||
32624$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32625 X"$ac_file" : 'X\(//\)[^/]' \| \
32626 X"$ac_file" : 'X\(//\)$' \| \
32627 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32628$as_echo X"$ac_file" |
32629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32630 s//\1/
32631 q
32632 }
32633 /^X\(\/\/\)[^/].*/{
32634 s//\1/
32635 q
32636 }
32637 /^X\(\/\/\)$/{
32638 s//\1/
32639 q
32640 }
32641 /^X\(\/\).*/{
32642 s//\1/
32643 q
32644 }
32645 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032646 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032647 ac_builddir=.
32648
32649case "$ac_dir" in
32650.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32651*)
32652 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32653 # A ".." for each directory in $ac_dir_suffix.
32654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32655 case $ac_top_builddir_sub in
32656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32658 esac ;;
32659esac
32660ac_abs_top_builddir=$ac_pwd
32661ac_abs_builddir=$ac_pwd$ac_dir_suffix
32662# for backward compatibility:
32663ac_top_builddir=$ac_top_build_prefix
32664
32665case $srcdir in
32666 .) # We are building in place.
32667 ac_srcdir=.
32668 ac_top_srcdir=$ac_top_builddir_sub
32669 ac_abs_top_srcdir=$ac_pwd ;;
32670 [\\/]* | ?:[\\/]* ) # Absolute name.
32671 ac_srcdir=$srcdir$ac_dir_suffix;
32672 ac_top_srcdir=$srcdir
32673 ac_abs_top_srcdir=$srcdir ;;
32674 *) # Relative name.
32675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32676 ac_top_srcdir=$ac_top_build_prefix$srcdir
32677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32678esac
32679ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32680
32681
32682 case $ac_mode in
32683 :F)
32684 #
32685 # CONFIG_FILE
32686 #
32687
32688 case $INSTALL in
32689 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32690 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32691 esac
32692 ac_MKDIR_P=$MKDIR_P
32693 case $MKDIR_P in
32694 [\\/$]* | ?:[\\/]* ) ;;
32695 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32696 esac
32697_ACEOF
32698
32699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32700# If the template does not know about datarootdir, expand it.
32701# FIXME: This hack should be removed a few years after 2.60.
32702ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000032703ac_sed_dataroot='
32704/datarootdir/ {
32705 p
32706 q
32707}
32708/@datadir@/p
32709/@docdir@/p
32710/@infodir@/p
32711/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000032712/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000032713case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32714*datarootdir*) ac_datarootdir_seen=yes;;
32715*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000032716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000032717$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32718_ACEOF
32719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32720 ac_datarootdir_hack='
32721 s&@datadir@&$datadir&g
32722 s&@docdir@&$docdir&g
32723 s&@infodir@&$infodir&g
32724 s&@localedir@&$localedir&g
32725 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000032726 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000032727esac
32728_ACEOF
32729
32730# Neutralize VPATH when `$srcdir' = `.'.
32731# Shell code in configure.ac might set extrasub.
32732# FIXME: do we really want to maintain this feature?
32733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32734ac_sed_extra="$ac_vpsub
32735$extrasub
32736_ACEOF
32737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32738:t
32739/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32740s|@configure_input@|$ac_sed_conf_input|;t t
32741s&@top_builddir@&$ac_top_builddir_sub&;t t
32742s&@top_build_prefix@&$ac_top_build_prefix&;t t
32743s&@srcdir@&$ac_srcdir&;t t
32744s&@abs_srcdir@&$ac_abs_srcdir&;t t
32745s&@top_srcdir@&$ac_top_srcdir&;t t
32746s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32747s&@builddir@&$ac_builddir&;t t
32748s&@abs_builddir@&$ac_abs_builddir&;t t
32749s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32750s&@INSTALL@&$ac_INSTALL&;t t
32751s&@MKDIR_P@&$ac_MKDIR_P&;t t
32752$ac_datarootdir_hack
32753"
32754eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000032755 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032756
32757test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32758 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32759 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000032760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000032761which seems to be undefined. Please make sure it is defined." >&5
32762$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32763which seems to be undefined. Please make sure it is defined." >&2;}
32764
32765 rm -f "$tmp/stdin"
32766 case $ac_file in
32767 -) cat "$tmp/out" && rm -f "$tmp/out";;
32768 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32769 esac \
cristy8b350f62009-11-15 23:12:43 +000032770 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032771 ;;
32772 :H)
32773 #
32774 # CONFIG_HEADER
32775 #
32776 if test x"$ac_file" != x-; then
32777 {
32778 $as_echo "/* $configure_input */" \
32779 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32780 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000032781 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032782 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000032783 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032784$as_echo "$as_me: $ac_file is unchanged" >&6;}
32785 else
32786 rm -f "$ac_file"
32787 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000032788 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032789 fi
32790 else
32791 $as_echo "/* $configure_input */" \
32792 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000032793 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032794 fi
32795# Compute "$ac_file"'s index in $config_headers.
32796_am_arg="$ac_file"
32797_am_stamp_count=1
32798for _am_header in $config_headers :; do
32799 case $_am_header in
32800 $_am_arg | $_am_arg:* )
32801 break ;;
32802 * )
32803 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32804 esac
32805done
32806echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32807$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32808 X"$_am_arg" : 'X\(//\)[^/]' \| \
32809 X"$_am_arg" : 'X\(//\)$' \| \
32810 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32811$as_echo X"$_am_arg" |
32812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32813 s//\1/
32814 q
32815 }
32816 /^X\(\/\/\)[^/].*/{
32817 s//\1/
32818 q
32819 }
32820 /^X\(\/\/\)$/{
32821 s//\1/
32822 q
32823 }
32824 /^X\(\/\).*/{
32825 s//\1/
32826 q
32827 }
32828 s/.*/./; q'`/stamp-h$_am_stamp_count
32829 ;;
32830
cristy8b350f62009-11-15 23:12:43 +000032831 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000032832$as_echo "$as_me: executing $ac_file commands" >&6;}
32833 ;;
32834 esac
32835
32836
32837 case $ac_file$ac_mode in
32838 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
32839ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
32840ac_prefix_conf_PKG=`echo MagickCore`
32841ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
32842ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
32843ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
32844if test ".$ac_prefix_conf_INP" = "."; then
32845 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
32846 case "$ac_file" in
32847 *.h) ac_prefix_conf_INP=$ac_file ;;
32848 *)
32849 esac
32850 test ".$ac_prefix_conf_INP" != "." && break
32851 done
32852fi
32853if test ".$ac_prefix_conf_INP" = "."; then
32854 case "$ac_prefix_conf_OUT" in
32855 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
32856 ;;
32857 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
32858 ;;
32859 *) ac_prefix_conf_INP=config.h
32860 ;;
32861 esac
32862fi
32863if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000032864 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032865else
32866 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
32867 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
32868 fi fi
cristy8b350f62009-11-15 23:12:43 +000032869 { $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 +000032870$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
32871 if test -f $ac_prefix_conf_INP ; then
32872 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
32873 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
32874 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
32875 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
32876 echo "#endif/" >>conftest.prefix
32877 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
32878 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
32879 echo "#endif/" >> conftest.prefix
32880 # now executing _script on _DEF input to create _OUT output file
32881 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
32882 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
32883 echo ' ' >>$tmp/pconfig.h
32884 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
32885
32886 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
32887 echo ' ' >>$tmp/pconfig.h
32888 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
32889 echo "#endif" >>$tmp/pconfig.h
32890 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032891 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032892$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
32893 else
32894 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
32895$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32896 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
32897 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
32898 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
32899$as_echo X"$ac_prefix_conf_OUT" |
32900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32901 s//\1/
32902 q
32903 }
32904 /^X\(\/\/\)[^/].*/{
32905 s//\1/
32906 q
32907 }
32908 /^X\(\/\/\)$/{
32909 s//\1/
32910 q
32911 }
32912 /^X\(\/\).*/{
32913 s//\1/
32914 q
32915 }
32916 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032917 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032918 rm -f "$ac_prefix_conf_OUT"
32919 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
32920 fi
32921 cp conftest.prefix _configs.sed
32922 else
cristy8b350f62009-11-15 23:12:43 +000032923 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 +000032924 fi
32925 rm -f conftest.*
32926fi
32927 ;;
32928 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32929 # Autoconf 2.62 quotes --file arguments for eval, but not when files
32930 # are listed without --file. Let's play safe and only enable the eval
32931 # if we detect the quoting.
32932 case $CONFIG_FILES in
32933 *\'*) eval set x "$CONFIG_FILES" ;;
32934 *) set x $CONFIG_FILES ;;
32935 esac
32936 shift
32937 for mf
32938 do
32939 # Strip MF so we end up with the name of the file.
32940 mf=`echo "$mf" | sed -e 's/:.*$//'`
32941 # Check whether this is an Automake generated Makefile or not.
32942 # We used to match only the files named `Makefile.in', but
32943 # some people rename them; so instead we look at the file content.
32944 # Grep'ing the first line is not enough: some people post-process
32945 # each Makefile.in and add a new line on top of each file to say so.
32946 # Grep'ing the whole file is not good either: AIX grep has a line
32947 # limit of 2048, but all sed's we know have understand at least 4000.
32948 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32949 dirpart=`$as_dirname -- "$mf" ||
32950$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32951 X"$mf" : 'X\(//\)[^/]' \| \
32952 X"$mf" : 'X\(//\)$' \| \
32953 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32954$as_echo X"$mf" |
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'`
32972 else
32973 continue
32974 fi
32975 # Extract the definition of DEPDIR, am__include, and am__quote
32976 # from the Makefile without running `make'.
32977 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32978 test -z "$DEPDIR" && continue
32979 am__include=`sed -n 's/^am__include = //p' < "$mf"`
32980 test -z "am__include" && continue
32981 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32982 # When using ansi2knr, U may be empty or an underscore; expand it
32983 U=`sed -n 's/^U = //p' < "$mf"`
32984 # Find all dependency output files, they are included files with
32985 # $(DEPDIR) in their names. We invoke sed twice because it is the
32986 # simplest approach to changing $(DEPDIR) to its actual value in the
32987 # expansion.
32988 for file in `sed -n "
32989 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32990 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32991 # Make sure the directory exists.
32992 test -f "$dirpart/$file" && continue
32993 fdir=`$as_dirname -- "$file" ||
32994$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32995 X"$file" : 'X\(//\)[^/]' \| \
32996 X"$file" : 'X\(//\)$' \| \
32997 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32998$as_echo X"$file" |
32999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33000 s//\1/
33001 q
33002 }
33003 /^X\(\/\/\)[^/].*/{
33004 s//\1/
33005 q
33006 }
33007 /^X\(\/\/\)$/{
33008 s//\1/
33009 q
33010 }
33011 /^X\(\/\).*/{
33012 s//\1/
33013 q
33014 }
33015 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033016 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033017 # echo "creating $dirpart/$file"
33018 echo '# dummy' > "$dirpart/$file"
33019 done
33020 done
33021}
33022 ;;
33023 "libtool":C)
33024
33025 # See if we are running on zsh, and set the options which allow our
33026 # commands through without removal of \ escapes.
33027 if test -n "${ZSH_VERSION+set}" ; then
33028 setopt NO_GLOB_SUBST
33029 fi
33030
33031 cfgfile="${ofile}T"
33032 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33033 $RM "$cfgfile"
33034
33035 cat <<_LT_EOF >> "$cfgfile"
33036#! $SHELL
33037
33038# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33039# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33040# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33041# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33042#
33043# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33044# 2006, 2007, 2008 Free Software Foundation, Inc.
33045# Written by Gordon Matzigkeit, 1996
33046#
33047# This file is part of GNU Libtool.
33048#
33049# GNU Libtool is free software; you can redistribute it and/or
33050# modify it under the terms of the GNU General Public License as
33051# published by the Free Software Foundation; either version 2 of
33052# the License, or (at your option) any later version.
33053#
33054# As a special exception to the GNU General Public License,
33055# if you distribute this file as part of a program or library that
33056# is built using GNU Libtool, you may include this file under the
33057# same distribution terms that you use for the rest of that program.
33058#
33059# GNU Libtool is distributed in the hope that it will be useful,
33060# but WITHOUT ANY WARRANTY; without even the implied warranty of
33061# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33062# GNU General Public License for more details.
33063#
33064# You should have received a copy of the GNU General Public License
33065# along with GNU Libtool; see the file COPYING. If not, a copy
33066# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33067# obtained by writing to the Free Software Foundation, Inc.,
33068# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33069
33070
33071# The names of the tagged configurations supported by this script.
33072available_tags="CXX "
33073
33074# ### BEGIN LIBTOOL CONFIG
33075
33076# A sed program that does not truncate output.
33077SED=$lt_SED
33078
33079# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33080Xsed="\$SED -e 1s/^X//"
33081
33082# A grep program that handles long lines.
33083GREP=$lt_GREP
33084
33085# An ERE matcher.
33086EGREP=$lt_EGREP
33087
33088# A literal string matcher.
33089FGREP=$lt_FGREP
33090
33091# Which release of libtool.m4 was used?
33092macro_version=$macro_version
33093macro_revision=$macro_revision
33094
33095# Assembler program.
33096AS=$AS
33097
33098# DLL creation program.
33099DLLTOOL=$DLLTOOL
33100
33101# Object dumper program.
33102OBJDUMP=$OBJDUMP
33103
33104# Whether or not to build shared libraries.
33105build_libtool_libs=$enable_shared
33106
33107# Whether or not to build static libraries.
33108build_old_libs=$enable_static
33109
33110# What type of objects to build.
33111pic_mode=$pic_mode
33112
33113# Whether or not to optimize for fast installation.
33114fast_install=$enable_fast_install
33115
33116# The host system.
33117host_alias=$host_alias
33118host=$host
33119host_os=$host_os
33120
33121# The build system.
33122build_alias=$build_alias
33123build=$build
33124build_os=$build_os
33125
33126# A BSD- or MS-compatible name lister.
33127NM=$lt_NM
33128
33129# Whether we need soft or hard links.
33130LN_S=$lt_LN_S
33131
33132# What is the maximum length of a command?
33133max_cmd_len=$max_cmd_len
33134
33135# Object file suffix (normally "o").
33136objext=$ac_objext
33137
33138# Executable file suffix (normally "").
33139exeext=$exeext
33140
33141# whether the shell understands "unset".
33142lt_unset=$lt_unset
33143
33144# turn spaces into newlines.
33145SP2NL=$lt_lt_SP2NL
33146
33147# turn newlines into spaces.
33148NL2SP=$lt_lt_NL2SP
33149
33150# How to create reloadable object files.
33151reload_flag=$lt_reload_flag
33152reload_cmds=$lt_reload_cmds
33153
33154# Method to check whether dependent libraries are shared objects.
33155deplibs_check_method=$lt_deplibs_check_method
33156
33157# Command to use when deplibs_check_method == "file_magic".
33158file_magic_cmd=$lt_file_magic_cmd
33159
33160# The archiver.
33161AR=$lt_AR
33162AR_FLAGS=$lt_AR_FLAGS
33163
33164# A symbol stripping program.
33165STRIP=$lt_STRIP
33166
33167# Commands used to install an old-style archive.
33168RANLIB=$lt_RANLIB
33169old_postinstall_cmds=$lt_old_postinstall_cmds
33170old_postuninstall_cmds=$lt_old_postuninstall_cmds
33171
33172# A C compiler.
33173LTCC=$lt_CC
33174
33175# LTCC compiler flags.
33176LTCFLAGS=$lt_CFLAGS
33177
33178# Take the output of nm and produce a listing of raw symbols and C names.
33179global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33180
33181# Transform the output of nm in a proper C declaration.
33182global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33183
33184# Transform the output of nm in a C name address pair.
33185global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33186
33187# Transform the output of nm in a C name address pair when lib prefix is needed.
33188global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33189
33190# The name of the directory that contains temporary libtool files.
33191objdir=$objdir
33192
33193# Shell to use when invoking shell scripts.
33194SHELL=$lt_SHELL
33195
33196# An echo program that does not interpret backslashes.
33197ECHO=$lt_ECHO
33198
33199# Used to examine libraries when file_magic_cmd begins with "file".
33200MAGIC_CMD=$MAGIC_CMD
33201
33202# Must we lock files when doing compilation?
33203need_locks=$lt_need_locks
33204
33205# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33206DSYMUTIL=$lt_DSYMUTIL
33207
33208# Tool to change global to local symbols on Mac OS X.
33209NMEDIT=$lt_NMEDIT
33210
33211# Tool to manipulate fat objects and archives on Mac OS X.
33212LIPO=$lt_LIPO
33213
33214# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33215OTOOL=$lt_OTOOL
33216
33217# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33218OTOOL64=$lt_OTOOL64
33219
33220# Old archive suffix (normally "a").
33221libext=$libext
33222
33223# Shared library suffix (normally ".so").
33224shrext_cmds=$lt_shrext_cmds
33225
33226# The commands to extract the exported symbol list from a shared archive.
33227extract_expsyms_cmds=$lt_extract_expsyms_cmds
33228
33229# Variables whose values should be saved in libtool wrapper scripts and
33230# restored at link time.
33231variables_saved_for_relink=$lt_variables_saved_for_relink
33232
33233# Do we need the "lib" prefix for modules?
33234need_lib_prefix=$need_lib_prefix
33235
33236# Do we need a version for libraries?
33237need_version=$need_version
33238
33239# Library versioning type.
33240version_type=$version_type
33241
33242# Shared library runtime path variable.
33243runpath_var=$runpath_var
33244
33245# Shared library path variable.
33246shlibpath_var=$shlibpath_var
33247
33248# Is shlibpath searched before the hard-coded library search path?
33249shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33250
33251# Format of library name prefix.
33252libname_spec=$lt_libname_spec
33253
33254# List of archive names. First name is the real one, the rest are links.
33255# The last name is the one that the linker finds with -lNAME
33256library_names_spec=$lt_library_names_spec
33257
33258# The coded name of the library, if different from the real name.
33259soname_spec=$lt_soname_spec
33260
33261# Command to use after installation of a shared archive.
33262postinstall_cmds=$lt_postinstall_cmds
33263
33264# Command to use after uninstallation of a shared archive.
33265postuninstall_cmds=$lt_postuninstall_cmds
33266
33267# Commands used to finish a libtool library installation in a directory.
33268finish_cmds=$lt_finish_cmds
33269
33270# As "finish_cmds", except a single script fragment to be evaled but
33271# not shown.
33272finish_eval=$lt_finish_eval
33273
33274# Whether we should hardcode library paths into libraries.
33275hardcode_into_libs=$hardcode_into_libs
33276
33277# Compile-time system search path for libraries.
33278sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33279
33280# Run-time system search path for libraries.
33281sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33282
33283# Whether dlopen is supported.
33284dlopen_support=$enable_dlopen
33285
33286# Whether dlopen of programs is supported.
33287dlopen_self=$enable_dlopen_self
33288
33289# Whether dlopen of statically linked programs is supported.
33290dlopen_self_static=$enable_dlopen_self_static
33291
33292# Commands to strip libraries.
33293old_striplib=$lt_old_striplib
33294striplib=$lt_striplib
33295
33296
33297# The linker used to build libraries.
33298LD=$lt_LD
33299
33300# Commands used to build an old-style archive.
33301old_archive_cmds=$lt_old_archive_cmds
33302
33303# A language specific compiler.
33304CC=$lt_compiler
33305
33306# Is the compiler the GNU compiler?
33307with_gcc=$GCC
33308
33309# Compiler flag to turn off builtin functions.
33310no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33311
33312# How to pass a linker flag through the compiler.
33313wl=$lt_lt_prog_compiler_wl
33314
33315# Additional compiler flags for building library objects.
33316pic_flag=$lt_lt_prog_compiler_pic
33317
33318# Compiler flag to prevent dynamic linking.
33319link_static_flag=$lt_lt_prog_compiler_static
33320
33321# Does compiler simultaneously support -c and -o options?
33322compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33323
33324# Whether or not to add -lc for building shared libraries.
33325build_libtool_need_lc=$archive_cmds_need_lc
33326
33327# Whether or not to disallow shared libs when runtime libs are static.
33328allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33329
33330# Compiler flag to allow reflexive dlopens.
33331export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33332
33333# Compiler flag to generate shared objects directly from archives.
33334whole_archive_flag_spec=$lt_whole_archive_flag_spec
33335
33336# Whether the compiler copes with passing no objects directly.
33337compiler_needs_object=$lt_compiler_needs_object
33338
33339# Create an old-style archive from a shared archive.
33340old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33341
33342# Create a temporary old-style archive to link instead of a shared archive.
33343old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33344
33345# Commands used to build a shared archive.
33346archive_cmds=$lt_archive_cmds
33347archive_expsym_cmds=$lt_archive_expsym_cmds
33348
33349# Commands used to build a loadable module if different from building
33350# a shared archive.
33351module_cmds=$lt_module_cmds
33352module_expsym_cmds=$lt_module_expsym_cmds
33353
33354# Whether we are building with GNU ld or not.
33355with_gnu_ld=$lt_with_gnu_ld
33356
33357# Flag that allows shared libraries with undefined symbols to be built.
33358allow_undefined_flag=$lt_allow_undefined_flag
33359
33360# Flag that enforces no undefined symbols.
33361no_undefined_flag=$lt_no_undefined_flag
33362
33363# Flag to hardcode \$libdir into a binary during linking.
33364# This must work even if \$libdir does not exist
33365hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33366
33367# If ld is used when linking, flag to hardcode \$libdir into a binary
33368# during linking. This must work even if \$libdir does not exist.
33369hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33370
33371# Whether we need a single "-rpath" flag with a separated argument.
33372hardcode_libdir_separator=$lt_hardcode_libdir_separator
33373
33374# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33375# DIR into the resulting binary.
33376hardcode_direct=$hardcode_direct
33377
33378# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33379# DIR into the resulting binary and the resulting library dependency is
33380# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33381# library is relocated.
33382hardcode_direct_absolute=$hardcode_direct_absolute
33383
33384# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33385# into the resulting binary.
33386hardcode_minus_L=$hardcode_minus_L
33387
33388# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33389# into the resulting binary.
33390hardcode_shlibpath_var=$hardcode_shlibpath_var
33391
33392# Set to "yes" if building a shared library automatically hardcodes DIR
33393# into the library and all subsequent libraries and executables linked
33394# against it.
33395hardcode_automatic=$hardcode_automatic
33396
33397# Set to yes if linker adds runtime paths of dependent libraries
33398# to runtime path list.
33399inherit_rpath=$inherit_rpath
33400
33401# Whether libtool must link a program against all its dependency libraries.
33402link_all_deplibs=$link_all_deplibs
33403
33404# Fix the shell variable \$srcfile for the compiler.
33405fix_srcfile_path=$lt_fix_srcfile_path
33406
33407# Set to "yes" if exported symbols are required.
33408always_export_symbols=$always_export_symbols
33409
33410# The commands to list exported symbols.
33411export_symbols_cmds=$lt_export_symbols_cmds
33412
33413# Symbols that should not be listed in the preloaded symbols.
33414exclude_expsyms=$lt_exclude_expsyms
33415
33416# Symbols that must always be exported.
33417include_expsyms=$lt_include_expsyms
33418
33419# Commands necessary for linking programs (against libraries) with templates.
33420prelink_cmds=$lt_prelink_cmds
33421
33422# Specify filename containing input files.
33423file_list_spec=$lt_file_list_spec
33424
33425# How to hardcode a shared library path into an executable.
33426hardcode_action=$hardcode_action
33427
33428# The directories searched by this compiler when creating a shared library.
33429compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33430
33431# Dependencies to place before and after the objects being linked to
33432# create a shared library.
33433predep_objects=$lt_predep_objects
33434postdep_objects=$lt_postdep_objects
33435predeps=$lt_predeps
33436postdeps=$lt_postdeps
33437
33438# The library search path used internally by the compiler when linking
33439# a shared library.
33440compiler_lib_search_path=$lt_compiler_lib_search_path
33441
33442# ### END LIBTOOL CONFIG
33443
33444_LT_EOF
33445
33446 case $host_os in
33447 aix3*)
33448 cat <<\_LT_EOF >> "$cfgfile"
33449# AIX sometimes has problems with the GCC collect2 program. For some
33450# reason, if we set the COLLECT_NAMES environment variable, the problems
33451# vanish in a puff of smoke.
33452if test "X${COLLECT_NAMES+set}" != Xset; then
33453 COLLECT_NAMES=
33454 export COLLECT_NAMES
33455fi
33456_LT_EOF
33457 ;;
33458 esac
33459
33460
33461ltmain="$ac_aux_dir/ltmain.sh"
33462
33463
33464 # We use sed instead of cat because bash on DJGPP gets confused if
33465 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33466 # text mode, it properly converts lines to CR/LF. This bash problem
33467 # is reportedly fixed, but why not run on old versions too?
33468 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33469 || (rm -f "$cfgfile"; exit 1)
33470
33471 case $xsi_shell in
33472 yes)
33473 cat << \_LT_EOF >> "$cfgfile"
33474
33475# func_dirname file append nondir_replacement
33476# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33477# otherwise set result to NONDIR_REPLACEMENT.
33478func_dirname ()
33479{
33480 case ${1} in
33481 */*) func_dirname_result="${1%/*}${2}" ;;
33482 * ) func_dirname_result="${3}" ;;
33483 esac
33484}
33485
33486# func_basename file
33487func_basename ()
33488{
33489 func_basename_result="${1##*/}"
33490}
33491
33492# func_dirname_and_basename file append nondir_replacement
33493# perform func_basename and func_dirname in a single function
33494# call:
33495# dirname: Compute the dirname of FILE. If nonempty,
33496# add APPEND to the result, otherwise set result
33497# to NONDIR_REPLACEMENT.
33498# value returned in "$func_dirname_result"
33499# basename: Compute filename of FILE.
33500# value retuned in "$func_basename_result"
33501# Implementation must be kept synchronized with func_dirname
33502# and func_basename. For efficiency, we do not delegate to
33503# those functions but instead duplicate the functionality here.
33504func_dirname_and_basename ()
33505{
33506 case ${1} in
33507 */*) func_dirname_result="${1%/*}${2}" ;;
33508 * ) func_dirname_result="${3}" ;;
33509 esac
33510 func_basename_result="${1##*/}"
33511}
33512
33513# func_stripname prefix suffix name
33514# strip PREFIX and SUFFIX off of NAME.
33515# PREFIX and SUFFIX must not contain globbing or regex special
33516# characters, hashes, percent signs, but SUFFIX may contain a leading
33517# dot (in which case that matches only a dot).
33518func_stripname ()
33519{
33520 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33521 # positional parameters, so assign one to ordinary parameter first.
33522 func_stripname_result=${3}
33523 func_stripname_result=${func_stripname_result#"${1}"}
33524 func_stripname_result=${func_stripname_result%"${2}"}
33525}
33526
33527# func_opt_split
33528func_opt_split ()
33529{
33530 func_opt_split_opt=${1%%=*}
33531 func_opt_split_arg=${1#*=}
33532}
33533
33534# func_lo2o object
33535func_lo2o ()
33536{
33537 case ${1} in
33538 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33539 *) func_lo2o_result=${1} ;;
33540 esac
33541}
33542
33543# func_xform libobj-or-source
33544func_xform ()
33545{
33546 func_xform_result=${1%.*}.lo
33547}
33548
33549# func_arith arithmetic-term...
33550func_arith ()
33551{
33552 func_arith_result=$(( $* ))
33553}
33554
33555# func_len string
33556# STRING may not start with a hyphen.
33557func_len ()
33558{
33559 func_len_result=${#1}
33560}
33561
33562_LT_EOF
33563 ;;
33564 *) # Bourne compatible functions.
33565 cat << \_LT_EOF >> "$cfgfile"
33566
33567# func_dirname file append nondir_replacement
33568# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33569# otherwise set result to NONDIR_REPLACEMENT.
33570func_dirname ()
33571{
33572 # Extract subdirectory from the argument.
33573 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
33574 if test "X$func_dirname_result" = "X${1}"; then
33575 func_dirname_result="${3}"
33576 else
33577 func_dirname_result="$func_dirname_result${2}"
33578 fi
33579}
33580
33581# func_basename file
33582func_basename ()
33583{
33584 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
33585}
33586
33587
33588# func_stripname prefix suffix name
33589# strip PREFIX and SUFFIX off of NAME.
33590# PREFIX and SUFFIX must not contain globbing or regex special
33591# characters, hashes, percent signs, but SUFFIX may contain a leading
33592# dot (in which case that matches only a dot).
33593# func_strip_suffix prefix name
33594func_stripname ()
33595{
33596 case ${2} in
33597 .*) func_stripname_result=`$ECHO "X${3}" \
33598 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
33599 *) func_stripname_result=`$ECHO "X${3}" \
33600 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
33601 esac
33602}
33603
33604# sed scripts:
33605my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33606my_sed_long_arg='1s/^-[^=]*=//'
33607
33608# func_opt_split
33609func_opt_split ()
33610{
33611 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
33612 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
33613}
33614
33615# func_lo2o object
33616func_lo2o ()
33617{
33618 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
33619}
33620
33621# func_xform libobj-or-source
33622func_xform ()
33623{
33624 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
33625}
33626
33627# func_arith arithmetic-term...
33628func_arith ()
33629{
33630 func_arith_result=`expr "$@"`
33631}
33632
33633# func_len string
33634# STRING may not start with a hyphen.
33635func_len ()
33636{
33637 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33638}
33639
33640_LT_EOF
33641esac
33642
33643case $lt_shell_append in
33644 yes)
33645 cat << \_LT_EOF >> "$cfgfile"
33646
33647# func_append var value
33648# Append VALUE to the end of shell variable VAR.
33649func_append ()
33650{
33651 eval "$1+=\$2"
33652}
33653_LT_EOF
33654 ;;
33655 *)
33656 cat << \_LT_EOF >> "$cfgfile"
33657
33658# func_append var value
33659# Append VALUE to the end of shell variable VAR.
33660func_append ()
33661{
33662 eval "$1=\$$1\$2"
33663}
33664
33665_LT_EOF
33666 ;;
33667 esac
33668
33669
33670 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33671 || (rm -f "$cfgfile"; exit 1)
33672
33673 mv -f "$cfgfile" "$ofile" ||
33674 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33675 chmod +x "$ofile"
33676
33677
33678 cat <<_LT_EOF >> "$ofile"
33679
33680# ### BEGIN LIBTOOL TAG CONFIG: CXX
33681
33682# The linker used to build libraries.
33683LD=$lt_LD_CXX
33684
33685# Commands used to build an old-style archive.
33686old_archive_cmds=$lt_old_archive_cmds_CXX
33687
33688# A language specific compiler.
33689CC=$lt_compiler_CXX
33690
33691# Is the compiler the GNU compiler?
33692with_gcc=$GCC_CXX
33693
33694# Compiler flag to turn off builtin functions.
33695no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33696
33697# How to pass a linker flag through the compiler.
33698wl=$lt_lt_prog_compiler_wl_CXX
33699
33700# Additional compiler flags for building library objects.
33701pic_flag=$lt_lt_prog_compiler_pic_CXX
33702
33703# Compiler flag to prevent dynamic linking.
33704link_static_flag=$lt_lt_prog_compiler_static_CXX
33705
33706# Does compiler simultaneously support -c and -o options?
33707compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33708
33709# Whether or not to add -lc for building shared libraries.
33710build_libtool_need_lc=$archive_cmds_need_lc_CXX
33711
33712# Whether or not to disallow shared libs when runtime libs are static.
33713allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33714
33715# Compiler flag to allow reflexive dlopens.
33716export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33717
33718# Compiler flag to generate shared objects directly from archives.
33719whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33720
33721# Whether the compiler copes with passing no objects directly.
33722compiler_needs_object=$lt_compiler_needs_object_CXX
33723
33724# Create an old-style archive from a shared archive.
33725old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33726
33727# Create a temporary old-style archive to link instead of a shared archive.
33728old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33729
33730# Commands used to build a shared archive.
33731archive_cmds=$lt_archive_cmds_CXX
33732archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33733
33734# Commands used to build a loadable module if different from building
33735# a shared archive.
33736module_cmds=$lt_module_cmds_CXX
33737module_expsym_cmds=$lt_module_expsym_cmds_CXX
33738
33739# Whether we are building with GNU ld or not.
33740with_gnu_ld=$lt_with_gnu_ld_CXX
33741
33742# Flag that allows shared libraries with undefined symbols to be built.
33743allow_undefined_flag=$lt_allow_undefined_flag_CXX
33744
33745# Flag that enforces no undefined symbols.
33746no_undefined_flag=$lt_no_undefined_flag_CXX
33747
33748# Flag to hardcode \$libdir into a binary during linking.
33749# This must work even if \$libdir does not exist
33750hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33751
33752# If ld is used when linking, flag to hardcode \$libdir into a binary
33753# during linking. This must work even if \$libdir does not exist.
33754hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33755
33756# Whether we need a single "-rpath" flag with a separated argument.
33757hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33758
33759# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33760# DIR into the resulting binary.
33761hardcode_direct=$hardcode_direct_CXX
33762
33763# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33764# DIR into the resulting binary and the resulting library dependency is
33765# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33766# library is relocated.
33767hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33768
33769# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33770# into the resulting binary.
33771hardcode_minus_L=$hardcode_minus_L_CXX
33772
33773# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33774# into the resulting binary.
33775hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33776
33777# Set to "yes" if building a shared library automatically hardcodes DIR
33778# into the library and all subsequent libraries and executables linked
33779# against it.
33780hardcode_automatic=$hardcode_automatic_CXX
33781
33782# Set to yes if linker adds runtime paths of dependent libraries
33783# to runtime path list.
33784inherit_rpath=$inherit_rpath_CXX
33785
33786# Whether libtool must link a program against all its dependency libraries.
33787link_all_deplibs=$link_all_deplibs_CXX
33788
33789# Fix the shell variable \$srcfile for the compiler.
33790fix_srcfile_path=$lt_fix_srcfile_path_CXX
33791
33792# Set to "yes" if exported symbols are required.
33793always_export_symbols=$always_export_symbols_CXX
33794
33795# The commands to list exported symbols.
33796export_symbols_cmds=$lt_export_symbols_cmds_CXX
33797
33798# Symbols that should not be listed in the preloaded symbols.
33799exclude_expsyms=$lt_exclude_expsyms_CXX
33800
33801# Symbols that must always be exported.
33802include_expsyms=$lt_include_expsyms_CXX
33803
33804# Commands necessary for linking programs (against libraries) with templates.
33805prelink_cmds=$lt_prelink_cmds_CXX
33806
33807# Specify filename containing input files.
33808file_list_spec=$lt_file_list_spec_CXX
33809
33810# How to hardcode a shared library path into an executable.
33811hardcode_action=$hardcode_action_CXX
33812
33813# The directories searched by this compiler when creating a shared library.
33814compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33815
33816# Dependencies to place before and after the objects being linked to
33817# create a shared library.
33818predep_objects=$lt_predep_objects_CXX
33819postdep_objects=$lt_postdep_objects_CXX
33820predeps=$lt_predeps_CXX
33821postdeps=$lt_postdeps_CXX
33822
33823# The library search path used internally by the compiler when linking
33824# a shared library.
33825compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33826
33827# ### END LIBTOOL TAG CONFIG: CXX
33828_LT_EOF
33829
33830 ;;
33831 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
33832 "Magick-config.in":C) chmod +x magick/Magick-config ;;
33833 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
33834 "Wand-config.in":C) chmod +x wand/Wand-config ;;
33835 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
33836 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
33837
33838 esac
33839done # for ac_tag
33840
33841
cristy8b350f62009-11-15 23:12:43 +000033842as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000033843_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000033844ac_clean_files=$ac_clean_files_save
33845
33846test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000033847 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033848
33849
33850# configure is writing to config.log, and then calls config.status.
33851# config.status does its own redirection, appending to config.log.
33852# Unfortunately, on DOS this fails, as config.log is still kept open
33853# by configure, so config.status won't be able to write to it; its
33854# output is simply discarded. So we exec the FD to /dev/null,
33855# effectively closing config.log, so it can be properly (re)opened and
33856# appended to by config.status. When coming back to configure, we
33857# need to make the FD available again.
33858if test "$no_create" != yes; then
33859 ac_cs_success=:
33860 ac_config_status_args=
33861 test "$silent" = yes &&
33862 ac_config_status_args="$ac_config_status_args --quiet"
33863 exec 5>/dev/null
33864 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33865 exec 5>>config.log
33866 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33867 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000033868 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000033869fi
33870if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000033871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000033872$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33873fi
33874
33875
33876rm -f magick-version
33877
33878result_ghostscript_font_dir='none'
33879if test "${ghostscript_font_dir}x" != 'x'; then
33880 result_ghostscript_font_dir=$ghostscript_font_dir
33881fi
33882
33883result_windows_font_dir='none'
33884if test "${windows_font_dir}x" != 'x'; then
33885 result_windows_font_dir=${windows_font_dir}
33886fi
33887
cristy8b350f62009-11-15 23:12:43 +000033888{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000033889ImageMagick is configured as follows. Please verify that this configuration
33890matches your expectations.
33891
33892Host system type: $host
33893Build system type: $build
33894
33895 Option Value
33896-------------------------------------------------------------------------------
33897Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33898Static libraries --enable-static=$enable_static $libtool_build_static_libs
33899Module support --with-modules=$with_modules $with_modules
33900GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33901Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33902High Dynamic Range Imagery
33903 --enable-hdri=$enable_hdri $enable_hdri
33904
33905Delegate Configuration:
33906BZLIB --with-bzlib=$with_bzlib $have_bzlib
33907Autotrace --with-autotrace=$with_autotrace $have_autotrace
33908DJVU --with-djvu=$with_djvu $have_djvu
33909DPS --with-dps=$with_dps $have_dps
33910FFTW --with-fftw=$with_fftw $have_fftw
33911FlashPIX --with-fpx=$with_fpx $have_fpx
33912FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33913FreeType --with-freetype=$with_freetype $have_freetype
33914GhostPCL None $PCLDelegate ($PCLVersion)
33915GhostXPS None $XPSDelegate ($XPSVersion)
33916Ghostscript None $PSDelegate ($GSVersion)
33917Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33918Ghostscript lib --with-gslib=$with_gslib $have_gslib
33919Graphviz --with-gvc=$with_gvc $have_gvc
33920JBIG --with-jbig=$with_jbig $have_jbig
33921JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33922JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33923LCMS --with-lcms=$with_lcms $have_lcms
33924LQR --with-lqr=$with_lqr $have_lqr
33925Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33926OpenEXR --with-openexr=$with_openexr $have_openexr
33927PERL --with-perl=$with_perl $have_perl
33928PNG --with-png=$with_png $have_png
33929RSVG --with-rsvg=$with_rsvg $have_rsvg
33930TIFF --with-tiff=$with_tiff $have_tiff
33931Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33932WMF --with-wmf=$with_wmf $have_wmf
33933X11 --with-x=$with_x $have_x
33934XML --with-xml=$with_xml $have_xml
33935ZLIB --with-zlib=$with_zlib $have_zlib
33936
33937X11 Configuration:
33938 X_CFLAGS = $X_CFLAGS
33939 X_PRE_LIBS = $X_PRE_LIBS
33940 X_LIBS = $X_LIBS
33941 X_EXTRA_LIBS = $X_EXTRA_LIBS
33942
33943Options used to compile and link:
33944 PREFIX = $PREFIX_DIR
33945 EXEC-PREFIX = $EXEC_PREFIX_DIR
33946 VERSION = $PACKAGE_VERSION
33947 CC = $CC
33948 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000033949 CPPFLAGS = $MAGICK_CPPFLAGS
33950 PCFLAGS = $MAGICK_PCFLAGS
33951 DEFS = $DEFS
33952 LDFLAGS = $LDFLAGS
33953 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
33954 LIBS = $MAGICK_LIBS
33955 CXX = $CXX
33956 CXXFLAGS = $CXXFLAGS
33957" >&5
33958$as_echo "
33959ImageMagick is configured as follows. Please verify that this configuration
33960matches your expectations.
33961
33962Host system type: $host
33963Build system type: $build
33964
33965 Option Value
33966-------------------------------------------------------------------------------
33967Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33968Static libraries --enable-static=$enable_static $libtool_build_static_libs
33969Module support --with-modules=$with_modules $with_modules
33970GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33971Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33972High Dynamic Range Imagery
33973 --enable-hdri=$enable_hdri $enable_hdri
33974
33975Delegate Configuration:
33976BZLIB --with-bzlib=$with_bzlib $have_bzlib
33977Autotrace --with-autotrace=$with_autotrace $have_autotrace
33978DJVU --with-djvu=$with_djvu $have_djvu
33979DPS --with-dps=$with_dps $have_dps
33980FFTW --with-fftw=$with_fftw $have_fftw
33981FlashPIX --with-fpx=$with_fpx $have_fpx
33982FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33983FreeType --with-freetype=$with_freetype $have_freetype
33984GhostPCL None $PCLDelegate ($PCLVersion)
33985GhostXPS None $XPSDelegate ($XPSVersion)
33986Ghostscript None $PSDelegate ($GSVersion)
33987Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33988Ghostscript lib --with-gslib=$with_gslib $have_gslib
33989Graphviz --with-gvc=$with_gvc $have_gvc
33990JBIG --with-jbig=$with_jbig $have_jbig
33991JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33992JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33993LCMS --with-lcms=$with_lcms $have_lcms
33994LQR --with-lqr=$with_lqr $have_lqr
33995Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33996OpenEXR --with-openexr=$with_openexr $have_openexr
33997PERL --with-perl=$with_perl $have_perl
33998PNG --with-png=$with_png $have_png
33999RSVG --with-rsvg=$with_rsvg $have_rsvg
34000TIFF --with-tiff=$with_tiff $have_tiff
34001Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
34002WMF --with-wmf=$with_wmf $have_wmf
34003X11 --with-x=$with_x $have_x
34004XML --with-xml=$with_xml $have_xml
34005ZLIB --with-zlib=$with_zlib $have_zlib
34006
34007X11 Configuration:
34008 X_CFLAGS = $X_CFLAGS
34009 X_PRE_LIBS = $X_PRE_LIBS
34010 X_LIBS = $X_LIBS
34011 X_EXTRA_LIBS = $X_EXTRA_LIBS
34012
34013Options used to compile and link:
34014 PREFIX = $PREFIX_DIR
34015 EXEC-PREFIX = $EXEC_PREFIX_DIR
34016 VERSION = $PACKAGE_VERSION
34017 CC = $CC
34018 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034019 CPPFLAGS = $MAGICK_CPPFLAGS
34020 PCFLAGS = $MAGICK_PCFLAGS
34021 DEFS = $DEFS
34022 LDFLAGS = $LDFLAGS
34023 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34024 LIBS = $MAGICK_LIBS
34025 CXX = $CXX
34026 CXXFLAGS = $CXXFLAGS
34027" >&6; }