blob: 6148cd936df46f42e617ff574358e920c1922b33 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristydc0f0892009-12-29 02:21:55 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.5.9.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristycd4c5312009-11-22 01:19:08 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy18304f92009-11-22 15:48:26 +0000176test \$(( 1 + 1 )) = 2 || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: http://www.imagemagick.org about your system, including
235$0: any error possibly output before this message. Then
236$0: install a modern shell, or manually run the script
237$0: under such a shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
cristy3ed852e2009-09-05 21:47:34 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
cristy8b350f62009-11-15 23:12:43 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
cristy3ed852e2009-09-05 21:47:34 +0000396
cristy3ed852e2009-09-05 21:47:34 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
cristy8b350f62009-11-15 23:12:43 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000422
423
cristy8b350f62009-11-15 23:12:43 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
cristy3ed852e2009-09-05 21:47:34 +0000455ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000456case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000457-n*)
cristy8b350f62009-11-15 23:12:43 +0000458 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000463 esac;;
464*)
465 ECHO_N='-n';;
466esac
cristy3ed852e2009-09-05 21:47:34 +0000467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
cristy8b350f62009-11-15 23:12:43 +0000515 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000516 -*)set "./$1";;
517 esac;
cristy8b350f62009-11-15 23:12:43 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
cristy18304f92009-11-22 15:48:26 +0000531
532
533# Check that we are running under the correct shell.
cristy3ed852e2009-09-05 21:47:34 +0000534SHELL=${CONFIG_SHELL-/bin/sh}
535
cristy18304f92009-11-22 15:48:26 +0000536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
cristy3ed852e2009-09-05 21:47:34 +0000681lt_ltdl_dir='ltdl'
682
683lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
684
cristycd4c5312009-11-22 01:19:08 +0000685test -n "$DJDIR" || exec 7<&0 </dev/null
686exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000687
688# Name of the host.
689# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690# so uname gets run too.
691ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
693#
694# Initializations.
695#
696ac_default_prefix=/usr/local
697ac_clean_files=
698ac_config_libobj_dir=.
699LIBOBJS=
700cross_compiling=no
701subdirs=
702MFLAGS=
703MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000704
705# Identity of this package.
706PACKAGE_NAME='ImageMagick'
707PACKAGE_TARNAME='ImageMagick'
cristydc0f0892009-12-29 02:21:55 +0000708PACKAGE_VERSION='6.5.9'
709PACKAGE_STRING='ImageMagick 6.5.9'
cristy3ed852e2009-09-05 21:47:34 +0000710PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000711PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000712
713ac_unique_file="magick/MagickCore.h"
714ac_config_libobj_dir=ltdl
715# Factoring default headers for most tests.
716ac_includes_default="\
717#include <stdio.h>
718#ifdef HAVE_SYS_TYPES_H
719# include <sys/types.h>
720#endif
721#ifdef HAVE_SYS_STAT_H
722# include <sys/stat.h>
723#endif
724#ifdef STDC_HEADERS
725# include <stdlib.h>
726# include <stddef.h>
727#else
728# ifdef HAVE_STDLIB_H
729# include <stdlib.h>
730# endif
731#endif
732#ifdef HAVE_STRING_H
733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734# include <memory.h>
735# endif
736# include <string.h>
737#endif
738#ifdef HAVE_STRINGS_H
739# include <strings.h>
740#endif
741#ifdef HAVE_INTTYPES_H
742# include <inttypes.h>
743#endif
744#ifdef HAVE_STDINT_H
745# include <stdint.h>
746#endif
747#ifdef HAVE_UNISTD_H
748# include <unistd.h>
749#endif"
750
cristycd4c5312009-11-22 01:19:08 +0000751ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000752ac_subst_vars='ltdl_LTLIBOBJS
753ltdl_LIBOBJS
754am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
757MAGICK_LIBS
758MAGICK_LDFLAGS
759MAGICK_PCFLAGS
760MAGICK_CPPFLAGS
761MAGICK_CXXFLAGS
762MAGICK_CFLAGS
763MAGICK_DEP_LIBS
764MAGICK_LTDLDEPS
765MAGICK_LIBLTDL
766OSX_GCOV_LDFLAG
767DELEGATES
768MAGICKCORE_PATH
769PERL_SUPPORTS_DESTDIR
770WITH_PERL_DYNAMIC_FALSE
771WITH_PERL_DYNAMIC_TRUE
772WITH_PERL_STATIC_FALSE
773WITH_PERL_STATIC_TRUE
774WITH_PERL_FALSE
775WITH_PERL_TRUE
776GSVersion
777GSPSDevice
778GSPDFDevice
779GSMonoDevice
780GSEPSDevice
781GSColorDevice
782GSCMYKDevice
783GSAlphaDevice
784XPSVersion
785XPSCMYKDevice
786XPSColorDevice
787XPSMonoDevice
788PCLVersion
789PCLCMYKDevice
790PCLColorDevice
791PCLMonoDevice
792ZIP_DELEGATE_FALSE
793ZIP_DELEGATE_TRUE
794ZIP
795P7ZIP_DELEGATE_FALSE
796P7ZIP_DELEGATE_TRUE
797P7ZIP
798RPM_DELEGATE_FALSE
799RPM_DELEGATE_TRUE
800RPM
801PERL
802TAR
803ShowImageDelegate
804type_include_files
805ghostscript_font_dir
806windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000807dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000808PrintDelegate
809ZipDelegate
810XPSDelegate
811WWWDecodeDelegate
812WMFDecodeDelegate
813TXTDelegate
814SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000815RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000816RMDelegate
817RLEEncodeDelegate
818PSDelegate
819POVDelegate
820PGPDecodeDelegate
821PCLDelegate
822MVDelegate
823MPEGEncodeDelegate
824MPEGDecodeDelegate
825MANDelegate
826LaunchDelegate
827LZWEncodeDelegate
828LZWDecodeDelegate
829LPRDelegate
830LPDelegate
831ILBMEncodeDelegate
832ILBMDecodeDelegate
833HTMLDecodeDelegate
834HPGLDecodeDelegate
835HDRDecodeDelegate
836GnuplotDecodeDelegate
837MogrifyDelegate
838DisplayDelegate
839ConvertDelegate
840FIGDecodeDelegate
841EditorDelegate
842EchoDelegate
843DVIDecodeDelegate
844GVCDecodeDelegate
845DNGDecodeDelegate
846CatDelegate
847CGMDecodeDelegate
848BrowseDelegate
849BZIPDelegate
850BlenderDecodeDelegate
851AVIDecodeDelegate
852AutotraceDecodeDelegate
853SHARE_CONFIGURE_PATH
854SHARE_PATH
855DOCUMENTATION_PATH
856FILTER_PATH
857CODER_PATH
858CONFIGURE_PATH
859LIBRARY_PATH
860EXECUTABLE_PATH
861PERLMAINCC
862XML_LIBS
863XML_DELEGATE_FALSE
864XML_DELEGATE_TRUE
865xml2_config
866WMF_LIBS_DEPS
867WMF_LIBS
868WMF_DELEGATE_FALSE
869WMF_DELEGATE_TRUE
870TIFF_LIBS
871TIFF_DELEGATE_FALSE
872TIFF_DELEGATE_TRUE
873CAIRO_DELEGATE_FALSE
874CAIRO_DELEGATE_TRUE
875RSVG_DELEGATE_FALSE
876RSVG_DELEGATE_TRUE
877CAIRO_SVG_LIBS
878CAIRO_SVG_CFLAGS
879RSVG_LIBS
880RSVG_CFLAGS
881PNG_LIBS
882PNG_DELEGATE_FALSE
883PNG_DELEGATE_TRUE
884OPENEXR_DELEGATE_FALSE
885OPENEXR_DELEGATE_TRUE
886OPENEXR_LIBS
887OPENEXR_CFLAGS
888LQR_DELEGATE_FALSE
889LQR_DELEGATE_TRUE
890LQR_LIBS
891LQR_CFLAGS
892LCMS_LIBS
893LCMS_DELEGATE_FALSE
894LCMS_DELEGATE_TRUE
895JP2_LIBS
896JP2_DELEGATE_FALSE
897JP2_DELEGATE_TRUE
898JPEG_LIBS
899JPEG_DELEGATE_FALSE
900JPEG_DELEGATE_TRUE
901JBIG_LIBS
902JBIG_DELEGATE_FALSE
903JBIG_DELEGATE_TRUE
904GVC_DELEGATE_FALSE
905GVC_DELEGATE_TRUE
906GVC_LIBS
907GVC_CFLAGS
908GS_LIBS
909GS_DELEGATE_FALSE
910GS_DELEGATE_TRUE
911FREETYPE_LIBS
912FREETYPE_DELEGATE_FALSE
913FREETYPE_DELEGATE_TRUE
914freetype_config
915FONTCONFIG_DELEGATE_FALSE
916FONTCONFIG_DELEGATE_TRUE
917FONTCONFIG_LIBS
918FONTCONFIG_CFLAGS
919FPX_LIBS
920FPX_DELEGATE_FALSE
921FPX_DELEGATE_TRUE
922FFTW_LIBS
923FFTW_DELEGATE_FALSE
924FFTW_DELEGATE_TRUE
925DJVU_LIBS
926DJVU_DELEGATE_FALSE
927DJVU_DELEGATE_TRUE
928DPS_LIBS
929DPS_DELEGATE_FALSE
930DPS_DELEGATE_TRUE
931AUTOTRACE_DELEGATE_FALSE
932AUTOTRACE_DELEGATE_TRUE
933AUTOTRACE_LIBS
934AUTOTRACE_CFLAGS
935LIB_DL
936ZLIB_LIBS
937ZLIB_DELEGATE_FALSE
938ZLIB_DELEGATE_TRUE
939XEXT_LIBS
940X11_LIBS
941X11_DELEGATE_FALSE
942X11_DELEGATE_TRUE
943X_EXTRA_LIBS
944X_LIBS
945X_PRE_LIBS
946X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000947XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000948BZLIB_LIBS
949BZLIB_DELEGATE_FALSE
950BZLIB_DELEGATE_TRUE
951MATH_LIBS
952CCMALLOCDelegate
953UMEM_LIBS
954HasUMEM_FALSE
955HasUMEM_TRUE
956THREAD_LIBS
957GOMP_LIBS
958WITH_MAGICK_PLUS_PLUS_FALSE
959WITH_MAGICK_PLUS_PLUS_TRUE
960OPENMP_CXXFLAGS
961POW_LIB
962LIBOBJS
963UINTPTR_T
964UINTMAX_T
965UINT64_T
966INT64_T
967UINT32_T
968INT32_T
969UINT16_T
970INT16_T
971UINT8_T
972INT8_T
973LIBRARY_EXTRA_CPPFLAGS
974MODULE_EXTRA_CPPFLAGS
975LIBSTDCLDFLAGS
976PERL_MAKE_OPTIONS
977QUANTUM_DEPTH
978MAINT
979MAINTAINER_MODE_FALSE
980MAINTAINER_MODE_TRUE
981MAGICK_HDRI
982DLLDFLAGS
983WITH_LTDL_FALSE
984WITH_LTDL_TRUE
985WITH_MODULES_FALSE
986WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000987WITH_SHARED_LIBS_FALSE
988WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000989LTDLOPEN
990LT_CONFIG_H
991CONVENIENCE_LTDL_FALSE
992CONVENIENCE_LTDL_TRUE
993INSTALL_LTDL_FALSE
994INSTALL_LTDL_TRUE
995ARGZ_H
996sys_symbol_underscore
997LIBADD_DL
998LT_DLPREOPEN
999LIBADD_DLD_LINK
1000LIBADD_SHL_LOAD
1001LIBADD_DLOPEN
1002LT_DLLOADERS
1003INCLTDL
1004LTDLINCL
1005LTDLDEPS
1006LIBLTDL
1007LIBTOOL_DEPS
1008CXXCPP
1009OTOOL64
1010OTOOL
1011LIPO
1012NMEDIT
1013DSYMUTIL
cristy18304f92009-11-22 15:48:26 +00001014lt_ECHO
cristy4dc44432009-12-30 23:30:06 +00001015RANLIB
cristy3ed852e2009-09-05 21:47:34 +00001016AR
1017NM
1018ac_ct_DUMPBIN
1019DUMPBIN
1020LIBTOOL
1021OBJDUMP
1022DLLTOOL
1023AS
1024LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001025CL_LIBS
1026CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001027OPENMP_CFLAGS
1028PTHREAD_CFLAGS
1029PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001030PTHREAD_CC
1031acx_pthread_config
1032WinPathScript
1033USING_CL_FALSE
1034USING_CL_TRUE
1035CYGWIN_BUILD_FALSE
1036CYGWIN_BUILD_TRUE
1037WIN32_NATIVE_BUILD_FALSE
1038WIN32_NATIVE_BUILD_TRUE
1039WINGDI32_DELEGATE_FALSE
1040WINGDI32_DELEGATE_TRUE
1041GDI32_LIBS
1042PKG_CONFIG
1043LN_S
cristy3ed852e2009-09-05 21:47:34 +00001044LD
1045FGREP
cristy3ed852e2009-09-05 21:47:34 +00001046SED
cristy95646052009-11-28 23:05:30 +00001047am__fastdepCXX_FALSE
1048am__fastdepCXX_TRUE
1049CXXDEPMODE
1050ac_ct_CXX
1051CXXFLAGS
1052CXX
cristya0b81c32010-01-22 02:54:33 +00001053EGREP
1054GREP
1055CPP
cristy3ed852e2009-09-05 21:47:34 +00001056am__fastdepCC_FALSE
1057am__fastdepCC_TRUE
1058CCDEPMODE
1059AMDEPBACKSLASH
1060AMDEP_FALSE
1061AMDEP_TRUE
1062am__quote
1063am__include
1064DEPDIR
1065OBJEXT
1066EXEEXT
1067ac_ct_CC
1068CPPFLAGS
1069LDFLAGS
1070CFLAGS
1071CC
1072DIRSEP
1073MAGICK_FILTER_MODULE_PATH
1074MAGICK_CONFIGURE_BUILD_PATH
1075MAGICK_CONFIGURE_SRC_PATH
1076MAGICK_CODER_MODULE_PATH
1077MAN_DIR
1078INFO_DIR
1079PERSISTINCLUDE_DIR
1080INCLUDE_DIR
1081LIB_DIR
1082LOCALSTATE_DIR
1083SHAREDSTATE_DIR
1084SYSCONF_DIR
1085DATA_DIR
1086LIBEXEC_DIR
1087SBIN_DIR
1088BIN_DIR
1089EXEC_PREFIX_DIR
1090PREFIX_DIR
1091CONFIG_STATUS_DEPENDENCIES
1092MAGICK_LIB_VERSION_NUMBER
1093MAGICK_LIB_VERSION_TEXT
1094MAGICK_LIB_VERSION
1095AM_BACKSLASH
1096AM_DEFAULT_VERBOSITY
1097am__untar
1098am__tar
1099AMTAR
1100am__leading_dot
1101SET_MAKE
1102AWK
1103mkdir_p
1104MKDIR_P
1105INSTALL_STRIP_PROGRAM
1106STRIP
1107install_sh
1108MAKEINFO
1109AUTOHEADER
1110AUTOMAKE
1111AUTOCONF
1112ACLOCAL
1113VERSION
1114PACKAGE
1115CYGPATH_W
1116am__isrc
1117INSTALL_DATA
1118INSTALL_SCRIPT
1119INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001120PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001121PACKAGE_RELEASE_DATE
1122PACKAGE_LIB_VERSION_NUMBER
1123PACKAGE_LIB_VERSION
1124PACKAGE_CHANGE_DATE
1125PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001126MAGICK_LIBRARY_VERSION_INFO
1127MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001128MAGICK_LIBRARY_AGE
1129MAGICK_LIBRARY_REVISION
1130MAGICK_LIBRARY_CURRENT
1131target_os
1132target_vendor
1133target_cpu
1134target
1135host_os
1136host_vendor
1137host_cpu
1138host
1139build_os
1140build_vendor
1141build_cpu
1142build
1143CONFIGURE_ARGS
1144DISTCHECK_CONFIG_FLAGS
1145target_alias
1146host_alias
1147build_alias
1148LIBS
1149ECHO_T
1150ECHO_N
1151ECHO_C
1152DEFS
1153mandir
1154localedir
1155libdir
1156psdir
1157pdfdir
1158dvidir
1159htmldir
1160infodir
1161docdir
1162oldincludedir
1163includedir
1164localstatedir
1165sharedstatedir
1166sysconfdir
1167datadir
1168datarootdir
1169libexecdir
1170sbindir
1171bindir
1172program_transform_name
1173prefix
1174exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001175PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001176PACKAGE_BUGREPORT
1177PACKAGE_STRING
1178PACKAGE_VERSION
1179PACKAGE_TARNAME
1180PACKAGE_NAME
1181PATH_SEPARATOR
1182SHELL'
1183ac_subst_files=''
1184ac_user_opts='
1185enable_option_checking
1186enable_silent_rules
1187enable_dependency_tracking
1188with_gnu_ld
1189with_maximum_compile_warnings
1190with_dmalloc
1191enable_bounds_checking
1192enable_osx_universal_binary
1193with_threads
1194enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001195enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001196enable_largefile
1197enable_shared
1198enable_static
1199with_pic
1200enable_fast_install
1201enable_libtool_lock
1202with_included_ltdl
1203with_ltdl_include
1204with_ltdl_lib
1205enable_ltdl_install
1206with_modules
1207enable_delegate_build
1208enable_deprecated
1209enable_installed
1210enable_cipher
1211enable_embeddable
1212enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001213enable_assert
1214enable_maintainer_mode
1215enable_ccmalloc
1216enable_efence
1217enable_prof
1218enable_gprof
1219enable_gcov
1220with_method_prefix
1221with_quantum_depth
1222with_cache
1223with_frozenpaths
1224with_magick_plus_plus
1225with_perl
1226with_perl_options
1227with_umem
1228with_libstdc
1229with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001230with_x
cristy3ed852e2009-09-05 21:47:34 +00001231with_zlib
1232with_autotrace
1233with_dps
1234with_djvu
cristy430a7312010-01-21 20:44:04 +00001235with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001236with_fftw
1237with_fpx
1238with_fontconfig
1239with_freetype
1240with_gslib
1241with_fontpath
1242with_gs_font_dir
1243with_gvc
1244with_jbig
1245with_jpeg
1246with_jp2
1247with_lcms
1248with_lqr
1249with_openexr
1250with_png
1251with_rsvg
1252with_tiff
1253with_windows_font_dir
1254with_wmf
1255with_xml
1256'
1257 ac_precious_vars='build_alias
1258host_alias
1259target_alias
1260CC
1261CFLAGS
1262LDFLAGS
1263LIBS
1264CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001265CPP
cristy3ed852e2009-09-05 21:47:34 +00001266CXX
1267CXXFLAGS
1268CCC
1269PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001270CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001271XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001272AUTOTRACE_CFLAGS
1273AUTOTRACE_LIBS
1274FONTCONFIG_CFLAGS
1275FONTCONFIG_LIBS
1276GVC_CFLAGS
1277GVC_LIBS
1278LQR_CFLAGS
1279LQR_LIBS
1280OPENEXR_CFLAGS
1281OPENEXR_LIBS
1282RSVG_CFLAGS
1283RSVG_LIBS
1284CAIRO_SVG_CFLAGS
1285CAIRO_SVG_LIBS'
1286
1287
1288# Initialize some variables set by options.
1289ac_init_help=
1290ac_init_version=false
1291ac_unrecognized_opts=
1292ac_unrecognized_sep=
1293# The variables have the same names as the options, with
1294# dashes changed to underlines.
1295cache_file=/dev/null
1296exec_prefix=NONE
1297no_create=
1298no_recursion=
1299prefix=NONE
1300program_prefix=NONE
1301program_suffix=NONE
1302program_transform_name=s,x,x,
1303silent=
1304site=
1305srcdir=
1306verbose=
1307x_includes=NONE
1308x_libraries=NONE
1309
1310# Installation directory options.
1311# These are left unexpanded so users can "make install exec_prefix=/foo"
1312# and all the variables that are supposed to be based on exec_prefix
1313# by default will actually change.
1314# Use braces instead of parens because sh, perl, etc. also accept them.
1315# (The list follows the same order as the GNU Coding Standards.)
1316bindir='${exec_prefix}/bin'
1317sbindir='${exec_prefix}/sbin'
1318libexecdir='${exec_prefix}/libexec'
1319datarootdir='${prefix}/share'
1320datadir='${datarootdir}'
1321sysconfdir='${prefix}/etc'
1322sharedstatedir='${prefix}/com'
1323localstatedir='${prefix}/var'
1324includedir='${prefix}/include'
1325oldincludedir='/usr/include'
1326docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1327infodir='${datarootdir}/info'
1328htmldir='${docdir}'
1329dvidir='${docdir}'
1330pdfdir='${docdir}'
1331psdir='${docdir}'
1332libdir='${exec_prefix}/lib'
1333localedir='${datarootdir}/locale'
1334mandir='${datarootdir}/man'
1335
1336ac_prev=
1337ac_dashdash=
1338for ac_option
1339do
1340 # If the previous option needs an argument, assign it.
1341 if test -n "$ac_prev"; then
1342 eval $ac_prev=\$ac_option
1343 ac_prev=
1344 continue
1345 fi
1346
1347 case $ac_option in
1348 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1349 *) ac_optarg=yes ;;
1350 esac
1351
1352 # Accept the important Cygnus configure options, so we can diagnose typos.
1353
1354 case $ac_dashdash$ac_option in
1355 --)
1356 ac_dashdash=yes ;;
1357
1358 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1359 ac_prev=bindir ;;
1360 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1361 bindir=$ac_optarg ;;
1362
1363 -build | --build | --buil | --bui | --bu)
1364 ac_prev=build_alias ;;
1365 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1366 build_alias=$ac_optarg ;;
1367
1368 -cache-file | --cache-file | --cache-fil | --cache-fi \
1369 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1370 ac_prev=cache_file ;;
1371 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1372 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1373 cache_file=$ac_optarg ;;
1374
1375 --config-cache | -C)
1376 cache_file=config.cache ;;
1377
1378 -datadir | --datadir | --datadi | --datad)
1379 ac_prev=datadir ;;
1380 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1381 datadir=$ac_optarg ;;
1382
1383 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1384 | --dataroo | --dataro | --datar)
1385 ac_prev=datarootdir ;;
1386 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1387 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1388 datarootdir=$ac_optarg ;;
1389
1390 -disable-* | --disable-*)
1391 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1392 # Reject names that are not valid shell variable names.
1393 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001394 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001395 ac_useropt_orig=$ac_useropt
1396 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1397 case $ac_user_opts in
1398 *"
1399"enable_$ac_useropt"
1400"*) ;;
1401 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1402 ac_unrecognized_sep=', ';;
1403 esac
1404 eval enable_$ac_useropt=no ;;
1405
1406 -docdir | --docdir | --docdi | --doc | --do)
1407 ac_prev=docdir ;;
1408 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1409 docdir=$ac_optarg ;;
1410
1411 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1412 ac_prev=dvidir ;;
1413 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1414 dvidir=$ac_optarg ;;
1415
1416 -enable-* | --enable-*)
1417 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1418 # Reject names that are not valid shell variable names.
1419 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001420 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001421 ac_useropt_orig=$ac_useropt
1422 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1423 case $ac_user_opts in
1424 *"
1425"enable_$ac_useropt"
1426"*) ;;
1427 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1428 ac_unrecognized_sep=', ';;
1429 esac
1430 eval enable_$ac_useropt=\$ac_optarg ;;
1431
1432 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1433 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1434 | --exec | --exe | --ex)
1435 ac_prev=exec_prefix ;;
1436 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1437 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1438 | --exec=* | --exe=* | --ex=*)
1439 exec_prefix=$ac_optarg ;;
1440
1441 -gas | --gas | --ga | --g)
1442 # Obsolete; use --with-gas.
1443 with_gas=yes ;;
1444
1445 -help | --help | --hel | --he | -h)
1446 ac_init_help=long ;;
1447 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1448 ac_init_help=recursive ;;
1449 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1450 ac_init_help=short ;;
1451
1452 -host | --host | --hos | --ho)
1453 ac_prev=host_alias ;;
1454 -host=* | --host=* | --hos=* | --ho=*)
1455 host_alias=$ac_optarg ;;
1456
1457 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1458 ac_prev=htmldir ;;
1459 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1460 | --ht=*)
1461 htmldir=$ac_optarg ;;
1462
1463 -includedir | --includedir | --includedi | --included | --include \
1464 | --includ | --inclu | --incl | --inc)
1465 ac_prev=includedir ;;
1466 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1467 | --includ=* | --inclu=* | --incl=* | --inc=*)
1468 includedir=$ac_optarg ;;
1469
1470 -infodir | --infodir | --infodi | --infod | --info | --inf)
1471 ac_prev=infodir ;;
1472 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1473 infodir=$ac_optarg ;;
1474
1475 -libdir | --libdir | --libdi | --libd)
1476 ac_prev=libdir ;;
1477 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1478 libdir=$ac_optarg ;;
1479
1480 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1481 | --libexe | --libex | --libe)
1482 ac_prev=libexecdir ;;
1483 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1484 | --libexe=* | --libex=* | --libe=*)
1485 libexecdir=$ac_optarg ;;
1486
1487 -localedir | --localedir | --localedi | --localed | --locale)
1488 ac_prev=localedir ;;
1489 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1490 localedir=$ac_optarg ;;
1491
1492 -localstatedir | --localstatedir | --localstatedi | --localstated \
1493 | --localstate | --localstat | --localsta | --localst | --locals)
1494 ac_prev=localstatedir ;;
1495 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1496 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1497 localstatedir=$ac_optarg ;;
1498
1499 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1500 ac_prev=mandir ;;
1501 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1502 mandir=$ac_optarg ;;
1503
1504 -nfp | --nfp | --nf)
1505 # Obsolete; use --without-fp.
1506 with_fp=no ;;
1507
1508 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1509 | --no-cr | --no-c | -n)
1510 no_create=yes ;;
1511
1512 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1513 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1514 no_recursion=yes ;;
1515
1516 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1517 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1518 | --oldin | --oldi | --old | --ol | --o)
1519 ac_prev=oldincludedir ;;
1520 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1521 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1522 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1523 oldincludedir=$ac_optarg ;;
1524
1525 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1526 ac_prev=prefix ;;
1527 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1528 prefix=$ac_optarg ;;
1529
1530 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1531 | --program-pre | --program-pr | --program-p)
1532 ac_prev=program_prefix ;;
1533 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1534 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1535 program_prefix=$ac_optarg ;;
1536
1537 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1538 | --program-suf | --program-su | --program-s)
1539 ac_prev=program_suffix ;;
1540 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1541 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1542 program_suffix=$ac_optarg ;;
1543
1544 -program-transform-name | --program-transform-name \
1545 | --program-transform-nam | --program-transform-na \
1546 | --program-transform-n | --program-transform- \
1547 | --program-transform | --program-transfor \
1548 | --program-transfo | --program-transf \
1549 | --program-trans | --program-tran \
1550 | --progr-tra | --program-tr | --program-t)
1551 ac_prev=program_transform_name ;;
1552 -program-transform-name=* | --program-transform-name=* \
1553 | --program-transform-nam=* | --program-transform-na=* \
1554 | --program-transform-n=* | --program-transform-=* \
1555 | --program-transform=* | --program-transfor=* \
1556 | --program-transfo=* | --program-transf=* \
1557 | --program-trans=* | --program-tran=* \
1558 | --progr-tra=* | --program-tr=* | --program-t=*)
1559 program_transform_name=$ac_optarg ;;
1560
1561 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1562 ac_prev=pdfdir ;;
1563 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1564 pdfdir=$ac_optarg ;;
1565
1566 -psdir | --psdir | --psdi | --psd | --ps)
1567 ac_prev=psdir ;;
1568 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1569 psdir=$ac_optarg ;;
1570
1571 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1572 | -silent | --silent | --silen | --sile | --sil)
1573 silent=yes ;;
1574
1575 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1576 ac_prev=sbindir ;;
1577 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1578 | --sbi=* | --sb=*)
1579 sbindir=$ac_optarg ;;
1580
1581 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1582 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1583 | --sharedst | --shareds | --shared | --share | --shar \
1584 | --sha | --sh)
1585 ac_prev=sharedstatedir ;;
1586 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1587 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1588 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1589 | --sha=* | --sh=*)
1590 sharedstatedir=$ac_optarg ;;
1591
1592 -site | --site | --sit)
1593 ac_prev=site ;;
1594 -site=* | --site=* | --sit=*)
1595 site=$ac_optarg ;;
1596
1597 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1598 ac_prev=srcdir ;;
1599 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1600 srcdir=$ac_optarg ;;
1601
1602 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1603 | --syscon | --sysco | --sysc | --sys | --sy)
1604 ac_prev=sysconfdir ;;
1605 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1606 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1607 sysconfdir=$ac_optarg ;;
1608
1609 -target | --target | --targe | --targ | --tar | --ta | --t)
1610 ac_prev=target_alias ;;
1611 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1612 target_alias=$ac_optarg ;;
1613
1614 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1615 verbose=yes ;;
1616
1617 -version | --version | --versio | --versi | --vers | -V)
1618 ac_init_version=: ;;
1619
1620 -with-* | --with-*)
1621 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1622 # Reject names that are not valid shell variable names.
1623 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001624 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001625 ac_useropt_orig=$ac_useropt
1626 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1627 case $ac_user_opts in
1628 *"
1629"with_$ac_useropt"
1630"*) ;;
1631 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1632 ac_unrecognized_sep=', ';;
1633 esac
1634 eval with_$ac_useropt=\$ac_optarg ;;
1635
1636 -without-* | --without-*)
1637 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1638 # Reject names that are not valid shell variable names.
1639 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001640 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001641 ac_useropt_orig=$ac_useropt
1642 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1643 case $ac_user_opts in
1644 *"
1645"with_$ac_useropt"
1646"*) ;;
1647 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1648 ac_unrecognized_sep=', ';;
1649 esac
1650 eval with_$ac_useropt=no ;;
1651
1652 --x)
1653 # Obsolete; use --with-x.
1654 with_x=yes ;;
1655
1656 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1657 | --x-incl | --x-inc | --x-in | --x-i)
1658 ac_prev=x_includes ;;
1659 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1660 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1661 x_includes=$ac_optarg ;;
1662
1663 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1664 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1665 ac_prev=x_libraries ;;
1666 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1667 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1668 x_libraries=$ac_optarg ;;
1669
cristy8b350f62009-11-15 23:12:43 +00001670 -*) as_fn_error "unrecognized option: \`$ac_option'
1671Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001672 ;;
1673
1674 *=*)
1675 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1676 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001677 case $ac_envvar in #(
1678 '' | [0-9]* | *[!_$as_cr_alnum]* )
1679 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1680 esac
cristy3ed852e2009-09-05 21:47:34 +00001681 eval $ac_envvar=\$ac_optarg
1682 export $ac_envvar ;;
1683
1684 *)
1685 # FIXME: should be removed in autoconf 3.0.
1686 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1687 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1688 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1689 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1690 ;;
1691
1692 esac
1693done
1694
1695if test -n "$ac_prev"; then
1696 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001697 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001698fi
1699
1700if test -n "$ac_unrecognized_opts"; then
1701 case $enable_option_checking in
1702 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001703 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001704 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1705 esac
1706fi
1707
1708# Check all directory arguments for consistency.
1709for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1710 datadir sysconfdir sharedstatedir localstatedir includedir \
1711 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1712 libdir localedir mandir
1713do
1714 eval ac_val=\$$ac_var
1715 # Remove trailing slashes.
1716 case $ac_val in
1717 */ )
1718 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1719 eval $ac_var=\$ac_val;;
1720 esac
1721 # Be sure to have absolute directory names.
1722 case $ac_val in
1723 [\\/$]* | ?:[\\/]* ) continue;;
1724 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1725 esac
cristy8b350f62009-11-15 23:12:43 +00001726 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001727done
1728
1729# There might be people who depend on the old broken behavior: `$host'
1730# used to hold the argument of --host etc.
1731# FIXME: To remove some day.
1732build=$build_alias
1733host=$host_alias
1734target=$target_alias
1735
1736# FIXME: To remove some day.
1737if test "x$host_alias" != x; then
1738 if test "x$build_alias" = x; then
1739 cross_compiling=maybe
1740 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1741 If a cross compiler is detected then cross compile mode will be used." >&2
1742 elif test "x$build_alias" != "x$host_alias"; then
1743 cross_compiling=yes
1744 fi
1745fi
1746
1747ac_tool_prefix=
1748test -n "$host_alias" && ac_tool_prefix=$host_alias-
1749
1750test "$silent" = yes && exec 6>/dev/null
1751
1752
1753ac_pwd=`pwd` && test -n "$ac_pwd" &&
1754ac_ls_di=`ls -di .` &&
1755ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001756 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001757test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001758 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001759
1760
1761# Find the source files, if location was not specified.
1762if test -z "$srcdir"; then
1763 ac_srcdir_defaulted=yes
1764 # Try the directory containing this script, then the parent directory.
1765 ac_confdir=`$as_dirname -- "$as_myself" ||
1766$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1767 X"$as_myself" : 'X\(//\)[^/]' \| \
1768 X"$as_myself" : 'X\(//\)$' \| \
1769 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1770$as_echo X"$as_myself" |
1771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1772 s//\1/
1773 q
1774 }
1775 /^X\(\/\/\)[^/].*/{
1776 s//\1/
1777 q
1778 }
1779 /^X\(\/\/\)$/{
1780 s//\1/
1781 q
1782 }
1783 /^X\(\/\).*/{
1784 s//\1/
1785 q
1786 }
1787 s/.*/./; q'`
1788 srcdir=$ac_confdir
1789 if test ! -r "$srcdir/$ac_unique_file"; then
1790 srcdir=..
1791 fi
1792else
1793 ac_srcdir_defaulted=no
1794fi
1795if test ! -r "$srcdir/$ac_unique_file"; then
1796 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001797 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001798fi
1799ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1800ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001801 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001802 pwd)`
1803# When building in place, set srcdir=.
1804if test "$ac_abs_confdir" = "$ac_pwd"; then
1805 srcdir=.
1806fi
1807# Remove unnecessary trailing slashes from srcdir.
1808# Double slashes in file names in object file debugging info
1809# mess up M-x gdb in Emacs.
1810case $srcdir in
1811*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1812esac
1813for ac_var in $ac_precious_vars; do
1814 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1815 eval ac_env_${ac_var}_value=\$${ac_var}
1816 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1817 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1818done
1819
1820#
1821# Report the --help message.
1822#
1823if test "$ac_init_help" = "long"; then
1824 # Omit some internal or obsolete options to make the list less imposing.
1825 # This message is too long to be a string in the A/UX 3.1 sh.
1826 cat <<_ACEOF
cristydc0f0892009-12-29 02:21:55 +00001827\`configure' configures ImageMagick 6.5.9 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001828
1829Usage: $0 [OPTION]... [VAR=VALUE]...
1830
1831To assign environment variables (e.g., CC, CFLAGS...), specify them as
1832VAR=VALUE. See below for descriptions of some of the useful variables.
1833
1834Defaults for the options are specified in brackets.
1835
1836Configuration:
1837 -h, --help display this help and exit
1838 --help=short display options specific to this package
1839 --help=recursive display the short help of all the included packages
1840 -V, --version display version information and exit
1841 -q, --quiet, --silent do not print \`checking...' messages
1842 --cache-file=FILE cache test results in FILE [disabled]
1843 -C, --config-cache alias for \`--cache-file=config.cache'
1844 -n, --no-create do not create output files
1845 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1846
1847Installation directories:
1848 --prefix=PREFIX install architecture-independent files in PREFIX
1849 [$ac_default_prefix]
1850 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1851 [PREFIX]
1852
1853By default, \`make install' will install all the files in
1854\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1855an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1856for instance \`--prefix=\$HOME'.
1857
1858For better control, use the options below.
1859
1860Fine tuning of the installation directories:
1861 --bindir=DIR user executables [EPREFIX/bin]
1862 --sbindir=DIR system admin executables [EPREFIX/sbin]
1863 --libexecdir=DIR program executables [EPREFIX/libexec]
1864 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1865 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1866 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1867 --libdir=DIR object code libraries [EPREFIX/lib]
1868 --includedir=DIR C header files [PREFIX/include]
1869 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1870 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1871 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1872 --infodir=DIR info documentation [DATAROOTDIR/info]
1873 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1874 --mandir=DIR man documentation [DATAROOTDIR/man]
1875 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1876 --htmldir=DIR html documentation [DOCDIR]
1877 --dvidir=DIR dvi documentation [DOCDIR]
1878 --pdfdir=DIR pdf documentation [DOCDIR]
1879 --psdir=DIR ps documentation [DOCDIR]
1880_ACEOF
1881
1882 cat <<\_ACEOF
1883
1884Program names:
1885 --program-prefix=PREFIX prepend PREFIX to installed program names
1886 --program-suffix=SUFFIX append SUFFIX to installed program names
1887 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1888
1889X features:
1890 --x-includes=DIR X include files are in DIR
1891 --x-libraries=DIR X library files are in DIR
1892
1893System types:
1894 --build=BUILD configure for building on BUILD [guessed]
1895 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1896 --target=TARGET configure for building compilers for TARGET [HOST]
1897_ACEOF
1898fi
1899
1900if test -n "$ac_init_help"; then
1901 case $ac_init_help in
cristydc0f0892009-12-29 02:21:55 +00001902 short | recursive ) echo "Configuration of ImageMagick 6.5.9:";;
cristy3ed852e2009-09-05 21:47:34 +00001903 esac
1904 cat <<\_ACEOF
1905
1906Optional Features:
1907 --disable-option-checking ignore unrecognized --enable/--with options
1908 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1909 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1910 --enable-silent-rules less verbose build output (undo: `make V=1')
1911 --disable-silent-rules verbose build output (undo: `make V=0')
1912 --disable-dependency-tracking speeds up one-time build
1913 --enable-dependency-tracking do not reject slow dependency extractors
1914 --bounds-checking enable run-time bounds-checking
1915 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001916 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001917 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001918 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001919 --disable-largefile omit support for large files
1920 --enable-shared[=PKGS] build shared libraries [default=yes]
1921 --enable-static[=PKGS] build static libraries [default=yes]
1922 --enable-fast-install[=PKGS]
1923 optimize for fast installation [default=yes]
1924 --disable-libtool-lock avoid locking (might break parallel builds)
1925 --enable-ltdl-install install libltdl
1926 --enable-delegate-build look for delegate libraries in build directory
1927 --disable-deprecated exclude deprecated methods in MagickCore and
1928 MagickWand API's
1929 --disable-installed Formally install ImageMagick under PREFIX
1930 --disable-cipher disable enciphering and deciphering image pixels
1931 --enable-embeddable enable self-contained, embeddable,
1932 zero-configuration ImageMagick
1933 --enable-hdri accurately represent the wide range of intensity
1934 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001935 --disable-assert disable assert() statements in build
1936 --enable-maintainer-mode enable make rules and dependencies not useful
1937 (and sometimes confusing) to the casual installer
1938 --enable-ccmalloc enable 'ccmalloc' memory debug support
1939 --enable-efence enable 'efence' memory debug support
1940 --enable-prof enable 'prof' profiling support
1941 --enable-gprof enable 'gprof' profiling support
1942 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001943 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001944
1945Optional Packages:
1946 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1947 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1948 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1949 --without-maximum-compile-warnings
1950 Disable maximum warning verbosity
1951 --with-dmalloc use dmalloc, as in
1952 http://www.dmalloc.com/dmalloc.tar.gz
1953 --without-threads disable threads support
1954 --with-pic try to use only PIC/non-PIC objects [default=use
1955 both]
1956 --with-included-ltdl use the GNU ltdl sources included here
1957 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1958 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1959 --with-modules enable building dynamically loadable modules
1960 --with-method-prefix=PREFIX
1961 prefix MagickCore API methods
1962 --with-quantum-depth=DEPTH
1963 number of bits in a pixel quantum (default 16)
1964 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1965 memory)
1966 --with-frozenpaths freeze delegate paths
1967 --without-magick-plus-plus
1968 disable build/install of Magick++
1969 --with-perl enable build/install of PerlMagick
1970 --with-perl-options=OPTIONS
1971 options to pass on command-line when generating
1972 PerlMagick's build file
1973 --with-umem enable umem memory allocation library support
1974 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1975 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001976 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001977 --without-zlib disable ZLIB support
1978 --with-autotrace enable autotrace support
1979 --without-dps disable Display Postscript support
1980 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001981 --with-dejavu-font-dir=DIR
1982 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001983 --without-fftw disable FFTW support
1984 --without-fpx disable FlashPIX support
1985 --without-fontconfig disable fontconfig support
1986 --without-freetype disable Freetype support
1987 --without-gslib enable Ghostscript library support
1988 --with-fontpath=DIR prepend to default font search path
1989 --with-gs-font-dir=DIR Ghostscript font directory
1990 --without-gvc disable GVC support
1991 --without-jbig disable JBIG support
1992 --without-jpeg disable JPEG support
1993 --without-jp2 disable JPEG-2000 support
1994 --without-lcms disable LCMS support
1995 --without-lqr disable Liquid Rescale support (experimental)
1996 --without-openexr disable OpenEXR support
1997 --without-png disable PNG support
1998 --without-rsvg disable RSVG support
1999 --without-tiff disable TIFF support
2000 --with-windows-font-dir=DIR
2001 directory containing MS-Windows fonts
2002 --without-wmf disable WMF support
2003 --without-xml disable XML support
2004
2005Some influential environment variables:
2006 CC C compiler command
2007 CFLAGS C compiler flags
2008 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2009 nonstandard directory <lib dir>
2010 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002011 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002012 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002013 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002014 CXX C++ compiler command
2015 CXXFLAGS C++ compiler flags
2016 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002017 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002018 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002019 AUTOTRACE_CFLAGS
2020 C compiler flags for AUTOTRACE, overriding pkg-config
2021 AUTOTRACE_LIBS
2022 linker flags for AUTOTRACE, overriding pkg-config
2023 FONTCONFIG_CFLAGS
2024 C compiler flags for FONTCONFIG, overriding pkg-config
2025 FONTCONFIG_LIBS
2026 linker flags for FONTCONFIG, overriding pkg-config
2027 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2028 GVC_LIBS linker flags for GVC, overriding pkg-config
2029 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2030 LQR_LIBS linker flags for LQR, overriding pkg-config
2031 OPENEXR_CFLAGS
2032 C compiler flags for OPENEXR, overriding pkg-config
2033 OPENEXR_LIBS
2034 linker flags for OPENEXR, overriding pkg-config
2035 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2036 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2037 CAIRO_SVG_CFLAGS
2038 C compiler flags for CAIRO_SVG, overriding pkg-config
2039 CAIRO_SVG_LIBS
2040 linker flags for CAIRO_SVG, overriding pkg-config
2041
2042Use these variables to override the choices made by `configure' or to help
2043it to find libraries and programs with nonstandard names/locations.
2044
2045Report bugs to <http://www.imagemagick.org>.
2046_ACEOF
2047ac_status=$?
2048fi
2049
2050if test "$ac_init_help" = "recursive"; then
2051 # If there are subdirs, report their specific --help.
2052 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2053 test -d "$ac_dir" ||
2054 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2055 continue
2056 ac_builddir=.
2057
2058case "$ac_dir" in
2059.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2060*)
2061 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2062 # A ".." for each directory in $ac_dir_suffix.
2063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2064 case $ac_top_builddir_sub in
2065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2067 esac ;;
2068esac
2069ac_abs_top_builddir=$ac_pwd
2070ac_abs_builddir=$ac_pwd$ac_dir_suffix
2071# for backward compatibility:
2072ac_top_builddir=$ac_top_build_prefix
2073
2074case $srcdir in
2075 .) # We are building in place.
2076 ac_srcdir=.
2077 ac_top_srcdir=$ac_top_builddir_sub
2078 ac_abs_top_srcdir=$ac_pwd ;;
2079 [\\/]* | ?:[\\/]* ) # Absolute name.
2080 ac_srcdir=$srcdir$ac_dir_suffix;
2081 ac_top_srcdir=$srcdir
2082 ac_abs_top_srcdir=$srcdir ;;
2083 *) # Relative name.
2084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2085 ac_top_srcdir=$ac_top_build_prefix$srcdir
2086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2087esac
2088ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2089
2090 cd "$ac_dir" || { ac_status=$?; continue; }
2091 # Check for guested configure.
2092 if test -f "$ac_srcdir/configure.gnu"; then
2093 echo &&
2094 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2095 elif test -f "$ac_srcdir/configure"; then
2096 echo &&
2097 $SHELL "$ac_srcdir/configure" --help=recursive
2098 else
2099 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2100 fi || ac_status=$?
2101 cd "$ac_pwd" || { ac_status=$?; break; }
2102 done
2103fi
2104
2105test -n "$ac_init_help" && exit $ac_status
2106if $ac_init_version; then
2107 cat <<\_ACEOF
cristydc0f0892009-12-29 02:21:55 +00002108ImageMagick configure 6.5.9
cristycd4c5312009-11-22 01:19:08 +00002109generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002110
cristy8b350f62009-11-15 23:12:43 +00002111Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002112This configure script is free software; the Free Software Foundation
2113gives unlimited permission to copy, distribute and modify it.
2114_ACEOF
2115 exit
2116fi
cristy8b350f62009-11-15 23:12:43 +00002117
2118## ------------------------ ##
2119## Autoconf initialization. ##
2120## ------------------------ ##
2121
2122# ac_fn_c_try_compile LINENO
2123# --------------------------
2124# Try to compile conftest.$ac_ext, and return whether this succeeded.
2125ac_fn_c_try_compile ()
2126{
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 rm -f conftest.$ac_objext
2129 if { { ac_try="$ac_compile"
2130case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133esac
2134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135$as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_compile") 2>conftest.err
2137 ac_status=$?
2138 if test -s conftest.err; then
2139 grep -v '^ *+' conftest.err >conftest.er1
2140 cat conftest.er1 >&5
2141 mv -f conftest.er1 conftest.err
2142 fi
2143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144 test $ac_status = 0; } && {
2145 test -z "$ac_c_werror_flag" ||
2146 test ! -s conftest.err
2147 } && test -s conftest.$ac_objext; then :
2148 ac_retval=0
2149else
2150 $as_echo "$as_me: failed program was:" >&5
2151sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 ac_retval=1
2154fi
2155 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002156 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002157
2158} # ac_fn_c_try_compile
2159
cristy95646052009-11-28 23:05:30 +00002160# ac_fn_c_try_cpp LINENO
2161# ----------------------
2162# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2163ac_fn_c_try_cpp ()
2164{
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 if { { ac_try="$ac_cpp conftest.$ac_ext"
2167case "(($ac_try" in
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2170esac
2171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2172$as_echo "$ac_try_echo"; } >&5
2173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2174 ac_status=$?
2175 if test -s conftest.err; then
2176 grep -v '^ *+' conftest.err >conftest.er1
2177 cat conftest.er1 >&5
2178 mv -f conftest.er1 conftest.err
2179 fi
2180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181 test $ac_status = 0; } >/dev/null && {
2182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2183 test ! -s conftest.err
2184 }; then :
2185 ac_retval=0
2186else
2187 $as_echo "$as_me: failed program was:" >&5
2188sed 's/^/| /' conftest.$ac_ext >&5
2189
2190 ac_retval=1
2191fi
2192 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193 as_fn_set_status $ac_retval
2194
2195} # ac_fn_c_try_cpp
2196
cristy8b350f62009-11-15 23:12:43 +00002197# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2198# -------------------------------------------------------
2199# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2200# the include files in INCLUDES and setting the cache variable VAR
2201# accordingly.
2202ac_fn_c_check_header_mongrel ()
2203{
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207$as_echo_n "checking for $2... " >&6; }
2208if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 $as_echo_n "(cached) " >&6
2210fi
2211eval ac_res=\$$3
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213$as_echo "$ac_res" >&6; }
2214else
2215 # Is the header compilable?
2216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2217$as_echo_n "checking $2 usability... " >&6; }
2218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h. */
2220$4
2221#include <$2>
2222_ACEOF
2223if ac_fn_c_try_compile "$LINENO"; then :
2224 ac_header_compiler=yes
2225else
2226 ac_header_compiler=no
2227fi
2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2230$as_echo "$ac_header_compiler" >&6; }
2231
2232# Is the header present?
2233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2234$as_echo_n "checking $2 presence... " >&6; }
2235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h. */
2237#include <$2>
2238_ACEOF
2239if ac_fn_c_try_cpp "$LINENO"; then :
2240 ac_header_preproc=yes
2241else
2242 ac_header_preproc=no
2243fi
2244rm -f conftest.err conftest.$ac_ext
2245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2246$as_echo "$ac_header_preproc" >&6; }
2247
2248# So? What about this header?
2249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2250 yes:no: )
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2252$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2254$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2255 ;;
2256 no:yes:* )
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2258$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2260$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2262$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2264$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2266$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2267( cat <<\_ASBOX
2268## ----------------------------------------- ##
2269## Report this to http://www.imagemagick.org ##
2270## ----------------------------------------- ##
2271_ASBOX
2272 ) | sed "s/^/$as_me: WARNING: /" >&2
2273 ;;
2274esac
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276$as_echo_n "checking for $2... " >&6; }
2277if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2278 $as_echo_n "(cached) " >&6
2279else
2280 eval "$3=\$ac_header_compiler"
2281fi
2282eval ac_res=\$$3
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284$as_echo "$ac_res" >&6; }
2285fi
2286 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2287
2288} # ac_fn_c_check_header_mongrel
2289
2290# ac_fn_c_try_run LINENO
2291# ----------------------
2292# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2293# that executables *can* be run.
2294ac_fn_c_try_run ()
2295{
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 if { { ac_try="$ac_link"
2298case "(($ac_try" in
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2301esac
2302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2303$as_echo "$ac_try_echo"; } >&5
2304 (eval "$ac_link") 2>&5
2305 ac_status=$?
2306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2308 { { case "(($ac_try" in
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2311esac
2312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313$as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_try") 2>&5
2315 ac_status=$?
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; }; }; then :
2318 ac_retval=0
2319else
2320 $as_echo "$as_me: program exited with status $ac_status" >&5
2321 $as_echo "$as_me: failed program was:" >&5
2322sed 's/^/| /' conftest.$ac_ext >&5
2323
2324 ac_retval=$ac_status
2325fi
2326 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2327 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002328 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002329
2330} # ac_fn_c_try_run
2331
2332# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2333# -------------------------------------------------------
2334# Tests whether HEADER exists and can be compiled using the include files in
2335# INCLUDES, setting the cache variable VAR accordingly.
2336ac_fn_c_check_header_compile ()
2337{
2338 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340$as_echo_n "checking for $2... " >&6; }
2341if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2342 $as_echo_n "(cached) " >&6
2343else
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345/* end confdefs.h. */
2346$4
2347#include <$2>
2348_ACEOF
2349if ac_fn_c_try_compile "$LINENO"; then :
2350 eval "$3=yes"
2351else
2352 eval "$3=no"
2353fi
2354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355fi
2356eval ac_res=\$$3
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358$as_echo "$ac_res" >&6; }
2359 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2360
2361} # ac_fn_c_check_header_compile
2362
cristya0b81c32010-01-22 02:54:33 +00002363# ac_fn_cxx_try_compile LINENO
2364# ----------------------------
2365# Try to compile conftest.$ac_ext, and return whether this succeeded.
2366ac_fn_cxx_try_compile ()
2367{
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 rm -f conftest.$ac_objext
2370 if { { ac_try="$ac_compile"
2371case "(($ac_try" in
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2374esac
2375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376$as_echo "$ac_try_echo"; } >&5
2377 (eval "$ac_compile") 2>conftest.err
2378 ac_status=$?
2379 if test -s conftest.err; then
2380 grep -v '^ *+' conftest.err >conftest.er1
2381 cat conftest.er1 >&5
2382 mv -f conftest.er1 conftest.err
2383 fi
2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385 test $ac_status = 0; } && {
2386 test -z "$ac_cxx_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest.$ac_objext; then :
2389 ac_retval=0
2390else
2391 $as_echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 ac_retval=1
2395fi
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2397 as_fn_set_status $ac_retval
2398
2399} # ac_fn_cxx_try_compile
2400
cristy8b350f62009-11-15 23:12:43 +00002401# ac_fn_c_try_link LINENO
2402# -----------------------
2403# Try to link conftest.$ac_ext, and return whether this succeeded.
2404ac_fn_c_try_link ()
2405{
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 rm -f conftest.$ac_objext conftest$ac_exeext
2408 if { { ac_try="$ac_link"
2409case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2412esac
2413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2414$as_echo "$ac_try_echo"; } >&5
2415 (eval "$ac_link") 2>conftest.err
2416 ac_status=$?
2417 if test -s conftest.err; then
2418 grep -v '^ *+' conftest.err >conftest.er1
2419 cat conftest.er1 >&5
2420 mv -f conftest.er1 conftest.err
2421 fi
2422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2423 test $ac_status = 0; } && {
2424 test -z "$ac_c_werror_flag" ||
2425 test ! -s conftest.err
2426 } && test -s conftest$ac_exeext && {
2427 test "$cross_compiling" = yes ||
2428 $as_test_x conftest$ac_exeext
2429 }; then :
2430 ac_retval=0
2431else
2432 $as_echo "$as_me: failed program was:" >&5
2433sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 ac_retval=1
2436fi
2437 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2438 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2439 # interfere with the next link command; also delete a directory that is
2440 # left behind by Apple's compiler. We do this before executing the actions.
2441 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2442 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002443 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002444
2445} # ac_fn_c_try_link
2446
2447# ac_fn_c_check_func LINENO FUNC VAR
2448# ----------------------------------
2449# Tests whether FUNC exists, setting the cache variable VAR accordingly
2450ac_fn_c_check_func ()
2451{
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454$as_echo_n "checking for $2... " >&6; }
2455if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2457else
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459/* end confdefs.h. */
2460/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2462#define $2 innocuous_$2
2463
2464/* System header to define __stub macros and hopefully few prototypes,
2465 which can conflict with char $2 (); below.
2466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2467 <limits.h> exists even on freestanding compilers. */
2468
2469#ifdef __STDC__
2470# include <limits.h>
2471#else
2472# include <assert.h>
2473#endif
2474
2475#undef $2
2476
2477/* Override any GCC internal prototype to avoid an error.
2478 Use char because int might match the return type of a GCC
2479 builtin and then its argument prototype would still apply. */
2480#ifdef __cplusplus
2481extern "C"
2482#endif
2483char $2 ();
2484/* The GNU C library defines this for functions which it implements
2485 to always fail with ENOSYS. Some functions are actually named
2486 something starting with __ and the normal name is an alias. */
2487#if defined __stub_$2 || defined __stub___$2
2488choke me
2489#endif
2490
2491int
2492main ()
2493{
2494return $2 ();
2495 ;
2496 return 0;
2497}
2498_ACEOF
2499if ac_fn_c_try_link "$LINENO"; then :
2500 eval "$3=yes"
2501else
2502 eval "$3=no"
2503fi
2504rm -f core conftest.err conftest.$ac_objext \
2505 conftest$ac_exeext conftest.$ac_ext
2506fi
2507eval ac_res=\$$3
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509$as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511
2512} # ac_fn_c_check_func
2513
2514# ac_fn_cxx_try_cpp LINENO
2515# ------------------------
2516# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2517ac_fn_cxx_try_cpp ()
2518{
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 if { { ac_try="$ac_cpp conftest.$ac_ext"
2521case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524esac
2525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2526$as_echo "$ac_try_echo"; } >&5
2527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2528 ac_status=$?
2529 if test -s conftest.err; then
2530 grep -v '^ *+' conftest.err >conftest.er1
2531 cat conftest.er1 >&5
2532 mv -f conftest.er1 conftest.err
2533 fi
2534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2535 test $ac_status = 0; } >/dev/null && {
2536 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2537 test ! -s conftest.err
2538 }; then :
2539 ac_retval=0
2540else
2541 $as_echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_retval=1
2545fi
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002547 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002548
2549} # ac_fn_cxx_try_cpp
2550
2551# ac_fn_cxx_try_link LINENO
2552# -------------------------
2553# Try to link conftest.$ac_ext, and return whether this succeeded.
2554ac_fn_cxx_try_link ()
2555{
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 rm -f conftest.$ac_objext conftest$ac_exeext
2558 if { { ac_try="$ac_link"
2559case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562esac
2563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564$as_echo "$ac_try_echo"; } >&5
2565 (eval "$ac_link") 2>conftest.err
2566 ac_status=$?
2567 if test -s conftest.err; then
2568 grep -v '^ *+' conftest.err >conftest.er1
2569 cat conftest.er1 >&5
2570 mv -f conftest.er1 conftest.err
2571 fi
2572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2573 test $ac_status = 0; } && {
2574 test -z "$ac_cxx_werror_flag" ||
2575 test ! -s conftest.err
2576 } && test -s conftest$ac_exeext && {
2577 test "$cross_compiling" = yes ||
2578 $as_test_x conftest$ac_exeext
2579 }; then :
2580 ac_retval=0
2581else
2582 $as_echo "$as_me: failed program was:" >&5
2583sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 ac_retval=1
2586fi
2587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2589 # interfere with the next link command; also delete a directory that is
2590 # left behind by Apple's compiler. We do this before executing the actions.
2591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002593 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002594
2595} # ac_fn_cxx_try_link
2596
2597# ac_fn_c_check_decl LINENO SYMBOL VAR
2598# ------------------------------------
2599# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2600ac_fn_c_check_decl ()
2601{
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2604$as_echo_n "checking whether $2 is declared... " >&6; }
2605if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2606 $as_echo_n "(cached) " >&6
2607else
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609/* end confdefs.h. */
2610$4
2611int
2612main ()
2613{
2614#ifndef $2
2615 (void) $2;
2616#endif
2617
2618 ;
2619 return 0;
2620}
2621_ACEOF
2622if ac_fn_c_try_compile "$LINENO"; then :
2623 eval "$3=yes"
2624else
2625 eval "$3=no"
2626fi
2627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628fi
2629eval ac_res=\$$3
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2631$as_echo "$ac_res" >&6; }
2632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2633
2634} # ac_fn_c_check_decl
2635
2636# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2637# -------------------------------------------
2638# Tests whether TYPE exists after having included INCLUDES, setting cache
2639# variable VAR accordingly.
2640ac_fn_c_check_type ()
2641{
2642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2644$as_echo_n "checking for $2... " >&6; }
2645if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2646 $as_echo_n "(cached) " >&6
2647else
2648 eval "$3=no"
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650/* end confdefs.h. */
2651$4
2652int
2653main ()
2654{
2655if (sizeof ($2))
2656 return 0;
2657 ;
2658 return 0;
2659}
2660_ACEOF
2661if ac_fn_c_try_compile "$LINENO"; then :
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663/* end confdefs.h. */
2664$4
2665int
2666main ()
2667{
2668if (sizeof (($2)))
2669 return 0;
2670 ;
2671 return 0;
2672}
2673_ACEOF
2674if ac_fn_c_try_compile "$LINENO"; then :
2675
2676else
2677 eval "$3=yes"
2678fi
2679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680fi
2681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682fi
2683eval ac_res=\$$3
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2685$as_echo "$ac_res" >&6; }
2686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2687
2688} # ac_fn_c_check_type
2689
2690# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2691# --------------------------------------------
2692# Tries to find the compile-time value of EXPR in a program that includes
2693# INCLUDES, setting VAR accordingly. Returns whether the value could be
2694# computed
2695ac_fn_c_compute_int ()
2696{
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 if test "$cross_compiling" = yes; then
2699 # Depending upon the size, compute the lo and hi bounds.
2700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701/* end confdefs.h. */
2702$4
2703int
2704main ()
2705{
2706static int test_array [1 - 2 * !(($2) >= 0)];
2707test_array [0] = 0
2708
2709 ;
2710 return 0;
2711}
2712_ACEOF
2713if ac_fn_c_try_compile "$LINENO"; then :
2714 ac_lo=0 ac_mid=0
2715 while :; do
2716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2717/* end confdefs.h. */
2718$4
2719int
2720main ()
2721{
2722static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2723test_array [0] = 0
2724
2725 ;
2726 return 0;
2727}
2728_ACEOF
2729if ac_fn_c_try_compile "$LINENO"; then :
2730 ac_hi=$ac_mid; break
2731else
2732 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2733 if test $ac_lo -le $ac_mid; then
2734 ac_lo= ac_hi=
2735 break
2736 fi
2737 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2738fi
2739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 done
2741else
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743/* end confdefs.h. */
2744$4
2745int
2746main ()
2747{
2748static int test_array [1 - 2 * !(($2) < 0)];
2749test_array [0] = 0
2750
2751 ;
2752 return 0;
2753}
2754_ACEOF
2755if ac_fn_c_try_compile "$LINENO"; then :
2756 ac_hi=-1 ac_mid=-1
2757 while :; do
2758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759/* end confdefs.h. */
2760$4
2761int
2762main ()
2763{
2764static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2765test_array [0] = 0
2766
2767 ;
2768 return 0;
2769}
2770_ACEOF
2771if ac_fn_c_try_compile "$LINENO"; then :
2772 ac_lo=$ac_mid; break
2773else
2774 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2775 if test $ac_mid -le $ac_hi; then
2776 ac_lo= ac_hi=
2777 break
2778 fi
2779 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2780fi
2781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 done
2783else
2784 ac_lo= ac_hi=
2785fi
2786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787fi
2788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789# Binary search between lo and hi bounds.
2790while test "x$ac_lo" != "x$ac_hi"; do
2791 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793/* end confdefs.h. */
2794$4
2795int
2796main ()
2797{
2798static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2799test_array [0] = 0
2800
2801 ;
2802 return 0;
2803}
2804_ACEOF
2805if ac_fn_c_try_compile "$LINENO"; then :
2806 ac_hi=$ac_mid
2807else
2808 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2809fi
2810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811done
2812case $ac_lo in #((
2813?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2814'') ac_retval=1 ;;
2815esac
2816 else
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818/* end confdefs.h. */
2819$4
2820static long int longval () { return $2; }
2821static unsigned long int ulongval () { return $2; }
2822#include <stdio.h>
2823#include <stdlib.h>
2824int
2825main ()
2826{
2827
2828 FILE *f = fopen ("conftest.val", "w");
2829 if (! f)
2830 return 1;
2831 if (($2) < 0)
2832 {
2833 long int i = longval ();
2834 if (i != ($2))
2835 return 1;
2836 fprintf (f, "%ld", i);
2837 }
2838 else
2839 {
2840 unsigned long int i = ulongval ();
2841 if (i != ($2))
2842 return 1;
2843 fprintf (f, "%lu", i);
2844 }
2845 /* Do not output a trailing newline, as this causes \r\n confusion
2846 on some platforms. */
2847 return ferror (f) || fclose (f) != 0;
2848
2849 ;
2850 return 0;
2851}
2852_ACEOF
2853if ac_fn_c_try_run "$LINENO"; then :
2854 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2855else
2856 ac_retval=1
2857fi
2858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2859 conftest.$ac_objext conftest.beam conftest.$ac_ext
2860rm -f conftest.val
2861
2862 fi
2863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002864 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002865
2866} # ac_fn_c_compute_int
2867
2868# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2869# ---------------------------------------------------------
2870# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2871# the include files in INCLUDES and setting the cache variable VAR
2872# accordingly.
2873ac_fn_cxx_check_header_mongrel ()
2874{
2875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2876 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2878$as_echo_n "checking for $2... " >&6; }
2879if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2880 $as_echo_n "(cached) " >&6
2881fi
2882eval ac_res=\$$3
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2884$as_echo "$ac_res" >&6; }
2885else
2886 # Is the header compilable?
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2888$as_echo_n "checking $2 usability... " >&6; }
2889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890/* end confdefs.h. */
2891$4
2892#include <$2>
2893_ACEOF
2894if ac_fn_cxx_try_compile "$LINENO"; then :
2895 ac_header_compiler=yes
2896else
2897 ac_header_compiler=no
2898fi
2899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2901$as_echo "$ac_header_compiler" >&6; }
2902
2903# Is the header present?
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2905$as_echo_n "checking $2 presence... " >&6; }
2906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907/* end confdefs.h. */
2908#include <$2>
2909_ACEOF
2910if ac_fn_cxx_try_cpp "$LINENO"; then :
2911 ac_header_preproc=yes
2912else
2913 ac_header_preproc=no
2914fi
2915rm -f conftest.err conftest.$ac_ext
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2917$as_echo "$ac_header_preproc" >&6; }
2918
2919# So? What about this header?
2920case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2921 yes:no: )
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2923$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2925$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2926 ;;
2927 no:yes:* )
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2929$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2931$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2933$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2935$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2937$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2938( cat <<\_ASBOX
2939## ----------------------------------------- ##
2940## Report this to http://www.imagemagick.org ##
2941## ----------------------------------------- ##
2942_ASBOX
2943 ) | sed "s/^/$as_me: WARNING: /" >&2
2944 ;;
2945esac
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2947$as_echo_n "checking for $2... " >&6; }
2948if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2949 $as_echo_n "(cached) " >&6
2950else
2951 eval "$3=\$ac_header_compiler"
2952fi
2953eval ac_res=\$$3
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2955$as_echo "$ac_res" >&6; }
2956fi
2957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2958
2959} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002960cat >config.log <<_ACEOF
2961This file contains any messages produced by compilers while
2962running configure, to aid debugging if configure makes a mistake.
2963
cristydc0f0892009-12-29 02:21:55 +00002964It was created by ImageMagick $as_me 6.5.9, which was
cristycd4c5312009-11-22 01:19:08 +00002965generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002966
2967 $ $0 $@
2968
2969_ACEOF
2970exec 5>>config.log
2971{
2972cat <<_ASUNAME
2973## --------- ##
2974## Platform. ##
2975## --------- ##
2976
2977hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2978uname -m = `(uname -m) 2>/dev/null || echo unknown`
2979uname -r = `(uname -r) 2>/dev/null || echo unknown`
2980uname -s = `(uname -s) 2>/dev/null || echo unknown`
2981uname -v = `(uname -v) 2>/dev/null || echo unknown`
2982
2983/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2984/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2985
2986/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2987/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2988/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2989/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2990/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2991/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2992/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2993
2994_ASUNAME
2995
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003001 $as_echo "PATH: $as_dir"
3002 done
cristy3ed852e2009-09-05 21:47:34 +00003003IFS=$as_save_IFS
3004
3005} >&5
3006
3007cat >&5 <<_ACEOF
3008
3009
3010## ----------- ##
3011## Core tests. ##
3012## ----------- ##
3013
3014_ACEOF
3015
3016
3017# Keep a trace of the command line.
3018# Strip out --no-create and --no-recursion so they do not pile up.
3019# Strip out --silent because we don't want to record it for future runs.
3020# Also quote any args containing shell meta-characters.
3021# Make two passes to allow for proper duplicate-argument suppression.
3022ac_configure_args=
3023ac_configure_args0=
3024ac_configure_args1=
3025ac_must_keep_next=false
3026for ac_pass in 1 2
3027do
3028 for ac_arg
3029 do
3030 case $ac_arg in
3031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3033 | -silent | --silent | --silen | --sile | --sil)
3034 continue ;;
3035 *\'*)
3036 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3037 esac
3038 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003039 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003040 2)
cristy8b350f62009-11-15 23:12:43 +00003041 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003042 if test $ac_must_keep_next = true; then
3043 ac_must_keep_next=false # Got value, back to normal.
3044 else
3045 case $ac_arg in
3046 *=* | --config-cache | -C | -disable-* | --disable-* \
3047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3049 | -with-* | --with-* | -without-* | --without-* | --x)
3050 case "$ac_configure_args0 " in
3051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3052 esac
3053 ;;
3054 -* ) ac_must_keep_next=true ;;
3055 esac
3056 fi
cristy8b350f62009-11-15 23:12:43 +00003057 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003058 ;;
3059 esac
3060 done
3061done
cristy8b350f62009-11-15 23:12:43 +00003062{ ac_configure_args0=; unset ac_configure_args0;}
3063{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003064
3065# When interrupted or exit'd, cleanup temporary files, and complete
3066# config.log. We remove comments because anyway the quotes in there
3067# would cause problems or look ugly.
3068# WARNING: Use '\'' to represent an apostrophe within the trap.
3069# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3070trap 'exit_status=$?
3071 # Save into config.log some information that might help in debugging.
3072 {
3073 echo
3074
3075 cat <<\_ASBOX
3076## ---------------- ##
3077## Cache variables. ##
3078## ---------------- ##
3079_ASBOX
3080 echo
3081 # The following way of writing the cache mishandles newlines in values,
3082(
3083 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3084 eval ac_val=\$$ac_var
3085 case $ac_val in #(
3086 *${as_nl}*)
3087 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003089$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3090 esac
3091 case $ac_var in #(
3092 _ | IFS | as_nl) ;; #(
3093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003094 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003095 esac ;;
3096 esac
3097 done
3098 (set) 2>&1 |
3099 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3100 *${as_nl}ac_space=\ *)
3101 sed -n \
3102 "s/'\''/'\''\\\\'\'''\''/g;
3103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3104 ;; #(
3105 *)
3106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3107 ;;
3108 esac |
3109 sort
3110)
3111 echo
3112
3113 cat <<\_ASBOX
3114## ----------------- ##
3115## Output variables. ##
3116## ----------------- ##
3117_ASBOX
3118 echo
3119 for ac_var in $ac_subst_vars
3120 do
3121 eval ac_val=\$$ac_var
3122 case $ac_val in
3123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3124 esac
3125 $as_echo "$ac_var='\''$ac_val'\''"
3126 done | sort
3127 echo
3128
3129 if test -n "$ac_subst_files"; then
3130 cat <<\_ASBOX
3131## ------------------- ##
3132## File substitutions. ##
3133## ------------------- ##
3134_ASBOX
3135 echo
3136 for ac_var in $ac_subst_files
3137 do
3138 eval ac_val=\$$ac_var
3139 case $ac_val in
3140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3141 esac
3142 $as_echo "$ac_var='\''$ac_val'\''"
3143 done | sort
3144 echo
3145 fi
3146
3147 if test -s confdefs.h; then
3148 cat <<\_ASBOX
3149## ----------- ##
3150## confdefs.h. ##
3151## ----------- ##
3152_ASBOX
3153 echo
3154 cat confdefs.h
3155 echo
3156 fi
3157 test "$ac_signal" != 0 &&
3158 $as_echo "$as_me: caught signal $ac_signal"
3159 $as_echo "$as_me: exit $exit_status"
3160 } >&5
3161 rm -f core *.core core.conftest.* &&
3162 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3163 exit $exit_status
3164' 0
3165for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003166 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003167done
3168ac_signal=0
3169
3170# confdefs.h avoids OS command line length limits that DEFS can exceed.
3171rm -f -r conftest* confdefs.h
3172
cristy8b350f62009-11-15 23:12:43 +00003173$as_echo "/* confdefs.h */" > confdefs.h
3174
cristy3ed852e2009-09-05 21:47:34 +00003175# Predefined preprocessor variables.
3176
3177cat >>confdefs.h <<_ACEOF
3178#define PACKAGE_NAME "$PACKAGE_NAME"
3179_ACEOF
3180
cristy3ed852e2009-09-05 21:47:34 +00003181cat >>confdefs.h <<_ACEOF
3182#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3183_ACEOF
3184
cristy3ed852e2009-09-05 21:47:34 +00003185cat >>confdefs.h <<_ACEOF
3186#define PACKAGE_VERSION "$PACKAGE_VERSION"
3187_ACEOF
3188
cristy3ed852e2009-09-05 21:47:34 +00003189cat >>confdefs.h <<_ACEOF
3190#define PACKAGE_STRING "$PACKAGE_STRING"
3191_ACEOF
3192
cristy3ed852e2009-09-05 21:47:34 +00003193cat >>confdefs.h <<_ACEOF
3194#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3195_ACEOF
3196
cristy8b350f62009-11-15 23:12:43 +00003197cat >>confdefs.h <<_ACEOF
3198#define PACKAGE_URL "$PACKAGE_URL"
3199_ACEOF
3200
cristy3ed852e2009-09-05 21:47:34 +00003201
3202# Let the site file select an alternate cache file if it wants to.
3203# Prefer an explicitly selected file to automatically selected ones.
3204ac_site_file1=NONE
3205ac_site_file2=NONE
3206if test -n "$CONFIG_SITE"; then
3207 ac_site_file1=$CONFIG_SITE
3208elif test "x$prefix" != xNONE; then
3209 ac_site_file1=$prefix/share/config.site
3210 ac_site_file2=$prefix/etc/config.site
3211else
3212 ac_site_file1=$ac_default_prefix/share/config.site
3213 ac_site_file2=$ac_default_prefix/etc/config.site
3214fi
3215for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3216do
3217 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003218 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003220$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3221 sed 's/^/| /' "$ac_site_file" >&5
3222 . "$ac_site_file"
3223 fi
3224done
3225
3226if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003227 # Some versions of bash will fail to source /dev/null (special files
3228 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3229 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003231$as_echo "$as_me: loading cache $cache_file" >&6;}
3232 case $cache_file in
3233 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3234 *) . "./$cache_file";;
3235 esac
3236 fi
3237else
cristy8b350f62009-11-15 23:12:43 +00003238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003239$as_echo "$as_me: creating cache $cache_file" >&6;}
3240 >$cache_file
3241fi
3242
cristycd4c5312009-11-22 01:19:08 +00003243as_fn_append ac_header_list " stdlib.h"
3244as_fn_append ac_header_list " unistd.h"
3245as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003246# Check that the precious variables saved in the cache have kept the same
3247# value.
3248ac_cache_corrupted=false
3249for ac_var in $ac_precious_vars; do
3250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3251 eval ac_new_set=\$ac_env_${ac_var}_set
3252 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3253 eval ac_new_val=\$ac_env_${ac_var}_value
3254 case $ac_old_set,$ac_new_set in
3255 set,)
cristy8b350f62009-11-15 23:12:43 +00003256 { $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 +00003257$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3258 ac_cache_corrupted=: ;;
3259 ,set)
cristy8b350f62009-11-15 23:12:43 +00003260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003261$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3262 ac_cache_corrupted=: ;;
3263 ,);;
3264 *)
3265 if test "x$ac_old_val" != "x$ac_new_val"; then
3266 # differences in whitespace do not lead to failure.
3267 ac_old_val_w=`echo x $ac_old_val`
3268 ac_new_val_w=`echo x $ac_new_val`
3269 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003271$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3272 ac_cache_corrupted=:
3273 else
cristy8b350f62009-11-15 23:12:43 +00003274 { $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 +00003275$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3276 eval $ac_var=\$ac_old_val
3277 fi
cristy8b350f62009-11-15 23:12:43 +00003278 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003279$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003280 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003281$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3282 fi;;
3283 esac
3284 # Pass precious variables to config.status.
3285 if test "$ac_new_set" = set; then
3286 case $ac_new_val in
3287 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3288 *) ac_arg=$ac_var=$ac_new_val ;;
3289 esac
3290 case " $ac_configure_args " in
3291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003292 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003293 esac
3294 fi
3295done
3296if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003300$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003301 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003302fi
cristy8b350f62009-11-15 23:12:43 +00003303## -------------------- ##
3304## Main body of script. ##
3305## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003306
3307ac_ext=c
3308ac_cpp='$CPP $CPPFLAGS'
3309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3311ac_compiler_gnu=$ac_cv_c_compiler_gnu
3312
3313
3314
3315ac_aux_dir=
3316for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003317 for ac_t in install-sh install.sh shtool; do
3318 if test -f "$ac_dir/$ac_t"; then
3319 ac_aux_dir=$ac_dir
3320 ac_install_sh="$ac_aux_dir/$ac_t -c"
3321 break 2
3322 fi
3323 done
cristy3ed852e2009-09-05 21:47:34 +00003324done
3325if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003326 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003327fi
3328
3329# These three variables are undocumented and unsupported,
3330# and are intended to be withdrawn in a future Autoconf release.
3331# They can cause serious problems if a builder's source tree is in a directory
3332# whose full name contains unusual characters.
3333ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3334ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3335ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3336
3337
3338
3339
3340ac_config_headers="$ac_config_headers config/config.h"
3341
3342ac_config_commands="$ac_config_commands magick/magick-config.h"
3343
cristy430a7312010-01-21 20:44:04 +00003344ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003345
3346
3347#
3348# Save initial user-tunable values
3349#
3350USER_LIBS=$LIBS
3351for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3352 eval isset=\${$var+set}
3353 if test "$isset" = 'set'; then
3354 eval val=$`echo $var`
3355 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3356 fi
3357done
3358
3359
3360CONFIGURE_ARGS="$0 ${ac_configure_args}"
3361
3362
3363# Source file containing package/library versioning information.
3364. ${srcdir}/version.sh
3365
cristy15a88782010-01-31 23:24:49 +00003366echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003367# Make sure we can run config.sub.
3368$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003369 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003370
cristy8b350f62009-11-15 23:12:43 +00003371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003372$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003373if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003374 $as_echo_n "(cached) " >&6
3375else
3376 ac_build_alias=$build_alias
3377test "x$ac_build_alias" = x &&
3378 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3379test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003380 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003381ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003382 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003383
3384fi
cristy8b350f62009-11-15 23:12:43 +00003385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003386$as_echo "$ac_cv_build" >&6; }
3387case $ac_cv_build in
3388*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003389*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003390esac
3391build=$ac_cv_build
3392ac_save_IFS=$IFS; IFS='-'
3393set x $ac_cv_build
3394shift
3395build_cpu=$1
3396build_vendor=$2
3397shift; shift
3398# Remember, the first character of IFS is used to create $*,
3399# except with old shells:
3400build_os=$*
3401IFS=$ac_save_IFS
3402case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3403
3404
cristy8b350f62009-11-15 23:12:43 +00003405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003406$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003407if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003408 $as_echo_n "(cached) " >&6
3409else
3410 if test "x$host_alias" = x; then
3411 ac_cv_host=$ac_cv_build
3412else
3413 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003414 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003415fi
3416
3417fi
cristy8b350f62009-11-15 23:12:43 +00003418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003419$as_echo "$ac_cv_host" >&6; }
3420case $ac_cv_host in
3421*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003422*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003423esac
3424host=$ac_cv_host
3425ac_save_IFS=$IFS; IFS='-'
3426set x $ac_cv_host
3427shift
3428host_cpu=$1
3429host_vendor=$2
3430shift; shift
3431# Remember, the first character of IFS is used to create $*,
3432# except with old shells:
3433host_os=$*
3434IFS=$ac_save_IFS
3435case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3436
3437
cristy8b350f62009-11-15 23:12:43 +00003438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003439$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003440if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003441 $as_echo_n "(cached) " >&6
3442else
3443 if test "x$target_alias" = x; then
3444 ac_cv_target=$ac_cv_host
3445else
3446 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003447 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003448fi
3449
3450fi
cristy8b350f62009-11-15 23:12:43 +00003451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003452$as_echo "$ac_cv_target" >&6; }
3453case $ac_cv_target in
3454*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003455*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003456esac
3457target=$ac_cv_target
3458ac_save_IFS=$IFS; IFS='-'
3459set x $ac_cv_target
3460shift
3461target_cpu=$1
3462target_vendor=$2
3463shift; shift
3464# Remember, the first character of IFS is used to create $*,
3465# except with old shells:
3466target_os=$*
3467IFS=$ac_save_IFS
3468case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3469
3470
3471# The aliases save the names the user supplied, while $host etc.
3472# will get canonicalized.
3473test -n "$target_alias" &&
3474 test "$program_prefix$program_suffix$program_transform_name" = \
3475 NONENONEs,x,x, &&
3476 program_prefix=${target_alias}-
3477
3478# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003479MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3480
3481MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3482
cristy3ed852e2009-09-05 21:47:34 +00003483
3484
3485# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003487$as_echo_n "checking whether build environment is sane... " >&6; }
3488# Just in case
3489sleep 1
3490echo timestamp > conftest.file
3491# Reject unsafe characters in $srcdir or the absolute working directory
3492# name. Accept space and tab only in the latter.
3493am_lf='
3494'
3495case `pwd` in
3496 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003497 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003498esac
3499case $srcdir in
3500 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003501 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003502esac
3503
3504# Do `set' in a subshell so we don't clobber the current shell's
3505# arguments. Must try -L first in case configure is actually a
3506# symlink; some systems play weird games with the mod time of symlinks
3507# (eg FreeBSD returns the mod time of the symlink's containing
3508# directory).
3509if (
3510 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3511 if test "$*" = "X"; then
3512 # -L didn't work.
3513 set X `ls -t "$srcdir/configure" conftest.file`
3514 fi
3515 rm -f conftest.file
3516 if test "$*" != "X $srcdir/configure conftest.file" \
3517 && test "$*" != "X conftest.file $srcdir/configure"; then
3518
3519 # If neither matched, then we have a broken ls. This can happen
3520 # if, for instance, CONFIG_SHELL is bash and it inherits a
3521 # broken ls alias from the environment. This has actually
3522 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003523 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3524alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003525 fi
3526
3527 test "$2" = conftest.file
3528 )
3529then
3530 # Ok.
3531 :
3532else
cristy8b350f62009-11-15 23:12:43 +00003533 as_fn_error "newly created file is older than distributed files!
3534Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003535fi
cristy8b350f62009-11-15 23:12:43 +00003536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003537$as_echo "yes" >&6; }
3538
3539am__api_version='1.11'
3540
3541# Find a good install program. We prefer a C program (faster),
3542# so one script is as good as another. But avoid the broken or
3543# incompatible versions:
3544# SysV /etc/install, /usr/sbin/install
3545# SunOS /usr/etc/install
3546# IRIX /sbin/install
3547# AIX /bin/install
3548# AmigaOS /C/install, which installs bootblocks on floppy discs
3549# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3550# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3551# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3552# OS/2's system install, which has a completely different semantic
3553# ./install, which can be erroneously created by make from ./install.sh.
3554# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003556$as_echo_n "checking for a BSD-compatible install... " >&6; }
3557if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003558if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003559 $as_echo_n "(cached) " >&6
3560else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH
3563do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003566 # Account for people who put trailing slashes in PATH elements.
3567case $as_dir/ in #((
3568 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003570 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003571 /usr/ucb/* ) ;;
3572 *)
3573 # OSF1 and SCO ODT 3.0 have their own names for install.
3574 # Don't use installbsd from OSF since it installs stuff as root
3575 # by default.
3576 for ac_prog in ginstall scoinst install; do
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3579 if test $ac_prog = install &&
3580 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3581 # AIX install. It has an incompatible calling convention.
3582 :
3583 elif test $ac_prog = install &&
3584 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3585 # program-specific install script used by HP pwplus--don't use.
3586 :
3587 else
3588 rm -rf conftest.one conftest.two conftest.dir
3589 echo one > conftest.one
3590 echo two > conftest.two
3591 mkdir conftest.dir
3592 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3593 test -s conftest.one && test -s conftest.two &&
3594 test -s conftest.dir/conftest.one &&
3595 test -s conftest.dir/conftest.two
3596 then
3597 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3598 break 3
3599 fi
3600 fi
3601 fi
3602 done
3603 done
3604 ;;
3605esac
3606
cristy8b350f62009-11-15 23:12:43 +00003607 done
cristy3ed852e2009-09-05 21:47:34 +00003608IFS=$as_save_IFS
3609
3610rm -rf conftest.one conftest.two conftest.dir
3611
3612fi
3613 if test "${ac_cv_path_install+set}" = set; then
3614 INSTALL=$ac_cv_path_install
3615 else
3616 # As a last resort, use the slow shell script. Don't cache a
3617 # value for INSTALL within a source directory, because that will
3618 # break other packages using the cache if that directory is
3619 # removed, or if the value is a relative name.
3620 INSTALL=$ac_install_sh
3621 fi
3622fi
cristy8b350f62009-11-15 23:12:43 +00003623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003624$as_echo "$INSTALL" >&6; }
3625
3626# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3627# It thinks the first close brace ends the variable substitution.
3628test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3629
3630test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3631
3632test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3633
3634test "$program_prefix" != NONE &&
3635 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3636# Use a double $ so make ignores it.
3637test "$program_suffix" != NONE &&
3638 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3639# Double any \ or $.
3640# By default was `s,x,x', remove it if useless.
3641ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3642program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3643
3644# expand $ac_aux_dir to an absolute path
3645am_aux_dir=`cd $ac_aux_dir && pwd`
3646
3647if test x"${MISSING+set}" != xset; then
3648 case $am_aux_dir in
3649 *\ * | *\ *)
3650 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3651 *)
3652 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3653 esac
3654fi
3655# Use eval to expand $SHELL
3656if eval "$MISSING --run true"; then
3657 am_missing_run="$MISSING --run "
3658else
3659 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003661$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3662fi
3663
3664if test x"${install_sh}" != xset; then
3665 case $am_aux_dir in
3666 *\ * | *\ *)
3667 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3668 *)
3669 install_sh="\${SHELL} $am_aux_dir/install-sh"
3670 esac
3671fi
3672
3673# Installed binaries are usually stripped using `strip' when the user
3674# run `make install-strip'. However `strip' might not be the right
3675# tool to use in cross-compilation environments, therefore Automake
3676# will honor the `STRIP' environment variable to overrule this program.
3677if test "$cross_compiling" != no; then
3678 if test -n "$ac_tool_prefix"; then
3679 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3680set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003682$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003683if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003684 $as_echo_n "(cached) " >&6
3685else
3686 if test -n "$STRIP"; then
3687 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3688else
3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690for as_dir in $PATH
3691do
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003698 break 2
3699 fi
3700done
cristy8b350f62009-11-15 23:12:43 +00003701 done
cristy3ed852e2009-09-05 21:47:34 +00003702IFS=$as_save_IFS
3703
3704fi
3705fi
3706STRIP=$ac_cv_prog_STRIP
3707if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003709$as_echo "$STRIP" >&6; }
3710else
cristy8b350f62009-11-15 23:12:43 +00003711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003712$as_echo "no" >&6; }
3713fi
3714
3715
3716fi
3717if test -z "$ac_cv_prog_STRIP"; then
3718 ac_ct_STRIP=$STRIP
3719 # Extract the first word of "strip", so it can be a program name with args.
3720set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003722$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003723if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003724 $as_echo_n "(cached) " >&6
3725else
3726 if test -n "$ac_ct_STRIP"; then
3727 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3728else
3729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730for as_dir in $PATH
3731do
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003734 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003738 break 2
3739 fi
3740done
cristy8b350f62009-11-15 23:12:43 +00003741 done
cristy3ed852e2009-09-05 21:47:34 +00003742IFS=$as_save_IFS
3743
3744fi
3745fi
3746ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3747if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003749$as_echo "$ac_ct_STRIP" >&6; }
3750else
cristy8b350f62009-11-15 23:12:43 +00003751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003752$as_echo "no" >&6; }
3753fi
3754
3755 if test "x$ac_ct_STRIP" = x; then
3756 STRIP=":"
3757 else
3758 case $cross_compiling:$ac_tool_warned in
3759yes:)
cristy8b350f62009-11-15 23:12:43 +00003760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3762ac_tool_warned=yes ;;
3763esac
3764 STRIP=$ac_ct_STRIP
3765 fi
3766else
3767 STRIP="$ac_cv_prog_STRIP"
3768fi
3769
3770fi
3771INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3772
cristy8b350f62009-11-15 23:12:43 +00003773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003774$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3775if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003776 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003777 $as_echo_n "(cached) " >&6
3778else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3781do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003784 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3787 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3788 'mkdir (GNU coreutils) '* | \
3789 'mkdir (coreutils) '* | \
3790 'mkdir (fileutils) '4.1*)
3791 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3792 break 3;;
3793 esac
3794 done
3795 done
cristy8b350f62009-11-15 23:12:43 +00003796 done
cristy3ed852e2009-09-05 21:47:34 +00003797IFS=$as_save_IFS
3798
3799fi
3800
cristycd4c5312009-11-22 01:19:08 +00003801 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003802 if test "${ac_cv_path_mkdir+set}" = set; then
3803 MKDIR_P="$ac_cv_path_mkdir -p"
3804 else
3805 # As a last resort, use the slow shell script. Don't cache a
3806 # value for MKDIR_P within a source directory, because that will
3807 # break other packages using the cache if that directory is
3808 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003809 MKDIR_P="$ac_install_sh -d"
3810 fi
3811fi
cristy8b350f62009-11-15 23:12:43 +00003812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003813$as_echo "$MKDIR_P" >&6; }
3814
3815mkdir_p="$MKDIR_P"
3816case $mkdir_p in
3817 [\\/$]* | ?:[\\/]*) ;;
3818 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3819esac
3820
3821for ac_prog in gawk mawk nawk awk
3822do
3823 # Extract the first word of "$ac_prog", so it can be a program name with args.
3824set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003826$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003827if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003828 $as_echo_n "(cached) " >&6
3829else
3830 if test -n "$AWK"; then
3831 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3832else
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH
3835do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3840 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003842 break 2
3843 fi
3844done
cristy8b350f62009-11-15 23:12:43 +00003845 done
cristy3ed852e2009-09-05 21:47:34 +00003846IFS=$as_save_IFS
3847
3848fi
3849fi
3850AWK=$ac_cv_prog_AWK
3851if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003853$as_echo "$AWK" >&6; }
3854else
cristy8b350f62009-11-15 23:12:43 +00003855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003856$as_echo "no" >&6; }
3857fi
3858
3859
3860 test -n "$AWK" && break
3861done
3862
cristy8b350f62009-11-15 23:12:43 +00003863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003864$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3865set x ${MAKE-make}
3866ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003867if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003868 $as_echo_n "(cached) " >&6
3869else
3870 cat >conftest.make <<\_ACEOF
3871SHELL = /bin/sh
3872all:
3873 @echo '@@@%%%=$(MAKE)=@@@%%%'
3874_ACEOF
3875# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3876case `${MAKE-make} -f conftest.make 2>/dev/null` in
3877 *@@@%%%=?*=@@@%%%*)
3878 eval ac_cv_prog_make_${ac_make}_set=yes;;
3879 *)
3880 eval ac_cv_prog_make_${ac_make}_set=no;;
3881esac
3882rm -f conftest.make
3883fi
3884if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003886$as_echo "yes" >&6; }
3887 SET_MAKE=
3888else
cristy8b350f62009-11-15 23:12:43 +00003889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003890$as_echo "no" >&6; }
3891 SET_MAKE="MAKE=${MAKE-make}"
3892fi
3893
3894rm -rf .tst 2>/dev/null
3895mkdir .tst 2>/dev/null
3896if test -d .tst; then
3897 am__leading_dot=.
3898else
3899 am__leading_dot=_
3900fi
3901rmdir .tst 2>/dev/null
3902
3903if test "`cd $srcdir && pwd`" != "`pwd`"; then
3904 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3905 # is not polluted with repeated "-I."
3906 am__isrc=' -I$(srcdir)'
3907 # test to see if srcdir already configured
3908 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003909 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003910 fi
3911fi
3912
3913# test whether we have cygpath
3914if test -z "$CYGPATH_W"; then
3915 if (cygpath --version) >/dev/null 2>/dev/null; then
3916 CYGPATH_W='cygpath -w'
3917 else
3918 CYGPATH_W=echo
3919 fi
3920fi
3921
3922
3923# Define the identity of the package.
3924 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003925 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003926
3927
3928# Some tools Automake needs.
3929
3930ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3931
3932
3933AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3934
3935
3936AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3937
3938
3939AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3940
3941
3942MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3943
3944# We need awk for the "check" target. The system "awk" is bad on
3945# some platforms.
3946# Always define AMTAR for backward compatibility.
3947
3948AMTAR=${AMTAR-"${am_missing_run}tar"}
3949
3950am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3951
3952
3953
3954
3955
3956
3957# Enable support for silent build rules
3958# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003959if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003960 enableval=$enable_silent_rules;
3961fi
3962
3963case $enable_silent_rules in
3964yes) AM_DEFAULT_VERBOSITY=0;;
3965no) AM_DEFAULT_VERBOSITY=1;;
3966*) AM_DEFAULT_VERBOSITY=0;;
3967esac
3968AM_BACKSLASH='\'
3969
3970
3971MAGICK_LIB_VERSION="0x"
3972if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3973 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3974fi
3975MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3976if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3977 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3978fi
3979MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3980if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3981 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3982fi
3983MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3984
3985
3986# Definition used to define MagickLibVersionText in version.h
3987MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3988
3989
3990# Definition used to define MagickLibVersionNumber in version.h
3991MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3992
3993
3994# Regenerate config.status if ChangeLog or version.sh is updated.
3995CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3996
3997
3998PERLMAINCC=$CC
3999
4000MAGICK_CFLAGS=''
4001MAGICK_CPPFLAGS=$CPPFLAGS_USER
4002MAGICK_PCFLAGS=$CPPFLAGS_USER
4003MAGICK_LDFLAGS=''
4004MAGICK_LIBS=''
4005
4006#
4007# Evaluate shell variable equivalents to Makefile directory variables
4008#
4009if test "x$prefix" = xNONE; then
4010 prefix=$ac_default_prefix
4011fi
4012# Let make expand exec_prefix.
4013if test "x$exec_prefix" = xNONE; then
4014 exec_prefix='${prefix}'
4015fi
4016
4017#
4018eval "eval PREFIX_DIR=${prefix}"
4019
4020eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4021
4022eval "eval BIN_DIR=$bindir"
4023
4024eval "eval SBIN_DIR=$sbindir"
4025
4026eval "eval LIBEXEC_DIR=$libexecdir"
4027
4028eval "eval DATA_DIR=$datadir"
4029
4030eval "eval SYSCONF_DIR=$sysconfdir"
4031
4032eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4033
4034eval "eval LOCALSTATE_DIR=$localstatedir"
4035
4036eval "eval LIB_DIR=$libdir"
4037
4038eval "eval INCLUDE_DIR=$includedir"
4039
4040eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4041
4042eval "eval INFO_DIR=$infodir"
4043
4044eval "eval MAN_DIR=$mandir"
4045
4046
4047# Get full paths to source and build directories
4048srcdirfull="`cd $srcdir && pwd`"
4049builddir="`pwd`"
4050
4051#
4052# Compute variables useful for running uninstalled software.
4053#
4054MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4055MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4056MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4057MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4058DIRSEP=':'
4059case "${build_os}" in
4060 mingw* )
4061 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4062 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4063 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4064 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4065 DIRSEP=';'
4066 ;;
4067esac
4068case "${host_os}" in
4069 mingw* )
4070 DIRSEP=';'
4071 ;;
4072esac
4073
4074
4075
4076
4077
4078
cristya0b81c32010-01-22 02:54:33 +00004079
4080#
4081# Enable OS features.
4082#
4083DEPDIR="${am__leading_dot}deps"
4084
4085ac_config_commands="$ac_config_commands depfiles"
4086
4087
4088am_make=${MAKE-make}
4089cat > confinc << 'END'
4090am__doit:
4091 @echo this is the am__doit target
4092.PHONY: am__doit
4093END
4094# If we don't find an include directive, just comment out the code.
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4096$as_echo_n "checking for style of include used by $am_make... " >&6; }
4097am__include="#"
4098am__quote=
4099_am_result=none
4100# First try GNU make style include.
4101echo "include confinc" > confmf
4102# Ignore all kinds of additional output from `make'.
4103case `$am_make -s -f confmf 2> /dev/null` in #(
4104*the\ am__doit\ target*)
4105 am__include=include
4106 am__quote=
4107 _am_result=GNU
4108 ;;
4109esac
4110# Now try BSD make style include.
4111if test "$am__include" = "#"; then
4112 echo '.include "confinc"' > confmf
4113 case `$am_make -s -f confmf 2> /dev/null` in #(
4114 *the\ am__doit\ target*)
4115 am__include=.include
4116 am__quote="\""
4117 _am_result=BSD
4118 ;;
4119 esac
4120fi
4121
4122
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4124$as_echo "$_am_result" >&6; }
4125rm -f confinc confmf
4126
4127# Check whether --enable-dependency-tracking was given.
4128if test "${enable_dependency_tracking+set}" = set; then :
4129 enableval=$enable_dependency_tracking;
4130fi
4131
4132if test "x$enable_dependency_tracking" != xno; then
4133 am_depcomp="$ac_aux_dir/depcomp"
4134 AMDEPBACKSLASH='\'
4135fi
4136 if test "x$enable_dependency_tracking" != xno; then
4137 AMDEP_TRUE=
4138 AMDEP_FALSE='#'
4139else
4140 AMDEP_TRUE='#'
4141 AMDEP_FALSE=
4142fi
4143
4144
cristy3ed852e2009-09-05 21:47:34 +00004145ac_ext=c
4146ac_cpp='$CPP $CPPFLAGS'
4147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150if test -n "$ac_tool_prefix"; then
4151 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4152set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004154$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004155if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004156 $as_echo_n "(cached) " >&6
4157else
4158 if test -n "$CC"; then
4159 ac_cv_prog_CC="$CC" # Let the user override the test.
4160else
4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004166 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004170 break 2
4171 fi
4172done
cristy8b350f62009-11-15 23:12:43 +00004173 done
cristy3ed852e2009-09-05 21:47:34 +00004174IFS=$as_save_IFS
4175
4176fi
4177fi
4178CC=$ac_cv_prog_CC
4179if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004181$as_echo "$CC" >&6; }
4182else
cristy8b350f62009-11-15 23:12:43 +00004183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004184$as_echo "no" >&6; }
4185fi
4186
4187
4188fi
4189if test -z "$ac_cv_prog_CC"; then
4190 ac_ct_CC=$CC
4191 # Extract the first word of "gcc", so it can be a program name with args.
4192set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004194$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004195if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004196 $as_echo_n "(cached) " >&6
4197else
4198 if test -n "$ac_ct_CC"; then
4199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4200else
4201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202for as_dir in $PATH
4203do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004206 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004210 break 2
4211 fi
4212done
cristy8b350f62009-11-15 23:12:43 +00004213 done
cristy3ed852e2009-09-05 21:47:34 +00004214IFS=$as_save_IFS
4215
4216fi
4217fi
4218ac_ct_CC=$ac_cv_prog_ac_ct_CC
4219if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004221$as_echo "$ac_ct_CC" >&6; }
4222else
cristy8b350f62009-11-15 23:12:43 +00004223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004224$as_echo "no" >&6; }
4225fi
4226
4227 if test "x$ac_ct_CC" = x; then
4228 CC=""
4229 else
4230 case $cross_compiling:$ac_tool_warned in
4231yes:)
cristy8b350f62009-11-15 23:12:43 +00004232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4234ac_tool_warned=yes ;;
4235esac
4236 CC=$ac_ct_CC
4237 fi
4238else
4239 CC="$ac_cv_prog_CC"
4240fi
4241
4242if test -z "$CC"; then
4243 if test -n "$ac_tool_prefix"; then
4244 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4245set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004247$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004248if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004249 $as_echo_n "(cached) " >&6
4250else
4251 if test -n "$CC"; then
4252 ac_cv_prog_CC="$CC" # Let the user override the test.
4253else
4254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255for as_dir in $PATH
4256do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004259 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004263 break 2
4264 fi
4265done
cristy8b350f62009-11-15 23:12:43 +00004266 done
cristy3ed852e2009-09-05 21:47:34 +00004267IFS=$as_save_IFS
4268
4269fi
4270fi
4271CC=$ac_cv_prog_CC
4272if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004274$as_echo "$CC" >&6; }
4275else
cristy8b350f62009-11-15 23:12:43 +00004276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004277$as_echo "no" >&6; }
4278fi
4279
4280
4281 fi
4282fi
4283if test -z "$CC"; then
4284 # Extract the first word of "cc", so it can be a program name with args.
4285set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004287$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004288if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004289 $as_echo_n "(cached) " >&6
4290else
4291 if test -n "$CC"; then
4292 ac_cv_prog_CC="$CC" # Let the user override the test.
4293else
4294 ac_prog_rejected=no
4295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296for as_dir in $PATH
4297do
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004300 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4303 ac_prog_rejected=yes
4304 continue
4305 fi
4306 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004308 break 2
4309 fi
4310done
cristy8b350f62009-11-15 23:12:43 +00004311 done
cristy3ed852e2009-09-05 21:47:34 +00004312IFS=$as_save_IFS
4313
4314if test $ac_prog_rejected = yes; then
4315 # We found a bogon in the path, so make sure we never use it.
4316 set dummy $ac_cv_prog_CC
4317 shift
4318 if test $# != 0; then
4319 # We chose a different compiler from the bogus one.
4320 # However, it has the same basename, so the bogon will be chosen
4321 # first if we set CC to just the basename; use the full file name.
4322 shift
4323 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4324 fi
4325fi
4326fi
4327fi
4328CC=$ac_cv_prog_CC
4329if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004331$as_echo "$CC" >&6; }
4332else
cristy8b350f62009-11-15 23:12:43 +00004333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004334$as_echo "no" >&6; }
4335fi
4336
4337
4338fi
4339if test -z "$CC"; then
4340 if test -n "$ac_tool_prefix"; then
4341 for ac_prog in cl.exe
4342 do
4343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4344set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004346$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004347if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004348 $as_echo_n "(cached) " >&6
4349else
4350 if test -n "$CC"; then
4351 ac_cv_prog_CC="$CC" # Let the user override the test.
4352else
4353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354for as_dir in $PATH
4355do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004358 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004362 break 2
4363 fi
4364done
cristy8b350f62009-11-15 23:12:43 +00004365 done
cristy3ed852e2009-09-05 21:47:34 +00004366IFS=$as_save_IFS
4367
4368fi
4369fi
4370CC=$ac_cv_prog_CC
4371if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004373$as_echo "$CC" >&6; }
4374else
cristy8b350f62009-11-15 23:12:43 +00004375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004376$as_echo "no" >&6; }
4377fi
4378
4379
4380 test -n "$CC" && break
4381 done
4382fi
4383if test -z "$CC"; then
4384 ac_ct_CC=$CC
4385 for ac_prog in cl.exe
4386do
4387 # Extract the first word of "$ac_prog", so it can be a program name with args.
4388set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004390$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004391if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004392 $as_echo_n "(cached) " >&6
4393else
4394 if test -n "$ac_ct_CC"; then
4395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4396else
4397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398for as_dir in $PATH
4399do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004406 break 2
4407 fi
4408done
cristy8b350f62009-11-15 23:12:43 +00004409 done
cristy3ed852e2009-09-05 21:47:34 +00004410IFS=$as_save_IFS
4411
4412fi
4413fi
4414ac_ct_CC=$ac_cv_prog_ac_ct_CC
4415if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004417$as_echo "$ac_ct_CC" >&6; }
4418else
cristy8b350f62009-11-15 23:12:43 +00004419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004420$as_echo "no" >&6; }
4421fi
4422
4423
4424 test -n "$ac_ct_CC" && break
4425done
4426
4427 if test "x$ac_ct_CC" = x; then
4428 CC=""
4429 else
4430 case $cross_compiling:$ac_tool_warned in
4431yes:)
cristy8b350f62009-11-15 23:12:43 +00004432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4434ac_tool_warned=yes ;;
4435esac
4436 CC=$ac_ct_CC
4437 fi
4438fi
4439
4440fi
4441
4442
cristy8b350f62009-11-15 23:12:43 +00004443test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004445as_fn_error "no acceptable C compiler found in \$PATH
4446See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004447
4448# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004449$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004450set X $ac_compile
4451ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004452for ac_option in --version -v -V -qversion; do
4453 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004454case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457esac
cristy8b350f62009-11-15 23:12:43 +00004458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4459$as_echo "$ac_try_echo"; } >&5
4460 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004461 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004462 if test -s conftest.err; then
4463 sed '10a\
4464... rest of stderr output deleted ...
4465 10q' conftest.err >conftest.er1
4466 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004467 fi
cristycd4c5312009-11-22 01:19:08 +00004468 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4470 test $ac_status = 0; }
4471done
cristy3ed852e2009-09-05 21:47:34 +00004472
cristy8b350f62009-11-15 23:12:43 +00004473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004474/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004475
cristy3ed852e2009-09-05 21:47:34 +00004476int
4477main ()
4478{
4479
4480 ;
4481 return 0;
4482}
4483_ACEOF
4484ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004485ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004486# Try to create an executable without -o first, disregard a.out.
4487# It will help us diagnose broken compilers, and finding out an intuition
4488# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4490$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004491ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4492
4493# The possible output files:
4494ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4495
4496ac_rmfiles=
4497for ac_file in $ac_files
4498do
4499 case $ac_file in
4500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4501 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4502 esac
4503done
4504rm -f $ac_rmfiles
4505
cristy8b350f62009-11-15 23:12:43 +00004506if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004507case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4510esac
cristy8b350f62009-11-15 23:12:43 +00004511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4512$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004513 (eval "$ac_link_default") 2>&5
4514 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004517 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4518# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4519# in a Makefile. We should not override ac_cv_exeext if it was cached,
4520# so that the user can short-circuit this test for compilers unknown to
4521# Autoconf.
4522for ac_file in $ac_files ''
4523do
4524 test -f "$ac_file" || continue
4525 case $ac_file in
4526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4527 ;;
4528 [ab].out )
4529 # We found the default executable, but exeext='' is most
4530 # certainly right.
4531 break;;
4532 *.* )
cristy8b350f62009-11-15 23:12:43 +00004533 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004534 then :; else
4535 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4536 fi
4537 # We set ac_cv_exeext here because the later test for it is not
4538 # safe: cross compilers may not add the suffix if given an `-o'
4539 # argument, so we may need to know it at that point already.
4540 # Even if this section looks crufty: it has the advantage of
4541 # actually working.
4542 break;;
4543 * )
4544 break;;
4545 esac
4546done
4547test "$ac_cv_exeext" = no && ac_cv_exeext=
4548
4549else
4550 ac_file=''
4551fi
cristy8b350f62009-11-15 23:12:43 +00004552if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554$as_echo "no" >&6; }
4555$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004556sed 's/^/| /' conftest.$ac_ext >&5
4557
cristy8b350f62009-11-15 23:12:43 +00004558{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004560{ as_fn_set_status 77
4561as_fn_error "C compiler cannot create executables
4562See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004563else
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4565$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004566fi
cristycd4c5312009-11-22 01:19:08 +00004567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4568$as_echo_n "checking for C compiler default output file name... " >&6; }
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4570$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004571ac_exeext=$ac_cv_exeext
4572
cristycd4c5312009-11-22 01:19:08 +00004573rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004574ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004576$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004577if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004578case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581esac
cristy8b350f62009-11-15 23:12:43 +00004582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4583$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004584 (eval "$ac_link") 2>&5
4585 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4587 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004588 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4589# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4590# work properly (i.e., refer to `conftest.exe'), while it won't with
4591# `rm'.
4592for ac_file in conftest.exe conftest conftest.*; do
4593 test -f "$ac_file" || continue
4594 case $ac_file in
4595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4596 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4597 break;;
4598 * ) break;;
4599 esac
4600done
4601else
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 executables: cannot compile and link
4605See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004606fi
cristycd4c5312009-11-22 01:19:08 +00004607rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004609$as_echo "$ac_cv_exeext" >&6; }
4610
4611rm -f conftest.$ac_ext
4612EXEEXT=$ac_cv_exeext
4613ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h. */
4616#include <stdio.h>
4617int
4618main ()
4619{
4620FILE *f = fopen ("conftest.out", "w");
4621 return ferror (f) || fclose (f) != 0;
4622
4623 ;
4624 return 0;
4625}
4626_ACEOF
4627ac_clean_files="$ac_clean_files conftest.out"
4628# Check that the compiler produces executables we can run. If not, either
4629# the compiler is broken, or we cross compile.
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4631$as_echo_n "checking whether we are cross compiling... " >&6; }
4632if test "$cross_compiling" != yes; then
4633 { { ac_try="$ac_link"
4634case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637esac
4638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4639$as_echo "$ac_try_echo"; } >&5
4640 (eval "$ac_link") 2>&5
4641 ac_status=$?
4642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4643 test $ac_status = 0; }
4644 if { ac_try='./conftest$ac_cv_exeext'
4645 { { case "(($ac_try" in
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4648esac
4649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4650$as_echo "$ac_try_echo"; } >&5
4651 (eval "$ac_try") 2>&5
4652 ac_status=$?
4653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4654 test $ac_status = 0; }; }; then
4655 cross_compiling=no
4656 else
4657 if test "$cross_compiling" = maybe; then
4658 cross_compiling=yes
4659 else
4660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4662as_fn_error "cannot run C compiled programs.
4663If you meant to cross compile, use \`--host'.
4664See \`config.log' for more details." "$LINENO" 5; }
4665 fi
4666 fi
4667fi
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4669$as_echo "$cross_compiling" >&6; }
4670
4671rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4672ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004674$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004675if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004676 $as_echo_n "(cached) " >&6
4677else
cristy8b350f62009-11-15 23:12:43 +00004678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004679/* end confdefs.h. */
4680
4681int
4682main ()
4683{
4684
4685 ;
4686 return 0;
4687}
4688_ACEOF
4689rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004690if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004691case "(($ac_try" in
4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693 *) ac_try_echo=$ac_try;;
4694esac
cristy8b350f62009-11-15 23:12:43 +00004695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4696$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004697 (eval "$ac_compile") 2>&5
4698 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4700 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004701 for ac_file in conftest.o conftest.obj conftest.*; do
4702 test -f "$ac_file" || continue;
4703 case $ac_file in
4704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4705 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4706 break;;
4707 esac
4708done
4709else
4710 $as_echo "$as_me: failed program was:" >&5
4711sed 's/^/| /' conftest.$ac_ext >&5
4712
cristy8b350f62009-11-15 23:12:43 +00004713{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004715as_fn_error "cannot compute suffix of object files: cannot compile
4716See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004717fi
cristy3ed852e2009-09-05 21:47:34 +00004718rm -f conftest.$ac_cv_objext conftest.$ac_ext
4719fi
cristy8b350f62009-11-15 23:12:43 +00004720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004721$as_echo "$ac_cv_objext" >&6; }
4722OBJEXT=$ac_cv_objext
4723ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004725$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004726if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004727 $as_echo_n "(cached) " >&6
4728else
cristy8b350f62009-11-15 23:12:43 +00004729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004730/* end confdefs.h. */
4731
4732int
4733main ()
4734{
4735#ifndef __GNUC__
4736 choke me
4737#endif
4738
4739 ;
4740 return 0;
4741}
4742_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004743if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004744 ac_compiler_gnu=yes
4745else
cristy8b350f62009-11-15 23:12:43 +00004746 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004747fi
cristy3ed852e2009-09-05 21:47:34 +00004748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749ac_cv_c_compiler_gnu=$ac_compiler_gnu
4750
4751fi
cristy8b350f62009-11-15 23:12:43 +00004752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004753$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4754if test $ac_compiler_gnu = yes; then
4755 GCC=yes
4756else
4757 GCC=
4758fi
4759ac_test_CFLAGS=${CFLAGS+set}
4760ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004762$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004763if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004764 $as_echo_n "(cached) " >&6
4765else
4766 ac_save_c_werror_flag=$ac_c_werror_flag
4767 ac_c_werror_flag=yes
4768 ac_cv_prog_cc_g=no
4769 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004771/* end confdefs.h. */
4772
4773int
4774main ()
4775{
4776
4777 ;
4778 return 0;
4779}
4780_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004781if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004782 ac_cv_prog_cc_g=yes
4783else
cristy8b350f62009-11-15 23:12:43 +00004784 CFLAGS=""
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004786/* end confdefs.h. */
4787
4788int
4789main ()
4790{
4791
4792 ;
4793 return 0;
4794}
4795_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004796if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004797
cristy8b350f62009-11-15 23:12:43 +00004798else
4799 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004800 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004802/* end confdefs.h. */
4803
4804int
4805main ()
4806{
4807
4808 ;
4809 return 0;
4810}
4811_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004812if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004813 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004814fi
cristy3ed852e2009-09-05 21:47:34 +00004815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816fi
cristy3ed852e2009-09-05 21:47:34 +00004817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818fi
cristy3ed852e2009-09-05 21:47:34 +00004819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 ac_c_werror_flag=$ac_save_c_werror_flag
4821fi
cristy8b350f62009-11-15 23:12:43 +00004822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004823$as_echo "$ac_cv_prog_cc_g" >&6; }
4824if test "$ac_test_CFLAGS" = set; then
4825 CFLAGS=$ac_save_CFLAGS
4826elif test $ac_cv_prog_cc_g = yes; then
4827 if test "$GCC" = yes; then
4828 CFLAGS="-g -O2"
4829 else
4830 CFLAGS="-g"
4831 fi
4832else
4833 if test "$GCC" = yes; then
4834 CFLAGS="-O2"
4835 else
4836 CFLAGS=
4837 fi
4838fi
cristy8b350f62009-11-15 23:12:43 +00004839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004840$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004841if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004842 $as_echo_n "(cached) " >&6
4843else
4844 ac_cv_prog_cc_c89=no
4845ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004847/* end confdefs.h. */
4848#include <stdarg.h>
4849#include <stdio.h>
4850#include <sys/types.h>
4851#include <sys/stat.h>
4852/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4853struct buf { int x; };
4854FILE * (*rcsopen) (struct buf *, struct stat *, int);
4855static char *e (p, i)
4856 char **p;
4857 int i;
4858{
4859 return p[i];
4860}
4861static char *f (char * (*g) (char **, int), char **p, ...)
4862{
4863 char *s;
4864 va_list v;
4865 va_start (v,p);
4866 s = g (p, va_arg (v,int));
4867 va_end (v);
4868 return s;
4869}
4870
4871/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4872 function prototypes and stuff, but not '\xHH' hex character constants.
4873 These don't provoke an error unfortunately, instead are silently treated
4874 as 'x'. The following induces an error, until -std is added to get
4875 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4876 array size at least. It's necessary to write '\x00'==0 to get something
4877 that's true only with -std. */
4878int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4879
4880/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4881 inside strings and character constants. */
4882#define FOO(x) 'x'
4883int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4884
4885int test (int i, double x);
4886struct s1 {int (*f) (int a);};
4887struct s2 {int (*f) (double a);};
4888int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4889int argc;
4890char **argv;
4891int
4892main ()
4893{
4894return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4895 ;
4896 return 0;
4897}
4898_ACEOF
4899for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4900 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4901do
4902 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004903 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004904 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004905fi
cristy3ed852e2009-09-05 21:47:34 +00004906rm -f core conftest.err conftest.$ac_objext
4907 test "x$ac_cv_prog_cc_c89" != "xno" && break
4908done
4909rm -f conftest.$ac_ext
4910CC=$ac_save_CC
4911
4912fi
4913# AC_CACHE_VAL
4914case "x$ac_cv_prog_cc_c89" in
4915 x)
cristy8b350f62009-11-15 23:12:43 +00004916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004917$as_echo "none needed" >&6; } ;;
4918 xno)
cristy8b350f62009-11-15 23:12:43 +00004919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004920$as_echo "unsupported" >&6; } ;;
4921 *)
4922 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004924$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4925esac
cristy8b350f62009-11-15 23:12:43 +00004926if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004927
cristy8b350f62009-11-15 23:12:43 +00004928fi
cristy3ed852e2009-09-05 21:47:34 +00004929
4930ac_ext=c
4931ac_cpp='$CPP $CPPFLAGS'
4932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4934ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004935
cristya0b81c32010-01-22 02:54:33 +00004936depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00004937
cristya0b81c32010-01-22 02:54:33 +00004938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4939$as_echo_n "checking dependency style of $depcc... " >&6; }
4940if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00004942else
cristya0b81c32010-01-22 02:54:33 +00004943 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4944 # We make a subdir and do the tests there. Otherwise we can end up
4945 # making bogus files that we don't know about and never remove. For
4946 # instance it was reported that on HP-UX the gcc test will end up
4947 # making a dummy file named `D' -- because `-MD' means `put the output
4948 # in D'.
4949 mkdir conftest.dir
4950 # Copy depcomp to subdir because otherwise we won't find it if we're
4951 # using a relative directory.
4952 cp "$am_depcomp" conftest.dir
4953 cd conftest.dir
4954 # We will build objects and dependencies in a subdirectory because
4955 # it helps to detect inapplicable dependency modes. For instance
4956 # both Tru64's cc and ICC support -MD to output dependencies as a
4957 # side effect of compilation, but ICC will put the dependencies in
4958 # the current directory while Tru64 will put them in the object
4959 # directory.
4960 mkdir sub
4961
4962 am_cv_CC_dependencies_compiler_type=none
4963 if test "$am_compiler_list" = ""; then
4964 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4965 fi
4966 am__universal=false
4967 case " $depcc " in #(
4968 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4969 esac
4970
4971 for depmode in $am_compiler_list; do
4972 # Setup a source with many dependencies, because some compilers
4973 # like to wrap large dependency lists on column 80 (with \), and
4974 # we should not choose a depcomp mode which is confused by this.
4975 #
4976 # We need to recreate these files for each test, as the compiler may
4977 # overwrite some of them when testing with obscure command lines.
4978 # This happens at least with the AIX C compiler.
4979 : > sub/conftest.c
4980 for i in 1 2 3 4 5 6; do
4981 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4982 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4983 # Solaris 8's {/usr,}/bin/sh.
4984 touch sub/conftst$i.h
4985 done
4986 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4987
4988 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4989 # mode. It turns out that the SunPro C++ compiler does not properly
4990 # handle `-M -o', and we need to detect this. Also, some Intel
4991 # versions had trouble with output in subdirs
4992 am__obj=sub/conftest.${OBJEXT-o}
4993 am__minus_obj="-o $am__obj"
4994 case $depmode in
4995 gcc)
4996 # This depmode causes a compiler race in universal mode.
4997 test "$am__universal" = false || continue
4998 ;;
4999 nosideeffect)
5000 # after this tag, mechanisms are not by side-effect, so they'll
5001 # only be used when explicitly requested
5002 if test "x$enable_dependency_tracking" = xyes; then
5003 continue
5004 else
5005 break
5006 fi
5007 ;;
5008 msvisualcpp | msvcmsys)
5009 # This compiler won't grok `-c -o', but also, the minuso test has
5010 # not run yet. These depmodes are late enough in the game, and
5011 # so weak that their functioning should not be impacted.
5012 am__obj=conftest.${OBJEXT-o}
5013 am__minus_obj=
5014 ;;
5015 none) break ;;
5016 esac
5017 if depmode=$depmode \
5018 source=sub/conftest.c object=$am__obj \
5019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5020 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5021 >/dev/null 2>conftest.err &&
5022 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5024 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5026 # icc doesn't choke on unknown options, it will just issue warnings
5027 # or remarks (even with -Werror). So we grep stderr for any message
5028 # that says an option was ignored or not supported.
5029 # When given -MP, icc 7.0 and 7.1 complain thusly:
5030 # icc: Command line warning: ignoring option '-M'; no argument required
5031 # The diagnosis changed in icc 8.0:
5032 # icc: Command line remark: option '-MP' not supported
5033 if (grep 'ignoring option' conftest.err ||
5034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5035 am_cv_CC_dependencies_compiler_type=$depmode
5036 break
5037 fi
5038 fi
5039 done
5040
5041 cd ..
5042 rm -rf conftest.dir
5043else
5044 am_cv_CC_dependencies_compiler_type=none
5045fi
5046
5047fi
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5049$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5050CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5051
5052 if
5053 test "x$enable_dependency_tracking" != xno \
5054 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5055 am__fastdepCC_TRUE=
5056 am__fastdepCC_FALSE='#'
5057else
5058 am__fastdepCC_TRUE='#'
5059 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005060fi
5061
5062
5063
cristya0b81c32010-01-22 02:54:33 +00005064ac_ext=c
5065ac_cpp='$CPP $CPPFLAGS'
5066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5068ac_compiler_gnu=$ac_cv_c_compiler_gnu
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5070$as_echo_n "checking how to run the C preprocessor... " >&6; }
5071# On Suns, sometimes $CPP names a directory.
5072if test -n "$CPP" && test -d "$CPP"; then
5073 CPP=
5074fi
5075if test -z "$CPP"; then
5076 if test "${ac_cv_prog_CPP+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
5078else
5079 # Double quotes because CPP needs to be expanded
5080 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5081 do
5082 ac_preproc_ok=false
5083for ac_c_preproc_warn_flag in '' yes
5084do
5085 # Use a header file that comes with gcc, so configuring glibc
5086 # with a fresh cross-compiler works.
5087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5088 # <limits.h> exists even on freestanding compilers.
5089 # On the NeXT, cc -E runs the code through the compiler's parser,
5090 # not just through cpp. "Syntax error" is here to catch this case.
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092/* end confdefs.h. */
5093#ifdef __STDC__
5094# include <limits.h>
5095#else
5096# include <assert.h>
5097#endif
5098 Syntax error
5099_ACEOF
5100if ac_fn_c_try_cpp "$LINENO"; then :
5101
5102else
5103 # Broken: fails on valid input.
5104continue
5105fi
5106rm -f conftest.err conftest.$ac_ext
5107
5108 # OK, works on sane cases. Now check whether nonexistent headers
5109 # can be detected and how.
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111/* end confdefs.h. */
5112#include <ac_nonexistent.h>
5113_ACEOF
5114if ac_fn_c_try_cpp "$LINENO"; then :
5115 # Broken: success on invalid input.
5116continue
5117else
5118 # Passes both tests.
5119ac_preproc_ok=:
5120break
5121fi
5122rm -f conftest.err conftest.$ac_ext
5123
5124done
5125# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5126rm -f conftest.err conftest.$ac_ext
5127if $ac_preproc_ok; then :
5128 break
5129fi
5130
5131 done
5132 ac_cv_prog_CPP=$CPP
5133
5134fi
5135 CPP=$ac_cv_prog_CPP
5136else
5137 ac_cv_prog_CPP=$CPP
5138fi
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5140$as_echo "$CPP" >&6; }
5141ac_preproc_ok=false
5142for ac_c_preproc_warn_flag in '' yes
5143do
5144 # Use a header file that comes with gcc, so configuring glibc
5145 # with a fresh cross-compiler works.
5146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5147 # <limits.h> exists even on freestanding compilers.
5148 # On the NeXT, cc -E runs the code through the compiler's parser,
5149 # not just through cpp. "Syntax error" is here to catch this case.
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151/* end confdefs.h. */
5152#ifdef __STDC__
5153# include <limits.h>
5154#else
5155# include <assert.h>
5156#endif
5157 Syntax error
5158_ACEOF
5159if ac_fn_c_try_cpp "$LINENO"; then :
5160
5161else
5162 # Broken: fails on valid input.
5163continue
5164fi
5165rm -f conftest.err conftest.$ac_ext
5166
5167 # OK, works on sane cases. Now check whether nonexistent headers
5168 # can be detected and how.
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170/* end confdefs.h. */
5171#include <ac_nonexistent.h>
5172_ACEOF
5173if ac_fn_c_try_cpp "$LINENO"; then :
5174 # Broken: success on invalid input.
5175continue
5176else
5177 # Passes both tests.
5178ac_preproc_ok=:
5179break
5180fi
5181rm -f conftest.err conftest.$ac_ext
5182
5183done
5184# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5185rm -f conftest.err conftest.$ac_ext
5186if $ac_preproc_ok; then :
5187
5188else
5189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5191as_fn_error "C preprocessor \"$CPP\" fails sanity check
5192See \`config.log' for more details." "$LINENO" 5; }
5193fi
5194
5195ac_ext=c
5196ac_cpp='$CPP $CPPFLAGS'
5197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200
5201
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5203$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5204if test "${ac_cv_path_GREP+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5206else
5207 if test -z "$GREP"; then
5208 ac_path_GREP_found=false
5209 # Loop through the user's path and test for each of PROGNAME-LIST
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5212do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_prog in grep ggrep; do
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5218 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5219# Check for GNU ac_path_GREP and select it if it is found.
5220 # Check for GNU $ac_path_GREP
5221case `"$ac_path_GREP" --version 2>&1` in
5222*GNU*)
5223 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5224*)
5225 ac_count=0
5226 $as_echo_n 0123456789 >"conftest.in"
5227 while :
5228 do
5229 cat "conftest.in" "conftest.in" >"conftest.tmp"
5230 mv "conftest.tmp" "conftest.in"
5231 cp "conftest.in" "conftest.nl"
5232 $as_echo 'GREP' >> "conftest.nl"
5233 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5235 as_fn_arith $ac_count + 1 && ac_count=$as_val
5236 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5237 # Best one so far, save it but keep looking for a better one
5238 ac_cv_path_GREP="$ac_path_GREP"
5239 ac_path_GREP_max=$ac_count
5240 fi
5241 # 10*(2^10) chars as input seems more than enough
5242 test $ac_count -gt 10 && break
5243 done
5244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5245esac
5246
5247 $ac_path_GREP_found && break 3
5248 done
5249 done
5250 done
5251IFS=$as_save_IFS
5252 if test -z "$ac_cv_path_GREP"; then
5253 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5254 fi
5255else
5256 ac_cv_path_GREP=$GREP
5257fi
5258
5259fi
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5261$as_echo "$ac_cv_path_GREP" >&6; }
5262 GREP="$ac_cv_path_GREP"
5263
5264
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5266$as_echo_n "checking for egrep... " >&6; }
5267if test "${ac_cv_path_EGREP+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5269else
5270 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5271 then ac_cv_path_EGREP="$GREP -E"
5272 else
5273 if test -z "$EGREP"; then
5274 ac_path_EGREP_found=false
5275 # Loop through the user's path and test for each of PROGNAME-LIST
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5278do
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_prog in egrep; do
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5284 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5285# Check for GNU ac_path_EGREP and select it if it is found.
5286 # Check for GNU $ac_path_EGREP
5287case `"$ac_path_EGREP" --version 2>&1` in
5288*GNU*)
5289 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5290*)
5291 ac_count=0
5292 $as_echo_n 0123456789 >"conftest.in"
5293 while :
5294 do
5295 cat "conftest.in" "conftest.in" >"conftest.tmp"
5296 mv "conftest.tmp" "conftest.in"
5297 cp "conftest.in" "conftest.nl"
5298 $as_echo 'EGREP' >> "conftest.nl"
5299 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5301 as_fn_arith $ac_count + 1 && ac_count=$as_val
5302 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5303 # Best one so far, save it but keep looking for a better one
5304 ac_cv_path_EGREP="$ac_path_EGREP"
5305 ac_path_EGREP_max=$ac_count
5306 fi
5307 # 10*(2^10) chars as input seems more than enough
5308 test $ac_count -gt 10 && break
5309 done
5310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5311esac
5312
5313 $ac_path_EGREP_found && break 3
5314 done
5315 done
5316 done
5317IFS=$as_save_IFS
5318 if test -z "$ac_cv_path_EGREP"; then
5319 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5320 fi
5321else
5322 ac_cv_path_EGREP=$EGREP
5323fi
5324
5325 fi
5326fi
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5328$as_echo "$ac_cv_path_EGREP" >&6; }
5329 EGREP="$ac_cv_path_EGREP"
5330
5331
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5333$as_echo_n "checking for ANSI C header files... " >&6; }
5334if test "${ac_cv_header_stdc+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5336else
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338/* end confdefs.h. */
5339#include <stdlib.h>
5340#include <stdarg.h>
5341#include <string.h>
5342#include <float.h>
5343
5344int
5345main ()
5346{
5347
5348 ;
5349 return 0;
5350}
5351_ACEOF
5352if ac_fn_c_try_compile "$LINENO"; then :
5353 ac_cv_header_stdc=yes
5354else
5355 ac_cv_header_stdc=no
5356fi
5357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358
5359if test $ac_cv_header_stdc = yes; then
5360 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362/* end confdefs.h. */
5363#include <string.h>
5364
5365_ACEOF
5366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5367 $EGREP "memchr" >/dev/null 2>&1; then :
5368
5369else
5370 ac_cv_header_stdc=no
5371fi
5372rm -f conftest*
5373
5374fi
5375
5376if test $ac_cv_header_stdc = yes; then
5377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h. */
5380#include <stdlib.h>
5381
5382_ACEOF
5383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5384 $EGREP "free" >/dev/null 2>&1; then :
5385
5386else
5387 ac_cv_header_stdc=no
5388fi
5389rm -f conftest*
5390
5391fi
5392
5393if test $ac_cv_header_stdc = yes; then
5394 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5395 if test "$cross_compiling" = yes; then :
5396 :
5397else
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399/* end confdefs.h. */
5400#include <ctype.h>
5401#include <stdlib.h>
5402#if ((' ' & 0x0FF) == 0x020)
5403# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5404# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5405#else
5406# define ISLOWER(c) \
5407 (('a' <= (c) && (c) <= 'i') \
5408 || ('j' <= (c) && (c) <= 'r') \
5409 || ('s' <= (c) && (c) <= 'z'))
5410# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5411#endif
5412
5413#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5414int
5415main ()
5416{
5417 int i;
5418 for (i = 0; i < 256; i++)
5419 if (XOR (islower (i), ISLOWER (i))
5420 || toupper (i) != TOUPPER (i))
5421 return 2;
5422 return 0;
5423}
5424_ACEOF
5425if ac_fn_c_try_run "$LINENO"; then :
5426
5427else
5428 ac_cv_header_stdc=no
5429fi
5430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5431 conftest.$ac_objext conftest.beam conftest.$ac_ext
5432fi
5433
5434fi
5435fi
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5437$as_echo "$ac_cv_header_stdc" >&6; }
5438if test $ac_cv_header_stdc = yes; then
5439
5440$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5441
5442fi
5443
5444# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5445for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5446 inttypes.h stdint.h unistd.h
5447do :
5448 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5449ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5450"
5451eval as_val=\$$as_ac_Header
5452 if test "x$as_val" = x""yes; then :
5453 cat >>confdefs.h <<_ACEOF
5454#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5455_ACEOF
5456
5457fi
5458
5459done
5460
5461
5462
5463 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5464if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5465 MINIX=yes
5466else
5467 MINIX=
5468fi
5469
5470
5471 if test "$MINIX" = yes; then
5472
5473$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5474
5475
5476$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5477
5478
5479$as_echo "#define _MINIX 1" >>confdefs.h
5480
5481 fi
5482
5483
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5485$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5486if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5488else
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h. */
5491
5492# define __EXTENSIONS__ 1
5493 $ac_includes_default
5494int
5495main ()
5496{
5497
5498 ;
5499 return 0;
5500}
5501_ACEOF
5502if ac_fn_c_try_compile "$LINENO"; then :
5503 ac_cv_safe_to_define___extensions__=yes
5504else
5505 ac_cv_safe_to_define___extensions__=no
5506fi
5507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508fi
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5510$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5511 test $ac_cv_safe_to_define___extensions__ = yes &&
5512 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5513
5514 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5515
5516 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5517
5518 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5519
5520 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5521
5522
5523
5524# Check for programs
5525ac_ext=c
5526ac_cpp='$CPP $CPPFLAGS'
5527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529ac_compiler_gnu=$ac_cv_c_compiler_gnu
5530if test -n "$ac_tool_prefix"; then
5531 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5532set dummy ${ac_tool_prefix}gcc; ac_word=$2
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534$as_echo_n "checking for $ac_word... " >&6; }
5535if test "${ac_cv_prog_CC+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5537else
5538 if test -n "$CC"; then
5539 ac_cv_prog_CC="$CC" # Let the user override the test.
5540else
5541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542for as_dir in $PATH
5543do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5548 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552done
5553 done
5554IFS=$as_save_IFS
5555
5556fi
5557fi
5558CC=$ac_cv_prog_CC
5559if test -n "$CC"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5561$as_echo "$CC" >&6; }
5562else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564$as_echo "no" >&6; }
5565fi
5566
5567
5568fi
5569if test -z "$ac_cv_prog_CC"; then
5570 ac_ct_CC=$CC
5571 # Extract the first word of "gcc", so it can be a program name with args.
5572set dummy gcc; ac_word=$2
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574$as_echo_n "checking for $ac_word... " >&6; }
5575if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5576 $as_echo_n "(cached) " >&6
5577else
5578 if test -n "$ac_ct_CC"; then
5579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5580else
5581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582for as_dir in $PATH
5583do
5584 IFS=$as_save_IFS
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5588 ac_cv_prog_ac_ct_CC="gcc"
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 break 2
5591 fi
5592done
5593 done
5594IFS=$as_save_IFS
5595
5596fi
5597fi
5598ac_ct_CC=$ac_cv_prog_ac_ct_CC
5599if test -n "$ac_ct_CC"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5601$as_echo "$ac_ct_CC" >&6; }
5602else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604$as_echo "no" >&6; }
5605fi
5606
5607 if test "x$ac_ct_CC" = x; then
5608 CC=""
5609 else
5610 case $cross_compiling:$ac_tool_warned in
5611yes:)
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5614ac_tool_warned=yes ;;
5615esac
5616 CC=$ac_ct_CC
5617 fi
5618else
5619 CC="$ac_cv_prog_CC"
5620fi
5621
5622if test -z "$CC"; then
5623 if test -n "$ac_tool_prefix"; then
5624 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5625set dummy ${ac_tool_prefix}cc; ac_word=$2
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5627$as_echo_n "checking for $ac_word... " >&6; }
5628if test "${ac_cv_prog_CC+set}" = set; then :
5629 $as_echo_n "(cached) " >&6
5630else
5631 if test -n "$CC"; then
5632 ac_cv_prog_CC="$CC" # Let the user override the test.
5633else
5634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635for as_dir in $PATH
5636do
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5641 ac_cv_prog_CC="${ac_tool_prefix}cc"
5642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 break 2
5644 fi
5645done
5646 done
5647IFS=$as_save_IFS
5648
5649fi
5650fi
5651CC=$ac_cv_prog_CC
5652if test -n "$CC"; then
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5654$as_echo "$CC" >&6; }
5655else
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657$as_echo "no" >&6; }
5658fi
5659
5660
5661 fi
5662fi
5663if test -z "$CC"; then
5664 # Extract the first word of "cc", so it can be a program name with args.
5665set dummy cc; ac_word=$2
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667$as_echo_n "checking for $ac_word... " >&6; }
5668if test "${ac_cv_prog_CC+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5670else
5671 if test -n "$CC"; then
5672 ac_cv_prog_CC="$CC" # Let the user override the test.
5673else
5674 ac_prog_rejected=no
5675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676for as_dir in $PATH
5677do
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5682 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5683 ac_prog_rejected=yes
5684 continue
5685 fi
5686 ac_cv_prog_CC="cc"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690done
5691 done
5692IFS=$as_save_IFS
5693
5694if test $ac_prog_rejected = yes; then
5695 # We found a bogon in the path, so make sure we never use it.
5696 set dummy $ac_cv_prog_CC
5697 shift
5698 if test $# != 0; then
5699 # We chose a different compiler from the bogus one.
5700 # However, it has the same basename, so the bogon will be chosen
5701 # first if we set CC to just the basename; use the full file name.
5702 shift
5703 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5704 fi
5705fi
5706fi
5707fi
5708CC=$ac_cv_prog_CC
5709if test -n "$CC"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5711$as_echo "$CC" >&6; }
5712else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714$as_echo "no" >&6; }
5715fi
5716
5717
5718fi
5719if test -z "$CC"; then
5720 if test -n "$ac_tool_prefix"; then
5721 for ac_prog in cl.exe
5722 do
5723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5724set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726$as_echo_n "checking for $ac_word... " >&6; }
5727if test "${ac_cv_prog_CC+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5729else
5730 if test -n "$CC"; then
5731 ac_cv_prog_CC="$CC" # Let the user override the test.
5732else
5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734for as_dir in $PATH
5735do
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5740 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5743 fi
5744done
5745 done
5746IFS=$as_save_IFS
5747
5748fi
5749fi
5750CC=$ac_cv_prog_CC
5751if test -n "$CC"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5753$as_echo "$CC" >&6; }
5754else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756$as_echo "no" >&6; }
5757fi
5758
5759
5760 test -n "$CC" && break
5761 done
5762fi
5763if test -z "$CC"; then
5764 ac_ct_CC=$CC
5765 for ac_prog in cl.exe
5766do
5767 # Extract the first word of "$ac_prog", so it can be a program name with args.
5768set dummy $ac_prog; ac_word=$2
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770$as_echo_n "checking for $ac_word... " >&6; }
5771if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5772 $as_echo_n "(cached) " >&6
5773else
5774 if test -n "$ac_ct_CC"; then
5775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5776else
5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778for as_dir in $PATH
5779do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784 ac_cv_prog_ac_ct_CC="$ac_prog"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 break 2
5787 fi
5788done
5789 done
5790IFS=$as_save_IFS
5791
5792fi
5793fi
5794ac_ct_CC=$ac_cv_prog_ac_ct_CC
5795if test -n "$ac_ct_CC"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5797$as_echo "$ac_ct_CC" >&6; }
5798else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800$as_echo "no" >&6; }
5801fi
5802
5803
5804 test -n "$ac_ct_CC" && break
5805done
5806
5807 if test "x$ac_ct_CC" = x; then
5808 CC=""
5809 else
5810 case $cross_compiling:$ac_tool_warned in
5811yes:)
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5814ac_tool_warned=yes ;;
5815esac
5816 CC=$ac_ct_CC
5817 fi
5818fi
5819
5820fi
5821
5822
5823test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5825as_fn_error "no acceptable C compiler found in \$PATH
5826See \`config.log' for more details." "$LINENO" 5; }
5827
5828# Provide some information about the compiler.
5829$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5830set X $ac_compile
5831ac_compiler=$2
5832for ac_option in --version -v -V -qversion; do
5833 { { ac_try="$ac_compiler $ac_option >&5"
5834case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837esac
5838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5839$as_echo "$ac_try_echo"; } >&5
5840 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5841 ac_status=$?
5842 if test -s conftest.err; then
5843 sed '10a\
5844... rest of stderr output deleted ...
5845 10q' conftest.err >conftest.er1
5846 cat conftest.er1 >&5
5847 fi
5848 rm -f conftest.er1 conftest.err
5849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5850 test $ac_status = 0; }
5851done
5852
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5854$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5855if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857else
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h. */
5860
5861int
5862main ()
5863{
5864#ifndef __GNUC__
5865 choke me
5866#endif
5867
5868 ;
5869 return 0;
5870}
5871_ACEOF
5872if ac_fn_c_try_compile "$LINENO"; then :
5873 ac_compiler_gnu=yes
5874else
5875 ac_compiler_gnu=no
5876fi
5877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878ac_cv_c_compiler_gnu=$ac_compiler_gnu
5879
5880fi
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5882$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5883if test $ac_compiler_gnu = yes; then
5884 GCC=yes
5885else
5886 GCC=
5887fi
5888ac_test_CFLAGS=${CFLAGS+set}
5889ac_save_CFLAGS=$CFLAGS
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5891$as_echo_n "checking whether $CC accepts -g... " >&6; }
5892if test "${ac_cv_prog_cc_g+set}" = set; then :
5893 $as_echo_n "(cached) " >&6
5894else
5895 ac_save_c_werror_flag=$ac_c_werror_flag
5896 ac_c_werror_flag=yes
5897 ac_cv_prog_cc_g=no
5898 CFLAGS="-g"
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900/* end confdefs.h. */
5901
5902int
5903main ()
5904{
5905
5906 ;
5907 return 0;
5908}
5909_ACEOF
5910if ac_fn_c_try_compile "$LINENO"; then :
5911 ac_cv_prog_cc_g=yes
5912else
5913 CFLAGS=""
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915/* end confdefs.h. */
5916
5917int
5918main ()
5919{
5920
5921 ;
5922 return 0;
5923}
5924_ACEOF
5925if ac_fn_c_try_compile "$LINENO"; then :
5926
5927else
5928 ac_c_werror_flag=$ac_save_c_werror_flag
5929 CFLAGS="-g"
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h. */
5932
5933int
5934main ()
5935{
5936
5937 ;
5938 return 0;
5939}
5940_ACEOF
5941if ac_fn_c_try_compile "$LINENO"; then :
5942 ac_cv_prog_cc_g=yes
5943fi
5944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945fi
5946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947fi
5948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 ac_c_werror_flag=$ac_save_c_werror_flag
5950fi
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5952$as_echo "$ac_cv_prog_cc_g" >&6; }
5953if test "$ac_test_CFLAGS" = set; then
5954 CFLAGS=$ac_save_CFLAGS
5955elif test $ac_cv_prog_cc_g = yes; then
5956 if test "$GCC" = yes; then
5957 CFLAGS="-g -O2"
5958 else
5959 CFLAGS="-g"
5960 fi
5961else
5962 if test "$GCC" = yes; then
5963 CFLAGS="-O2"
5964 else
5965 CFLAGS=
5966 fi
5967fi
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5969$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5970if test "${ac_cv_prog_cc_c89+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972else
5973 ac_cv_prog_cc_c89=no
5974ac_save_CC=$CC
5975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976/* end confdefs.h. */
5977#include <stdarg.h>
5978#include <stdio.h>
5979#include <sys/types.h>
5980#include <sys/stat.h>
5981/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5982struct buf { int x; };
5983FILE * (*rcsopen) (struct buf *, struct stat *, int);
5984static char *e (p, i)
5985 char **p;
5986 int i;
5987{
5988 return p[i];
5989}
5990static char *f (char * (*g) (char **, int), char **p, ...)
5991{
5992 char *s;
5993 va_list v;
5994 va_start (v,p);
5995 s = g (p, va_arg (v,int));
5996 va_end (v);
5997 return s;
5998}
5999
6000/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6001 function prototypes and stuff, but not '\xHH' hex character constants.
6002 These don't provoke an error unfortunately, instead are silently treated
6003 as 'x'. The following induces an error, until -std is added to get
6004 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6005 array size at least. It's necessary to write '\x00'==0 to get something
6006 that's true only with -std. */
6007int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6008
6009/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6010 inside strings and character constants. */
6011#define FOO(x) 'x'
6012int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6013
6014int test (int i, double x);
6015struct s1 {int (*f) (int a);};
6016struct s2 {int (*f) (double a);};
6017int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6018int argc;
6019char **argv;
6020int
6021main ()
6022{
6023return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6024 ;
6025 return 0;
6026}
6027_ACEOF
6028for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6029 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6030do
6031 CC="$ac_save_CC $ac_arg"
6032 if ac_fn_c_try_compile "$LINENO"; then :
6033 ac_cv_prog_cc_c89=$ac_arg
6034fi
6035rm -f core conftest.err conftest.$ac_objext
6036 test "x$ac_cv_prog_cc_c89" != "xno" && break
6037done
6038rm -f conftest.$ac_ext
6039CC=$ac_save_CC
6040
6041fi
6042# AC_CACHE_VAL
6043case "x$ac_cv_prog_cc_c89" in
6044 x)
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6046$as_echo "none needed" >&6; } ;;
6047 xno)
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6049$as_echo "unsupported" >&6; } ;;
6050 *)
6051 CC="$CC $ac_cv_prog_cc_c89"
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6053$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6054esac
6055if test "x$ac_cv_prog_cc_c89" != xno; then :
6056
6057fi
6058
6059ac_ext=c
6060ac_cpp='$CPP $CPPFLAGS'
6061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063ac_compiler_gnu=$ac_cv_c_compiler_gnu
6064
cristy3ed852e2009-09-05 21:47:34 +00006065depcc="$CC" am_compiler_list=
6066
cristy8b350f62009-11-15 23:12:43 +00006067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006068$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006069if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006070 $as_echo_n "(cached) " >&6
6071else
6072 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6073 # We make a subdir and do the tests there. Otherwise we can end up
6074 # making bogus files that we don't know about and never remove. For
6075 # instance it was reported that on HP-UX the gcc test will end up
6076 # making a dummy file named `D' -- because `-MD' means `put the output
6077 # in D'.
6078 mkdir conftest.dir
6079 # Copy depcomp to subdir because otherwise we won't find it if we're
6080 # using a relative directory.
6081 cp "$am_depcomp" conftest.dir
6082 cd conftest.dir
6083 # We will build objects and dependencies in a subdirectory because
6084 # it helps to detect inapplicable dependency modes. For instance
6085 # both Tru64's cc and ICC support -MD to output dependencies as a
6086 # side effect of compilation, but ICC will put the dependencies in
6087 # the current directory while Tru64 will put them in the object
6088 # directory.
6089 mkdir sub
6090
6091 am_cv_CC_dependencies_compiler_type=none
6092 if test "$am_compiler_list" = ""; then
6093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6094 fi
6095 am__universal=false
6096 case " $depcc " in #(
6097 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6098 esac
6099
6100 for depmode in $am_compiler_list; do
6101 # Setup a source with many dependencies, because some compilers
6102 # like to wrap large dependency lists on column 80 (with \), and
6103 # we should not choose a depcomp mode which is confused by this.
6104 #
6105 # We need to recreate these files for each test, as the compiler may
6106 # overwrite some of them when testing with obscure command lines.
6107 # This happens at least with the AIX C compiler.
6108 : > sub/conftest.c
6109 for i in 1 2 3 4 5 6; do
6110 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6111 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6112 # Solaris 8's {/usr,}/bin/sh.
6113 touch sub/conftst$i.h
6114 done
6115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6116
6117 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6118 # mode. It turns out that the SunPro C++ compiler does not properly
6119 # handle `-M -o', and we need to detect this. Also, some Intel
6120 # versions had trouble with output in subdirs
6121 am__obj=sub/conftest.${OBJEXT-o}
6122 am__minus_obj="-o $am__obj"
6123 case $depmode in
6124 gcc)
6125 # This depmode causes a compiler race in universal mode.
6126 test "$am__universal" = false || continue
6127 ;;
6128 nosideeffect)
6129 # after this tag, mechanisms are not by side-effect, so they'll
6130 # only be used when explicitly requested
6131 if test "x$enable_dependency_tracking" = xyes; then
6132 continue
6133 else
6134 break
6135 fi
6136 ;;
6137 msvisualcpp | msvcmsys)
6138 # This compiler won't grok `-c -o', but also, the minuso test has
6139 # not run yet. These depmodes are late enough in the game, and
6140 # so weak that their functioning should not be impacted.
6141 am__obj=conftest.${OBJEXT-o}
6142 am__minus_obj=
6143 ;;
6144 none) break ;;
6145 esac
6146 if depmode=$depmode \
6147 source=sub/conftest.c object=$am__obj \
6148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6149 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6150 >/dev/null 2>conftest.err &&
6151 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6153 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6155 # icc doesn't choke on unknown options, it will just issue warnings
6156 # or remarks (even with -Werror). So we grep stderr for any message
6157 # that says an option was ignored or not supported.
6158 # When given -MP, icc 7.0 and 7.1 complain thusly:
6159 # icc: Command line warning: ignoring option '-M'; no argument required
6160 # The diagnosis changed in icc 8.0:
6161 # icc: Command line remark: option '-MP' not supported
6162 if (grep 'ignoring option' conftest.err ||
6163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6164 am_cv_CC_dependencies_compiler_type=$depmode
6165 break
6166 fi
6167 fi
6168 done
6169
6170 cd ..
6171 rm -rf conftest.dir
6172else
6173 am_cv_CC_dependencies_compiler_type=none
6174fi
6175
6176fi
cristy8b350f62009-11-15 23:12:43 +00006177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006178$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6179CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6180
6181 if
6182 test "x$enable_dependency_tracking" != xno \
6183 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6184 am__fastdepCC_TRUE=
6185 am__fastdepCC_FALSE='#'
6186else
6187 am__fastdepCC_TRUE='#'
6188 am__fastdepCC_FALSE=
6189fi
6190
6191
cristy95646052009-11-28 23:05:30 +00006192ac_ext=cpp
6193ac_cpp='$CXXCPP $CPPFLAGS'
6194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6197if test -z "$CXX"; then
6198 if test -n "$CCC"; then
6199 CXX=$CCC
6200 else
6201 if test -n "$ac_tool_prefix"; then
6202 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6203 do
6204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6205set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207$as_echo_n "checking for $ac_word... " >&6; }
6208if test "${ac_cv_prog_CXX+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
6210else
6211 if test -n "$CXX"; then
6212 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6213else
6214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215for as_dir in $PATH
6216do
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 break 2
6224 fi
6225done
6226 done
6227IFS=$as_save_IFS
6228
6229fi
6230fi
6231CXX=$ac_cv_prog_CXX
6232if test -n "$CXX"; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6234$as_echo "$CXX" >&6; }
6235else
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237$as_echo "no" >&6; }
6238fi
6239
6240
6241 test -n "$CXX" && break
6242 done
6243fi
6244if test -z "$CXX"; then
6245 ac_ct_CXX=$CXX
6246 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6247do
6248 # Extract the first word of "$ac_prog", so it can be a program name with args.
6249set dummy $ac_prog; ac_word=$2
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251$as_echo_n "checking for $ac_word... " >&6; }
6252if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6254else
6255 if test -n "$ac_ct_CXX"; then
6256 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_ac_ct_CXX="$ac_prog"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6268 fi
6269done
6270 done
6271IFS=$as_save_IFS
6272
6273fi
6274fi
6275ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6276if test -n "$ac_ct_CXX"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6278$as_echo "$ac_ct_CXX" >&6; }
6279else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281$as_echo "no" >&6; }
6282fi
6283
6284
6285 test -n "$ac_ct_CXX" && break
6286done
6287
6288 if test "x$ac_ct_CXX" = x; then
6289 CXX="g++"
6290 else
6291 case $cross_compiling:$ac_tool_warned in
6292yes:)
6293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6295ac_tool_warned=yes ;;
6296esac
6297 CXX=$ac_ct_CXX
6298 fi
6299fi
6300
6301 fi
6302fi
6303# Provide some information about the compiler.
6304$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6305set X $ac_compile
6306ac_compiler=$2
6307for ac_option in --version -v -V -qversion; do
6308 { { ac_try="$ac_compiler $ac_option >&5"
6309case "(($ac_try" in
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6312esac
6313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6314$as_echo "$ac_try_echo"; } >&5
6315 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6316 ac_status=$?
6317 if test -s conftest.err; then
6318 sed '10a\
6319... rest of stderr output deleted ...
6320 10q' conftest.err >conftest.er1
6321 cat conftest.er1 >&5
6322 fi
6323 rm -f conftest.er1 conftest.err
6324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6325 test $ac_status = 0; }
6326done
6327
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6329$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6330if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6331 $as_echo_n "(cached) " >&6
6332else
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334/* end confdefs.h. */
6335
6336int
6337main ()
6338{
6339#ifndef __GNUC__
6340 choke me
6341#endif
6342
6343 ;
6344 return 0;
6345}
6346_ACEOF
6347if ac_fn_cxx_try_compile "$LINENO"; then :
6348 ac_compiler_gnu=yes
6349else
6350 ac_compiler_gnu=no
6351fi
6352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6354
6355fi
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6357$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6358if test $ac_compiler_gnu = yes; then
6359 GXX=yes
6360else
6361 GXX=
6362fi
6363ac_test_CXXFLAGS=${CXXFLAGS+set}
6364ac_save_CXXFLAGS=$CXXFLAGS
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6366$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6367if test "${ac_cv_prog_cxx_g+set}" = set; then :
6368 $as_echo_n "(cached) " >&6
6369else
6370 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6371 ac_cxx_werror_flag=yes
6372 ac_cv_prog_cxx_g=no
6373 CXXFLAGS="-g"
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375/* end confdefs.h. */
6376
6377int
6378main ()
6379{
6380
6381 ;
6382 return 0;
6383}
6384_ACEOF
6385if ac_fn_cxx_try_compile "$LINENO"; then :
6386 ac_cv_prog_cxx_g=yes
6387else
6388 CXXFLAGS=""
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390/* end confdefs.h. */
6391
6392int
6393main ()
6394{
6395
6396 ;
6397 return 0;
6398}
6399_ACEOF
6400if ac_fn_cxx_try_compile "$LINENO"; then :
6401
6402else
6403 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6404 CXXFLAGS="-g"
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406/* end confdefs.h. */
6407
6408int
6409main ()
6410{
6411
6412 ;
6413 return 0;
6414}
6415_ACEOF
6416if ac_fn_cxx_try_compile "$LINENO"; then :
6417 ac_cv_prog_cxx_g=yes
6418fi
6419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420fi
6421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422fi
6423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6427$as_echo "$ac_cv_prog_cxx_g" >&6; }
6428if test "$ac_test_CXXFLAGS" = set; then
6429 CXXFLAGS=$ac_save_CXXFLAGS
6430elif test $ac_cv_prog_cxx_g = yes; then
6431 if test "$GXX" = yes; then
6432 CXXFLAGS="-g -O2"
6433 else
6434 CXXFLAGS="-g"
6435 fi
6436else
6437 if test "$GXX" = yes; then
6438 CXXFLAGS="-O2"
6439 else
6440 CXXFLAGS=
6441 fi
6442fi
6443ac_ext=c
6444ac_cpp='$CPP $CPPFLAGS'
6445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6447ac_compiler_gnu=$ac_cv_c_compiler_gnu
6448
6449depcc="$CXX" am_compiler_list=
6450
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6452$as_echo_n "checking dependency style of $depcc... " >&6; }
6453if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6455else
6456 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6457 # We make a subdir and do the tests there. Otherwise we can end up
6458 # making bogus files that we don't know about and never remove. For
6459 # instance it was reported that on HP-UX the gcc test will end up
6460 # making a dummy file named `D' -- because `-MD' means `put the output
6461 # in D'.
6462 mkdir conftest.dir
6463 # Copy depcomp to subdir because otherwise we won't find it if we're
6464 # using a relative directory.
6465 cp "$am_depcomp" conftest.dir
6466 cd conftest.dir
6467 # We will build objects and dependencies in a subdirectory because
6468 # it helps to detect inapplicable dependency modes. For instance
6469 # both Tru64's cc and ICC support -MD to output dependencies as a
6470 # side effect of compilation, but ICC will put the dependencies in
6471 # the current directory while Tru64 will put them in the object
6472 # directory.
6473 mkdir sub
6474
6475 am_cv_CXX_dependencies_compiler_type=none
6476 if test "$am_compiler_list" = ""; then
6477 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6478 fi
6479 am__universal=false
6480 case " $depcc " in #(
6481 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6482 esac
6483
6484 for depmode in $am_compiler_list; do
6485 # Setup a source with many dependencies, because some compilers
6486 # like to wrap large dependency lists on column 80 (with \), and
6487 # we should not choose a depcomp mode which is confused by this.
6488 #
6489 # We need to recreate these files for each test, as the compiler may
6490 # overwrite some of them when testing with obscure command lines.
6491 # This happens at least with the AIX C compiler.
6492 : > sub/conftest.c
6493 for i in 1 2 3 4 5 6; do
6494 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6495 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6496 # Solaris 8's {/usr,}/bin/sh.
6497 touch sub/conftst$i.h
6498 done
6499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6500
6501 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6502 # mode. It turns out that the SunPro C++ compiler does not properly
6503 # handle `-M -o', and we need to detect this. Also, some Intel
6504 # versions had trouble with output in subdirs
6505 am__obj=sub/conftest.${OBJEXT-o}
6506 am__minus_obj="-o $am__obj"
6507 case $depmode in
6508 gcc)
6509 # This depmode causes a compiler race in universal mode.
6510 test "$am__universal" = false || continue
6511 ;;
6512 nosideeffect)
6513 # after this tag, mechanisms are not by side-effect, so they'll
6514 # only be used when explicitly requested
6515 if test "x$enable_dependency_tracking" = xyes; then
6516 continue
6517 else
6518 break
6519 fi
6520 ;;
6521 msvisualcpp | msvcmsys)
6522 # This compiler won't grok `-c -o', but also, the minuso test has
6523 # not run yet. These depmodes are late enough in the game, and
6524 # so weak that their functioning should not be impacted.
6525 am__obj=conftest.${OBJEXT-o}
6526 am__minus_obj=
6527 ;;
6528 none) break ;;
6529 esac
6530 if depmode=$depmode \
6531 source=sub/conftest.c object=$am__obj \
6532 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6533 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6534 >/dev/null 2>conftest.err &&
6535 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6537 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6539 # icc doesn't choke on unknown options, it will just issue warnings
6540 # or remarks (even with -Werror). So we grep stderr for any message
6541 # that says an option was ignored or not supported.
6542 # When given -MP, icc 7.0 and 7.1 complain thusly:
6543 # icc: Command line warning: ignoring option '-M'; no argument required
6544 # The diagnosis changed in icc 8.0:
6545 # icc: Command line remark: option '-MP' not supported
6546 if (grep 'ignoring option' conftest.err ||
6547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6548 am_cv_CXX_dependencies_compiler_type=$depmode
6549 break
6550 fi
6551 fi
6552 done
6553
6554 cd ..
6555 rm -rf conftest.dir
6556else
6557 am_cv_CXX_dependencies_compiler_type=none
6558fi
6559
6560fi
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6562$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6563CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6564
6565 if
6566 test "x$enable_dependency_tracking" != xno \
6567 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6568 am__fastdepCXX_TRUE=
6569 am__fastdepCXX_FALSE='#'
6570else
6571 am__fastdepCXX_TRUE='#'
6572 am__fastdepCXX_FALSE=
6573fi
6574
6575
cristy8b350f62009-11-15 23:12:43 +00006576 case $ac_cv_prog_cc_stdc in #(
6577 no) :
6578 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6579 *) :
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006581$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006582if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006583 $as_echo_n "(cached) " >&6
6584else
6585 ac_cv_prog_cc_c99=no
6586ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006588/* end confdefs.h. */
6589#include <stdarg.h>
6590#include <stdbool.h>
6591#include <stdlib.h>
6592#include <wchar.h>
6593#include <stdio.h>
6594
6595// Check varargs macros. These examples are taken from C99 6.10.3.5.
6596#define debug(...) fprintf (stderr, __VA_ARGS__)
6597#define showlist(...) puts (#__VA_ARGS__)
6598#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6599static void
6600test_varargs_macros (void)
6601{
6602 int x = 1234;
6603 int y = 5678;
6604 debug ("Flag");
6605 debug ("X = %d\n", x);
6606 showlist (The first, second, and third items.);
6607 report (x>y, "x is %d but y is %d", x, y);
6608}
6609
6610// Check long long types.
6611#define BIG64 18446744073709551615ull
6612#define BIG32 4294967295ul
6613#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6614#if !BIG_OK
6615 your preprocessor is broken;
6616#endif
6617#if BIG_OK
6618#else
6619 your preprocessor is broken;
6620#endif
6621static long long int bignum = -9223372036854775807LL;
6622static unsigned long long int ubignum = BIG64;
6623
6624struct incomplete_array
6625{
6626 int datasize;
6627 double data[];
6628};
6629
6630struct named_init {
6631 int number;
6632 const wchar_t *name;
6633 double average;
6634};
6635
6636typedef const char *ccp;
6637
6638static inline int
6639test_restrict (ccp restrict text)
6640{
6641 // See if C++-style comments work.
6642 // Iterate through items via the restricted pointer.
6643 // Also check for declarations in for loops.
6644 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6645 continue;
6646 return 0;
6647}
6648
6649// Check varargs and va_copy.
6650static void
6651test_varargs (const char *format, ...)
6652{
6653 va_list args;
6654 va_start (args, format);
6655 va_list args_copy;
6656 va_copy (args_copy, args);
6657
6658 const char *str;
6659 int number;
6660 float fnumber;
6661
6662 while (*format)
6663 {
6664 switch (*format++)
6665 {
6666 case 's': // string
6667 str = va_arg (args_copy, const char *);
6668 break;
6669 case 'd': // int
6670 number = va_arg (args_copy, int);
6671 break;
6672 case 'f': // float
6673 fnumber = va_arg (args_copy, double);
6674 break;
6675 default:
6676 break;
6677 }
6678 }
6679 va_end (args_copy);
6680 va_end (args);
6681}
6682
6683int
6684main ()
6685{
6686
6687 // Check bool.
6688 _Bool success = false;
6689
6690 // Check restrict.
6691 if (test_restrict ("String literal") == 0)
6692 success = true;
6693 char *restrict newvar = "Another string";
6694
6695 // Check varargs.
6696 test_varargs ("s, d' f .", "string", 65, 34.234);
6697 test_varargs_macros ();
6698
6699 // Check flexible array members.
6700 struct incomplete_array *ia =
6701 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6702 ia->datasize = 10;
6703 for (int i = 0; i < ia->datasize; ++i)
6704 ia->data[i] = i * 1.234;
6705
6706 // Check named initializers.
6707 struct named_init ni = {
6708 .number = 34,
6709 .name = L"Test wide string",
6710 .average = 543.34343,
6711 };
6712
6713 ni.number = 58;
6714
6715 int dynamic_array[ni.number];
6716 dynamic_array[ni.number - 1] = 543;
6717
6718 // work around unused variable warnings
6719 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6720 || dynamic_array[ni.number - 1] != 543);
6721
6722 ;
6723 return 0;
6724}
6725_ACEOF
6726for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6727do
6728 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006729 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006730 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006731fi
cristy3ed852e2009-09-05 21:47:34 +00006732rm -f core conftest.err conftest.$ac_objext
6733 test "x$ac_cv_prog_cc_c99" != "xno" && break
6734done
6735rm -f conftest.$ac_ext
6736CC=$ac_save_CC
6737
6738fi
6739# AC_CACHE_VAL
6740case "x$ac_cv_prog_cc_c99" in
6741 x)
cristy8b350f62009-11-15 23:12:43 +00006742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006743$as_echo "none needed" >&6; } ;;
6744 xno)
cristy8b350f62009-11-15 23:12:43 +00006745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006746$as_echo "unsupported" >&6; } ;;
6747 *)
6748 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006750$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6751esac
cristy8b350f62009-11-15 23:12:43 +00006752if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006753 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6754else
cristy8b350f62009-11-15 23:12:43 +00006755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006756$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006757if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006758 $as_echo_n "(cached) " >&6
6759else
6760 ac_cv_prog_cc_c89=no
6761ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006763/* end confdefs.h. */
6764#include <stdarg.h>
6765#include <stdio.h>
6766#include <sys/types.h>
6767#include <sys/stat.h>
6768/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6769struct buf { int x; };
6770FILE * (*rcsopen) (struct buf *, struct stat *, int);
6771static char *e (p, i)
6772 char **p;
6773 int i;
6774{
6775 return p[i];
6776}
6777static char *f (char * (*g) (char **, int), char **p, ...)
6778{
6779 char *s;
6780 va_list v;
6781 va_start (v,p);
6782 s = g (p, va_arg (v,int));
6783 va_end (v);
6784 return s;
6785}
6786
6787/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6788 function prototypes and stuff, but not '\xHH' hex character constants.
6789 These don't provoke an error unfortunately, instead are silently treated
6790 as 'x'. The following induces an error, until -std is added to get
6791 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6792 array size at least. It's necessary to write '\x00'==0 to get something
6793 that's true only with -std. */
6794int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6795
6796/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6797 inside strings and character constants. */
6798#define FOO(x) 'x'
6799int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6800
6801int test (int i, double x);
6802struct s1 {int (*f) (int a);};
6803struct s2 {int (*f) (double a);};
6804int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6805int argc;
6806char **argv;
6807int
6808main ()
6809{
6810return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6811 ;
6812 return 0;
6813}
6814_ACEOF
6815for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6816 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6817do
6818 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006819 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006820 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006821fi
cristy3ed852e2009-09-05 21:47:34 +00006822rm -f core conftest.err conftest.$ac_objext
6823 test "x$ac_cv_prog_cc_c89" != "xno" && break
6824done
6825rm -f conftest.$ac_ext
6826CC=$ac_save_CC
6827
6828fi
6829# AC_CACHE_VAL
6830case "x$ac_cv_prog_cc_c89" in
6831 x)
cristy8b350f62009-11-15 23:12:43 +00006832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006833$as_echo "none needed" >&6; } ;;
6834 xno)
cristy8b350f62009-11-15 23:12:43 +00006835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006836$as_echo "unsupported" >&6; } ;;
6837 *)
6838 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006840$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6841esac
cristy8b350f62009-11-15 23:12:43 +00006842if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006843 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6844else
6845 ac_cv_prog_cc_stdc=no
6846fi
6847
cristy3ed852e2009-09-05 21:47:34 +00006848fi
cristy3ed852e2009-09-05 21:47:34 +00006849 ;;
6850esac
cristy8b350f62009-11-15 23:12:43 +00006851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006852$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006853 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006854 $as_echo_n "(cached) " >&6
6855fi
6856
cristy8b350f62009-11-15 23:12:43 +00006857 case $ac_cv_prog_cc_stdc in #(
6858 no) :
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6860$as_echo "unsupported" >&6; } ;; #(
6861 '') :
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6863$as_echo "none needed" >&6; } ;; #(
6864 *) :
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006866$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6867esac
6868
cristy3ed852e2009-09-05 21:47:34 +00006869ac_ext=c
6870ac_cpp='$CPP $CPPFLAGS'
6871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006875$as_echo_n "checking how to run the C preprocessor... " >&6; }
6876# On Suns, sometimes $CPP names a directory.
6877if test -n "$CPP" && test -d "$CPP"; then
6878 CPP=
6879fi
6880if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006881 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006882 $as_echo_n "(cached) " >&6
6883else
6884 # Double quotes because CPP needs to be expanded
6885 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6886 do
6887 ac_preproc_ok=false
6888for ac_c_preproc_warn_flag in '' yes
6889do
6890 # Use a header file that comes with gcc, so configuring glibc
6891 # with a fresh cross-compiler works.
6892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6893 # <limits.h> exists even on freestanding compilers.
6894 # On the NeXT, cc -E runs the code through the compiler's parser,
6895 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006897/* end confdefs.h. */
6898#ifdef __STDC__
6899# include <limits.h>
6900#else
6901# include <assert.h>
6902#endif
6903 Syntax error
6904_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006905if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006906
cristy8b350f62009-11-15 23:12:43 +00006907else
cristy3ed852e2009-09-05 21:47:34 +00006908 # Broken: fails on valid input.
6909continue
6910fi
cristy3ed852e2009-09-05 21:47:34 +00006911rm -f conftest.err conftest.$ac_ext
6912
6913 # OK, works on sane cases. Now check whether nonexistent headers
6914 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006916/* end confdefs.h. */
6917#include <ac_nonexistent.h>
6918_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006919if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006920 # Broken: success on invalid input.
6921continue
6922else
cristy3ed852e2009-09-05 21:47:34 +00006923 # Passes both tests.
6924ac_preproc_ok=:
6925break
6926fi
cristy3ed852e2009-09-05 21:47:34 +00006927rm -f conftest.err conftest.$ac_ext
6928
6929done
6930# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6931rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006932if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006933 break
6934fi
6935
6936 done
6937 ac_cv_prog_CPP=$CPP
6938
6939fi
6940 CPP=$ac_cv_prog_CPP
6941else
6942 ac_cv_prog_CPP=$CPP
6943fi
cristy8b350f62009-11-15 23:12:43 +00006944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006945$as_echo "$CPP" >&6; }
6946ac_preproc_ok=false
6947for ac_c_preproc_warn_flag in '' yes
6948do
6949 # Use a header file that comes with gcc, so configuring glibc
6950 # with a fresh cross-compiler works.
6951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6952 # <limits.h> exists even on freestanding compilers.
6953 # On the NeXT, cc -E runs the code through the compiler's parser,
6954 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006956/* end confdefs.h. */
6957#ifdef __STDC__
6958# include <limits.h>
6959#else
6960# include <assert.h>
6961#endif
6962 Syntax error
6963_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006964if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006965
cristy8b350f62009-11-15 23:12:43 +00006966else
cristy3ed852e2009-09-05 21:47:34 +00006967 # Broken: fails on valid input.
6968continue
6969fi
cristy3ed852e2009-09-05 21:47:34 +00006970rm -f conftest.err conftest.$ac_ext
6971
6972 # OK, works on sane cases. Now check whether nonexistent headers
6973 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006975/* end confdefs.h. */
6976#include <ac_nonexistent.h>
6977_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006978if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006979 # Broken: success on invalid input.
6980continue
6981else
cristy3ed852e2009-09-05 21:47:34 +00006982 # Passes both tests.
6983ac_preproc_ok=:
6984break
6985fi
cristy3ed852e2009-09-05 21:47:34 +00006986rm -f conftest.err conftest.$ac_ext
6987
6988done
6989# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6990rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006991if $ac_preproc_ok; then :
6992
cristy3ed852e2009-09-05 21:47:34 +00006993else
cristy8b350f62009-11-15 23:12:43 +00006994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00006996as_fn_error "C preprocessor \"$CPP\" fails sanity check
6997See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006998fi
6999
7000ac_ext=c
7001ac_cpp='$CPP $CPPFLAGS'
7002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004ac_compiler_gnu=$ac_cv_c_compiler_gnu
7005
cristy8b350f62009-11-15 23:12:43 +00007006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00007007$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007008if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007009 $as_echo_n "(cached) " >&6
7010else
7011 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7012 for ac_i in 1 2 3 4 5 6 7; do
7013 ac_script="$ac_script$as_nl$ac_script"
7014 done
7015 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00007016 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00007017 if test -z "$SED"; then
7018 ac_path_SED_found=false
7019 # Loop through the user's path and test for each of PROGNAME-LIST
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021for as_dir in $PATH
7022do
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007025 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00007026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7028 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7029# Check for GNU ac_path_SED and select it if it is found.
7030 # Check for GNU $ac_path_SED
7031case `"$ac_path_SED" --version 2>&1` in
7032*GNU*)
7033 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7034*)
7035 ac_count=0
7036 $as_echo_n 0123456789 >"conftest.in"
7037 while :
7038 do
7039 cat "conftest.in" "conftest.in" >"conftest.tmp"
7040 mv "conftest.tmp" "conftest.in"
7041 cp "conftest.in" "conftest.nl"
7042 $as_echo '' >> "conftest.nl"
7043 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007045 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007046 if test $ac_count -gt ${ac_path_SED_max-0}; then
7047 # Best one so far, save it but keep looking for a better one
7048 ac_cv_path_SED="$ac_path_SED"
7049 ac_path_SED_max=$ac_count
7050 fi
7051 # 10*(2^10) chars as input seems more than enough
7052 test $ac_count -gt 10 && break
7053 done
7054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7055esac
7056
7057 $ac_path_SED_found && break 3
7058 done
7059 done
cristy8b350f62009-11-15 23:12:43 +00007060 done
cristy3ed852e2009-09-05 21:47:34 +00007061IFS=$as_save_IFS
7062 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00007063 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007064 fi
7065else
7066 ac_cv_path_SED=$SED
7067fi
7068
7069fi
cristy8b350f62009-11-15 23:12:43 +00007070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007071$as_echo "$ac_cv_path_SED" >&6; }
7072 SED="$ac_cv_path_SED"
7073 rm -f conftest.sed
7074
7075test -z "$SED" && SED=sed
7076Xsed="$SED -e 1s/^X//"
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
cristy8b350f62009-11-15 23:12:43 +00007088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007089$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007090if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007091 $as_echo_n "(cached) " >&6
7092else
7093 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7094 then ac_cv_path_FGREP="$GREP -F"
7095 else
7096 if test -z "$FGREP"; then
7097 ac_path_FGREP_found=false
7098 # Loop through the user's path and test for each of PROGNAME-LIST
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7101do
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007104 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7107 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7108# Check for GNU ac_path_FGREP and select it if it is found.
7109 # Check for GNU $ac_path_FGREP
7110case `"$ac_path_FGREP" --version 2>&1` in
7111*GNU*)
7112 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7113*)
7114 ac_count=0
7115 $as_echo_n 0123456789 >"conftest.in"
7116 while :
7117 do
7118 cat "conftest.in" "conftest.in" >"conftest.tmp"
7119 mv "conftest.tmp" "conftest.in"
7120 cp "conftest.in" "conftest.nl"
7121 $as_echo 'FGREP' >> "conftest.nl"
7122 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007124 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007125 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7126 # Best one so far, save it but keep looking for a better one
7127 ac_cv_path_FGREP="$ac_path_FGREP"
7128 ac_path_FGREP_max=$ac_count
7129 fi
7130 # 10*(2^10) chars as input seems more than enough
7131 test $ac_count -gt 10 && break
7132 done
7133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7134esac
7135
7136 $ac_path_FGREP_found && break 3
7137 done
7138 done
cristy8b350f62009-11-15 23:12:43 +00007139 done
cristy3ed852e2009-09-05 21:47:34 +00007140IFS=$as_save_IFS
7141 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00007142 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007143 fi
7144else
7145 ac_cv_path_FGREP=$FGREP
7146fi
7147
7148 fi
7149fi
cristy8b350f62009-11-15 23:12:43 +00007150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007151$as_echo "$ac_cv_path_FGREP" >&6; }
7152 FGREP="$ac_cv_path_FGREP"
7153
7154
7155test -z "$GREP" && GREP=grep
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007176if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007177 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7178else
7179 with_gnu_ld=no
7180fi
7181
7182ac_prog=ld
7183if test "$GCC" = yes; then
7184 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007186$as_echo_n "checking for ld used by $CC... " >&6; }
7187 case $host in
7188 *-*-mingw*)
7189 # gcc leaves a trailing carriage return which upsets mingw
7190 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7191 *)
7192 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7193 esac
7194 case $ac_prog in
7195 # Accept absolute paths.
7196 [\\/]* | ?:[\\/]*)
7197 re_direlt='/[^/][^/]*/\.\./'
7198 # Canonicalize the pathname of ld
7199 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7200 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7201 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7202 done
7203 test -z "$LD" && LD="$ac_prog"
7204 ;;
7205 "")
7206 # If it fails, then pretend we aren't using GCC.
7207 ac_prog=ld
7208 ;;
7209 *)
7210 # If it is relative, then search for the first ld in PATH.
7211 with_gnu_ld=unknown
7212 ;;
7213 esac
7214elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007216$as_echo_n "checking for GNU ld... " >&6; }
7217else
cristy8b350f62009-11-15 23:12:43 +00007218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007219$as_echo_n "checking for non-GNU ld... " >&6; }
7220fi
cristy8b350f62009-11-15 23:12:43 +00007221if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007222 $as_echo_n "(cached) " >&6
7223else
7224 if test -z "$LD"; then
7225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7226 for ac_dir in $PATH; do
7227 IFS="$lt_save_ifs"
7228 test -z "$ac_dir" && ac_dir=.
7229 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7230 lt_cv_path_LD="$ac_dir/$ac_prog"
7231 # Check to see if the program is GNU ld. I'd rather use --version,
7232 # but apparently some variants of GNU ld only accept -v.
7233 # Break only if it was the GNU/non-GNU ld that we prefer.
7234 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7235 *GNU* | *'with BFD'*)
7236 test "$with_gnu_ld" != no && break
7237 ;;
7238 *)
7239 test "$with_gnu_ld" != yes && break
7240 ;;
7241 esac
7242 fi
7243 done
7244 IFS="$lt_save_ifs"
7245else
7246 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7247fi
7248fi
7249
7250LD="$lt_cv_path_LD"
7251if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007253$as_echo "$LD" >&6; }
7254else
cristy8b350f62009-11-15 23:12:43 +00007255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007256$as_echo "no" >&6; }
7257fi
cristy8b350f62009-11-15 23:12:43 +00007258test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007260$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007261if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007262 $as_echo_n "(cached) " >&6
7263else
7264 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7265case `$LD -v 2>&1 </dev/null` in
7266*GNU* | *'with BFD'*)
7267 lt_cv_prog_gnu_ld=yes
7268 ;;
7269*)
7270 lt_cv_prog_gnu_ld=no
7271 ;;
7272esac
7273fi
cristy8b350f62009-11-15 23:12:43 +00007274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007275$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7276with_gnu_ld=$lt_cv_prog_gnu_ld
7277
7278
7279
7280
7281
7282
7283
7284
7285
cristy3ed852e2009-09-05 21:47:34 +00007286
7287if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007289$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7290else
cristy8b350f62009-11-15 23:12:43 +00007291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007292$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7293fi
7294set dummy $CC; ac_cc=`$as_echo "$2" |
7295 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00007296if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007297 $as_echo_n "(cached) " >&6
7298else
cristy8b350f62009-11-15 23:12:43 +00007299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007300/* end confdefs.h. */
7301
7302int
7303main ()
7304{
7305
7306 ;
7307 return 0;
7308}
7309_ACEOF
7310# Make sure it works both with $CC and with simple cc.
7311# We do the test twice because some compilers refuse to overwrite an
7312# existing .o file with -o, though they will create one.
7313ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7314rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007315if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7317 *) ac_try_echo=$ac_try;;
7318esac
cristy8b350f62009-11-15 23:12:43 +00007319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7320$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007321 (eval "$ac_try") 2>&5
7322 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7324 test $ac_status = 0; } &&
7325 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327 *) ac_try_echo=$ac_try;;
7328esac
cristy8b350f62009-11-15 23:12:43 +00007329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7330$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007331 (eval "$ac_try") 2>&5
7332 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7334 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007335then
7336 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7337 if test "x$CC" != xcc; then
7338 # Test first that cc exists at all.
7339 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007340 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342 *) ac_try_echo=$ac_try;;
7343esac
cristy8b350f62009-11-15 23:12:43 +00007344eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7345$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007346 (eval "$ac_try") 2>&5
7347 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7349 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007350 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7351 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007352 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7355esac
cristy8b350f62009-11-15 23:12:43 +00007356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7357$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007358 (eval "$ac_try") 2>&5
7359 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7361 test $ac_status = 0; } &&
7362 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7365esac
cristy8b350f62009-11-15 23:12:43 +00007366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7367$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007368 (eval "$ac_try") 2>&5
7369 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7371 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007372 then
7373 # cc works too.
7374 :
7375 else
7376 # cc exists but doesn't like -o.
7377 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7378 fi
7379 fi
7380 fi
7381else
7382 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7383fi
7384rm -f core conftest*
7385
7386fi
7387if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007389$as_echo "yes" >&6; }
7390else
cristy8b350f62009-11-15 23:12:43 +00007391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007392$as_echo "no" >&6; }
7393
cristy8b350f62009-11-15 23:12:43 +00007394$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007395
7396fi
7397
7398# FIXME: we rely on the cache variable name because
7399# there is no other way.
7400set dummy $CC
7401am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7402eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7403if test "$am_t" != yes; then
7404 # Losing compiler, so override with the script.
7405 # FIXME: It is wrong to rewrite CC.
7406 # But if we don't then we get into trouble of one sort or another.
7407 # A longer-term fix would be to have automake use am__CC in this case,
7408 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7409 CC="$am_aux_dir/compile $CC"
7410fi
7411
7412
cristy3ed852e2009-09-05 21:47:34 +00007413
cristy8b350f62009-11-15 23:12:43 +00007414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007415$as_echo_n "checking maximum warning verbosity option... " >&6; }
7416
7417
7418
7419
7420# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00007421if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007422 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
7423else
7424 ac_compile_warnings_on=""
7425fi
7426
7427
7428 if test x"$ac_compile_warnings_on" = xno
7429 then
7430 ac_compile_warnings_msg=no
7431 else
7432 if test -n "$CXX"
7433 then
7434 if test "$GXX" = "yes"
7435 then
cristybcbeec82010-01-22 03:20:31 +00007436 ac_compile_warnings_opt='-Wall -W'
cristy3ed852e2009-09-05 21:47:34 +00007437 fi
7438 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
7439 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
7440 fi
7441
7442 if test -n "$CC"
7443 then
7444 if test "$GCC" = "yes"
7445 then
cristybcbeec82010-01-22 03:20:31 +00007446 ac_compile_warnings_opt='-Wall -W'
cristy3ed852e2009-09-05 21:47:34 +00007447 fi
7448 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
7449 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
7450 fi
7451 fi
cristy8b350f62009-11-15 23:12:43 +00007452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00007453$as_echo "$ac_compile_warnings_msg" >&6; }
7454 unset ac_compile_warnings_msg
7455 unset ac_compile_warnings_opt
7456
cristya0b81c32010-01-22 02:54:33 +00007457$ac_includes_default
7458
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7460$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7461set x ${MAKE-make}
7462ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7463if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7464 $as_echo_n "(cached) " >&6
7465else
7466 cat >conftest.make <<\_ACEOF
7467SHELL = /bin/sh
7468all:
7469 @echo '@@@%%%=$(MAKE)=@@@%%%'
7470_ACEOF
7471# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7472case `${MAKE-make} -f conftest.make 2>/dev/null` in
7473 *@@@%%%=?*=@@@%%%*)
7474 eval ac_cv_prog_make_${ac_make}_set=yes;;
7475 *)
7476 eval ac_cv_prog_make_${ac_make}_set=no;;
7477esac
7478rm -f conftest.make
7479fi
7480if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7482$as_echo "yes" >&6; }
7483 SET_MAKE=
7484else
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486$as_echo "no" >&6; }
7487 SET_MAKE="MAKE=${MAKE-make}"
7488fi
7489
cristy8b350f62009-11-15 23:12:43 +00007490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007491$as_echo_n "checking whether ln -s works... " >&6; }
7492LN_S=$as_ln_s
7493if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007495$as_echo "yes" >&6; }
7496else
cristy8b350f62009-11-15 23:12:43 +00007497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007498$as_echo "no, using $LN_S" >&6; }
7499fi
7500
cristy8b350f62009-11-15 23:12:43 +00007501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007502$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7503
7504# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007505if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007506 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007508$as_echo "yes" >&6; }
7509
cristy8b350f62009-11-15 23:12:43 +00007510$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007511
7512 LIBS="$LIBS -ldmalloc"
7513 LDFLAGS="$LDFLAGS -g"
7514else
cristy8b350f62009-11-15 23:12:43 +00007515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007516$as_echo "no" >&6; }
7517fi
7518else
cristy8b350f62009-11-15 23:12:43 +00007519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007520$as_echo "no" >&6; }
7521fi
7522
7523
7524
7525
7526if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7527 if test -n "$ac_tool_prefix"; then
7528 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7529set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007531$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007532if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007533 $as_echo_n "(cached) " >&6
7534else
7535 case $PKG_CONFIG in
7536 [\\/]* | ?:[\\/]*)
7537 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7538 ;;
7539 *)
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541for as_dir in $PATH
7542do
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7547 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007549 break 2
7550 fi
7551done
cristy8b350f62009-11-15 23:12:43 +00007552 done
cristy3ed852e2009-09-05 21:47:34 +00007553IFS=$as_save_IFS
7554
7555 ;;
7556esac
7557fi
7558PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7559if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007561$as_echo "$PKG_CONFIG" >&6; }
7562else
cristy8b350f62009-11-15 23:12:43 +00007563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007564$as_echo "no" >&6; }
7565fi
7566
7567
7568fi
7569if test -z "$ac_cv_path_PKG_CONFIG"; then
7570 ac_pt_PKG_CONFIG=$PKG_CONFIG
7571 # Extract the first word of "pkg-config", so it can be a program name with args.
7572set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007574$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007575if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007576 $as_echo_n "(cached) " >&6
7577else
7578 case $ac_pt_PKG_CONFIG in
7579 [\\/]* | ?:[\\/]*)
7580 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7581 ;;
7582 *)
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007588 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007592 break 2
7593 fi
7594done
cristy8b350f62009-11-15 23:12:43 +00007595 done
cristy3ed852e2009-09-05 21:47:34 +00007596IFS=$as_save_IFS
7597
7598 ;;
7599esac
7600fi
7601ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7602if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007604$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7605else
cristy8b350f62009-11-15 23:12:43 +00007606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007607$as_echo "no" >&6; }
7608fi
7609
7610 if test "x$ac_pt_PKG_CONFIG" = x; then
7611 PKG_CONFIG=""
7612 else
7613 case $cross_compiling:$ac_tool_warned in
7614yes:)
cristy8b350f62009-11-15 23:12:43 +00007615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7617ac_tool_warned=yes ;;
7618esac
7619 PKG_CONFIG=$ac_pt_PKG_CONFIG
7620 fi
7621else
7622 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7623fi
7624
7625fi
7626if test -n "$PKG_CONFIG"; then
7627 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007629$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7630 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007632$as_echo "yes" >&6; }
7633 else
cristy8b350f62009-11-15 23:12:43 +00007634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007635$as_echo "no" >&6; }
7636 PKG_CONFIG=""
7637 fi
7638
7639fi
7640
7641#
cristy3ed852e2009-09-05 21:47:34 +00007642# Enable run-time checking.
7643#
7644# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007645if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007646 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7647else
7648 enable_bounds_checking='no'
7649fi
7650
7651
7652if test "$enable_bounds_checking" = yes; then
7653
cristy8b350f62009-11-15 23:12:43 +00007654$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007655
7656fi
7657
7658#
7659# Tests for Windows
7660#
7661
7662
7663
7664GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007665native_win32_build='no'
7666cygwin_build='no'
7667case "${host_os}" in
7668 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007669 cygwin_build='yes'
7670 GDI32_LIBS='-lgdi32'
7671 ;;
7672 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007673 native_win32_build='yes'
7674 GDI32_LIBS='-lgdi32'
7675 ;;
7676esac
7677if test "${GDI32_LIBS}x" != 'x'; then
7678
cristy8b350f62009-11-15 23:12:43 +00007679$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007680
7681fi
7682
7683 if test "${GDI32_LIBS}x" != 'x' ; then
7684 WINGDI32_DELEGATE_TRUE=
7685 WINGDI32_DELEGATE_FALSE='#'
7686else
7687 WINGDI32_DELEGATE_TRUE='#'
7688 WINGDI32_DELEGATE_FALSE=
7689fi
7690
7691 if test "${native_win32_build}" = 'yes' ; then
7692 WIN32_NATIVE_BUILD_TRUE=
7693 WIN32_NATIVE_BUILD_FALSE='#'
7694else
7695 WIN32_NATIVE_BUILD_TRUE='#'
7696 WIN32_NATIVE_BUILD_FALSE=
7697fi
7698
7699 if test "${cygwin_build}" = 'yes' ; then
7700 CYGWIN_BUILD_TRUE=
7701 CYGWIN_BUILD_FALSE='#'
7702else
7703 CYGWIN_BUILD_TRUE='#'
7704 CYGWIN_BUILD_FALSE=
7705fi
7706
7707 if test "x${CC}" = 'xcl.exe' ; then
7708 USING_CL_TRUE=
7709 USING_CL_FALSE='#'
7710else
7711 USING_CL_TRUE='#'
7712 USING_CL_FALSE=
7713fi
7714
7715
7716WinPathScript="${srcdirfull}/winpath.sh"
7717
7718
7719#
7720# Compiler flags tweaks
7721#
7722if test "${GCC}" != "yes"; then
7723 case "${host}" in
7724 *-*-hpux* )
7725 # aCC: HP ANSI C++ B3910B A.03.34
7726 CFLAGS="${CFLAGS} -Wp,-H30000"
7727 if test -n "${CXXFLAGS}"; then
7728 CXXFLAGS='-AA'
7729 else
7730 CXXFLAGS="${CXXFLAGS} -AA"
7731 fi
7732 ;;
7733 *-dec-osf5.* )
7734 # Compaq alphaev68-dec-osf5.1 compiler
7735 if test -n "${CXXFLAGS}"; then
7736 CXXFLAGS='-std strict_ansi -noimplicit_include'
7737 else
7738 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7739 fi
7740 esac
7741fi
7742
7743# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00007744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007745$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007746if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007747 $as_echo_n "(cached) " >&6
7748else
7749
7750im_cv_ld_lazyload='none'
7751case "${host}" in
7752 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7753 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7754 im_cv_ld_lazyload='-Wl,-zlazyload'
7755 fi
7756 ;;
7757esac
7758
7759fi
cristy8b350f62009-11-15 23:12:43 +00007760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00007761$as_echo "$im_cv_ld_lazyload" >&6; }
7762if test "${im_cv_ld_lazyload}" != 'none' ; then
7763 if test -z "${LDFLAGS}" ; then
7764 LDFLAGS="${im_cv_ld_lazyload}"
7765 else
7766 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7767 fi
7768fi
7769
7770case "$host" in
7771*darwin* | *-macos10*)
7772 if test -d /opt/local ; then
7773 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7774 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7775 elif test -d /sw ; then
7776 CPPFLAGS="$CPPFLAGS -I/sw/include"
7777 LDFLAGS="$LDFLAGS -L/sw/lib"
7778 fi
7779 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00007780if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007781 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7782else
7783 build_osxuniversal=no
7784fi
7785
7786
7787 if test "${build_osxuniversal}" != no ; then
7788 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00007789 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00007790Please re-run configure with these options:
7791 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00007792 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007793 fi
7794 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7795 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7796 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7797 fi
7798 ;;
7799esac
7800
7801# Enable support for threads
7802
7803# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00007804if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007805 withval=$with_threads; with_threads=$withval
7806else
7807 with_threads='yes'
7808fi
7809
7810
7811have_threads=no
7812if test "$with_threads" != 'no'; then
7813
7814
7815
7816ac_ext=c
7817ac_cpp='$CPP $CPPFLAGS'
7818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821
7822acx_pthread_ok=no
7823
7824# We used to check for pthread.h first, but this fails if pthread.h
7825# requires special compiler flags (e.g. on True64 or Sequent).
7826# It gets checked for in the link test anyway.
7827
7828# First of all, check if the user has set any of the PTHREAD_LIBS,
7829# etcetera environment variables, and if threads linking works using
7830# them:
7831if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7832 save_CFLAGS="$CFLAGS"
7833 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7834 save_LIBS="$LIBS"
7835 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00007836 { $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 +00007837$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007839/* end confdefs.h. */
7840
7841/* Override any GCC internal prototype to avoid an error.
7842 Use char because int might match the return type of a GCC
7843 builtin and then its argument prototype would still apply. */
7844#ifdef __cplusplus
7845extern "C"
7846#endif
7847char pthread_join ();
7848int
7849main ()
7850{
7851return pthread_join ();
7852 ;
7853 return 0;
7854}
7855_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007856if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007857 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007858fi
cristy8b350f62009-11-15 23:12:43 +00007859rm -f core conftest.err conftest.$ac_objext \
7860 conftest$ac_exeext conftest.$ac_ext
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007862$as_echo "$acx_pthread_ok" >&6; }
7863 if test x"$acx_pthread_ok" = xno; then
7864 PTHREAD_LIBS=""
7865 PTHREAD_CFLAGS=""
7866 fi
7867 LIBS="$save_LIBS"
7868 CFLAGS="$save_CFLAGS"
7869fi
7870
7871# We must check for the threads library under a number of different
7872# names; the ordering is very important because some systems
7873# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7874# libraries is broken (non-POSIX).
7875
7876# Create a list of thread flags to try. Items starting with a "-" are
7877# C compiler flags, and other items are library names, except for "none"
7878# which indicates that we try without any flags at all, and "pthread-config"
7879# which is a program returning the flags for the Pth emulation library.
7880
7881acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7882
7883# The ordering *is* (sometimes) important. Some notes on the
7884# individual items follow:
7885
7886# pthreads: AIX (must check this before -lpthread)
7887# none: in case threads are in libc; should be tried before -Kthread and
7888# other compiler flags to prevent continual compiler warnings
7889# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7890# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7891# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7892# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7893# -pthreads: Solaris/gcc
7894# -mthreads: Mingw32/gcc, Lynx/gcc
7895# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7896# doesn't hurt to check since this sometimes defines pthreads too;
7897# also defines -D_REENTRANT)
7898# ... -mt is also the pthreads flag for HP/aCC
7899# pthread: Linux, etcetera
7900# --thread-safe: KAI C++
7901# pthread-config: use pthread-config program (for GNU Pth library)
7902
7903case "${host_cpu}-${host_os}" in
7904 *solaris*)
7905
7906 # On Solaris (at least, for some versions), libc contains stubbed
7907 # (non-functional) versions of the pthreads routines, so link-based
7908 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7909 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7910 # a function called by this macro, so we could check for that, but
7911 # who knows whether they'll stub that too in a future libc.) So,
7912 # we'll just look for -pthreads and -lpthread first:
7913
7914 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7915 ;;
cristy3ed852e2009-09-05 21:47:34 +00007916esac
7917
7918if test x"$acx_pthread_ok" = xno; then
7919for flag in $acx_pthread_flags; do
7920
7921 case $flag in
7922 none)
cristy8b350f62009-11-15 23:12:43 +00007923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00007924$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7925 ;;
7926
7927 -*)
cristy8b350f62009-11-15 23:12:43 +00007928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007929$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7930 PTHREAD_CFLAGS="$flag"
7931 ;;
7932
7933 pthread-config)
7934 # Extract the first word of "pthread-config", so it can be a program name with args.
7935set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007937$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007938if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007939 $as_echo_n "(cached) " >&6
7940else
7941 if test -n "$acx_pthread_config"; then
7942 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7943else
7944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945for as_dir in $PATH
7946do
7947 IFS=$as_save_IFS
7948 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7951 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00007952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007953 break 2
7954 fi
7955done
cristy8b350f62009-11-15 23:12:43 +00007956 done
cristy3ed852e2009-09-05 21:47:34 +00007957IFS=$as_save_IFS
7958
7959 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7960fi
7961fi
7962acx_pthread_config=$ac_cv_prog_acx_pthread_config
7963if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00007964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00007965$as_echo "$acx_pthread_config" >&6; }
7966else
cristy8b350f62009-11-15 23:12:43 +00007967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007968$as_echo "no" >&6; }
7969fi
7970
7971
7972 if test x"$acx_pthread_config" = xno; then continue; fi
7973 PTHREAD_CFLAGS="`pthread-config --cflags`"
7974 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7975 ;;
7976
7977 *)
cristy8b350f62009-11-15 23:12:43 +00007978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007979$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7980 PTHREAD_LIBS="-l$flag"
7981 ;;
7982 esac
7983
7984 save_LIBS="$LIBS"
7985 save_CFLAGS="$CFLAGS"
7986 LIBS="$PTHREAD_LIBS $LIBS"
7987 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7988
7989 # Check for various functions. We must include pthread.h,
7990 # since some functions may be macros. (On the Sequent, we
7991 # need a special flag -Kthread to make this header compile.)
7992 # We check for pthread_join because it is in -lpthread on IRIX
7993 # while pthread_create is in libc. We check for pthread_attr_init
7994 # due to DEC craziness with -lpthreads. We check for
7995 # pthread_cleanup_push because it is one of the few pthread
7996 # functions on Solaris that doesn't have a non-functional libc stub.
7997 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00007998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007999/* end confdefs.h. */
8000#include <pthread.h>
8001int
8002main ()
8003{
8004pthread_t th; pthread_join(th, 0);
8005 pthread_attr_init(0); pthread_cleanup_push(0, 0);
8006 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
8007 ;
8008 return 0;
8009}
8010_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008011if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008012 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008013fi
cristy8b350f62009-11-15 23:12:43 +00008014rm -f core conftest.err conftest.$ac_objext \
8015 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008016
8017 LIBS="$save_LIBS"
8018 CFLAGS="$save_CFLAGS"
8019
cristy8b350f62009-11-15 23:12:43 +00008020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00008021$as_echo "$acx_pthread_ok" >&6; }
8022 if test "x$acx_pthread_ok" = xyes; then
8023 break;
8024 fi
8025
8026 PTHREAD_LIBS=""
8027 PTHREAD_CFLAGS=""
8028done
8029fi
8030
8031# Various other checks:
8032if test "x$acx_pthread_ok" = xyes; then
8033 save_LIBS="$LIBS"
8034 LIBS="$PTHREAD_LIBS $LIBS"
8035 save_CFLAGS="$CFLAGS"
8036 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8037
8038 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008040$as_echo_n "checking for joinable pthread attribute... " >&6; }
8041 attr_name=unknown
8042 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008044/* end confdefs.h. */
8045#include <pthread.h>
8046int
8047main ()
8048{
8049int attr=$attr; return attr;
8050 ;
8051 return 0;
8052}
8053_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008054if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008055 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008056fi
cristy8b350f62009-11-15 23:12:43 +00008057rm -f core conftest.err conftest.$ac_objext \
8058 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008059 done
cristy8b350f62009-11-15 23:12:43 +00008060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008061$as_echo "$attr_name" >&6; }
8062 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8063
8064cat >>confdefs.h <<_ACEOF
8065#define PTHREAD_CREATE_JOINABLE $attr_name
8066_ACEOF
8067
8068 fi
8069
cristy8b350f62009-11-15 23:12:43 +00008070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008071$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8072 flag=no
8073 case "${host_cpu}-${host_os}" in
8074 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8075 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8076 esac
cristy8b350f62009-11-15 23:12:43 +00008077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008078$as_echo "${flag}" >&6; }
8079 if test "x$flag" != xno; then
8080 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8081 fi
8082
8083 LIBS="$save_LIBS"
8084 CFLAGS="$save_CFLAGS"
8085
8086 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008087 if test x"$GCC" != xyes; then
8088 for ac_prog in xlc_r cc_r
8089do
8090 # Extract the first word of "$ac_prog", so it can be a program name with args.
8091set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008093$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008094if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008095 $as_echo_n "(cached) " >&6
8096else
8097 if test -n "$PTHREAD_CC"; then
8098 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8099else
8100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101for as_dir in $PATH
8102do
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008105 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008106 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 +00008107 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008109 break 2
8110 fi
8111done
cristy8b350f62009-11-15 23:12:43 +00008112 done
cristy3ed852e2009-09-05 21:47:34 +00008113IFS=$as_save_IFS
8114
cristy3ed852e2009-09-05 21:47:34 +00008115fi
8116fi
8117PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8118if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008120$as_echo "$PTHREAD_CC" >&6; }
8121else
cristy8b350f62009-11-15 23:12:43 +00008122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008123$as_echo "no" >&6; }
8124fi
8125
cristy736173a2009-09-20 21:18:22 +00008126
8127 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008128done
cristy736173a2009-09-20 21:18:22 +00008129test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008130
cristy736173a2009-09-20 21:18:22 +00008131 else
8132 PTHREAD_CC=$CC
8133 fi
cristy3ed852e2009-09-05 21:47:34 +00008134else
cristy736173a2009-09-20 21:18:22 +00008135 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008136fi
8137
cristy3ed852e2009-09-05 21:47:34 +00008138
8139
8140
8141
8142# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8143if test x"$acx_pthread_ok" = xyes; then
8144
cristy8b350f62009-11-15 23:12:43 +00008145$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008146
8147 :
8148else
8149 acx_pthread_ok=no
8150
8151fi
8152ac_ext=c
8153ac_cpp='$CPP $CPPFLAGS'
8154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157
8158
8159 if test "$acx_pthread_ok" = yes; then
8160 have_threads=yes
8161 DEF_THREAD="$PTHREAD_CFLAGS"
8162 CFLAGS="$CFLAGS $DEF_THREAD"
8163 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8164 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008165 { $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 +00008166$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8167 CC="$PTHREAD_CC"
8168 fi
8169 fi
8170fi
8171
8172# Enable support for OpenMP
8173if test "$have_threads" != 'yes'; then
8174 ac_cv_prog_c_openmp=unsupported
8175fi
8176
8177 OPENMP_CFLAGS=
8178 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008179if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008180 enableval=$enable_openmp;
8181fi
8182
8183 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008185$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008186if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008187 $as_echo_n "(cached) " >&6
8188else
cristy8b350f62009-11-15 23:12:43 +00008189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008191
8192#ifndef _OPENMP
8193 choke me
8194#endif
8195#include <omp.h>
8196int main () { return omp_get_num_threads (); }
8197
8198_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008199if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008200 ac_cv_prog_c_openmp='none needed'
8201else
cristy8b350f62009-11-15 23:12:43 +00008202 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008203 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8204 ac_save_CFLAGS=$CFLAGS
8205 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008208
8209#ifndef _OPENMP
8210 choke me
8211#endif
8212#include <omp.h>
8213int main () { return omp_get_num_threads (); }
8214
8215_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008216if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008217 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008218fi
cristy8b350f62009-11-15 23:12:43 +00008219rm -f core conftest.err conftest.$ac_objext \
8220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008221 CFLAGS=$ac_save_CFLAGS
8222 if test "$ac_cv_prog_c_openmp" != unsupported; then
8223 break
8224 fi
8225 done
8226fi
cristy8b350f62009-11-15 23:12:43 +00008227rm -f core conftest.err conftest.$ac_objext \
8228 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008229fi
cristy8b350f62009-11-15 23:12:43 +00008230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008231$as_echo "$ac_cv_prog_c_openmp" >&6; }
8232 case $ac_cv_prog_c_openmp in #(
8233 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008234 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008235 *)
cristy8b350f62009-11-15 23:12:43 +00008236 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008237 esac
8238 fi
8239
8240
8241CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8242MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8243
8244
cristy736173a2009-09-20 21:18:22 +00008245# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008246
cristy43596fe2010-01-21 16:46:08 +00008247# Check whether --enable-opencl was given.
8248if test "${enable_opencl+set}" = set; then :
8249 enableval=$enable_opencl; disable_opencl=$enableval
8250else
8251 disable_opencl='yes'
8252fi
8253
8254
8255if test "$disable_opencl" = 'yes'; then
8256 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008257ac_cpp='$CPP $CPPFLAGS'
8258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8260ac_compiler_gnu=$ac_cv_c_compiler_gnu
8261
cristy43596fe2010-01-21 16:46:08 +00008262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008263$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008264if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008265 $as_echo_n "(cached) " >&6
8266else
cristy8b350f62009-11-15 23:12:43 +00008267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008268/* end confdefs.h. */
8269
8270int
8271main ()
8272{
8273#ifndef _MSC_VER
8274 choke me
8275#endif
8276
8277 ;
8278 return 0;
8279}
8280_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008281if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008282 ax_compiler_ms=yes
8283else
cristy8b350f62009-11-15 23:12:43 +00008284 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008285fi
cristy736173a2009-09-20 21:18:22 +00008286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287ax_cv_c_compiler_ms=$ax_compiler_ms
8288
8289fi
cristy8b350f62009-11-15 23:12:43 +00008290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008291$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008292 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008293 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8294fi
8295
cristy43596fe2010-01-21 16:46:08 +00008296 ax_save_CPPFLAGS=$CPPFLAGS
8297 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8298 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008299do :
8300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8301ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8302eval as_val=\$$as_ac_Header
8303 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008304 cat >>confdefs.h <<_ACEOF
8305#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8306_ACEOF
8307
8308fi
8309
8310done
8311
cristy43596fe2010-01-21 16:46:08 +00008312 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008313
cristy43596fe2010-01-21 16:46:08 +00008314 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008315do :
8316 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8317if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008318 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008319#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008320_ACEOF
8321
8322fi
8323
8324done
8325
8326
8327
8328
cristy43596fe2010-01-21 16:46:08 +00008329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008330$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008331if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008332 $as_echo_n "(cached) " >&6
8333else
8334 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008335 case $host_cpu in
8336 x86_64) ax_check_cl_libdir=lib64 ;;
8337 *) ax_check_cl_libdir=lib ;;
8338 esac
8339 ax_save_CPPFLAGS=$CPPFLAGS
8340 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8341 ax_save_LIBS=$LIBS
8342 LIBS=""
8343 ax_check_libs="-lOpenCL -lCL -lclparser"
8344 for ax_lib in $ax_check_libs; do
8345 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008346 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8347else
8348 ax_try_lib=$ax_lib
8349fi
cristy43596fe2010-01-21 16:46:08 +00008350 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008352/* end confdefs.h. */
8353
cristy43596fe2010-01-21 16:46:08 +00008354 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8355 # include <windows.h>
8356 # endif
8357 # ifdef HAVE_CL_CL_H
8358 # include <CL/cl.h>
8359 # elif defined(HAVE_OPENCL_CL_H)
8360 # include <OpenCL/cl.h>
8361 # else
8362 # error no CL.h
8363 # endif
cristy736173a2009-09-20 21:18:22 +00008364int
8365main ()
8366{
cristyc7083c12009-10-14 03:16:55 +00008367clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008368 ;
8369 return 0;
8370}
8371_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008372if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008373 ax_cv_check_cl_libcl=$ax_try_lib; break
8374else
cristy8b350f62009-11-15 23:12:43 +00008375 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"
cristy43596fe2010-01-21 16:46:08 +00008376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008377/* end confdefs.h. */
8378
cristy43596fe2010-01-21 16:46:08 +00008379 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8380 # include <windows.h>
8381 # endif
8382 # ifdef HAVE_CL_CL_H
8383 # include <CL/cl.h>
8384 # elif defined(HAVE_OPENCL_CL_H)
8385 # include <OpenCL/cl.h>
8386 # else
8387 # error no CL.h
8388 # endif
cristy736173a2009-09-20 21:18:22 +00008389int
8390main ()
8391{
cristyc7083c12009-10-14 03:16:55 +00008392clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008393 ;
8394 return 0;
8395}
8396_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008397if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008398 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
8399else
cristy4dc44432009-12-30 23:30:06 +00008400 ax_check_cl_dylib_flag='-framework OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
cristy43596fe2010-01-21 16:46:08 +00008401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008402/* end confdefs.h. */
8403
cristy43596fe2010-01-21 16:46:08 +00008404 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8405 # include <windows.h>
8406 # endif
8407 # ifdef HAVE_CL_CL_H
8408 # include <CL/cl.h>
8409 # elif defined(HAVE_OPENCL_CL_H)
8410 # include <OpenCL/cl.h>
8411 # else
8412 # error no CL.h
8413 # endif
cristy736173a2009-09-20 21:18:22 +00008414int
8415main ()
8416{
cristyc7083c12009-10-14 03:16:55 +00008417clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008418 ;
8419 return 0;
8420}
8421_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008422if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008423 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00008424fi
cristy8b350f62009-11-15 23:12:43 +00008425rm -f core conftest.err conftest.$ac_objext \
8426 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008427fi
cristy8b350f62009-11-15 23:12:43 +00008428rm -f core conftest.err conftest.$ac_objext \
8429 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008430fi
cristy8b350f62009-11-15 23:12:43 +00008431rm -f core conftest.err conftest.$ac_objext \
8432 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00008433 done
cristy736173a2009-09-20 21:18:22 +00008434
cristy43596fe2010-01-21 16:46:08 +00008435 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008436 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00008437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008438/* end confdefs.h. */
8439
cristy43596fe2010-01-21 16:46:08 +00008440 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8441 # include <windows.h>
8442 # endif
8443 # ifdef HAVE_CL_CL_H
8444 # include <CL/cl.h>
8445 # elif defined(HAVE_OPENCL_CL_H)
8446 # include <OpenCL/cl.h>
8447 # else
8448 # error no CL.h
8449 # endif
cristy736173a2009-09-20 21:18:22 +00008450int
8451main ()
8452{
cristyc7083c12009-10-14 03:16:55 +00008453clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008454 ;
8455 return 0;
8456}
8457_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008458if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008459 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00008460fi
cristy8b350f62009-11-15 23:12:43 +00008461rm -f core conftest.err conftest.$ac_objext \
8462 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008463fi
8464
cristy43596fe2010-01-21 16:46:08 +00008465 LIBS=$ax_save_LIBS
8466 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008467fi
cristy8b350f62009-11-15 23:12:43 +00008468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00008469$as_echo "$ax_cv_check_cl_libcl" >&6; }
8470
cristy43596fe2010-01-21 16:46:08 +00008471 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008472 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
8473else
cristy99cc3002010-01-21 14:50:11 +00008474 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
8475$as_echo "#define _OPENCL 1" >>confdefs.h
8476
cristy736173a2009-09-20 21:18:22 +00008477fi
cristy43596fe2010-01-21 16:46:08 +00008478 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008479ac_cpp='$CPP $CPPFLAGS'
8480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8482ac_compiler_gnu=$ac_cv_c_compiler_gnu
8483
cristy43596fe2010-01-21 16:46:08 +00008484fi
cristy736173a2009-09-20 21:18:22 +00008485
8486
8487
8488
cristyc7083c12009-10-14 03:16:55 +00008489CFLAGS="$CL_CFLAGS $CFLAGS"
8490LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00008491
cristy2e8b51d2009-10-17 18:26:15 +00008492
cristy3ed852e2009-09-05 21:47:34 +00008493########
8494#
8495# Check for large file support
8496#
8497########
8498# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00008499if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008500 enableval=$enable_largefile;
8501fi
8502
8503if test "$enable_largefile" != no; then
8504
cristy8b350f62009-11-15 23:12:43 +00008505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008506$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008507if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008508 $as_echo_n "(cached) " >&6
8509else
8510 ac_cv_sys_largefile_CC=no
8511 if test "$GCC" != yes; then
8512 ac_save_CC=$CC
8513 while :; do
8514 # IRIX 6.2 and later do not support large files by default,
8515 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00008516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008517/* end confdefs.h. */
8518#include <sys/types.h>
8519 /* Check that off_t can represent 2**63 - 1 correctly.
8520 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8521 since some C++ compilers masquerading as C compilers
8522 incorrectly reject 9223372036854775807. */
8523#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8524 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8525 && LARGE_OFF_T % 2147483647 == 1)
8526 ? 1 : -1];
8527int
8528main ()
8529{
8530
8531 ;
8532 return 0;
8533}
8534_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008535 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008536 break
cristy3ed852e2009-09-05 21:47:34 +00008537fi
cristy3ed852e2009-09-05 21:47:34 +00008538rm -f core conftest.err conftest.$ac_objext
8539 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00008540 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008541 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00008542fi
cristy3ed852e2009-09-05 21:47:34 +00008543rm -f core conftest.err conftest.$ac_objext
8544 break
8545 done
8546 CC=$ac_save_CC
8547 rm -f conftest.$ac_ext
8548 fi
8549fi
cristy8b350f62009-11-15 23:12:43 +00008550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008551$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8552 if test "$ac_cv_sys_largefile_CC" != no; then
8553 CC=$CC$ac_cv_sys_largefile_CC
8554 fi
8555
cristy8b350f62009-11-15 23:12:43 +00008556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008557$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008558if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008559 $as_echo_n "(cached) " >&6
8560else
8561 while :; do
cristy8b350f62009-11-15 23:12:43 +00008562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008563/* end confdefs.h. */
8564#include <sys/types.h>
8565 /* Check that off_t can represent 2**63 - 1 correctly.
8566 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8567 since some C++ compilers masquerading as C compilers
8568 incorrectly reject 9223372036854775807. */
8569#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8570 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8571 && LARGE_OFF_T % 2147483647 == 1)
8572 ? 1 : -1];
8573int
8574main ()
8575{
8576
8577 ;
8578 return 0;
8579}
8580_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008581if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008582 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00008583fi
cristy3ed852e2009-09-05 21:47:34 +00008584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00008585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008586/* end confdefs.h. */
8587#define _FILE_OFFSET_BITS 64
8588#include <sys/types.h>
8589 /* Check that off_t can represent 2**63 - 1 correctly.
8590 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8591 since some C++ compilers masquerading as C compilers
8592 incorrectly reject 9223372036854775807. */
8593#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8594 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8595 && LARGE_OFF_T % 2147483647 == 1)
8596 ? 1 : -1];
8597int
8598main ()
8599{
8600
8601 ;
8602 return 0;
8603}
8604_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008605if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008606 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00008607fi
cristy3ed852e2009-09-05 21:47:34 +00008608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 ac_cv_sys_file_offset_bits=unknown
8610 break
8611done
8612fi
cristy8b350f62009-11-15 23:12:43 +00008613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00008614$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8615case $ac_cv_sys_file_offset_bits in #(
8616 no | unknown) ;;
8617 *)
8618cat >>confdefs.h <<_ACEOF
8619#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8620_ACEOF
8621;;
8622esac
8623rm -rf conftest*
8624 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00008625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008626$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008627if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008628 $as_echo_n "(cached) " >&6
8629else
8630 while :; do
cristy8b350f62009-11-15 23:12:43 +00008631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008632/* end confdefs.h. */
8633#include <sys/types.h>
8634 /* Check that off_t can represent 2**63 - 1 correctly.
8635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8636 since some C++ compilers masquerading as C compilers
8637 incorrectly reject 9223372036854775807. */
8638#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8640 && LARGE_OFF_T % 2147483647 == 1)
8641 ? 1 : -1];
8642int
8643main ()
8644{
8645
8646 ;
8647 return 0;
8648}
8649_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008650if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008651 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00008652fi
cristy3ed852e2009-09-05 21:47:34 +00008653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00008654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008655/* end confdefs.h. */
8656#define _LARGE_FILES 1
8657#include <sys/types.h>
8658 /* Check that off_t can represent 2**63 - 1 correctly.
8659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8660 since some C++ compilers masquerading as C compilers
8661 incorrectly reject 9223372036854775807. */
8662#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8664 && LARGE_OFF_T % 2147483647 == 1)
8665 ? 1 : -1];
8666int
8667main ()
8668{
8669
8670 ;
8671 return 0;
8672}
8673_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008674if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008675 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00008676fi
cristy3ed852e2009-09-05 21:47:34 +00008677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 ac_cv_sys_large_files=unknown
8679 break
8680done
8681fi
cristy8b350f62009-11-15 23:12:43 +00008682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008683$as_echo "$ac_cv_sys_large_files" >&6; }
8684case $ac_cv_sys_large_files in #(
8685 no | unknown) ;;
8686 *)
8687cat >>confdefs.h <<_ACEOF
8688#define _LARGE_FILES $ac_cv_sys_large_files
8689_ACEOF
8690;;
8691esac
8692rm -rf conftest*
8693 fi
8694fi
8695
cristy8b350f62009-11-15 23:12:43 +00008696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008697$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008698if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008699 $as_echo_n "(cached) " >&6
8700else
8701 while :; do
cristy8b350f62009-11-15 23:12:43 +00008702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008703/* end confdefs.h. */
8704#include <sys/types.h> /* for off_t */
8705 #include <stdio.h>
8706int
8707main ()
8708{
8709int (*fp) (FILE *, off_t, int) = fseeko;
8710 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8711 ;
8712 return 0;
8713}
8714_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008715if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008716 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00008717fi
cristy8b350f62009-11-15 23:12:43 +00008718rm -f core conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008721/* end confdefs.h. */
8722#define _LARGEFILE_SOURCE 1
8723#include <sys/types.h> /* for off_t */
8724 #include <stdio.h>
8725int
8726main ()
8727{
8728int (*fp) (FILE *, off_t, int) = fseeko;
8729 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8730 ;
8731 return 0;
8732}
8733_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008734if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008735 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00008736fi
cristy8b350f62009-11-15 23:12:43 +00008737rm -f core conftest.err conftest.$ac_objext \
8738 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008739 ac_cv_sys_largefile_source=unknown
8740 break
8741done
8742fi
cristy8b350f62009-11-15 23:12:43 +00008743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00008744$as_echo "$ac_cv_sys_largefile_source" >&6; }
8745case $ac_cv_sys_largefile_source in #(
8746 no | unknown) ;;
8747 *)
8748cat >>confdefs.h <<_ACEOF
8749#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8750_ACEOF
8751;;
8752esac
8753rm -rf conftest*
8754
8755# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8756# in glibc 2.1.3, but that breaks too many other things.
8757# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8758if test $ac_cv_sys_largefile_source != unknown; then
8759
cristy8b350f62009-11-15 23:12:43 +00008760$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008761
8762fi
8763
8764LFS_CPPFLAGS=''
8765if test "$enable_largefile" != no; then
8766 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8767 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8768 else
cristy8b350f62009-11-15 23:12:43 +00008769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00008770$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008771 if test "$cross_compiling" = yes; then :
8772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00008774as_fn_error "cannot run test program while cross compiling
8775See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00008776else
cristy8b350f62009-11-15 23:12:43 +00008777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008779#include <unistd.h>
8780 main () {
8781 exit(!(sizeof(off_t) == 8));
8782 }
8783_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008784if ac_fn_c_try_run "$LINENO"; then :
8785 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008786
cristy8b350f62009-11-15 23:12:43 +00008787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008788$as_echo "yes" >&6; }
8789else
cristy8b350f62009-11-15 23:12:43 +00008790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008791$as_echo "no" >&6; }
8792fi
cristy8b350f62009-11-15 23:12:43 +00008793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8794 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008795fi
8796
cristy3ed852e2009-09-05 21:47:34 +00008797 fi
8798 if test "$ac_cv_sys_large_files" != 'no'; then
8799 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8800 fi
8801 if test "$ac_cv_sys_largefile_source" != 'no'; then
8802 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8803 fi
8804fi
8805
8806
8807#
8808# Configure libtool & libltdl
8809#
8810# Configure libtool
8811enable_dlopen=yes
8812
8813
8814
8815case `pwd` in
8816 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00008817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00008818$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8819esac
8820
8821
8822
cristy18304f92009-11-22 15:48:26 +00008823macro_version='2.2.6b'
8824macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00008825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838ltmain="$ac_aux_dir/ltmain.sh"
8839
cristy8b350f62009-11-15 23:12:43 +00008840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00008841$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008842if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008843 $as_echo_n "(cached) " >&6
8844else
8845 if test -n "$NM"; then
8846 # Let the user override the test.
8847 lt_cv_path_NM="$NM"
8848else
8849 lt_nm_to_check="${ac_tool_prefix}nm"
8850 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8851 lt_nm_to_check="$lt_nm_to_check nm"
8852 fi
8853 for lt_tmp_nm in $lt_nm_to_check; do
8854 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8855 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8856 IFS="$lt_save_ifs"
8857 test -z "$ac_dir" && ac_dir=.
8858 tmp_nm="$ac_dir/$lt_tmp_nm"
8859 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8860 # Check to see if the nm accepts a BSD-compat flag.
8861 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8862 # nm: unknown option "B" ignored
8863 # Tru64's nm complains that /dev/null is an invalid object file
8864 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8865 */dev/null* | *'Invalid file or object type'*)
8866 lt_cv_path_NM="$tmp_nm -B"
8867 break
8868 ;;
8869 *)
8870 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8871 */dev/null*)
8872 lt_cv_path_NM="$tmp_nm -p"
8873 break
8874 ;;
8875 *)
8876 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8877 continue # so that we can try to find one that supports BSD flags
8878 ;;
8879 esac
8880 ;;
8881 esac
8882 fi
8883 done
8884 IFS="$lt_save_ifs"
8885 done
8886 : ${lt_cv_path_NM=no}
8887fi
8888fi
cristy8b350f62009-11-15 23:12:43 +00008889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00008890$as_echo "$lt_cv_path_NM" >&6; }
8891if test "$lt_cv_path_NM" != "no"; then
8892 NM="$lt_cv_path_NM"
8893else
8894 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00008895 if test -n "$ac_tool_prefix"; then
8896 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008897 do
8898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8899set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008901$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008902if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008903 $as_echo_n "(cached) " >&6
8904else
8905 if test -n "$DUMPBIN"; then
8906 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8907else
8908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909for as_dir in $PATH
8910do
8911 IFS=$as_save_IFS
8912 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008913 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8915 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008917 break 2
8918 fi
8919done
cristy8b350f62009-11-15 23:12:43 +00008920 done
cristy3ed852e2009-09-05 21:47:34 +00008921IFS=$as_save_IFS
8922
8923fi
8924fi
8925DUMPBIN=$ac_cv_prog_DUMPBIN
8926if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008928$as_echo "$DUMPBIN" >&6; }
8929else
cristy8b350f62009-11-15 23:12:43 +00008930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008931$as_echo "no" >&6; }
8932fi
8933
8934
8935 test -n "$DUMPBIN" && break
8936 done
8937fi
8938if test -z "$DUMPBIN"; then
8939 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00008940 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008941do
8942 # Extract the first word of "$ac_prog", so it can be a program name with args.
8943set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008945$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008946if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008947 $as_echo_n "(cached) " >&6
8948else
8949 if test -n "$ac_ct_DUMPBIN"; then
8950 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8951else
8952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953for as_dir in $PATH
8954do
8955 IFS=$as_save_IFS
8956 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008957 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8959 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008961 break 2
8962 fi
8963done
cristy8b350f62009-11-15 23:12:43 +00008964 done
cristy3ed852e2009-09-05 21:47:34 +00008965IFS=$as_save_IFS
8966
8967fi
8968fi
8969ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8970if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008972$as_echo "$ac_ct_DUMPBIN" >&6; }
8973else
cristy8b350f62009-11-15 23:12:43 +00008974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008975$as_echo "no" >&6; }
8976fi
8977
8978
8979 test -n "$ac_ct_DUMPBIN" && break
8980done
8981
8982 if test "x$ac_ct_DUMPBIN" = x; then
8983 DUMPBIN=":"
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 DUMPBIN=$ac_ct_DUMPBIN
8992 fi
8993fi
8994
8995
8996 if test "$DUMPBIN" != ":"; then
8997 NM="$DUMPBIN"
8998 fi
8999fi
9000test -z "$NM" && NM=nm
9001
9002
9003
9004
9005
9006
cristy8b350f62009-11-15 23:12:43 +00009007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009008$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009009if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009010 $as_echo_n "(cached) " >&6
9011else
9012 lt_cv_nm_interface="BSD nm"
9013 echo "int some_variable = 0;" > conftest.$ac_ext
cristy4689cf02010-02-17 21:15:45 +00009014 (eval echo "\"\$as_me:9014: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009015 (eval "$ac_compile" 2>conftest.err)
9016 cat conftest.err >&5
cristy4689cf02010-02-17 21:15:45 +00009017 (eval echo "\"\$as_me:9017: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009018 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9019 cat conftest.err >&5
cristy4689cf02010-02-17 21:15:45 +00009020 (eval echo "\"\$as_me:9020: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009021 cat conftest.out >&5
9022 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9023 lt_cv_nm_interface="MS dumpbin"
9024 fi
9025 rm -f conftest*
9026fi
cristy8b350f62009-11-15 23:12:43 +00009027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009028$as_echo "$lt_cv_nm_interface" >&6; }
9029
9030# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009032$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009033if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009034 $as_echo_n "(cached) " >&6
9035else
9036 i=0
9037 teststring="ABCD"
9038
9039 case $build_os in
9040 msdosdjgpp*)
9041 # On DJGPP, this test can blow up pretty badly due to problems in libc
9042 # (any single argument exceeding 2000 bytes causes a buffer overrun
9043 # during glob expansion). Even if it were fixed, the result of this
9044 # check would be larger than it should be.
9045 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9046 ;;
9047
9048 gnu*)
9049 # Under GNU Hurd, this test is not required because there is
9050 # no limit to the length of command line arguments.
9051 # Libtool will interpret -1 as no limit whatsoever
9052 lt_cv_sys_max_cmd_len=-1;
9053 ;;
9054
9055 cygwin* | mingw* | cegcc*)
9056 # On Win9x/ME, this test blows up -- it succeeds, but takes
9057 # about 5 minutes as the teststring grows exponentially.
9058 # Worse, since 9x/ME are not pre-emptively multitasking,
9059 # you end up with a "frozen" computer, even though with patience
9060 # the test eventually succeeds (with a max line length of 256k).
9061 # Instead, let's just punt: use the minimum linelength reported by
9062 # all of the supported platforms: 8192 (on NT/2K/XP).
9063 lt_cv_sys_max_cmd_len=8192;
9064 ;;
9065
9066 amigaos*)
9067 # On AmigaOS with pdksh, this test takes hours, literally.
9068 # So we just punt and use a minimum line length of 8192.
9069 lt_cv_sys_max_cmd_len=8192;
9070 ;;
9071
9072 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9073 # This has been around since 386BSD, at least. Likely further.
9074 if test -x /sbin/sysctl; then
9075 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9076 elif test -x /usr/sbin/sysctl; then
9077 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9078 else
9079 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9080 fi
9081 # And add a safety zone
9082 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9083 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9084 ;;
9085
9086 interix*)
9087 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9088 lt_cv_sys_max_cmd_len=196608
9089 ;;
9090
9091 osf*)
9092 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9093 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9094 # nice to cause kernel panics so lets avoid the loop below.
9095 # First set a reasonable default.
9096 lt_cv_sys_max_cmd_len=16384
9097 #
9098 if test -x /sbin/sysconfig; then
9099 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9100 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9101 esac
9102 fi
9103 ;;
9104 sco3.2v5*)
9105 lt_cv_sys_max_cmd_len=102400
9106 ;;
9107 sysv5* | sco5v6* | sysv4.2uw2*)
9108 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9109 if test -n "$kargmax"; then
9110 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9111 else
9112 lt_cv_sys_max_cmd_len=32768
9113 fi
9114 ;;
9115 *)
9116 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9117 if test -n "$lt_cv_sys_max_cmd_len"; then
9118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9120 else
9121 # Make teststring a little bigger before we do anything with it.
9122 # a 1K string should be a reasonable start.
9123 for i in 1 2 3 4 5 6 7 8 ; do
9124 teststring=$teststring$teststring
9125 done
9126 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9127 # If test is not a shell built-in, we'll probably end up computing a
9128 # maximum length that is only half of the actual maximum length, but
9129 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00009130 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9131 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009132 test $i != 17 # 1/2 MB should be enough
9133 do
9134 i=`expr $i + 1`
9135 teststring=$teststring$teststring
9136 done
9137 # Only check the string length outside the loop.
9138 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9139 teststring=
9140 # Add a significant safety factor because C++ compilers can tack on
9141 # massive amounts of additional arguments before passing them to the
9142 # linker. It appears as though 1/2 is a usable value.
9143 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9144 fi
9145 ;;
9146 esac
9147
9148fi
9149
9150if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009152$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9153else
cristy8b350f62009-11-15 23:12:43 +00009154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009155$as_echo "none" >&6; }
9156fi
9157max_cmd_len=$lt_cv_sys_max_cmd_len
9158
9159
9160
9161
9162
9163
9164: ${CP="cp -f"}
9165: ${MV="mv -f"}
9166: ${RM="rm -f"}
9167
cristy8b350f62009-11-15 23:12:43 +00009168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009169$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9170# Try some XSI features
9171xsi_shell=no
9172( _lt_dummy="a/b/c"
9173 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9174 = c,a/b,, \
9175 && eval 'test $(( 1 + 1 )) -eq 2 \
9176 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9177 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009179$as_echo "$xsi_shell" >&6; }
9180
9181
cristy8b350f62009-11-15 23:12:43 +00009182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009183$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9184lt_shell_append=no
9185( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9186 >/dev/null 2>&1 \
9187 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009189$as_echo "$lt_shell_append" >&6; }
9190
9191
9192if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9193 lt_unset=unset
9194else
9195 lt_unset=false
9196fi
9197
9198
9199
9200
9201
9202# test EBCDIC or ASCII
9203case `echo X|tr X '\101'` in
9204 A) # ASCII based system
9205 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9206 lt_SP2NL='tr \040 \012'
9207 lt_NL2SP='tr \015\012 \040\040'
9208 ;;
9209 *) # EBCDIC based system
9210 lt_SP2NL='tr \100 \n'
9211 lt_NL2SP='tr \r\n \100\100'
9212 ;;
9213esac
9214
9215
9216
9217
9218
9219
9220
9221
9222
cristy8b350f62009-11-15 23:12:43 +00009223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009224$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009225if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009226 $as_echo_n "(cached) " >&6
9227else
9228 lt_cv_ld_reload_flag='-r'
9229fi
cristy8b350f62009-11-15 23:12:43 +00009230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009231$as_echo "$lt_cv_ld_reload_flag" >&6; }
9232reload_flag=$lt_cv_ld_reload_flag
9233case $reload_flag in
9234"" | " "*) ;;
9235*) reload_flag=" $reload_flag" ;;
9236esac
9237reload_cmds='$LD$reload_flag -o $output$reload_objs'
9238case $host_os in
9239 darwin*)
9240 if test "$GCC" = yes; then
9241 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9242 else
9243 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9244 fi
9245 ;;
9246esac
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256if test -n "$ac_tool_prefix"; then
9257 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9258set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009260$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009261if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009262 $as_echo_n "(cached) " >&6
9263else
9264 if test -n "$OBJDUMP"; then
9265 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9266else
9267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268for as_dir in $PATH
9269do
9270 IFS=$as_save_IFS
9271 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009272 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9274 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009276 break 2
9277 fi
9278done
cristy8b350f62009-11-15 23:12:43 +00009279 done
cristy3ed852e2009-09-05 21:47:34 +00009280IFS=$as_save_IFS
9281
9282fi
9283fi
9284OBJDUMP=$ac_cv_prog_OBJDUMP
9285if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009287$as_echo "$OBJDUMP" >&6; }
9288else
cristy8b350f62009-11-15 23:12:43 +00009289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009290$as_echo "no" >&6; }
9291fi
9292
9293
9294fi
9295if test -z "$ac_cv_prog_OBJDUMP"; then
9296 ac_ct_OBJDUMP=$OBJDUMP
9297 # Extract the first word of "objdump", so it can be a program name with args.
9298set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009300$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009301if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009302 $as_echo_n "(cached) " >&6
9303else
9304 if test -n "$ac_ct_OBJDUMP"; then
9305 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9306else
9307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9308for as_dir in $PATH
9309do
9310 IFS=$as_save_IFS
9311 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009312 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9314 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009316 break 2
9317 fi
9318done
cristy8b350f62009-11-15 23:12:43 +00009319 done
cristy3ed852e2009-09-05 21:47:34 +00009320IFS=$as_save_IFS
9321
9322fi
9323fi
9324ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9325if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009327$as_echo "$ac_ct_OBJDUMP" >&6; }
9328else
cristy8b350f62009-11-15 23:12:43 +00009329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009330$as_echo "no" >&6; }
9331fi
9332
9333 if test "x$ac_ct_OBJDUMP" = x; then
9334 OBJDUMP="false"
9335 else
9336 case $cross_compiling:$ac_tool_warned in
9337yes:)
cristy8b350f62009-11-15 23:12:43 +00009338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9340ac_tool_warned=yes ;;
9341esac
9342 OBJDUMP=$ac_ct_OBJDUMP
9343 fi
9344else
9345 OBJDUMP="$ac_cv_prog_OBJDUMP"
9346fi
9347
9348test -z "$OBJDUMP" && OBJDUMP=objdump
9349
9350
9351
9352
9353
9354
cristy8b350f62009-11-15 23:12:43 +00009355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00009356$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009357if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009358 $as_echo_n "(cached) " >&6
9359else
9360 lt_cv_file_magic_cmd='$MAGIC_CMD'
9361lt_cv_file_magic_test_file=
9362lt_cv_deplibs_check_method='unknown'
9363# Need to set the preceding variable on all platforms that support
9364# interlibrary dependencies.
9365# 'none' -- dependencies not supported.
9366# `unknown' -- same as none, but documents that we really don't know.
9367# 'pass_all' -- all dependencies passed with no checks.
9368# 'test_compile' -- check by making test program.
9369# 'file_magic [[regex]]' -- check by looking for files in library path
9370# which responds to the $file_magic_cmd with a given extended regex.
9371# If you have `file' or equivalent on your system and you're not sure
9372# whether `pass_all' will *always* work, you probably want this one.
9373
9374case $host_os in
9375aix[4-9]*)
9376 lt_cv_deplibs_check_method=pass_all
9377 ;;
9378
9379beos*)
9380 lt_cv_deplibs_check_method=pass_all
9381 ;;
9382
9383bsdi[45]*)
9384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9385 lt_cv_file_magic_cmd='/usr/bin/file -L'
9386 lt_cv_file_magic_test_file=/shlib/libc.so
9387 ;;
9388
9389cygwin*)
9390 # func_win32_libid is a shell function defined in ltmain.sh
9391 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9392 lt_cv_file_magic_cmd='func_win32_libid'
9393 ;;
9394
9395mingw* | pw32*)
9396 # Base MSYS/MinGW do not provide the 'file' command needed by
9397 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9398 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +00009399 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00009400 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9401 lt_cv_file_magic_cmd='func_win32_libid'
9402 else
9403 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9404 lt_cv_file_magic_cmd='$OBJDUMP -f'
9405 fi
9406 ;;
9407
cristy18304f92009-11-22 15:48:26 +00009408cegcc)
cristy3ed852e2009-09-05 21:47:34 +00009409 # use the weaker test based on 'objdump'. See mingw*.
9410 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9411 lt_cv_file_magic_cmd='$OBJDUMP -f'
9412 ;;
9413
9414darwin* | rhapsody*)
9415 lt_cv_deplibs_check_method=pass_all
9416 ;;
9417
9418freebsd* | dragonfly*)
9419 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9420 case $host_cpu in
9421 i*86 )
9422 # Not sure whether the presence of OpenBSD here was a mistake.
9423 # Let's accept both of them until this is cleared up.
9424 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9425 lt_cv_file_magic_cmd=/usr/bin/file
9426 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9427 ;;
9428 esac
9429 else
9430 lt_cv_deplibs_check_method=pass_all
9431 fi
9432 ;;
9433
9434gnu*)
9435 lt_cv_deplibs_check_method=pass_all
9436 ;;
9437
9438hpux10.20* | hpux11*)
9439 lt_cv_file_magic_cmd=/usr/bin/file
9440 case $host_cpu in
9441 ia64*)
9442 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9443 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9444 ;;
9445 hppa*64*)
cristy18304f92009-11-22 15:48:26 +00009446 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
cristy3ed852e2009-09-05 21:47:34 +00009447 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9448 ;;
9449 *)
cristy18304f92009-11-22 15:48:26 +00009450 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
cristy3ed852e2009-09-05 21:47:34 +00009451 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9452 ;;
9453 esac
9454 ;;
9455
9456interix[3-9]*)
9457 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9459 ;;
9460
9461irix5* | irix6* | nonstopux*)
9462 case $LD in
9463 *-32|*"-32 ") libmagic=32-bit;;
9464 *-n32|*"-n32 ") libmagic=N32;;
9465 *-64|*"-64 ") libmagic=64-bit;;
9466 *) libmagic=never-match;;
9467 esac
9468 lt_cv_deplibs_check_method=pass_all
9469 ;;
9470
9471# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +00009472linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00009473 lt_cv_deplibs_check_method=pass_all
9474 ;;
9475
9476netbsd*)
9477 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9479 else
9480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9481 fi
9482 ;;
9483
9484newos6*)
9485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9486 lt_cv_file_magic_cmd=/usr/bin/file
9487 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9488 ;;
9489
9490*nto* | *qnx*)
9491 lt_cv_deplibs_check_method=pass_all
9492 ;;
9493
9494openbsd*)
9495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9497 else
9498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9499 fi
9500 ;;
9501
9502osf3* | osf4* | osf5*)
9503 lt_cv_deplibs_check_method=pass_all
9504 ;;
9505
9506rdos*)
9507 lt_cv_deplibs_check_method=pass_all
9508 ;;
9509
9510solaris*)
9511 lt_cv_deplibs_check_method=pass_all
9512 ;;
9513
9514sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9515 lt_cv_deplibs_check_method=pass_all
9516 ;;
9517
9518sysv4 | sysv4.3*)
9519 case $host_vendor in
9520 motorola)
9521 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]'
9522 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9523 ;;
9524 ncr)
9525 lt_cv_deplibs_check_method=pass_all
9526 ;;
9527 sequent)
9528 lt_cv_file_magic_cmd='/bin/file'
9529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9530 ;;
9531 sni)
9532 lt_cv_file_magic_cmd='/bin/file'
9533 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9534 lt_cv_file_magic_test_file=/lib/libc.so
9535 ;;
9536 siemens)
9537 lt_cv_deplibs_check_method=pass_all
9538 ;;
9539 pc)
9540 lt_cv_deplibs_check_method=pass_all
9541 ;;
9542 esac
9543 ;;
9544
9545tpf*)
9546 lt_cv_deplibs_check_method=pass_all
9547 ;;
9548esac
9549
9550fi
cristy8b350f62009-11-15 23:12:43 +00009551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00009552$as_echo "$lt_cv_deplibs_check_method" >&6; }
9553file_magic_cmd=$lt_cv_file_magic_cmd
9554deplibs_check_method=$lt_cv_deplibs_check_method
9555test -z "$deplibs_check_method" && deplibs_check_method=unknown
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568if test -n "$ac_tool_prefix"; then
9569 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9570set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009572$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009573if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009574 $as_echo_n "(cached) " >&6
9575else
9576 if test -n "$AR"; then
9577 ac_cv_prog_AR="$AR" # Let the user override the test.
9578else
9579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580for as_dir in $PATH
9581do
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009584 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9586 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00009587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009588 break 2
9589 fi
9590done
cristy8b350f62009-11-15 23:12:43 +00009591 done
cristy3ed852e2009-09-05 21:47:34 +00009592IFS=$as_save_IFS
9593
9594fi
9595fi
9596AR=$ac_cv_prog_AR
9597if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00009598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00009599$as_echo "$AR" >&6; }
9600else
cristy8b350f62009-11-15 23:12:43 +00009601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009602$as_echo "no" >&6; }
9603fi
9604
9605
9606fi
9607if test -z "$ac_cv_prog_AR"; then
9608 ac_ct_AR=$AR
9609 # Extract the first word of "ar", so it can be a program name with args.
9610set dummy ar; 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_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009614 $as_echo_n "(cached) " >&6
9615else
9616 if test -n "$ac_ct_AR"; then
9617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="ar"
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
9636ac_ct_AR=$ac_cv_prog_ac_ct_AR
9637if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00009638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00009639$as_echo "$ac_ct_AR" >&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 if test "x$ac_ct_AR" = x; then
9646 AR="false"
9647 else
9648 case $cross_compiling:$ac_tool_warned in
9649yes:)
cristy8b350f62009-11-15 23:12:43 +00009650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9652ac_tool_warned=yes ;;
9653esac
9654 AR=$ac_ct_AR
9655 fi
9656else
9657 AR="$ac_cv_prog_AR"
9658fi
9659
9660test -z "$AR" && AR=ar
9661test -z "$AR_FLAGS" && AR_FLAGS=cru
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673if test -n "$ac_tool_prefix"; then
9674 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9675set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009677$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009678if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009679 $as_echo_n "(cached) " >&6
9680else
9681 if test -n "$STRIP"; then
9682 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9683else
9684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9685for as_dir in $PATH
9686do
9687 IFS=$as_save_IFS
9688 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009689 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9691 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00009692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009693 break 2
9694 fi
9695done
cristy8b350f62009-11-15 23:12:43 +00009696 done
cristy3ed852e2009-09-05 21:47:34 +00009697IFS=$as_save_IFS
9698
9699fi
9700fi
9701STRIP=$ac_cv_prog_STRIP
9702if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009704$as_echo "$STRIP" >&6; }
9705else
cristy8b350f62009-11-15 23:12:43 +00009706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009707$as_echo "no" >&6; }
9708fi
9709
9710
9711fi
9712if test -z "$ac_cv_prog_STRIP"; then
9713 ac_ct_STRIP=$STRIP
9714 # Extract the first word of "strip", so it can be a program name with args.
9715set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009717$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009718if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009719 $as_echo_n "(cached) " >&6
9720else
9721 if test -n "$ac_ct_STRIP"; then
9722 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9723else
9724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725for as_dir in $PATH
9726do
9727 IFS=$as_save_IFS
9728 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009729 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9731 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00009732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009733 break 2
9734 fi
9735done
cristy8b350f62009-11-15 23:12:43 +00009736 done
cristy3ed852e2009-09-05 21:47:34 +00009737IFS=$as_save_IFS
9738
9739fi
9740fi
9741ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9742if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009744$as_echo "$ac_ct_STRIP" >&6; }
9745else
cristy8b350f62009-11-15 23:12:43 +00009746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009747$as_echo "no" >&6; }
9748fi
9749
9750 if test "x$ac_ct_STRIP" = x; then
9751 STRIP=":"
9752 else
9753 case $cross_compiling:$ac_tool_warned in
9754yes:)
cristy8b350f62009-11-15 23:12:43 +00009755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9757ac_tool_warned=yes ;;
9758esac
9759 STRIP=$ac_ct_STRIP
9760 fi
9761else
9762 STRIP="$ac_cv_prog_STRIP"
9763fi
9764
9765test -z "$STRIP" && STRIP=:
9766
9767
9768
9769
9770
9771
9772if test -n "$ac_tool_prefix"; then
9773 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9774set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009776$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009777if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009778 $as_echo_n "(cached) " >&6
9779else
9780 if test -n "$RANLIB"; then
9781 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9782else
9783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784for as_dir in $PATH
9785do
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009788 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9790 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00009791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009792 break 2
9793 fi
9794done
cristy8b350f62009-11-15 23:12:43 +00009795 done
cristy3ed852e2009-09-05 21:47:34 +00009796IFS=$as_save_IFS
9797
9798fi
9799fi
9800RANLIB=$ac_cv_prog_RANLIB
9801if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009803$as_echo "$RANLIB" >&6; }
9804else
cristy8b350f62009-11-15 23:12:43 +00009805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009806$as_echo "no" >&6; }
9807fi
9808
9809
9810fi
9811if test -z "$ac_cv_prog_RANLIB"; then
9812 ac_ct_RANLIB=$RANLIB
9813 # Extract the first word of "ranlib", so it can be a program name with args.
9814set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009816$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009817if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009818 $as_echo_n "(cached) " >&6
9819else
9820 if test -n "$ac_ct_RANLIB"; then
9821 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9822else
9823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824for as_dir in $PATH
9825do
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9830 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00009831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009832 break 2
9833 fi
9834done
cristy8b350f62009-11-15 23:12:43 +00009835 done
cristy3ed852e2009-09-05 21:47:34 +00009836IFS=$as_save_IFS
9837
9838fi
9839fi
9840ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9841if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009843$as_echo "$ac_ct_RANLIB" >&6; }
9844else
cristy8b350f62009-11-15 23:12:43 +00009845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009846$as_echo "no" >&6; }
9847fi
9848
9849 if test "x$ac_ct_RANLIB" = x; then
9850 RANLIB=":"
9851 else
9852 case $cross_compiling:$ac_tool_warned in
9853yes:)
cristy8b350f62009-11-15 23:12:43 +00009854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9856ac_tool_warned=yes ;;
9857esac
9858 RANLIB=$ac_ct_RANLIB
9859 fi
9860else
9861 RANLIB="$ac_cv_prog_RANLIB"
9862fi
9863
9864test -z "$RANLIB" && RANLIB=:
9865
9866
9867
9868
9869
9870
9871# Determine commands to create old-style static archives.
9872old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9873old_postinstall_cmds='chmod 644 $oldlib'
9874old_postuninstall_cmds=
9875
9876if test -n "$RANLIB"; then
9877 case $host_os in
9878 openbsd*)
9879 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9880 ;;
9881 *)
9882 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9883 ;;
9884 esac
9885 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9886fi
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921# If no C compiler was specified, use CC.
9922LTCC=${LTCC-"$CC"}
9923
9924# If no C compiler flags were specified, use CFLAGS.
9925LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9926
9927# Allow CC to be a program name with arguments.
9928compiler=$CC
9929
9930
9931# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +00009932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +00009933$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009934if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009935 $as_echo_n "(cached) " >&6
9936else
9937
9938# These are sane defaults that work on at least a few old systems.
9939# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9940
9941# Character class describing NM global symbol codes.
9942symcode='[BCDEGRST]'
9943
9944# Regexp to match symbols that can be accessed directly from C.
9945sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9946
9947# Define system-specific variables.
9948case $host_os in
9949aix*)
9950 symcode='[BCDT]'
9951 ;;
9952cygwin* | mingw* | pw32* | cegcc*)
9953 symcode='[ABCDGISTW]'
9954 ;;
9955hpux*)
9956 if test "$host_cpu" = ia64; then
9957 symcode='[ABCDEGRST]'
9958 fi
9959 ;;
9960irix* | nonstopux*)
9961 symcode='[BCDEGRST]'
9962 ;;
9963osf*)
9964 symcode='[BCDEGQRST]'
9965 ;;
9966solaris*)
9967 symcode='[BDRT]'
9968 ;;
9969sco3.2v5*)
9970 symcode='[DT]'
9971 ;;
9972sysv4.2uw2*)
9973 symcode='[DT]'
9974 ;;
9975sysv5* | sco5v6* | unixware* | OpenUNIX*)
9976 symcode='[ABDT]'
9977 ;;
9978sysv4)
9979 symcode='[DFNSTU]'
9980 ;;
9981esac
9982
9983# If we're using GNU nm, then use its standard symbol codes.
9984case `$NM -V 2>&1` in
9985*GNU* | *'with BFD'*)
9986 symcode='[ABCDGIRSTW]' ;;
9987esac
9988
9989# Transform an extracted symbol line into a proper C declaration.
9990# Some systems (esp. on ia64) link data and code symbols differently,
9991# so use this general approach.
9992lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9993
9994# Transform an extracted symbol line into symbol name and symbol address
9995lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9996lt_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'"
9997
9998# Handle CRLF in mingw tool chain
9999opt_cr=
10000case $build_os in
10001mingw*)
10002 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10003 ;;
10004esac
10005
10006# Try without a prefix underscore, then with it.
10007for ac_symprfx in "" "_"; do
10008
10009 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10010 symxfrm="\\1 $ac_symprfx\\2 \\2"
10011
10012 # Write the raw and C identifiers.
10013 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10014 # Fake it for dumpbin and say T for any non-static function
10015 # and D for any global variable.
10016 # Also find C++ and __fastcall symbols from MSVC++,
10017 # which start with @ or ?.
10018 lt_cv_sys_global_symbol_pipe="$AWK '"\
10019" {last_section=section; section=\$ 3};"\
10020" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10021" \$ 0!~/External *\|/{next};"\
10022" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10023" {if(hide[section]) next};"\
10024" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10025" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10026" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10027" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10028" ' prfx=^$ac_symprfx"
10029 else
10030 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10031 fi
10032
10033 # Check to see that the pipe works correctly.
10034 pipe_works=no
10035
10036 rm -f conftest*
10037 cat > conftest.$ac_ext <<_LT_EOF
10038#ifdef __cplusplus
10039extern "C" {
10040#endif
10041char nm_test_var;
10042void nm_test_func(void);
10043void nm_test_func(void){}
10044#ifdef __cplusplus
10045}
10046#endif
10047int main(){nm_test_var='a';nm_test_func();return(0);}
10048_LT_EOF
10049
cristy8b350f62009-11-15 23:12:43 +000010050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010051 (eval $ac_compile) 2>&5
10052 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10054 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010055 # Now try to grab the symbols.
10056 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +000010057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10058 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010059 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10061 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010062 # Try sorting and uniquifying the output.
10063 if sort "$nlist" | uniq > "$nlist"T; then
10064 mv -f "$nlist"T "$nlist"
10065 else
10066 rm -f "$nlist"T
10067 fi
10068
10069 # Make sure that we snagged all the symbols we need.
10070 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10071 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10072 cat <<_LT_EOF > conftest.$ac_ext
10073#ifdef __cplusplus
10074extern "C" {
10075#endif
10076
10077_LT_EOF
10078 # Now generate the symbol file.
10079 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10080
10081 cat <<_LT_EOF >> conftest.$ac_ext
10082
10083/* The mapping between symbol names and symbols. */
10084const struct {
10085 const char *name;
10086 void *address;
10087}
10088lt__PROGRAM__LTX_preloaded_symbols[] =
10089{
10090 { "@PROGRAM@", (void *) 0 },
10091_LT_EOF
10092 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10093 cat <<\_LT_EOF >> conftest.$ac_ext
10094 {0, (void *) 0}
10095};
10096
10097/* This works around a problem in FreeBSD linker */
10098#ifdef FREEBSD_WORKAROUND
10099static const void *lt_preloaded_setup() {
10100 return lt__PROGRAM__LTX_preloaded_symbols;
10101}
10102#endif
10103
10104#ifdef __cplusplus
10105}
10106#endif
10107_LT_EOF
10108 # Now try linking the two files.
10109 mv conftest.$ac_objext conftstm.$ac_objext
10110 lt_save_LIBS="$LIBS"
10111 lt_save_CFLAGS="$CFLAGS"
10112 LIBS="conftstm.$ac_objext"
10113 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010115 (eval $ac_link) 2>&5
10116 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10118 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010119 pipe_works=yes
10120 fi
10121 LIBS="$lt_save_LIBS"
10122 CFLAGS="$lt_save_CFLAGS"
10123 else
10124 echo "cannot find nm_test_func in $nlist" >&5
10125 fi
10126 else
10127 echo "cannot find nm_test_var in $nlist" >&5
10128 fi
10129 else
10130 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10131 fi
10132 else
10133 echo "$progname: failed program was:" >&5
10134 cat conftest.$ac_ext >&5
10135 fi
10136 rm -rf conftest* conftst*
10137
10138 # Do not use the global_symbol_pipe unless it works.
10139 if test "$pipe_works" = yes; then
10140 break
10141 else
10142 lt_cv_sys_global_symbol_pipe=
10143 fi
10144done
10145
10146fi
10147
10148if test -z "$lt_cv_sys_global_symbol_pipe"; then
10149 lt_cv_sys_global_symbol_to_cdecl=
10150fi
10151if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010153$as_echo "failed" >&6; }
10154else
cristy8b350f62009-11-15 23:12:43 +000010155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010156$as_echo "ok" >&6; }
10157fi
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010181if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010182 enableval=$enable_libtool_lock;
10183fi
10184
10185test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10186
10187# Some flags need to be propagated to the compiler or linker for good
10188# libtool support.
10189case $host in
10190ia64-*-hpux*)
10191 # Find out which ABI we are using.
10192 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010194 (eval $ac_compile) 2>&5
10195 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10197 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010198 case `/usr/bin/file conftest.$ac_objext` in
10199 *ELF-32*)
10200 HPUX_IA64_MODE="32"
10201 ;;
10202 *ELF-64*)
10203 HPUX_IA64_MODE="64"
10204 ;;
10205 esac
10206 fi
10207 rm -rf conftest*
10208 ;;
10209*-*-irix6*)
10210 # Find out which ABI we are using.
cristy4689cf02010-02-17 21:15:45 +000010211 echo '#line 10211 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010213 (eval $ac_compile) 2>&5
10214 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10216 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010217 if test "$lt_cv_prog_gnu_ld" = yes; then
10218 case `/usr/bin/file conftest.$ac_objext` in
10219 *32-bit*)
10220 LD="${LD-ld} -melf32bsmip"
10221 ;;
10222 *N32*)
10223 LD="${LD-ld} -melf32bmipn32"
10224 ;;
10225 *64-bit*)
10226 LD="${LD-ld} -melf64bmip"
10227 ;;
10228 esac
10229 else
10230 case `/usr/bin/file conftest.$ac_objext` in
10231 *32-bit*)
10232 LD="${LD-ld} -32"
10233 ;;
10234 *N32*)
10235 LD="${LD-ld} -n32"
10236 ;;
10237 *64-bit*)
10238 LD="${LD-ld} -64"
10239 ;;
10240 esac
10241 fi
10242 fi
10243 rm -rf conftest*
10244 ;;
10245
10246x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10247s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10248 # Find out which ABI we are using.
10249 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010251 (eval $ac_compile) 2>&5
10252 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10254 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010255 case `/usr/bin/file conftest.o` in
10256 *32-bit*)
10257 case $host in
10258 x86_64-*kfreebsd*-gnu)
10259 LD="${LD-ld} -m elf_i386_fbsd"
10260 ;;
10261 x86_64-*linux*)
10262 LD="${LD-ld} -m elf_i386"
10263 ;;
10264 ppc64-*linux*|powerpc64-*linux*)
10265 LD="${LD-ld} -m elf32ppclinux"
10266 ;;
10267 s390x-*linux*)
10268 LD="${LD-ld} -m elf_s390"
10269 ;;
10270 sparc64-*linux*)
10271 LD="${LD-ld} -m elf32_sparc"
10272 ;;
10273 esac
10274 ;;
10275 *64-bit*)
10276 case $host in
10277 x86_64-*kfreebsd*-gnu)
10278 LD="${LD-ld} -m elf_x86_64_fbsd"
10279 ;;
10280 x86_64-*linux*)
10281 LD="${LD-ld} -m elf_x86_64"
10282 ;;
10283 ppc*-*linux*|powerpc*-*linux*)
10284 LD="${LD-ld} -m elf64ppc"
10285 ;;
10286 s390*-*linux*|s390*-*tpf*)
10287 LD="${LD-ld} -m elf64_s390"
10288 ;;
10289 sparc*-*linux*)
10290 LD="${LD-ld} -m elf64_sparc"
10291 ;;
10292 esac
10293 ;;
10294 esac
10295 fi
10296 rm -rf conftest*
10297 ;;
10298
10299*-*-sco3.2v5*)
10300 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10301 SAVE_CFLAGS="$CFLAGS"
10302 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010304$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010305if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010306 $as_echo_n "(cached) " >&6
10307else
10308 ac_ext=c
10309ac_cpp='$CPP $CPPFLAGS'
10310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10312ac_compiler_gnu=$ac_cv_c_compiler_gnu
10313
cristy8b350f62009-11-15 23:12:43 +000010314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010315/* end confdefs.h. */
10316
10317int
10318main ()
10319{
10320
10321 ;
10322 return 0;
10323}
10324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010325if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010326 lt_cv_cc_needs_belf=yes
10327else
cristy8b350f62009-11-15 23:12:43 +000010328 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000010329fi
cristy8b350f62009-11-15 23:12:43 +000010330rm -f core conftest.err conftest.$ac_objext \
10331 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010332 ac_ext=c
10333ac_cpp='$CPP $CPPFLAGS'
10334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10336ac_compiler_gnu=$ac_cv_c_compiler_gnu
10337
10338fi
cristy8b350f62009-11-15 23:12:43 +000010339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010340$as_echo "$lt_cv_cc_needs_belf" >&6; }
10341 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10342 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10343 CFLAGS="$SAVE_CFLAGS"
10344 fi
10345 ;;
10346sparc*-*solaris*)
10347 # Find out which ABI we are using.
10348 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010350 (eval $ac_compile) 2>&5
10351 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10353 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010354 case `/usr/bin/file conftest.o` in
10355 *64-bit*)
10356 case $lt_cv_prog_gnu_ld in
10357 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10358 *)
10359 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10360 LD="${LD-ld} -64"
10361 fi
10362 ;;
10363 esac
10364 ;;
10365 esac
10366 fi
10367 rm -rf conftest*
10368 ;;
10369esac
10370
10371need_locks="$enable_libtool_lock"
10372
10373
10374 case $host_os in
10375 rhapsody* | darwin*)
10376 if test -n "$ac_tool_prefix"; then
10377 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10378set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010380$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010381if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010382 $as_echo_n "(cached) " >&6
10383else
10384 if test -n "$DSYMUTIL"; then
10385 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10386else
10387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388for as_dir in $PATH
10389do
10390 IFS=$as_save_IFS
10391 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010392 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10394 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010396 break 2
10397 fi
10398done
cristy8b350f62009-11-15 23:12:43 +000010399 done
cristy3ed852e2009-09-05 21:47:34 +000010400IFS=$as_save_IFS
10401
10402fi
10403fi
10404DSYMUTIL=$ac_cv_prog_DSYMUTIL
10405if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000010406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010407$as_echo "$DSYMUTIL" >&6; }
10408else
cristy8b350f62009-11-15 23:12:43 +000010409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010410$as_echo "no" >&6; }
10411fi
10412
10413
10414fi
10415if test -z "$ac_cv_prog_DSYMUTIL"; then
10416 ac_ct_DSYMUTIL=$DSYMUTIL
10417 # Extract the first word of "dsymutil", so it can be a program name with args.
10418set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010420$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010421if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010422 $as_echo_n "(cached) " >&6
10423else
10424 if test -n "$ac_ct_DSYMUTIL"; then
10425 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10426else
10427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428for as_dir in $PATH
10429do
10430 IFS=$as_save_IFS
10431 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010432 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10434 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010436 break 2
10437 fi
10438done
cristy8b350f62009-11-15 23:12:43 +000010439 done
cristy3ed852e2009-09-05 21:47:34 +000010440IFS=$as_save_IFS
10441
10442fi
10443fi
10444ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10445if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000010446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010447$as_echo "$ac_ct_DSYMUTIL" >&6; }
10448else
cristy8b350f62009-11-15 23:12:43 +000010449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010450$as_echo "no" >&6; }
10451fi
10452
10453 if test "x$ac_ct_DSYMUTIL" = x; then
10454 DSYMUTIL=":"
10455 else
10456 case $cross_compiling:$ac_tool_warned in
10457yes:)
cristy8b350f62009-11-15 23:12:43 +000010458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10460ac_tool_warned=yes ;;
10461esac
10462 DSYMUTIL=$ac_ct_DSYMUTIL
10463 fi
10464else
10465 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10466fi
10467
10468 if test -n "$ac_tool_prefix"; then
10469 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10470set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010472$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010473if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010474 $as_echo_n "(cached) " >&6
10475else
10476 if test -n "$NMEDIT"; then
10477 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10478else
10479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480for as_dir in $PATH
10481do
10482 IFS=$as_save_IFS
10483 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010484 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10486 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000010487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010488 break 2
10489 fi
10490done
cristy8b350f62009-11-15 23:12:43 +000010491 done
cristy3ed852e2009-09-05 21:47:34 +000010492IFS=$as_save_IFS
10493
10494fi
10495fi
10496NMEDIT=$ac_cv_prog_NMEDIT
10497if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000010498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000010499$as_echo "$NMEDIT" >&6; }
10500else
cristy8b350f62009-11-15 23:12:43 +000010501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010502$as_echo "no" >&6; }
10503fi
10504
10505
10506fi
10507if test -z "$ac_cv_prog_NMEDIT"; then
10508 ac_ct_NMEDIT=$NMEDIT
10509 # Extract the first word of "nmedit", so it can be a program name with args.
10510set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010512$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010513if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010514 $as_echo_n "(cached) " >&6
10515else
10516 if test -n "$ac_ct_NMEDIT"; then
10517 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10518else
10519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520for as_dir in $PATH
10521do
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010524 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10526 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000010527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010528 break 2
10529 fi
10530done
cristy8b350f62009-11-15 23:12:43 +000010531 done
cristy3ed852e2009-09-05 21:47:34 +000010532IFS=$as_save_IFS
10533
10534fi
10535fi
10536ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10537if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000010538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000010539$as_echo "$ac_ct_NMEDIT" >&6; }
10540else
cristy8b350f62009-11-15 23:12:43 +000010541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010542$as_echo "no" >&6; }
10543fi
10544
10545 if test "x$ac_ct_NMEDIT" = x; then
10546 NMEDIT=":"
10547 else
10548 case $cross_compiling:$ac_tool_warned in
10549yes:)
cristy8b350f62009-11-15 23:12:43 +000010550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10552ac_tool_warned=yes ;;
10553esac
10554 NMEDIT=$ac_ct_NMEDIT
10555 fi
10556else
10557 NMEDIT="$ac_cv_prog_NMEDIT"
10558fi
10559
10560 if test -n "$ac_tool_prefix"; then
10561 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10562set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010564$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010565if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010566 $as_echo_n "(cached) " >&6
10567else
10568 if test -n "$LIPO"; then
10569 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10570else
10571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572for as_dir in $PATH
10573do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010576 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10578 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000010579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010580 break 2
10581 fi
10582done
cristy8b350f62009-11-15 23:12:43 +000010583 done
cristy3ed852e2009-09-05 21:47:34 +000010584IFS=$as_save_IFS
10585
10586fi
10587fi
10588LIPO=$ac_cv_prog_LIPO
10589if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000010590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000010591$as_echo "$LIPO" >&6; }
10592else
cristy8b350f62009-11-15 23:12:43 +000010593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010594$as_echo "no" >&6; }
10595fi
10596
10597
10598fi
10599if test -z "$ac_cv_prog_LIPO"; then
10600 ac_ct_LIPO=$LIPO
10601 # Extract the first word of "lipo", so it can be a program name with args.
10602set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010604$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010605if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010606 $as_echo_n "(cached) " >&6
10607else
10608 if test -n "$ac_ct_LIPO"; then
10609 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10610else
10611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10612for as_dir in $PATH
10613do
10614 IFS=$as_save_IFS
10615 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10618 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000010619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010620 break 2
10621 fi
10622done
cristy8b350f62009-11-15 23:12:43 +000010623 done
cristy3ed852e2009-09-05 21:47:34 +000010624IFS=$as_save_IFS
10625
10626fi
10627fi
10628ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10629if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000010630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000010631$as_echo "$ac_ct_LIPO" >&6; }
10632else
cristy8b350f62009-11-15 23:12:43 +000010633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010634$as_echo "no" >&6; }
10635fi
10636
10637 if test "x$ac_ct_LIPO" = x; then
10638 LIPO=":"
10639 else
10640 case $cross_compiling:$ac_tool_warned in
10641yes:)
cristy8b350f62009-11-15 23:12:43 +000010642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10644ac_tool_warned=yes ;;
10645esac
10646 LIPO=$ac_ct_LIPO
10647 fi
10648else
10649 LIPO="$ac_cv_prog_LIPO"
10650fi
10651
10652 if test -n "$ac_tool_prefix"; then
10653 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10654set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010656$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010657if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010658 $as_echo_n "(cached) " >&6
10659else
10660 if test -n "$OTOOL"; then
10661 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10662else
10663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664for as_dir in $PATH
10665do
10666 IFS=$as_save_IFS
10667 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010668 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10670 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000010671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010672 break 2
10673 fi
10674done
cristy8b350f62009-11-15 23:12:43 +000010675 done
cristy3ed852e2009-09-05 21:47:34 +000010676IFS=$as_save_IFS
10677
10678fi
10679fi
10680OTOOL=$ac_cv_prog_OTOOL
10681if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010683$as_echo "$OTOOL" >&6; }
10684else
cristy8b350f62009-11-15 23:12:43 +000010685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010686$as_echo "no" >&6; }
10687fi
10688
10689
10690fi
10691if test -z "$ac_cv_prog_OTOOL"; then
10692 ac_ct_OTOOL=$OTOOL
10693 # Extract the first word of "otool", so it can be a program name with args.
10694set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010696$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010697if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010698 $as_echo_n "(cached) " >&6
10699else
10700 if test -n "$ac_ct_OTOOL"; then
10701 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10702else
10703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704for as_dir in $PATH
10705do
10706 IFS=$as_save_IFS
10707 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010708 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10710 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000010711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010712 break 2
10713 fi
10714done
cristy8b350f62009-11-15 23:12:43 +000010715 done
cristy3ed852e2009-09-05 21:47:34 +000010716IFS=$as_save_IFS
10717
10718fi
10719fi
10720ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10721if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010723$as_echo "$ac_ct_OTOOL" >&6; }
10724else
cristy8b350f62009-11-15 23:12:43 +000010725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010726$as_echo "no" >&6; }
10727fi
10728
10729 if test "x$ac_ct_OTOOL" = x; then
10730 OTOOL=":"
10731 else
10732 case $cross_compiling:$ac_tool_warned in
10733yes:)
cristy8b350f62009-11-15 23:12:43 +000010734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10736ac_tool_warned=yes ;;
10737esac
10738 OTOOL=$ac_ct_OTOOL
10739 fi
10740else
10741 OTOOL="$ac_cv_prog_OTOOL"
10742fi
10743
10744 if test -n "$ac_tool_prefix"; then
10745 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10746set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010748$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010749if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010750 $as_echo_n "(cached) " >&6
10751else
10752 if test -n "$OTOOL64"; then
10753 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10754else
10755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756for as_dir in $PATH
10757do
10758 IFS=$as_save_IFS
10759 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010760 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10762 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000010763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010764 break 2
10765 fi
10766done
cristy8b350f62009-11-15 23:12:43 +000010767 done
cristy3ed852e2009-09-05 21:47:34 +000010768IFS=$as_save_IFS
10769
10770fi
10771fi
10772OTOOL64=$ac_cv_prog_OTOOL64
10773if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010775$as_echo "$OTOOL64" >&6; }
10776else
cristy8b350f62009-11-15 23:12:43 +000010777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010778$as_echo "no" >&6; }
10779fi
10780
10781
10782fi
10783if test -z "$ac_cv_prog_OTOOL64"; then
10784 ac_ct_OTOOL64=$OTOOL64
10785 # Extract the first word of "otool64", so it can be a program name with args.
10786set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010788$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010789if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010790 $as_echo_n "(cached) " >&6
10791else
10792 if test -n "$ac_ct_OTOOL64"; then
10793 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10794else
10795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796for as_dir in $PATH
10797do
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010800 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10802 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000010803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010804 break 2
10805 fi
10806done
cristy8b350f62009-11-15 23:12:43 +000010807 done
cristy3ed852e2009-09-05 21:47:34 +000010808IFS=$as_save_IFS
10809
10810fi
10811fi
10812ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10813if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010815$as_echo "$ac_ct_OTOOL64" >&6; }
10816else
cristy8b350f62009-11-15 23:12:43 +000010817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010818$as_echo "no" >&6; }
10819fi
10820
10821 if test "x$ac_ct_OTOOL64" = x; then
10822 OTOOL64=":"
10823 else
10824 case $cross_compiling:$ac_tool_warned in
10825yes:)
cristy8b350f62009-11-15 23:12:43 +000010826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10828ac_tool_warned=yes ;;
10829esac
10830 OTOOL64=$ac_ct_OTOOL64
10831 fi
10832else
10833 OTOOL64="$ac_cv_prog_OTOOL64"
10834fi
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
cristy8b350f62009-11-15 23:12:43 +000010862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010863$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010864if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010865 $as_echo_n "(cached) " >&6
10866else
10867 lt_cv_apple_cc_single_mod=no
10868 if test -z "${LT_MULTI_MODULE}"; then
10869 # By default we will add the -single_module flag. You can override
10870 # by either setting the environment variable LT_MULTI_MODULE
10871 # non-empty at configure time, or by adding -multi_module to the
10872 # link flags.
10873 rm -rf libconftest.dylib*
10874 echo "int foo(void){return 1;}" > conftest.c
10875 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10876-dynamiclib -Wl,-single_module conftest.c" >&5
10877 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10878 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10879 _lt_result=$?
10880 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10881 lt_cv_apple_cc_single_mod=yes
10882 else
10883 cat conftest.err >&5
10884 fi
10885 rm -rf libconftest.dylib*
10886 rm -f conftest.*
10887 fi
10888fi
cristy8b350f62009-11-15 23:12:43 +000010889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000010890$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010892$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010893if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010894 $as_echo_n "(cached) " >&6
10895else
10896 lt_cv_ld_exported_symbols_list=no
10897 save_LDFLAGS=$LDFLAGS
10898 echo "_main" > conftest.sym
10899 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000010900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010901/* end confdefs.h. */
10902
10903int
10904main ()
10905{
10906
10907 ;
10908 return 0;
10909}
10910_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010911if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010912 lt_cv_ld_exported_symbols_list=yes
10913else
cristy8b350f62009-11-15 23:12:43 +000010914 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000010915fi
cristy8b350f62009-11-15 23:12:43 +000010916rm -f core conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010918 LDFLAGS="$save_LDFLAGS"
10919
10920fi
cristy8b350f62009-11-15 23:12:43 +000010921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000010922$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10923 case $host_os in
10924 rhapsody* | darwin1.[012])
10925 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10926 darwin1.*)
10927 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10928 darwin*) # darwin 5.x on
10929 # if running on 10.5 or later, the deployment target defaults
10930 # to the OS version, if on x86, and 10.4, the deployment
10931 # target defaults to 10.4. Don't you love it?
10932 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10933 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10934 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10935 10.[012]*)
10936 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10937 10.*)
10938 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10939 esac
10940 ;;
10941 esac
10942 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10943 _lt_dar_single_mod='$single_module'
10944 fi
10945 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10946 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10947 else
10948 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10949 fi
cristy18304f92009-11-22 15:48:26 +000010950 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000010951 _lt_dsymutil='~$DSYMUTIL $lib || :'
10952 else
10953 _lt_dsymutil=
10954 fi
10955 ;;
10956 esac
10957
cristy3ed852e2009-09-05 21:47:34 +000010958for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000010959do :
10960 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10961"
10962if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010963 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010964#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000010965_ACEOF
10966
10967fi
10968
10969done
10970
10971
10972
cristy18304f92009-11-22 15:48:26 +000010973ac_ext=cpp
10974ac_cpp='$CXXCPP $CPPFLAGS'
10975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10978if test -z "$CXX"; then
10979 if test -n "$CCC"; then
10980 CXX=$CCC
10981 else
10982 if test -n "$ac_tool_prefix"; then
10983 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10984 do
10985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10986set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988$as_echo_n "checking for $ac_word... " >&6; }
10989if test "${ac_cv_prog_CXX+set}" = set; then :
10990 $as_echo_n "(cached) " >&6
10991else
10992 if test -n "$CXX"; then
10993 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10994else
10995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996for as_dir in $PATH
10997do
10998 IFS=$as_save_IFS
10999 test -z "$as_dir" && as_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11002 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11004 break 2
11005 fi
11006done
11007 done
11008IFS=$as_save_IFS
11009
11010fi
11011fi
11012CXX=$ac_cv_prog_CXX
11013if test -n "$CXX"; then
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11015$as_echo "$CXX" >&6; }
11016else
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018$as_echo "no" >&6; }
11019fi
11020
11021
11022 test -n "$CXX" && break
11023 done
11024fi
11025if test -z "$CXX"; then
11026 ac_ct_CXX=$CXX
11027 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11028do
11029 # Extract the first word of "$ac_prog", so it can be a program name with args.
11030set dummy $ac_prog; ac_word=$2
11031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032$as_echo_n "checking for $ac_word... " >&6; }
11033if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11034 $as_echo_n "(cached) " >&6
11035else
11036 if test -n "$ac_ct_CXX"; then
11037 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11038else
11039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040for as_dir in $PATH
11041do
11042 IFS=$as_save_IFS
11043 test -z "$as_dir" && as_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11046 ac_cv_prog_ac_ct_CXX="$ac_prog"
11047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11048 break 2
11049 fi
11050done
11051 done
11052IFS=$as_save_IFS
11053
11054fi
11055fi
11056ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11057if test -n "$ac_ct_CXX"; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11059$as_echo "$ac_ct_CXX" >&6; }
11060else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062$as_echo "no" >&6; }
11063fi
11064
11065
11066 test -n "$ac_ct_CXX" && break
11067done
11068
11069 if test "x$ac_ct_CXX" = x; then
11070 CXX="g++"
11071 else
11072 case $cross_compiling:$ac_tool_warned in
11073yes:)
11074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11076ac_tool_warned=yes ;;
11077esac
11078 CXX=$ac_ct_CXX
11079 fi
11080fi
11081
11082 fi
11083fi
11084# Provide some information about the compiler.
11085$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11086set X $ac_compile
11087ac_compiler=$2
11088for ac_option in --version -v -V -qversion; do
11089 { { ac_try="$ac_compiler $ac_option >&5"
11090case "(($ac_try" in
11091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092 *) ac_try_echo=$ac_try;;
11093esac
11094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11095$as_echo "$ac_try_echo"; } >&5
11096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11097 ac_status=$?
11098 if test -s conftest.err; then
11099 sed '10a\
11100... rest of stderr output deleted ...
11101 10q' conftest.err >conftest.er1
11102 cat conftest.er1 >&5
11103 fi
11104 rm -f conftest.er1 conftest.err
11105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11106 test $ac_status = 0; }
11107done
11108
11109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11110$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11111if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11112 $as_echo_n "(cached) " >&6
11113else
11114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115/* end confdefs.h. */
11116
11117int
11118main ()
11119{
11120#ifndef __GNUC__
11121 choke me
11122#endif
11123
11124 ;
11125 return 0;
11126}
11127_ACEOF
11128if ac_fn_cxx_try_compile "$LINENO"; then :
11129 ac_compiler_gnu=yes
11130else
11131 ac_compiler_gnu=no
11132fi
11133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11134ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11135
11136fi
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11138$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11139if test $ac_compiler_gnu = yes; then
11140 GXX=yes
11141else
11142 GXX=
11143fi
11144ac_test_CXXFLAGS=${CXXFLAGS+set}
11145ac_save_CXXFLAGS=$CXXFLAGS
11146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11147$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11148if test "${ac_cv_prog_cxx_g+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
11150else
11151 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11152 ac_cxx_werror_flag=yes
11153 ac_cv_prog_cxx_g=no
11154 CXXFLAGS="-g"
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156/* end confdefs.h. */
11157
11158int
11159main ()
11160{
11161
11162 ;
11163 return 0;
11164}
11165_ACEOF
11166if ac_fn_cxx_try_compile "$LINENO"; then :
11167 ac_cv_prog_cxx_g=yes
11168else
11169 CXXFLAGS=""
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171/* end confdefs.h. */
11172
11173int
11174main ()
11175{
11176
11177 ;
11178 return 0;
11179}
11180_ACEOF
11181if ac_fn_cxx_try_compile "$LINENO"; then :
11182
11183else
11184 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11185 CXXFLAGS="-g"
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187/* end confdefs.h. */
11188
11189int
11190main ()
11191{
11192
11193 ;
11194 return 0;
11195}
11196_ACEOF
11197if ac_fn_cxx_try_compile "$LINENO"; then :
11198 ac_cv_prog_cxx_g=yes
11199fi
11200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11201fi
11202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11203fi
11204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11205 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11206fi
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11208$as_echo "$ac_cv_prog_cxx_g" >&6; }
11209if test "$ac_test_CXXFLAGS" = set; then
11210 CXXFLAGS=$ac_save_CXXFLAGS
11211elif test $ac_cv_prog_cxx_g = yes; then
11212 if test "$GXX" = yes; then
11213 CXXFLAGS="-g -O2"
11214 else
11215 CXXFLAGS="-g"
11216 fi
11217else
11218 if test "$GXX" = yes; then
11219 CXXFLAGS="-O2"
11220 else
11221 CXXFLAGS=
11222 fi
11223fi
11224ac_ext=c
11225ac_cpp='$CPP $CPPFLAGS'
11226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11228ac_compiler_gnu=$ac_cv_c_compiler_gnu
11229
11230depcc="$CXX" am_compiler_list=
11231
11232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11233$as_echo_n "checking dependency style of $depcc... " >&6; }
11234if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11235 $as_echo_n "(cached) " >&6
11236else
11237 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11238 # We make a subdir and do the tests there. Otherwise we can end up
11239 # making bogus files that we don't know about and never remove. For
11240 # instance it was reported that on HP-UX the gcc test will end up
11241 # making a dummy file named `D' -- because `-MD' means `put the output
11242 # in D'.
11243 mkdir conftest.dir
11244 # Copy depcomp to subdir because otherwise we won't find it if we're
11245 # using a relative directory.
11246 cp "$am_depcomp" conftest.dir
11247 cd conftest.dir
11248 # We will build objects and dependencies in a subdirectory because
11249 # it helps to detect inapplicable dependency modes. For instance
11250 # both Tru64's cc and ICC support -MD to output dependencies as a
11251 # side effect of compilation, but ICC will put the dependencies in
11252 # the current directory while Tru64 will put them in the object
11253 # directory.
11254 mkdir sub
11255
11256 am_cv_CXX_dependencies_compiler_type=none
11257 if test "$am_compiler_list" = ""; then
11258 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11259 fi
11260 am__universal=false
11261 case " $depcc " in #(
11262 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11263 esac
11264
11265 for depmode in $am_compiler_list; do
11266 # Setup a source with many dependencies, because some compilers
11267 # like to wrap large dependency lists on column 80 (with \), and
11268 # we should not choose a depcomp mode which is confused by this.
11269 #
11270 # We need to recreate these files for each test, as the compiler may
11271 # overwrite some of them when testing with obscure command lines.
11272 # This happens at least with the AIX C compiler.
11273 : > sub/conftest.c
11274 for i in 1 2 3 4 5 6; do
11275 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11276 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11277 # Solaris 8's {/usr,}/bin/sh.
11278 touch sub/conftst$i.h
11279 done
11280 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11281
11282 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11283 # mode. It turns out that the SunPro C++ compiler does not properly
11284 # handle `-M -o', and we need to detect this. Also, some Intel
11285 # versions had trouble with output in subdirs
11286 am__obj=sub/conftest.${OBJEXT-o}
11287 am__minus_obj="-o $am__obj"
11288 case $depmode in
11289 gcc)
11290 # This depmode causes a compiler race in universal mode.
11291 test "$am__universal" = false || continue
11292 ;;
11293 nosideeffect)
11294 # after this tag, mechanisms are not by side-effect, so they'll
11295 # only be used when explicitly requested
11296 if test "x$enable_dependency_tracking" = xyes; then
11297 continue
11298 else
11299 break
11300 fi
11301 ;;
11302 msvisualcpp | msvcmsys)
11303 # This compiler won't grok `-c -o', but also, the minuso test has
11304 # not run yet. These depmodes are late enough in the game, and
11305 # so weak that their functioning should not be impacted.
11306 am__obj=conftest.${OBJEXT-o}
11307 am__minus_obj=
11308 ;;
11309 none) break ;;
11310 esac
11311 if depmode=$depmode \
11312 source=sub/conftest.c object=$am__obj \
11313 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11314 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11315 >/dev/null 2>conftest.err &&
11316 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11317 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11318 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11319 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11320 # icc doesn't choke on unknown options, it will just issue warnings
11321 # or remarks (even with -Werror). So we grep stderr for any message
11322 # that says an option was ignored or not supported.
11323 # When given -MP, icc 7.0 and 7.1 complain thusly:
11324 # icc: Command line warning: ignoring option '-M'; no argument required
11325 # The diagnosis changed in icc 8.0:
11326 # icc: Command line remark: option '-MP' not supported
11327 if (grep 'ignoring option' conftest.err ||
11328 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11329 am_cv_CXX_dependencies_compiler_type=$depmode
11330 break
11331 fi
11332 fi
11333 done
11334
11335 cd ..
11336 rm -rf conftest.dir
11337else
11338 am_cv_CXX_dependencies_compiler_type=none
11339fi
11340
11341fi
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11343$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11344CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11345
11346 if
11347 test "x$enable_dependency_tracking" != xno \
11348 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11349 am__fastdepCXX_TRUE=
11350 am__fastdepCXX_FALSE='#'
11351else
11352 am__fastdepCXX_TRUE='#'
11353 am__fastdepCXX_FALSE=
11354fi
11355
11356
11357if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11358 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11359 (test "X$CXX" != "Xg++"))) ; then
11360 ac_ext=cpp
11361ac_cpp='$CXXCPP $CPPFLAGS'
11362ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11363ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11364ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11366$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11367if test -z "$CXXCPP"; then
11368 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11369 $as_echo_n "(cached) " >&6
11370else
11371 # Double quotes because CXXCPP needs to be expanded
11372 for CXXCPP in "$CXX -E" "/lib/cpp"
11373 do
11374 ac_preproc_ok=false
11375for ac_cxx_preproc_warn_flag in '' yes
11376do
11377 # Use a header file that comes with gcc, so configuring glibc
11378 # with a fresh cross-compiler works.
11379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11380 # <limits.h> exists even on freestanding compilers.
11381 # On the NeXT, cc -E runs the code through the compiler's parser,
11382 # not just through cpp. "Syntax error" is here to catch this case.
11383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384/* end confdefs.h. */
11385#ifdef __STDC__
11386# include <limits.h>
11387#else
11388# include <assert.h>
11389#endif
11390 Syntax error
11391_ACEOF
11392if ac_fn_cxx_try_cpp "$LINENO"; then :
11393
11394else
11395 # Broken: fails on valid input.
11396continue
11397fi
11398rm -f conftest.err conftest.$ac_ext
11399
11400 # OK, works on sane cases. Now check whether nonexistent headers
11401 # can be detected and how.
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403/* end confdefs.h. */
11404#include <ac_nonexistent.h>
11405_ACEOF
11406if ac_fn_cxx_try_cpp "$LINENO"; then :
11407 # Broken: success on invalid input.
11408continue
11409else
11410 # Passes both tests.
11411ac_preproc_ok=:
11412break
11413fi
11414rm -f conftest.err conftest.$ac_ext
11415
11416done
11417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11418rm -f conftest.err conftest.$ac_ext
11419if $ac_preproc_ok; then :
11420 break
11421fi
11422
11423 done
11424 ac_cv_prog_CXXCPP=$CXXCPP
11425
11426fi
11427 CXXCPP=$ac_cv_prog_CXXCPP
11428else
11429 ac_cv_prog_CXXCPP=$CXXCPP
11430fi
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11432$as_echo "$CXXCPP" >&6; }
11433ac_preproc_ok=false
11434for ac_cxx_preproc_warn_flag in '' yes
11435do
11436 # Use a header file that comes with gcc, so configuring glibc
11437 # with a fresh cross-compiler works.
11438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11439 # <limits.h> exists even on freestanding compilers.
11440 # On the NeXT, cc -E runs the code through the compiler's parser,
11441 # not just through cpp. "Syntax error" is here to catch this case.
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443/* end confdefs.h. */
11444#ifdef __STDC__
11445# include <limits.h>
11446#else
11447# include <assert.h>
11448#endif
11449 Syntax error
11450_ACEOF
11451if ac_fn_cxx_try_cpp "$LINENO"; then :
11452
11453else
11454 # Broken: fails on valid input.
11455continue
11456fi
11457rm -f conftest.err conftest.$ac_ext
11458
11459 # OK, works on sane cases. Now check whether nonexistent headers
11460 # can be detected and how.
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462/* end confdefs.h. */
11463#include <ac_nonexistent.h>
11464_ACEOF
11465if ac_fn_cxx_try_cpp "$LINENO"; then :
11466 # Broken: success on invalid input.
11467continue
11468else
11469 # Passes both tests.
11470ac_preproc_ok=:
11471break
11472fi
11473rm -f conftest.err conftest.$ac_ext
11474
11475done
11476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11477rm -f conftest.err conftest.$ac_ext
11478if $ac_preproc_ok; then :
11479
11480else
11481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11483_lt_caught_CXX_error=yes; }
11484fi
11485
11486ac_ext=c
11487ac_cpp='$CPP $CPPFLAGS'
11488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11490ac_compiler_gnu=$ac_cv_c_compiler_gnu
11491
11492else
11493 _lt_caught_CXX_error=yes
11494fi
11495
11496
cristy3ed852e2009-09-05 21:47:34 +000011497
11498
11499
11500# Set options
11501enable_win32_dll=yes
11502
11503case $host in
cristy18304f92009-11-22 15:48:26 +000011504*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011505 if test -n "$ac_tool_prefix"; then
11506 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11507set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011509$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011510if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011511 $as_echo_n "(cached) " >&6
11512else
11513 if test -n "$AS"; then
11514 ac_cv_prog_AS="$AS" # Let the user override the test.
11515else
11516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $PATH
11518do
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011521 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11523 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011525 break 2
11526 fi
11527done
cristy8b350f62009-11-15 23:12:43 +000011528 done
cristy3ed852e2009-09-05 21:47:34 +000011529IFS=$as_save_IFS
11530
11531fi
11532fi
11533AS=$ac_cv_prog_AS
11534if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011536$as_echo "$AS" >&6; }
11537else
cristy8b350f62009-11-15 23:12:43 +000011538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011539$as_echo "no" >&6; }
11540fi
11541
11542
11543fi
11544if test -z "$ac_cv_prog_AS"; then
11545 ac_ct_AS=$AS
11546 # Extract the first word of "as", so it can be a program name with args.
11547set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011549$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011550if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011551 $as_echo_n "(cached) " >&6
11552else
11553 if test -n "$ac_ct_AS"; then
11554 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11555else
11556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557for as_dir in $PATH
11558do
11559 IFS=$as_save_IFS
11560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11563 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011565 break 2
11566 fi
11567done
cristy8b350f62009-11-15 23:12:43 +000011568 done
cristy3ed852e2009-09-05 21:47:34 +000011569IFS=$as_save_IFS
11570
11571fi
11572fi
11573ac_ct_AS=$ac_cv_prog_ac_ct_AS
11574if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011576$as_echo "$ac_ct_AS" >&6; }
11577else
cristy8b350f62009-11-15 23:12:43 +000011578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011579$as_echo "no" >&6; }
11580fi
11581
11582 if test "x$ac_ct_AS" = x; then
11583 AS="false"
11584 else
11585 case $cross_compiling:$ac_tool_warned in
11586yes:)
cristy8b350f62009-11-15 23:12:43 +000011587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11589ac_tool_warned=yes ;;
11590esac
11591 AS=$ac_ct_AS
11592 fi
11593else
11594 AS="$ac_cv_prog_AS"
11595fi
11596
11597 if test -n "$ac_tool_prefix"; then
11598 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11599set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011601$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011602if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011603 $as_echo_n "(cached) " >&6
11604else
11605 if test -n "$DLLTOOL"; then
11606 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11607else
11608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609for as_dir in $PATH
11610do
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11615 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011617 break 2
11618 fi
11619done
cristy8b350f62009-11-15 23:12:43 +000011620 done
cristy3ed852e2009-09-05 21:47:34 +000011621IFS=$as_save_IFS
11622
11623fi
11624fi
11625DLLTOOL=$ac_cv_prog_DLLTOOL
11626if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011628$as_echo "$DLLTOOL" >&6; }
11629else
cristy8b350f62009-11-15 23:12:43 +000011630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011631$as_echo "no" >&6; }
11632fi
11633
11634
11635fi
11636if test -z "$ac_cv_prog_DLLTOOL"; then
11637 ac_ct_DLLTOOL=$DLLTOOL
11638 # Extract the first word of "dlltool", so it can be a program name with args.
11639set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011641$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011642if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011643 $as_echo_n "(cached) " >&6
11644else
11645 if test -n "$ac_ct_DLLTOOL"; then
11646 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11647else
11648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649for as_dir in $PATH
11650do
11651 IFS=$as_save_IFS
11652 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011653 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11655 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011657 break 2
11658 fi
11659done
cristy8b350f62009-11-15 23:12:43 +000011660 done
cristy3ed852e2009-09-05 21:47:34 +000011661IFS=$as_save_IFS
11662
11663fi
11664fi
11665ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11666if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011668$as_echo "$ac_ct_DLLTOOL" >&6; }
11669else
cristy8b350f62009-11-15 23:12:43 +000011670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011671$as_echo "no" >&6; }
11672fi
11673
11674 if test "x$ac_ct_DLLTOOL" = x; then
11675 DLLTOOL="false"
11676 else
11677 case $cross_compiling:$ac_tool_warned in
11678yes:)
cristy8b350f62009-11-15 23:12:43 +000011679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11681ac_tool_warned=yes ;;
11682esac
11683 DLLTOOL=$ac_ct_DLLTOOL
11684 fi
11685else
11686 DLLTOOL="$ac_cv_prog_DLLTOOL"
11687fi
11688
11689 if test -n "$ac_tool_prefix"; then
11690 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11691set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011693$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011694if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011695 $as_echo_n "(cached) " >&6
11696else
11697 if test -n "$OBJDUMP"; then
11698 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11699else
11700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701for as_dir in $PATH
11702do
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11707 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011709 break 2
11710 fi
11711done
cristy8b350f62009-11-15 23:12:43 +000011712 done
cristy3ed852e2009-09-05 21:47:34 +000011713IFS=$as_save_IFS
11714
11715fi
11716fi
11717OBJDUMP=$ac_cv_prog_OBJDUMP
11718if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011720$as_echo "$OBJDUMP" >&6; }
11721else
cristy8b350f62009-11-15 23:12:43 +000011722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011723$as_echo "no" >&6; }
11724fi
11725
11726
11727fi
11728if test -z "$ac_cv_prog_OBJDUMP"; then
11729 ac_ct_OBJDUMP=$OBJDUMP
11730 # Extract the first word of "objdump", so it can be a program name with args.
11731set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011733$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011734if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011735 $as_echo_n "(cached) " >&6
11736else
11737 if test -n "$ac_ct_OBJDUMP"; then
11738 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11739else
11740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741for as_dir in $PATH
11742do
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011745 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11747 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011749 break 2
11750 fi
11751done
cristy8b350f62009-11-15 23:12:43 +000011752 done
cristy3ed852e2009-09-05 21:47:34 +000011753IFS=$as_save_IFS
11754
11755fi
11756fi
11757ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11758if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011760$as_echo "$ac_ct_OBJDUMP" >&6; }
11761else
cristy8b350f62009-11-15 23:12:43 +000011762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011763$as_echo "no" >&6; }
11764fi
11765
11766 if test "x$ac_ct_OBJDUMP" = x; then
11767 OBJDUMP="false"
11768 else
11769 case $cross_compiling:$ac_tool_warned in
11770yes:)
cristy8b350f62009-11-15 23:12:43 +000011771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11773ac_tool_warned=yes ;;
11774esac
11775 OBJDUMP=$ac_ct_OBJDUMP
11776 fi
11777else
11778 OBJDUMP="$ac_cv_prog_OBJDUMP"
11779fi
11780
11781 ;;
11782esac
11783
11784test -z "$AS" && AS=as
11785
11786
11787
11788
11789
11790test -z "$DLLTOOL" && DLLTOOL=dlltool
11791
11792
11793
11794
11795
11796test -z "$OBJDUMP" && OBJDUMP=objdump
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011807if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011808 enableval=$enable_shared; p=${PACKAGE-default}
11809 case $enableval in
11810 yes) enable_shared=yes ;;
11811 no) enable_shared=no ;;
11812 *)
11813 enable_shared=no
11814 # Look at the argument we got. We use all the common list separators.
11815 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11816 for pkg in $enableval; do
11817 IFS="$lt_save_ifs"
11818 if test "X$pkg" = "X$p"; then
11819 enable_shared=yes
11820 fi
11821 done
11822 IFS="$lt_save_ifs"
11823 ;;
11824 esac
11825else
11826 enable_shared=yes
11827fi
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000011838if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011839 enableval=$enable_static; p=${PACKAGE-default}
11840 case $enableval in
11841 yes) enable_static=yes ;;
11842 no) enable_static=no ;;
11843 *)
11844 enable_static=no
11845 # Look at the argument we got. We use all the common list separators.
11846 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11847 for pkg in $enableval; do
11848 IFS="$lt_save_ifs"
11849 if test "X$pkg" = "X$p"; then
11850 enable_static=yes
11851 fi
11852 done
11853 IFS="$lt_save_ifs"
11854 ;;
11855 esac
11856else
11857 enable_static=yes
11858fi
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000011870if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011871 withval=$with_pic; pic_mode="$withval"
11872else
11873 pic_mode=default
11874fi
11875
11876
11877test -z "$pic_mode" && pic_mode=default
11878
11879
11880
11881
11882
11883
11884
11885 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000011886if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011887 enableval=$enable_fast_install; p=${PACKAGE-default}
11888 case $enableval in
11889 yes) enable_fast_install=yes ;;
11890 no) enable_fast_install=no ;;
11891 *)
11892 enable_fast_install=no
11893 # Look at the argument we got. We use all the common list separators.
11894 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11895 for pkg in $enableval; do
11896 IFS="$lt_save_ifs"
11897 if test "X$pkg" = "X$p"; then
11898 enable_fast_install=yes
11899 fi
11900 done
11901 IFS="$lt_save_ifs"
11902 ;;
11903 esac
11904else
11905 enable_fast_install=yes
11906fi
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918# This can be used to rebuild libtool when needed
11919LIBTOOL_DEPS="$ltmain"
11920
11921# Always use our own libtool.
11922LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948test -z "$LN_S" && LN_S="ln -s"
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963if test -n "${ZSH_VERSION+set}" ; then
11964 setopt NO_GLOB_SUBST
11965fi
11966
cristy8b350f62009-11-15 23:12:43 +000011967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011968$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011969if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011970 $as_echo_n "(cached) " >&6
11971else
11972 rm -f .libs 2>/dev/null
11973mkdir .libs 2>/dev/null
11974if test -d .libs; then
11975 lt_cv_objdir=.libs
11976else
11977 # MS-DOS does not allow filenames that begin with a dot.
11978 lt_cv_objdir=_libs
11979fi
11980rmdir .libs 2>/dev/null
11981fi
cristy8b350f62009-11-15 23:12:43 +000011982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011983$as_echo "$lt_cv_objdir" >&6; }
11984objdir=$lt_cv_objdir
11985
11986
11987
11988
11989
11990cat >>confdefs.h <<_ACEOF
11991#define LT_OBJDIR "$lt_cv_objdir/"
11992_ACEOF
11993
11994
11995
11996
cristy18304f92009-11-22 15:48:26 +000011997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
cristy3ed852e2009-09-05 21:47:34 +000012010case $host_os in
12011aix3*)
12012 # AIX sometimes has problems with the GCC collect2 program. For some
12013 # reason, if we set the COLLECT_NAMES environment variable, the problems
12014 # vanish in a puff of smoke.
12015 if test "X${COLLECT_NAMES+set}" != Xset; then
12016 COLLECT_NAMES=
12017 export COLLECT_NAMES
12018 fi
12019 ;;
12020esac
12021
cristy18304f92009-11-22 15:48:26 +000012022# Sed substitution that helps us do robust quoting. It backslashifies
12023# metacharacters that are still active within double-quoted strings.
12024sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12025
12026# Same as above, but do not quote variable references.
12027double_quote_subst='s/\(["`\\]\)/\\\1/g'
12028
12029# Sed substitution to delay expansion of an escaped shell variable in a
12030# double_quote_subst'ed string.
12031delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12032
12033# Sed substitution to delay expansion of an escaped single quote.
12034delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12035
12036# Sed substitution to avoid accidental globbing in evaled expressions
12037no_glob_subst='s/\*/\\\*/g'
12038
cristy3ed852e2009-09-05 21:47:34 +000012039# Global variables:
12040ofile=libtool
12041can_build_shared=yes
12042
12043# All known linkers require a `.a' archive for static linking (except MSVC,
12044# which needs '.lib').
12045libext=a
12046
12047with_gnu_ld="$lt_cv_prog_gnu_ld"
12048
12049old_CC="$CC"
12050old_CFLAGS="$CFLAGS"
12051
12052# Set sane defaults for various variables
12053test -z "$CC" && CC=cc
12054test -z "$LTCC" && LTCC=$CC
12055test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12056test -z "$LD" && LD=ld
12057test -z "$ac_objext" && ac_objext=o
12058
12059for cc_temp in $compiler""; do
12060 case $cc_temp in
12061 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12062 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12063 \-*) ;;
12064 *) break;;
12065 esac
12066done
cristy18304f92009-11-22 15:48:26 +000012067cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012068
12069
12070# Only perform the check for file, if the check method requires it
12071test -z "$MAGIC_CMD" && MAGIC_CMD=file
12072case $deplibs_check_method in
12073file_magic*)
12074 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012076$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012077if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012078 $as_echo_n "(cached) " >&6
12079else
12080 case $MAGIC_CMD in
12081[\\/*] | ?:[\\/]*)
12082 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12083 ;;
12084*)
12085 lt_save_MAGIC_CMD="$MAGIC_CMD"
12086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12087 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12088 for ac_dir in $ac_dummy; do
12089 IFS="$lt_save_ifs"
12090 test -z "$ac_dir" && ac_dir=.
12091 if test -f $ac_dir/${ac_tool_prefix}file; then
12092 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12093 if test -n "$file_magic_test_file"; then
12094 case $deplibs_check_method in
12095 "file_magic "*)
12096 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12098 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12099 $EGREP "$file_magic_regex" > /dev/null; then
12100 :
12101 else
12102 cat <<_LT_EOF 1>&2
12103
12104*** Warning: the command libtool uses to detect shared libraries,
12105*** $file_magic_cmd, produces output that libtool cannot recognize.
12106*** The result is that libtool may fail to recognize shared libraries
12107*** as such. This will affect the creation of libtool libraries that
12108*** depend on shared libraries, but programs linked with such libtool
12109*** libraries will work regardless of this problem. Nevertheless, you
12110*** may want to report the problem to your system manager and/or to
12111*** bug-libtool@gnu.org
12112
12113_LT_EOF
12114 fi ;;
12115 esac
12116 fi
12117 break
12118 fi
12119 done
12120 IFS="$lt_save_ifs"
12121 MAGIC_CMD="$lt_save_MAGIC_CMD"
12122 ;;
12123esac
12124fi
12125
12126MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12127if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012129$as_echo "$MAGIC_CMD" >&6; }
12130else
cristy8b350f62009-11-15 23:12:43 +000012131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012132$as_echo "no" >&6; }
12133fi
12134
12135
12136
12137
12138
12139if test -z "$lt_cv_path_MAGIC_CMD"; then
12140 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012142$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012143if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012144 $as_echo_n "(cached) " >&6
12145else
12146 case $MAGIC_CMD in
12147[\\/*] | ?:[\\/]*)
12148 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12149 ;;
12150*)
12151 lt_save_MAGIC_CMD="$MAGIC_CMD"
12152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12153 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12154 for ac_dir in $ac_dummy; do
12155 IFS="$lt_save_ifs"
12156 test -z "$ac_dir" && ac_dir=.
12157 if test -f $ac_dir/file; then
12158 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12159 if test -n "$file_magic_test_file"; then
12160 case $deplibs_check_method in
12161 "file_magic "*)
12162 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12164 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12165 $EGREP "$file_magic_regex" > /dev/null; then
12166 :
12167 else
12168 cat <<_LT_EOF 1>&2
12169
12170*** Warning: the command libtool uses to detect shared libraries,
12171*** $file_magic_cmd, produces output that libtool cannot recognize.
12172*** The result is that libtool may fail to recognize shared libraries
12173*** as such. This will affect the creation of libtool libraries that
12174*** depend on shared libraries, but programs linked with such libtool
12175*** libraries will work regardless of this problem. Nevertheless, you
12176*** may want to report the problem to your system manager and/or to
12177*** bug-libtool@gnu.org
12178
12179_LT_EOF
12180 fi ;;
12181 esac
12182 fi
12183 break
12184 fi
12185 done
12186 IFS="$lt_save_ifs"
12187 MAGIC_CMD="$lt_save_MAGIC_CMD"
12188 ;;
12189esac
12190fi
12191
12192MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12193if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012195$as_echo "$MAGIC_CMD" >&6; }
12196else
cristy8b350f62009-11-15 23:12:43 +000012197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012198$as_echo "no" >&6; }
12199fi
12200
12201
12202 else
12203 MAGIC_CMD=:
12204 fi
12205fi
12206
12207 fi
12208 ;;
12209esac
12210
12211# Use C for the default configuration in the libtool script
12212
12213lt_save_CC="$CC"
12214ac_ext=c
12215ac_cpp='$CPP $CPPFLAGS'
12216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12218ac_compiler_gnu=$ac_cv_c_compiler_gnu
12219
12220
12221# Source file extension for C test sources.
12222ac_ext=c
12223
12224# Object file extension for compiled C test sources.
12225objext=o
12226objext=$objext
12227
12228# Code to be used in simple compile tests
12229lt_simple_compile_test_code="int some_variable = 0;"
12230
12231# Code to be used in simple link tests
12232lt_simple_link_test_code='int main(){return(0);}'
12233
12234
12235
12236
12237
12238
12239
12240# If no C compiler was specified, use CC.
12241LTCC=${LTCC-"$CC"}
12242
12243# If no C compiler flags were specified, use CFLAGS.
12244LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12245
12246# Allow CC to be a program name with arguments.
12247compiler=$CC
12248
12249# Save the default compiler, since it gets overwritten when the other
12250# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12251compiler_DEFAULT=$CC
12252
12253# save warnings/boilerplate of simple test code
12254ac_outfile=conftest.$ac_objext
12255echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12256eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12257_lt_compiler_boilerplate=`cat conftest.err`
12258$RM conftest*
12259
12260ac_outfile=conftest.$ac_objext
12261echo "$lt_simple_link_test_code" >conftest.$ac_ext
12262eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12263_lt_linker_boilerplate=`cat conftest.err`
12264$RM -r conftest*
12265
12266
12267## CAVEAT EMPTOR:
12268## There is no encapsulation within the following macros, do not change
12269## the running order or otherwise move them around unless you know exactly
12270## what you are doing...
12271if test -n "$compiler"; then
12272
12273lt_prog_compiler_no_builtin_flag=
12274
12275if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012276 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000012277
cristy8b350f62009-11-15 23:12:43 +000012278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012279$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012280if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012281 $as_echo_n "(cached) " >&6
12282else
12283 lt_cv_prog_compiler_rtti_exceptions=no
12284 ac_outfile=conftest.$ac_objext
12285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12286 lt_compiler_flag="-fno-rtti -fno-exceptions"
12287 # Insert the option either (1) after the last *FLAGS variable, or
12288 # (2) before a word containing "conftest.", or (3) at the end.
12289 # Note that $ac_compile itself does not contain backslashes and begins
12290 # with a dollar sign (not a hyphen), so the echo should work correctly.
12291 # The option is referenced via a variable to avoid confusing sed.
12292 lt_compile=`echo "$ac_compile" | $SED \
12293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12295 -e 's:$: $lt_compiler_flag:'`
cristy4689cf02010-02-17 21:15:45 +000012296 (eval echo "\"\$as_me:12296: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012297 (eval "$lt_compile" 2>conftest.err)
12298 ac_status=$?
12299 cat conftest.err >&5
cristy4689cf02010-02-17 21:15:45 +000012300 echo "$as_me:12300: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012301 if (exit $ac_status) && test -s "$ac_outfile"; then
12302 # The compiler can only warn and ignore the option if not recognized
12303 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000012304 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012305 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12306 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12307 lt_cv_prog_compiler_rtti_exceptions=yes
12308 fi
12309 fi
12310 $RM conftest*
12311
12312fi
cristy8b350f62009-11-15 23:12:43 +000012313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012314$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12315
12316if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12317 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12318else
12319 :
12320fi
12321
12322fi
12323
12324
12325
12326
12327
12328
12329 lt_prog_compiler_wl=
12330lt_prog_compiler_pic=
12331lt_prog_compiler_static=
12332
cristy8b350f62009-11-15 23:12:43 +000012333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012334$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12335
12336 if test "$GCC" = yes; then
12337 lt_prog_compiler_wl='-Wl,'
12338 lt_prog_compiler_static='-static'
12339
12340 case $host_os in
12341 aix*)
12342 # All AIX code is PIC.
12343 if test "$host_cpu" = ia64; then
12344 # AIX 5 now supports IA64 processor
12345 lt_prog_compiler_static='-Bstatic'
12346 fi
12347 ;;
12348
12349 amigaos*)
12350 case $host_cpu in
12351 powerpc)
12352 # see comment about AmigaOS4 .so support
12353 lt_prog_compiler_pic='-fPIC'
12354 ;;
12355 m68k)
12356 # FIXME: we need at least 68020 code to build shared libraries, but
12357 # adding the `-m68020' flag to GCC prevents building anything better,
12358 # like `-m68040'.
12359 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12360 ;;
12361 esac
12362 ;;
12363
12364 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12365 # PIC is the default for these OSes.
12366 ;;
12367
12368 mingw* | cygwin* | pw32* | os2* | cegcc*)
12369 # This hack is so that the source file can tell whether it is being
12370 # built for inclusion in a dll (and should export symbols for example).
12371 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12372 # (--disable-auto-import) libraries
12373 lt_prog_compiler_pic='-DDLL_EXPORT'
12374 ;;
12375
12376 darwin* | rhapsody*)
12377 # PIC is the default on this platform
12378 # Common symbols not allowed in MH_DYLIB files
12379 lt_prog_compiler_pic='-fno-common'
12380 ;;
12381
12382 hpux*)
12383 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12384 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12385 # sets the default TLS model and affects inlining.
12386 case $host_cpu in
12387 hppa*64*)
12388 # +Z the default
12389 ;;
12390 *)
12391 lt_prog_compiler_pic='-fPIC'
12392 ;;
12393 esac
12394 ;;
12395
12396 interix[3-9]*)
12397 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12398 # Instead, we relocate shared libraries at runtime.
12399 ;;
12400
12401 msdosdjgpp*)
12402 # Just because we use GCC doesn't mean we suddenly get shared libraries
12403 # on systems that don't support them.
12404 lt_prog_compiler_can_build_shared=no
12405 enable_shared=no
12406 ;;
12407
12408 *nto* | *qnx*)
12409 # QNX uses GNU C++, but need to define -shared option too, otherwise
12410 # it will coredump.
12411 lt_prog_compiler_pic='-fPIC -shared'
12412 ;;
12413
12414 sysv4*MP*)
12415 if test -d /usr/nec; then
12416 lt_prog_compiler_pic=-Kconform_pic
12417 fi
12418 ;;
12419
12420 *)
12421 lt_prog_compiler_pic='-fPIC'
12422 ;;
12423 esac
12424 else
12425 # PORTME Check for flag to pass linker flags through the system compiler.
12426 case $host_os in
12427 aix*)
12428 lt_prog_compiler_wl='-Wl,'
12429 if test "$host_cpu" = ia64; then
12430 # AIX 5 now supports IA64 processor
12431 lt_prog_compiler_static='-Bstatic'
12432 else
12433 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12434 fi
12435 ;;
12436
12437 mingw* | cygwin* | pw32* | os2* | cegcc*)
12438 # This hack is so that the source file can tell whether it is being
12439 # built for inclusion in a dll (and should export symbols for example).
12440 lt_prog_compiler_pic='-DDLL_EXPORT'
12441 ;;
12442
12443 hpux9* | hpux10* | hpux11*)
12444 lt_prog_compiler_wl='-Wl,'
12445 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12446 # not for PA HP-UX.
12447 case $host_cpu in
12448 hppa*64*|ia64*)
12449 # +Z the default
12450 ;;
12451 *)
12452 lt_prog_compiler_pic='+Z'
12453 ;;
12454 esac
12455 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12456 lt_prog_compiler_static='${wl}-a ${wl}archive'
12457 ;;
12458
12459 irix5* | irix6* | nonstopux*)
12460 lt_prog_compiler_wl='-Wl,'
12461 # PIC (with -KPIC) is the default.
12462 lt_prog_compiler_static='-non_shared'
12463 ;;
12464
cristy18304f92009-11-22 15:48:26 +000012465 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012466 case $cc_basename in
12467 # old Intel for x86_64 which still supported -KPIC.
12468 ecc*)
12469 lt_prog_compiler_wl='-Wl,'
12470 lt_prog_compiler_pic='-KPIC'
12471 lt_prog_compiler_static='-static'
12472 ;;
12473 # icc used to be incompatible with GCC.
12474 # ICC 10 doesn't accept -KPIC any more.
12475 icc* | ifort*)
12476 lt_prog_compiler_wl='-Wl,'
12477 lt_prog_compiler_pic='-fPIC'
12478 lt_prog_compiler_static='-static'
12479 ;;
12480 # Lahey Fortran 8.1.
12481 lf95*)
12482 lt_prog_compiler_wl='-Wl,'
12483 lt_prog_compiler_pic='--shared'
12484 lt_prog_compiler_static='--static'
12485 ;;
cristy18304f92009-11-22 15:48:26 +000012486 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000012487 # Portland Group compilers (*not* the Pentium gcc compiler,
12488 # which looks to be a dead project)
12489 lt_prog_compiler_wl='-Wl,'
12490 lt_prog_compiler_pic='-fpic'
12491 lt_prog_compiler_static='-Bstatic'
12492 ;;
12493 ccc*)
12494 lt_prog_compiler_wl='-Wl,'
12495 # All Alpha code is PIC.
12496 lt_prog_compiler_static='-non_shared'
12497 ;;
cristy18304f92009-11-22 15:48:26 +000012498 xl*)
12499 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000012500 lt_prog_compiler_wl='-Wl,'
12501 lt_prog_compiler_pic='-qpic'
12502 lt_prog_compiler_static='-qstaticlink'
12503 ;;
12504 *)
12505 case `$CC -V 2>&1 | sed 5q` in
12506 *Sun\ C*)
12507 # Sun C 5.9
12508 lt_prog_compiler_pic='-KPIC'
12509 lt_prog_compiler_static='-Bstatic'
12510 lt_prog_compiler_wl='-Wl,'
12511 ;;
cristy18304f92009-11-22 15:48:26 +000012512 *Sun\ F*)
12513 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12514 lt_prog_compiler_pic='-KPIC'
12515 lt_prog_compiler_static='-Bstatic'
12516 lt_prog_compiler_wl=''
12517 ;;
cristy3ed852e2009-09-05 21:47:34 +000012518 esac
12519 ;;
12520 esac
12521 ;;
12522
12523 newsos6)
12524 lt_prog_compiler_pic='-KPIC'
12525 lt_prog_compiler_static='-Bstatic'
12526 ;;
12527
12528 *nto* | *qnx*)
12529 # QNX uses GNU C++, but need to define -shared option too, otherwise
12530 # it will coredump.
12531 lt_prog_compiler_pic='-fPIC -shared'
12532 ;;
12533
12534 osf3* | osf4* | osf5*)
12535 lt_prog_compiler_wl='-Wl,'
12536 # All OSF/1 code is PIC.
12537 lt_prog_compiler_static='-non_shared'
12538 ;;
12539
12540 rdos*)
12541 lt_prog_compiler_static='-non_shared'
12542 ;;
12543
12544 solaris*)
12545 lt_prog_compiler_pic='-KPIC'
12546 lt_prog_compiler_static='-Bstatic'
12547 case $cc_basename in
12548 f77* | f90* | f95*)
12549 lt_prog_compiler_wl='-Qoption ld ';;
12550 *)
12551 lt_prog_compiler_wl='-Wl,';;
12552 esac
12553 ;;
12554
12555 sunos4*)
12556 lt_prog_compiler_wl='-Qoption ld '
12557 lt_prog_compiler_pic='-PIC'
12558 lt_prog_compiler_static='-Bstatic'
12559 ;;
12560
12561 sysv4 | sysv4.2uw2* | sysv4.3*)
12562 lt_prog_compiler_wl='-Wl,'
12563 lt_prog_compiler_pic='-KPIC'
12564 lt_prog_compiler_static='-Bstatic'
12565 ;;
12566
12567 sysv4*MP*)
12568 if test -d /usr/nec ;then
12569 lt_prog_compiler_pic='-Kconform_pic'
12570 lt_prog_compiler_static='-Bstatic'
12571 fi
12572 ;;
12573
12574 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12575 lt_prog_compiler_wl='-Wl,'
12576 lt_prog_compiler_pic='-KPIC'
12577 lt_prog_compiler_static='-Bstatic'
12578 ;;
12579
12580 unicos*)
12581 lt_prog_compiler_wl='-Wl,'
12582 lt_prog_compiler_can_build_shared=no
12583 ;;
12584
12585 uts4*)
12586 lt_prog_compiler_pic='-pic'
12587 lt_prog_compiler_static='-Bstatic'
12588 ;;
12589
12590 *)
12591 lt_prog_compiler_can_build_shared=no
12592 ;;
12593 esac
12594 fi
12595
12596case $host_os in
12597 # For platforms which do not support PIC, -DPIC is meaningless:
12598 *djgpp*)
12599 lt_prog_compiler_pic=
12600 ;;
12601 *)
12602 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12603 ;;
12604esac
cristy8b350f62009-11-15 23:12:43 +000012605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012606$as_echo "$lt_prog_compiler_pic" >&6; }
12607
12608
12609
12610
12611
12612
12613#
12614# Check to make sure the PIC flag actually works.
12615#
12616if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012618$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012619if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012620 $as_echo_n "(cached) " >&6
12621else
12622 lt_cv_prog_compiler_pic_works=no
12623 ac_outfile=conftest.$ac_objext
12624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12625 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12626 # Insert the option either (1) after the last *FLAGS variable, or
12627 # (2) before a word containing "conftest.", or (3) at the end.
12628 # Note that $ac_compile itself does not contain backslashes and begins
12629 # with a dollar sign (not a hyphen), so the echo should work correctly.
12630 # The option is referenced via a variable to avoid confusing sed.
12631 lt_compile=`echo "$ac_compile" | $SED \
12632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12634 -e 's:$: $lt_compiler_flag:'`
cristy4689cf02010-02-17 21:15:45 +000012635 (eval echo "\"\$as_me:12635: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012636 (eval "$lt_compile" 2>conftest.err)
12637 ac_status=$?
12638 cat conftest.err >&5
cristy4689cf02010-02-17 21:15:45 +000012639 echo "$as_me:12639: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012640 if (exit $ac_status) && test -s "$ac_outfile"; then
12641 # The compiler can only warn and ignore the option if not recognized
12642 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000012643 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12645 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12646 lt_cv_prog_compiler_pic_works=yes
12647 fi
12648 fi
12649 $RM conftest*
12650
12651fi
cristy8b350f62009-11-15 23:12:43 +000012652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012653$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12654
12655if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12656 case $lt_prog_compiler_pic in
12657 "" | " "*) ;;
12658 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12659 esac
12660else
12661 lt_prog_compiler_pic=
12662 lt_prog_compiler_can_build_shared=no
12663fi
12664
12665fi
12666
12667
12668
12669
12670
12671
12672#
12673# Check to make sure the static flag actually works.
12674#
12675wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012677$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012678if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012679 $as_echo_n "(cached) " >&6
12680else
12681 lt_cv_prog_compiler_static_works=no
12682 save_LDFLAGS="$LDFLAGS"
12683 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12684 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12685 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12686 # The linker can only warn and ignore the option if not recognized
12687 # So say no if there are warnings
12688 if test -s conftest.err; then
12689 # Append any errors to the config.log.
12690 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000012691 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12693 if diff conftest.exp conftest.er2 >/dev/null; then
12694 lt_cv_prog_compiler_static_works=yes
12695 fi
12696 else
12697 lt_cv_prog_compiler_static_works=yes
12698 fi
12699 fi
12700 $RM -r conftest*
12701 LDFLAGS="$save_LDFLAGS"
12702
12703fi
cristy8b350f62009-11-15 23:12:43 +000012704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012705$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12706
12707if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12708 :
12709else
12710 lt_prog_compiler_static=
12711fi
12712
12713
12714
12715
12716
12717
12718
cristy8b350f62009-11-15 23:12:43 +000012719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012720$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012721if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012722 $as_echo_n "(cached) " >&6
12723else
12724 lt_cv_prog_compiler_c_o=no
12725 $RM -r conftest 2>/dev/null
12726 mkdir conftest
12727 cd conftest
12728 mkdir out
12729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12730
12731 lt_compiler_flag="-o out/conftest2.$ac_objext"
12732 # Insert the option either (1) after the last *FLAGS variable, or
12733 # (2) before a word containing "conftest.", or (3) at the end.
12734 # Note that $ac_compile itself does not contain backslashes and begins
12735 # with a dollar sign (not a hyphen), so the echo should work correctly.
12736 lt_compile=`echo "$ac_compile" | $SED \
12737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12739 -e 's:$: $lt_compiler_flag:'`
cristy4689cf02010-02-17 21:15:45 +000012740 (eval echo "\"\$as_me:12740: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012741 (eval "$lt_compile" 2>out/conftest.err)
12742 ac_status=$?
12743 cat out/conftest.err >&5
cristy4689cf02010-02-17 21:15:45 +000012744 echo "$as_me:12744: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012745 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12746 then
12747 # The compiler can only warn and ignore the option if not recognized
12748 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012749 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012750 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12751 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12752 lt_cv_prog_compiler_c_o=yes
12753 fi
12754 fi
12755 chmod u+w . 2>&5
12756 $RM conftest*
12757 # SGI C++ compiler will create directory out/ii_files/ for
12758 # template instantiation
12759 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12760 $RM out/* && rmdir out
12761 cd ..
12762 $RM -r conftest
12763 $RM conftest*
12764
12765fi
cristy8b350f62009-11-15 23:12:43 +000012766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012767$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12768
12769
12770
12771
12772
12773
cristy8b350f62009-11-15 23:12:43 +000012774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012775$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012776if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012777 $as_echo_n "(cached) " >&6
12778else
12779 lt_cv_prog_compiler_c_o=no
12780 $RM -r conftest 2>/dev/null
12781 mkdir conftest
12782 cd conftest
12783 mkdir out
12784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12785
12786 lt_compiler_flag="-o out/conftest2.$ac_objext"
12787 # Insert the option either (1) after the last *FLAGS variable, or
12788 # (2) before a word containing "conftest.", or (3) at the end.
12789 # Note that $ac_compile itself does not contain backslashes and begins
12790 # with a dollar sign (not a hyphen), so the echo should work correctly.
12791 lt_compile=`echo "$ac_compile" | $SED \
12792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12794 -e 's:$: $lt_compiler_flag:'`
cristy4689cf02010-02-17 21:15:45 +000012795 (eval echo "\"\$as_me:12795: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012796 (eval "$lt_compile" 2>out/conftest.err)
12797 ac_status=$?
12798 cat out/conftest.err >&5
cristy4689cf02010-02-17 21:15:45 +000012799 echo "$as_me:12799: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012800 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12801 then
12802 # The compiler can only warn and ignore the option if not recognized
12803 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012804 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012805 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12806 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12807 lt_cv_prog_compiler_c_o=yes
12808 fi
12809 fi
12810 chmod u+w . 2>&5
12811 $RM conftest*
12812 # SGI C++ compiler will create directory out/ii_files/ for
12813 # template instantiation
12814 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12815 $RM out/* && rmdir out
12816 cd ..
12817 $RM -r conftest
12818 $RM conftest*
12819
12820fi
cristy8b350f62009-11-15 23:12:43 +000012821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012822$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12823
12824
12825
12826
12827hard_links="nottested"
12828if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12829 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000012830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012831$as_echo_n "checking if we can lock with hard links... " >&6; }
12832 hard_links=yes
12833 $RM conftest*
12834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12835 touch conftest.a
12836 ln conftest.a conftest.b 2>&5 || hard_links=no
12837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000012838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012839$as_echo "$hard_links" >&6; }
12840 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000012841 { $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 +000012842$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12843 need_locks=warn
12844 fi
12845else
12846 need_locks=no
12847fi
12848
12849
12850
12851
12852
12853
cristy8b350f62009-11-15 23:12:43 +000012854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000012855$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12856
12857 runpath_var=
12858 allow_undefined_flag=
12859 always_export_symbols=no
12860 archive_cmds=
12861 archive_expsym_cmds=
12862 compiler_needs_object=no
12863 enable_shared_with_static_runtimes=no
12864 export_dynamic_flag_spec=
12865 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12866 hardcode_automatic=no
12867 hardcode_direct=no
12868 hardcode_direct_absolute=no
12869 hardcode_libdir_flag_spec=
12870 hardcode_libdir_flag_spec_ld=
12871 hardcode_libdir_separator=
12872 hardcode_minus_L=no
12873 hardcode_shlibpath_var=unsupported
12874 inherit_rpath=no
12875 link_all_deplibs=unknown
12876 module_cmds=
12877 module_expsym_cmds=
12878 old_archive_from_new_cmds=
12879 old_archive_from_expsyms_cmds=
12880 thread_safe_flag_spec=
12881 whole_archive_flag_spec=
12882 # include_expsyms should be a list of space-separated symbols to be *always*
12883 # included in the symbol list
12884 include_expsyms=
12885 # exclude_expsyms can be an extended regexp of symbols to exclude
12886 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12887 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12888 # as well as any symbol that contains `d'.
12889 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12890 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12891 # platforms (ab)use it in PIC code, but their linkers get confused if
12892 # the symbol is explicitly referenced. Since portable code cannot
12893 # rely on this symbol name, it's probably fine to never include it in
12894 # preloaded symbol tables.
12895 # Exclude shared library initialization/finalization symbols.
12896 extract_expsyms_cmds=
12897
12898 case $host_os in
12899 cygwin* | mingw* | pw32* | cegcc*)
12900 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12901 # When not using gcc, we currently assume that we are using
12902 # Microsoft Visual C++.
12903 if test "$GCC" != yes; then
12904 with_gnu_ld=no
12905 fi
12906 ;;
12907 interix*)
12908 # we just hope/assume this is gcc and not c89 (= MSVC++)
12909 with_gnu_ld=yes
12910 ;;
12911 openbsd*)
12912 with_gnu_ld=no
12913 ;;
12914 esac
12915
12916 ld_shlibs=yes
12917 if test "$with_gnu_ld" = yes; then
12918 # If archive_cmds runs LD, not CC, wlarc should be empty
12919 wlarc='${wl}'
12920
12921 # Set some defaults for GNU ld with shared library support. These
12922 # are reset later if shared libraries are not supported. Putting them
12923 # here allows them to be overridden if necessary.
12924 runpath_var=LD_RUN_PATH
12925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12926 export_dynamic_flag_spec='${wl}--export-dynamic'
12927 # ancient GNU ld didn't support --whole-archive et. al.
12928 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12929 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12930 else
12931 whole_archive_flag_spec=
12932 fi
12933 supports_anon_versioning=no
12934 case `$LD -v 2>&1` in
12935 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12938 *\ 2.11.*) ;; # other 2.11 versions
12939 *) supports_anon_versioning=yes ;;
12940 esac
12941
12942 # See if GNU ld supports shared libraries.
12943 case $host_os in
12944 aix[3-9]*)
12945 # On AIX/PPC, the GNU linker is very broken
12946 if test "$host_cpu" != ia64; then
12947 ld_shlibs=no
12948 cat <<_LT_EOF 1>&2
12949
cristy18304f92009-11-22 15:48:26 +000012950*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000012951*** to be unable to reliably create shared libraries on AIX.
12952*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000012953*** really care for shared libraries, you may want to modify your PATH
12954*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000012955
12956_LT_EOF
12957 fi
12958 ;;
12959
12960 amigaos*)
12961 case $host_cpu in
12962 powerpc)
12963 # see comment about AmigaOS4 .so support
12964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12965 archive_expsym_cmds=''
12966 ;;
12967 m68k)
12968 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)'
12969 hardcode_libdir_flag_spec='-L$libdir'
12970 hardcode_minus_L=yes
12971 ;;
12972 esac
12973 ;;
12974
12975 beos*)
12976 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12977 allow_undefined_flag=unsupported
12978 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12979 # support --undefined. This deserves some investigation. FIXME
12980 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12981 else
12982 ld_shlibs=no
12983 fi
12984 ;;
12985
12986 cygwin* | mingw* | pw32* | cegcc*)
12987 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12988 # as there is no search path for DLLs.
12989 hardcode_libdir_flag_spec='-L$libdir'
12990 allow_undefined_flag=unsupported
12991 always_export_symbols=no
12992 enable_shared_with_static_runtimes=yes
12993 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12994
12995 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12997 # If the export-symbols file already is a .def file (1st line
12998 # is EXPORTS), use it as is; otherwise, prepend...
12999 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13000 cp $export_symbols $output_objdir/$soname.def;
13001 else
13002 echo EXPORTS > $output_objdir/$soname.def;
13003 cat $export_symbols >> $output_objdir/$soname.def;
13004 fi~
13005 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13006 else
13007 ld_shlibs=no
13008 fi
13009 ;;
13010
13011 interix[3-9]*)
13012 hardcode_direct=no
13013 hardcode_shlibpath_var=no
13014 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13015 export_dynamic_flag_spec='${wl}-E'
13016 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13017 # Instead, shared libraries are loaded at an image base (0x10000000 by
13018 # default) and relocated if they conflict, which is a slow very memory
13019 # consuming and fragmenting process. To avoid this, we pick a random,
13020 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13021 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13022 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13023 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'
13024 ;;
13025
cristy18304f92009-11-22 15:48:26 +000013026 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013027 tmp_diet=no
13028 if test "$host_os" = linux-dietlibc; then
13029 case $cc_basename in
13030 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13031 esac
13032 fi
13033 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13034 && test "$tmp_diet" = no
13035 then
13036 tmp_addflag=
13037 tmp_sharedflag='-shared'
13038 case $cc_basename,$host_cpu in
13039 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000013040 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
cristy3ed852e2009-09-05 21:47:34 +000013041 tmp_addflag=' $pic_flag'
13042 ;;
cristy18304f92009-11-22 15:48:26 +000013043 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13044 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
cristy3ed852e2009-09-05 21:47:34 +000013045 tmp_addflag=' $pic_flag -Mnomain' ;;
13046 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13047 tmp_addflag=' -i_dynamic' ;;
13048 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13049 tmp_addflag=' -i_dynamic -nofor_main' ;;
13050 ifc* | ifort*) # Intel Fortran compiler
13051 tmp_addflag=' -nofor_main' ;;
13052 lf95*) # Lahey Fortran 8.1
13053 whole_archive_flag_spec=
13054 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000013055 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013056 tmp_sharedflag='-qmkshrobj'
13057 tmp_addflag= ;;
13058 esac
13059 case `$CC -V 2>&1 | sed 5q` in
13060 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000013061 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
cristy3ed852e2009-09-05 21:47:34 +000013062 compiler_needs_object=yes
13063 tmp_sharedflag='-G' ;;
13064 *Sun\ F*) # Sun Fortran 8.3
13065 tmp_sharedflag='-G' ;;
13066 esac
13067 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13068
13069 if test "x$supports_anon_versioning" = xyes; then
13070 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13071 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13072 echo "local: *; };" >> $output_objdir/$libname.ver~
13073 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13074 fi
13075
13076 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000013077 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000013078 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13079 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13080 hardcode_libdir_flag_spec=
13081 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13082 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13083 if test "x$supports_anon_versioning" = xyes; then
13084 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13085 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13086 echo "local: *; };" >> $output_objdir/$libname.ver~
13087 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13088 fi
13089 ;;
13090 esac
13091 else
13092 ld_shlibs=no
13093 fi
13094 ;;
13095
13096 netbsd*)
13097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13098 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13099 wlarc=
13100 else
13101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13102 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13103 fi
13104 ;;
13105
13106 solaris*)
13107 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13108 ld_shlibs=no
13109 cat <<_LT_EOF 1>&2
13110
13111*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13112*** create shared libraries on Solaris systems. Therefore, libtool
13113*** is disabling shared libraries support. We urge you to upgrade GNU
13114*** binutils to release 2.9.1 or newer. Another option is to modify
13115*** your PATH or compiler configuration so that the native linker is
13116*** used, and then restart.
13117
13118_LT_EOF
13119 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13121 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13122 else
13123 ld_shlibs=no
13124 fi
13125 ;;
13126
13127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13128 case `$LD -v 2>&1` in
13129 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13130 ld_shlibs=no
13131 cat <<_LT_EOF 1>&2
13132
13133*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13134*** reliably create shared libraries on SCO systems. Therefore, libtool
13135*** is disabling shared libraries support. We urge you to upgrade GNU
13136*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13137*** your PATH or compiler configuration so that the native linker is
13138*** used, and then restart.
13139
13140_LT_EOF
13141 ;;
13142 *)
13143 # For security reasons, it is highly recommended that you always
13144 # use absolute paths for naming shared libraries, and exclude the
13145 # DT_RUNPATH tag from executables and libraries. But doing so
13146 # requires that you compile everything twice, which is a pain.
13147 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13148 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13150 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13151 else
13152 ld_shlibs=no
13153 fi
13154 ;;
13155 esac
13156 ;;
13157
13158 sunos4*)
13159 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13160 wlarc=
13161 hardcode_direct=yes
13162 hardcode_shlibpath_var=no
13163 ;;
13164
13165 *)
13166 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13168 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13169 else
13170 ld_shlibs=no
13171 fi
13172 ;;
13173 esac
13174
13175 if test "$ld_shlibs" = no; then
13176 runpath_var=
13177 hardcode_libdir_flag_spec=
13178 export_dynamic_flag_spec=
13179 whole_archive_flag_spec=
13180 fi
13181 else
13182 # PORTME fill in a description of your system's linker (not GNU ld)
13183 case $host_os in
13184 aix3*)
13185 allow_undefined_flag=unsupported
13186 always_export_symbols=yes
13187 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'
13188 # Note: this linker hardcodes the directories in LIBPATH if there
13189 # are no directories specified by -L.
13190 hardcode_minus_L=yes
13191 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13192 # Neither direct hardcoding nor static linking is supported with a
13193 # broken collect2.
13194 hardcode_direct=unsupported
13195 fi
13196 ;;
13197
13198 aix[4-9]*)
13199 if test "$host_cpu" = ia64; then
13200 # On IA64, the linker does run time linking by default, so we don't
13201 # have to do anything special.
13202 aix_use_runtimelinking=no
13203 exp_sym_flag='-Bexport'
13204 no_entry_flag=""
13205 else
13206 # If we're using GNU nm, then we don't want the "-C" option.
13207 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13208 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000013209 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy3ed852e2009-09-05 21:47:34 +000013210 else
13211 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'
13212 fi
13213 aix_use_runtimelinking=no
13214
13215 # Test if we are trying to use run time linking or normal
13216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13217 # need to do runtime linking.
13218 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13219 for ld_flag in $LDFLAGS; do
13220 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13221 aix_use_runtimelinking=yes
13222 break
13223 fi
13224 done
13225 ;;
13226 esac
13227
13228 exp_sym_flag='-bexport'
13229 no_entry_flag='-bnoentry'
13230 fi
13231
13232 # When large executables or shared objects are built, AIX ld can
13233 # have problems creating the table of contents. If linking a library
13234 # or program results in "error TOC overflow" add -mminimal-toc to
13235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13237
13238 archive_cmds=''
13239 hardcode_direct=yes
13240 hardcode_direct_absolute=yes
13241 hardcode_libdir_separator=':'
13242 link_all_deplibs=yes
13243 file_list_spec='${wl}-f,'
13244
13245 if test "$GCC" = yes; then
13246 case $host_os in aix4.[012]|aix4.[012].*)
13247 # We only want to do this on AIX 4.2 and lower, the check
13248 # below for broken collect2 doesn't work under 4.3+
13249 collect2name=`${CC} -print-prog-name=collect2`
13250 if test -f "$collect2name" &&
13251 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13252 then
13253 # We have reworked collect2
13254 :
13255 else
13256 # We have old collect2
13257 hardcode_direct=unsupported
13258 # It fails to find uninstalled libraries when the uninstalled
13259 # path is not listed in the libpath. Setting hardcode_minus_L
13260 # to unsupported forces relinking
13261 hardcode_minus_L=yes
13262 hardcode_libdir_flag_spec='-L$libdir'
13263 hardcode_libdir_separator=
13264 fi
13265 ;;
13266 esac
13267 shared_flag='-shared'
13268 if test "$aix_use_runtimelinking" = yes; then
13269 shared_flag="$shared_flag "'${wl}-G'
13270 fi
13271 else
13272 # not using gcc
13273 if test "$host_cpu" = ia64; then
13274 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13275 # chokes on -Wl,-G. The following line is correct:
13276 shared_flag='-G'
13277 else
13278 if test "$aix_use_runtimelinking" = yes; then
13279 shared_flag='${wl}-G'
13280 else
13281 shared_flag='${wl}-bM:SRE'
13282 fi
13283 fi
13284 fi
13285
13286 export_dynamic_flag_spec='${wl}-bexpall'
13287 # It seems that -bexpall does not export symbols beginning with
13288 # underscore (_), so it is better to generate a list of symbols to export.
13289 always_export_symbols=yes
13290 if test "$aix_use_runtimelinking" = yes; then
13291 # Warning - without using the other runtime loading flags (-brtl),
13292 # -berok will link without error, but may produce a broken library.
13293 allow_undefined_flag='-berok'
13294 # Determine the default libpath from the value encoded in an
13295 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013297/* end confdefs.h. */
13298
13299int
13300main ()
13301{
13302
13303 ;
13304 return 0;
13305}
13306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013307if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013308
13309lt_aix_libpath_sed='
13310 /Import File Strings/,/^$/ {
13311 /^0/ {
13312 s/^0 *\(.*\)$/\1/
13313 p
13314 }
13315 }'
13316aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13317# Check for a 64-bit object if we didn't find anything.
13318if test -z "$aix_libpath"; then
13319 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13320fi
cristy3ed852e2009-09-05 21:47:34 +000013321fi
cristy8b350f62009-11-15 23:12:43 +000013322rm -f core conftest.err conftest.$ac_objext \
13323 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013324if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13325
13326 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000013327 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy3ed852e2009-09-05 21:47:34 +000013328 else
13329 if test "$host_cpu" = ia64; then
13330 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13331 allow_undefined_flag="-z nodefs"
13332 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"
13333 else
13334 # Determine the default libpath from the value encoded in an
13335 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013337/* end confdefs.h. */
13338
13339int
13340main ()
13341{
13342
13343 ;
13344 return 0;
13345}
13346_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013347if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013348
13349lt_aix_libpath_sed='
13350 /Import File Strings/,/^$/ {
13351 /^0/ {
13352 s/^0 *\(.*\)$/\1/
13353 p
13354 }
13355 }'
13356aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13357# Check for a 64-bit object if we didn't find anything.
13358if test -z "$aix_libpath"; then
13359 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13360fi
cristy3ed852e2009-09-05 21:47:34 +000013361fi
cristy8b350f62009-11-15 23:12:43 +000013362rm -f core conftest.err conftest.$ac_objext \
13363 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013364if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13365
13366 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13367 # Warning - without using the other run time loading flags,
13368 # -berok will link without error, but may produce a broken library.
13369 no_undefined_flag=' ${wl}-bernotok'
13370 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000013371 # Exported symbols can be pulled into shared objects from archives
13372 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000013373 archive_cmds_need_lc=yes
13374 # This is similar to how AIX traditionally builds its shared libraries.
13375 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'
13376 fi
13377 fi
13378 ;;
13379
13380 amigaos*)
13381 case $host_cpu in
13382 powerpc)
13383 # see comment about AmigaOS4 .so support
13384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13385 archive_expsym_cmds=''
13386 ;;
13387 m68k)
13388 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)'
13389 hardcode_libdir_flag_spec='-L$libdir'
13390 hardcode_minus_L=yes
13391 ;;
13392 esac
13393 ;;
13394
13395 bsdi[45]*)
13396 export_dynamic_flag_spec=-rdynamic
13397 ;;
13398
13399 cygwin* | mingw* | pw32* | cegcc*)
13400 # When not using gcc, we currently assume that we are using
13401 # Microsoft Visual C++.
13402 # hardcode_libdir_flag_spec is actually meaningless, as there is
13403 # no search path for DLLs.
13404 hardcode_libdir_flag_spec=' '
13405 allow_undefined_flag=unsupported
13406 # Tell ltmain to make .lib files, not .a files.
13407 libext=lib
13408 # Tell ltmain to make .dll files, not .so files.
13409 shrext_cmds=".dll"
13410 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000013411 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013412 # The linker will automatically build a .lib file if we build a DLL.
13413 old_archive_from_new_cmds='true'
13414 # FIXME: Should let the user specify the lib program.
13415 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13416 fix_srcfile_path='`cygpath -w "$srcfile"`'
13417 enable_shared_with_static_runtimes=yes
13418 ;;
13419
13420 darwin* | rhapsody*)
13421
13422
13423 archive_cmds_need_lc=no
13424 hardcode_direct=no
13425 hardcode_automatic=yes
13426 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000013427 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000013428 link_all_deplibs=yes
13429 allow_undefined_flag="$_lt_dar_allow_undefined"
13430 case $cc_basename in
13431 ifort*) _lt_dar_can_shared=yes ;;
13432 *) _lt_dar_can_shared=$GCC ;;
13433 esac
13434 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000013435 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000013436 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13437 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13438 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}"
13439 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}"
13440
13441 else
13442 ld_shlibs=no
13443 fi
13444
13445 ;;
13446
13447 dgux*)
13448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13449 hardcode_libdir_flag_spec='-L$libdir'
13450 hardcode_shlibpath_var=no
13451 ;;
13452
13453 freebsd1*)
13454 ld_shlibs=no
13455 ;;
13456
13457 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13458 # support. Future versions do this automatically, but an explicit c++rt0.o
13459 # does not break anything, and helps significantly (at the cost of a little
13460 # extra space).
13461 freebsd2.2*)
13462 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13463 hardcode_libdir_flag_spec='-R$libdir'
13464 hardcode_direct=yes
13465 hardcode_shlibpath_var=no
13466 ;;
13467
13468 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13469 freebsd2*)
13470 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13471 hardcode_direct=yes
13472 hardcode_minus_L=yes
13473 hardcode_shlibpath_var=no
13474 ;;
13475
13476 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13477 freebsd* | dragonfly*)
13478 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13479 hardcode_libdir_flag_spec='-R$libdir'
13480 hardcode_direct=yes
13481 hardcode_shlibpath_var=no
13482 ;;
13483
13484 hpux9*)
13485 if test "$GCC" = yes; then
13486 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'
13487 else
13488 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'
13489 fi
13490 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13491 hardcode_libdir_separator=:
13492 hardcode_direct=yes
13493
13494 # hardcode_minus_L: Not really in the search PATH,
13495 # but as the default location of the library.
13496 hardcode_minus_L=yes
13497 export_dynamic_flag_spec='${wl}-E'
13498 ;;
13499
13500 hpux10*)
cristy18304f92009-11-22 15:48:26 +000013501 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013502 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13503 else
13504 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13505 fi
13506 if test "$with_gnu_ld" = no; then
13507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13508 hardcode_libdir_flag_spec_ld='+b $libdir'
13509 hardcode_libdir_separator=:
13510 hardcode_direct=yes
13511 hardcode_direct_absolute=yes
13512 export_dynamic_flag_spec='${wl}-E'
13513 # hardcode_minus_L: Not really in the search PATH,
13514 # but as the default location of the library.
13515 hardcode_minus_L=yes
13516 fi
13517 ;;
13518
13519 hpux11*)
cristy18304f92009-11-22 15:48:26 +000013520 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013521 case $host_cpu in
13522 hppa*64*)
13523 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13524 ;;
13525 ia64*)
13526 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13527 ;;
13528 *)
13529 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13530 ;;
13531 esac
13532 else
13533 case $host_cpu in
13534 hppa*64*)
13535 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13536 ;;
13537 ia64*)
13538 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13539 ;;
13540 *)
cristy18304f92009-11-22 15:48:26 +000013541 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy3ed852e2009-09-05 21:47:34 +000013542 ;;
13543 esac
13544 fi
13545 if test "$with_gnu_ld" = no; then
13546 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13547 hardcode_libdir_separator=:
13548
13549 case $host_cpu in
13550 hppa*64*|ia64*)
13551 hardcode_direct=no
13552 hardcode_shlibpath_var=no
13553 ;;
13554 *)
13555 hardcode_direct=yes
13556 hardcode_direct_absolute=yes
13557 export_dynamic_flag_spec='${wl}-E'
13558
13559 # hardcode_minus_L: Not really in the search PATH,
13560 # but as the default location of the library.
13561 hardcode_minus_L=yes
13562 ;;
13563 esac
13564 fi
13565 ;;
13566
13567 irix5* | irix6* | nonstopux*)
13568 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000013569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013570 # Try to use the -exported_symbol ld option, if it does not
13571 # work, assume that -exports_file does not work either and
13572 # implicitly export all symbols.
13573 save_LDFLAGS="$LDFLAGS"
13574 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013577int foo(void) {}
13578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013579if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000013580 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013581
cristy3ed852e2009-09-05 21:47:34 +000013582fi
cristy8b350f62009-11-15 23:12:43 +000013583rm -f core conftest.err conftest.$ac_objext \
13584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013585 LDFLAGS="$save_LDFLAGS"
13586 else
cristy18304f92009-11-22 15:48:26 +000013587 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'
13588 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013589 fi
13590 archive_cmds_need_lc='no'
13591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13592 hardcode_libdir_separator=:
13593 inherit_rpath=yes
13594 link_all_deplibs=yes
13595 ;;
13596
13597 netbsd*)
13598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13600 else
13601 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13602 fi
13603 hardcode_libdir_flag_spec='-R$libdir'
13604 hardcode_direct=yes
13605 hardcode_shlibpath_var=no
13606 ;;
13607
13608 newsos6)
13609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13610 hardcode_direct=yes
13611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13612 hardcode_libdir_separator=:
13613 hardcode_shlibpath_var=no
13614 ;;
13615
13616 *nto* | *qnx*)
13617 ;;
13618
13619 openbsd*)
13620 if test -f /usr/libexec/ld.so; then
13621 hardcode_direct=yes
13622 hardcode_shlibpath_var=no
13623 hardcode_direct_absolute=yes
13624 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13626 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13627 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13628 export_dynamic_flag_spec='${wl}-E'
13629 else
13630 case $host_os in
13631 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13633 hardcode_libdir_flag_spec='-R$libdir'
13634 ;;
13635 *)
13636 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13637 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13638 ;;
13639 esac
13640 fi
13641 else
13642 ld_shlibs=no
13643 fi
13644 ;;
13645
13646 os2*)
13647 hardcode_libdir_flag_spec='-L$libdir'
13648 hardcode_minus_L=yes
13649 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000013650 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
cristy3ed852e2009-09-05 21:47:34 +000013651 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13652 ;;
13653
13654 osf3*)
13655 if test "$GCC" = yes; then
13656 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000013657 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013658 else
13659 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000013660 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013661 fi
13662 archive_cmds_need_lc='no'
13663 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13664 hardcode_libdir_separator=:
13665 ;;
13666
13667 osf4* | osf5*) # as osf3* with the addition of -msym flag
13668 if test "$GCC" = yes; then
13669 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000013670 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013671 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13672 else
13673 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000013674 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013675 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000013676 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
cristy3ed852e2009-09-05 21:47:34 +000013677
13678 # Both c and cxx compiler support -rpath directly
13679 hardcode_libdir_flag_spec='-rpath $libdir'
13680 fi
13681 archive_cmds_need_lc='no'
13682 hardcode_libdir_separator=:
13683 ;;
13684
13685 solaris*)
13686 no_undefined_flag=' -z defs'
13687 if test "$GCC" = yes; then
13688 wlarc='${wl}'
13689 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13690 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13691 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13692 else
13693 case `$CC -V 2>&1` in
13694 *"Compilers 5.0"*)
13695 wlarc=''
13696 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13697 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13698 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13699 ;;
13700 *)
13701 wlarc='${wl}'
13702 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13703 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13704 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13705 ;;
13706 esac
13707 fi
13708 hardcode_libdir_flag_spec='-R$libdir'
13709 hardcode_shlibpath_var=no
13710 case $host_os in
13711 solaris2.[0-5] | solaris2.[0-5].*) ;;
13712 *)
13713 # The compiler driver will combine and reorder linker options,
13714 # but understands `-z linker_flag'. GCC discards it without `$wl',
13715 # but is careful enough not to reorder.
13716 # Supported since Solaris 2.6 (maybe 2.5.1?)
13717 if test "$GCC" = yes; then
13718 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13719 else
13720 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13721 fi
13722 ;;
13723 esac
13724 link_all_deplibs=yes
13725 ;;
13726
13727 sunos4*)
13728 if test "x$host_vendor" = xsequent; then
13729 # Use $CC to link under sequent, because it throws in some extra .o
13730 # files that make .init and .fini sections work.
13731 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13732 else
13733 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13734 fi
13735 hardcode_libdir_flag_spec='-L$libdir'
13736 hardcode_direct=yes
13737 hardcode_minus_L=yes
13738 hardcode_shlibpath_var=no
13739 ;;
13740
13741 sysv4)
13742 case $host_vendor in
13743 sni)
13744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13745 hardcode_direct=yes # is this really true???
13746 ;;
13747 siemens)
13748 ## LD is ld it makes a PLAMLIB
13749 ## CC just makes a GrossModule.
13750 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13751 reload_cmds='$CC -r -o $output$reload_objs'
13752 hardcode_direct=no
13753 ;;
13754 motorola)
13755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13756 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13757 ;;
13758 esac
13759 runpath_var='LD_RUN_PATH'
13760 hardcode_shlibpath_var=no
13761 ;;
13762
13763 sysv4.3*)
13764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13765 hardcode_shlibpath_var=no
13766 export_dynamic_flag_spec='-Bexport'
13767 ;;
13768
13769 sysv4*MP*)
13770 if test -d /usr/nec; then
13771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13772 hardcode_shlibpath_var=no
13773 runpath_var=LD_RUN_PATH
13774 hardcode_runpath_var=yes
13775 ld_shlibs=yes
13776 fi
13777 ;;
13778
13779 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13780 no_undefined_flag='${wl}-z,text'
13781 archive_cmds_need_lc=no
13782 hardcode_shlibpath_var=no
13783 runpath_var='LD_RUN_PATH'
13784
13785 if test "$GCC" = yes; then
13786 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13787 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13788 else
13789 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13790 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13791 fi
13792 ;;
13793
13794 sysv5* | sco3.2v5* | sco5v6*)
13795 # Note: We can NOT use -z defs as we might desire, because we do not
13796 # link with -lc, and that would cause any symbols used from libc to
13797 # always be unresolved, which means just about no library would
13798 # ever link correctly. If we're not using GNU ld we use -z text
13799 # though, which does catch some bad symbols but isn't as heavy-handed
13800 # as -z defs.
13801 no_undefined_flag='${wl}-z,text'
13802 allow_undefined_flag='${wl}-z,nodefs'
13803 archive_cmds_need_lc=no
13804 hardcode_shlibpath_var=no
13805 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13806 hardcode_libdir_separator=':'
13807 link_all_deplibs=yes
13808 export_dynamic_flag_spec='${wl}-Bexport'
13809 runpath_var='LD_RUN_PATH'
13810
13811 if test "$GCC" = yes; then
13812 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13813 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13814 else
13815 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13816 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13817 fi
13818 ;;
13819
13820 uts4*)
13821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13822 hardcode_libdir_flag_spec='-L$libdir'
13823 hardcode_shlibpath_var=no
13824 ;;
13825
13826 *)
13827 ld_shlibs=no
13828 ;;
13829 esac
13830
13831 if test x$host_vendor = xsni; then
13832 case $host in
13833 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13834 export_dynamic_flag_spec='${wl}-Blargedynsym'
13835 ;;
13836 esac
13837 fi
13838 fi
13839
cristy8b350f62009-11-15 23:12:43 +000013840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000013841$as_echo "$ld_shlibs" >&6; }
13842test "$ld_shlibs" = no && can_build_shared=no
13843
13844with_gnu_ld=$with_gnu_ld
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860#
13861# Do we need to explicitly link libc?
13862#
13863case "x$archive_cmds_need_lc" in
13864x|xyes)
13865 # Assume -lc should be added
13866 archive_cmds_need_lc=yes
13867
13868 if test "$enable_shared" = yes && test "$GCC" = yes; then
13869 case $archive_cmds in
13870 *'~'*)
13871 # FIXME: we may have to deal with multi-command sequences.
13872 ;;
13873 '$CC '*)
13874 # Test whether the compiler implicitly links with -lc since on some
13875 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13876 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000013877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000013878$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000013879 $RM conftest*
13880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013881
cristy18304f92009-11-22 15:48:26 +000013882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000013883 (eval $ac_compile) 2>&5
13884 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13886 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000013887 soname=conftest
13888 lib=conftest
13889 libobjs=conftest.$ac_objext
13890 deplibs=
13891 wl=$lt_prog_compiler_wl
13892 pic_flag=$lt_prog_compiler_pic
13893 compiler_flags=-v
13894 linker_flags=-v
13895 verstring=
13896 output_objdir=.
13897 libname=conftest
13898 lt_save_allow_undefined_flag=$allow_undefined_flag
13899 allow_undefined_flag=
13900 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 +000013901 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13902 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13904 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000013905 then
13906 archive_cmds_need_lc=no
13907 else
13908 archive_cmds_need_lc=yes
13909 fi
13910 allow_undefined_flag=$lt_save_allow_undefined_flag
13911 else
13912 cat conftest.err 1>&5
13913 fi
13914 $RM conftest*
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13916$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000013917 ;;
13918 esac
13919 fi
13920 ;;
13921esac
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
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
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
cristy8b350f62009-11-15 23:12:43 +000014079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014080$as_echo_n "checking dynamic linker characteristics... " >&6; }
14081
14082if test "$GCC" = yes; then
14083 case $host_os in
14084 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14085 *) lt_awk_arg="/^libraries:/" ;;
14086 esac
cristy18304f92009-11-22 15:48:26 +000014087 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14088 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000014089 # if the path contains ";" then we assume it to be the separator
14090 # otherwise default to the standard path separator (i.e. ":") - it is
14091 # assumed that no part of a normal pathname contains ";" but that should
14092 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000014093 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14094 else
14095 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14096 fi
cristy3ed852e2009-09-05 21:47:34 +000014097 # Ok, now we have the path, separated by spaces, we can step through it
14098 # and add multilib dir if necessary.
14099 lt_tmp_lt_search_path_spec=
14100 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14101 for lt_sys_path in $lt_search_path_spec; do
14102 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14103 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14104 else
14105 test -d "$lt_sys_path" && \
14106 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14107 fi
14108 done
cristy18304f92009-11-22 15:48:26 +000014109 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000014110BEGIN {RS=" "; FS="/|\n";} {
14111 lt_foo="";
14112 lt_count=0;
14113 for (lt_i = NF; lt_i > 0; lt_i--) {
14114 if ($lt_i != "" && $lt_i != ".") {
14115 if ($lt_i == "..") {
14116 lt_count++;
14117 } else {
14118 if (lt_count == 0) {
14119 lt_foo="/" $lt_i lt_foo;
14120 } else {
14121 lt_count--;
14122 }
14123 }
14124 }
14125 }
14126 if (lt_foo != "") { lt_freq[lt_foo]++; }
14127 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14128}'`
cristy18304f92009-11-22 15:48:26 +000014129 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000014130else
14131 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14132fi
14133library_names_spec=
14134libname_spec='lib$name'
14135soname_spec=
14136shrext_cmds=".so"
14137postinstall_cmds=
14138postuninstall_cmds=
14139finish_cmds=
14140finish_eval=
14141shlibpath_var=
14142shlibpath_overrides_runpath=unknown
14143version_type=none
14144dynamic_linker="$host_os ld.so"
14145sys_lib_dlsearch_path_spec="/lib /usr/lib"
14146need_lib_prefix=unknown
14147hardcode_into_libs=no
14148
14149# when you set need_version to no, make sure it does not cause -set_version
14150# flags to be left without arguments
14151need_version=unknown
14152
14153case $host_os in
14154aix3*)
14155 version_type=linux
14156 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14157 shlibpath_var=LIBPATH
14158
14159 # AIX 3 has no versioning support, so we append a major version to the name.
14160 soname_spec='${libname}${release}${shared_ext}$major'
14161 ;;
14162
14163aix[4-9]*)
14164 version_type=linux
14165 need_lib_prefix=no
14166 need_version=no
14167 hardcode_into_libs=yes
14168 if test "$host_cpu" = ia64; then
14169 # AIX 5 supports IA64
14170 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14171 shlibpath_var=LD_LIBRARY_PATH
14172 else
14173 # With GCC up to 2.95.x, collect2 would create an import file
14174 # for dependence libraries. The import file would start with
14175 # the line `#! .'. This would cause the generated library to
14176 # depend on `.', always an invalid library. This was fixed in
14177 # development snapshots of GCC prior to 3.0.
14178 case $host_os in
14179 aix4 | aix4.[01] | aix4.[01].*)
14180 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14181 echo ' yes '
14182 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14183 :
14184 else
14185 can_build_shared=no
14186 fi
14187 ;;
14188 esac
14189 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14190 # soname into executable. Probably we can add versioning support to
14191 # collect2, so additional links can be useful in future.
14192 if test "$aix_use_runtimelinking" = yes; then
14193 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14194 # instead of lib<name>.a to let people know that these are not
14195 # typical AIX shared libraries.
14196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14197 else
14198 # We preserve .a as extension for shared libraries through AIX4.2
14199 # and later when we are not doing run time linking.
14200 library_names_spec='${libname}${release}.a $libname.a'
14201 soname_spec='${libname}${release}${shared_ext}$major'
14202 fi
14203 shlibpath_var=LIBPATH
14204 fi
14205 ;;
14206
14207amigaos*)
14208 case $host_cpu in
14209 powerpc)
14210 # Since July 2007 AmigaOS4 officially supports .so libraries.
14211 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14213 ;;
14214 m68k)
14215 library_names_spec='$libname.ixlibrary $libname.a'
14216 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000014217 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cristy3ed852e2009-09-05 21:47:34 +000014218 ;;
14219 esac
14220 ;;
14221
14222beos*)
14223 library_names_spec='${libname}${shared_ext}'
14224 dynamic_linker="$host_os ld.so"
14225 shlibpath_var=LIBRARY_PATH
14226 ;;
14227
14228bsdi[45]*)
14229 version_type=linux
14230 need_version=no
14231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14232 soname_spec='${libname}${release}${shared_ext}$major'
14233 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14234 shlibpath_var=LD_LIBRARY_PATH
14235 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14236 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14237 # the default ld.so.conf also contains /usr/contrib/lib and
14238 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14239 # libtool to hard-code these into programs
14240 ;;
14241
14242cygwin* | mingw* | pw32* | cegcc*)
14243 version_type=windows
14244 shrext_cmds=".dll"
14245 need_version=no
14246 need_lib_prefix=no
14247
14248 case $GCC,$host_os in
14249 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14250 library_names_spec='$libname.dll.a'
14251 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14252 postinstall_cmds='base_file=`basename \${file}`~
14253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14254 dldir=$destdir/`dirname \$dlpath`~
14255 test -d \$dldir || mkdir -p \$dldir~
14256 $install_prog $dir/$dlname \$dldir/$dlname~
14257 chmod a+x \$dldir/$dlname~
14258 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14259 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14260 fi'
14261 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14262 dlpath=$dir/\$dldll~
14263 $RM \$dlpath'
14264 shlibpath_overrides_runpath=yes
14265
14266 case $host_os in
14267 cygwin*)
14268 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14269 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014270 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000014271 ;;
14272 mingw* | cegcc*)
14273 # MinGW DLLs use traditional 'lib' prefix
14274 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014275 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14276 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14277 # It is most probably a Windows format PATH printed by
14278 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14279 # path with ; separators, and with drive letters. We can handle the
14280 # drive letters (cygwin fileutils understands them), so leave them,
14281 # especially as we might pass files found there to a mingw objdump,
14282 # which wouldn't understand a cygwinified path. Ahh.
14283 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14284 else
14285 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14286 fi
cristy3ed852e2009-09-05 21:47:34 +000014287 ;;
14288 pw32*)
14289 # pw32 DLLs use 'pw' prefix rather than 'lib'
14290 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14291 ;;
14292 esac
14293 ;;
14294
14295 *)
14296 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14297 ;;
14298 esac
14299 dynamic_linker='Win32 ld.exe'
14300 # FIXME: first we should search . and the directory the executable is in
14301 shlibpath_var=PATH
14302 ;;
14303
14304darwin* | rhapsody*)
14305 dynamic_linker="$host_os dyld"
14306 version_type=darwin
14307 need_lib_prefix=no
14308 need_version=no
14309 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14310 soname_spec='${libname}${release}${major}$shared_ext'
14311 shlibpath_overrides_runpath=yes
14312 shlibpath_var=DYLD_LIBRARY_PATH
14313 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14314
14315 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14316 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14317 ;;
14318
14319dgux*)
14320 version_type=linux
14321 need_lib_prefix=no
14322 need_version=no
14323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14324 soname_spec='${libname}${release}${shared_ext}$major'
14325 shlibpath_var=LD_LIBRARY_PATH
14326 ;;
14327
14328freebsd1*)
14329 dynamic_linker=no
14330 ;;
14331
14332freebsd* | dragonfly*)
14333 # DragonFly does not have aout. When/if they implement a new
14334 # versioning mechanism, adjust this.
14335 if test -x /usr/bin/objformat; then
14336 objformat=`/usr/bin/objformat`
14337 else
14338 case $host_os in
14339 freebsd[123]*) objformat=aout ;;
14340 *) objformat=elf ;;
14341 esac
14342 fi
14343 version_type=freebsd-$objformat
14344 case $version_type in
14345 freebsd-elf*)
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14347 need_version=no
14348 need_lib_prefix=no
14349 ;;
14350 freebsd-*)
14351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14352 need_version=yes
14353 ;;
14354 esac
14355 shlibpath_var=LD_LIBRARY_PATH
14356 case $host_os in
14357 freebsd2*)
14358 shlibpath_overrides_runpath=yes
14359 ;;
14360 freebsd3.[01]* | freebsdelf3.[01]*)
14361 shlibpath_overrides_runpath=yes
14362 hardcode_into_libs=yes
14363 ;;
14364 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14365 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14366 shlibpath_overrides_runpath=no
14367 hardcode_into_libs=yes
14368 ;;
14369 *) # from 4.6 on, and DragonFly
14370 shlibpath_overrides_runpath=yes
14371 hardcode_into_libs=yes
14372 ;;
14373 esac
14374 ;;
14375
14376gnu*)
14377 version_type=linux
14378 need_lib_prefix=no
14379 need_version=no
14380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14381 soname_spec='${libname}${release}${shared_ext}$major'
14382 shlibpath_var=LD_LIBRARY_PATH
14383 hardcode_into_libs=yes
14384 ;;
14385
14386hpux9* | hpux10* | hpux11*)
14387 # Give a soname corresponding to the major version so that dld.sl refuses to
14388 # link against other versions.
14389 version_type=sunos
14390 need_lib_prefix=no
14391 need_version=no
14392 case $host_cpu in
14393 ia64*)
14394 shrext_cmds='.so'
14395 hardcode_into_libs=yes
14396 dynamic_linker="$host_os dld.so"
14397 shlibpath_var=LD_LIBRARY_PATH
14398 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14400 soname_spec='${libname}${release}${shared_ext}$major'
14401 if test "X$HPUX_IA64_MODE" = X32; then
14402 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14403 else
14404 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14405 fi
14406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14407 ;;
14408 hppa*64*)
14409 shrext_cmds='.sl'
14410 hardcode_into_libs=yes
14411 dynamic_linker="$host_os dld.sl"
14412 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14413 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14415 soname_spec='${libname}${release}${shared_ext}$major'
14416 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14418 ;;
14419 *)
14420 shrext_cmds='.sl'
14421 dynamic_linker="$host_os dld.sl"
14422 shlibpath_var=SHLIB_PATH
14423 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425 soname_spec='${libname}${release}${shared_ext}$major'
14426 ;;
14427 esac
cristy18304f92009-11-22 15:48:26 +000014428 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000014429 postinstall_cmds='chmod 555 $lib'
14430 ;;
14431
14432interix[3-9]*)
14433 version_type=linux
14434 need_lib_prefix=no
14435 need_version=no
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14437 soname_spec='${libname}${release}${shared_ext}$major'
14438 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14439 shlibpath_var=LD_LIBRARY_PATH
14440 shlibpath_overrides_runpath=no
14441 hardcode_into_libs=yes
14442 ;;
14443
14444irix5* | irix6* | nonstopux*)
14445 case $host_os in
14446 nonstopux*) version_type=nonstopux ;;
14447 *)
14448 if test "$lt_cv_prog_gnu_ld" = yes; then
14449 version_type=linux
14450 else
14451 version_type=irix
14452 fi ;;
14453 esac
14454 need_lib_prefix=no
14455 need_version=no
14456 soname_spec='${libname}${release}${shared_ext}$major'
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14458 case $host_os in
14459 irix5* | nonstopux*)
14460 libsuff= shlibsuff=
14461 ;;
14462 *)
14463 case $LD in # libtool.m4 will add one of these switches to LD
14464 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14465 libsuff= shlibsuff= libmagic=32-bit;;
14466 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14467 libsuff=32 shlibsuff=N32 libmagic=N32;;
14468 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14469 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14470 *) libsuff= shlibsuff= libmagic=never-match;;
14471 esac
14472 ;;
14473 esac
14474 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14475 shlibpath_overrides_runpath=no
14476 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14477 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14478 hardcode_into_libs=yes
14479 ;;
14480
14481# No shared lib support for Linux oldld, aout, or coff.
14482linux*oldld* | linux*aout* | linux*coff*)
14483 dynamic_linker=no
14484 ;;
14485
14486# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000014487linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014488 version_type=linux
14489 need_lib_prefix=no
14490 need_version=no
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14492 soname_spec='${libname}${release}${shared_ext}$major'
14493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14494 shlibpath_var=LD_LIBRARY_PATH
14495 shlibpath_overrides_runpath=no
14496 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000014497 save_LDFLAGS=$LDFLAGS
14498 save_libdir=$libdir
14499 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14500 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014502/* end confdefs.h. */
14503
14504int
14505main ()
14506{
14507
14508 ;
14509 return 0;
14510}
14511_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014512if ac_fn_c_try_link "$LINENO"; then :
14513 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000014514 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014515fi
cristy3ed852e2009-09-05 21:47:34 +000014516fi
cristy8b350f62009-11-15 23:12:43 +000014517rm -f core conftest.err conftest.$ac_objext \
14518 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000014519 LDFLAGS=$save_LDFLAGS
14520 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000014521
14522 # This implies no fast_install, which is unacceptable.
14523 # Some rework will be needed to allow for fast_install
14524 # before this can be enabled.
14525 hardcode_into_libs=yes
14526
cristy679ed8e2009-12-05 02:37:41 +000014527 # Add ABI-specific directories to the system library path.
14528 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14529
cristy3ed852e2009-09-05 21:47:34 +000014530 # Append ld.so.conf contents to the search path
14531 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000014532 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
cristy679ed8e2009-12-05 02:37:41 +000014533 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000014534 fi
14535
14536 # We used to test for /lib/ld.so.1 and disable shared libraries on
14537 # powerpc, because MkLinux only supported shared libraries with the
14538 # GNU dynamic linker. Since this was broken with cross compilers,
14539 # most powerpc-linux boxes support dynamic linking these days and
14540 # people can always --disable-shared, the test was removed, and we
14541 # assume the GNU/Linux dynamic linker is in use.
14542 dynamic_linker='GNU/Linux ld.so'
14543 ;;
14544
14545netbsd*)
14546 version_type=sunos
14547 need_lib_prefix=no
14548 need_version=no
14549 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14552 dynamic_linker='NetBSD (a.out) ld.so'
14553 else
14554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14555 soname_spec='${libname}${release}${shared_ext}$major'
14556 dynamic_linker='NetBSD ld.elf_so'
14557 fi
14558 shlibpath_var=LD_LIBRARY_PATH
14559 shlibpath_overrides_runpath=yes
14560 hardcode_into_libs=yes
14561 ;;
14562
14563newsos6)
14564 version_type=linux
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566 shlibpath_var=LD_LIBRARY_PATH
14567 shlibpath_overrides_runpath=yes
14568 ;;
14569
14570*nto* | *qnx*)
14571 version_type=qnx
14572 need_lib_prefix=no
14573 need_version=no
14574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14575 soname_spec='${libname}${release}${shared_ext}$major'
14576 shlibpath_var=LD_LIBRARY_PATH
14577 shlibpath_overrides_runpath=no
14578 hardcode_into_libs=yes
14579 dynamic_linker='ldqnx.so'
14580 ;;
14581
14582openbsd*)
14583 version_type=sunos
14584 sys_lib_dlsearch_path_spec="/usr/lib"
14585 need_lib_prefix=no
14586 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14587 case $host_os in
14588 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14589 *) need_version=no ;;
14590 esac
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14593 shlibpath_var=LD_LIBRARY_PATH
14594 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14595 case $host_os in
14596 openbsd2.[89] | openbsd2.[89].*)
14597 shlibpath_overrides_runpath=no
14598 ;;
14599 *)
14600 shlibpath_overrides_runpath=yes
14601 ;;
14602 esac
14603 else
14604 shlibpath_overrides_runpath=yes
14605 fi
14606 ;;
14607
14608os2*)
14609 libname_spec='$name'
14610 shrext_cmds=".dll"
14611 need_lib_prefix=no
14612 library_names_spec='$libname${shared_ext} $libname.a'
14613 dynamic_linker='OS/2 ld.exe'
14614 shlibpath_var=LIBPATH
14615 ;;
14616
14617osf3* | osf4* | osf5*)
14618 version_type=osf
14619 need_lib_prefix=no
14620 need_version=no
14621 soname_spec='${libname}${release}${shared_ext}$major'
14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14625 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14626 ;;
14627
14628rdos*)
14629 dynamic_linker=no
14630 ;;
14631
14632solaris*)
14633 version_type=linux
14634 need_lib_prefix=no
14635 need_version=no
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14637 soname_spec='${libname}${release}${shared_ext}$major'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 shlibpath_overrides_runpath=yes
14640 hardcode_into_libs=yes
14641 # ldd complains unless libraries are executable
14642 postinstall_cmds='chmod +x $lib'
14643 ;;
14644
14645sunos4*)
14646 version_type=sunos
14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14648 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14649 shlibpath_var=LD_LIBRARY_PATH
14650 shlibpath_overrides_runpath=yes
14651 if test "$with_gnu_ld" = yes; then
14652 need_lib_prefix=no
14653 fi
14654 need_version=yes
14655 ;;
14656
14657sysv4 | sysv4.3*)
14658 version_type=linux
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14660 soname_spec='${libname}${release}${shared_ext}$major'
14661 shlibpath_var=LD_LIBRARY_PATH
14662 case $host_vendor in
14663 sni)
14664 shlibpath_overrides_runpath=no
14665 need_lib_prefix=no
14666 runpath_var=LD_RUN_PATH
14667 ;;
14668 siemens)
14669 need_lib_prefix=no
14670 ;;
14671 motorola)
14672 need_lib_prefix=no
14673 need_version=no
14674 shlibpath_overrides_runpath=no
14675 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14676 ;;
14677 esac
14678 ;;
14679
14680sysv4*MP*)
14681 if test -d /usr/nec ;then
14682 version_type=linux
14683 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14684 soname_spec='$libname${shared_ext}.$major'
14685 shlibpath_var=LD_LIBRARY_PATH
14686 fi
14687 ;;
14688
14689sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14690 version_type=freebsd-elf
14691 need_lib_prefix=no
14692 need_version=no
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14694 soname_spec='${libname}${release}${shared_ext}$major'
14695 shlibpath_var=LD_LIBRARY_PATH
14696 shlibpath_overrides_runpath=yes
14697 hardcode_into_libs=yes
14698 if test "$with_gnu_ld" = yes; then
14699 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14700 else
14701 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14702 case $host_os in
14703 sco3.2v5*)
14704 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14705 ;;
14706 esac
14707 fi
14708 sys_lib_dlsearch_path_spec='/usr/lib'
14709 ;;
14710
14711tpf*)
14712 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14713 version_type=linux
14714 need_lib_prefix=no
14715 need_version=no
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717 shlibpath_var=LD_LIBRARY_PATH
14718 shlibpath_overrides_runpath=no
14719 hardcode_into_libs=yes
14720 ;;
14721
14722uts4*)
14723 version_type=linux
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 shlibpath_var=LD_LIBRARY_PATH
14727 ;;
14728
14729*)
14730 dynamic_linker=no
14731 ;;
14732esac
cristy8b350f62009-11-15 23:12:43 +000014733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000014734$as_echo "$dynamic_linker" >&6; }
14735test "$dynamic_linker" = no && can_build_shared=no
14736
14737variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14738if test "$GCC" = yes; then
14739 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14740fi
14741
14742if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14743 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14744fi
14745if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14746 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14747fi
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
cristy8b350f62009-11-15 23:12:43 +000014835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014836$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14837hardcode_action=
14838if test -n "$hardcode_libdir_flag_spec" ||
14839 test -n "$runpath_var" ||
14840 test "X$hardcode_automatic" = "Xyes" ; then
14841
14842 # We can hardcode non-existent directories.
14843 if test "$hardcode_direct" != no &&
14844 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14845 # have to relink, otherwise we might link with an installed library
14846 # when we should be linking with a yet-to-be-installed one
14847 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14848 test "$hardcode_minus_L" != no; then
14849 # Linking always hardcodes the temporary library directory.
14850 hardcode_action=relink
14851 else
14852 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14853 hardcode_action=immediate
14854 fi
14855else
14856 # We cannot hardcode anything, or else we can only hardcode existing
14857 # directories.
14858 hardcode_action=unsupported
14859fi
cristy8b350f62009-11-15 23:12:43 +000014860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000014861$as_echo "$hardcode_action" >&6; }
14862
14863if test "$hardcode_action" = relink ||
14864 test "$inherit_rpath" = yes; then
14865 # Fast installation is not supported
14866 enable_fast_install=no
14867elif test "$shlibpath_overrides_runpath" = yes ||
14868 test "$enable_shared" = no; then
14869 # Fast installation is not necessary
14870 enable_fast_install=needless
14871fi
14872
14873
14874
14875
14876
14877
14878 if test "x$enable_dlopen" != xyes; then
14879 enable_dlopen=unknown
14880 enable_dlopen_self=unknown
14881 enable_dlopen_self_static=unknown
14882else
14883 lt_cv_dlopen=no
14884 lt_cv_dlopen_libs=
14885
14886 case $host_os in
14887 beos*)
14888 lt_cv_dlopen="load_add_on"
14889 lt_cv_dlopen_libs=
14890 lt_cv_dlopen_self=yes
14891 ;;
14892
14893 mingw* | pw32* | cegcc*)
14894 lt_cv_dlopen="LoadLibrary"
14895 lt_cv_dlopen_libs=
14896 ;;
14897
14898 cygwin*)
14899 lt_cv_dlopen="dlopen"
14900 lt_cv_dlopen_libs=
14901 ;;
14902
14903 darwin*)
14904 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000014905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014906$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014907if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014908 $as_echo_n "(cached) " >&6
14909else
14910 ac_check_lib_save_LIBS=$LIBS
14911LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014913/* end confdefs.h. */
14914
14915/* Override any GCC internal prototype to avoid an error.
14916 Use char because int might match the return type of a GCC
14917 builtin and then its argument prototype would still apply. */
14918#ifdef __cplusplus
14919extern "C"
14920#endif
14921char dlopen ();
14922int
14923main ()
14924{
14925return dlopen ();
14926 ;
14927 return 0;
14928}
14929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014930if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014931 ac_cv_lib_dl_dlopen=yes
14932else
cristy8b350f62009-11-15 23:12:43 +000014933 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014934fi
cristy8b350f62009-11-15 23:12:43 +000014935rm -f core conftest.err conftest.$ac_objext \
14936 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014937LIBS=$ac_check_lib_save_LIBS
14938fi
cristy8b350f62009-11-15 23:12:43 +000014939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014940$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014941if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14943else
14944
14945 lt_cv_dlopen="dyld"
14946 lt_cv_dlopen_libs=
14947 lt_cv_dlopen_self=yes
14948
14949fi
14950
14951 ;;
14952
14953 *)
cristy8b350f62009-11-15 23:12:43 +000014954 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14955if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014956 lt_cv_dlopen="shl_load"
14957else
cristy8b350f62009-11-15 23:12:43 +000014958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014959$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014960if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014961 $as_echo_n "(cached) " >&6
14962else
14963 ac_check_lib_save_LIBS=$LIBS
14964LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014966/* end confdefs.h. */
14967
14968/* Override any GCC internal prototype to avoid an error.
14969 Use char because int might match the return type of a GCC
14970 builtin and then its argument prototype would still apply. */
14971#ifdef __cplusplus
14972extern "C"
14973#endif
14974char shl_load ();
14975int
14976main ()
14977{
14978return shl_load ();
14979 ;
14980 return 0;
14981}
14982_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014983if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014984 ac_cv_lib_dld_shl_load=yes
14985else
cristy8b350f62009-11-15 23:12:43 +000014986 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000014987fi
cristy8b350f62009-11-15 23:12:43 +000014988rm -f core conftest.err conftest.$ac_objext \
14989 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014990LIBS=$ac_check_lib_save_LIBS
14991fi
cristy8b350f62009-11-15 23:12:43 +000014992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000014993$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014994if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014995 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14996else
cristy8b350f62009-11-15 23:12:43 +000014997 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14998if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014999 lt_cv_dlopen="dlopen"
15000else
cristy8b350f62009-11-15 23:12:43 +000015001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015002$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015003if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015004 $as_echo_n "(cached) " >&6
15005else
15006 ac_check_lib_save_LIBS=$LIBS
15007LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015009/* end confdefs.h. */
15010
15011/* Override any GCC internal prototype to avoid an error.
15012 Use char because int might match the return type of a GCC
15013 builtin and then its argument prototype would still apply. */
15014#ifdef __cplusplus
15015extern "C"
15016#endif
15017char dlopen ();
15018int
15019main ()
15020{
15021return dlopen ();
15022 ;
15023 return 0;
15024}
15025_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015026if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015027 ac_cv_lib_dl_dlopen=yes
15028else
cristy8b350f62009-11-15 23:12:43 +000015029 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015030fi
cristy8b350f62009-11-15 23:12:43 +000015031rm -f core conftest.err conftest.$ac_objext \
15032 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015033LIBS=$ac_check_lib_save_LIBS
15034fi
cristy8b350f62009-11-15 23:12:43 +000015035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015036$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015037if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15039else
cristy8b350f62009-11-15 23:12:43 +000015040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015041$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015042if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015043 $as_echo_n "(cached) " >&6
15044else
15045 ac_check_lib_save_LIBS=$LIBS
15046LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015048/* end confdefs.h. */
15049
15050/* Override any GCC internal prototype to avoid an error.
15051 Use char because int might match the return type of a GCC
15052 builtin and then its argument prototype would still apply. */
15053#ifdef __cplusplus
15054extern "C"
15055#endif
15056char dlopen ();
15057int
15058main ()
15059{
15060return dlopen ();
15061 ;
15062 return 0;
15063}
15064_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015065if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015066 ac_cv_lib_svld_dlopen=yes
15067else
cristy8b350f62009-11-15 23:12:43 +000015068 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015069fi
cristy8b350f62009-11-15 23:12:43 +000015070rm -f core conftest.err conftest.$ac_objext \
15071 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015072LIBS=$ac_check_lib_save_LIBS
15073fi
cristy8b350f62009-11-15 23:12:43 +000015074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015075$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015076if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15078else
cristy8b350f62009-11-15 23:12:43 +000015079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015080$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015081if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015082 $as_echo_n "(cached) " >&6
15083else
15084 ac_check_lib_save_LIBS=$LIBS
15085LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015087/* end confdefs.h. */
15088
15089/* Override any GCC internal prototype to avoid an error.
15090 Use char because int might match the return type of a GCC
15091 builtin and then its argument prototype would still apply. */
15092#ifdef __cplusplus
15093extern "C"
15094#endif
15095char dld_link ();
15096int
15097main ()
15098{
15099return dld_link ();
15100 ;
15101 return 0;
15102}
15103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015104if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015105 ac_cv_lib_dld_dld_link=yes
15106else
cristy8b350f62009-11-15 23:12:43 +000015107 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015108fi
cristy8b350f62009-11-15 23:12:43 +000015109rm -f core conftest.err conftest.$ac_objext \
15110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015111LIBS=$ac_check_lib_save_LIBS
15112fi
cristy8b350f62009-11-15 23:12:43 +000015113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015114$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015115if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015116 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15117fi
15118
15119
15120fi
15121
15122
15123fi
15124
15125
15126fi
15127
15128
15129fi
15130
15131
15132fi
15133
15134 ;;
15135 esac
15136
15137 if test "x$lt_cv_dlopen" != xno; then
15138 enable_dlopen=yes
15139 else
15140 enable_dlopen=no
15141 fi
15142
15143 case $lt_cv_dlopen in
15144 dlopen)
15145 save_CPPFLAGS="$CPPFLAGS"
15146 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15147
15148 save_LDFLAGS="$LDFLAGS"
15149 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15150
15151 save_LIBS="$LIBS"
15152 LIBS="$lt_cv_dlopen_libs $LIBS"
15153
cristy8b350f62009-11-15 23:12:43 +000015154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015155$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015156if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015157 $as_echo_n "(cached) " >&6
15158else
15159 if test "$cross_compiling" = yes; then :
15160 lt_cv_dlopen_self=cross
15161else
15162 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15163 lt_status=$lt_dlunknown
15164 cat > conftest.$ac_ext <<_LT_EOF
cristy4689cf02010-02-17 21:15:45 +000015165#line 15165 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015166#include "confdefs.h"
15167
15168#if HAVE_DLFCN_H
15169#include <dlfcn.h>
15170#endif
15171
15172#include <stdio.h>
15173
15174#ifdef RTLD_GLOBAL
15175# define LT_DLGLOBAL RTLD_GLOBAL
15176#else
15177# ifdef DL_GLOBAL
15178# define LT_DLGLOBAL DL_GLOBAL
15179# else
15180# define LT_DLGLOBAL 0
15181# endif
15182#endif
15183
15184/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15185 find out it does not work in some platform. */
15186#ifndef LT_DLLAZY_OR_NOW
15187# ifdef RTLD_LAZY
15188# define LT_DLLAZY_OR_NOW RTLD_LAZY
15189# else
15190# ifdef DL_LAZY
15191# define LT_DLLAZY_OR_NOW DL_LAZY
15192# else
15193# ifdef RTLD_NOW
15194# define LT_DLLAZY_OR_NOW RTLD_NOW
15195# else
15196# ifdef DL_NOW
15197# define LT_DLLAZY_OR_NOW DL_NOW
15198# else
15199# define LT_DLLAZY_OR_NOW 0
15200# endif
15201# endif
15202# endif
15203# endif
15204#endif
15205
cristy18304f92009-11-22 15:48:26 +000015206void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015207int main ()
15208{
15209 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15210 int status = $lt_dlunknown;
15211
15212 if (self)
15213 {
15214 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015215 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015216 /* dlclose (self); */
15217 }
15218 else
15219 puts (dlerror ());
15220
15221 return status;
15222}
15223_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015225 (eval $ac_link) 2>&5
15226 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15228 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015229 (./conftest; exit; ) >&5 2>/dev/null
15230 lt_status=$?
15231 case x$lt_status in
15232 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15233 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15234 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15235 esac
15236 else :
15237 # compilation failed
15238 lt_cv_dlopen_self=no
15239 fi
15240fi
15241rm -fr conftest*
15242
15243
15244fi
cristy8b350f62009-11-15 23:12:43 +000015245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015246$as_echo "$lt_cv_dlopen_self" >&6; }
15247
15248 if test "x$lt_cv_dlopen_self" = xyes; then
15249 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015251$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015252if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015253 $as_echo_n "(cached) " >&6
15254else
15255 if test "$cross_compiling" = yes; then :
15256 lt_cv_dlopen_self_static=cross
15257else
15258 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15259 lt_status=$lt_dlunknown
15260 cat > conftest.$ac_ext <<_LT_EOF
cristy4689cf02010-02-17 21:15:45 +000015261#line 15261 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015262#include "confdefs.h"
15263
15264#if HAVE_DLFCN_H
15265#include <dlfcn.h>
15266#endif
15267
15268#include <stdio.h>
15269
15270#ifdef RTLD_GLOBAL
15271# define LT_DLGLOBAL RTLD_GLOBAL
15272#else
15273# ifdef DL_GLOBAL
15274# define LT_DLGLOBAL DL_GLOBAL
15275# else
15276# define LT_DLGLOBAL 0
15277# endif
15278#endif
15279
15280/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15281 find out it does not work in some platform. */
15282#ifndef LT_DLLAZY_OR_NOW
15283# ifdef RTLD_LAZY
15284# define LT_DLLAZY_OR_NOW RTLD_LAZY
15285# else
15286# ifdef DL_LAZY
15287# define LT_DLLAZY_OR_NOW DL_LAZY
15288# else
15289# ifdef RTLD_NOW
15290# define LT_DLLAZY_OR_NOW RTLD_NOW
15291# else
15292# ifdef DL_NOW
15293# define LT_DLLAZY_OR_NOW DL_NOW
15294# else
15295# define LT_DLLAZY_OR_NOW 0
15296# endif
15297# endif
15298# endif
15299# endif
15300#endif
15301
cristy18304f92009-11-22 15:48:26 +000015302void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015303int main ()
15304{
15305 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15306 int status = $lt_dlunknown;
15307
15308 if (self)
15309 {
15310 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015311 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015312 /* dlclose (self); */
15313 }
15314 else
15315 puts (dlerror ());
15316
15317 return status;
15318}
15319_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015321 (eval $ac_link) 2>&5
15322 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15324 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015325 (./conftest; exit; ) >&5 2>/dev/null
15326 lt_status=$?
15327 case x$lt_status in
15328 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15329 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15330 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15331 esac
15332 else :
15333 # compilation failed
15334 lt_cv_dlopen_self_static=no
15335 fi
15336fi
15337rm -fr conftest*
15338
15339
15340fi
cristy8b350f62009-11-15 23:12:43 +000015341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015342$as_echo "$lt_cv_dlopen_self_static" >&6; }
15343 fi
15344
15345 CPPFLAGS="$save_CPPFLAGS"
15346 LDFLAGS="$save_LDFLAGS"
15347 LIBS="$save_LIBS"
15348 ;;
15349 esac
15350
15351 case $lt_cv_dlopen_self in
15352 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15353 *) enable_dlopen_self=unknown ;;
15354 esac
15355
15356 case $lt_cv_dlopen_self_static in
15357 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15358 *) enable_dlopen_self_static=unknown ;;
15359 esac
15360fi
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378striplib=
15379old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015381$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15382if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15383 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15384 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015386$as_echo "yes" >&6; }
15387else
15388# FIXME - insert some real tests, host_os isn't really good enough
15389 case $host_os in
15390 darwin*)
15391 if test -n "$STRIP" ; then
15392 striplib="$STRIP -x"
15393 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015395$as_echo "yes" >&6; }
15396 else
cristy8b350f62009-11-15 23:12:43 +000015397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015398$as_echo "no" >&6; }
15399 fi
15400 ;;
15401 *)
cristy8b350f62009-11-15 23:12:43 +000015402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015403$as_echo "no" >&6; }
15404 ;;
15405 esac
15406fi
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015421$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015423$as_echo "$can_build_shared" >&6; }
15424
cristy8b350f62009-11-15 23:12:43 +000015425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015426$as_echo_n "checking whether to build shared libraries... " >&6; }
15427 test "$can_build_shared" = "no" && enable_shared=no
15428
15429 # On AIX, shared libraries and static libraries use the same namespace, and
15430 # are all built from PIC.
15431 case $host_os in
15432 aix3*)
15433 test "$enable_shared" = yes && enable_static=no
15434 if test -n "$RANLIB"; then
15435 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15436 postinstall_cmds='$RANLIB $lib'
15437 fi
15438 ;;
15439
15440 aix[4-9]*)
15441 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15442 test "$enable_shared" = yes && enable_static=no
15443 fi
15444 ;;
15445 esac
cristy8b350f62009-11-15 23:12:43 +000015446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015447$as_echo "$enable_shared" >&6; }
15448
cristy8b350f62009-11-15 23:12:43 +000015449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015450$as_echo_n "checking whether to build static libraries... " >&6; }
15451 # Make sure either enable_shared or enable_static is yes.
15452 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015454$as_echo "$enable_static" >&6; }
15455
15456
15457
15458
15459fi
15460ac_ext=c
15461ac_cpp='$CPP $CPPFLAGS'
15462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15464ac_compiler_gnu=$ac_cv_c_compiler_gnu
15465
15466CC="$lt_save_CC"
15467
15468
15469ac_ext=cpp
15470ac_cpp='$CXXCPP $CPPFLAGS'
15471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15474
15475archive_cmds_need_lc_CXX=no
15476allow_undefined_flag_CXX=
15477always_export_symbols_CXX=no
15478archive_expsym_cmds_CXX=
15479compiler_needs_object_CXX=no
15480export_dynamic_flag_spec_CXX=
15481hardcode_direct_CXX=no
15482hardcode_direct_absolute_CXX=no
15483hardcode_libdir_flag_spec_CXX=
15484hardcode_libdir_flag_spec_ld_CXX=
15485hardcode_libdir_separator_CXX=
15486hardcode_minus_L_CXX=no
15487hardcode_shlibpath_var_CXX=unsupported
15488hardcode_automatic_CXX=no
15489inherit_rpath_CXX=no
15490module_cmds_CXX=
15491module_expsym_cmds_CXX=
15492link_all_deplibs_CXX=unknown
15493old_archive_cmds_CXX=$old_archive_cmds
15494no_undefined_flag_CXX=
15495whole_archive_flag_spec_CXX=
15496enable_shared_with_static_runtimes_CXX=no
15497
15498# Source file extension for C++ test sources.
15499ac_ext=cpp
15500
15501# Object file extension for compiled C++ test sources.
15502objext=o
15503objext_CXX=$objext
15504
15505# No sense in running all these tests if we already determined that
15506# the CXX compiler isn't working. Some variables (like enable_shared)
15507# are currently assumed to apply to all compilers on this platform,
15508# and will be corrupted by setting them based on a non-working compiler.
15509if test "$_lt_caught_CXX_error" != yes; then
15510 # Code to be used in simple compile tests
15511 lt_simple_compile_test_code="int some_variable = 0;"
15512
15513 # Code to be used in simple link tests
15514 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15515
15516 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15517
15518
15519
15520
15521
15522
15523# If no C compiler was specified, use CC.
15524LTCC=${LTCC-"$CC"}
15525
15526# If no C compiler flags were specified, use CFLAGS.
15527LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15528
15529# Allow CC to be a program name with arguments.
15530compiler=$CC
15531
15532
15533 # save warnings/boilerplate of simple test code
15534 ac_outfile=conftest.$ac_objext
15535echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15536eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15537_lt_compiler_boilerplate=`cat conftest.err`
15538$RM conftest*
15539
15540 ac_outfile=conftest.$ac_objext
15541echo "$lt_simple_link_test_code" >conftest.$ac_ext
15542eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15543_lt_linker_boilerplate=`cat conftest.err`
15544$RM -r conftest*
15545
15546
15547 # Allow CC to be a program name with arguments.
15548 lt_save_CC=$CC
15549 lt_save_LD=$LD
15550 lt_save_GCC=$GCC
15551 GCC=$GXX
15552 lt_save_with_gnu_ld=$with_gnu_ld
15553 lt_save_path_LD=$lt_cv_path_LD
15554 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15555 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15556 else
15557 $as_unset lt_cv_prog_gnu_ld
15558 fi
15559 if test -n "${lt_cv_path_LDCXX+set}"; then
15560 lt_cv_path_LD=$lt_cv_path_LDCXX
15561 else
15562 $as_unset lt_cv_path_LD
15563 fi
15564 test -z "${LDCXX+set}" || LD=$LDCXX
15565 CC=${CXX-"c++"}
15566 compiler=$CC
15567 compiler_CXX=$CC
15568 for cc_temp in $compiler""; do
15569 case $cc_temp in
15570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15572 \-*) ;;
15573 *) break;;
15574 esac
15575done
cristy18304f92009-11-22 15:48:26 +000015576cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000015577
15578
15579 if test -n "$compiler"; then
15580 # We don't want -fno-exception when compiling C++ code, so set the
15581 # no_builtin_flag separately
15582 if test "$GXX" = yes; then
15583 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15584 else
15585 lt_prog_compiler_no_builtin_flag_CXX=
15586 fi
15587
15588 if test "$GXX" = yes; then
15589 # Set up default GNU C++ configuration
15590
15591
15592
15593# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000015594if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015595 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15596else
15597 with_gnu_ld=no
15598fi
15599
15600ac_prog=ld
15601if test "$GCC" = yes; then
15602 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000015603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000015604$as_echo_n "checking for ld used by $CC... " >&6; }
15605 case $host in
15606 *-*-mingw*)
15607 # gcc leaves a trailing carriage return which upsets mingw
15608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15609 *)
15610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15611 esac
15612 case $ac_prog in
15613 # Accept absolute paths.
15614 [\\/]* | ?:[\\/]*)
15615 re_direlt='/[^/][^/]*/\.\./'
15616 # Canonicalize the pathname of ld
15617 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15618 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15619 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15620 done
15621 test -z "$LD" && LD="$ac_prog"
15622 ;;
15623 "")
15624 # If it fails, then pretend we aren't using GCC.
15625 ac_prog=ld
15626 ;;
15627 *)
15628 # If it is relative, then search for the first ld in PATH.
15629 with_gnu_ld=unknown
15630 ;;
15631 esac
15632elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000015633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015634$as_echo_n "checking for GNU ld... " >&6; }
15635else
cristy8b350f62009-11-15 23:12:43 +000015636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015637$as_echo_n "checking for non-GNU ld... " >&6; }
15638fi
cristy8b350f62009-11-15 23:12:43 +000015639if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015640 $as_echo_n "(cached) " >&6
15641else
15642 if test -z "$LD"; then
15643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15644 for ac_dir in $PATH; do
15645 IFS="$lt_save_ifs"
15646 test -z "$ac_dir" && ac_dir=.
15647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15648 lt_cv_path_LD="$ac_dir/$ac_prog"
15649 # Check to see if the program is GNU ld. I'd rather use --version,
15650 # but apparently some variants of GNU ld only accept -v.
15651 # Break only if it was the GNU/non-GNU ld that we prefer.
15652 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15653 *GNU* | *'with BFD'*)
15654 test "$with_gnu_ld" != no && break
15655 ;;
15656 *)
15657 test "$with_gnu_ld" != yes && break
15658 ;;
15659 esac
15660 fi
15661 done
15662 IFS="$lt_save_ifs"
15663else
15664 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15665fi
15666fi
15667
15668LD="$lt_cv_path_LD"
15669if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000015670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000015671$as_echo "$LD" >&6; }
15672else
cristy8b350f62009-11-15 23:12:43 +000015673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015674$as_echo "no" >&6; }
15675fi
cristy8b350f62009-11-15 23:12:43 +000015676test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015678$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015679if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015680 $as_echo_n "(cached) " >&6
15681else
15682 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15683case `$LD -v 2>&1 </dev/null` in
15684*GNU* | *'with BFD'*)
15685 lt_cv_prog_gnu_ld=yes
15686 ;;
15687*)
15688 lt_cv_prog_gnu_ld=no
15689 ;;
15690esac
15691fi
cristy8b350f62009-11-15 23:12:43 +000015692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015693$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15694with_gnu_ld=$lt_cv_prog_gnu_ld
15695
15696
15697
15698
15699
15700
15701
15702 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15703 # archiving commands below assume that GNU ld is being used.
15704 if test "$with_gnu_ld" = yes; then
15705 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15706 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'
15707
15708 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15709 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15710
15711 # If archive_cmds runs LD, not CC, wlarc should be empty
15712 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15713 # investigate it a little bit more. (MM)
15714 wlarc='${wl}'
15715
15716 # ancient GNU ld didn't support --whole-archive et. al.
15717 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15718 $GREP 'no-whole-archive' > /dev/null; then
15719 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15720 else
15721 whole_archive_flag_spec_CXX=
15722 fi
15723 else
15724 with_gnu_ld=no
15725 wlarc=
15726
15727 # A generic and very simple default shared library creation
15728 # command for GNU C++ for the case where it uses the native
15729 # linker, instead of GNU ld. If possible, this setting should
15730 # overridden to take advantage of the native linker features on
15731 # the platform it is being used on.
15732 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15733 fi
15734
15735 # Commands to make compiler produce verbose output that lists
15736 # what "hidden" libraries, object files and flags are used when
15737 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015738 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015739
15740 else
15741 GXX=no
15742 with_gnu_ld=no
15743 wlarc=
15744 fi
15745
15746 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000015747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015748$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15749 ld_shlibs_CXX=yes
15750 case $host_os in
15751 aix3*)
15752 # FIXME: insert proper C++ library support
15753 ld_shlibs_CXX=no
15754 ;;
15755 aix[4-9]*)
15756 if test "$host_cpu" = ia64; then
15757 # On IA64, the linker does run time linking by default, so we don't
15758 # have to do anything special.
15759 aix_use_runtimelinking=no
15760 exp_sym_flag='-Bexport'
15761 no_entry_flag=""
15762 else
15763 aix_use_runtimelinking=no
15764
15765 # Test if we are trying to use run time linking or normal
15766 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15767 # need to do runtime linking.
15768 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15769 for ld_flag in $LDFLAGS; do
15770 case $ld_flag in
15771 *-brtl*)
15772 aix_use_runtimelinking=yes
15773 break
15774 ;;
15775 esac
15776 done
15777 ;;
15778 esac
15779
15780 exp_sym_flag='-bexport'
15781 no_entry_flag='-bnoentry'
15782 fi
15783
15784 # When large executables or shared objects are built, AIX ld can
15785 # have problems creating the table of contents. If linking a library
15786 # or program results in "error TOC overflow" add -mminimal-toc to
15787 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15788 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15789
15790 archive_cmds_CXX=''
15791 hardcode_direct_CXX=yes
15792 hardcode_direct_absolute_CXX=yes
15793 hardcode_libdir_separator_CXX=':'
15794 link_all_deplibs_CXX=yes
15795 file_list_spec_CXX='${wl}-f,'
15796
15797 if test "$GXX" = yes; then
15798 case $host_os in aix4.[012]|aix4.[012].*)
15799 # We only want to do this on AIX 4.2 and lower, the check
15800 # below for broken collect2 doesn't work under 4.3+
15801 collect2name=`${CC} -print-prog-name=collect2`
15802 if test -f "$collect2name" &&
15803 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15804 then
15805 # We have reworked collect2
15806 :
15807 else
15808 # We have old collect2
15809 hardcode_direct_CXX=unsupported
15810 # It fails to find uninstalled libraries when the uninstalled
15811 # path is not listed in the libpath. Setting hardcode_minus_L
15812 # to unsupported forces relinking
15813 hardcode_minus_L_CXX=yes
15814 hardcode_libdir_flag_spec_CXX='-L$libdir'
15815 hardcode_libdir_separator_CXX=
15816 fi
15817 esac
15818 shared_flag='-shared'
15819 if test "$aix_use_runtimelinking" = yes; then
15820 shared_flag="$shared_flag "'${wl}-G'
15821 fi
15822 else
15823 # not using gcc
15824 if test "$host_cpu" = ia64; then
15825 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15826 # chokes on -Wl,-G. The following line is correct:
15827 shared_flag='-G'
15828 else
15829 if test "$aix_use_runtimelinking" = yes; then
15830 shared_flag='${wl}-G'
15831 else
15832 shared_flag='${wl}-bM:SRE'
15833 fi
15834 fi
15835 fi
15836
15837 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15838 # It seems that -bexpall does not export symbols beginning with
15839 # underscore (_), so it is better to generate a list of symbols to
15840 # export.
15841 always_export_symbols_CXX=yes
15842 if test "$aix_use_runtimelinking" = yes; then
15843 # Warning - without using the other runtime loading flags (-brtl),
15844 # -berok will link without error, but may produce a broken library.
15845 allow_undefined_flag_CXX='-berok'
15846 # Determine the default libpath from the value encoded in an empty
15847 # executable.
cristy8b350f62009-11-15 23:12:43 +000015848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015849/* end confdefs.h. */
15850
15851int
15852main ()
15853{
15854
15855 ;
15856 return 0;
15857}
15858_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015859if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015860
15861lt_aix_libpath_sed='
15862 /Import File Strings/,/^$/ {
15863 /^0/ {
15864 s/^0 *\(.*\)$/\1/
15865 p
15866 }
15867 }'
15868aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15869# Check for a 64-bit object if we didn't find anything.
15870if test -z "$aix_libpath"; then
15871 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15872fi
cristy3ed852e2009-09-05 21:47:34 +000015873fi
cristy8b350f62009-11-15 23:12:43 +000015874rm -f core conftest.err conftest.$ac_objext \
15875 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015876if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15877
15878 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15879
cristy18304f92009-11-22 15:48:26 +000015880 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy3ed852e2009-09-05 21:47:34 +000015881 else
15882 if test "$host_cpu" = ia64; then
15883 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15884 allow_undefined_flag_CXX="-z nodefs"
15885 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"
15886 else
15887 # Determine the default libpath from the value encoded in an
15888 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000015889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015890/* end confdefs.h. */
15891
15892int
15893main ()
15894{
15895
15896 ;
15897 return 0;
15898}
15899_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015900if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015901
15902lt_aix_libpath_sed='
15903 /Import File Strings/,/^$/ {
15904 /^0/ {
15905 s/^0 *\(.*\)$/\1/
15906 p
15907 }
15908 }'
15909aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15910# Check for a 64-bit object if we didn't find anything.
15911if test -z "$aix_libpath"; then
15912 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15913fi
cristy3ed852e2009-09-05 21:47:34 +000015914fi
cristy8b350f62009-11-15 23:12:43 +000015915rm -f core conftest.err conftest.$ac_objext \
15916 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015917if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15918
15919 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15920 # Warning - without using the other run time loading flags,
15921 # -berok will link without error, but may produce a broken library.
15922 no_undefined_flag_CXX=' ${wl}-bernotok'
15923 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000015924 # Exported symbols can be pulled into shared objects from archives
15925 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000015926 archive_cmds_need_lc_CXX=yes
15927 # This is similar to how AIX traditionally builds its shared
15928 # libraries.
15929 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'
15930 fi
15931 fi
15932 ;;
15933
15934 beos*)
15935 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15936 allow_undefined_flag_CXX=unsupported
15937 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15938 # support --undefined. This deserves some investigation. FIXME
15939 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15940 else
15941 ld_shlibs_CXX=no
15942 fi
15943 ;;
15944
15945 chorus*)
15946 case $cc_basename in
15947 *)
15948 # FIXME: insert proper C++ library support
15949 ld_shlibs_CXX=no
15950 ;;
15951 esac
15952 ;;
15953
15954 cygwin* | mingw* | pw32* | cegcc*)
15955 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15956 # as there is no search path for DLLs.
15957 hardcode_libdir_flag_spec_CXX='-L$libdir'
15958 allow_undefined_flag_CXX=unsupported
15959 always_export_symbols_CXX=no
15960 enable_shared_with_static_runtimes_CXX=yes
15961
15962 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15963 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'
15964 # If the export-symbols file already is a .def file (1st line
15965 # is EXPORTS), use it as is; otherwise, prepend...
15966 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15967 cp $export_symbols $output_objdir/$soname.def;
15968 else
15969 echo EXPORTS > $output_objdir/$soname.def;
15970 cat $export_symbols >> $output_objdir/$soname.def;
15971 fi~
15972 $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'
15973 else
15974 ld_shlibs_CXX=no
15975 fi
15976 ;;
15977 darwin* | rhapsody*)
15978
15979
15980 archive_cmds_need_lc_CXX=no
15981 hardcode_direct_CXX=no
15982 hardcode_automatic_CXX=yes
15983 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000015984 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000015985 link_all_deplibs_CXX=yes
15986 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15987 case $cc_basename in
15988 ifort*) _lt_dar_can_shared=yes ;;
15989 *) _lt_dar_can_shared=$GCC ;;
15990 esac
15991 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000015992 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015993 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}"
15994 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15995 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}"
15996 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}"
15997 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15998 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}"
15999 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}"
16000 fi
16001
16002 else
16003 ld_shlibs_CXX=no
16004 fi
16005
16006 ;;
16007
16008 dgux*)
16009 case $cc_basename in
16010 ec++*)
16011 # FIXME: insert proper C++ library support
16012 ld_shlibs_CXX=no
16013 ;;
16014 ghcx*)
16015 # Green Hills C++ Compiler
16016 # FIXME: insert proper C++ library support
16017 ld_shlibs_CXX=no
16018 ;;
16019 *)
16020 # FIXME: insert proper C++ library support
16021 ld_shlibs_CXX=no
16022 ;;
16023 esac
16024 ;;
16025
16026 freebsd[12]*)
16027 # C++ shared libraries reported to be fairly broken before
16028 # switch to ELF
16029 ld_shlibs_CXX=no
16030 ;;
16031
16032 freebsd-elf*)
16033 archive_cmds_need_lc_CXX=no
16034 ;;
16035
16036 freebsd* | dragonfly*)
16037 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16038 # conventions
16039 ld_shlibs_CXX=yes
16040 ;;
16041
16042 gnu*)
16043 ;;
16044
16045 hpux9*)
16046 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16047 hardcode_libdir_separator_CXX=:
16048 export_dynamic_flag_spec_CXX='${wl}-E'
16049 hardcode_direct_CXX=yes
16050 hardcode_minus_L_CXX=yes # Not in the search PATH,
16051 # but as the default
16052 # location of the library.
16053
16054 case $cc_basename in
16055 CC*)
16056 # FIXME: insert proper C++ library support
16057 ld_shlibs_CXX=no
16058 ;;
16059 aCC*)
16060 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'
16061 # Commands to make compiler produce verbose output that lists
16062 # what "hidden" libraries, object files and flags are used when
16063 # linking a shared library.
16064 #
16065 # There doesn't appear to be a way to prevent this compiler from
16066 # explicitly linking system object files so we need to strip them
16067 # from the output so that they don't get included in the library
16068 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016069 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
cristy3ed852e2009-09-05 21:47:34 +000016070 ;;
16071 *)
16072 if test "$GXX" = yes; then
16073 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'
16074 else
16075 # FIXME: insert proper C++ library support
16076 ld_shlibs_CXX=no
16077 fi
16078 ;;
16079 esac
16080 ;;
16081
16082 hpux10*|hpux11*)
16083 if test $with_gnu_ld = no; then
16084 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16085 hardcode_libdir_separator_CXX=:
16086
16087 case $host_cpu in
16088 hppa*64*|ia64*)
16089 ;;
16090 *)
16091 export_dynamic_flag_spec_CXX='${wl}-E'
16092 ;;
16093 esac
16094 fi
16095 case $host_cpu in
16096 hppa*64*|ia64*)
16097 hardcode_direct_CXX=no
16098 hardcode_shlibpath_var_CXX=no
16099 ;;
16100 *)
16101 hardcode_direct_CXX=yes
16102 hardcode_direct_absolute_CXX=yes
16103 hardcode_minus_L_CXX=yes # Not in the search PATH,
16104 # but as the default
16105 # location of the library.
16106 ;;
16107 esac
16108
16109 case $cc_basename in
16110 CC*)
16111 # FIXME: insert proper C++ library support
16112 ld_shlibs_CXX=no
16113 ;;
16114 aCC*)
16115 case $host_cpu in
16116 hppa*64*)
16117 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16118 ;;
16119 ia64*)
16120 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16121 ;;
16122 *)
16123 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16124 ;;
16125 esac
16126 # Commands to make compiler produce verbose output that lists
16127 # what "hidden" libraries, object files and flags are used when
16128 # linking a shared library.
16129 #
16130 # There doesn't appear to be a way to prevent this compiler from
16131 # explicitly linking system object files so we need to strip them
16132 # from the output so that they don't get included in the library
16133 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016134 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
cristy3ed852e2009-09-05 21:47:34 +000016135 ;;
16136 *)
16137 if test "$GXX" = yes; then
16138 if test $with_gnu_ld = no; then
16139 case $host_cpu in
16140 hppa*64*)
16141 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16142 ;;
16143 ia64*)
16144 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16145 ;;
16146 *)
16147 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'
16148 ;;
16149 esac
16150 fi
16151 else
16152 # FIXME: insert proper C++ library support
16153 ld_shlibs_CXX=no
16154 fi
16155 ;;
16156 esac
16157 ;;
16158
16159 interix[3-9]*)
16160 hardcode_direct_CXX=no
16161 hardcode_shlibpath_var_CXX=no
16162 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16163 export_dynamic_flag_spec_CXX='${wl}-E'
16164 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16165 # Instead, shared libraries are loaded at an image base (0x10000000 by
16166 # default) and relocated if they conflict, which is a slow very memory
16167 # consuming and fragmenting process. To avoid this, we pick a random,
16168 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16169 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16170 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'
16171 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'
16172 ;;
16173 irix5* | irix6*)
16174 case $cc_basename in
16175 CC*)
16176 # SGI C++
cristy18304f92009-11-22 15:48:26 +000016177 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016178
16179 # Archives containing C++ object files must be created using
16180 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16181 # necessary to make sure instantiated templates are included
16182 # in the archive.
16183 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16184 ;;
16185 *)
16186 if test "$GXX" = yes; then
16187 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000016188 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016189 else
cristy18304f92009-11-22 15:48:26 +000016190 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016191 fi
16192 fi
16193 link_all_deplibs_CXX=yes
16194 ;;
16195 esac
16196 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16197 hardcode_libdir_separator_CXX=:
16198 inherit_rpath_CXX=yes
16199 ;;
16200
cristy18304f92009-11-22 15:48:26 +000016201 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016202 case $cc_basename in
16203 KCC*)
16204 # Kuck and Associates, Inc. (KAI) C++ Compiler
16205
16206 # KCC will only create a shared library if the output file
16207 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16208 # to its proper name (with version) after linking.
16209 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'
16210 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'
16211 # Commands to make compiler produce verbose output that lists
16212 # what "hidden" libraries, object files and flags are used when
16213 # linking a shared library.
16214 #
16215 # There doesn't appear to be a way to prevent this compiler from
16216 # explicitly linking system object files so we need to strip them
16217 # from the output so that they don't get included in the library
16218 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016219 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
cristy3ed852e2009-09-05 21:47:34 +000016220
16221 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16222 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16223
16224 # Archives containing C++ object files must be created using
16225 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16226 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16227 ;;
16228 icpc* | ecpc* )
16229 # Intel C++
16230 with_gnu_ld=yes
16231 # version 8.0 and above of icpc choke on multiply defined symbols
16232 # if we add $predep_objects and $postdep_objects, however 7.1 and
16233 # earlier do not add the objects themselves.
16234 case `$CC -V 2>&1` in
16235 *"Version 7."*)
16236 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16237 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'
16238 ;;
16239 *) # Version 8.0 or newer
16240 tmp_idyn=
16241 case $host_cpu in
16242 ia64*) tmp_idyn=' -i_dynamic';;
16243 esac
16244 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16245 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'
16246 ;;
16247 esac
16248 archive_cmds_need_lc_CXX=no
16249 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16250 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16251 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16252 ;;
16253 pgCC* | pgcpp*)
16254 # Portland Group C++ compiler
16255 case `$CC -V` in
16256 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16257 prelink_cmds_CXX='tpldir=Template.dir~
16258 rm -rf $tpldir~
16259 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16260 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16261 old_archive_cmds_CXX='tpldir=Template.dir~
16262 rm -rf $tpldir~
16263 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16264 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16265 $RANLIB $oldlib'
16266 archive_cmds_CXX='tpldir=Template.dir~
16267 rm -rf $tpldir~
16268 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16269 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16270 archive_expsym_cmds_CXX='tpldir=Template.dir~
16271 rm -rf $tpldir~
16272 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16273 $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'
16274 ;;
16275 *) # Version 6 will use weak symbols
16276 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16277 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'
16278 ;;
16279 esac
16280
16281 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16282 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000016283 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
cristy3ed852e2009-09-05 21:47:34 +000016284 ;;
16285 cxx*)
16286 # Compaq C++
16287 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16288 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'
16289
16290 runpath_var=LD_RUN_PATH
16291 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16292 hardcode_libdir_separator_CXX=:
16293
16294 # Commands to make compiler produce verbose output that lists
16295 # what "hidden" libraries, object files and flags are used when
16296 # linking a shared library.
16297 #
16298 # There doesn't appear to be a way to prevent this compiler from
16299 # explicitly linking system object files so we need to strip them
16300 # from the output so that they don't get included in the library
16301 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016302 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
cristy3ed852e2009-09-05 21:47:34 +000016303 ;;
cristy18304f92009-11-22 15:48:26 +000016304 xl*)
cristy3ed852e2009-09-05 21:47:34 +000016305 # IBM XL 8.0 on PPC, with GNU ld
16306 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16307 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16308 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16309 if test "x$supports_anon_versioning" = xyes; then
16310 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16311 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16312 echo "local: *; };" >> $output_objdir/$libname.ver~
16313 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16314 fi
16315 ;;
16316 *)
16317 case `$CC -V 2>&1 | sed 5q` in
16318 *Sun\ C*)
16319 # Sun C++ 5.9
16320 no_undefined_flag_CXX=' -zdefs'
16321 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16322 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'
16323 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000016324 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
cristy3ed852e2009-09-05 21:47:34 +000016325 compiler_needs_object_CXX=yes
16326
16327 # Not sure whether something based on
16328 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16329 # would be better.
cristy18304f92009-11-22 15:48:26 +000016330 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000016331
16332 # Archives containing C++ object files must be created using
16333 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16334 # necessary to make sure instantiated templates are included
16335 # in the archive.
16336 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16337 ;;
16338 esac
16339 ;;
16340 esac
16341 ;;
16342
16343 lynxos*)
16344 # FIXME: insert proper C++ library support
16345 ld_shlibs_CXX=no
16346 ;;
16347
16348 m88k*)
16349 # FIXME: insert proper C++ library support
16350 ld_shlibs_CXX=no
16351 ;;
16352
16353 mvs*)
16354 case $cc_basename in
16355 cxx*)
16356 # FIXME: insert proper C++ library support
16357 ld_shlibs_CXX=no
16358 ;;
16359 *)
16360 # FIXME: insert proper C++ library support
16361 ld_shlibs_CXX=no
16362 ;;
16363 esac
16364 ;;
16365
16366 netbsd*)
16367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16368 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16369 wlarc=
16370 hardcode_libdir_flag_spec_CXX='-R$libdir'
16371 hardcode_direct_CXX=yes
16372 hardcode_shlibpath_var_CXX=no
16373 fi
16374 # Workaround some broken pre-1.5 toolchains
16375 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16376 ;;
16377
16378 *nto* | *qnx*)
16379 ld_shlibs_CXX=yes
16380 ;;
16381
16382 openbsd2*)
16383 # C++ shared libraries are fairly broken
16384 ld_shlibs_CXX=no
16385 ;;
16386
16387 openbsd*)
16388 if test -f /usr/libexec/ld.so; then
16389 hardcode_direct_CXX=yes
16390 hardcode_shlibpath_var_CXX=no
16391 hardcode_direct_absolute_CXX=yes
16392 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16395 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16396 export_dynamic_flag_spec_CXX='${wl}-E'
16397 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16398 fi
cristy18304f92009-11-22 15:48:26 +000016399 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016400 else
16401 ld_shlibs_CXX=no
16402 fi
16403 ;;
16404
16405 osf3* | osf4* | osf5*)
16406 case $cc_basename in
16407 KCC*)
16408 # Kuck and Associates, Inc. (KAI) C++ Compiler
16409
16410 # KCC will only create a shared library if the output file
16411 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16412 # to its proper name (with version) after linking.
16413 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'
16414
16415 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16416 hardcode_libdir_separator_CXX=:
16417
16418 # Archives containing C++ object files must be created using
16419 # the KAI C++ compiler.
16420 case $host in
16421 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16422 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16423 esac
16424 ;;
16425 RCC*)
16426 # Rational C++ 2.4.1
16427 # FIXME: insert proper C++ library support
16428 ld_shlibs_CXX=no
16429 ;;
16430 cxx*)
16431 case $host in
16432 osf3*)
16433 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000016434 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016435 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16436 ;;
16437 *)
16438 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000016439 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016440 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16441 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000016442 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
cristy3ed852e2009-09-05 21:47:34 +000016443 $RM $lib.exp'
16444 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16445 ;;
16446 esac
16447
16448 hardcode_libdir_separator_CXX=:
16449
16450 # Commands to make compiler produce verbose output that lists
16451 # what "hidden" libraries, object files and flags are used when
16452 # linking a shared library.
16453 #
16454 # There doesn't appear to be a way to prevent this compiler from
16455 # explicitly linking system object files so we need to strip them
16456 # from the output so that they don't get included in the library
16457 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016458 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
cristy3ed852e2009-09-05 21:47:34 +000016459 ;;
16460 *)
16461 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16462 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16463 case $host in
16464 osf3*)
cristy18304f92009-11-22 15:48:26 +000016465 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016466 ;;
16467 *)
cristy18304f92009-11-22 15:48:26 +000016468 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016469 ;;
16470 esac
16471
16472 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16473 hardcode_libdir_separator_CXX=:
16474
16475 # Commands to make compiler produce verbose output that lists
16476 # what "hidden" libraries, object files and flags are used when
16477 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016478 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016479
16480 else
16481 # FIXME: insert proper C++ library support
16482 ld_shlibs_CXX=no
16483 fi
16484 ;;
16485 esac
16486 ;;
16487
16488 psos*)
16489 # FIXME: insert proper C++ library support
16490 ld_shlibs_CXX=no
16491 ;;
16492
16493 sunos4*)
16494 case $cc_basename in
16495 CC*)
16496 # Sun C++ 4.x
16497 # FIXME: insert proper C++ library support
16498 ld_shlibs_CXX=no
16499 ;;
16500 lcc*)
16501 # Lucid
16502 # FIXME: insert proper C++ library support
16503 ld_shlibs_CXX=no
16504 ;;
16505 *)
16506 # FIXME: insert proper C++ library support
16507 ld_shlibs_CXX=no
16508 ;;
16509 esac
16510 ;;
16511
16512 solaris*)
16513 case $cc_basename in
16514 CC*)
16515 # Sun C++ 4.2, 5.x and Centerline C++
16516 archive_cmds_need_lc_CXX=yes
16517 no_undefined_flag_CXX=' -zdefs'
16518 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16519 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16520 $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'
16521
16522 hardcode_libdir_flag_spec_CXX='-R$libdir'
16523 hardcode_shlibpath_var_CXX=no
16524 case $host_os in
16525 solaris2.[0-5] | solaris2.[0-5].*) ;;
16526 *)
16527 # The compiler driver will combine and reorder linker options,
16528 # but understands `-z linker_flag'.
16529 # Supported since Solaris 2.6 (maybe 2.5.1?)
16530 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16531 ;;
16532 esac
16533 link_all_deplibs_CXX=yes
16534
cristy18304f92009-11-22 15:48:26 +000016535 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000016536
16537 # Archives containing C++ object files must be created using
16538 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16539 # necessary to make sure instantiated templates are included
16540 # in the archive.
16541 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16542 ;;
16543 gcx*)
16544 # Green Hills C++ Compiler
16545 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16546
16547 # The C++ compiler must be used to create the archive.
16548 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16549 ;;
16550 *)
16551 # GNU C++ compiler with Solaris linker
16552 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16553 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16554 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16555 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16556 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16557 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16558
16559 # Commands to make compiler produce verbose output that lists
16560 # what "hidden" libraries, object files and flags are used when
16561 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016562 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016563 else
16564 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16565 # platform.
16566 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16567 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16568 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16569
16570 # Commands to make compiler produce verbose output that lists
16571 # what "hidden" libraries, object files and flags are used when
16572 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016573 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016574 fi
16575
16576 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16577 case $host_os in
16578 solaris2.[0-5] | solaris2.[0-5].*) ;;
16579 *)
16580 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16581 ;;
16582 esac
16583 fi
16584 ;;
16585 esac
16586 ;;
16587
16588 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16589 no_undefined_flag_CXX='${wl}-z,text'
16590 archive_cmds_need_lc_CXX=no
16591 hardcode_shlibpath_var_CXX=no
16592 runpath_var='LD_RUN_PATH'
16593
16594 case $cc_basename in
16595 CC*)
16596 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16597 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16598 ;;
16599 *)
16600 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16601 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16602 ;;
16603 esac
16604 ;;
16605
16606 sysv5* | sco3.2v5* | sco5v6*)
16607 # Note: We can NOT use -z defs as we might desire, because we do not
16608 # link with -lc, and that would cause any symbols used from libc to
16609 # always be unresolved, which means just about no library would
16610 # ever link correctly. If we're not using GNU ld we use -z text
16611 # though, which does catch some bad symbols but isn't as heavy-handed
16612 # as -z defs.
16613 no_undefined_flag_CXX='${wl}-z,text'
16614 allow_undefined_flag_CXX='${wl}-z,nodefs'
16615 archive_cmds_need_lc_CXX=no
16616 hardcode_shlibpath_var_CXX=no
16617 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16618 hardcode_libdir_separator_CXX=':'
16619 link_all_deplibs_CXX=yes
16620 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16621 runpath_var='LD_RUN_PATH'
16622
16623 case $cc_basename in
16624 CC*)
16625 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16626 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16627 ;;
16628 *)
16629 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16630 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16631 ;;
16632 esac
16633 ;;
16634
16635 tandem*)
16636 case $cc_basename in
16637 NCC*)
16638 # NonStop-UX NCC 3.20
16639 # FIXME: insert proper C++ library support
16640 ld_shlibs_CXX=no
16641 ;;
16642 *)
16643 # FIXME: insert proper C++ library support
16644 ld_shlibs_CXX=no
16645 ;;
16646 esac
16647 ;;
16648
16649 vxworks*)
16650 # FIXME: insert proper C++ library support
16651 ld_shlibs_CXX=no
16652 ;;
16653
16654 *)
16655 # FIXME: insert proper C++ library support
16656 ld_shlibs_CXX=no
16657 ;;
16658 esac
16659
cristy8b350f62009-11-15 23:12:43 +000016660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016661$as_echo "$ld_shlibs_CXX" >&6; }
16662 test "$ld_shlibs_CXX" = no && can_build_shared=no
16663
16664 GCC_CXX="$GXX"
16665 LD_CXX="$LD"
16666
16667 ## CAVEAT EMPTOR:
16668 ## There is no encapsulation within the following macros, do not change
16669 ## the running order or otherwise move them around unless you know exactly
16670 ## what you are doing...
16671 # Dependencies to place before and after the object being linked:
16672predep_objects_CXX=
16673postdep_objects_CXX=
16674predeps_CXX=
16675postdeps_CXX=
16676compiler_lib_search_path_CXX=
16677
16678cat > conftest.$ac_ext <<_LT_EOF
16679class Foo
16680{
16681public:
16682 Foo (void) { a = 0; }
16683private:
16684 int a;
16685};
16686_LT_EOF
16687
cristy8b350f62009-11-15 23:12:43 +000016688if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016689 (eval $ac_compile) 2>&5
16690 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16692 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000016693 # Parse the compiler output and extract the necessary
16694 # objects, libraries and library flags.
16695
16696 # Sentinel used to keep track of whether or not we are before
16697 # the conftest object file.
16698 pre_test_object_deps_done=no
16699
16700 for p in `eval "$output_verbose_link_cmd"`; do
16701 case $p in
16702
16703 -L* | -R* | -l*)
16704 # Some compilers place space between "-{L,R}" and the path.
16705 # Remove the space.
16706 if test $p = "-L" ||
16707 test $p = "-R"; then
16708 prev=$p
16709 continue
16710 else
16711 prev=
16712 fi
16713
16714 if test "$pre_test_object_deps_done" = no; then
16715 case $p in
16716 -L* | -R*)
16717 # Internal compiler library paths should come after those
16718 # provided the user. The postdeps already come after the
16719 # user supplied libs so there is no need to process them.
16720 if test -z "$compiler_lib_search_path_CXX"; then
16721 compiler_lib_search_path_CXX="${prev}${p}"
16722 else
16723 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16724 fi
16725 ;;
16726 # The "-l" case would never come before the object being
16727 # linked, so don't bother handling this case.
16728 esac
16729 else
16730 if test -z "$postdeps_CXX"; then
16731 postdeps_CXX="${prev}${p}"
16732 else
16733 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16734 fi
16735 fi
16736 ;;
16737
16738 *.$objext)
16739 # This assumes that the test object file only shows up
16740 # once in the compiler output.
16741 if test "$p" = "conftest.$objext"; then
16742 pre_test_object_deps_done=yes
16743 continue
16744 fi
16745
16746 if test "$pre_test_object_deps_done" = no; then
16747 if test -z "$predep_objects_CXX"; then
16748 predep_objects_CXX="$p"
16749 else
16750 predep_objects_CXX="$predep_objects_CXX $p"
16751 fi
16752 else
16753 if test -z "$postdep_objects_CXX"; then
16754 postdep_objects_CXX="$p"
16755 else
16756 postdep_objects_CXX="$postdep_objects_CXX $p"
16757 fi
16758 fi
16759 ;;
16760
16761 *) ;; # Ignore the rest.
16762
16763 esac
16764 done
16765
16766 # Clean up.
16767 rm -f a.out a.exe
16768else
16769 echo "libtool.m4: error: problem compiling CXX test program"
16770fi
16771
16772$RM -f confest.$objext
16773
16774# PORTME: override above test on systems where it is broken
16775case $host_os in
16776interix[3-9]*)
16777 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16778 # hack all around it, let's just trust "g++" to DTRT.
16779 predep_objects_CXX=
16780 postdep_objects_CXX=
16781 postdeps_CXX=
16782 ;;
16783
16784linux*)
16785 case `$CC -V 2>&1 | sed 5q` in
16786 *Sun\ C*)
16787 # Sun C++ 5.9
16788
16789 # The more standards-conforming stlport4 library is
16790 # incompatible with the Cstd library. Avoid specifying
16791 # it if it's in CXXFLAGS. Ignore libCrun as
16792 # -library=stlport4 depends on it.
16793 case " $CXX $CXXFLAGS " in
16794 *" -library=stlport4 "*)
16795 solaris_use_stlport4=yes
16796 ;;
16797 esac
16798
16799 if test "$solaris_use_stlport4" != yes; then
16800 postdeps_CXX='-library=Cstd -library=Crun'
16801 fi
16802 ;;
16803 esac
16804 ;;
16805
16806solaris*)
16807 case $cc_basename in
16808 CC*)
16809 # The more standards-conforming stlport4 library is
16810 # incompatible with the Cstd library. Avoid specifying
16811 # it if it's in CXXFLAGS. Ignore libCrun as
16812 # -library=stlport4 depends on it.
16813 case " $CXX $CXXFLAGS " in
16814 *" -library=stlport4 "*)
16815 solaris_use_stlport4=yes
16816 ;;
16817 esac
16818
16819 # Adding this requires a known-good setup of shared libraries for
16820 # Sun compiler versions before 5.6, else PIC objects from an old
16821 # archive will be linked into the output, leading to subtle bugs.
16822 if test "$solaris_use_stlport4" != yes; then
16823 postdeps_CXX='-library=Cstd -library=Crun'
16824 fi
16825 ;;
16826 esac
16827 ;;
16828esac
16829
16830
16831case " $postdeps_CXX " in
16832*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16833esac
16834 compiler_lib_search_dirs_CXX=
16835if test -n "${compiler_lib_search_path_CXX}"; then
16836 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16837fi
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869 lt_prog_compiler_wl_CXX=
16870lt_prog_compiler_pic_CXX=
16871lt_prog_compiler_static_CXX=
16872
cristy8b350f62009-11-15 23:12:43 +000016873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016874$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16875
16876 # C++ specific cases for pic, static, wl, etc.
16877 if test "$GXX" = yes; then
16878 lt_prog_compiler_wl_CXX='-Wl,'
16879 lt_prog_compiler_static_CXX='-static'
16880
16881 case $host_os in
16882 aix*)
16883 # All AIX code is PIC.
16884 if test "$host_cpu" = ia64; then
16885 # AIX 5 now supports IA64 processor
16886 lt_prog_compiler_static_CXX='-Bstatic'
16887 fi
16888 ;;
16889
16890 amigaos*)
16891 case $host_cpu in
16892 powerpc)
16893 # see comment about AmigaOS4 .so support
16894 lt_prog_compiler_pic_CXX='-fPIC'
16895 ;;
16896 m68k)
16897 # FIXME: we need at least 68020 code to build shared libraries, but
16898 # adding the `-m68020' flag to GCC prevents building anything better,
16899 # like `-m68040'.
16900 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16901 ;;
16902 esac
16903 ;;
16904
16905 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16906 # PIC is the default for these OSes.
16907 ;;
16908 mingw* | cygwin* | os2* | pw32* | cegcc*)
16909 # This hack is so that the source file can tell whether it is being
16910 # built for inclusion in a dll (and should export symbols for example).
16911 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16912 # (--disable-auto-import) libraries
16913 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16914 ;;
16915 darwin* | rhapsody*)
16916 # PIC is the default on this platform
16917 # Common symbols not allowed in MH_DYLIB files
16918 lt_prog_compiler_pic_CXX='-fno-common'
16919 ;;
16920 *djgpp*)
16921 # DJGPP does not support shared libraries at all
16922 lt_prog_compiler_pic_CXX=
16923 ;;
16924 interix[3-9]*)
16925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16926 # Instead, we relocate shared libraries at runtime.
16927 ;;
16928 sysv4*MP*)
16929 if test -d /usr/nec; then
16930 lt_prog_compiler_pic_CXX=-Kconform_pic
16931 fi
16932 ;;
16933 hpux*)
16934 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16935 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16936 # sets the default TLS model and affects inlining.
16937 case $host_cpu in
16938 hppa*64*)
16939 ;;
16940 *)
16941 lt_prog_compiler_pic_CXX='-fPIC'
16942 ;;
16943 esac
16944 ;;
16945 *qnx* | *nto*)
16946 # QNX uses GNU C++, but need to define -shared option too, otherwise
16947 # it will coredump.
16948 lt_prog_compiler_pic_CXX='-fPIC -shared'
16949 ;;
16950 *)
16951 lt_prog_compiler_pic_CXX='-fPIC'
16952 ;;
16953 esac
16954 else
16955 case $host_os in
16956 aix[4-9]*)
16957 # All AIX code is PIC.
16958 if test "$host_cpu" = ia64; then
16959 # AIX 5 now supports IA64 processor
16960 lt_prog_compiler_static_CXX='-Bstatic'
16961 else
16962 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16963 fi
16964 ;;
16965 chorus*)
16966 case $cc_basename in
16967 cxch68*)
16968 # Green Hills C++ Compiler
16969 # _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"
16970 ;;
16971 esac
16972 ;;
16973 dgux*)
16974 case $cc_basename in
16975 ec++*)
16976 lt_prog_compiler_pic_CXX='-KPIC'
16977 ;;
16978 ghcx*)
16979 # Green Hills C++ Compiler
16980 lt_prog_compiler_pic_CXX='-pic'
16981 ;;
16982 *)
16983 ;;
16984 esac
16985 ;;
16986 freebsd* | dragonfly*)
16987 # FreeBSD uses GNU C++
16988 ;;
16989 hpux9* | hpux10* | hpux11*)
16990 case $cc_basename in
16991 CC*)
16992 lt_prog_compiler_wl_CXX='-Wl,'
16993 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16994 if test "$host_cpu" != ia64; then
16995 lt_prog_compiler_pic_CXX='+Z'
16996 fi
16997 ;;
16998 aCC*)
16999 lt_prog_compiler_wl_CXX='-Wl,'
17000 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17001 case $host_cpu in
17002 hppa*64*|ia64*)
17003 # +Z the default
17004 ;;
17005 *)
17006 lt_prog_compiler_pic_CXX='+Z'
17007 ;;
17008 esac
17009 ;;
17010 *)
17011 ;;
17012 esac
17013 ;;
17014 interix*)
17015 # This is c89, which is MS Visual C++ (no shared libs)
17016 # Anyone wants to do a port?
17017 ;;
17018 irix5* | irix6* | nonstopux*)
17019 case $cc_basename in
17020 CC*)
17021 lt_prog_compiler_wl_CXX='-Wl,'
17022 lt_prog_compiler_static_CXX='-non_shared'
17023 # CC pic flag -KPIC is the default.
17024 ;;
17025 *)
17026 ;;
17027 esac
17028 ;;
cristy18304f92009-11-22 15:48:26 +000017029 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017030 case $cc_basename in
17031 KCC*)
17032 # KAI C++ Compiler
17033 lt_prog_compiler_wl_CXX='--backend -Wl,'
17034 lt_prog_compiler_pic_CXX='-fPIC'
17035 ;;
17036 ecpc* )
17037 # old Intel C++ for x86_64 which still supported -KPIC.
17038 lt_prog_compiler_wl_CXX='-Wl,'
17039 lt_prog_compiler_pic_CXX='-KPIC'
17040 lt_prog_compiler_static_CXX='-static'
17041 ;;
17042 icpc* )
17043 # Intel C++, used to be incompatible with GCC.
17044 # ICC 10 doesn't accept -KPIC any more.
17045 lt_prog_compiler_wl_CXX='-Wl,'
17046 lt_prog_compiler_pic_CXX='-fPIC'
17047 lt_prog_compiler_static_CXX='-static'
17048 ;;
17049 pgCC* | pgcpp*)
17050 # Portland Group C++ compiler
17051 lt_prog_compiler_wl_CXX='-Wl,'
17052 lt_prog_compiler_pic_CXX='-fpic'
17053 lt_prog_compiler_static_CXX='-Bstatic'
17054 ;;
17055 cxx*)
17056 # Compaq C++
17057 # Make sure the PIC flag is empty. It appears that all Alpha
17058 # Linux and Compaq Tru64 Unix objects are PIC.
17059 lt_prog_compiler_pic_CXX=
17060 lt_prog_compiler_static_CXX='-non_shared'
17061 ;;
cristy18304f92009-11-22 15:48:26 +000017062 xlc* | xlC*)
17063 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000017064 lt_prog_compiler_wl_CXX='-Wl,'
17065 lt_prog_compiler_pic_CXX='-qpic'
17066 lt_prog_compiler_static_CXX='-qstaticlink'
17067 ;;
17068 *)
17069 case `$CC -V 2>&1 | sed 5q` in
17070 *Sun\ C*)
17071 # Sun C++ 5.9
17072 lt_prog_compiler_pic_CXX='-KPIC'
17073 lt_prog_compiler_static_CXX='-Bstatic'
17074 lt_prog_compiler_wl_CXX='-Qoption ld '
17075 ;;
17076 esac
17077 ;;
17078 esac
17079 ;;
17080 lynxos*)
17081 ;;
17082 m88k*)
17083 ;;
17084 mvs*)
17085 case $cc_basename in
17086 cxx*)
17087 lt_prog_compiler_pic_CXX='-W c,exportall'
17088 ;;
17089 *)
17090 ;;
17091 esac
17092 ;;
17093 netbsd*)
17094 ;;
17095 *qnx* | *nto*)
17096 # QNX uses GNU C++, but need to define -shared option too, otherwise
17097 # it will coredump.
17098 lt_prog_compiler_pic_CXX='-fPIC -shared'
17099 ;;
17100 osf3* | osf4* | osf5*)
17101 case $cc_basename in
17102 KCC*)
17103 lt_prog_compiler_wl_CXX='--backend -Wl,'
17104 ;;
17105 RCC*)
17106 # Rational C++ 2.4.1
17107 lt_prog_compiler_pic_CXX='-pic'
17108 ;;
17109 cxx*)
17110 # Digital/Compaq C++
17111 lt_prog_compiler_wl_CXX='-Wl,'
17112 # Make sure the PIC flag is empty. It appears that all Alpha
17113 # Linux and Compaq Tru64 Unix objects are PIC.
17114 lt_prog_compiler_pic_CXX=
17115 lt_prog_compiler_static_CXX='-non_shared'
17116 ;;
17117 *)
17118 ;;
17119 esac
17120 ;;
17121 psos*)
17122 ;;
17123 solaris*)
17124 case $cc_basename in
17125 CC*)
17126 # Sun C++ 4.2, 5.x and Centerline C++
17127 lt_prog_compiler_pic_CXX='-KPIC'
17128 lt_prog_compiler_static_CXX='-Bstatic'
17129 lt_prog_compiler_wl_CXX='-Qoption ld '
17130 ;;
17131 gcx*)
17132 # Green Hills C++ Compiler
17133 lt_prog_compiler_pic_CXX='-PIC'
17134 ;;
17135 *)
17136 ;;
17137 esac
17138 ;;
17139 sunos4*)
17140 case $cc_basename in
17141 CC*)
17142 # Sun C++ 4.x
17143 lt_prog_compiler_pic_CXX='-pic'
17144 lt_prog_compiler_static_CXX='-Bstatic'
17145 ;;
17146 lcc*)
17147 # Lucid
17148 lt_prog_compiler_pic_CXX='-pic'
17149 ;;
17150 *)
17151 ;;
17152 esac
17153 ;;
17154 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17155 case $cc_basename in
17156 CC*)
17157 lt_prog_compiler_wl_CXX='-Wl,'
17158 lt_prog_compiler_pic_CXX='-KPIC'
17159 lt_prog_compiler_static_CXX='-Bstatic'
17160 ;;
17161 esac
17162 ;;
17163 tandem*)
17164 case $cc_basename in
17165 NCC*)
17166 # NonStop-UX NCC 3.20
17167 lt_prog_compiler_pic_CXX='-KPIC'
17168 ;;
17169 *)
17170 ;;
17171 esac
17172 ;;
17173 vxworks*)
17174 ;;
17175 *)
17176 lt_prog_compiler_can_build_shared_CXX=no
17177 ;;
17178 esac
17179 fi
17180
17181case $host_os in
17182 # For platforms which do not support PIC, -DPIC is meaningless:
17183 *djgpp*)
17184 lt_prog_compiler_pic_CXX=
17185 ;;
17186 *)
17187 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17188 ;;
17189esac
cristy8b350f62009-11-15 23:12:43 +000017190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017191$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17192
17193
17194
17195#
17196# Check to make sure the PIC flag actually works.
17197#
17198if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017199 { $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 +000017200$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017201if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017202 $as_echo_n "(cached) " >&6
17203else
17204 lt_cv_prog_compiler_pic_works_CXX=no
17205 ac_outfile=conftest.$ac_objext
17206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17207 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17208 # Insert the option either (1) after the last *FLAGS variable, or
17209 # (2) before a word containing "conftest.", or (3) at the end.
17210 # Note that $ac_compile itself does not contain backslashes and begins
17211 # with a dollar sign (not a hyphen), so the echo should work correctly.
17212 # The option is referenced via a variable to avoid confusing sed.
17213 lt_compile=`echo "$ac_compile" | $SED \
17214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17216 -e 's:$: $lt_compiler_flag:'`
cristy4689cf02010-02-17 21:15:45 +000017217 (eval echo "\"\$as_me:17217: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017218 (eval "$lt_compile" 2>conftest.err)
17219 ac_status=$?
17220 cat conftest.err >&5
cristy4689cf02010-02-17 21:15:45 +000017221 echo "$as_me:17221: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017222 if (exit $ac_status) && test -s "$ac_outfile"; then
17223 # The compiler can only warn and ignore the option if not recognized
17224 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000017225 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17227 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17228 lt_cv_prog_compiler_pic_works_CXX=yes
17229 fi
17230 fi
17231 $RM conftest*
17232
17233fi
cristy8b350f62009-11-15 23:12:43 +000017234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017235$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17236
17237if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17238 case $lt_prog_compiler_pic_CXX in
17239 "" | " "*) ;;
17240 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17241 esac
17242else
17243 lt_prog_compiler_pic_CXX=
17244 lt_prog_compiler_can_build_shared_CXX=no
17245fi
17246
17247fi
17248
17249
17250
17251#
17252# Check to make sure the static flag actually works.
17253#
17254wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017256$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017257if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017258 $as_echo_n "(cached) " >&6
17259else
17260 lt_cv_prog_compiler_static_works_CXX=no
17261 save_LDFLAGS="$LDFLAGS"
17262 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17263 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17265 # The linker can only warn and ignore the option if not recognized
17266 # So say no if there are warnings
17267 if test -s conftest.err; then
17268 # Append any errors to the config.log.
17269 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000017270 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17272 if diff conftest.exp conftest.er2 >/dev/null; then
17273 lt_cv_prog_compiler_static_works_CXX=yes
17274 fi
17275 else
17276 lt_cv_prog_compiler_static_works_CXX=yes
17277 fi
17278 fi
17279 $RM -r conftest*
17280 LDFLAGS="$save_LDFLAGS"
17281
17282fi
cristy8b350f62009-11-15 23:12:43 +000017283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017284$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17285
17286if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17287 :
17288else
17289 lt_prog_compiler_static_CXX=
17290fi
17291
17292
17293
17294
cristy8b350f62009-11-15 23:12:43 +000017295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017296$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017297if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017298 $as_echo_n "(cached) " >&6
17299else
17300 lt_cv_prog_compiler_c_o_CXX=no
17301 $RM -r conftest 2>/dev/null
17302 mkdir conftest
17303 cd conftest
17304 mkdir out
17305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17306
17307 lt_compiler_flag="-o out/conftest2.$ac_objext"
17308 # Insert the option either (1) after the last *FLAGS variable, or
17309 # (2) before a word containing "conftest.", or (3) at the end.
17310 # Note that $ac_compile itself does not contain backslashes and begins
17311 # with a dollar sign (not a hyphen), so the echo should work correctly.
17312 lt_compile=`echo "$ac_compile" | $SED \
17313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17315 -e 's:$: $lt_compiler_flag:'`
cristy4689cf02010-02-17 21:15:45 +000017316 (eval echo "\"\$as_me:17316: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017317 (eval "$lt_compile" 2>out/conftest.err)
17318 ac_status=$?
17319 cat out/conftest.err >&5
cristy4689cf02010-02-17 21:15:45 +000017320 echo "$as_me:17320: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017321 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17322 then
17323 # The compiler can only warn and ignore the option if not recognized
17324 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000017325 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017326 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17327 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17328 lt_cv_prog_compiler_c_o_CXX=yes
17329 fi
17330 fi
17331 chmod u+w . 2>&5
17332 $RM conftest*
17333 # SGI C++ compiler will create directory out/ii_files/ for
17334 # template instantiation
17335 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17336 $RM out/* && rmdir out
17337 cd ..
17338 $RM -r conftest
17339 $RM conftest*
17340
17341fi
cristy8b350f62009-11-15 23:12:43 +000017342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017343$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17344
17345
17346
cristy8b350f62009-11-15 23:12:43 +000017347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017348$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017349if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017350 $as_echo_n "(cached) " >&6
17351else
17352 lt_cv_prog_compiler_c_o_CXX=no
17353 $RM -r conftest 2>/dev/null
17354 mkdir conftest
17355 cd conftest
17356 mkdir out
17357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17358
17359 lt_compiler_flag="-o out/conftest2.$ac_objext"
17360 # Insert the option either (1) after the last *FLAGS variable, or
17361 # (2) before a word containing "conftest.", or (3) at the end.
17362 # Note that $ac_compile itself does not contain backslashes and begins
17363 # with a dollar sign (not a hyphen), so the echo should work correctly.
17364 lt_compile=`echo "$ac_compile" | $SED \
17365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17367 -e 's:$: $lt_compiler_flag:'`
cristy4689cf02010-02-17 21:15:45 +000017368 (eval echo "\"\$as_me:17368: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017369 (eval "$lt_compile" 2>out/conftest.err)
17370 ac_status=$?
17371 cat out/conftest.err >&5
cristy4689cf02010-02-17 21:15:45 +000017372 echo "$as_me:17372: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017373 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17374 then
17375 # The compiler can only warn and ignore the option if not recognized
17376 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000017377 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017378 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17379 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17380 lt_cv_prog_compiler_c_o_CXX=yes
17381 fi
17382 fi
17383 chmod u+w . 2>&5
17384 $RM conftest*
17385 # SGI C++ compiler will create directory out/ii_files/ for
17386 # template instantiation
17387 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17388 $RM out/* && rmdir out
17389 cd ..
17390 $RM -r conftest
17391 $RM conftest*
17392
17393fi
cristy8b350f62009-11-15 23:12:43 +000017394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017395$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17396
17397
17398
17399
17400hard_links="nottested"
17401if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17402 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017404$as_echo_n "checking if we can lock with hard links... " >&6; }
17405 hard_links=yes
17406 $RM conftest*
17407 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17408 touch conftest.a
17409 ln conftest.a conftest.b 2>&5 || hard_links=no
17410 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017412$as_echo "$hard_links" >&6; }
17413 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017414 { $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 +000017415$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17416 need_locks=warn
17417 fi
17418else
17419 need_locks=no
17420fi
17421
17422
17423
cristy8b350f62009-11-15 23:12:43 +000017424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017425$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17426
17427 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17428 case $host_os in
17429 aix[4-9]*)
17430 # If we're using GNU nm, then we don't want the "-C" option.
17431 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17432 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000017433 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy3ed852e2009-09-05 21:47:34 +000017434 else
17435 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'
17436 fi
17437 ;;
17438 pw32*)
17439 export_symbols_cmds_CXX="$ltdll_cmds"
17440 ;;
17441 cygwin* | mingw* | cegcc*)
17442 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'
17443 ;;
17444 *)
17445 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17446 ;;
17447 esac
17448 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17449
cristy8b350f62009-11-15 23:12:43 +000017450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017451$as_echo "$ld_shlibs_CXX" >&6; }
17452test "$ld_shlibs_CXX" = no && can_build_shared=no
17453
17454with_gnu_ld_CXX=$with_gnu_ld
17455
17456
17457
17458
17459
17460
17461#
17462# Do we need to explicitly link libc?
17463#
17464case "x$archive_cmds_need_lc_CXX" in
17465x|xyes)
17466 # Assume -lc should be added
17467 archive_cmds_need_lc_CXX=yes
17468
17469 if test "$enable_shared" = yes && test "$GCC" = yes; then
17470 case $archive_cmds_CXX in
17471 *'~'*)
17472 # FIXME: we may have to deal with multi-command sequences.
17473 ;;
17474 '$CC '*)
17475 # Test whether the compiler implicitly links with -lc since on some
17476 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17477 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017479$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000017480 $RM conftest*
17481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017482
cristy18304f92009-11-22 15:48:26 +000017483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017484 (eval $ac_compile) 2>&5
17485 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17487 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000017488 soname=conftest
17489 lib=conftest
17490 libobjs=conftest.$ac_objext
17491 deplibs=
17492 wl=$lt_prog_compiler_wl_CXX
17493 pic_flag=$lt_prog_compiler_pic_CXX
17494 compiler_flags=-v
17495 linker_flags=-v
17496 verstring=
17497 output_objdir=.
17498 libname=conftest
17499 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17500 allow_undefined_flag_CXX=
17501 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 +000017502 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17503 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17505 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000017506 then
17507 archive_cmds_need_lc_CXX=no
17508 else
17509 archive_cmds_need_lc_CXX=yes
17510 fi
17511 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17512 else
17513 cat conftest.err 1>&5
17514 fi
17515 $RM conftest*
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17517$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000017518 ;;
17519 esac
17520 fi
17521 ;;
17522esac
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
cristy8b350f62009-11-15 23:12:43 +000017587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000017588$as_echo_n "checking dynamic linker characteristics... " >&6; }
17589
17590library_names_spec=
17591libname_spec='lib$name'
17592soname_spec=
17593shrext_cmds=".so"
17594postinstall_cmds=
17595postuninstall_cmds=
17596finish_cmds=
17597finish_eval=
17598shlibpath_var=
17599shlibpath_overrides_runpath=unknown
17600version_type=none
17601dynamic_linker="$host_os ld.so"
17602sys_lib_dlsearch_path_spec="/lib /usr/lib"
17603need_lib_prefix=unknown
17604hardcode_into_libs=no
17605
17606# when you set need_version to no, make sure it does not cause -set_version
17607# flags to be left without arguments
17608need_version=unknown
17609
17610case $host_os in
17611aix3*)
17612 version_type=linux
17613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17614 shlibpath_var=LIBPATH
17615
17616 # AIX 3 has no versioning support, so we append a major version to the name.
17617 soname_spec='${libname}${release}${shared_ext}$major'
17618 ;;
17619
17620aix[4-9]*)
17621 version_type=linux
17622 need_lib_prefix=no
17623 need_version=no
17624 hardcode_into_libs=yes
17625 if test "$host_cpu" = ia64; then
17626 # AIX 5 supports IA64
17627 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17628 shlibpath_var=LD_LIBRARY_PATH
17629 else
17630 # With GCC up to 2.95.x, collect2 would create an import file
17631 # for dependence libraries. The import file would start with
17632 # the line `#! .'. This would cause the generated library to
17633 # depend on `.', always an invalid library. This was fixed in
17634 # development snapshots of GCC prior to 3.0.
17635 case $host_os in
17636 aix4 | aix4.[01] | aix4.[01].*)
17637 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17638 echo ' yes '
17639 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17640 :
17641 else
17642 can_build_shared=no
17643 fi
17644 ;;
17645 esac
17646 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17647 # soname into executable. Probably we can add versioning support to
17648 # collect2, so additional links can be useful in future.
17649 if test "$aix_use_runtimelinking" = yes; then
17650 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17651 # instead of lib<name>.a to let people know that these are not
17652 # typical AIX shared libraries.
17653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17654 else
17655 # We preserve .a as extension for shared libraries through AIX4.2
17656 # and later when we are not doing run time linking.
17657 library_names_spec='${libname}${release}.a $libname.a'
17658 soname_spec='${libname}${release}${shared_ext}$major'
17659 fi
17660 shlibpath_var=LIBPATH
17661 fi
17662 ;;
17663
17664amigaos*)
17665 case $host_cpu in
17666 powerpc)
17667 # Since July 2007 AmigaOS4 officially supports .so libraries.
17668 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17670 ;;
17671 m68k)
17672 library_names_spec='$libname.ixlibrary $libname.a'
17673 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000017674 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cristy3ed852e2009-09-05 21:47:34 +000017675 ;;
17676 esac
17677 ;;
17678
17679beos*)
17680 library_names_spec='${libname}${shared_ext}'
17681 dynamic_linker="$host_os ld.so"
17682 shlibpath_var=LIBRARY_PATH
17683 ;;
17684
17685bsdi[45]*)
17686 version_type=linux
17687 need_version=no
17688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17689 soname_spec='${libname}${release}${shared_ext}$major'
17690 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17691 shlibpath_var=LD_LIBRARY_PATH
17692 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17693 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17694 # the default ld.so.conf also contains /usr/contrib/lib and
17695 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17696 # libtool to hard-code these into programs
17697 ;;
17698
17699cygwin* | mingw* | pw32* | cegcc*)
17700 version_type=windows
17701 shrext_cmds=".dll"
17702 need_version=no
17703 need_lib_prefix=no
17704
17705 case $GCC,$host_os in
17706 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17707 library_names_spec='$libname.dll.a'
17708 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17709 postinstall_cmds='base_file=`basename \${file}`~
17710 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17711 dldir=$destdir/`dirname \$dlpath`~
17712 test -d \$dldir || mkdir -p \$dldir~
17713 $install_prog $dir/$dlname \$dldir/$dlname~
17714 chmod a+x \$dldir/$dlname~
17715 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17716 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17717 fi'
17718 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17719 dlpath=$dir/\$dldll~
17720 $RM \$dlpath'
17721 shlibpath_overrides_runpath=yes
17722
17723 case $host_os in
17724 cygwin*)
17725 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17726 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000017727 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000017728 ;;
17729 mingw* | cegcc*)
17730 # MinGW DLLs use traditional 'lib' prefix
17731 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000017732 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17733 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17734 # It is most probably a Windows format PATH printed by
17735 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17736 # path with ; separators, and with drive letters. We can handle the
17737 # drive letters (cygwin fileutils understands them), so leave them,
17738 # especially as we might pass files found there to a mingw objdump,
17739 # which wouldn't understand a cygwinified path. Ahh.
17740 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17741 else
17742 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17743 fi
cristy3ed852e2009-09-05 21:47:34 +000017744 ;;
17745 pw32*)
17746 # pw32 DLLs use 'pw' prefix rather than 'lib'
17747 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17748 ;;
17749 esac
17750 ;;
17751
17752 *)
17753 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17754 ;;
17755 esac
17756 dynamic_linker='Win32 ld.exe'
17757 # FIXME: first we should search . and the directory the executable is in
17758 shlibpath_var=PATH
17759 ;;
17760
17761darwin* | rhapsody*)
17762 dynamic_linker="$host_os dyld"
17763 version_type=darwin
17764 need_lib_prefix=no
17765 need_version=no
17766 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17767 soname_spec='${libname}${release}${major}$shared_ext'
17768 shlibpath_overrides_runpath=yes
17769 shlibpath_var=DYLD_LIBRARY_PATH
17770 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17771
17772 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17773 ;;
17774
17775dgux*)
17776 version_type=linux
17777 need_lib_prefix=no
17778 need_version=no
17779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17780 soname_spec='${libname}${release}${shared_ext}$major'
17781 shlibpath_var=LD_LIBRARY_PATH
17782 ;;
17783
17784freebsd1*)
17785 dynamic_linker=no
17786 ;;
17787
17788freebsd* | dragonfly*)
17789 # DragonFly does not have aout. When/if they implement a new
17790 # versioning mechanism, adjust this.
17791 if test -x /usr/bin/objformat; then
17792 objformat=`/usr/bin/objformat`
17793 else
17794 case $host_os in
17795 freebsd[123]*) objformat=aout ;;
17796 *) objformat=elf ;;
17797 esac
17798 fi
17799 version_type=freebsd-$objformat
17800 case $version_type in
17801 freebsd-elf*)
17802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17803 need_version=no
17804 need_lib_prefix=no
17805 ;;
17806 freebsd-*)
17807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17808 need_version=yes
17809 ;;
17810 esac
17811 shlibpath_var=LD_LIBRARY_PATH
17812 case $host_os in
17813 freebsd2*)
17814 shlibpath_overrides_runpath=yes
17815 ;;
17816 freebsd3.[01]* | freebsdelf3.[01]*)
17817 shlibpath_overrides_runpath=yes
17818 hardcode_into_libs=yes
17819 ;;
17820 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17821 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17822 shlibpath_overrides_runpath=no
17823 hardcode_into_libs=yes
17824 ;;
17825 *) # from 4.6 on, and DragonFly
17826 shlibpath_overrides_runpath=yes
17827 hardcode_into_libs=yes
17828 ;;
17829 esac
17830 ;;
17831
17832gnu*)
17833 version_type=linux
17834 need_lib_prefix=no
17835 need_version=no
17836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17837 soname_spec='${libname}${release}${shared_ext}$major'
17838 shlibpath_var=LD_LIBRARY_PATH
17839 hardcode_into_libs=yes
17840 ;;
17841
17842hpux9* | hpux10* | hpux11*)
17843 # Give a soname corresponding to the major version so that dld.sl refuses to
17844 # link against other versions.
17845 version_type=sunos
17846 need_lib_prefix=no
17847 need_version=no
17848 case $host_cpu in
17849 ia64*)
17850 shrext_cmds='.so'
17851 hardcode_into_libs=yes
17852 dynamic_linker="$host_os dld.so"
17853 shlibpath_var=LD_LIBRARY_PATH
17854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17856 soname_spec='${libname}${release}${shared_ext}$major'
17857 if test "X$HPUX_IA64_MODE" = X32; then
17858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17859 else
17860 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17861 fi
17862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17863 ;;
17864 hppa*64*)
17865 shrext_cmds='.sl'
17866 hardcode_into_libs=yes
17867 dynamic_linker="$host_os dld.sl"
17868 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17871 soname_spec='${libname}${release}${shared_ext}$major'
17872 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17874 ;;
17875 *)
17876 shrext_cmds='.sl'
17877 dynamic_linker="$host_os dld.sl"
17878 shlibpath_var=SHLIB_PATH
17879 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17881 soname_spec='${libname}${release}${shared_ext}$major'
17882 ;;
17883 esac
cristy18304f92009-11-22 15:48:26 +000017884 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000017885 postinstall_cmds='chmod 555 $lib'
17886 ;;
17887
17888interix[3-9]*)
17889 version_type=linux
17890 need_lib_prefix=no
17891 need_version=no
17892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17893 soname_spec='${libname}${release}${shared_ext}$major'
17894 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17895 shlibpath_var=LD_LIBRARY_PATH
17896 shlibpath_overrides_runpath=no
17897 hardcode_into_libs=yes
17898 ;;
17899
17900irix5* | irix6* | nonstopux*)
17901 case $host_os in
17902 nonstopux*) version_type=nonstopux ;;
17903 *)
17904 if test "$lt_cv_prog_gnu_ld" = yes; then
17905 version_type=linux
17906 else
17907 version_type=irix
17908 fi ;;
17909 esac
17910 need_lib_prefix=no
17911 need_version=no
17912 soname_spec='${libname}${release}${shared_ext}$major'
17913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17914 case $host_os in
17915 irix5* | nonstopux*)
17916 libsuff= shlibsuff=
17917 ;;
17918 *)
17919 case $LD in # libtool.m4 will add one of these switches to LD
17920 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17921 libsuff= shlibsuff= libmagic=32-bit;;
17922 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17923 libsuff=32 shlibsuff=N32 libmagic=N32;;
17924 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17925 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17926 *) libsuff= shlibsuff= libmagic=never-match;;
17927 esac
17928 ;;
17929 esac
17930 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17931 shlibpath_overrides_runpath=no
17932 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17933 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17934 hardcode_into_libs=yes
17935 ;;
17936
17937# No shared lib support for Linux oldld, aout, or coff.
17938linux*oldld* | linux*aout* | linux*coff*)
17939 dynamic_linker=no
17940 ;;
17941
17942# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000017943linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017944 version_type=linux
17945 need_lib_prefix=no
17946 need_version=no
17947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17948 soname_spec='${libname}${release}${shared_ext}$major'
17949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17950 shlibpath_var=LD_LIBRARY_PATH
17951 shlibpath_overrides_runpath=no
17952 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000017953 save_LDFLAGS=$LDFLAGS
17954 save_libdir=$libdir
17955 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17956 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017958/* end confdefs.h. */
17959
17960int
17961main ()
17962{
17963
17964 ;
17965 return 0;
17966}
17967_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017968if ac_fn_cxx_try_link "$LINENO"; then :
17969 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000017970 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000017971fi
cristy3ed852e2009-09-05 21:47:34 +000017972fi
cristy8b350f62009-11-15 23:12:43 +000017973rm -f core conftest.err conftest.$ac_objext \
17974 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000017975 LDFLAGS=$save_LDFLAGS
17976 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000017977
17978 # This implies no fast_install, which is unacceptable.
17979 # Some rework will be needed to allow for fast_install
17980 # before this can be enabled.
17981 hardcode_into_libs=yes
17982
cristy679ed8e2009-12-05 02:37:41 +000017983 # Add ABI-specific directories to the system library path.
17984 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17985
cristy3ed852e2009-09-05 21:47:34 +000017986 # Append ld.so.conf contents to the search path
17987 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000017988 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
cristy679ed8e2009-12-05 02:37:41 +000017989 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000017990 fi
17991
17992 # We used to test for /lib/ld.so.1 and disable shared libraries on
17993 # powerpc, because MkLinux only supported shared libraries with the
17994 # GNU dynamic linker. Since this was broken with cross compilers,
17995 # most powerpc-linux boxes support dynamic linking these days and
17996 # people can always --disable-shared, the test was removed, and we
17997 # assume the GNU/Linux dynamic linker is in use.
17998 dynamic_linker='GNU/Linux ld.so'
17999 ;;
18000
18001netbsd*)
18002 version_type=sunos
18003 need_lib_prefix=no
18004 need_version=no
18005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18008 dynamic_linker='NetBSD (a.out) ld.so'
18009 else
18010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18011 soname_spec='${libname}${release}${shared_ext}$major'
18012 dynamic_linker='NetBSD ld.elf_so'
18013 fi
18014 shlibpath_var=LD_LIBRARY_PATH
18015 shlibpath_overrides_runpath=yes
18016 hardcode_into_libs=yes
18017 ;;
18018
18019newsos6)
18020 version_type=linux
18021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18022 shlibpath_var=LD_LIBRARY_PATH
18023 shlibpath_overrides_runpath=yes
18024 ;;
18025
18026*nto* | *qnx*)
18027 version_type=qnx
18028 need_lib_prefix=no
18029 need_version=no
18030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18031 soname_spec='${libname}${release}${shared_ext}$major'
18032 shlibpath_var=LD_LIBRARY_PATH
18033 shlibpath_overrides_runpath=no
18034 hardcode_into_libs=yes
18035 dynamic_linker='ldqnx.so'
18036 ;;
18037
18038openbsd*)
18039 version_type=sunos
18040 sys_lib_dlsearch_path_spec="/usr/lib"
18041 need_lib_prefix=no
18042 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18043 case $host_os in
18044 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18045 *) need_version=no ;;
18046 esac
18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18049 shlibpath_var=LD_LIBRARY_PATH
18050 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18051 case $host_os in
18052 openbsd2.[89] | openbsd2.[89].*)
18053 shlibpath_overrides_runpath=no
18054 ;;
18055 *)
18056 shlibpath_overrides_runpath=yes
18057 ;;
18058 esac
18059 else
18060 shlibpath_overrides_runpath=yes
18061 fi
18062 ;;
18063
18064os2*)
18065 libname_spec='$name'
18066 shrext_cmds=".dll"
18067 need_lib_prefix=no
18068 library_names_spec='$libname${shared_ext} $libname.a'
18069 dynamic_linker='OS/2 ld.exe'
18070 shlibpath_var=LIBPATH
18071 ;;
18072
18073osf3* | osf4* | osf5*)
18074 version_type=osf
18075 need_lib_prefix=no
18076 need_version=no
18077 soname_spec='${libname}${release}${shared_ext}$major'
18078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18079 shlibpath_var=LD_LIBRARY_PATH
18080 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18081 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18082 ;;
18083
18084rdos*)
18085 dynamic_linker=no
18086 ;;
18087
18088solaris*)
18089 version_type=linux
18090 need_lib_prefix=no
18091 need_version=no
18092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18093 soname_spec='${libname}${release}${shared_ext}$major'
18094 shlibpath_var=LD_LIBRARY_PATH
18095 shlibpath_overrides_runpath=yes
18096 hardcode_into_libs=yes
18097 # ldd complains unless libraries are executable
18098 postinstall_cmds='chmod +x $lib'
18099 ;;
18100
18101sunos4*)
18102 version_type=sunos
18103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18104 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18105 shlibpath_var=LD_LIBRARY_PATH
18106 shlibpath_overrides_runpath=yes
18107 if test "$with_gnu_ld" = yes; then
18108 need_lib_prefix=no
18109 fi
18110 need_version=yes
18111 ;;
18112
18113sysv4 | sysv4.3*)
18114 version_type=linux
18115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18116 soname_spec='${libname}${release}${shared_ext}$major'
18117 shlibpath_var=LD_LIBRARY_PATH
18118 case $host_vendor in
18119 sni)
18120 shlibpath_overrides_runpath=no
18121 need_lib_prefix=no
18122 runpath_var=LD_RUN_PATH
18123 ;;
18124 siemens)
18125 need_lib_prefix=no
18126 ;;
18127 motorola)
18128 need_lib_prefix=no
18129 need_version=no
18130 shlibpath_overrides_runpath=no
18131 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18132 ;;
18133 esac
18134 ;;
18135
18136sysv4*MP*)
18137 if test -d /usr/nec ;then
18138 version_type=linux
18139 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18140 soname_spec='$libname${shared_ext}.$major'
18141 shlibpath_var=LD_LIBRARY_PATH
18142 fi
18143 ;;
18144
18145sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18146 version_type=freebsd-elf
18147 need_lib_prefix=no
18148 need_version=no
18149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18150 soname_spec='${libname}${release}${shared_ext}$major'
18151 shlibpath_var=LD_LIBRARY_PATH
18152 shlibpath_overrides_runpath=yes
18153 hardcode_into_libs=yes
18154 if test "$with_gnu_ld" = yes; then
18155 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18156 else
18157 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18158 case $host_os in
18159 sco3.2v5*)
18160 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18161 ;;
18162 esac
18163 fi
18164 sys_lib_dlsearch_path_spec='/usr/lib'
18165 ;;
18166
18167tpf*)
18168 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18169 version_type=linux
18170 need_lib_prefix=no
18171 need_version=no
18172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18173 shlibpath_var=LD_LIBRARY_PATH
18174 shlibpath_overrides_runpath=no
18175 hardcode_into_libs=yes
18176 ;;
18177
18178uts4*)
18179 version_type=linux
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181 soname_spec='${libname}${release}${shared_ext}$major'
18182 shlibpath_var=LD_LIBRARY_PATH
18183 ;;
18184
18185*)
18186 dynamic_linker=no
18187 ;;
18188esac
cristy8b350f62009-11-15 23:12:43 +000018189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018190$as_echo "$dynamic_linker" >&6; }
18191test "$dynamic_linker" = no && can_build_shared=no
18192
18193variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18194if test "$GCC" = yes; then
18195 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18196fi
18197
18198if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18199 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18200fi
18201if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18202 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18203fi
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
cristy8b350f62009-11-15 23:12:43 +000018240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018241$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18242hardcode_action_CXX=
18243if test -n "$hardcode_libdir_flag_spec_CXX" ||
18244 test -n "$runpath_var_CXX" ||
18245 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18246
18247 # We can hardcode non-existent directories.
18248 if test "$hardcode_direct_CXX" != no &&
18249 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18250 # have to relink, otherwise we might link with an installed library
18251 # when we should be linking with a yet-to-be-installed one
18252 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18253 test "$hardcode_minus_L_CXX" != no; then
18254 # Linking always hardcodes the temporary library directory.
18255 hardcode_action_CXX=relink
18256 else
18257 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18258 hardcode_action_CXX=immediate
18259 fi
18260else
18261 # We cannot hardcode anything, or else we can only hardcode existing
18262 # directories.
18263 hardcode_action_CXX=unsupported
18264fi
cristy8b350f62009-11-15 23:12:43 +000018265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018266$as_echo "$hardcode_action_CXX" >&6; }
18267
18268if test "$hardcode_action_CXX" = relink ||
18269 test "$inherit_rpath_CXX" = yes; then
18270 # Fast installation is not supported
18271 enable_fast_install=no
18272elif test "$shlibpath_overrides_runpath" = yes ||
18273 test "$enable_shared" = no; then
18274 # Fast installation is not necessary
18275 enable_fast_install=needless
18276fi
18277
18278
18279
18280
18281
18282
18283
18284 fi # test -n "$compiler"
18285
18286 CC=$lt_save_CC
18287 LDCXX=$LD
18288 LD=$lt_save_LD
18289 GCC=$lt_save_GCC
18290 with_gnu_ld=$lt_save_with_gnu_ld
18291 lt_cv_path_LDCXX=$lt_cv_path_LD
18292 lt_cv_path_LD=$lt_save_path_LD
18293 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18294 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18295fi # test "$_lt_caught_CXX_error" != yes
18296
18297ac_ext=c
18298ac_cpp='$CPP $CPPFLAGS'
18299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18301ac_compiler_gnu=$ac_cv_c_compiler_gnu
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315 ac_config_commands="$ac_config_commands libtool"
18316
18317
18318
18319
18320# Only expand once:
18321
18322
18323
18324
18325
18326# Configure libltdl
18327
18328
18329
18330
18331
18332
18333
cristy18304f92009-11-22 15:48:26 +000018334
cristy8b350f62009-11-15 23:12:43 +000018335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018336$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018337if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018338 $as_echo_n "(cached) " >&6
18339else
18340
18341module=yes
18342eval libltdl_cv_shlibext=$shrext_cmds
18343
18344fi
cristy8b350f62009-11-15 23:12:43 +000018345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018346$as_echo "$libltdl_cv_shlibext" >&6; }
18347if test -n "$libltdl_cv_shlibext"; then
18348
18349cat >>confdefs.h <<_ACEOF
18350#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18351_ACEOF
18352
18353fi
18354
cristy8b350f62009-11-15 23:12:43 +000018355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018356$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018357if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018358 $as_echo_n "(cached) " >&6
18359else
18360 lt_cv_module_path_var="$shlibpath_var"
18361fi
cristy8b350f62009-11-15 23:12:43 +000018362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018363$as_echo "$lt_cv_module_path_var" >&6; }
18364if test -n "$lt_cv_module_path_var"; then
18365
18366cat >>confdefs.h <<_ACEOF
18367#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18368_ACEOF
18369
18370fi
18371
cristy8b350f62009-11-15 23:12:43 +000018372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018373$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018374if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018375 $as_echo_n "(cached) " >&6
18376else
18377 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18378fi
cristy8b350f62009-11-15 23:12:43 +000018379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018380$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18381if test -n "$lt_cv_sys_dlsearch_path"; then
18382 sys_dlsearch_path=
18383 for dir in $lt_cv_sys_dlsearch_path; do
18384 if test -z "$sys_dlsearch_path"; then
18385 sys_dlsearch_path="$dir"
18386 else
18387 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18388 fi
18389 done
18390
18391cat >>confdefs.h <<_ACEOF
18392#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18393_ACEOF
18394
18395fi
18396
18397
18398LT_DLLOADERS=
18399
18400
18401ac_ext=c
18402ac_cpp='$CPP $CPPFLAGS'
18403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18405ac_compiler_gnu=$ac_cv_c_compiler_gnu
18406
18407
18408LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018410$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018411if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018412 $as_echo_n "(cached) " >&6
18413else
18414 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018416/* end confdefs.h. */
18417
18418/* Override any GCC internal prototype to avoid an error.
18419 Use char because int might match the return type of a GCC
18420 builtin and then its argument prototype would still apply. */
18421#ifdef __cplusplus
18422extern "C"
18423#endif
18424char dlopen ();
18425int
18426main ()
18427{
18428return dlopen ();
18429 ;
18430 return 0;
18431}
18432_ACEOF
18433for ac_lib in '' dl; do
18434 if test -z "$ac_lib"; then
18435 ac_res="none required"
18436 else
18437 ac_res=-l$ac_lib
18438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18439 fi
cristy8b350f62009-11-15 23:12:43 +000018440 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018441 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018442fi
cristy8b350f62009-11-15 23:12:43 +000018443rm -f core conftest.err conftest.$ac_objext \
18444 conftest$ac_exeext
18445 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018446 break
18447fi
18448done
cristy8b350f62009-11-15 23:12:43 +000018449if test "${ac_cv_search_dlopen+set}" = set; then :
18450
cristy3ed852e2009-09-05 21:47:34 +000018451else
18452 ac_cv_search_dlopen=no
18453fi
18454rm conftest.$ac_ext
18455LIBS=$ac_func_search_save_LIBS
18456fi
cristy8b350f62009-11-15 23:12:43 +000018457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018458$as_echo "$ac_cv_search_dlopen" >&6; }
18459ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018460if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18462
cristy8b350f62009-11-15 23:12:43 +000018463$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018464
18465 if test "$ac_cv_search_dlopen" != "none required" ; then
18466 LIBADD_DLOPEN="-ldl"
18467 fi
18468 libltdl_cv_lib_dl_dlopen="yes"
18469 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18470else
cristy8b350f62009-11-15 23:12:43 +000018471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018472/* end confdefs.h. */
18473#if HAVE_DLFCN_H
18474# include <dlfcn.h>
18475#endif
18476
18477int
18478main ()
18479{
18480dlopen(0, 0);
18481 ;
18482 return 0;
18483}
18484_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018485if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018486
cristy8b350f62009-11-15 23:12:43 +000018487$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018488
18489 libltdl_cv_func_dlopen="yes"
18490 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18491else
cristy8b350f62009-11-15 23:12:43 +000018492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018493$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018494if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018495 $as_echo_n "(cached) " >&6
18496else
18497 ac_check_lib_save_LIBS=$LIBS
18498LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018500/* end confdefs.h. */
18501
18502/* Override any GCC internal prototype to avoid an error.
18503 Use char because int might match the return type of a GCC
18504 builtin and then its argument prototype would still apply. */
18505#ifdef __cplusplus
18506extern "C"
18507#endif
18508char dlopen ();
18509int
18510main ()
18511{
18512return dlopen ();
18513 ;
18514 return 0;
18515}
18516_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018517if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018518 ac_cv_lib_svld_dlopen=yes
18519else
cristy8b350f62009-11-15 23:12:43 +000018520 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000018521fi
cristy8b350f62009-11-15 23:12:43 +000018522rm -f core conftest.err conftest.$ac_objext \
18523 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018524LIBS=$ac_check_lib_save_LIBS
18525fi
cristy8b350f62009-11-15 23:12:43 +000018526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018527$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018528if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018529
cristy8b350f62009-11-15 23:12:43 +000018530$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018531
18532 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
18533 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18534fi
18535
18536fi
cristy8b350f62009-11-15 23:12:43 +000018537rm -f core conftest.err conftest.$ac_objext \
18538 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018539fi
18540
18541if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
18542then
18543 lt_save_LIBS="$LIBS"
18544 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000018545 for ac_func in dlerror
18546do :
18547 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
18548if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018549 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018550#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000018551_ACEOF
18552
18553fi
18554done
18555
18556 LIBS="$lt_save_LIBS"
18557fi
18558
18559
18560LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000018561ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18562if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018563
cristy8b350f62009-11-15 23:12:43 +000018564$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018565
18566 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18567else
cristy8b350f62009-11-15 23:12:43 +000018568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018569$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018570if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018571 $as_echo_n "(cached) " >&6
18572else
18573 ac_check_lib_save_LIBS=$LIBS
18574LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018576/* end confdefs.h. */
18577
18578/* Override any GCC internal prototype to avoid an error.
18579 Use char because int might match the return type of a GCC
18580 builtin and then its argument prototype would still apply. */
18581#ifdef __cplusplus
18582extern "C"
18583#endif
18584char shl_load ();
18585int
18586main ()
18587{
18588return shl_load ();
18589 ;
18590 return 0;
18591}
18592_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018593if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018594 ac_cv_lib_dld_shl_load=yes
18595else
cristy8b350f62009-11-15 23:12:43 +000018596 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000018597fi
cristy8b350f62009-11-15 23:12:43 +000018598rm -f core conftest.err conftest.$ac_objext \
18599 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018600LIBS=$ac_check_lib_save_LIBS
18601fi
cristy8b350f62009-11-15 23:12:43 +000018602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000018603$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018604if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018605
cristy8b350f62009-11-15 23:12:43 +000018606$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018607
18608 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18609 LIBADD_SHL_LOAD="-ldld"
18610fi
18611
18612fi
18613
18614
18615
18616case $host_os in
18617darwin[1567].*)
18618# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000018619 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
18620if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018621
cristy8b350f62009-11-15 23:12:43 +000018622$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018623
18624 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
18625fi
18626
18627 ;;
18628beos*)
18629 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
18630 ;;
18631cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000018632 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
18633"
18634if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
18635 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000018636else
cristy8b350f62009-11-15 23:12:43 +000018637 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000018638fi
18639
cristy3ed852e2009-09-05 21:47:34 +000018640cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018641#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000018642_ACEOF
18643
cristy3ed852e2009-09-05 21:47:34 +000018644 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
18645 ;;
18646esac
18647
cristy8b350f62009-11-15 23:12:43 +000018648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018649$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018650if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018651 $as_echo_n "(cached) " >&6
18652else
18653 ac_check_lib_save_LIBS=$LIBS
18654LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018656/* end confdefs.h. */
18657
18658/* Override any GCC internal prototype to avoid an error.
18659 Use char because int might match the return type of a GCC
18660 builtin and then its argument prototype would still apply. */
18661#ifdef __cplusplus
18662extern "C"
18663#endif
18664char dld_link ();
18665int
18666main ()
18667{
18668return dld_link ();
18669 ;
18670 return 0;
18671}
18672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018673if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018674 ac_cv_lib_dld_dld_link=yes
18675else
cristy8b350f62009-11-15 23:12:43 +000018676 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000018677fi
cristy8b350f62009-11-15 23:12:43 +000018678rm -f core conftest.err conftest.$ac_objext \
18679 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018680LIBS=$ac_check_lib_save_LIBS
18681fi
cristy8b350f62009-11-15 23:12:43 +000018682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000018683$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018684if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018685
cristy8b350f62009-11-15 23:12:43 +000018686$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018687
18688 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
18689fi
18690
18691
18692
18693
18694LT_DLPREOPEN=
18695if test -n "$LT_DLLOADERS"
18696then
18697 for lt_loader in $LT_DLLOADERS; do
18698 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
18699 done
18700
cristy8b350f62009-11-15 23:12:43 +000018701$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018702
18703fi
18704
18705
18706LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
18707
18708
18709ac_ext=c
18710ac_cpp='$CPP $CPPFLAGS'
18711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18713ac_compiler_gnu=$ac_cv_c_compiler_gnu
18714
18715
cristy8b350f62009-11-15 23:12:43 +000018716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018717$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018718if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018719 $as_echo_n "(cached) " >&6
18720else
18721 lt_cv_sys_symbol_underscore=no
18722 cat > conftest.$ac_ext <<_LT_EOF
18723void nm_test_func(){}
18724int main(){nm_test_func;return 0;}
18725_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018727 (eval $ac_compile) 2>&5
18728 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18730 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000018731 # Now try to grab the symbols.
18732 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000018733 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 +000018734 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18735 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18737 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000018738 # See whether the symbols have a leading underscore.
18739 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18740 lt_cv_sys_symbol_underscore=yes
18741 else
18742 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18743 :
18744 else
18745 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18746 fi
18747 fi
18748 else
18749 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18750 fi
18751 else
18752 echo "configure: failed program was:" >&5
18753 cat conftest.c >&5
18754 fi
18755 rm -rf conftest*
18756
18757fi
cristy8b350f62009-11-15 23:12:43 +000018758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018759$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18760 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18761
18762
18763if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18764 if test x"$libltdl_cv_func_dlopen" = xyes ||
18765 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000018766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000018767$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018768if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018769 $as_echo_n "(cached) " >&6
18770else
18771 libltdl_cv_need_uscore=unknown
18772 save_LIBS="$LIBS"
18773 LIBS="$LIBS $LIBADD_DLOPEN"
18774 if test "$cross_compiling" = yes; then :
18775 libltdl_cv_need_uscore=cross
18776else
18777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18778 lt_status=$lt_dlunknown
18779 cat > conftest.$ac_ext <<_LT_EOF
cristy4689cf02010-02-17 21:15:45 +000018780#line 18780 "configure"
cristy3ed852e2009-09-05 21:47:34 +000018781#include "confdefs.h"
18782
18783#if HAVE_DLFCN_H
18784#include <dlfcn.h>
18785#endif
18786
18787#include <stdio.h>
18788
18789#ifdef RTLD_GLOBAL
18790# define LT_DLGLOBAL RTLD_GLOBAL
18791#else
18792# ifdef DL_GLOBAL
18793# define LT_DLGLOBAL DL_GLOBAL
18794# else
18795# define LT_DLGLOBAL 0
18796# endif
18797#endif
18798
18799/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18800 find out it does not work in some platform. */
18801#ifndef LT_DLLAZY_OR_NOW
18802# ifdef RTLD_LAZY
18803# define LT_DLLAZY_OR_NOW RTLD_LAZY
18804# else
18805# ifdef DL_LAZY
18806# define LT_DLLAZY_OR_NOW DL_LAZY
18807# else
18808# ifdef RTLD_NOW
18809# define LT_DLLAZY_OR_NOW RTLD_NOW
18810# else
18811# ifdef DL_NOW
18812# define LT_DLLAZY_OR_NOW DL_NOW
18813# else
18814# define LT_DLLAZY_OR_NOW 0
18815# endif
18816# endif
18817# endif
18818# endif
18819#endif
18820
cristy18304f92009-11-22 15:48:26 +000018821void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000018822int main ()
18823{
18824 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18825 int status = $lt_dlunknown;
18826
18827 if (self)
18828 {
18829 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000018830 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000018831 /* dlclose (self); */
18832 }
18833 else
18834 puts (dlerror ());
18835
18836 return status;
18837}
18838_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018840 (eval $ac_link) 2>&5
18841 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18843 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000018844 (./conftest; exit; ) >&5 2>/dev/null
18845 lt_status=$?
18846 case x$lt_status in
18847 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
18848 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
18849 x$lt_dlunknown|x*) ;;
18850 esac
18851 else :
18852 # compilation failed
18853
18854 fi
18855fi
18856rm -fr conftest*
18857
18858 LIBS="$save_LIBS"
18859
18860fi
cristy8b350f62009-11-15 23:12:43 +000018861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018862$as_echo "$libltdl_cv_need_uscore" >&6; }
18863 fi
18864fi
18865
18866if test x"$libltdl_cv_need_uscore" = xyes; then
18867
cristy8b350f62009-11-15 23:12:43 +000018868$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018869
18870fi
18871
cristy8b350f62009-11-15 23:12:43 +000018872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018873$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018874if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018875 $as_echo_n "(cached) " >&6
18876else
18877 # PORTME does your system automatically load deplibs for dlopen?
18878 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18879 # For now, we just catch OSes we know something about -- in the
18880 # future, we'll try test this programmatically.
18881 lt_cv_sys_dlopen_deplibs=unknown
18882 case $host_os in
18883 aix3*|aix4.1.*|aix4.2.*)
18884 # Unknown whether this is true for these versions of AIX, but
18885 # we want this `case' here to explicitly catch those versions.
18886 lt_cv_sys_dlopen_deplibs=unknown
18887 ;;
18888 aix[4-9]*)
18889 lt_cv_sys_dlopen_deplibs=yes
18890 ;;
18891 amigaos*)
18892 case $host_cpu in
18893 powerpc)
18894 lt_cv_sys_dlopen_deplibs=no
18895 ;;
18896 esac
18897 ;;
18898 darwin*)
18899 # Assuming the user has installed a libdl from somewhere, this is true
18900 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
18901 lt_cv_sys_dlopen_deplibs=yes
18902 ;;
18903 freebsd* | dragonfly*)
18904 lt_cv_sys_dlopen_deplibs=yes
18905 ;;
cristy18304f92009-11-22 15:48:26 +000018906 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018907 # GNU and its variants, using gnu ld.so (Glibc)
18908 lt_cv_sys_dlopen_deplibs=yes
18909 ;;
18910 hpux10*|hpux11*)
18911 lt_cv_sys_dlopen_deplibs=yes
18912 ;;
18913 interix*)
18914 lt_cv_sys_dlopen_deplibs=yes
18915 ;;
18916 irix[12345]*|irix6.[01]*)
18917 # Catch all versions of IRIX before 6.2, and indicate that we don't
18918 # know how it worked for any of those versions.
18919 lt_cv_sys_dlopen_deplibs=unknown
18920 ;;
18921 irix*)
18922 # The case above catches anything before 6.2, and it's known that
18923 # at 6.2 and later dlopen does load deplibs.
18924 lt_cv_sys_dlopen_deplibs=yes
18925 ;;
18926 netbsd*)
18927 lt_cv_sys_dlopen_deplibs=yes
18928 ;;
18929 openbsd*)
18930 lt_cv_sys_dlopen_deplibs=yes
18931 ;;
18932 osf[1234]*)
18933 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18934 # it did *not* use an RPATH in a shared library to find objects the
18935 # library depends on, so we explicitly say `no'.
18936 lt_cv_sys_dlopen_deplibs=no
18937 ;;
18938 osf5.0|osf5.0a|osf5.1)
18939 # dlopen *does* load deplibs and with the right loader patch applied
18940 # it even uses RPATH in a shared library to search for shared objects
18941 # that the library depends on, but there's no easy way to know if that
18942 # patch is installed. Since this is the case, all we can really
18943 # say is unknown -- it depends on the patch being installed. If
18944 # it is, this changes to `yes'. Without it, it would be `no'.
18945 lt_cv_sys_dlopen_deplibs=unknown
18946 ;;
18947 osf*)
18948 # the two cases above should catch all versions of osf <= 5.1. Read
18949 # the comments above for what we know about them.
18950 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18951 # is used to find them so we can finally say `yes'.
18952 lt_cv_sys_dlopen_deplibs=yes
18953 ;;
18954 qnx*)
18955 lt_cv_sys_dlopen_deplibs=yes
18956 ;;
18957 solaris*)
18958 lt_cv_sys_dlopen_deplibs=yes
18959 ;;
18960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18961 libltdl_cv_sys_dlopen_deplibs=yes
18962 ;;
18963 esac
18964
18965fi
cristy8b350f62009-11-15 23:12:43 +000018966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018967$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18968if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18969
cristy8b350f62009-11-15 23:12:43 +000018970$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018971
18972fi
18973
18974:
18975
cristy3ed852e2009-09-05 21:47:34 +000018976for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000018977do :
18978 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18979"
18980if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018981 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018982#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000018983_ACEOF
18984
18985fi
18986
18987done
18988
18989
cristy8b350f62009-11-15 23:12:43 +000018990ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000018991# include <argz.h>
18992#endif
cristy8b350f62009-11-15 23:12:43 +000018993"
18994if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018995
18996cat >>confdefs.h <<_ACEOF
18997#define HAVE_ERROR_T 1
18998_ACEOF
18999
19000
19001else
19002
cristy8b350f62009-11-15 23:12:43 +000019003$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019004
19005
cristy8b350f62009-11-15 23:12:43 +000019006$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019007
19008fi
19009
19010
19011ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019012for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19013 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019014do :
19015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19016ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19017eval as_val=\$$as_ac_var
19018 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019019 cat >>confdefs.h <<_ACEOF
19020#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19021_ACEOF
19022
19023else
19024 ARGZ_H=argz.h;
19025
19026 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19027
19028fi
19029done
19030
19031
cristy8b350f62009-11-15 23:12:43 +000019032if test -z "$ARGZ_H"; then :
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019034$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019035if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019036 $as_echo_n "(cached) " >&6
19037else
19038 case $host_os in #(
19039 *cygwin*)
19040 lt_cv_sys_argz_works=no
19041 if test "$cross_compiling" != no; then
19042 lt_cv_sys_argz_works="guessing no"
19043 else
19044 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19045 save_IFS=$IFS
19046 IFS=-.
19047 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19048 IFS=$save_IFS
19049 lt_os_major=${2-0}
19050 lt_os_minor=${3-0}
19051 lt_os_micro=${4-0}
19052 if test "$lt_os_major" -gt 1 \
19053 || { test "$lt_os_major" -eq 1 \
19054 && { test "$lt_os_minor" -gt 5 \
19055 || { test "$lt_os_minor" -eq 5 \
19056 && test "$lt_os_micro" -gt 24; }; }; }; then
19057 lt_cv_sys_argz_works=yes
19058 fi
19059 fi
19060 ;; #(
19061 *) lt_cv_sys_argz_works=yes ;;
19062 esac
19063fi
cristy8b350f62009-11-15 23:12:43 +000019064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019065$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019066 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019067
cristy8b350f62009-11-15 23:12:43 +000019068$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019069
19070else
19071 ARGZ_H=argz.h
19072
19073
19074 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19075
19076fi
cristy3ed852e2009-09-05 21:47:34 +000019077fi
19078
19079
19080
cristy8b350f62009-11-15 23:12:43 +000019081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019082$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019083if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019084 $as_echo_n "(cached) " >&6
19085else
19086 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19087 libltdl_cv_preloaded_symbols=yes
19088 else
19089 libltdl_cv_preloaded_symbols=no
19090 fi
19091
19092fi
cristy8b350f62009-11-15 23:12:43 +000019093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019094$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19095if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19096
cristy8b350f62009-11-15 23:12:43 +000019097$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019098
19099fi
19100
19101# Set options
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019114if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019115 withval=$with_included_ltdl;
19116fi
19117
19118
19119if test "x$with_included_ltdl" != xyes; then
19120 # We are not being forced to use the included libltdl sources, so
19121 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019122 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019123
cristy8b350f62009-11-15 23:12:43 +000019124"
19125if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19126 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 +000019127 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019128"
19129if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019131$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019132if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019133 $as_echo_n "(cached) " >&6
19134else
19135 ac_check_lib_save_LIBS=$LIBS
19136LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019138/* end confdefs.h. */
19139
19140/* Override any GCC internal prototype to avoid an error.
19141 Use char because int might match the return type of a GCC
19142 builtin and then its argument prototype would still apply. */
19143#ifdef __cplusplus
19144extern "C"
19145#endif
19146char lt_dladvise_preload ();
19147int
19148main ()
19149{
19150return lt_dladvise_preload ();
19151 ;
19152 return 0;
19153}
19154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019155if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019156 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19157else
cristy8b350f62009-11-15 23:12:43 +000019158 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019159fi
cristy8b350f62009-11-15 23:12:43 +000019160rm -f core conftest.err conftest.$ac_objext \
19161 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019162LIBS=$ac_check_lib_save_LIBS
19163fi
cristy8b350f62009-11-15 23:12:43 +000019164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019165$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019166if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019167 with_included_ltdl=no
19168else
19169 with_included_ltdl=yes
19170fi
19171
19172else
19173 with_included_ltdl=yes
19174fi
19175
19176else
19177 with_included_ltdl=yes
19178fi
19179
19180
19181fi
19182
19183
19184
19185
19186# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019187if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019188 withval=$with_ltdl_include;
19189fi
19190
19191
19192if test -n "$with_ltdl_include"; then
19193 if test -f "$with_ltdl_include/ltdl.h"; then :
19194 else
cristy8b350f62009-11-15 23:12:43 +000019195 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019196 fi
19197else
19198 with_ltdl_include=no
19199fi
19200
19201
19202# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019203if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019204 withval=$with_ltdl_lib;
19205fi
19206
19207
19208if test -n "$with_ltdl_lib"; then
19209 if test -f "$with_ltdl_lib/libltdl.la"; then :
19210 else
cristy8b350f62009-11-15 23:12:43 +000019211 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019212 fi
19213else
19214 with_ltdl_lib=no
19215fi
19216
19217case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19218 ,yes,no,no,)
19219 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000019220 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019221 "") enable_ltdl_convenience=yes
19222 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19223esac
19224LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19225LTDLDEPS=$LIBLTDL
19226LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19227
19228
19229
19230
19231
19232# For backwards non-gettext consistent compatibility...
19233INCLTDL="$LTDLINCL"
19234
19235
19236 ;;
19237 ,no,no,no,)
19238 # If the included ltdl is not to be used, then use the
19239 # preinstalled libltdl we found.
19240
cristy8b350f62009-11-15 23:12:43 +000019241$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019242
19243 LIBLTDL=-lltdl
19244 LTDLDEPS=
19245 LTDLINCL=
19246 ;;
19247 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000019248 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019249 ;;
19250 *) with_included_ltdl=no
19251 LIBLTDL="-L$with_ltdl_lib -lltdl"
19252 LTDLDEPS=
19253 LTDLINCL="-I$with_ltdl_include"
19254 ;;
19255esac
19256INCLTDL="$LTDLINCL"
19257
19258# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019260$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019262$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019264$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019266$as_echo "$LIBLTDL" >&6; }
19267
19268
19269
19270# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019271if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019272 enableval=$enable_ltdl_install;
19273fi
19274
19275
19276case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19277 *yes*) ;;
19278 *) enable_ltdl_convenience=yes ;;
19279esac
19280
19281 if test x"${enable_ltdl_install-no}" != xno; then
19282 INSTALL_LTDL_TRUE=
19283 INSTALL_LTDL_FALSE='#'
19284else
19285 INSTALL_LTDL_TRUE='#'
19286 INSTALL_LTDL_FALSE=
19287fi
19288
19289 if test x"${enable_ltdl_convenience-no}" != xno; then
19290 CONVENIENCE_LTDL_TRUE=
19291 CONVENIENCE_LTDL_FALSE='#'
19292else
19293 CONVENIENCE_LTDL_TRUE='#'
19294 CONVENIENCE_LTDL_FALSE=
19295fi
19296
19297
19298
19299
19300
19301
cristy18304f92009-11-22 15:48:26 +000019302
cristy3ed852e2009-09-05 21:47:34 +000019303# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19304# the user used. This is so that ltdl.h can pick up the parent projects
19305# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19306# definitions required by ltdl.c.
19307# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19308
19309
19310
cristy3ed852e2009-09-05 21:47:34 +000019311for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019312do :
19313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19314ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19315"
19316eval as_val=\$$as_ac_Header
19317 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019318 cat >>confdefs.h <<_ACEOF
19319#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19320_ACEOF
19321
19322fi
19323
19324done
19325
19326
cristy3ed852e2009-09-05 21:47:34 +000019327for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019328do :
19329 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19330ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19331eval as_val=\$$as_ac_var
19332 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019333 cat >>confdefs.h <<_ACEOF
19334#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19335_ACEOF
19336
19337else
19338
19339
19340 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19341
19342fi
19343done
19344
cristy3ed852e2009-09-05 21:47:34 +000019345for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019346do :
19347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19348ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19349eval as_val=\$$as_ac_var
19350 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019351 cat >>confdefs.h <<_ACEOF
19352#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19353_ACEOF
19354
19355else
19356
19357
19358 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19359
19360fi
19361done
19362
19363
19364
19365cat >>confdefs.h <<_ACEOF
19366#define LT_LIBEXT "$libext"
19367_ACEOF
19368
19369
19370name=ltdl
19371LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19372
19373
19374
19375
19376
19377
19378
19379
19380# Only expand once:
19381
19382
19383
19384# Check to see if building shared libraries
19385libtool_build_shared_libs='no'
19386if test "$enable_shared" = 'yes'; then
19387 libtool_build_shared_libs='yes'
19388fi
19389
19390# Check to see if building static libraries
19391libtool_build_static_libs='no'
19392if test "$enable_static" = 'yes'; then
19393 libtool_build_static_libs='yes'
19394fi
19395
cristyfa112112010-01-04 17:48:07 +000019396 if test "${libtool_build_shared_libs}" = 'yes'; then
19397 WITH_SHARED_LIBS_TRUE=
19398 WITH_SHARED_LIBS_FALSE='#'
19399else
19400 WITH_SHARED_LIBS_TRUE='#'
19401 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019402fi
19403
19404#
19405# Enable support for building loadable modules
19406#
19407
19408# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019409if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019410 withval=$with_modules; with_modules=$withval
19411else
cristy5a1cefd2010-01-06 20:42:35 +000019412 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019413fi
19414
19415
19416# Only allow building loadable modules if we are building shared libraries
19417if test "$with_modules" != 'no' ; then
19418 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019419 { $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 +000019420$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19421 with_modules='no'
19422 fi
19423fi
19424if test "$with_modules" != 'no'; then
19425
cristy8b350f62009-11-15 23:12:43 +000019426$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019427
19428fi
19429 if test "$with_modules" != 'no'; then
19430 WITH_MODULES_TRUE=
19431 WITH_MODULES_FALSE='#'
19432else
19433 WITH_MODULES_TRUE='#'
19434 WITH_MODULES_FALSE=
19435fi
19436
19437
19438# Enable building/use of libltdl if we are building shared libraries regardless
19439# of whether modules are built or not.
19440with_ltdl='no'
19441if test "$libtool_build_shared_libs" != 'no'; then
19442 with_ltdl='yes'
19443fi
19444
19445 if test "$with_ltdl" != 'no'; then
19446 WITH_LTDL_TRUE=
19447 WITH_LTDL_FALSE='#'
19448else
19449 WITH_LTDL_TRUE='#'
19450 WITH_LTDL_FALSE=
19451fi
19452
19453if test "$with_ltdl" != 'no'; then
19454
cristy8b350f62009-11-15 23:12:43 +000019455$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019456
19457
19458 # Set DLLDFLAGS
19459 if test X"$enable_shared" = Xyes; then
19460 DLLDFLAGS=-export-dynamic
19461
19462 fi
19463fi
19464
19465# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019466# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019467# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019468if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019469 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19470else
19471 enable_delegate_build='no'
19472fi
19473
19474
19475# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019476if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019477 enableval=$enable_deprecated; enable_deprecated=$enableval
19478else
19479 enable_deprecated='no'
19480fi
19481
19482
19483if test "$enable_deprecated" = 'yes'; then
19484
cristy8b350f62009-11-15 23:12:43 +000019485$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019486
19487else
19488 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
19489fi
19490
19491# Build a version of ImageMagick which operates uninstalled.
19492# Used to build distributions located via MAGICK_HOME / executable path
19493# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000019494if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019495 enableval=$enable_installed; enable_installed=$enableval
19496else
19497 enable_installed='yes'
19498fi
19499
19500
19501if test "$enable_installed" = 'yes'; then
19502
cristy8b350f62009-11-15 23:12:43 +000019503$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019504
19505else
19506 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
19507fi
19508
19509# Permit enciphering and deciphering image pixels.
19510# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000019511if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019512 enableval=$enable_cipher; enable_cipher=$enableval
19513else
19514 enable_cipher='yes'
19515fi
19516
19517
19518if test "$enable_cipher" = 'yes'; then
19519
cristy8b350f62009-11-15 23:12:43 +000019520$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019521
19522fi
19523
19524# Build an embeddable version of ImageMagick.
19525# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000019526if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019527 enableval=$enable_embeddable; enable_embeddable=$enableval
19528else
19529 enable_embeddable='no'
19530fi
19531
19532
19533if test "$enable_embeddable" = 'yes'; then
19534
cristy8b350f62009-11-15 23:12:43 +000019535$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019536
19537fi
19538
19539# Build a high dynamic range version of ImageMagick.
19540# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000019541if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019542 enableval=$enable_hdri; enable_hdri=$enableval
19543else
19544 enable_hdri='no'
19545fi
19546
19547
19548MAGICK_HDRI=""
19549if test "$enable_hdri" = 'yes'; then
19550 MAGICK_HDRI="HDRI"
19551
cristy8b350f62009-11-15 23:12:43 +000019552$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019553
19554fi
19555
cristy3ed852e2009-09-05 21:47:34 +000019556# Build a version of ImageMagick with assert statements.
19557# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000019558if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019559 enableval=$enable_assert; enable_assert=$enableval
19560else
19561 enable_assert='yes'
19562fi
19563
19564
19565if test "$enable_assert" = 'no'; then
19566
cristy8b350f62009-11-15 23:12:43 +000019567$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019568
19569fi
19570
19571# Add configure option --enable-maintainer-mode which enables dependency
19572# checking and generation useful to package maintainers. This is made an
19573# option to avoid confusing end users.
19574
cristy8b350f62009-11-15 23:12:43 +000019575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000019576$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
19577 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000019578if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019579 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19580else
19581 USE_MAINTAINER_MODE=no
19582fi
19583
cristy8b350f62009-11-15 23:12:43 +000019584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000019585$as_echo "$USE_MAINTAINER_MODE" >&6; }
19586 if test $USE_MAINTAINER_MODE = yes; then
19587 MAINTAINER_MODE_TRUE=
19588 MAINTAINER_MODE_FALSE='#'
19589else
19590 MAINTAINER_MODE_TRUE='#'
19591 MAINTAINER_MODE_FALSE=
19592fi
19593
19594 MAINT=$MAINTAINER_MODE_TRUE
19595
19596
19597
19598
19599# Enable ccmalloc memory debugging support
19600# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000019601if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019602 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
19603else
19604 enable_ccmalloc='no'
19605fi
19606
19607
19608# Enable Electric Fence memory debugging support
19609# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000019610if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019611 enableval=$enable_efence; enable_efence=$enableval
19612else
19613 enable_efence='no'
19614fi
19615
19616
19617# Enable prof-based profiling support
19618# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000019619if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019620 enableval=$enable_prof; enable_prof=$enableval
19621else
19622 enable_prof='no'
19623fi
19624
19625
19626# Enable gprof-based profiling support
19627# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000019628if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019629 enableval=$enable_gprof; enable_gprof=$enableval
19630else
19631 enable_gprof='no'
19632fi
19633
19634
19635# Enable gcov-based profiling support
19636# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000019637if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019638 enableval=$enable_gcov; enable_gcov=$enableval
19639else
19640 enable_gcov='no'
19641fi
19642
19643
19644enable_profiling='no'
19645if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
19646 enable_profiling='yes'
19647 if test "$libtool_build_shared_libs" = 'yes'; then
19648 echo "Warning: Can not profile code using shared libraries"
19649 fi
19650fi
19651
19652# Magick API method prefix
19653
19654# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000019655if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019656 withval=$with_method_prefix; with_method_prefix=$enableval
19657else
19658 with_method_prefix=''
19659fi
19660
19661
19662if test "$with_method_prefix" != ''; then
19663
19664cat >>confdefs.h <<_ACEOF
19665#define NAMESPACE_PREFIX $with_method_prefix
19666_ACEOF
19667
19668fi
19669
19670# Number of bits in a Quantum
19671
19672# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000019673if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019674 withval=$with_quantum_depth; with_quantum_depth=$withval
19675else
19676 with_quantum_depth=16
19677fi
19678
19679
19680if test "$with_quantum_depth" != '8'; then
19681 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
19682fi
19683
19684case "${with_quantum_depth}" in
19685 8 ) ;;
19686 16 ) ;;
19687 32 ) ;;
19688 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000019689 * ) { as_fn_set_status 16
19690as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000019691esac
19692QUANTUM_DEPTH="$with_quantum_depth"
19693
19694cat >>confdefs.h <<_ACEOF
19695#define QUANTUM_DEPTH $QUANTUM_DEPTH
19696_ACEOF
19697
19698
19699# Set pixel cache threshold
19700
19701# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000019702if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019703 withval=$with_cache; with_cache=$withval
19704else
19705 with_cache=''
19706fi
19707
19708
19709if test "$with_cache" != ''; then
19710
19711cat >>confdefs.h <<_ACEOF
19712#define PixelCacheThreshold $with_cache
19713_ACEOF
19714
19715 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
19716fi
19717
19718# Disable/Enable support for full delegate paths
19719
19720# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000019721if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019722 withval=$with_frozenpaths; with_frozenpaths=$withval
19723else
19724 with_frozenpaths='no'
19725fi
19726
19727
19728# Enable build/install of Magick++
19729
19730# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000019731if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019732 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
19733else
19734 with_magick_plus_plus='yes'
19735fi
19736
19737
19738# Disable build/install of PerlMagick.
19739
19740# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000019741if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019742 withval=$with_perl; with_perl=$withval
19743else
19744 with_perl=$libtool_build_shared_libs
19745fi
19746
19747
19748# Options to pass when configuring PerlMagick
19749
19750# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000019751if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000019752 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000019753fi
19754
19755
cristy3ed852e2009-09-05 21:47:34 +000019756
19757# Enable umem, object-caching memory allocation library.
19758
19759# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000019760if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019761 withval=$with_umem; with_umem=$withval
19762else
19763 with_umem='no'
19764fi
19765
19766if test "$with_umem" != 'yes' ; then
19767 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19768fi
19769
19770#
19771# Specify path to shared libstdc++ if not in normal location
19772#
19773
19774# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000019775if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019776 withval=$with_libstdc; with_libstdc=$withval
19777else
19778 with_libstdc=''
19779fi
19780
19781
19782if test "$with_libstdc" != ''; then
19783 if test -d "$with_libstdc"; then
19784 LIBSTDCLDFLAGS="-L$with_libstdc"
19785 fi
19786fi
19787
19788
19789# Does gcc required -traditional?
19790if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000019791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019792$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019793if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019794 $as_echo_n "(cached) " >&6
19795else
19796 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000019797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019798/* end confdefs.h. */
19799#include <sgtty.h>
19800Autoconf TIOCGETP
19801_ACEOF
19802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019803 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019804 ac_cv_prog_gcc_traditional=yes
19805else
19806 ac_cv_prog_gcc_traditional=no
19807fi
19808rm -f conftest*
19809
19810
19811 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000019812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019813/* end confdefs.h. */
19814#include <termio.h>
19815Autoconf TCGETA
19816_ACEOF
19817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019818 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019819 ac_cv_prog_gcc_traditional=yes
19820fi
19821rm -f conftest*
19822
19823 fi
19824fi
cristy8b350f62009-11-15 23:12:43 +000019825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019826$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19827 if test $ac_cv_prog_gcc_traditional = yes; then
19828 CC="$CC -traditional"
19829 fi
19830fi
19831
19832
19833########
19834#
19835# Set defines required to build DLLs and modules using MinGW
19836#
19837########
19838# These options are set for multi-thread DLL module build
19839# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
19840# module: _DLL
19841# executable/Magick++: _DLL _MAGICKMOD_
19842MODULE_EXTRA_CPPFLAGS=''
19843LIBRARY_EXTRA_CPPFLAGS=''
19844if test "${native_win32_build}" = 'yes'; then
19845 if test "${libtool_build_shared_libs}" = 'yes'; then
19846 CPPFLAGS="$CPPFLAGS -D_DLL"
19847 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
19848 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
19849 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19850 if test "$with_modules" = 'yes'; then
19851 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
19852 else
19853 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19854 fi
19855 else
19856 CPPFLAGS="$CPPFLAGS -D_LIB"
19857 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
19858 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
19859 fi
19860 if test "$with_threads" = 'yes'; then
19861 CPPFLAGS="$CPPFLAGS -D_MT"
19862 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
19863 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
19864 fi
19865fi
19866
19867
19868
19869# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000019870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000019871$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019872if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019873 $as_echo_n "(cached) " >&6
19874else
cristy8b350f62009-11-15 23:12:43 +000019875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019876/* end confdefs.h. */
19877#include <stdlib.h>
19878#include <stdarg.h>
19879#include <string.h>
19880#include <float.h>
19881
19882int
19883main ()
19884{
19885
19886 ;
19887 return 0;
19888}
19889_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019890if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019891 ac_cv_header_stdc=yes
19892else
cristy8b350f62009-11-15 23:12:43 +000019893 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019894fi
cristy3ed852e2009-09-05 21:47:34 +000019895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896
19897if test $ac_cv_header_stdc = yes; then
19898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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#include <string.h>
19902
19903_ACEOF
19904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019905 $EGREP "memchr" >/dev/null 2>&1; then :
19906
cristy3ed852e2009-09-05 21:47:34 +000019907else
19908 ac_cv_header_stdc=no
19909fi
19910rm -f conftest*
19911
19912fi
19913
19914if test $ac_cv_header_stdc = yes; then
19915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019917/* end confdefs.h. */
19918#include <stdlib.h>
19919
19920_ACEOF
19921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019922 $EGREP "free" >/dev/null 2>&1; then :
19923
cristy3ed852e2009-09-05 21:47:34 +000019924else
19925 ac_cv_header_stdc=no
19926fi
19927rm -f conftest*
19928
19929fi
19930
19931if test $ac_cv_header_stdc = yes; then
19932 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000019933 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019934 :
19935else
cristy8b350f62009-11-15 23:12:43 +000019936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019937/* end confdefs.h. */
19938#include <ctype.h>
19939#include <stdlib.h>
19940#if ((' ' & 0x0FF) == 0x020)
19941# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19942# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19943#else
19944# define ISLOWER(c) \
19945 (('a' <= (c) && (c) <= 'i') \
19946 || ('j' <= (c) && (c) <= 'r') \
19947 || ('s' <= (c) && (c) <= 'z'))
19948# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19949#endif
19950
19951#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19952int
19953main ()
19954{
19955 int i;
19956 for (i = 0; i < 256; i++)
19957 if (XOR (islower (i), ISLOWER (i))
19958 || toupper (i) != TOUPPER (i))
19959 return 2;
19960 return 0;
19961}
19962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019963if ac_fn_c_try_run "$LINENO"; then :
19964
cristy3ed852e2009-09-05 21:47:34 +000019965else
cristy8b350f62009-11-15 23:12:43 +000019966 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019967fi
cristy8b350f62009-11-15 23:12:43 +000019968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19969 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019970fi
19971
cristy3ed852e2009-09-05 21:47:34 +000019972fi
19973fi
cristy8b350f62009-11-15 23:12:43 +000019974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000019975$as_echo "$ac_cv_header_stdc" >&6; }
19976if test $ac_cv_header_stdc = yes; then
19977
cristy8b350f62009-11-15 23:12:43 +000019978$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019979
19980fi
19981
19982if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000019983 { $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 +000019984 header files. Compilation cannot proceed. Please install the ANSI C
19985 headers and rerun this script." >&5
19986$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19987 header files. Compilation cannot proceed. Please install the ANSI C
19988 headers and rerun this script." >&2;};
19989fi
cristya0b81c32010-01-22 02:54:33 +000019990
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
19992$as_echo_n "checking whether to enable assertions... " >&6; }
19993 # Check whether --enable-assert was given.
19994if test "${enable_assert+set}" = set; then :
19995 enableval=$enable_assert; ac_enable_assert=$enableval
19996 if test "x$enableval" = xno; then :
19997
19998$as_echo "#define NDEBUG 1" >>confdefs.h
19999
20000elif test "x$enableval" != xyes; then :
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20002$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20003 ac_enable_assert=yes
20004fi
20005else
20006 ac_enable_assert=yes
20007fi
20008
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20010$as_echo "$ac_enable_assert" >&6; }
20011
cristy3ed852e2009-09-05 21:47:34 +000020012ac_header_dirent=no
20013for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20014 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020016$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020018 $as_echo_n "(cached) " >&6
20019else
cristy8b350f62009-11-15 23:12:43 +000020020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020021/* end confdefs.h. */
20022#include <sys/types.h>
20023#include <$ac_hdr>
20024
20025int
20026main ()
20027{
20028if ((DIR *) 0)
20029return 0;
20030 ;
20031 return 0;
20032}
20033_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020034if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020035 eval "$as_ac_Header=yes"
20036else
cristy8b350f62009-11-15 23:12:43 +000020037 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020038fi
cristy3ed852e2009-09-05 21:47:34 +000020039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20040fi
cristy8b350f62009-11-15 23:12:43 +000020041eval ac_res=\$$as_ac_Header
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020043$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020044eval as_val=\$$as_ac_Header
20045 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020046 cat >>confdefs.h <<_ACEOF
20047#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20048_ACEOF
20049
20050ac_header_dirent=$ac_hdr; break
20051fi
20052
20053done
20054# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20055if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020057$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020058if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020059 $as_echo_n "(cached) " >&6
20060else
20061 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020063/* end confdefs.h. */
20064
20065/* Override any GCC internal prototype to avoid an error.
20066 Use char because int might match the return type of a GCC
20067 builtin and then its argument prototype would still apply. */
20068#ifdef __cplusplus
20069extern "C"
20070#endif
20071char opendir ();
20072int
20073main ()
20074{
20075return opendir ();
20076 ;
20077 return 0;
20078}
20079_ACEOF
20080for ac_lib in '' dir; do
20081 if test -z "$ac_lib"; then
20082 ac_res="none required"
20083 else
20084 ac_res=-l$ac_lib
20085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20086 fi
cristy8b350f62009-11-15 23:12:43 +000020087 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020088 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020089fi
cristy8b350f62009-11-15 23:12:43 +000020090rm -f core conftest.err conftest.$ac_objext \
20091 conftest$ac_exeext
20092 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020093 break
20094fi
20095done
cristy8b350f62009-11-15 23:12:43 +000020096if test "${ac_cv_search_opendir+set}" = set; then :
20097
cristy3ed852e2009-09-05 21:47:34 +000020098else
20099 ac_cv_search_opendir=no
20100fi
20101rm conftest.$ac_ext
20102LIBS=$ac_func_search_save_LIBS
20103fi
cristy8b350f62009-11-15 23:12:43 +000020104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020105$as_echo "$ac_cv_search_opendir" >&6; }
20106ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020107if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20109
20110fi
20111
20112else
cristy8b350f62009-11-15 23:12:43 +000020113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020114$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020115if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020116 $as_echo_n "(cached) " >&6
20117else
20118 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020120/* end confdefs.h. */
20121
20122/* Override any GCC internal prototype to avoid an error.
20123 Use char because int might match the return type of a GCC
20124 builtin and then its argument prototype would still apply. */
20125#ifdef __cplusplus
20126extern "C"
20127#endif
20128char opendir ();
20129int
20130main ()
20131{
20132return opendir ();
20133 ;
20134 return 0;
20135}
20136_ACEOF
20137for ac_lib in '' x; do
20138 if test -z "$ac_lib"; then
20139 ac_res="none required"
20140 else
20141 ac_res=-l$ac_lib
20142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20143 fi
cristy8b350f62009-11-15 23:12:43 +000020144 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020145 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020146fi
cristy8b350f62009-11-15 23:12:43 +000020147rm -f core conftest.err conftest.$ac_objext \
20148 conftest$ac_exeext
20149 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020150 break
20151fi
20152done
cristy8b350f62009-11-15 23:12:43 +000020153if test "${ac_cv_search_opendir+set}" = set; then :
20154
cristy3ed852e2009-09-05 21:47:34 +000020155else
20156 ac_cv_search_opendir=no
20157fi
20158rm conftest.$ac_ext
20159LIBS=$ac_func_search_save_LIBS
20160fi
cristy8b350f62009-11-15 23:12:43 +000020161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020162$as_echo "$ac_cv_search_opendir" >&6; }
20163ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020164if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20166
20167fi
20168
20169fi
20170
20171
20172# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020173for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h
cristy8b350f62009-11-15 23:12:43 +000020174do :
20175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20176ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20177eval as_val=\$$as_ac_Header
20178 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020179 cat >>confdefs.h <<_ACEOF
20180#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20181_ACEOF
20182
20183fi
20184
20185done
20186
20187
20188########
20189#
20190# Checks for typedefs, structures, and compiler characteristics.
20191#
20192########
20193
cristy8b350f62009-11-15 23:12:43 +000020194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020195$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020196if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020197 $as_echo_n "(cached) " >&6
20198else
cristy8b350f62009-11-15 23:12:43 +000020199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020200/* end confdefs.h. */
20201
20202#include <stdbool.h>
20203#ifndef bool
20204 "error: bool is not defined"
20205#endif
20206#ifndef false
20207 "error: false is not defined"
20208#endif
20209#if false
20210 "error: false is not 0"
20211#endif
20212#ifndef true
20213 "error: true is not defined"
20214#endif
20215#if true != 1
20216 "error: true is not 1"
20217#endif
20218#ifndef __bool_true_false_are_defined
20219 "error: __bool_true_false_are_defined is not defined"
20220#endif
20221
20222 struct s { _Bool s: 1; _Bool t; } s;
20223
20224 char a[true == 1 ? 1 : -1];
20225 char b[false == 0 ? 1 : -1];
20226 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20227 char d[(bool) 0.5 == true ? 1 : -1];
20228 bool e = &s;
20229 char f[(_Bool) 0.0 == false ? 1 : -1];
20230 char g[true];
20231 char h[sizeof (_Bool)];
20232 char i[sizeof s.t];
20233 enum { j = false, k = true, l = false * true, m = true * 256 };
20234 /* The following fails for
20235 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20236 _Bool n[m];
20237 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20238 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20239# if defined __xlc__ || defined __GNUC__
20240 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20241 reported by James Lemley on 2005-10-05; see
20242 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20243 This test is not quite right, since xlc is allowed to
20244 reject this program, as the initializer for xlcbug is
20245 not one of the forms that C requires support for.
20246 However, doing the test right would require a runtime
20247 test, and that would make cross-compilation harder.
20248 Let us hope that IBM fixes the xlc bug, and also adds
20249 support for this kind of constant expression. In the
20250 meantime, this test will reject xlc, which is OK, since
20251 our stdbool.h substitute should suffice. We also test
20252 this with GCC, where it should work, to detect more
20253 quickly whether someone messes up the test in the
20254 future. */
20255 char digs[] = "0123456789";
20256 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20257# endif
20258 /* Catch a bug in an HP-UX C compiler. See
20259 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20260 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20261 */
20262 _Bool q = true;
20263 _Bool *pq = &q;
20264
20265int
20266main ()
20267{
20268
20269 *pq |= q;
20270 *pq |= ! q;
20271 /* Refer to every declared value, to avoid compiler optimizations. */
20272 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20273 + !m + !n + !o + !p + !q + !pq);
20274
20275 ;
20276 return 0;
20277}
20278_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020279if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020280 ac_cv_header_stdbool_h=yes
20281else
cristy8b350f62009-11-15 23:12:43 +000020282 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020283fi
cristy3ed852e2009-09-05 21:47:34 +000020284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20285fi
cristy8b350f62009-11-15 23:12:43 +000020286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020287$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020288ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20289if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020290
20291cat >>confdefs.h <<_ACEOF
20292#define HAVE__BOOL 1
20293_ACEOF
20294
20295
20296fi
20297
20298if test $ac_cv_header_stdbool_h = yes; then
20299
cristy8b350f62009-11-15 23:12:43 +000020300$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020301
20302fi
20303
cristy8b350f62009-11-15 23:12:43 +000020304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020305$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020306if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020307 $as_echo_n "(cached) " >&6
20308else
cristy8b350f62009-11-15 23:12:43 +000020309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020310/* end confdefs.h. */
20311
20312int
20313main ()
20314{
20315
20316volatile int x;
20317int * volatile y = (int *) 0;
20318return !x && !y;
20319 ;
20320 return 0;
20321}
20322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020323if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020324 ac_cv_c_volatile=yes
20325else
cristy8b350f62009-11-15 23:12:43 +000020326 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020327fi
cristy3ed852e2009-09-05 21:47:34 +000020328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20329fi
cristy8b350f62009-11-15 23:12:43 +000020330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020331$as_echo "$ac_cv_c_volatile" >&6; }
20332if test $ac_cv_c_volatile = no; then
20333
cristy8b350f62009-11-15 23:12:43 +000020334$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020335
20336fi
20337
cristy8b350f62009-11-15 23:12:43 +000020338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020339$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020340if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020341 $as_echo_n "(cached) " >&6
20342else
cristy8b350f62009-11-15 23:12:43 +000020343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020344/* end confdefs.h. */
20345#define x(y) #y
20346
20347char *s = x(teststring);
20348_ACEOF
20349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020350 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020351 ac_cv_c_stringize=no
20352else
20353 ac_cv_c_stringize=yes
20354fi
20355rm -f conftest*
20356
20357fi
cristy8b350f62009-11-15 23:12:43 +000020358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020359$as_echo "$ac_cv_c_stringize" >&6; }
20360if test $ac_cv_c_stringize = yes; then
20361
cristy8b350f62009-11-15 23:12:43 +000020362$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020363
20364fi
20365
cristy8b350f62009-11-15 23:12:43 +000020366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020367$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020368if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020369 $as_echo_n "(cached) " >&6
20370else
cristy8b350f62009-11-15 23:12:43 +000020371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020372/* end confdefs.h. */
20373#include <sys/types.h>
20374#include <sys/stat.h>
20375
20376#if defined S_ISBLK && defined S_IFDIR
20377extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20378#endif
20379
20380#if defined S_ISBLK && defined S_IFCHR
20381extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20382#endif
20383
20384#if defined S_ISLNK && defined S_IFREG
20385extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20386#endif
20387
20388#if defined S_ISSOCK && defined S_IFREG
20389extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20390#endif
20391
20392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020393if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020394 ac_cv_header_stat_broken=no
20395else
cristy8b350f62009-11-15 23:12:43 +000020396 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020397fi
cristy3ed852e2009-09-05 21:47:34 +000020398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399fi
cristy8b350f62009-11-15 23:12:43 +000020400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020401$as_echo "$ac_cv_header_stat_broken" >&6; }
20402if test $ac_cv_header_stat_broken = yes; then
20403
cristy8b350f62009-11-15 23:12:43 +000020404$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020405
20406fi
20407
cristy8b350f62009-11-15 23:12:43 +000020408{ $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 +000020409$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020410if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020411 $as_echo_n "(cached) " >&6
20412else
cristy8b350f62009-11-15 23:12:43 +000020413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020414/* end confdefs.h. */
20415#include <sys/types.h>
20416#include <sys/time.h>
20417#include <time.h>
20418
20419int
20420main ()
20421{
20422if ((struct tm *) 0)
20423return 0;
20424 ;
20425 return 0;
20426}
20427_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020428if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020429 ac_cv_header_time=yes
20430else
cristy8b350f62009-11-15 23:12:43 +000020431 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020432fi
cristy3ed852e2009-09-05 21:47:34 +000020433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20434fi
cristy8b350f62009-11-15 23:12:43 +000020435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020436$as_echo "$ac_cv_header_time" >&6; }
20437if test $ac_cv_header_time = yes; then
20438
cristy8b350f62009-11-15 23:12:43 +000020439$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020440
20441fi
20442
cristy8b350f62009-11-15 23:12:43 +000020443{ $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 +000020444$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020445if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020446 $as_echo_n "(cached) " >&6
20447else
cristy8b350f62009-11-15 23:12:43 +000020448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020449/* end confdefs.h. */
20450#include <sys/types.h>
20451#include <time.h>
20452
20453int
20454main ()
20455{
20456struct tm tm;
20457 int *p = &tm.tm_sec;
20458 return !p;
20459 ;
20460 return 0;
20461}
20462_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020463if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020464 ac_cv_struct_tm=time.h
20465else
cristy8b350f62009-11-15 23:12:43 +000020466 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020467fi
cristy3ed852e2009-09-05 21:47:34 +000020468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20469fi
cristy8b350f62009-11-15 23:12:43 +000020470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020471$as_echo "$ac_cv_struct_tm" >&6; }
20472if test $ac_cv_struct_tm = sys/time.h; then
20473
cristy8b350f62009-11-15 23:12:43 +000020474$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020475
20476fi
20477
cristy8b350f62009-11-15 23:12:43 +000020478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000020479$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020480if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020481 $as_echo_n "(cached) " >&6
20482else
20483 echo '#! /bin/cat
20484exit 69
20485' >conftest
20486chmod u+x conftest
20487(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
20488if test $? -ne 69; then
20489 ac_cv_sys_interpreter=yes
20490else
20491 ac_cv_sys_interpreter=no
20492fi
20493rm -f conftest
20494fi
cristy8b350f62009-11-15 23:12:43 +000020495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000020496$as_echo "$ac_cv_sys_interpreter" >&6; }
20497interpval=$ac_cv_sys_interpreter
20498
20499
cristy3ed852e2009-09-05 21:47:34 +000020500# If the C compiler supports the keyword inline, do nothing. Otherwise
20501# define inline to __inline__ or __inline if it accepts one of those,
20502# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000020503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000020504$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020505if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020506 $as_echo_n "(cached) " >&6
20507else
20508 ac_cv_c_inline=no
20509for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000020510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020511/* end confdefs.h. */
20512#ifndef __cplusplus
20513typedef int foo_t;
20514static $ac_kw foo_t static_foo () {return 0; }
20515$ac_kw foo_t foo () {return 0; }
20516#endif
20517
20518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020519if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020520 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000020521fi
cristy3ed852e2009-09-05 21:47:34 +000020522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20523 test "$ac_cv_c_inline" != no && break
20524done
20525
20526fi
cristy8b350f62009-11-15 23:12:43 +000020527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000020528$as_echo "$ac_cv_c_inline" >&6; }
20529
cristy3ed852e2009-09-05 21:47:34 +000020530case $ac_cv_c_inline in
20531 inline | yes) ;;
20532 *)
20533 case $ac_cv_c_inline in
20534 no) ac_val=;;
20535 *) ac_val=$ac_cv_c_inline;;
20536 esac
20537 cat >>confdefs.h <<_ACEOF
20538#ifndef __cplusplus
20539#define inline $ac_val
20540#endif
20541_ACEOF
20542 ;;
20543esac
20544
20545
20546# If the C compiler supports the keyword restrict, do nothing. Otherwise
20547# define restrict to __restrict__ or __restrict if it accepts one of those,
20548# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000020549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000020550$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020551if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020552 $as_echo_n "(cached) " >&6
20553else
20554 ac_cv_c_restrict=no
20555 # The order here caters to the fact that C++ does not require restrict.
20556 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000020557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020558/* end confdefs.h. */
20559typedef int * int_ptr;
20560 int foo (int_ptr $ac_kw ip) {
20561 return ip[0];
20562 }
20563int
20564main ()
20565{
20566int s[1];
20567 int * $ac_kw t = s;
20568 t[0] = 0;
20569 return foo(t)
20570 ;
20571 return 0;
20572}
20573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020574if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020575 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000020576fi
cristy3ed852e2009-09-05 21:47:34 +000020577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20578 test "$ac_cv_c_restrict" != no && break
20579 done
20580
20581fi
cristy8b350f62009-11-15 23:12:43 +000020582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000020583$as_echo "$ac_cv_c_restrict" >&6; }
20584
cristy3ed852e2009-09-05 21:47:34 +000020585 case $ac_cv_c_restrict in
20586 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000020587 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020588 ;;
20589 *) cat >>confdefs.h <<_ACEOF
20590#define restrict $ac_cv_c_restrict
20591_ACEOF
20592 ;;
20593 esac
20594
20595
20596# If words are stored with the most significant byte first (like
20597# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000020598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020599$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020600if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020601 $as_echo_n "(cached) " >&6
20602else
20603 ac_cv_c_bigendian=unknown
20604 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000020605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020606/* end confdefs.h. */
20607#ifndef __APPLE_CC__
20608 not a universal capable compiler
20609 #endif
20610 typedef int dummy;
20611
20612_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020613if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020614
20615 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000020616 # there are at least two -arch flags with different values.
20617 ac_arch=
20618 ac_prev=
20619 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20620 if test -n "$ac_prev"; then
20621 case $ac_word in
20622 i?86 | x86_64 | ppc | ppc64)
20623 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20624 ac_arch=$ac_word
20625 else
20626 ac_cv_c_bigendian=universal
20627 break
20628 fi
20629 ;;
20630 esac
20631 ac_prev=
20632 elif test "x$ac_word" = "x-arch"; then
20633 ac_prev=arch
20634 fi
20635 done
cristy3ed852e2009-09-05 21:47:34 +000020636fi
cristy3ed852e2009-09-05 21:47:34 +000020637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20638 if test $ac_cv_c_bigendian = unknown; then
20639 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000020640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020641/* end confdefs.h. */
20642#include <sys/types.h>
20643 #include <sys/param.h>
20644
20645int
20646main ()
20647{
20648#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20649 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20650 && LITTLE_ENDIAN)
20651 bogus endian macros
20652 #endif
20653
20654 ;
20655 return 0;
20656}
20657_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020658if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020659 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020661/* end confdefs.h. */
20662#include <sys/types.h>
20663 #include <sys/param.h>
20664
20665int
20666main ()
20667{
20668#if BYTE_ORDER != BIG_ENDIAN
20669 not big endian
20670 #endif
20671
20672 ;
20673 return 0;
20674}
20675_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020676if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020677 ac_cv_c_bigendian=yes
20678else
cristy8b350f62009-11-15 23:12:43 +000020679 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020680fi
cristy3ed852e2009-09-05 21:47:34 +000020681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020682fi
cristy3ed852e2009-09-05 21:47:34 +000020683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20684 fi
20685 if test $ac_cv_c_bigendian = unknown; then
20686 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000020687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020688/* end confdefs.h. */
20689#include <limits.h>
20690
20691int
20692main ()
20693{
20694#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20695 bogus endian macros
20696 #endif
20697
20698 ;
20699 return 0;
20700}
20701_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020702if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020703 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020705/* end confdefs.h. */
20706#include <limits.h>
20707
20708int
20709main ()
20710{
20711#ifndef _BIG_ENDIAN
20712 not big endian
20713 #endif
20714
20715 ;
20716 return 0;
20717}
20718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020719if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020720 ac_cv_c_bigendian=yes
20721else
cristy8b350f62009-11-15 23:12:43 +000020722 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020723fi
cristy3ed852e2009-09-05 21:47:34 +000020724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020725fi
cristy3ed852e2009-09-05 21:47:34 +000020726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20727 fi
20728 if test $ac_cv_c_bigendian = unknown; then
20729 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000020730 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020731 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000020732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020733/* end confdefs.h. */
20734short int ascii_mm[] =
20735 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20736 short int ascii_ii[] =
20737 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20738 int use_ascii (int i) {
20739 return ascii_mm[i] + ascii_ii[i];
20740 }
20741 short int ebcdic_ii[] =
20742 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20743 short int ebcdic_mm[] =
20744 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20745 int use_ebcdic (int i) {
20746 return ebcdic_mm[i] + ebcdic_ii[i];
20747 }
20748 extern int foo;
20749
20750int
20751main ()
20752{
20753return use_ascii (foo) == use_ebcdic (foo);
20754 ;
20755 return 0;
20756}
20757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020758if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020759 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20760 ac_cv_c_bigendian=yes
20761 fi
20762 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20763 if test "$ac_cv_c_bigendian" = unknown; then
20764 ac_cv_c_bigendian=no
20765 else
20766 # finding both strings is unlikely to happen, but who knows?
20767 ac_cv_c_bigendian=unknown
20768 fi
20769 fi
cristy3ed852e2009-09-05 21:47:34 +000020770fi
cristy3ed852e2009-09-05 21:47:34 +000020771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20772else
cristy8b350f62009-11-15 23:12:43 +000020773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020774/* end confdefs.h. */
20775$ac_includes_default
20776int
20777main ()
20778{
20779
20780 /* Are we little or big endian? From Harbison&Steele. */
20781 union
20782 {
20783 long int l;
20784 char c[sizeof (long int)];
20785 } u;
20786 u.l = 1;
20787 return u.c[sizeof (long int) - 1] == 1;
20788
20789 ;
20790 return 0;
20791}
20792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020793if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020794 ac_cv_c_bigendian=no
20795else
cristy8b350f62009-11-15 23:12:43 +000020796 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000020797fi
cristy8b350f62009-11-15 23:12:43 +000020798rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20799 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020800fi
20801
cristy3ed852e2009-09-05 21:47:34 +000020802 fi
20803fi
cristy8b350f62009-11-15 23:12:43 +000020804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020805$as_echo "$ac_cv_c_bigendian" >&6; }
20806 case $ac_cv_c_bigendian in #(
20807 yes)
cristy8b350f62009-11-15 23:12:43 +000020808 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020809;; #(
20810 no)
20811 ;; #(
20812 universal)
20813
cristy8b350f62009-11-15 23:12:43 +000020814$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020815
20816 ;; #(
20817 *)
cristy8b350f62009-11-15 23:12:43 +000020818 as_fn_error "unknown endianness
20819 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020820 esac
20821
20822
20823# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020824ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20825if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020826
cristy3ed852e2009-09-05 21:47:34 +000020827else
20828
20829cat >>confdefs.h <<_ACEOF
20830#define mode_t int
20831_ACEOF
20832
20833fi
20834
20835
20836# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020837ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20838if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020839
cristy3ed852e2009-09-05 21:47:34 +000020840else
20841
20842cat >>confdefs.h <<_ACEOF
20843#define off_t long int
20844_ACEOF
20845
20846fi
20847
20848
20849# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020850ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20851if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020852
cristy3ed852e2009-09-05 21:47:34 +000020853else
20854
20855cat >>confdefs.h <<_ACEOF
20856#define pid_t int
20857_ACEOF
20858
20859fi
20860
20861
20862# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020863ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20864if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020865
cristy3ed852e2009-09-05 21:47:34 +000020866else
20867
20868cat >>confdefs.h <<_ACEOF
20869#define size_t unsigned int
20870_ACEOF
20871
20872fi
20873
20874
20875# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020876ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20877if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020878
cristy3ed852e2009-09-05 21:47:34 +000020879else
20880
20881cat >>confdefs.h <<_ACEOF
20882#define ssize_t int
20883_ACEOF
20884
20885fi
20886
20887
20888# If the C compiler supports a working long double type with more range
20889# or precision than the double type, define HAVE_LONG_DOUBLE.
20890
cristy8b350f62009-11-15 23:12:43 +000020891 { $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 +000020892$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020893if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020894 $as_echo_n "(cached) " >&6
20895else
cristy8b350f62009-11-15 23:12:43 +000020896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020897/* end confdefs.h. */
20898#include <float.h>
20899 long double const a[] =
20900 {
20901 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20902 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20903 };
20904 long double
20905 f (long double x)
20906 {
20907 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20908 + (x ? f (x) : 'c'));
20909 }
20910
20911int
20912main ()
20913{
20914static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20915 + (DBL_MANT_DIG < LDBL_MANT_DIG)
20916 - (LDBL_MAX_EXP < DBL_MAX_EXP)
20917 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20918 && (int) LDBL_EPSILON == 0
20919 )];
20920test_array [0] = 0
20921
20922 ;
20923 return 0;
20924}
20925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020926if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020927 ac_cv_type_long_double_wider=yes
20928else
cristy8b350f62009-11-15 23:12:43 +000020929 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000020930fi
cristy3ed852e2009-09-05 21:47:34 +000020931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20932fi
cristy8b350f62009-11-15 23:12:43 +000020933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000020934$as_echo "$ac_cv_type_long_double_wider" >&6; }
20935 if test $ac_cv_type_long_double_wider = yes; then
20936
cristy8b350f62009-11-15 23:12:43 +000020937$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020938
20939 fi
20940
20941
20942# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20943# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000020944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020945$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020946if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020947 $as_echo_n "(cached) " >&6
20948else
cristy8b350f62009-11-15 23:12:43 +000020949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020950/* end confdefs.h. */
20951$ac_includes_default
20952int
20953main ()
20954{
20955static int test_array [1 - 2 * !(((char) -1) < 0)];
20956test_array [0] = 0
20957
20958 ;
20959 return 0;
20960}
20961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020962if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020963 ac_cv_c_char_unsigned=no
20964else
cristy8b350f62009-11-15 23:12:43 +000020965 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000020966fi
cristy3ed852e2009-09-05 21:47:34 +000020967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20968fi
cristy8b350f62009-11-15 23:12:43 +000020969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020970$as_echo "$ac_cv_c_char_unsigned" >&6; }
20971if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000020972 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020973
20974fi
20975
20976
20977# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20978# The cast to long int works around a bug in the HP C Compiler
20979# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20980# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20981# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020983$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020984if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020985 $as_echo_n "(cached) " >&6
20986else
cristy8b350f62009-11-15 23:12:43 +000020987 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 +000020988
cristy3ed852e2009-09-05 21:47:34 +000020989else
cristy8b350f62009-11-15 23:12:43 +000020990 if test "$ac_cv_type_signed_short" = yes; then
20991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020993{ as_fn_set_status 77
20994as_fn_error "cannot compute sizeof (signed short)
20995See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020996 else
20997 ac_cv_sizeof_signed_short=0
20998 fi
20999fi
cristy8b350f62009-11-15 23:12:43 +000021000
cristy3ed852e2009-09-05 21:47:34 +000021001fi
cristy8b350f62009-11-15 23:12:43 +000021002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021003$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21004
21005
21006
21007cat >>confdefs.h <<_ACEOF
21008#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21009_ACEOF
21010
21011
21012
21013# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21014# The cast to long int works around a bug in the HP C Compiler
21015# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21016# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21017# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021019$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021020if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021021 $as_echo_n "(cached) " >&6
21022else
cristy8b350f62009-11-15 23:12:43 +000021023 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 +000021024
cristy3ed852e2009-09-05 21:47:34 +000021025else
cristy8b350f62009-11-15 23:12:43 +000021026 if test "$ac_cv_type_unsigned_short" = yes; then
21027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021029{ as_fn_set_status 77
21030as_fn_error "cannot compute sizeof (unsigned short)
21031See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021032 else
21033 ac_cv_sizeof_unsigned_short=0
21034 fi
21035fi
cristy8b350f62009-11-15 23:12:43 +000021036
cristy3ed852e2009-09-05 21:47:34 +000021037fi
cristy8b350f62009-11-15 23:12:43 +000021038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021039$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21040
21041
21042
21043cat >>confdefs.h <<_ACEOF
21044#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21045_ACEOF
21046
21047
21048
21049# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21050# The cast to long int works around a bug in the HP C Compiler
21051# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21052# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21053# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021055$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021056if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021057 $as_echo_n "(cached) " >&6
21058else
cristy8b350f62009-11-15 23:12:43 +000021059 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 +000021060
cristy3ed852e2009-09-05 21:47:34 +000021061else
cristy8b350f62009-11-15 23:12:43 +000021062 if test "$ac_cv_type_signed_int" = yes; then
21063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021065{ as_fn_set_status 77
21066as_fn_error "cannot compute sizeof (signed int)
21067See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021068 else
21069 ac_cv_sizeof_signed_int=0
21070 fi
21071fi
cristy8b350f62009-11-15 23:12:43 +000021072
cristy3ed852e2009-09-05 21:47:34 +000021073fi
cristy8b350f62009-11-15 23:12:43 +000021074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021075$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21076
21077
21078
21079cat >>confdefs.h <<_ACEOF
21080#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21081_ACEOF
21082
21083
21084
21085# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21086# The cast to long int works around a bug in the HP C Compiler
21087# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21088# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21089# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021091$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021092if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021093 $as_echo_n "(cached) " >&6
21094else
cristy8b350f62009-11-15 23:12:43 +000021095 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 +000021096
cristy3ed852e2009-09-05 21:47:34 +000021097else
cristy8b350f62009-11-15 23:12:43 +000021098 if test "$ac_cv_type_unsigned_int" = yes; then
21099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021101{ as_fn_set_status 77
21102as_fn_error "cannot compute sizeof (unsigned int)
21103See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021104 else
21105 ac_cv_sizeof_unsigned_int=0
21106 fi
21107fi
cristy8b350f62009-11-15 23:12:43 +000021108
cristy3ed852e2009-09-05 21:47:34 +000021109fi
cristy8b350f62009-11-15 23:12:43 +000021110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021111$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21112
21113
21114
21115cat >>confdefs.h <<_ACEOF
21116#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21117_ACEOF
21118
21119
21120
21121# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21122# The cast to long int works around a bug in the HP C Compiler
21123# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21124# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21125# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021127$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021128if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021129 $as_echo_n "(cached) " >&6
21130else
cristy8b350f62009-11-15 23:12:43 +000021131 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 +000021132
cristy3ed852e2009-09-05 21:47:34 +000021133else
cristy8b350f62009-11-15 23:12:43 +000021134 if test "$ac_cv_type_signed_long" = yes; then
21135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021137{ as_fn_set_status 77
21138as_fn_error "cannot compute sizeof (signed long)
21139See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021140 else
21141 ac_cv_sizeof_signed_long=0
21142 fi
21143fi
cristy8b350f62009-11-15 23:12:43 +000021144
cristy3ed852e2009-09-05 21:47:34 +000021145fi
cristy8b350f62009-11-15 23:12:43 +000021146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021147$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21148
21149
21150
21151cat >>confdefs.h <<_ACEOF
21152#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21153_ACEOF
21154
21155
21156
21157# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21158# The cast to long int works around a bug in the HP C Compiler
21159# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21160# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21161# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021163$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021164if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021165 $as_echo_n "(cached) " >&6
21166else
cristy8b350f62009-11-15 23:12:43 +000021167 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 +000021168
cristy3ed852e2009-09-05 21:47:34 +000021169else
cristy8b350f62009-11-15 23:12:43 +000021170 if test "$ac_cv_type_unsigned_long" = yes; then
21171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021173{ as_fn_set_status 77
21174as_fn_error "cannot compute sizeof (unsigned long)
21175See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021176 else
21177 ac_cv_sizeof_unsigned_long=0
21178 fi
21179fi
cristy8b350f62009-11-15 23:12:43 +000021180
cristy3ed852e2009-09-05 21:47:34 +000021181fi
cristy8b350f62009-11-15 23:12:43 +000021182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021183$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21184
21185
21186
21187cat >>confdefs.h <<_ACEOF
21188#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21189_ACEOF
21190
21191
21192
21193# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21194# 'signed long long' is not supported then the value defined is zero.
21195# The cast to long int works around a bug in the HP C Compiler
21196# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21197# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21198# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021200$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021201if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021202 $as_echo_n "(cached) " >&6
21203else
cristy8b350f62009-11-15 23:12:43 +000021204 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 +000021205
cristy3ed852e2009-09-05 21:47:34 +000021206else
cristy8b350f62009-11-15 23:12:43 +000021207 if test "$ac_cv_type_signed_long_long" = yes; then
21208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021210{ as_fn_set_status 77
21211as_fn_error "cannot compute sizeof (signed long long)
21212See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021213 else
21214 ac_cv_sizeof_signed_long_long=0
21215 fi
21216fi
cristy8b350f62009-11-15 23:12:43 +000021217
cristy3ed852e2009-09-05 21:47:34 +000021218fi
cristy8b350f62009-11-15 23:12:43 +000021219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021220$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21221
21222
21223
21224cat >>confdefs.h <<_ACEOF
21225#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21226_ACEOF
21227
21228
21229
21230# Obtain size of a 'unsigned long long' and define as
21231# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21232# supported then the value defined is zero.
21233# The cast to long int works around a bug in the HP C Compiler
21234# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21235# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21236# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021238$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021239if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021240 $as_echo_n "(cached) " >&6
21241else
cristy8b350f62009-11-15 23:12:43 +000021242 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 +000021243
cristy3ed852e2009-09-05 21:47:34 +000021244else
cristy8b350f62009-11-15 23:12:43 +000021245 if test "$ac_cv_type_unsigned_long_long" = yes; then
21246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021248{ as_fn_set_status 77
21249as_fn_error "cannot compute sizeof (unsigned long long)
21250See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021251 else
21252 ac_cv_sizeof_unsigned_long_long=0
21253 fi
21254fi
cristy8b350f62009-11-15 23:12:43 +000021255
cristy3ed852e2009-09-05 21:47:34 +000021256fi
cristy8b350f62009-11-15 23:12:43 +000021257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021258$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21259
21260
21261
21262cat >>confdefs.h <<_ACEOF
21263#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21264_ACEOF
21265
21266
21267
21268# Obtain size of off_t and define as SIZEOF_OFF_T
21269# The cast to long int works around a bug in the HP C Compiler
21270# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21271# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21272# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021274$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021275if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021276 $as_echo_n "(cached) " >&6
21277else
cristy8b350f62009-11-15 23:12:43 +000021278 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 +000021279
cristy3ed852e2009-09-05 21:47:34 +000021280else
cristy8b350f62009-11-15 23:12:43 +000021281 if test "$ac_cv_type_off_t" = yes; then
21282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021284{ as_fn_set_status 77
21285as_fn_error "cannot compute sizeof (off_t)
21286See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021287 else
21288 ac_cv_sizeof_off_t=0
21289 fi
21290fi
cristy8b350f62009-11-15 23:12:43 +000021291
cristy3ed852e2009-09-05 21:47:34 +000021292fi
cristy8b350f62009-11-15 23:12:43 +000021293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021294$as_echo "$ac_cv_sizeof_off_t" >&6; }
21295
21296
21297
21298cat >>confdefs.h <<_ACEOF
21299#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21300_ACEOF
21301
21302
21303
21304# Obtain size of size_t and define as SIZEOF_SIZE_T
21305# The cast to long int works around a bug in the HP C Compiler
21306# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21307# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21308# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021310$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021311if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021312 $as_echo_n "(cached) " >&6
21313else
cristy8b350f62009-11-15 23:12:43 +000021314 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 +000021315
cristy3ed852e2009-09-05 21:47:34 +000021316else
cristy8b350f62009-11-15 23:12:43 +000021317 if test "$ac_cv_type_size_t" = yes; then
21318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021320{ as_fn_set_status 77
21321as_fn_error "cannot compute sizeof (size_t)
21322See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021323 else
21324 ac_cv_sizeof_size_t=0
21325 fi
21326fi
cristy8b350f62009-11-15 23:12:43 +000021327
cristy3ed852e2009-09-05 21:47:34 +000021328fi
cristy8b350f62009-11-15 23:12:43 +000021329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021330$as_echo "$ac_cv_sizeof_size_t" >&6; }
21331
21332
21333
21334cat >>confdefs.h <<_ACEOF
21335#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21336_ACEOF
21337
21338
21339
21340# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21341# The cast to long int works around a bug in the HP C Compiler
21342# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21343# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21344# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021346$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021347if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021348 $as_echo_n "(cached) " >&6
21349else
cristy8b350f62009-11-15 23:12:43 +000021350 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 +000021351
cristy3ed852e2009-09-05 21:47:34 +000021352else
cristy8b350f62009-11-15 23:12:43 +000021353 if test "$ac_cv_type_unsigned_intp" = yes; then
21354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021356{ as_fn_set_status 77
21357as_fn_error "cannot compute sizeof (unsigned int*)
21358See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021359 else
21360 ac_cv_sizeof_unsigned_intp=0
21361 fi
21362fi
cristy8b350f62009-11-15 23:12:43 +000021363
cristy3ed852e2009-09-05 21:47:34 +000021364fi
cristy8b350f62009-11-15 23:12:43 +000021365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021366$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21367
21368
21369
21370cat >>confdefs.h <<_ACEOF
21371#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21372_ACEOF
21373
21374
21375
21376#
21377# Compute sized types for current CPU and compiler options.
21378#
21379
cristy8b350f62009-11-15 23:12:43 +000021380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021381$as_echo_n "checking for signed 8-bit type... " >&6; }
21382INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021384$as_echo "$INT8_T" >&6; }
21385
21386
cristy8b350f62009-11-15 23:12:43 +000021387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021388$as_echo_n "checking for unsigned 8-bit type... " >&6; }
21389UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000021390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021391$as_echo "$UINT8_T" >&6; }
21392
21393
cristy8b350f62009-11-15 23:12:43 +000021394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021395$as_echo_n "checking for signed 16-bit type... " >&6; }
21396INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000021397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021398$as_echo "$INT16_T" >&6; }
21399
21400
cristy8b350f62009-11-15 23:12:43 +000021401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021402$as_echo_n "checking for unsigned 16-bit type... " >&6; }
21403UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000021404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021405$as_echo "$UINT16_T" >&6; }
21406
21407
cristy8b350f62009-11-15 23:12:43 +000021408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021409$as_echo_n "checking for signed 32-bit type... " >&6; }
21410INT32_T='none'
21411if test $ac_cv_sizeof_signed_int -eq 4; then
21412 INT32_T='signed int'
21413elif test $ac_cv_sizeof_signed_long -eq 4; then
21414 INT32_T='signed long'
21415fi
cristy8b350f62009-11-15 23:12:43 +000021416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021417$as_echo "$INT32_T" >&6; }
21418
21419
cristy8b350f62009-11-15 23:12:43 +000021420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021421$as_echo_n "checking for unsigned 32-bit type... " >&6; }
21422UINT32_T='none'
21423if test $ac_cv_sizeof_unsigned_int -eq 4; then
21424 UINT32_T='unsigned int'
21425elif test $ac_cv_sizeof_unsigned_long -eq 4; then
21426 UINT32_T='unsigned long'
21427fi
cristy8b350f62009-11-15 23:12:43 +000021428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021429$as_echo "$UINT32_T" >&6; }
21430
21431
cristy8b350f62009-11-15 23:12:43 +000021432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021433$as_echo_n "checking for signed 64-bit type... " >&6; }
21434INT64_T='none'
21435if test $ac_cv_sizeof_signed_long -eq 8; then
21436 INT64_T='signed long'
21437elif test $ac_cv_sizeof_signed_long_long -eq 8; then
21438 INT64_T='signed long long'
21439fi
cristy8b350f62009-11-15 23:12:43 +000021440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021441$as_echo "$INT64_T" >&6; }
21442
21443
cristy8b350f62009-11-15 23:12:43 +000021444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021445$as_echo_n "checking for unsigned 64-bit type... " >&6; }
21446UINT64_T='none'
21447if test $ac_cv_sizeof_unsigned_long -eq 8; then
21448 UINT64_T='unsigned long'
21449elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
21450 UINT64_T='unsigned long long'
21451fi
cristy8b350f62009-11-15 23:12:43 +000021452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021453$as_echo "$UINT64_T" >&6; }
21454
21455
cristy8b350f62009-11-15 23:12:43 +000021456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021457$as_echo_n "checking for unsigned maximum type... " >&6; }
21458UINTMAX_T='none'
21459if test "$UINT64_T" != 'none'; then
21460 UINTMAX_T=$UINT64_T
21461elif test "$UINT32_T" != 'none'; then
21462 UINTMAX_T=$UINT32_T
21463fi
cristy8b350f62009-11-15 23:12:43 +000021464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021465$as_echo "$UINTMAX_T" >&6; }
21466
21467
cristy8b350f62009-11-15 23:12:43 +000021468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021469$as_echo_n "checking for pointer difference type... " >&6; }
21470UINTPTR_T='none'
21471if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
21472 UINTPTR_T='unsigned long'
21473elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
21474 UINTPTR_T='unsigned long long'
21475fi
cristy8b350f62009-11-15 23:12:43 +000021476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021477$as_echo "$UINTPTR_T" >&6; }
21478
21479
cristy8b350f62009-11-15 23:12:43 +000021480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000021481$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021483/* end confdefs.h. */
21484
21485int
21486main ()
21487{
21488{ const char *func = __func__; return(func != 0 ? 0 : 1); }
21489 ;
21490 return 0;
21491}
21492_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021493if ac_fn_c_try_compile "$LINENO"; then :
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000021495$as_echo "yes" >&6; }
21496else
cristy8b350f62009-11-15 23:12:43 +000021497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021498$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000021500$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021502/* end confdefs.h. */
21503
21504int
21505main ()
21506{
21507{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
21508 ;
21509 return 0;
21510}
21511_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021512if ac_fn_c_try_compile "$LINENO"; then :
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000021514$as_echo "yes" >&6; }
21515
cristy8b350f62009-11-15 23:12:43 +000021516$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021517
21518else
cristy8b350f62009-11-15 23:12:43 +000021519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021520$as_echo "no" >&6; }
21521
cristy8b350f62009-11-15 23:12:43 +000021522$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021523
21524fi
cristy3ed852e2009-09-05 21:47:34 +000021525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21526fi
cristy3ed852e2009-09-05 21:47:34 +000021527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21528
21529########
21530#
21531# Check for functions
21532#
21533########
cristy3ed852e2009-09-05 21:47:34 +000021534for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000021535do :
21536 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21537ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21538eval as_val=\$$as_ac_Header
21539 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021540 cat >>confdefs.h <<_ACEOF
21541#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21542_ACEOF
21543
21544fi
21545
21546done
21547
cristy3ed852e2009-09-05 21:47:34 +000021548for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021549do :
21550 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21551if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021552 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021553#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021554_ACEOF
21555
21556fi
21557done
21558
cristy8b350f62009-11-15 23:12:43 +000021559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000021560$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021561if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021562 $as_echo_n "(cached) " >&6
21563else
cristy8b350f62009-11-15 23:12:43 +000021564 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021565 magick_cv_func_mmap_fileio=no
21566else
cristy8b350f62009-11-15 23:12:43 +000021567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021568/* end confdefs.h. */
21569$ac_includes_default
21570/* malloc might have been renamed as rpl_malloc. */
21571#undef malloc
21572
21573/*
21574 This test is derived from GNU Autoconf's similar macro.
21575 The purpose of this test is to verify that files may be memory
21576 mapped, and that memory mapping and file I/O are coherent.
21577
21578 The test creates a test file, memory maps the file, updates
21579 the file using the memory map, and then reads the file using
21580 file I/O to verify that the file contains the updates.
21581*/
21582
21583#include <fcntl.h>
21584#include <sys/mman.h>
21585
21586#if !STDC_HEADERS && !HAVE_STDLIB_H
21587char *malloc ();
21588#endif
21589
21590/* This mess was copied from the GNU getpagesize.h. */
21591#if !HAVE_GETPAGESIZE
21592/* Assume that all systems that can run configure have sys/param.h. */
21593# if !HAVE_SYS_PARAM_H
21594# define HAVE_SYS_PARAM_H 1
21595# endif
21596
21597# ifdef _SC_PAGESIZE
21598# define getpagesize() sysconf(_SC_PAGESIZE)
21599# else /* no _SC_PAGESIZE */
21600# if HAVE_SYS_PARAM_H
21601# include <sys/param.h>
21602# ifdef EXEC_PAGESIZE
21603# define getpagesize() EXEC_PAGESIZE
21604# else /* no EXEC_PAGESIZE */
21605# ifdef NBPG
21606# define getpagesize() NBPG * CLSIZE
21607# ifndef CLSIZE
21608# define CLSIZE 1
21609# endif /* no CLSIZE */
21610# else /* no NBPG */
21611# ifdef NBPC
21612# define getpagesize() NBPC
21613# else /* no NBPC */
21614# ifdef PAGESIZE
21615# define getpagesize() PAGESIZE
21616# endif /* PAGESIZE */
21617# endif /* no NBPC */
21618# endif /* no NBPG */
21619# endif /* no EXEC_PAGESIZE */
21620# else /* no HAVE_SYS_PARAM_H */
21621# define getpagesize() 8192 /* punt totally */
21622# endif /* no HAVE_SYS_PARAM_H */
21623# endif /* no _SC_PAGESIZE */
21624
21625#endif /* no HAVE_GETPAGESIZE */
21626
21627int
21628main ()
21629{
21630 char *data, *data2, *data3;
21631 int i, pagesize;
21632 int fd;
21633
21634 pagesize = getpagesize ();
21635
21636 /* First, make a file with some known garbage in it. */
21637 data = (char *) malloc (pagesize);
21638 if (!data)
21639 exit (1);
21640 for (i = 0; i < pagesize; ++i)
21641 *(data + i) = rand ();
21642 umask (0);
21643 fd = creat ("conftest.mmap", 0600);
21644 if (fd < 0)
21645 exit (1);
21646 if (write (fd, data, pagesize) != pagesize)
21647 exit (1);
21648 close (fd);
21649
21650 /* Mmap the file as read/write/shared and verify that we see the
21651 same garbage. */
21652 fd = open ("conftest.mmap", O_RDWR);
21653 if (fd < 0)
21654 exit (1);
21655 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
21656 if (data2 == 0)
21657 exit (1);
21658 for (i = 0; i < pagesize; ++i)
21659 if (*(data + i) != *(data2 + i))
21660 exit (1);
21661
21662 /* Finally, make sure that changes to the mapped area
21663 percolate back to the file as seen by read(). */
21664 for (i = 0; i < pagesize; ++i)
21665 *(data2 + i) = *(data2 + i) + 1;
21666 data3 = (char *) malloc (pagesize);
21667 if (!data3)
21668 exit (1);
21669 if (read (fd, data3, pagesize) != pagesize)
21670 exit (1);
21671 for (i = 0; i < pagesize; ++i)
21672 if (*(data2 + i) != *(data3 + i))
21673 exit (1);
21674 close (fd);
21675 exit (0);
21676}
21677_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021678if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021679 magick_cv_func_mmap_fileio=yes
21680else
cristy8b350f62009-11-15 23:12:43 +000021681 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000021682fi
cristy8b350f62009-11-15 23:12:43 +000021683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21684 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021685fi
21686
cristy3ed852e2009-09-05 21:47:34 +000021687fi
cristy8b350f62009-11-15 23:12:43 +000021688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000021689$as_echo "$magick_cv_func_mmap_fileio" >&6; }
21690if test $magick_cv_func_mmap_fileio = yes; then
21691
cristy8b350f62009-11-15 23:12:43 +000021692$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021693
21694fi
21695rm -f conftest.mmap
21696
cristy8b350f62009-11-15 23:12:43 +000021697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021698$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021699if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021700 $as_echo_n "(cached) " >&6
21701else
cristy8b350f62009-11-15 23:12:43 +000021702 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021703 ac_cv_func_closedir_void=yes
21704else
cristy8b350f62009-11-15 23:12:43 +000021705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021706/* end confdefs.h. */
21707$ac_includes_default
21708#include <$ac_header_dirent>
21709#ifndef __cplusplus
21710int closedir ();
21711#endif
21712
21713int
21714main ()
21715{
21716return closedir (opendir (".")) != 0;
21717 ;
21718 return 0;
21719}
21720_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021721if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021722 ac_cv_func_closedir_void=no
21723else
cristy8b350f62009-11-15 23:12:43 +000021724 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000021725fi
cristy8b350f62009-11-15 23:12:43 +000021726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21727 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021728fi
21729
cristy3ed852e2009-09-05 21:47:34 +000021730fi
cristy8b350f62009-11-15 23:12:43 +000021731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021732$as_echo "$ac_cv_func_closedir_void" >&6; }
21733if test $ac_cv_func_closedir_void = yes; then
21734
cristy8b350f62009-11-15 23:12:43 +000021735$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021736
21737fi
21738
cristycd4c5312009-11-22 01:19:08 +000021739
21740
21741
21742 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000021743do :
21744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000021745ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21746"
cristy8b350f62009-11-15 23:12:43 +000021747eval as_val=\$$as_ac_Header
21748 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021749 cat >>confdefs.h <<_ACEOF
21750#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21751_ACEOF
21752
21753fi
21754
21755done
21756
cristycd4c5312009-11-22 01:19:08 +000021757
21758
21759
21760
21761
21762
21763
cristy3ed852e2009-09-05 21:47:34 +000021764for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021765do :
21766 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21767if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021768 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021769#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021770_ACEOF
21771
21772fi
21773done
21774
cristy8b350f62009-11-15 23:12:43 +000021775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000021776$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021777if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021778 $as_echo_n "(cached) " >&6
21779else
cristy8b350f62009-11-15 23:12:43 +000021780 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021781 ac_cv_func_mmap_fixed_mapped=no
21782else
cristy8b350f62009-11-15 23:12:43 +000021783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021784/* end confdefs.h. */
21785$ac_includes_default
21786/* malloc might have been renamed as rpl_malloc. */
21787#undef malloc
21788
21789/* Thanks to Mike Haertel and Jim Avera for this test.
21790 Here is a matrix of mmap possibilities:
21791 mmap private not fixed
21792 mmap private fixed at somewhere currently unmapped
21793 mmap private fixed at somewhere already mapped
21794 mmap shared not fixed
21795 mmap shared fixed at somewhere currently unmapped
21796 mmap shared fixed at somewhere already mapped
21797 For private mappings, we should verify that changes cannot be read()
21798 back from the file, nor mmap's back from the file at a different
21799 address. (There have been systems where private was not correctly
21800 implemented like the infamous i386 svr4.0, and systems where the
21801 VM page cache was not coherent with the file system buffer cache
21802 like early versions of FreeBSD and possibly contemporary NetBSD.)
21803 For shared mappings, we should conversely verify that changes get
21804 propagated back to all the places they're supposed to be.
21805
21806 Grep wants private fixed already mapped.
21807 The main things grep needs to know about mmap are:
21808 * does it exist and is it safe to write into the mmap'd area
21809 * how to use it (BSD variants) */
21810
21811#include <fcntl.h>
21812#include <sys/mman.h>
21813
21814#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21815char *malloc ();
21816#endif
21817
21818/* This mess was copied from the GNU getpagesize.h. */
21819#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000021820# ifdef _SC_PAGESIZE
21821# define getpagesize() sysconf(_SC_PAGESIZE)
21822# else /* no _SC_PAGESIZE */
21823# ifdef HAVE_SYS_PARAM_H
21824# include <sys/param.h>
21825# ifdef EXEC_PAGESIZE
21826# define getpagesize() EXEC_PAGESIZE
21827# else /* no EXEC_PAGESIZE */
21828# ifdef NBPG
21829# define getpagesize() NBPG * CLSIZE
21830# ifndef CLSIZE
21831# define CLSIZE 1
21832# endif /* no CLSIZE */
21833# else /* no NBPG */
21834# ifdef NBPC
21835# define getpagesize() NBPC
21836# else /* no NBPC */
21837# ifdef PAGESIZE
21838# define getpagesize() PAGESIZE
21839# endif /* PAGESIZE */
21840# endif /* no NBPC */
21841# endif /* no NBPG */
21842# endif /* no EXEC_PAGESIZE */
21843# else /* no HAVE_SYS_PARAM_H */
21844# define getpagesize() 8192 /* punt totally */
21845# endif /* no HAVE_SYS_PARAM_H */
21846# endif /* no _SC_PAGESIZE */
21847
21848#endif /* no HAVE_GETPAGESIZE */
21849
21850int
21851main ()
21852{
21853 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000021854 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000021855 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000021856 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000021857
21858 pagesize = getpagesize ();
21859
21860 /* First, make a file with some known garbage in it. */
21861 data = (char *) malloc (pagesize);
21862 if (!data)
21863 return 1;
21864 for (i = 0; i < pagesize; ++i)
21865 *(data + i) = rand ();
21866 umask (0);
21867 fd = creat ("conftest.mmap", 0600);
21868 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021869 return 2;
cristy3ed852e2009-09-05 21:47:34 +000021870 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021871 return 3;
cristy3ed852e2009-09-05 21:47:34 +000021872 close (fd);
21873
cristycd4c5312009-11-22 01:19:08 +000021874 /* Next, check that the tail of a page is zero-filled. File must have
21875 non-zero length, otherwise we risk SIGBUS for entire page. */
21876 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21877 if (fd2 < 0)
21878 return 4;
cristyc54f5d42009-11-27 21:36:31 +000021879 cdata2 = "";
21880 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000021881 return 5;
cristyc54f5d42009-11-27 21:36:31 +000021882 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000021883 if (data2 == MAP_FAILED)
21884 return 6;
21885 for (i = 0; i < pagesize; ++i)
21886 if (*(data2 + i))
21887 return 7;
21888 close (fd2);
21889 if (munmap (data2, pagesize))
21890 return 8;
21891
cristy3ed852e2009-09-05 21:47:34 +000021892 /* Next, try to mmap the file at a fixed address which already has
21893 something else allocated at it. If we can, also make sure that
21894 we see the same garbage. */
21895 fd = open ("conftest.mmap", O_RDWR);
21896 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021897 return 9;
cristy3ed852e2009-09-05 21:47:34 +000021898 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21899 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000021900 return 10;
cristy3ed852e2009-09-05 21:47:34 +000021901 for (i = 0; i < pagesize; ++i)
21902 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000021903 return 11;
cristy3ed852e2009-09-05 21:47:34 +000021904
21905 /* Finally, make sure that changes to the mapped area do not
21906 percolate back to the file as seen by read(). (This is a bug on
21907 some variants of i386 svr4.0.) */
21908 for (i = 0; i < pagesize; ++i)
21909 *(data2 + i) = *(data2 + i) + 1;
21910 data3 = (char *) malloc (pagesize);
21911 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000021912 return 12;
cristy3ed852e2009-09-05 21:47:34 +000021913 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021914 return 13;
cristy3ed852e2009-09-05 21:47:34 +000021915 for (i = 0; i < pagesize; ++i)
21916 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000021917 return 14;
cristy3ed852e2009-09-05 21:47:34 +000021918 close (fd);
21919 return 0;
21920}
21921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021922if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021923 ac_cv_func_mmap_fixed_mapped=yes
21924else
cristy8b350f62009-11-15 23:12:43 +000021925 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000021926fi
cristy8b350f62009-11-15 23:12:43 +000021927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21928 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021929fi
21930
cristy3ed852e2009-09-05 21:47:34 +000021931fi
cristy8b350f62009-11-15 23:12:43 +000021932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000021933$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21934if test $ac_cv_func_mmap_fixed_mapped = yes; then
21935
cristy8b350f62009-11-15 23:12:43 +000021936$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021937
21938fi
cristycd4c5312009-11-22 01:19:08 +000021939rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000021940
cristy3ed852e2009-09-05 21:47:34 +000021941for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000021942do :
21943 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21944if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021945 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021946#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000021947_ACEOF
21948
21949fi
21950
21951done
21952
cristy3ed852e2009-09-05 21:47:34 +000021953for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000021954do :
21955 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21956ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21957eval as_val=\$$as_ac_var
21958 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021959 cat >>confdefs.h <<_ACEOF
21960#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21961_ACEOF
21962
21963fi
21964done
21965
21966if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021968$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021969if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021970 $as_echo_n "(cached) " >&6
21971else
cristy8b350f62009-11-15 23:12:43 +000021972 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021973 ac_cv_func_fork_works=cross
21974else
cristy8b350f62009-11-15 23:12:43 +000021975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021976/* end confdefs.h. */
21977$ac_includes_default
21978int
21979main ()
21980{
21981
21982 /* By Ruediger Kuhlmann. */
21983 return fork () < 0;
21984
21985 ;
21986 return 0;
21987}
21988_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021989if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021990 ac_cv_func_fork_works=yes
21991else
cristy8b350f62009-11-15 23:12:43 +000021992 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021993fi
cristy8b350f62009-11-15 23:12:43 +000021994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21995 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021996fi
21997
cristy3ed852e2009-09-05 21:47:34 +000021998fi
cristy8b350f62009-11-15 23:12:43 +000021999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022000$as_echo "$ac_cv_func_fork_works" >&6; }
22001
22002else
22003 ac_cv_func_fork_works=$ac_cv_func_fork
22004fi
22005if test "x$ac_cv_func_fork_works" = xcross; then
22006 case $host in
22007 *-*-amigaos* | *-*-msdosdjgpp*)
22008 # Override, as these systems have only a dummy fork() stub
22009 ac_cv_func_fork_works=no
22010 ;;
22011 *)
22012 ac_cv_func_fork_works=yes
22013 ;;
22014 esac
cristy8b350f62009-11-15 23:12:43 +000022015 { $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 +000022016$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22017fi
22018ac_cv_func_vfork_works=$ac_cv_func_vfork
22019if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022021$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022022if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022023 $as_echo_n "(cached) " >&6
22024else
cristy8b350f62009-11-15 23:12:43 +000022025 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022026 ac_cv_func_vfork_works=cross
22027else
cristy8b350f62009-11-15 23:12:43 +000022028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022029/* end confdefs.h. */
22030/* Thanks to Paul Eggert for this test. */
22031$ac_includes_default
22032#include <sys/wait.h>
22033#ifdef HAVE_VFORK_H
22034# include <vfork.h>
22035#endif
22036/* On some sparc systems, changes by the child to local and incoming
22037 argument registers are propagated back to the parent. The compiler
22038 is told about this with #include <vfork.h>, but some compilers
22039 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22040 static variable whose address is put into a register that is
22041 clobbered by the vfork. */
22042static void
22043#ifdef __cplusplus
22044sparc_address_test (int arg)
22045# else
22046sparc_address_test (arg) int arg;
22047#endif
22048{
22049 static pid_t child;
22050 if (!child) {
22051 child = vfork ();
22052 if (child < 0) {
22053 perror ("vfork");
22054 _exit(2);
22055 }
22056 if (!child) {
22057 arg = getpid();
22058 write(-1, "", 0);
22059 _exit (arg);
22060 }
22061 }
22062}
22063
22064int
22065main ()
22066{
22067 pid_t parent = getpid ();
22068 pid_t child;
22069
22070 sparc_address_test (0);
22071
22072 child = vfork ();
22073
22074 if (child == 0) {
22075 /* Here is another test for sparc vfork register problems. This
22076 test uses lots of local variables, at least as many local
22077 variables as main has allocated so far including compiler
22078 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22079 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22080 reuse the register of parent for one of the local variables,
22081 since it will think that parent can't possibly be used any more
22082 in this routine. Assigning to the local variable will thus
22083 munge parent in the parent process. */
22084 pid_t
22085 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22086 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22087 /* Convince the compiler that p..p7 are live; otherwise, it might
22088 use the same hardware register for all 8 local variables. */
22089 if (p != p1 || p != p2 || p != p3 || p != p4
22090 || p != p5 || p != p6 || p != p7)
22091 _exit(1);
22092
22093 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22094 from child file descriptors. If the child closes a descriptor
22095 before it execs or exits, this munges the parent's descriptor
22096 as well. Test for this by closing stdout in the child. */
22097 _exit(close(fileno(stdout)) != 0);
22098 } else {
22099 int status;
22100 struct stat st;
22101
22102 while (wait(&status) != child)
22103 ;
22104 return (
22105 /* Was there some problem with vforking? */
22106 child < 0
22107
22108 /* Did the child fail? (This shouldn't happen.) */
22109 || status
22110
22111 /* Did the vfork/compiler bug occur? */
22112 || parent != getpid()
22113
22114 /* Did the file descriptor bug occur? */
22115 || fstat(fileno(stdout), &st) != 0
22116 );
22117 }
22118}
22119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022120if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022121 ac_cv_func_vfork_works=yes
22122else
cristy8b350f62009-11-15 23:12:43 +000022123 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022124fi
cristy8b350f62009-11-15 23:12:43 +000022125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22126 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022127fi
22128
cristy3ed852e2009-09-05 21:47:34 +000022129fi
cristy8b350f62009-11-15 23:12:43 +000022130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022131$as_echo "$ac_cv_func_vfork_works" >&6; }
22132
22133fi;
22134if test "x$ac_cv_func_fork_works" = xcross; then
22135 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022136 { $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 +000022137$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22138fi
22139
22140if test "x$ac_cv_func_vfork_works" = xyes; then
22141
cristy8b350f62009-11-15 23:12:43 +000022142$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022143
22144else
22145
cristy8b350f62009-11-15 23:12:43 +000022146$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022147
22148fi
22149if test "x$ac_cv_func_fork_works" = xyes; then
22150
cristy8b350f62009-11-15 23:12:43 +000022151$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022152
22153fi
22154
cristy8b350f62009-11-15 23:12:43 +000022155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022156$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022157if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022158 $as_echo_n "(cached) " >&6
22159else
cristy8b350f62009-11-15 23:12:43 +000022160 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022161 ac_cv_func_memcmp_working=no
22162else
cristy8b350f62009-11-15 23:12:43 +000022163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022164/* end confdefs.h. */
22165$ac_includes_default
22166int
22167main ()
22168{
22169
22170 /* Some versions of memcmp are not 8-bit clean. */
22171 char c0 = '\100', c1 = '\200', c2 = '\201';
22172 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22173 return 1;
22174
22175 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22176 or more and with at least one buffer not starting on a 4-byte boundary.
22177 William Lewis provided this test program. */
22178 {
22179 char foo[21];
22180 char bar[21];
22181 int i;
22182 for (i = 0; i < 4; i++)
22183 {
22184 char *a = foo + i;
22185 char *b = bar + i;
22186 strcpy (a, "--------01111111");
22187 strcpy (b, "--------10000000");
22188 if (memcmp (a, b, 16) >= 0)
22189 return 1;
22190 }
22191 return 0;
22192 }
22193
22194 ;
22195 return 0;
22196}
22197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022198if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022199 ac_cv_func_memcmp_working=yes
22200else
cristy8b350f62009-11-15 23:12:43 +000022201 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022202fi
cristy8b350f62009-11-15 23:12:43 +000022203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22204 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022205fi
22206
cristy3ed852e2009-09-05 21:47:34 +000022207fi
cristy8b350f62009-11-15 23:12:43 +000022208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022209$as_echo "$ac_cv_func_memcmp_working" >&6; }
22210test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22211 *" memcmp.$ac_objext "* ) ;;
22212 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22213 ;;
22214esac
22215
22216
cristy3ed852e2009-09-05 21:47:34 +000022217for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022218do :
22219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22220ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22221eval as_val=\$$as_ac_Header
22222 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022223 cat >>confdefs.h <<_ACEOF
22224#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22225_ACEOF
22226
22227fi
22228
22229done
22230
cristy8b350f62009-11-15 23:12:43 +000022231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022232$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022233if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022234 $as_echo_n "(cached) " >&6
22235else
22236 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22237 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22238 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022240/* end confdefs.h. */
22241$ac_includes_default
22242#ifdef HAVE_SYS_SELECT_H
22243# include <sys/select.h>
22244#endif
22245#ifdef HAVE_SYS_SOCKET_H
22246# include <sys/socket.h>
22247#endif
22248
22249int
22250main ()
22251{
22252extern int select ($ac_arg1,
22253 $ac_arg234, $ac_arg234, $ac_arg234,
22254 $ac_arg5);
22255 ;
22256 return 0;
22257}
22258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022259if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022260 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022261fi
cristy3ed852e2009-09-05 21:47:34 +000022262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22263 done
22264 done
22265done
22266# Provide a safe default value.
22267: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22268
22269fi
cristy8b350f62009-11-15 23:12:43 +000022270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022271$as_echo "$ac_cv_func_select_args" >&6; }
22272ac_save_IFS=$IFS; IFS=','
22273set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22274IFS=$ac_save_IFS
22275shift
22276
22277cat >>confdefs.h <<_ACEOF
22278#define SELECT_TYPE_ARG1 $1
22279_ACEOF
22280
22281
22282cat >>confdefs.h <<_ACEOF
22283#define SELECT_TYPE_ARG234 ($2)
22284_ACEOF
22285
22286
22287cat >>confdefs.h <<_ACEOF
22288#define SELECT_TYPE_ARG5 ($3)
22289_ACEOF
22290
22291rm -f conftest*
22292
cristy8b350f62009-11-15 23:12:43 +000022293if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022294 $as_echo_n "(cached) " >&6
22295else
22296 ac_cv_func_setvbuf_reversed=no
22297fi
22298
22299
cristy8b350f62009-11-15 23:12:43 +000022300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022301$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022302if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022303 $as_echo_n "(cached) " >&6
22304else
cristy8b350f62009-11-15 23:12:43 +000022305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022306/* end confdefs.h. */
22307#include <sys/types.h>
22308#include <signal.h>
22309
22310int
22311main ()
22312{
22313return *(signal (0, 0)) (0) == 1;
22314 ;
22315 return 0;
22316}
22317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022318if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022319 ac_cv_type_signal=int
22320else
cristy8b350f62009-11-15 23:12:43 +000022321 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022322fi
cristy3ed852e2009-09-05 21:47:34 +000022323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22324fi
cristy8b350f62009-11-15 23:12:43 +000022325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022326$as_echo "$ac_cv_type_signal" >&6; }
22327
22328cat >>confdefs.h <<_ACEOF
22329#define RETSIGTYPE $ac_cv_type_signal
22330_ACEOF
22331
22332
cristy8b350f62009-11-15 23:12:43 +000022333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022334$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022335if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022336 $as_echo_n "(cached) " >&6
22337else
cristy8b350f62009-11-15 23:12:43 +000022338 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022339 ac_cv_func_strtod=no
22340else
cristy8b350f62009-11-15 23:12:43 +000022341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022342/* end confdefs.h. */
22343
22344$ac_includes_default
22345#ifndef strtod
22346double strtod ();
22347#endif
22348int
22349main()
22350{
22351 {
22352 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22353 char *string = " +69";
22354 char *term;
22355 double value;
22356 value = strtod (string, &term);
22357 if (value != 69 || term != (string + 4))
22358 return 1;
22359 }
22360
22361 {
22362 /* Under Solaris 2.4, strtod returns the wrong value for the
22363 terminating character under some conditions. */
22364 char *string = "NaN";
22365 char *term;
22366 strtod (string, &term);
22367 if (term != string && *(term - 1) == 0)
22368 return 1;
22369 }
22370 return 0;
22371}
22372
22373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022374if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022375 ac_cv_func_strtod=yes
22376else
cristy8b350f62009-11-15 23:12:43 +000022377 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022378fi
cristy8b350f62009-11-15 23:12:43 +000022379rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22380 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022381fi
22382
cristy3ed852e2009-09-05 21:47:34 +000022383fi
cristy8b350f62009-11-15 23:12:43 +000022384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022385$as_echo "$ac_cv_func_strtod" >&6; }
22386if test $ac_cv_func_strtod = no; then
22387 case " $LIBOBJS " in
22388 *" strtod.$ac_objext "* ) ;;
22389 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22390 ;;
22391esac
22392
cristy8b350f62009-11-15 23:12:43 +000022393ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22394if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022395
cristy3ed852e2009-09-05 21:47:34 +000022396fi
22397
cristy3ed852e2009-09-05 21:47:34 +000022398if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000022399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022400$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022401if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022402 $as_echo_n "(cached) " >&6
22403else
22404 ac_check_lib_save_LIBS=$LIBS
22405LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022407/* end confdefs.h. */
22408
22409/* Override any GCC internal prototype to avoid an error.
22410 Use char because int might match the return type of a GCC
22411 builtin and then its argument prototype would still apply. */
22412#ifdef __cplusplus
22413extern "C"
22414#endif
22415char pow ();
22416int
22417main ()
22418{
22419return pow ();
22420 ;
22421 return 0;
22422}
22423_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022424if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022425 ac_cv_lib_m_pow=yes
22426else
cristy8b350f62009-11-15 23:12:43 +000022427 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000022428fi
cristy8b350f62009-11-15 23:12:43 +000022429rm -f core conftest.err conftest.$ac_objext \
22430 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022431LIBS=$ac_check_lib_save_LIBS
22432fi
cristy8b350f62009-11-15 23:12:43 +000022433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022434$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022435if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022436 POW_LIB=-lm
22437else
cristy8b350f62009-11-15 23:12:43 +000022438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022439$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
22440fi
22441
22442fi
22443
22444fi
22445
cristy3ed852e2009-09-05 21:47:34 +000022446for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000022447do :
22448 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
22449if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022450 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022451#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000022452_ACEOF
22453
cristy8b350f62009-11-15 23:12:43 +000022454ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
22455if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022456
cristy8b350f62009-11-15 23:12:43 +000022457$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022458
22459fi
22460
22461fi
22462done
22463
22464
22465
cristy393bbe52010-01-11 16:32:56 +000022466for ac_func in _exit atexit clock directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000022467do :
22468 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22469ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22470eval as_val=\$$as_ac_var
22471 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022472 cat >>confdefs.h <<_ACEOF
22473#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22474_ACEOF
22475
22476fi
22477done
22478
22479
cristye43a45e2009-09-28 14:49:00 +000022480#
22481# Check for clock_gettime().
22482#
cristy8b350f62009-11-15 23:12:43 +000022483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000022484$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022485if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000022486 $as_echo_n "(cached) " >&6
22487else
22488 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000022490/* end confdefs.h. */
22491
22492/* Override any GCC internal prototype to avoid an error.
22493 Use char because int might match the return type of a GCC
22494 builtin and then its argument prototype would still apply. */
22495#ifdef __cplusplus
22496extern "C"
22497#endif
22498char clock_gettime ();
22499int
22500main ()
22501{
22502return clock_gettime ();
22503 ;
22504 return 0;
22505}
22506_ACEOF
22507for ac_lib in '' rt; do
22508 if test -z "$ac_lib"; then
22509 ac_res="none required"
22510 else
22511 ac_res=-l$ac_lib
22512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22513 fi
cristy8b350f62009-11-15 23:12:43 +000022514 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000022515 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000022516fi
cristy8b350f62009-11-15 23:12:43 +000022517rm -f core conftest.err conftest.$ac_objext \
22518 conftest$ac_exeext
22519 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000022520 break
22521fi
22522done
cristy8b350f62009-11-15 23:12:43 +000022523if test "${ac_cv_search_clock_gettime+set}" = set; then :
22524
cristye43a45e2009-09-28 14:49:00 +000022525else
22526 ac_cv_search_clock_gettime=no
22527fi
22528rm conftest.$ac_ext
22529LIBS=$ac_func_search_save_LIBS
22530fi
cristy8b350f62009-11-15 23:12:43 +000022531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000022532$as_echo "$ac_cv_search_clock_gettime" >&6; }
22533ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000022534if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000022535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22536
22537
cristy8b350f62009-11-15 23:12:43 +000022538$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000022539
cristy8b350f62009-11-15 23:12:43 +000022540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000022541$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000022543/* end confdefs.h. */
22544#include <time.h>
22545int
22546main ()
22547{
22548clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000022549 ;
22550 return 0;
22551}
22552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022553if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000022554
cristy8b350f62009-11-15 23:12:43 +000022555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000022556$as_echo "yes" >&6; }
22557
cristy8b350f62009-11-15 23:12:43 +000022558$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000022559
22560
22561else
cristy8b350f62009-11-15 23:12:43 +000022562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000022563$as_echo "no" >&6; }
22564
22565fi
cristye43a45e2009-09-28 14:49:00 +000022566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22567
22568else
22569
cristy8b350f62009-11-15 23:12:43 +000022570 for ac_func in gettimeofday ftime
22571do :
22572 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22573ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22574eval as_val=\$$as_ac_var
22575 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000022576 cat >>confdefs.h <<_ACEOF
22577#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22578_ACEOF
22579 break
22580fi
22581done
22582
22583
22584
22585fi
22586
22587
cristy3ed852e2009-09-05 21:47:34 +000022588########
22589#
22590# Check for function prototypes
22591#
22592########
22593
cristy8b350f62009-11-15 23:12:43 +000022594ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000022595#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000022596"
22597if test "x$ac_cv_have_decl_pread" = x""yes; then :
22598 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022599else
cristy8b350f62009-11-15 23:12:43 +000022600 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022601fi
22602
cristy3ed852e2009-09-05 21:47:34 +000022603cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022604#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022605_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022606ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000022607#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000022608"
22609if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
22610 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022611else
cristy8b350f62009-11-15 23:12:43 +000022612 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022613fi
22614
cristy3ed852e2009-09-05 21:47:34 +000022615cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022616#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022617_ACEOF
22618
22619
cristy8b350f62009-11-15 23:12:43 +000022620ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000022621#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000022622"
22623if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
22624 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022625else
cristy8b350f62009-11-15 23:12:43 +000022626 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022627fi
22628
cristy3ed852e2009-09-05 21:47:34 +000022629cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022630#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022631_ACEOF
22632
22633
cristy8b350f62009-11-15 23:12:43 +000022634ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000022635#include <stdio.h>
22636#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000022637"
22638if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
22639 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022640else
cristy8b350f62009-11-15 23:12:43 +000022641 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022642fi
22643
cristy3ed852e2009-09-05 21:47:34 +000022644cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022645#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022646_ACEOF
22647
22648
cristy3ed852e2009-09-05 21:47:34 +000022649########
22650#
22651# C++ Support Tests (For Magick++)
22652#
22653########
22654have_magick_plus_plus='no'
22655if test "$with_magick_plus_plus" = 'yes'; then
22656 OLIBS="$LIBS"
22657 LIBS=''
22658 ac_ext=cpp
22659ac_cpp='$CXXCPP $CPPFLAGS'
22660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22663
22664
22665 # Full set of headers used...
22666 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
22667 # functional iomanip iosfwd iostream iterator list string strstream utility
22668 ac_ext=cpp
22669ac_cpp='$CXXCPP $CPPFLAGS'
22670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22673
22674 ac_ext=cpp
22675ac_cpp='$CXXCPP $CPPFLAGS'
22676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22679if test -z "$CXX"; then
22680 if test -n "$CCC"; then
22681 CXX=$CCC
22682 else
22683 if test -n "$ac_tool_prefix"; then
22684 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22685 do
22686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22687set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022689$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022690if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022691 $as_echo_n "(cached) " >&6
22692else
22693 if test -n "$CXX"; then
22694 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22695else
22696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22697for as_dir in $PATH
22698do
22699 IFS=$as_save_IFS
22700 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22703 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022705 break 2
22706 fi
22707done
cristy8b350f62009-11-15 23:12:43 +000022708 done
cristy3ed852e2009-09-05 21:47:34 +000022709IFS=$as_save_IFS
22710
22711fi
22712fi
22713CXX=$ac_cv_prog_CXX
22714if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022716$as_echo "$CXX" >&6; }
22717else
cristy8b350f62009-11-15 23:12:43 +000022718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022719$as_echo "no" >&6; }
22720fi
22721
22722
22723 test -n "$CXX" && break
22724 done
22725fi
22726if test -z "$CXX"; then
22727 ac_ct_CXX=$CXX
22728 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22729do
22730 # Extract the first word of "$ac_prog", so it can be a program name with args.
22731set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022733$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022734if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022735 $as_echo_n "(cached) " >&6
22736else
22737 if test -n "$ac_ct_CXX"; then
22738 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22739else
22740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22741for as_dir in $PATH
22742do
22743 IFS=$as_save_IFS
22744 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022745 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22747 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022749 break 2
22750 fi
22751done
cristy8b350f62009-11-15 23:12:43 +000022752 done
cristy3ed852e2009-09-05 21:47:34 +000022753IFS=$as_save_IFS
22754
22755fi
22756fi
22757ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22758if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022760$as_echo "$ac_ct_CXX" >&6; }
22761else
cristy8b350f62009-11-15 23:12:43 +000022762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022763$as_echo "no" >&6; }
22764fi
22765
22766
22767 test -n "$ac_ct_CXX" && break
22768done
22769
22770 if test "x$ac_ct_CXX" = x; then
22771 CXX="g++"
22772 else
22773 case $cross_compiling:$ac_tool_warned in
22774yes:)
cristy8b350f62009-11-15 23:12:43 +000022775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000022776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22777ac_tool_warned=yes ;;
22778esac
22779 CXX=$ac_ct_CXX
22780 fi
22781fi
22782
22783 fi
22784fi
22785# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000022786$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000022787set X $ac_compile
22788ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000022789for ac_option in --version -v -V -qversion; do
22790 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000022791case "(($ac_try" in
22792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793 *) ac_try_echo=$ac_try;;
22794esac
cristy8b350f62009-11-15 23:12:43 +000022795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22796$as_echo "$ac_try_echo"; } >&5
22797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000022798 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000022799 if test -s conftest.err; then
22800 sed '10a\
22801... rest of stderr output deleted ...
22802 10q' conftest.err >conftest.er1
22803 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000022804 fi
cristycd4c5312009-11-22 01:19:08 +000022805 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000022806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22807 test $ac_status = 0; }
22808done
cristy3ed852e2009-09-05 21:47:34 +000022809
cristy8b350f62009-11-15 23:12:43 +000022810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000022811$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022812if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022813 $as_echo_n "(cached) " >&6
22814else
cristy8b350f62009-11-15 23:12:43 +000022815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022816/* end confdefs.h. */
22817
22818int
22819main ()
22820{
22821#ifndef __GNUC__
22822 choke me
22823#endif
22824
22825 ;
22826 return 0;
22827}
22828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022829if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022830 ac_compiler_gnu=yes
22831else
cristy8b350f62009-11-15 23:12:43 +000022832 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000022833fi
cristy3ed852e2009-09-05 21:47:34 +000022834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22835ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22836
22837fi
cristy8b350f62009-11-15 23:12:43 +000022838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000022839$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22840if test $ac_compiler_gnu = yes; then
22841 GXX=yes
22842else
22843 GXX=
22844fi
22845ac_test_CXXFLAGS=${CXXFLAGS+set}
22846ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000022847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022848$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022849if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022850 $as_echo_n "(cached) " >&6
22851else
22852 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22853 ac_cxx_werror_flag=yes
22854 ac_cv_prog_cxx_g=no
22855 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022857/* end confdefs.h. */
22858
22859int
22860main ()
22861{
22862
22863 ;
22864 return 0;
22865}
22866_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022867if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022868 ac_cv_prog_cxx_g=yes
22869else
cristy8b350f62009-11-15 23:12:43 +000022870 CXXFLAGS=""
22871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022872/* end confdefs.h. */
22873
22874int
22875main ()
22876{
22877
22878 ;
22879 return 0;
22880}
22881_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022882if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022883
cristy8b350f62009-11-15 23:12:43 +000022884else
22885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000022886 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022888/* end confdefs.h. */
22889
22890int
22891main ()
22892{
22893
22894 ;
22895 return 0;
22896}
22897_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022898if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022899 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000022900fi
cristy3ed852e2009-09-05 21:47:34 +000022901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22902fi
cristy3ed852e2009-09-05 21:47:34 +000022903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904fi
cristy3ed852e2009-09-05 21:47:34 +000022905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22906 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22907fi
cristy8b350f62009-11-15 23:12:43 +000022908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022909$as_echo "$ac_cv_prog_cxx_g" >&6; }
22910if test "$ac_test_CXXFLAGS" = set; then
22911 CXXFLAGS=$ac_save_CXXFLAGS
22912elif test $ac_cv_prog_cxx_g = yes; then
22913 if test "$GXX" = yes; then
22914 CXXFLAGS="-g -O2"
22915 else
22916 CXXFLAGS="-g"
22917 fi
22918else
22919 if test "$GXX" = yes; then
22920 CXXFLAGS="-O2"
22921 else
22922 CXXFLAGS=
22923 fi
22924fi
22925ac_ext=cpp
22926ac_cpp='$CXXCPP $CPPFLAGS'
22927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22930
22931depcc="$CXX" am_compiler_list=
22932
cristy8b350f62009-11-15 23:12:43 +000022933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022934$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022935if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022936 $as_echo_n "(cached) " >&6
22937else
22938 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22939 # We make a subdir and do the tests there. Otherwise we can end up
22940 # making bogus files that we don't know about and never remove. For
22941 # instance it was reported that on HP-UX the gcc test will end up
22942 # making a dummy file named `D' -- because `-MD' means `put the output
22943 # in D'.
22944 mkdir conftest.dir
22945 # Copy depcomp to subdir because otherwise we won't find it if we're
22946 # using a relative directory.
22947 cp "$am_depcomp" conftest.dir
22948 cd conftest.dir
22949 # We will build objects and dependencies in a subdirectory because
22950 # it helps to detect inapplicable dependency modes. For instance
22951 # both Tru64's cc and ICC support -MD to output dependencies as a
22952 # side effect of compilation, but ICC will put the dependencies in
22953 # the current directory while Tru64 will put them in the object
22954 # directory.
22955 mkdir sub
22956
22957 am_cv_CXX_dependencies_compiler_type=none
22958 if test "$am_compiler_list" = ""; then
22959 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22960 fi
22961 am__universal=false
22962 case " $depcc " in #(
22963 *\ -arch\ *\ -arch\ *) am__universal=true ;;
22964 esac
22965
22966 for depmode in $am_compiler_list; do
22967 # Setup a source with many dependencies, because some compilers
22968 # like to wrap large dependency lists on column 80 (with \), and
22969 # we should not choose a depcomp mode which is confused by this.
22970 #
22971 # We need to recreate these files for each test, as the compiler may
22972 # overwrite some of them when testing with obscure command lines.
22973 # This happens at least with the AIX C compiler.
22974 : > sub/conftest.c
22975 for i in 1 2 3 4 5 6; do
22976 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22977 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22978 # Solaris 8's {/usr,}/bin/sh.
22979 touch sub/conftst$i.h
22980 done
22981 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22982
22983 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22984 # mode. It turns out that the SunPro C++ compiler does not properly
22985 # handle `-M -o', and we need to detect this. Also, some Intel
22986 # versions had trouble with output in subdirs
22987 am__obj=sub/conftest.${OBJEXT-o}
22988 am__minus_obj="-o $am__obj"
22989 case $depmode in
22990 gcc)
22991 # This depmode causes a compiler race in universal mode.
22992 test "$am__universal" = false || continue
22993 ;;
22994 nosideeffect)
22995 # after this tag, mechanisms are not by side-effect, so they'll
22996 # only be used when explicitly requested
22997 if test "x$enable_dependency_tracking" = xyes; then
22998 continue
22999 else
23000 break
23001 fi
23002 ;;
23003 msvisualcpp | msvcmsys)
23004 # This compiler won't grok `-c -o', but also, the minuso test has
23005 # not run yet. These depmodes are late enough in the game, and
23006 # so weak that their functioning should not be impacted.
23007 am__obj=conftest.${OBJEXT-o}
23008 am__minus_obj=
23009 ;;
23010 none) break ;;
23011 esac
23012 if depmode=$depmode \
23013 source=sub/conftest.c object=$am__obj \
23014 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23015 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23016 >/dev/null 2>conftest.err &&
23017 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23018 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23019 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23020 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23021 # icc doesn't choke on unknown options, it will just issue warnings
23022 # or remarks (even with -Werror). So we grep stderr for any message
23023 # that says an option was ignored or not supported.
23024 # When given -MP, icc 7.0 and 7.1 complain thusly:
23025 # icc: Command line warning: ignoring option '-M'; no argument required
23026 # The diagnosis changed in icc 8.0:
23027 # icc: Command line remark: option '-MP' not supported
23028 if (grep 'ignoring option' conftest.err ||
23029 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23030 am_cv_CXX_dependencies_compiler_type=$depmode
23031 break
23032 fi
23033 fi
23034 done
23035
23036 cd ..
23037 rm -rf conftest.dir
23038else
23039 am_cv_CXX_dependencies_compiler_type=none
23040fi
23041
23042fi
cristy8b350f62009-11-15 23:12:43 +000023043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023044$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23045CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23046
23047 if
23048 test "x$enable_dependency_tracking" != xno \
23049 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23050 am__fastdepCXX_TRUE=
23051 am__fastdepCXX_FALSE='#'
23052else
23053 am__fastdepCXX_TRUE='#'
23054 am__fastdepCXX_FALSE=
23055fi
23056
23057
cristy8b350f62009-11-15 23:12:43 +000023058 { $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 +000023059$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023060if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023061 $as_echo_n "(cached) " >&6
23062else
23063
23064 ac_ext=cpp
23065ac_cpp='$CXXCPP $CPPFLAGS'
23066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23069
cristy8b350f62009-11-15 23:12:43 +000023070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023071/* end confdefs.h. */
23072
23073int f(int x){return 1;}
23074int f(char x){return 1;}
23075int f(bool x){return 1;}
23076
23077int
23078main ()
23079{
23080bool b = true; return f(b);
23081 ;
23082 return 0;
23083}
23084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023085if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023086 ac_cv_cxx_have_bool=yes
23087else
cristy8b350f62009-11-15 23:12:43 +000023088 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023089fi
cristy3ed852e2009-09-05 21:47:34 +000023090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23091 ac_ext=cpp
23092ac_cpp='$CXXCPP $CPPFLAGS'
23093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23096
23097
23098fi
cristy8b350f62009-11-15 23:12:43 +000023099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000023100$as_echo "$ac_cv_cxx_have_bool" >&6; }
23101if test "$ac_cv_cxx_have_bool" = yes; then
23102
cristy8b350f62009-11-15 23:12:43 +000023103$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023104
23105fi
23106
cristy8b350f62009-11-15 23:12:43 +000023107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023108$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023109if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023110 $as_echo_n "(cached) " >&6
23111else
23112
23113 ac_ext=cpp
23114ac_cpp='$CXXCPP $CPPFLAGS'
23115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23118
cristy8b350f62009-11-15 23:12:43 +000023119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023120/* end confdefs.h. */
23121namespace Outer { namespace Inner { int i = 0; }}
23122int
23123main ()
23124{
23125using namespace Outer::Inner; return i;
23126 ;
23127 return 0;
23128}
23129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023130if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023131 ac_cv_cxx_have_namespaces=yes
23132else
cristy8b350f62009-11-15 23:12:43 +000023133 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023134fi
cristy3ed852e2009-09-05 21:47:34 +000023135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23136 ac_ext=cpp
23137ac_cpp='$CXXCPP $CPPFLAGS'
23138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23141
23142
23143fi
cristy8b350f62009-11-15 23:12:43 +000023144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023145$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
23146if test "$ac_cv_cxx_have_namespaces" = yes; then
23147
cristy8b350f62009-11-15 23:12:43 +000023148$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023149
23150fi
23151
cristy8b350f62009-11-15 23:12:43 +000023152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000023153$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023154if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023155 $as_echo_n "(cached) " >&6
23156else
23157
23158 ac_ext=cpp
23159ac_cpp='$CXXCPP $CPPFLAGS'
23160ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23161ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23162ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23163
cristy8b350f62009-11-15 23:12:43 +000023164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023165/* end confdefs.h. */
23166#include <iostream>
23167 std::istream& is = std::cin;
23168
23169int
23170main ()
23171{
23172return 0;
23173 ;
23174 return 0;
23175}
23176_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023177if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023178 ac_cv_cxx_have_std_namespace=yes
23179else
cristy8b350f62009-11-15 23:12:43 +000023180 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023181fi
cristy3ed852e2009-09-05 21:47:34 +000023182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23183 ac_ext=cpp
23184ac_cpp='$CXXCPP $CPPFLAGS'
23185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23188
23189
23190fi
cristy8b350f62009-11-15 23:12:43 +000023191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000023192$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
23193if test "$ac_cv_cxx_have_std_namespace" = yes; then
23194
cristy8b350f62009-11-15 23:12:43 +000023195$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023196
23197fi
23198
cristy8b350f62009-11-15 23:12:43 +000023199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023200$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023201if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023202 $as_echo_n "(cached) " >&6
23203else
23204
23205
23206 ac_ext=cpp
23207ac_cpp='$CXXCPP $CPPFLAGS'
23208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23211
cristy8b350f62009-11-15 23:12:43 +000023212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023213/* end confdefs.h. */
23214#include <iostream>
23215#include <map>
23216#include <iomanip>
23217#include <cmath>
23218#ifdef HAVE_NAMESPACES
23219using namespace std;
23220#endif
23221int
23222main ()
23223{
23224return 0;
23225 ;
23226 return 0;
23227}
23228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023229if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023230 ac_cv_cxx_have_std_libs=yes
23231else
cristy8b350f62009-11-15 23:12:43 +000023232 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023233fi
cristy3ed852e2009-09-05 21:47:34 +000023234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23235 ac_ext=cpp
23236ac_cpp='$CXXCPP $CPPFLAGS'
23237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23240
23241
23242fi
cristy8b350f62009-11-15 23:12:43 +000023243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023244$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23245if test "$ac_cv_cxx_have_std_libs" = yes; then
23246
cristy8b350f62009-11-15 23:12:43 +000023247$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023248
23249fi
23250
cristy8b350f62009-11-15 23:12:43 +000023251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023252$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023253if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023254 $as_echo_n "(cached) " >&6
23255else
23256
23257 ac_ext=cpp
23258ac_cpp='$CXXCPP $CPPFLAGS'
23259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23262
cristy8b350f62009-11-15 23:12:43 +000023263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023264/* end confdefs.h. */
23265const wchar_t* s=L"wide string";
23266_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023267if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023268 ac_cv_cxx_have_lstring=yes
23269else
cristy8b350f62009-11-15 23:12:43 +000023270 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023271fi
cristy3ed852e2009-09-05 21:47:34 +000023272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23273 ac_ext=cpp
23274ac_cpp='$CXXCPP $CPPFLAGS'
23275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23278
23279
23280fi
cristy8b350f62009-11-15 23:12:43 +000023281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023282$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23283if test "$ac_cv_cxx_have_lstring" = yes; then
23284
cristy8b350f62009-11-15 23:12:43 +000023285$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023286
23287fi
23288
23289
23290 OPENMP_CXXFLAGS=
23291 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023292if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023293 enableval=$enable_openmp;
23294fi
23295
23296 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23298$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023299if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023300 $as_echo_n "(cached) " >&6
23301else
cristy8b350f62009-11-15 23:12:43 +000023302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23303/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023304
23305#ifndef _OPENMP
23306 choke me
23307#endif
23308#include <omp.h>
23309int main () { return omp_get_num_threads (); }
23310
23311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023312if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023313 ac_cv_prog_cxx_openmp='none needed'
23314else
cristy8b350f62009-11-15 23:12:43 +000023315 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023316 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23317 ac_save_CXXFLAGS=$CXXFLAGS
23318 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23320/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023321
23322#ifndef _OPENMP
23323 choke me
23324#endif
23325#include <omp.h>
23326int main () { return omp_get_num_threads (); }
23327
23328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023329if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023330 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023331fi
cristy8b350f62009-11-15 23:12:43 +000023332rm -f core conftest.err conftest.$ac_objext \
23333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023334 CXXFLAGS=$ac_save_CXXFLAGS
23335 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23336 break
23337 fi
23338 done
23339fi
cristy8b350f62009-11-15 23:12:43 +000023340rm -f core conftest.err conftest.$ac_objext \
23341 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023342fi
cristy8b350f62009-11-15 23:12:43 +000023343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023344$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23345 case $ac_cv_prog_cxx_openmp in #(
23346 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000023347 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000023348 *)
cristy8b350f62009-11-15 23:12:43 +000023349 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000023350 esac
23351 fi
23352
23353
23354 ac_ext=c
23355ac_cpp='$CPP $CPPFLAGS'
23356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23358ac_compiler_gnu=$ac_cv_c_compiler_gnu
23359
23360
cristy8b350f62009-11-15 23:12:43 +000023361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000023362$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
23363 if \
23364 test $ac_cv_cxx_have_bool = 'yes' && \
23365 test $ac_cv_cxx_have_lstring = 'yes' && \
23366 test $ac_cv_cxx_have_namespaces = 'yes' && \
23367 test $ac_cv_cxx_have_std_libs = 'yes' && \
23368 test $ac_cv_cxx_have_std_namespace = 'yes'; then
23369 have_magick_plus_plus='yes'
23370 else
23371 have_magick_plus_plus='no (failed tests)'
23372 fi
cristy8b350f62009-11-15 23:12:43 +000023373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000023374$as_echo "$have_magick_plus_plus" >&6; }
23375 LIBS="$OLIBS"
23376fi
23377 if test "$have_magick_plus_plus" = 'yes'; then
23378 WITH_MAGICK_PLUS_PLUS_TRUE=
23379 WITH_MAGICK_PLUS_PLUS_FALSE='#'
23380else
23381 WITH_MAGICK_PLUS_PLUS_TRUE='#'
23382 WITH_MAGICK_PLUS_PLUS_FALSE=
23383fi
23384
23385
23386# Only check for delegate libraries in subdirectories if requested.
23387if test "$enable_delegate_build" != 'no'; then
23388 # Check for delegate sub-directories and add -I & -L options as required.
23389 # This presumes that delegates are installed as detailed in the ImageMagick
23390 # README. If delegates are installed in a standard location where the
23391 # compiler will automatically find them then these options should not be
23392 # required.
23393
23394 #
23395 # Most delegates have includes in the same directory as the library, but not all...
23396 #
23397 # Includes
cristy5850e4b2010-01-08 14:28:24 +000023398 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000023399 if test -d "$builddir/$dir"; then
23400 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
23401 else
23402 if test -d "$srcdirfull/$dir"; then
23403 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
23404 fi
23405 fi
23406 done
23407
23408 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000023409 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000023410 if test -d "$builddir/$dir/.libs"; then
23411 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
23412 else
23413 if test -d "$srcdirfull/$dir/.libs"; then
23414 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
23415 fi
23416 fi
23417 if test -d "$builddir/$dir"; then
23418 LDFLAGS="$LDFLAGS -L$builddir/$dir"
23419 else
23420 if test -d "$srcdirfull/$dir"; then
23421 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
23422 fi
23423 fi
23424 done
23425fi
23426
23427# Assume that delegate headers reside under same directory as ImageMagick
23428# installation prefix.
23429MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
23430
23431#
23432# Find the X11 RGB database
23433#
cristy8b350f62009-11-15 23:12:43 +000023434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000023435$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023436if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023437 $as_echo_n "(cached) " >&6
23438else
23439 # Look for the header file in a standard set of common directories.
23440# Check X11 before X11Rn because it is often a symlink to the current release.
23441 for ac_dir in \
23442 /lib/usr/lib/X11 \
23443 /usr/X11/lib \
23444 /usr/X11R4/lib \
23445 /usr/X11R5/lib \
23446 /usr/X11R6/lib \
23447 /usr/X11R7/lib \
23448 /usr/X386/lib \
23449 /usr/XFree86/lib/X11 \
23450 /usr/athena/lib \
23451 /usr/lib \
23452 /usr/lib/X11 \
23453 /usr/lib/X11R4 \
23454 /usr/lib/X11R5 \
23455 /usr/lib/X11R6 \
23456 /usr/lib/X11R7 \
23457 /usr/local/X11/lib \
23458 /usr/local/X11R4/lib \
23459 /usr/local/X11R5/lib \
23460 /usr/local/X11R6/lib \
23461 /usr/local/lib \
23462 /usr/local/lib/X11 \
23463 /usr/local/lib/X11R4 \
23464 /usr/local/lib/X11R5 \
23465 /usr/local/lib/X11R6 \
23466 /usr/local/lib/X11R7 \
23467 /usr/local/x11r5/lib \
23468 /usr/lpp/Xamples/lib \
23469 /usr/openwin/lib \
23470 /usr/openwin/share/lib \
23471 /usr/unsupported/lib \
23472 /usr/x386/lib \
23473 ; do
23474 if test -f "$ac_dir/X11/rgb.txt"; then
23475 im_cv_x_configure="$ac_dir/X11/"
23476 break
23477 elif test -f "$ac_dir/rgb.txt"; then
23478 im_cv_x_configure="$ac_dir/"
23479 break
23480 fi
23481
23482 done
23483fi
cristy8b350f62009-11-15 23:12:43 +000023484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000023485$as_echo "$im_cv_x_configure" >&6; }
23486X11_CONFIGURE_PATH="$im_cv_x_configure"
23487case "${build_os}" in
23488 mingw* )
23489 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
23490 ;;
23491esac
23492
23493cat >>confdefs.h <<_ACEOF
23494#define X11_CONFIGURE_PATH "$X11ConfigurePath"
23495_ACEOF
23496
23497
23498#
23499# Find OpenMP library
23500#
23501GOMP_LIBS=''
23502if test "$enable_openmp" != 'no'; then
23503 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000023504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023505$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023506if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023507 $as_echo_n "(cached) " >&6
23508else
23509 ac_check_lib_save_LIBS=$LIBS
23510LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023512/* end confdefs.h. */
23513
23514/* Override any GCC internal prototype to avoid an error.
23515 Use char because int might match the return type of a GCC
23516 builtin and then its argument prototype would still apply. */
23517#ifdef __cplusplus
23518extern "C"
23519#endif
23520char GOMP_parallel_start ();
23521int
23522main ()
23523{
23524return GOMP_parallel_start ();
23525 ;
23526 return 0;
23527}
23528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023529if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023530 ac_cv_lib_gomp_GOMP_parallel_start=yes
23531else
cristy8b350f62009-11-15 23:12:43 +000023532 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000023533fi
cristy8b350f62009-11-15 23:12:43 +000023534rm -f core conftest.err conftest.$ac_objext \
23535 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023536LIBS=$ac_check_lib_save_LIBS
23537fi
cristy8b350f62009-11-15 23:12:43 +000023538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000023539$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023540if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023541 GOMP_LIBS="-lgomp"
23542fi
23543 # gcc
23544 else
cristy8b350f62009-11-15 23:12:43 +000023545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000023546$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023547if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023548 $as_echo_n "(cached) " >&6
23549else
23550 ac_check_lib_save_LIBS=$LIBS
23551LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023553/* end confdefs.h. */
23554
23555/* Override any GCC internal prototype to avoid an error.
23556 Use char because int might match the return type of a GCC
23557 builtin and then its argument prototype would still apply. */
23558#ifdef __cplusplus
23559extern "C"
23560#endif
23561char sunw_mp_register_warn ();
23562int
23563main ()
23564{
23565return sunw_mp_register_warn ();
23566 ;
23567 return 0;
23568}
23569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023570if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023571 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
23572else
cristy8b350f62009-11-15 23:12:43 +000023573 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000023574fi
cristy8b350f62009-11-15 23:12:43 +000023575rm -f core conftest.err conftest.$ac_objext \
23576 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023577LIBS=$ac_check_lib_save_LIBS
23578fi
cristy8b350f62009-11-15 23:12:43 +000023579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000023580$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023581if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023582 GOMP_LIBS="-lmtsk"
23583fi
23584 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000023585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023586$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023587if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023588 $as_echo_n "(cached) " >&6
23589else
23590 ac_check_lib_save_LIBS=$LIBS
23591LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023593/* end confdefs.h. */
23594
23595/* Override any GCC internal prototype to avoid an error.
23596 Use char because int might match the return type of a GCC
23597 builtin and then its argument prototype would still apply. */
23598#ifdef __cplusplus
23599extern "C"
23600#endif
23601char _xlsmpFlush ();
23602int
23603main ()
23604{
23605return _xlsmpFlush ();
23606 ;
23607 return 0;
23608}
23609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023610if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023611 ac_cv_lib_xlsmp__xlsmpFlush=yes
23612else
cristy8b350f62009-11-15 23:12:43 +000023613 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000023614fi
cristy8b350f62009-11-15 23:12:43 +000023615rm -f core conftest.err conftest.$ac_objext \
23616 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023617LIBS=$ac_check_lib_save_LIBS
23618fi
cristy8b350f62009-11-15 23:12:43 +000023619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000023620$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023621if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023622 GOMP_LIBS="-lxlsmp"
23623fi
23624 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000023625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023626$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023627if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023628 $as_echo_n "(cached) " >&6
23629else
23630 ac_check_lib_save_LIBS=$LIBS
23631LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023633/* end confdefs.h. */
23634
23635/* Override any GCC internal prototype to avoid an error.
23636 Use char because int might match the return type of a GCC
23637 builtin and then its argument prototype would still apply. */
23638#ifdef __cplusplus
23639extern "C"
23640#endif
23641char mp_destroy ();
23642int
23643main ()
23644{
23645return mp_destroy ();
23646 ;
23647 return 0;
23648}
23649_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023650if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023651 ac_cv_lib_mp_mp_destroy=yes
23652else
cristy8b350f62009-11-15 23:12:43 +000023653 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000023654fi
cristy8b350f62009-11-15 23:12:43 +000023655rm -f core conftest.err conftest.$ac_objext \
23656 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023657LIBS=$ac_check_lib_save_LIBS
23658fi
cristy8b350f62009-11-15 23:12:43 +000023659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000023660$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023661if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023662 GOMP_LIBS="-lmp"
23663fi
23664 # SGI IRIX 6.5 MIPSpro C/C++
23665 fi
23666 LIBS="$GOMP_LIBS $LIBS"
23667fi
23668
23669
23670#
23671# Find Posix threads library
23672#
23673THREAD_LIBS=''
23674if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
23675
23676 if test "x$PTHREAD_LIBS" = "x"; then
23677 case "${host_cpu}-${host_os}" in
23678 *-freebsd*)
23679
23680
23681
23682ac_ext=c
23683ac_cpp='$CPP $CPPFLAGS'
23684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23686ac_compiler_gnu=$ac_cv_c_compiler_gnu
23687
23688magick_pthread_lib_ok=no
23689
23690LIB=-lc_r
23691save_LIBS="$LIBS"
23692LIBS="$LIBS $LIB"
23693
cristy8b350f62009-11-15 23:12:43 +000023694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023695$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023697/* end confdefs.h. */
23698#include <pthread.h>
23699int
23700main ()
23701{
23702 pthread_t th;
23703 pthread_join(th, 0);
23704 pthread_attr_init(0);
23705 pthread_cleanup_push(0, 0);
23706 pthread_create(0,0,0,0);
23707 pthread_cleanup_pop(0);
23708 ;
23709 return 0;
23710}
23711_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023712if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023713 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023714fi
cristy8b350f62009-11-15 23:12:43 +000023715rm -f core conftest.err conftest.$ac_objext \
23716 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023717
cristy8b350f62009-11-15 23:12:43 +000023718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023719$as_echo "${magick_pthread_lib_ok}" >&6; }
23720if test "$magick_pthread_lib_ok" = yes
23721then
23722 PTHREAD_LIBS=-lc_r
23723 :
23724else
23725
23726 :
23727fi
23728
23729LIBS="$save_LIBS"
23730
23731ac_ext=c
23732ac_cpp='$CPP $CPPFLAGS'
23733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23735ac_compiler_gnu=$ac_cv_c_compiler_gnu
23736
23737 ;;
23738 esac
23739 fi
23740
23741 for lib in pthread pthreads; do
23742 if test "x$PTHREAD_LIBS" = "x"; then
23743
23744
23745
23746ac_ext=c
23747ac_cpp='$CPP $CPPFLAGS'
23748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23750ac_compiler_gnu=$ac_cv_c_compiler_gnu
23751
23752magick_pthread_lib_ok=no
23753
23754LIB=-l$lib
23755save_LIBS="$LIBS"
23756LIBS="$LIBS $LIB"
23757
cristy8b350f62009-11-15 23:12:43 +000023758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023759$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023761/* end confdefs.h. */
23762#include <pthread.h>
23763int
23764main ()
23765{
23766 pthread_t th;
23767 pthread_join(th, 0);
23768 pthread_attr_init(0);
23769 pthread_cleanup_push(0, 0);
23770 pthread_create(0,0,0,0);
23771 pthread_cleanup_pop(0);
23772 ;
23773 return 0;
23774}
23775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023776if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023777 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023778fi
cristy8b350f62009-11-15 23:12:43 +000023779rm -f core conftest.err conftest.$ac_objext \
23780 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023781
cristy8b350f62009-11-15 23:12:43 +000023782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023783$as_echo "${magick_pthread_lib_ok}" >&6; }
23784if test "$magick_pthread_lib_ok" = yes
23785then
23786 PTHREAD_LIBS=-l$lib
23787 :
23788else
23789
23790 :
23791fi
23792
23793LIBS="$save_LIBS"
23794
23795ac_ext=c
23796ac_cpp='$CPP $CPPFLAGS'
23797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23799ac_compiler_gnu=$ac_cv_c_compiler_gnu
23800
23801
23802 fi
23803 done
23804
23805 THREAD_LIBS="$PTHREAD_LIBS"
23806 LIBS="$LIBS $THREAD_LIBS"
23807fi
23808
23809
23810#
23811# Check for umem.
23812#
23813have_umem='no'
23814UMEM_LIBS=''
23815if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000023816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000023817$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023819$as_echo "" >&6; }
23820 failed=0
23821 passed=0
cristy8b350f62009-11-15 23:12:43 +000023822 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
23823if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023824 passed=`expr $passed + 1`
23825else
23826 failed=`expr $failed + 1`
23827fi
23828
23829
cristy8b350f62009-11-15 23:12:43 +000023830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023831$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023832if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023833 $as_echo_n "(cached) " >&6
23834else
23835 ac_check_lib_save_LIBS=$LIBS
23836LIBS="-lumem $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 umem_alloc ();
23847int
23848main ()
23849{
23850return umem_alloc ();
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_umem_umem_alloc=yes
23857else
cristy8b350f62009-11-15 23:12:43 +000023858 ac_cv_lib_umem_umem_alloc=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_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023865$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023866if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023867 passed=`expr $passed + 1`
23868else
23869 failed=`expr $failed + 1`
23870fi
23871
cristy8b350f62009-11-15 23:12:43 +000023872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023873$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023874if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023875 $as_echo_n "(cached) " >&6
23876else
23877 ac_check_lib_save_LIBS=$LIBS
23878LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023880/* end confdefs.h. */
23881
23882/* Override any GCC internal prototype to avoid an error.
23883 Use char because int might match the return type of a GCC
23884 builtin and then its argument prototype would still apply. */
23885#ifdef __cplusplus
23886extern "C"
23887#endif
23888char umem_free ();
23889int
23890main ()
23891{
23892return umem_free ();
23893 ;
23894 return 0;
23895}
23896_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023897if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023898 ac_cv_lib_umem_umem_free=yes
23899else
cristy8b350f62009-11-15 23:12:43 +000023900 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000023901fi
cristy8b350f62009-11-15 23:12:43 +000023902rm -f core conftest.err conftest.$ac_objext \
23903 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023904LIBS=$ac_check_lib_save_LIBS
23905fi
cristy8b350f62009-11-15 23:12:43 +000023906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000023907$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023908if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023909 passed=`expr $passed + 1`
23910else
23911 failed=`expr $failed + 1`
23912fi
23913
cristy8b350f62009-11-15 23:12:43 +000023914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023915$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23916 if test $passed -gt 0; then
23917 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023919$as_echo "no -- some components failed test" >&6; }
23920 have_umem='no (failed tests)'
23921 else
23922 UMEM_LIBS='-lumem'
23923 LIBS="$UMEM_LIBS $LIBS"
23924
cristy8b350f62009-11-15 23:12:43 +000023925$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023926
cristy8b350f62009-11-15 23:12:43 +000023927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023928$as_echo "yes" >&6; }
23929 have_umem='yes'
23930 fi
23931 else
cristy8b350f62009-11-15 23:12:43 +000023932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023933$as_echo "no" >&6; }
23934 fi
23935fi
23936 if test "$have_umem" = 'yes'; then
23937 HasUMEM_TRUE=
23938 HasUMEM_FALSE='#'
23939else
23940 HasUMEM_TRUE='#'
23941 HasUMEM_FALSE=
23942fi
23943
23944
23945
23946#
23947# Add support for ccmalloc memory debugging library if requested
23948#
23949have_ccmalloc='no'
23950CCMALLOC_LIBS=''
23951if test "$enable_ccmalloc" = 'yes'; then
23952 # Extract the first word of "ccmalloc", so it can be a program name with args.
23953set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023955$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023956if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023957 $as_echo_n "(cached) " >&6
23958else
23959 case $CCMALLOCDelegate in
23960 [\\/]* | ?:[\\/]*)
23961 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23962 ;;
23963 *)
23964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23965for as_dir in $PATH
23966do
23967 IFS=$as_save_IFS
23968 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023969 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23971 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000023972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023973 break 2
23974 fi
23975done
cristy8b350f62009-11-15 23:12:43 +000023976 done
cristy3ed852e2009-09-05 21:47:34 +000023977IFS=$as_save_IFS
23978
23979 ;;
23980esac
23981fi
23982CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23983if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000023984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000023985$as_echo "$CCMALLOCDelegate" >&6; }
23986else
cristy8b350f62009-11-15 23:12:43 +000023987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023988$as_echo "no" >&6; }
23989fi
23990
23991
23992 if test -n "$CCMALLOCDelegate"; then
23993 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23994 OLIBS="$LIBS"
23995 # Assume that gcc is used with ccmalloc.
23996 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000023997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023998$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023999if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024000 $as_echo_n "(cached) " >&6
24001else
24002 ac_check_lib_save_LIBS=$LIBS
24003LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024005/* end confdefs.h. */
24006
24007/* Override any GCC internal prototype to avoid an error.
24008 Use char because int might match the return type of a GCC
24009 builtin and then its argument prototype would still apply. */
24010#ifdef __cplusplus
24011extern "C"
24012#endif
24013char ccmalloc_malloc ();
24014int
24015main ()
24016{
24017return ccmalloc_malloc ();
24018 ;
24019 return 0;
24020}
24021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024022if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024023 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24024else
cristy8b350f62009-11-15 23:12:43 +000024025 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024026fi
cristy8b350f62009-11-15 23:12:43 +000024027rm -f core conftest.err conftest.$ac_objext \
24028 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024029LIBS=$ac_check_lib_save_LIBS
24030fi
cristy8b350f62009-11-15 23:12:43 +000024031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024032$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024033if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024034 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24035fi
24036
24037 if test -n "$CCMALLOC_LIBS"; then
24038 LIBS="$OLIBS"
24039 LIBS="$LIBS $CCMALLOC_LIBS"
24040 have_ccmalloc='yes'
24041 else
24042 LIBS="$OLIBS"
24043 fi
24044 fi
24045fi
24046
24047#
24048# Add support for efence memory debugging library if requested
24049#
24050if test "$enable_efence" = 'yes'; then
24051 EFENCE_LIBS='-lefence'
24052 LIBS="$EFENCE_LIBS $LIBS"
24053fi
24054
24055#
24056# Find math library
24057#
24058MATH_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024060$as_echo_n "checking for sqrt in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024061if test "${ac_cv_lib_m_sqrt+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024062 $as_echo_n "(cached) " >&6
24063else
24064 ac_check_lib_save_LIBS=$LIBS
24065LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024067/* end confdefs.h. */
24068
24069/* Override any GCC internal prototype to avoid an error.
24070 Use char because int might match the return type of a GCC
24071 builtin and then its argument prototype would still apply. */
24072#ifdef __cplusplus
24073extern "C"
24074#endif
24075char sqrt ();
24076int
24077main ()
24078{
24079return sqrt ();
24080 ;
24081 return 0;
24082}
24083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024084if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024085 ac_cv_lib_m_sqrt=yes
24086else
cristy8b350f62009-11-15 23:12:43 +000024087 ac_cv_lib_m_sqrt=no
cristy3ed852e2009-09-05 21:47:34 +000024088fi
cristy8b350f62009-11-15 23:12:43 +000024089rm -f core conftest.err conftest.$ac_objext \
24090 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024091LIBS=$ac_check_lib_save_LIBS
24092fi
cristy8b350f62009-11-15 23:12:43 +000024093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
cristy3ed852e2009-09-05 21:47:34 +000024094$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024095if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024096 MATH_LIBS="-lm"
24097fi
24098
24099LIBS="$MATH_LIBS $LIBS"
24100
24101
24102
24103#
24104# Check for BZLIB
24105#
24106
24107
24108# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024109if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024110 withval=$with_bzlib; with_bzlib=$withval
24111else
24112 with_bzlib='yes'
24113fi
24114
24115
24116if test "$with_bzlib" != 'yes'; then
24117 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24118fi
24119
24120have_bzlib='no'
24121if test "$with_bzlib" != 'no'; then
24122 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024124$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024126$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024128$as_echo "" >&6; }
24129 failed=0
24130 passed=0
24131 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024132 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24133if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024134 passed=`expr $passed + 1`
24135else
24136 failed=`expr $failed + 1`
24137fi
24138
24139
cristy8b350f62009-11-15 23:12:43 +000024140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024141$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024142if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024143 $as_echo_n "(cached) " >&6
24144else
24145 ac_check_lib_save_LIBS=$LIBS
24146LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024148/* end confdefs.h. */
24149
24150/* Override any GCC internal prototype to avoid an error.
24151 Use char because int might match the return type of a GCC
24152 builtin and then its argument prototype would still apply. */
24153#ifdef __cplusplus
24154extern "C"
24155#endif
24156char BZ2_bzDecompress ();
24157int
24158main ()
24159{
24160return BZ2_bzDecompress ();
24161 ;
24162 return 0;
24163}
24164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024165if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024166 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24167else
cristy8b350f62009-11-15 23:12:43 +000024168 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024169fi
cristy8b350f62009-11-15 23:12:43 +000024170rm -f core conftest.err conftest.$ac_objext \
24171 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024172LIBS=$ac_check_lib_save_LIBS
24173fi
cristy8b350f62009-11-15 23:12:43 +000024174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024175$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024176if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024177 found_libbz=`expr $found_libbz + 1`
24178fi
24179
24180 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024182$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024183if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024184 $as_echo_n "(cached) " >&6
24185else
24186 ac_check_lib_save_LIBS=$LIBS
24187LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024189/* end confdefs.h. */
24190
24191/* Override any GCC internal prototype to avoid an error.
24192 Use char because int might match the return type of a GCC
24193 builtin and then its argument prototype would still apply. */
24194#ifdef __cplusplus
24195extern "C"
24196#endif
24197char _imp__BZ2_decompress ();
24198int
24199main ()
24200{
24201return _imp__BZ2_decompress ();
24202 ;
24203 return 0;
24204}
24205_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024206if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024207 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24208else
cristy8b350f62009-11-15 23:12:43 +000024209 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024210fi
cristy8b350f62009-11-15 23:12:43 +000024211rm -f core conftest.err conftest.$ac_objext \
24212 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024213LIBS=$ac_check_lib_save_LIBS
24214fi
cristy8b350f62009-11-15 23:12:43 +000024215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024216$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024217if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024218 found_libbz=`expr $found_libbz + 1`
24219fi
24220
24221 fi
24222 if test $found_libbz -gt 0; then
24223 passed=`expr $passed + 1`
24224 else
24225 failed=`expr $failed + 1`
24226 fi
cristy8b350f62009-11-15 23:12:43 +000024227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024228$as_echo_n "checking if BZLIB package is complete... " >&6; }
24229 if test $passed -gt 0; then
24230 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024232$as_echo "no -- some components failed test" >&6; }
24233 have_bzlib='no (failed tests)'
24234 else
24235 BZLIB_LIBS='-lbz2'
24236 LIBS="$BZLIB_LIBS $LIBS"
24237
cristy8b350f62009-11-15 23:12:43 +000024238$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024239
cristy8b350f62009-11-15 23:12:43 +000024240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024241$as_echo "yes" >&6; }
24242 have_bzlib='yes'
24243 fi
24244 else
cristy8b350f62009-11-15 23:12:43 +000024245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024246$as_echo "no" >&6; }
24247 fi
24248fi
24249 if test "$have_bzlib" = 'yes'; then
24250 BZLIB_DELEGATE_TRUE=
24251 BZLIB_DELEGATE_FALSE='#'
24252else
24253 BZLIB_DELEGATE_TRUE='#'
24254 BZLIB_DELEGATE_FALSE=
24255fi
24256
24257
24258
24259#
24260# Find the X11 include and library directories.
24261#
24262IPC_LIBS=''
24263X11_LIBS=''
24264XEXT_LIBS=''
24265XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024267$as_echo_n "checking for X... " >&6; }
24268
24269
24270# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024271if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024272 withval=$with_x;
24273fi
24274
24275# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24276if test "x$with_x" = xno; then
24277 # The user explicitly disabled X.
24278 have_x=disabled
24279else
24280 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000024281 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24282 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024283 $as_echo_n "(cached) " >&6
24284else
24285 # One or both of the vars are not set, and there is no cached value.
24286ac_x_includes=no ac_x_libraries=no
24287rm -f -r conftest.dir
24288if mkdir conftest.dir; then
24289 cd conftest.dir
24290 cat >Imakefile <<'_ACEOF'
24291incroot:
24292 @echo incroot='${INCROOT}'
24293usrlibdir:
24294 @echo usrlibdir='${USRLIBDIR}'
24295libdir:
24296 @echo libdir='${LIBDIR}'
24297_ACEOF
24298 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24299 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24300 for ac_var in incroot usrlibdir libdir; do
24301 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24302 done
24303 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24304 for ac_extension in a so sl dylib la dll; do
24305 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24306 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24307 ac_im_usrlibdir=$ac_im_libdir; break
24308 fi
24309 done
24310 # Screen out bogus values from the imake configuration. They are
24311 # bogus both because they are the default anyway, and because
24312 # using them would break gcc on systems where it needs fixed includes.
24313 case $ac_im_incroot in
24314 /usr/include) ac_x_includes= ;;
24315 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24316 esac
24317 case $ac_im_usrlibdir in
24318 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24319 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24320 esac
24321 fi
24322 cd ..
24323 rm -f -r conftest.dir
24324fi
24325
24326# Standard set of common directories for X headers.
24327# Check X11 before X11Rn because it is often a symlink to the current release.
24328ac_x_header_dirs='
24329/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024330/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024331/usr/X11R6/include
24332/usr/X11R5/include
24333/usr/X11R4/include
24334
24335/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024336/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024337/usr/include/X11R6
24338/usr/include/X11R5
24339/usr/include/X11R4
24340
24341/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024342/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024343/usr/local/X11R6/include
24344/usr/local/X11R5/include
24345/usr/local/X11R4/include
24346
24347/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024348/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024349/usr/local/include/X11R6
24350/usr/local/include/X11R5
24351/usr/local/include/X11R4
24352
24353/usr/X386/include
24354/usr/x386/include
24355/usr/XFree86/include/X11
24356
24357/usr/include
24358/usr/local/include
24359/usr/unsupported/include
24360/usr/athena/include
24361/usr/local/x11r5/include
24362/usr/lpp/Xamples/include
24363
24364/usr/openwin/include
24365/usr/openwin/share/include'
24366
24367if test "$ac_x_includes" = no; then
24368 # Guess where to find include files, by looking for Xlib.h.
24369 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024371/* end confdefs.h. */
24372#include <X11/Xlib.h>
24373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024374if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024375 # We can compile using X headers with no special include directory.
24376ac_x_includes=
24377else
cristyc7083c12009-10-14 03:16:55 +000024378 for ac_dir in $ac_x_header_dirs; do
24379 if test -r "$ac_dir/X11/Xlib.h"; then
24380 ac_x_includes=$ac_dir
24381 break
24382 fi
24383done
24384fi
cristyc7083c12009-10-14 03:16:55 +000024385rm -f conftest.err conftest.$ac_ext
24386fi # $ac_x_includes = no
24387
24388if test "$ac_x_libraries" = no; then
24389 # Check for the libraries.
24390 # See if we find them without any special options.
24391 # Don't add to $LIBS permanently.
24392 ac_save_LIBS=$LIBS
24393 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024395/* end confdefs.h. */
24396#include <X11/Xlib.h>
24397int
24398main ()
24399{
24400XrmInitialize ()
24401 ;
24402 return 0;
24403}
24404_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024405if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024406 LIBS=$ac_save_LIBS
24407# We can link X programs with no special library path.
24408ac_x_libraries=
24409else
cristy8b350f62009-11-15 23:12:43 +000024410 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000024411for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24412do
24413 # Don't even attempt the hair of trying to link an X program!
24414 for ac_extension in a so sl dylib la dll; do
24415 if test -r "$ac_dir/libX11.$ac_extension"; then
24416 ac_x_libraries=$ac_dir
24417 break 2
24418 fi
24419 done
24420done
24421fi
cristy8b350f62009-11-15 23:12:43 +000024422rm -f core conftest.err conftest.$ac_objext \
24423 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024424fi # $ac_x_libraries = no
24425
24426case $ac_x_includes,$ac_x_libraries in #(
24427 no,* | *,no | *\'*)
24428 # Didn't find X, or a directory has "'" in its name.
24429 ac_cv_have_x="have_x=no";; #(
24430 *)
24431 # Record where we found X for the cache.
24432 ac_cv_have_x="have_x=yes\
24433 ac_x_includes='$ac_x_includes'\
24434 ac_x_libraries='$ac_x_libraries'"
24435esac
24436fi
24437;; #(
24438 *) have_x=yes;;
24439 esac
24440 eval "$ac_cv_have_x"
24441fi # $with_x != no
24442
24443if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000024444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000024445$as_echo "$have_x" >&6; }
24446 no_x=yes
24447else
24448 # If each of the values was on the command line, it overrides each guess.
24449 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24450 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24451 # Update the cache value to reflect the command line values.
24452 ac_cv_have_x="have_x=yes\
24453 ac_x_includes='$x_includes'\
24454 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000024455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000024456$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24457fi
24458
cristy3ed852e2009-09-05 21:47:34 +000024459if test "$no_x" = yes; then
24460 # Not all programs may use this symbol, but it does not hurt to define it.
24461
cristy8b350f62009-11-15 23:12:43 +000024462$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024463
24464 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24465else
24466 if test -n "$x_includes"; then
24467 X_CFLAGS="$X_CFLAGS -I$x_includes"
24468 fi
24469
24470 # It would also be nice to do this for all -L options, not just this one.
24471 if test -n "$x_libraries"; then
24472 X_LIBS="$X_LIBS -L$x_libraries"
24473 # For Solaris; some versions of Sun CC require a space after -R and
24474 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000024475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000024476$as_echo_n "checking whether -R must be followed by a space... " >&6; }
24477 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24478 ac_xsave_c_werror_flag=$ac_c_werror_flag
24479 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000024480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024481/* end confdefs.h. */
24482
24483int
24484main ()
24485{
24486
24487 ;
24488 return 0;
24489}
24490_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024491if ac_fn_c_try_link "$LINENO"; then :
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024493$as_echo "no" >&6; }
24494 X_LIBS="$X_LIBS -R$x_libraries"
24495else
cristy8b350f62009-11-15 23:12:43 +000024496 LIBS="$ac_xsave_LIBS -R $x_libraries"
24497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024498/* end confdefs.h. */
24499
24500int
24501main ()
24502{
24503
24504 ;
24505 return 0;
24506}
24507_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024508if ac_fn_c_try_link "$LINENO"; then :
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024510$as_echo "yes" >&6; }
24511 X_LIBS="$X_LIBS -R $x_libraries"
24512else
cristy8b350f62009-11-15 23:12:43 +000024513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024514$as_echo "neither works" >&6; }
24515fi
cristy8b350f62009-11-15 23:12:43 +000024516rm -f core conftest.err conftest.$ac_objext \
24517 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024518fi
cristy8b350f62009-11-15 23:12:43 +000024519rm -f core conftest.err conftest.$ac_objext \
24520 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024521 ac_c_werror_flag=$ac_xsave_c_werror_flag
24522 LIBS=$ac_xsave_LIBS
24523 fi
24524
24525 # Check for system-dependent libraries X programs must link with.
24526 # Do this before checking for the system-independent R6 libraries
24527 # (-lICE), since we may need -lsocket or whatever for X linking.
24528
24529 if test "$ISC" = yes; then
24530 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24531 else
24532 # Martyn Johnson says this is needed for Ultrix, if the X
24533 # libraries were built with DECnet support. And Karl Berry says
24534 # the Alpha needs dnet_stub (dnet does not exist).
24535 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000024536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024537/* end confdefs.h. */
24538
24539/* Override any GCC internal prototype to avoid an error.
24540 Use char because int might match the return type of a GCC
24541 builtin and then its argument prototype would still apply. */
24542#ifdef __cplusplus
24543extern "C"
24544#endif
24545char XOpenDisplay ();
24546int
24547main ()
24548{
24549return XOpenDisplay ();
24550 ;
24551 return 0;
24552}
24553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024554if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024555
cristy8b350f62009-11-15 23:12:43 +000024556else
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024558$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024559if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024560 $as_echo_n "(cached) " >&6
24561else
24562 ac_check_lib_save_LIBS=$LIBS
24563LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024565/* end confdefs.h. */
24566
24567/* Override any GCC internal prototype to avoid an error.
24568 Use char because int might match the return type of a GCC
24569 builtin and then its argument prototype would still apply. */
24570#ifdef __cplusplus
24571extern "C"
24572#endif
24573char dnet_ntoa ();
24574int
24575main ()
24576{
24577return dnet_ntoa ();
24578 ;
24579 return 0;
24580}
24581_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024582if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024583 ac_cv_lib_dnet_dnet_ntoa=yes
24584else
cristy8b350f62009-11-15 23:12:43 +000024585 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000024586fi
cristy8b350f62009-11-15 23:12:43 +000024587rm -f core conftest.err conftest.$ac_objext \
24588 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024589LIBS=$ac_check_lib_save_LIBS
24590fi
cristy8b350f62009-11-15 23:12:43 +000024591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000024592$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024593if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024594 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24595fi
24596
24597 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000024598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000024599$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024600if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024601 $as_echo_n "(cached) " >&6
24602else
24603 ac_check_lib_save_LIBS=$LIBS
24604LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024606/* end confdefs.h. */
24607
24608/* Override any GCC internal prototype to avoid an error.
24609 Use char because int might match the return type of a GCC
24610 builtin and then its argument prototype would still apply. */
24611#ifdef __cplusplus
24612extern "C"
24613#endif
24614char dnet_ntoa ();
24615int
24616main ()
24617{
24618return dnet_ntoa ();
24619 ;
24620 return 0;
24621}
24622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024623if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024624 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24625else
cristy8b350f62009-11-15 23:12:43 +000024626 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000024627fi
cristy8b350f62009-11-15 23:12:43 +000024628rm -f core conftest.err conftest.$ac_objext \
24629 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024630LIBS=$ac_check_lib_save_LIBS
24631fi
cristy8b350f62009-11-15 23:12:43 +000024632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000024633$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024634if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024635 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24636fi
24637
24638 fi
24639fi
cristy8b350f62009-11-15 23:12:43 +000024640rm -f core conftest.err conftest.$ac_objext \
24641 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024642 LIBS="$ac_xsave_LIBS"
24643
24644 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24645 # to get the SysV transport functions.
24646 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24647 # needs -lnsl.
24648 # The nsl library prevents programs from opening the X display
24649 # on Irix 5.2, according to T.E. Dickey.
24650 # The functions gethostbyname, getservbyname, and inet_addr are
24651 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000024652 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24653if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024654
cristy3ed852e2009-09-05 21:47:34 +000024655fi
24656
cristy3ed852e2009-09-05 21:47:34 +000024657 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024659$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024660if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024661 $as_echo_n "(cached) " >&6
24662else
24663 ac_check_lib_save_LIBS=$LIBS
24664LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024666/* end confdefs.h. */
24667
24668/* Override any GCC internal prototype to avoid an error.
24669 Use char because int might match the return type of a GCC
24670 builtin and then its argument prototype would still apply. */
24671#ifdef __cplusplus
24672extern "C"
24673#endif
24674char gethostbyname ();
24675int
24676main ()
24677{
24678return gethostbyname ();
24679 ;
24680 return 0;
24681}
24682_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024683if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024684 ac_cv_lib_nsl_gethostbyname=yes
24685else
cristy8b350f62009-11-15 23:12:43 +000024686 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024687fi
cristy8b350f62009-11-15 23:12:43 +000024688rm -f core conftest.err conftest.$ac_objext \
24689 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024690LIBS=$ac_check_lib_save_LIBS
24691fi
cristy8b350f62009-11-15 23:12:43 +000024692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024693$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024694if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024695 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24696fi
24697
24698 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000024700$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024701if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024702 $as_echo_n "(cached) " >&6
24703else
24704 ac_check_lib_save_LIBS=$LIBS
24705LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024707/* end confdefs.h. */
24708
24709/* Override any GCC internal prototype to avoid an error.
24710 Use char because int might match the return type of a GCC
24711 builtin and then its argument prototype would still apply. */
24712#ifdef __cplusplus
24713extern "C"
24714#endif
24715char gethostbyname ();
24716int
24717main ()
24718{
24719return gethostbyname ();
24720 ;
24721 return 0;
24722}
24723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024724if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024725 ac_cv_lib_bsd_gethostbyname=yes
24726else
cristy8b350f62009-11-15 23:12:43 +000024727 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024728fi
cristy8b350f62009-11-15 23:12:43 +000024729rm -f core conftest.err conftest.$ac_objext \
24730 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024731LIBS=$ac_check_lib_save_LIBS
24732fi
cristy8b350f62009-11-15 23:12:43 +000024733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024734$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024735if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024736 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24737fi
24738
24739 fi
24740 fi
24741
24742 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24743 # socket/setsockopt and other routines are undefined under SCO ODT
24744 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24745 # on later versions), says Simon Leinen: it contains gethostby*
24746 # variants that don't use the name server (or something). -lsocket
24747 # must be given before -lnsl if both are needed. We assume that
24748 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000024749 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24750if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024751
cristy3ed852e2009-09-05 21:47:34 +000024752fi
24753
cristy3ed852e2009-09-05 21:47:34 +000024754 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000024755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000024756$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024757if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024758 $as_echo_n "(cached) " >&6
24759else
24760 ac_check_lib_save_LIBS=$LIBS
24761LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024763/* end confdefs.h. */
24764
24765/* Override any GCC internal prototype to avoid an error.
24766 Use char because int might match the return type of a GCC
24767 builtin and then its argument prototype would still apply. */
24768#ifdef __cplusplus
24769extern "C"
24770#endif
24771char connect ();
24772int
24773main ()
24774{
24775return connect ();
24776 ;
24777 return 0;
24778}
24779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024780if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024781 ac_cv_lib_socket_connect=yes
24782else
cristy8b350f62009-11-15 23:12:43 +000024783 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000024784fi
cristy8b350f62009-11-15 23:12:43 +000024785rm -f core conftest.err conftest.$ac_objext \
24786 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024787LIBS=$ac_check_lib_save_LIBS
24788fi
cristy8b350f62009-11-15 23:12:43 +000024789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000024790$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024791if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024792 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24793fi
24794
24795 fi
24796
24797 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000024798 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24799if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024800
cristy3ed852e2009-09-05 21:47:34 +000024801fi
24802
cristy3ed852e2009-09-05 21:47:34 +000024803 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000024804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000024805$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024806if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024807 $as_echo_n "(cached) " >&6
24808else
24809 ac_check_lib_save_LIBS=$LIBS
24810LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024812/* end confdefs.h. */
24813
24814/* Override any GCC internal prototype to avoid an error.
24815 Use char because int might match the return type of a GCC
24816 builtin and then its argument prototype would still apply. */
24817#ifdef __cplusplus
24818extern "C"
24819#endif
24820char remove ();
24821int
24822main ()
24823{
24824return remove ();
24825 ;
24826 return 0;
24827}
24828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024829if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024830 ac_cv_lib_posix_remove=yes
24831else
cristy8b350f62009-11-15 23:12:43 +000024832 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000024833fi
cristy8b350f62009-11-15 23:12:43 +000024834rm -f core conftest.err conftest.$ac_objext \
24835 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024836LIBS=$ac_check_lib_save_LIBS
24837fi
cristy8b350f62009-11-15 23:12:43 +000024838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000024839$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024840if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024841 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24842fi
24843
24844 fi
24845
24846 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000024847 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24848if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024849
cristy3ed852e2009-09-05 21:47:34 +000024850fi
24851
cristy3ed852e2009-09-05 21:47:34 +000024852 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000024853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024854$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024855if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024856 $as_echo_n "(cached) " >&6
24857else
24858 ac_check_lib_save_LIBS=$LIBS
24859LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024861/* end confdefs.h. */
24862
24863/* Override any GCC internal prototype to avoid an error.
24864 Use char because int might match the return type of a GCC
24865 builtin and then its argument prototype would still apply. */
24866#ifdef __cplusplus
24867extern "C"
24868#endif
24869char shmat ();
24870int
24871main ()
24872{
24873return shmat ();
24874 ;
24875 return 0;
24876}
24877_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024878if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024879 ac_cv_lib_ipc_shmat=yes
24880else
cristy8b350f62009-11-15 23:12:43 +000024881 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000024882fi
cristy8b350f62009-11-15 23:12:43 +000024883rm -f core conftest.err conftest.$ac_objext \
24884 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024885LIBS=$ac_check_lib_save_LIBS
24886fi
cristy8b350f62009-11-15 23:12:43 +000024887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000024888$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024889if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024890 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24891fi
24892
24893 fi
24894 fi
24895
24896 # Check for libraries that X11R6 Xt/Xaw programs need.
24897 ac_save_LDFLAGS=$LDFLAGS
24898 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24899 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24900 # check for ICE first), but we must link in the order -lSM -lICE or
24901 # we get undefined symbols. So assume we have SM if we have ICE.
24902 # These have to be linked with before -lX11, unlike the other
24903 # libraries we check for below, so use a different variable.
24904 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000024905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024906$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024907if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024908 $as_echo_n "(cached) " >&6
24909else
24910 ac_check_lib_save_LIBS=$LIBS
24911LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024913/* end confdefs.h. */
24914
24915/* Override any GCC internal prototype to avoid an error.
24916 Use char because int might match the return type of a GCC
24917 builtin and then its argument prototype would still apply. */
24918#ifdef __cplusplus
24919extern "C"
24920#endif
24921char IceConnectionNumber ();
24922int
24923main ()
24924{
24925return IceConnectionNumber ();
24926 ;
24927 return 0;
24928}
24929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024930if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024931 ac_cv_lib_ICE_IceConnectionNumber=yes
24932else
cristy8b350f62009-11-15 23:12:43 +000024933 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000024934fi
cristy8b350f62009-11-15 23:12:43 +000024935rm -f core conftest.err conftest.$ac_objext \
24936 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024937LIBS=$ac_check_lib_save_LIBS
24938fi
cristy8b350f62009-11-15 23:12:43 +000024939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000024940$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024941if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024942 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24943fi
24944
24945 LDFLAGS=$ac_save_LDFLAGS
24946
24947fi
24948
24949if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024951$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000024953$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024955$as_echo "" >&6; }
24956 LDFLAGS="$LDFLAGS $X_LIBS"
24957 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24958 LIBS="$X11_LIBS $LIBS"
24959 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24960
24961
cristy8b350f62009-11-15 23:12:43 +000024962$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024963
24964 #
24965 # Check for X11 shared memory extension
24966 #
24967 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000024968 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24969if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024970 have_shmctl='yes'
24971fi
24972
24973 if test "$have_shmctl" != 'yes'; then
24974 PERSIST_LIBS=$LIBS
24975 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000024976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024977/* end confdefs.h. */
24978
24979/* Override any GCC internal prototype to avoid an error.
24980 Use char because int might match the return type of a GCC
24981 builtin and then its argument prototype would still apply. */
24982#ifdef __cplusplus
24983extern "C"
24984#endif
24985char shmctl ();
24986int
24987main ()
24988{
24989return shmctl ();
24990 ;
24991 return 0;
24992}
24993_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024994if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024995 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000024996fi
cristy8b350f62009-11-15 23:12:43 +000024997rm -f core conftest.err conftest.$ac_objext \
24998 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024999 LIBS=$PERSIST_LIBS
25000 fi
25001
25002 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025004$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025005if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025006 $as_echo_n "(cached) " >&6
25007else
25008 ac_check_lib_save_LIBS=$LIBS
25009LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025011/* end confdefs.h. */
25012
25013/* Override any GCC internal prototype to avoid an error.
25014 Use char because int might match the return type of a GCC
25015 builtin and then its argument prototype would still apply. */
25016#ifdef __cplusplus
25017extern "C"
25018#endif
25019char XShmAttach ();
25020int
25021main ()
25022{
25023return XShmAttach ();
25024 ;
25025 return 0;
25026}
25027_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025028if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025029 ac_cv_lib_Xext_XShmAttach=yes
25030else
cristy8b350f62009-11-15 23:12:43 +000025031 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025032fi
cristy8b350f62009-11-15 23:12:43 +000025033rm -f core conftest.err conftest.$ac_objext \
25034 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025035LIBS=$ac_check_lib_save_LIBS
25036fi
cristy8b350f62009-11-15 23:12:43 +000025037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025038$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025039if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025040 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025041$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025042
25043fi
25044
25045 fi
25046
25047 #
25048 # Check for X11 shape extension
25049 #
cristy8b350f62009-11-15 23:12:43 +000025050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025051$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025052if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025053 $as_echo_n "(cached) " >&6
25054else
25055 ac_check_lib_save_LIBS=$LIBS
25056LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025058/* end confdefs.h. */
25059
25060/* Override any GCC internal prototype to avoid an error.
25061 Use char because int might match the return type of a GCC
25062 builtin and then its argument prototype would still apply. */
25063#ifdef __cplusplus
25064extern "C"
25065#endif
25066char XShapeCombineMask ();
25067int
25068main ()
25069{
25070return XShapeCombineMask ();
25071 ;
25072 return 0;
25073}
25074_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025075if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025076 ac_cv_lib_Xext_XShapeCombineMask=yes
25077else
cristy8b350f62009-11-15 23:12:43 +000025078 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025079fi
cristy8b350f62009-11-15 23:12:43 +000025080rm -f core conftest.err conftest.$ac_objext \
25081 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025082LIBS=$ac_check_lib_save_LIBS
25083fi
cristy8b350f62009-11-15 23:12:43 +000025084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025085$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025086if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025087 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025088$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025089
25090fi
25091
cristy8b350f62009-11-15 23:12:43 +000025092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025093$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025094if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025095 $as_echo_n "(cached) " >&6
25096else
25097 ac_check_lib_save_LIBS=$LIBS
25098LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025100/* end confdefs.h. */
25101
25102/* Override any GCC internal prototype to avoid an error.
25103 Use char because int might match the return type of a GCC
25104 builtin and then its argument prototype would still apply. */
25105#ifdef __cplusplus
25106extern "C"
25107#endif
25108char XtSetEventDispatcher ();
25109int
25110main ()
25111{
25112return XtSetEventDispatcher ();
25113 ;
25114 return 0;
25115}
25116_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025117if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025118 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25119else
cristy8b350f62009-11-15 23:12:43 +000025120 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025121fi
cristy8b350f62009-11-15 23:12:43 +000025122rm -f core conftest.err conftest.$ac_objext \
25123 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025124LIBS=$ac_check_lib_save_LIBS
25125fi
cristy8b350f62009-11-15 23:12:43 +000025126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025127$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025128if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025129 XT_LIBS='-lXt'
25130fi
25131
25132 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25133fi
25134if test "$no_x" != 'yes'; then
25135 have_x='yes'
25136else
25137 have_x='no'
25138fi
25139 if test "$have_x" = 'yes'; then
25140 X11_DELEGATE_TRUE=
25141 X11_DELEGATE_FALSE='#'
25142else
25143 X11_DELEGATE_TRUE='#'
25144 X11_DELEGATE_FALSE=
25145fi
25146
25147
25148
25149
25150
25151#
25152# Check for ZLIB
25153#
25154
25155# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025156if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025157 withval=$with_zlib; with_zlib=$withval
25158else
25159 with_zlib='yes'
25160fi
25161
25162
25163if test "$with_zlib" != 'yes'; then
25164 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25165fi
25166
25167have_zlib='no'
25168ZLIB_LIBS=''
25169if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025171$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025173$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025175$as_echo "" >&6; }
25176 ZLIB_LIBS=''
25177 failed=0
25178 passed=0
cristy8b350f62009-11-15 23:12:43 +000025179 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25180if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025181 passed=`expr $passed + 1`
25182else
25183 failed=`expr $failed + 1`
25184fi
25185
25186
cristy8b350f62009-11-15 23:12:43 +000025187 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25188if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025189 passed=`expr $passed + 1`
25190else
25191 failed=`expr $failed + 1`
25192fi
25193
25194
cristy8b350f62009-11-15 23:12:43 +000025195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025196$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025197if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025198 $as_echo_n "(cached) " >&6
25199else
25200 ac_check_lib_save_LIBS=$LIBS
25201LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025203/* end confdefs.h. */
25204
25205/* Override any GCC internal prototype to avoid an error.
25206 Use char because int might match the return type of a GCC
25207 builtin and then its argument prototype would still apply. */
25208#ifdef __cplusplus
25209extern "C"
25210#endif
25211char compress ();
25212int
25213main ()
25214{
25215return compress ();
25216 ;
25217 return 0;
25218}
25219_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025220if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025221 ac_cv_lib_z_compress=yes
25222else
cristy8b350f62009-11-15 23:12:43 +000025223 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025224fi
cristy8b350f62009-11-15 23:12:43 +000025225rm -f core conftest.err conftest.$ac_objext \
25226 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025227LIBS=$ac_check_lib_save_LIBS
25228fi
cristy8b350f62009-11-15 23:12:43 +000025229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025230$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025231if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025232 passed=`expr $passed + 1`
25233else
25234 failed=`expr $failed + 1`
25235fi
25236
cristy8b350f62009-11-15 23:12:43 +000025237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025238$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025239if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025240 $as_echo_n "(cached) " >&6
25241else
25242 ac_check_lib_save_LIBS=$LIBS
25243LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025245/* end confdefs.h. */
25246
25247/* Override any GCC internal prototype to avoid an error.
25248 Use char because int might match the return type of a GCC
25249 builtin and then its argument prototype would still apply. */
25250#ifdef __cplusplus
25251extern "C"
25252#endif
25253char uncompress ();
25254int
25255main ()
25256{
25257return uncompress ();
25258 ;
25259 return 0;
25260}
25261_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025262if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025263 ac_cv_lib_z_uncompress=yes
25264else
cristy8b350f62009-11-15 23:12:43 +000025265 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025266fi
cristy8b350f62009-11-15 23:12:43 +000025267rm -f core conftest.err conftest.$ac_objext \
25268 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025269LIBS=$ac_check_lib_save_LIBS
25270fi
cristy8b350f62009-11-15 23:12:43 +000025271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025272$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025273if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025274 passed=`expr $passed + 1`
25275else
25276 failed=`expr $failed + 1`
25277fi
25278
cristy8b350f62009-11-15 23:12:43 +000025279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025280$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025281if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025282 $as_echo_n "(cached) " >&6
25283else
25284 ac_check_lib_save_LIBS=$LIBS
25285LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025287/* end confdefs.h. */
25288
25289/* Override any GCC internal prototype to avoid an error.
25290 Use char because int might match the return type of a GCC
25291 builtin and then its argument prototype would still apply. */
25292#ifdef __cplusplus
25293extern "C"
25294#endif
25295char deflate ();
25296int
25297main ()
25298{
25299return deflate ();
25300 ;
25301 return 0;
25302}
25303_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025304if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025305 ac_cv_lib_z_deflate=yes
25306else
cristy8b350f62009-11-15 23:12:43 +000025307 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025308fi
cristy8b350f62009-11-15 23:12:43 +000025309rm -f core conftest.err conftest.$ac_objext \
25310 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025311LIBS=$ac_check_lib_save_LIBS
25312fi
cristy8b350f62009-11-15 23:12:43 +000025313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025314$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025315if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025316 passed=`expr $passed + 1`
25317else
25318 failed=`expr $failed + 1`
25319fi
25320
cristy8b350f62009-11-15 23:12:43 +000025321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025322$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025323if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025324 $as_echo_n "(cached) " >&6
25325else
25326 ac_check_lib_save_LIBS=$LIBS
25327LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025329/* end confdefs.h. */
25330
25331/* Override any GCC internal prototype to avoid an error.
25332 Use char because int might match the return type of a GCC
25333 builtin and then its argument prototype would still apply. */
25334#ifdef __cplusplus
25335extern "C"
25336#endif
25337char inflate ();
25338int
25339main ()
25340{
25341return inflate ();
25342 ;
25343 return 0;
25344}
25345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025346if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025347 ac_cv_lib_z_inflate=yes
25348else
cristy8b350f62009-11-15 23:12:43 +000025349 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025350fi
cristy8b350f62009-11-15 23:12:43 +000025351rm -f core conftest.err conftest.$ac_objext \
25352 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025353LIBS=$ac_check_lib_save_LIBS
25354fi
cristy8b350f62009-11-15 23:12:43 +000025355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025356$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025357if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025358 passed=`expr $passed + 1`
25359else
25360 failed=`expr $failed + 1`
25361fi
25362
cristy8b350f62009-11-15 23:12:43 +000025363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025364$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025365if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025366 $as_echo_n "(cached) " >&6
25367else
25368 ac_check_lib_save_LIBS=$LIBS
25369LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025371/* end confdefs.h. */
25372
25373/* Override any GCC internal prototype to avoid an error.
25374 Use char because int might match the return type of a GCC
25375 builtin and then its argument prototype would still apply. */
25376#ifdef __cplusplus
25377extern "C"
25378#endif
25379char gzseek ();
25380int
25381main ()
25382{
25383return gzseek ();
25384 ;
25385 return 0;
25386}
25387_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025388if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025389 ac_cv_lib_z_gzseek=yes
25390else
cristy8b350f62009-11-15 23:12:43 +000025391 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025392fi
cristy8b350f62009-11-15 23:12:43 +000025393rm -f core conftest.err conftest.$ac_objext \
25394 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025395LIBS=$ac_check_lib_save_LIBS
25396fi
cristy8b350f62009-11-15 23:12:43 +000025397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000025398$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025399if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025400 passed=`expr $passed + 1`
25401else
25402 failed=`expr $failed + 1`
25403fi
25404
cristy8b350f62009-11-15 23:12:43 +000025405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025406$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025407if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025408 $as_echo_n "(cached) " >&6
25409else
25410 ac_check_lib_save_LIBS=$LIBS
25411LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025413/* end confdefs.h. */
25414
25415/* Override any GCC internal prototype to avoid an error.
25416 Use char because int might match the return type of a GCC
25417 builtin and then its argument prototype would still apply. */
25418#ifdef __cplusplus
25419extern "C"
25420#endif
25421char gztell ();
25422int
25423main ()
25424{
25425return gztell ();
25426 ;
25427 return 0;
25428}
25429_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025430if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025431 ac_cv_lib_z_gztell=yes
25432else
cristy8b350f62009-11-15 23:12:43 +000025433 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000025434fi
cristy8b350f62009-11-15 23:12:43 +000025435rm -f core conftest.err conftest.$ac_objext \
25436 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025437LIBS=$ac_check_lib_save_LIBS
25438fi
cristy8b350f62009-11-15 23:12:43 +000025439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000025440$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025441if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025442 passed=`expr $passed + 1`
25443else
25444 failed=`expr $failed + 1`
25445fi
25446
cristy8b350f62009-11-15 23:12:43 +000025447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025448$as_echo_n "checking if ZLIB package is complete... " >&6; }
25449 if test $passed -gt 0; then
25450 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025452$as_echo "no -- some components failed test" >&6; }
25453 have_zlib='no (failed tests)'
25454 else
25455 ZLIB_LIBS='-lz'
25456 LIBS="$ZLIB_LIBS $LIBS"
25457
cristy8b350f62009-11-15 23:12:43 +000025458$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025459
cristy8b350f62009-11-15 23:12:43 +000025460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025461$as_echo "yes" >&6; }
25462 have_zlib='yes'
25463 fi
25464 else
cristy8b350f62009-11-15 23:12:43 +000025465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025466$as_echo "no" >&6; }
25467 fi
25468fi
25469 if test "$have_zlib" = 'yes'; then
25470 ZLIB_DELEGATE_TRUE=
25471 ZLIB_DELEGATE_FALSE='#'
25472else
25473 ZLIB_DELEGATE_TRUE='#'
25474 ZLIB_DELEGATE_FALSE=
25475fi
25476
25477
25478
25479#
25480# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
25481#
25482LIB_DL=''
25483if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025485$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025486if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025487 $as_echo_n "(cached) " >&6
25488else
25489 ac_check_lib_save_LIBS=$LIBS
25490LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025492/* end confdefs.h. */
25493
25494/* Override any GCC internal prototype to avoid an error.
25495 Use char because int might match the return type of a GCC
25496 builtin and then its argument prototype would still apply. */
25497#ifdef __cplusplus
25498extern "C"
25499#endif
25500char dlopen ();
25501int
25502main ()
25503{
25504return dlopen ();
25505 ;
25506 return 0;
25507}
25508_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025509if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025510 ac_cv_lib_dl_dlopen=yes
25511else
cristy8b350f62009-11-15 23:12:43 +000025512 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000025513fi
cristy8b350f62009-11-15 23:12:43 +000025514rm -f core conftest.err conftest.$ac_objext \
25515 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025516LIBS=$ac_check_lib_save_LIBS
25517fi
cristy8b350f62009-11-15 23:12:43 +000025518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000025519$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025520if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025521 LIB_DL='-ldl'
25522fi
25523
25524 LIBS="$LIB_DL $LIBS"
25525fi
25526
25527
25528
25529#
25530# Check for Autotrace delegate library.
25531#
25532
25533# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000025534if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025535 withval=$with_autotrace; with_autotrace=$withval
25536else
25537 with_autotrace='no'
25538fi
25539
25540
25541if test "$with_autotrace" != 'yes'; then
25542 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
25543fi
25544
25545have_autotrace='no'
25546AUTOTRACE_CFLAGS=""
25547AUTOTRACE_LIBS=""
25548AUTOTRACE_PKG=""
25549if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025551$as_echo "-------------------------------------------------------------" >&6; }
25552
25553pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025555$as_echo_n "checking for AUTOTRACE... " >&6; }
25556
25557if test -n "$AUTOTRACE_CFLAGS"; then
25558 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
25559 elif test -n "$PKG_CONFIG"; then
25560 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025561 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025562 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25563 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25565 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025566 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
25567else
25568 pkg_failed=yes
25569fi
25570 else
25571 pkg_failed=untried
25572fi
25573if test -n "$AUTOTRACE_LIBS"; then
25574 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
25575 elif test -n "$PKG_CONFIG"; then
25576 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025577 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025578 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25579 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25581 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025582 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
25583else
25584 pkg_failed=yes
25585fi
25586 else
25587 pkg_failed=untried
25588fi
25589
25590
25591
25592if test $pkg_failed = yes; then
25593
25594if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25595 _pkg_short_errors_supported=yes
25596else
25597 _pkg_short_errors_supported=no
25598fi
25599 if test $_pkg_short_errors_supported = yes; then
25600 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
25601 else
25602 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
25603 fi
25604 # Put the nasty error message in config.log where it belongs
25605 echo "$AUTOTRACE_PKG_ERRORS" >&5
25606
cristy8b350f62009-11-15 23:12:43 +000025607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025608$as_echo "no" >&6; }
25609 have_autotrace=no
25610elif test $pkg_failed = untried; then
25611 have_autotrace=no
25612else
25613 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
25614 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000025615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025616$as_echo "yes" >&6; }
25617 have_autotrace=yes
25618fi
cristy8b350f62009-11-15 23:12:43 +000025619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025620$as_echo "" >&6; }
25621fi
25622
25623if test "$have_autotrace" = 'yes'; then
25624 failed=0
25625
cristy8b350f62009-11-15 23:12:43 +000025626$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025627
25628 if test "$with_modules" = 'no'; then
25629 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
25630 fi
25631fi
25632
25633 if test "$have_autotrace" = 'yes'; then
25634 AUTOTRACE_DELEGATE_TRUE=
25635 AUTOTRACE_DELEGATE_FALSE='#'
25636else
25637 AUTOTRACE_DELEGATE_TRUE='#'
25638 AUTOTRACE_DELEGATE_FALSE=
25639fi
25640
25641
25642
25643
25644
25645#
25646# Check for Display Postscript delegate library.
25647#
25648
25649# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000025650if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025651 withval=$with_dps; with_dps=$withval
25652else
25653 with_dps='yes'
25654fi
25655
25656
25657if test "$with_dps" != 'yes'; then
25658 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
25659fi
25660
25661have_dps='no'
25662DPS_LIBS=''
25663if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025665$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000025667$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025669$as_echo "" >&6; }
25670 failed=0
25671 passed=0
25672 PERSIST_CPPFLAGS="$CPPFLAGS"
25673 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000025674 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
25675if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025676 passed=`expr $passed + 1`
25677else
25678 failed=`expr $failed + 1`
25679fi
25680
25681
25682 # DPS issues:
25683 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25684 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25685 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25686 # ImageMagick itself doesn't use -lXt.
25687 have_libdps='no'
25688 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000025689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025690$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025691if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025692 $as_echo_n "(cached) " >&6
25693else
25694 ac_check_lib_save_LIBS=$LIBS
25695LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025697/* end confdefs.h. */
25698
25699/* Override any GCC internal prototype to avoid an error.
25700 Use char because int might match the return type of a GCC
25701 builtin and then its argument prototype would still apply. */
25702#ifdef __cplusplus
25703extern "C"
25704#endif
25705char DPSInitialize ();
25706int
25707main ()
25708{
25709return DPSInitialize ();
25710 ;
25711 return 0;
25712}
25713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025714if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025715 ac_cv_lib_dps_DPSInitialize=yes
25716else
cristy8b350f62009-11-15 23:12:43 +000025717 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025718fi
cristy8b350f62009-11-15 23:12:43 +000025719rm -f core conftest.err conftest.$ac_objext \
25720 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025721LIBS=$ac_check_lib_save_LIBS
25722fi
cristy8b350f62009-11-15 23:12:43 +000025723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025724$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025725if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025726 have_libdps='yes'
25727else
25728 have_libdps='no'
25729fi
25730
25731 if test "$have_libdps" != 'yes'; then
25732 # Unset cache variable so we can try again.
25733 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000025734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025735$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025736if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025737 $as_echo_n "(cached) " >&6
25738else
25739 ac_check_lib_save_LIBS=$LIBS
25740LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025742/* end confdefs.h. */
25743
25744/* Override any GCC internal prototype to avoid an error.
25745 Use char because int might match the return type of a GCC
25746 builtin and then its argument prototype would still apply. */
25747#ifdef __cplusplus
25748extern "C"
25749#endif
25750char DPSInitialize ();
25751int
25752main ()
25753{
25754return DPSInitialize ();
25755 ;
25756 return 0;
25757}
25758_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025759if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025760 ac_cv_lib_dps_DPSInitialize=yes
25761else
cristy8b350f62009-11-15 23:12:43 +000025762 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025763fi
cristy8b350f62009-11-15 23:12:43 +000025764rm -f core conftest.err conftest.$ac_objext \
25765 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025766LIBS=$ac_check_lib_save_LIBS
25767fi
cristy8b350f62009-11-15 23:12:43 +000025768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025769$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025770if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025771 have_libdps='yes'
25772else
25773 have_libdps='no'
25774fi
25775
25776 if test "$have_libdps" = 'yes'; then
25777 LIBDPS_XT='-lXt'
25778 fi
25779 fi
25780 if test "$have_libdps" = 'yes'; then
25781 passed=`expr $passed + 1`
25782 else
25783 failed=`expr $failed + 1`
25784 fi
cristy8b350f62009-11-15 23:12:43 +000025785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025786$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025787if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025788 $as_echo_n "(cached) " >&6
25789else
25790 ac_check_lib_save_LIBS=$LIBS
25791LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025793/* end confdefs.h. */
25794
25795/* Override any GCC internal prototype to avoid an error.
25796 Use char because int might match the return type of a GCC
25797 builtin and then its argument prototype would still apply. */
25798#ifdef __cplusplus
25799extern "C"
25800#endif
25801char XDPSPixelsPerPoint ();
25802int
25803main ()
25804{
25805return XDPSPixelsPerPoint ();
25806 ;
25807 return 0;
25808}
25809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025810if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025811 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25812else
cristy8b350f62009-11-15 23:12:43 +000025813 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000025814fi
cristy8b350f62009-11-15 23:12:43 +000025815rm -f core conftest.err conftest.$ac_objext \
25816 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025817LIBS=$ac_check_lib_save_LIBS
25818fi
cristy8b350f62009-11-15 23:12:43 +000025819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000025820$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025821if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025822 passed=`expr $passed + 1`
25823else
25824 failed=`expr $failed + 1`
25825fi
25826
cristy8b350f62009-11-15 23:12:43 +000025827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025828$as_echo_n "checking if DPS package is complete... " >&6; }
25829 if test $passed -gt 0; then
25830 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025832$as_echo "no -- some components failed test" >&6; }
25833 have_dps='no (failed tests)'
25834 CPPFLAGS="$PERSIST_CPPFLAGS"
25835 else
25836 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
25837 LIBS="$DPS_LIBS $LIBS"
25838
cristy8b350f62009-11-15 23:12:43 +000025839$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025840
cristy8b350f62009-11-15 23:12:43 +000025841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025842$as_echo "yes" >&6; }
25843 have_dps='yes'
25844 fi
25845 else
cristy8b350f62009-11-15 23:12:43 +000025846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025847$as_echo "no" >&6; }
25848 CPPFLAGS=$PERSIST_CPPFLAGS
25849 fi
25850fi
25851 if test "$have_dps" = 'yes'; then
25852 DPS_DELEGATE_TRUE=
25853 DPS_DELEGATE_FALSE='#'
25854else
25855 DPS_DELEGATE_TRUE='#'
25856 DPS_DELEGATE_FALSE=
25857fi
25858
25859
25860
25861
25862#
25863# Check for DJVU delegate library.
25864#
25865
25866# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000025867if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025868 withval=$with_djvu; with_djvu=$withval
25869else
25870 with_djvu='yes'
25871fi
25872
25873
25874if test "$with_djvu" != 'yes'; then
25875 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
25876fi
25877
25878have_djvu='no'
25879DJVU_LIBS=''
25880if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025882$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000025884$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025886$as_echo "" >&6; }
25887 failed=0
25888 passed=0
cristy8b350f62009-11-15 23:12:43 +000025889 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25890if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025891 passed=`expr $passed + 1`
25892else
25893 failed=`expr $failed + 1`
25894fi
25895
25896
cristy8b350f62009-11-15 23:12:43 +000025897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000025898$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025899if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025900 $as_echo_n "(cached) " >&6
25901else
25902 ac_check_lib_save_LIBS=$LIBS
25903LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025905/* end confdefs.h. */
25906
25907/* Override any GCC internal prototype to avoid an error.
25908 Use char because int might match the return type of a GCC
25909 builtin and then its argument prototype would still apply. */
25910#ifdef __cplusplus
25911extern "C"
25912#endif
25913char ddjvu_context_create ();
25914int
25915main ()
25916{
25917return ddjvu_context_create ();
25918 ;
25919 return 0;
25920}
25921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025922if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025923 ac_cv_lib_djvulibre_ddjvu_context_create=yes
25924else
cristy8b350f62009-11-15 23:12:43 +000025925 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000025926fi
cristy8b350f62009-11-15 23:12:43 +000025927rm -f core conftest.err conftest.$ac_objext \
25928 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025929LIBS=$ac_check_lib_save_LIBS
25930fi
cristy8b350f62009-11-15 23:12:43 +000025931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000025932$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025933if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025934 passed=`expr $passed + 1`
25935else
25936 failed=`expr $failed + 1`
25937fi
25938
cristy8b350f62009-11-15 23:12:43 +000025939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025940$as_echo_n "checking if DJVU package is complete... " >&6; }
25941 if test $passed -gt 0; then
25942 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025944$as_echo "no -- some components failed test" >&6; }
25945 have_djvu='no (failed tests)'
25946 else
25947 DJVU_LIBS='-ldjvulibre'
25948 LIBS="$DJVU_LIBS $LIBS"
25949
cristy8b350f62009-11-15 23:12:43 +000025950$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025951
cristy8b350f62009-11-15 23:12:43 +000025952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025953$as_echo "yes" >&6; }
25954 have_djvu='yes'
25955 fi
25956 else
cristy8b350f62009-11-15 23:12:43 +000025957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025958$as_echo "no" >&6; }
25959 fi
25960fi
25961 if test "$have_djvu" = 'yes'; then
25962 DJVU_DELEGATE_TRUE=
25963 DJVU_DELEGATE_FALSE='#'
25964else
25965 DJVU_DELEGATE_TRUE='#'
25966 DJVU_DELEGATE_FALSE=
25967fi
25968
25969
25970
25971
25972#
cristy430a7312010-01-21 20:44:04 +000025973# Set DejaVu font directory.
25974#
25975
25976# Check whether --with-dejavu-font-dir was given.
25977if test "${with_dejavu_font_dir+set}" = set; then :
25978 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
25979else
25980 with_dejavu_font_dir='default'
25981fi
25982
25983
25984if test "$with_dejavu_font_dir" != 'default'; then
25985 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
25986fi
25987
25988
25989#
cristy3ed852e2009-09-05 21:47:34 +000025990# Check for FFTW delegate library.
25991#
25992
25993# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000025994if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025995 withval=$with_fftw; with_fftw=$withval
25996else
25997 with_fftw='yes'
25998fi
25999
26000
26001if test "$with_fftw" != 'yes'; then
26002 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26003fi
26004
26005have_fftw='no'
26006FFTW_LIBS=''
26007if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026009$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026011$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026013$as_echo "" >&6; }
26014 failed=0
26015 passed=0
cristy8b350f62009-11-15 23:12:43 +000026016 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26017if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026018 passed=`expr $passed + 1`
26019else
26020 failed=`expr $failed + 1`
26021fi
26022
26023
cristy8b350f62009-11-15 23:12:43 +000026024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026025$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026026if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026027 $as_echo_n "(cached) " >&6
26028else
26029 ac_check_lib_save_LIBS=$LIBS
26030LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026032/* end confdefs.h. */
26033
26034/* Override any GCC internal prototype to avoid an error.
26035 Use char because int might match the return type of a GCC
26036 builtin and then its argument prototype would still apply. */
26037#ifdef __cplusplus
26038extern "C"
26039#endif
26040char fftw_execute ();
26041int
26042main ()
26043{
26044return fftw_execute ();
26045 ;
26046 return 0;
26047}
26048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026049if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026050 ac_cv_lib_fftw3_fftw_execute=yes
26051else
cristy8b350f62009-11-15 23:12:43 +000026052 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026053fi
cristy8b350f62009-11-15 23:12:43 +000026054rm -f core conftest.err conftest.$ac_objext \
26055 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026056LIBS=$ac_check_lib_save_LIBS
26057fi
cristy8b350f62009-11-15 23:12:43 +000026058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026059$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026060if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026061 passed=`expr $passed + 1`
26062else
26063 failed=`expr $failed + 1`
26064fi
26065
cristy8b350f62009-11-15 23:12:43 +000026066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026067$as_echo_n "checking if FFTW package is complete... " >&6; }
26068 if test $passed -gt 0; then
26069 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026071$as_echo "no -- some components failed test" >&6; }
26072 have_fftw='no (failed tests)'
26073 else
26074 FFTW_LIBS='-lfftw3'
26075 LIBS="$FFTW_LIBS $LIBS"
26076
cristy8b350f62009-11-15 23:12:43 +000026077$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026078
cristy8b350f62009-11-15 23:12:43 +000026079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026080$as_echo "yes" >&6; }
26081 have_fftw='yes'
26082 fi
26083 else
cristy8b350f62009-11-15 23:12:43 +000026084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026085$as_echo "no" >&6; }
26086 fi
26087fi
26088 if test "$have_fftw" = 'yes'; then
26089 FFTW_DELEGATE_TRUE=
26090 FFTW_DELEGATE_FALSE='#'
26091else
26092 FFTW_DELEGATE_TRUE='#'
26093 FFTW_DELEGATE_FALSE=
26094fi
26095
26096
26097
26098
26099#
26100# Check for FlashPIX delegate library.
26101#
26102
26103# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026104if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026105 withval=$with_fpx; with_fpx=$withval
26106else
26107 with_fpx='yes'
26108fi
26109
26110
26111if test "$with_fpx" != 'yes'; then
26112 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26113fi
26114
26115have_fpx='no'
26116FPX_LIBS=''
26117if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026119$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026121$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026123$as_echo "" >&6; }
26124 failed=0
26125 passed=0
26126 ac_ext=cpp
26127ac_cpp='$CXXCPP $CPPFLAGS'
26128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26131
26132
cristy8b350f62009-11-15 23:12:43 +000026133ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26134if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026135 passed=`expr $passed + 1`
26136else
26137 failed=`expr $failed + 1`
26138fi
26139
26140
cristy8b350f62009-11-15 23:12:43 +000026141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026142$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026143if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026144 $as_echo_n "(cached) " >&6
26145else
26146 ac_check_lib_save_LIBS=$LIBS
26147LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026149/* end confdefs.h. */
26150
26151/* Override any GCC internal prototype to avoid an error.
26152 Use char because int might match the return type of a GCC
26153 builtin and then its argument prototype would still apply. */
26154#ifdef __cplusplus
26155extern "C"
26156#endif
26157char FPX_OpenImageByFilename ();
26158int
26159main ()
26160{
26161return FPX_OpenImageByFilename ();
26162 ;
26163 return 0;
26164}
26165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026166if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026167 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26168else
cristy8b350f62009-11-15 23:12:43 +000026169 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026170fi
cristy8b350f62009-11-15 23:12:43 +000026171rm -f core conftest.err conftest.$ac_objext \
26172 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026173LIBS=$ac_check_lib_save_LIBS
26174fi
cristy8b350f62009-11-15 23:12:43 +000026175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026176$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026177if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026178 passed=`expr $passed + 1`
26179else
26180 failed=`expr $failed + 1`
26181fi
26182
26183 ac_ext=c
26184ac_cpp='$CPP $CPPFLAGS'
26185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26187ac_compiler_gnu=$ac_cv_c_compiler_gnu
26188
cristy8b350f62009-11-15 23:12:43 +000026189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026190$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26191 if test $passed -gt 0; then
26192 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026194$as_echo "no -- some components failed test" >&6; }
26195 have_fpx='no (failed tests)'
26196 else
26197 FPX_LIBS='-lfpx'
26198
cristy8b350f62009-11-15 23:12:43 +000026199$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026200
cristy8b350f62009-11-15 23:12:43 +000026201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026202$as_echo "yes" >&6; }
26203 have_fpx='yes'
26204 PERLMAINCC="$CXX"
26205 fi
26206 else
cristy8b350f62009-11-15 23:12:43 +000026207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026208$as_echo "no" >&6; }
26209 fi
26210fi
26211 if test "$have_fpx" = 'yes'; then
26212 FPX_DELEGATE_TRUE=
26213 FPX_DELEGATE_FALSE='#'
26214else
26215 FPX_DELEGATE_TRUE='#'
26216 FPX_DELEGATE_FALSE=
26217fi
26218
26219
26220
26221
26222#
26223# Check for fontconfig delegate library.
26224#
26225
26226# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026227if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026228 withval=$with_fontconfig; with_fontconfig=$withval
26229else
26230 with_fontconfig=$have_x
26231fi
26232
26233
26234if test "$with_fontconfig" != 'yes'; then
26235 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26236fi
26237
26238have_fontconfig='no'
26239FONTCONFIG_CFLAGS=""
26240FONTCONFIG_LIBS=""
26241FONTCONFIG_PKG=""
26242if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026244$as_echo "-------------------------------------------------------------" >&6; }
26245
26246pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026248$as_echo_n "checking for FONTCONFIG... " >&6; }
26249
26250if test -n "$FONTCONFIG_CFLAGS"; then
26251 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26252 elif test -n "$PKG_CONFIG"; then
26253 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026254 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026255 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26256 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26258 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026259 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26260else
26261 pkg_failed=yes
26262fi
26263 else
26264 pkg_failed=untried
26265fi
26266if test -n "$FONTCONFIG_LIBS"; then
26267 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26268 elif test -n "$PKG_CONFIG"; then
26269 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026270 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026271 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26272 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26274 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026275 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26276else
26277 pkg_failed=yes
26278fi
26279 else
26280 pkg_failed=untried
26281fi
26282
26283
26284
26285if test $pkg_failed = yes; then
26286
26287if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26288 _pkg_short_errors_supported=yes
26289else
26290 _pkg_short_errors_supported=no
26291fi
26292 if test $_pkg_short_errors_supported = yes; then
26293 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26294 else
26295 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26296 fi
26297 # Put the nasty error message in config.log where it belongs
26298 echo "$FONTCONFIG_PKG_ERRORS" >&5
26299
cristy8b350f62009-11-15 23:12:43 +000026300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026301$as_echo "no" >&6; }
26302 have_fontconfig=no
26303elif test $pkg_failed = untried; then
26304 have_fontconfig=no
26305else
26306 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26307 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026309$as_echo "yes" >&6; }
26310 have_fontconfig=yes
26311fi
cristy8b350f62009-11-15 23:12:43 +000026312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026313$as_echo "" >&6; }
26314fi
26315
26316if test "$have_fontconfig" = 'yes'; then
26317
cristy8b350f62009-11-15 23:12:43 +000026318$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026319
26320 if test "$with_modules" = 'no'; then
26321 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
26322 fi
26323fi
26324
26325 if test "$have_fontconfig" = 'yes'; then
26326 FONTCONFIG_DELEGATE_TRUE=
26327 FONTCONFIG_DELEGATE_FALSE='#'
26328else
26329 FONTCONFIG_DELEGATE_TRUE='#'
26330 FONTCONFIG_DELEGATE_FALSE=
26331fi
26332
26333
26334
26335
26336
26337#
26338# Check for freetype delegate library.
26339#
26340
26341# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026342if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026343 withval=$with_freetype; with_freetype=$withval
26344else
26345 with_freetype='yes'
26346fi
26347
26348
26349
26350if test "$with_freetype" != 'yes'; then
26351 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26352fi
26353
26354have_freetype='no'
26355FREETYPE_LIBS=''
26356if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026358$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026360$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026362$as_echo "" >&6; }
26363 failed=0
26364 passed=0
cristy66291112009-10-03 22:44:36 +000026365 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026366 PERSIST_CPPFLAGS="$CPPFLAGS"
26367 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26368 :
26369 else
26370 freetype_config=''
26371 for ac_prog in freetype-config
26372do
26373 # Extract the first word of "$ac_prog", so it can be a program name with args.
26374set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026376$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026377if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026378 $as_echo_n "(cached) " >&6
26379else
26380 if test -n "$freetype_config"; then
26381 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26382else
26383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26384for as_dir in $PATH
26385do
26386 IFS=$as_save_IFS
26387 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26390 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026392 break 2
26393 fi
26394done
cristy8b350f62009-11-15 23:12:43 +000026395 done
cristy3ed852e2009-09-05 21:47:34 +000026396IFS=$as_save_IFS
26397
26398fi
26399fi
26400freetype_config=$ac_cv_prog_freetype_config
26401if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000026402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000026403$as_echo "$freetype_config" >&6; }
26404else
cristy8b350f62009-11-15 23:12:43 +000026405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026406$as_echo "no" >&6; }
26407fi
26408
26409
26410 test -n "$freetype_config" && break
26411done
26412 if test -n "$freetype_config"; then
26413 freetype_cflags=`$freetype_config --cflags`
26414 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000026415 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000026416 CPPFLAGS="$freetype_cflags $CPPFLAGS"
26417 fi
26418 fi
26419
26420 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000026421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000026422$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026423if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026424 $as_echo_n "(cached) " >&6
26425else
26426 ac_check_lib_save_LIBS=$LIBS
26427LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026429/* end confdefs.h. */
26430
26431/* Override any GCC internal prototype to avoid an error.
26432 Use char because int might match the return type of a GCC
26433 builtin and then its argument prototype would still apply. */
26434#ifdef __cplusplus
26435extern "C"
26436#endif
26437char FT_Init_FreeType ();
26438int
26439main ()
26440{
26441return FT_Init_FreeType ();
26442 ;
26443 return 0;
26444}
26445_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026446if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026447 ac_cv_lib_freetype_FT_Init_FreeType=yes
26448else
cristy8b350f62009-11-15 23:12:43 +000026449 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000026450fi
cristy8b350f62009-11-15 23:12:43 +000026451rm -f core conftest.err conftest.$ac_objext \
26452 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026453LIBS=$ac_check_lib_save_LIBS
26454fi
cristy8b350f62009-11-15 23:12:43 +000026455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000026456$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026457if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026458 FREETYPE_LIBS='-lfreetype'
26459fi
26460
26461 if test "$FREETYPE_LIBS" != ''; then
26462 passed=`expr $passed + 1`
26463 else
26464 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000026465 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026466 fi
26467 fi
26468
cristy8b350f62009-11-15 23:12:43 +000026469 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
26470if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026471 FT2BUILD_H='#include <ft2build.h>'
26472else
26473 ft2build=''
26474fi
26475
26476
cristy8b350f62009-11-15 23:12:43 +000026477 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
26478"
26479if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026480 have_freetype_h='yes'
26481else
26482 have_freetype_h='no'
26483fi
26484
26485
26486 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
26487 passed=`expr $passed + 1`
26488 else
26489 failed=`expr $failed + 1`
26490 CPPFLAGS="$PERSIST_CPPFLAGS"
26491 fi
26492
cristy8b350f62009-11-15 23:12:43 +000026493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026494$as_echo_n "checking if FreeType package is complete... " >&6; }
26495 if test $passed -gt 0; then
26496 if test $failed -gt 0; then
26497 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026499$as_echo "no -- some components failed test" >&6; }
26500 have_freetype='no (failed tests)'
26501 else
26502 LIBS="$FREETYPE_LIBS $LIBS"
26503
cristy8b350f62009-11-15 23:12:43 +000026504$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026505
26506 if test "$ac_cv_header_ft2build_h" = 'yes'; then
26507
cristy8b350f62009-11-15 23:12:43 +000026508$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026509
26510 fi
cristy8b350f62009-11-15 23:12:43 +000026511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026512$as_echo "yes" >&6; }
26513 have_freetype='yes'
26514 fi
26515 else
cristy8b350f62009-11-15 23:12:43 +000026516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026517$as_echo "no" >&6; }
26518 fi
26519fi
26520 if test "$have_freetype" = 'yes'; then
26521 FREETYPE_DELEGATE_TRUE=
26522 FREETYPE_DELEGATE_FALSE='#'
26523else
26524 FREETYPE_DELEGATE_TRUE='#'
26525 FREETYPE_DELEGATE_FALSE=
26526fi
26527
26528
26529
26530
26531
26532#
26533# Check for Ghostscript library or framework.
26534#
26535# Test for iapi.h & test for gsapi_new_instance in -lgs
26536# or -framework Ghostscript
26537
26538
26539# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000026540if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026541 withval=$with_gslib; with_gslib=$withval
26542else
26543 with_gslib='no'
26544fi
26545
26546
cristyb7931f12009-09-25 10:22:21 +000026547gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000026548if test "$with_gslib" != 'yes'; then
26549 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
26550fi
26551
26552have_gslib='no'
26553GS_LIBS=''
26554if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026556$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000026558$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026560$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000026561 framework=0
cristy3ed852e2009-09-05 21:47:34 +000026562 failed=0
26563 passed=0
cristy8b350f62009-11-15 23:12:43 +000026564 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
26565if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026566 passed=`expr $passed + 1`
26567else
26568 failed=`expr $failed + 1`
26569fi
26570
26571
cristy8b350f62009-11-15 23:12:43 +000026572 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
26573if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026574 passed=`expr $passed + 1`
26575else
26576 failed=`expr $failed + 1`
26577fi
26578
26579
cristy8b350f62009-11-15 23:12:43 +000026580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000026581$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026582if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026583 $as_echo_n "(cached) " >&6
26584else
26585 ac_check_framework_save_LIBS=$LIBS
26586LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026588/* end confdefs.h. */
26589
26590/* Override any GCC internal prototype to avoid an error.
26591 Use char because int might match the return type of a GCC
26592 builtin and then its argument prototype would still apply. */
26593#ifdef __cplusplus
26594extern "C"
26595#endif
26596char gsapi_new_instance ();
26597int
26598main ()
26599{
26600return gsapi_new_instance ();
26601 ;
26602 return 0;
26603}
26604_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026605if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026606 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
26607else
cristy8b350f62009-11-15 23:12:43 +000026608 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000026609fi
cristy8b350f62009-11-15 23:12:43 +000026610rm -f core conftest.err conftest.$ac_objext \
26611 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026612LIBS=$ac_check_framework_save_LIBS
26613fi
cristy8b350f62009-11-15 23:12:43 +000026614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000026615$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026616if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026617 framework=`expr $framework + 1`
26618else
cristy8b350f62009-11-15 23:12:43 +000026619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000026620$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026621if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026622 $as_echo_n "(cached) " >&6
26623else
26624 ac_check_lib_save_LIBS=$LIBS
26625LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026627/* end confdefs.h. */
26628
26629/* Override any GCC internal prototype to avoid an error.
26630 Use char because int might match the return type of a GCC
26631 builtin and then its argument prototype would still apply. */
26632#ifdef __cplusplus
26633extern "C"
26634#endif
26635char gsapi_new_instance ();
26636int
26637main ()
26638{
26639return gsapi_new_instance ();
26640 ;
26641 return 0;
26642}
26643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026644if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026645 ac_cv_lib_gs_gsapi_new_instance=yes
26646else
cristy8b350f62009-11-15 23:12:43 +000026647 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000026648fi
cristy8b350f62009-11-15 23:12:43 +000026649rm -f core conftest.err conftest.$ac_objext \
26650 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026651LIBS=$ac_check_lib_save_LIBS
26652fi
cristy8b350f62009-11-15 23:12:43 +000026653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000026654$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026655if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026656 passed=`expr $passed + 1`
26657else
26658 failed=`expr $failed + 1`
26659fi
26660
26661fi
cristy8b350f62009-11-15 23:12:43 +000026662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026663$as_echo_n "checking if Ghostscript package is complete... " >&6; }
26664 if test $passed -gt 0; then
26665 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026667$as_echo "no -- some components failed test" >&6; }
26668 have_gslib='no (failed tests)'
26669 else
26670 if test $framework -gt 0; then
26671 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000026672 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000026673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000026674$as_echo "yes, using framework." >&6; }
26675 else
cristy8b350f62009-11-15 23:12:43 +000026676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000026677$as_echo "yes, using library." >&6; }
26678 GS_LIBS='-lgs'
26679 fi
26680 LIBS="$GS_LIBS $LIBS"
26681
cristy8b350f62009-11-15 23:12:43 +000026682$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026683
26684 have_gslib='yes'
26685 fi
26686 else
cristy8b350f62009-11-15 23:12:43 +000026687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026688$as_echo "no" >&6; }
26689 fi
26690fi
26691 if test "$have_gslib" = 'yes'; then
26692 GS_DELEGATE_TRUE=
26693 GS_DELEGATE_FALSE='#'
26694else
26695 GS_DELEGATE_TRUE='#'
26696 GS_DELEGATE_FALSE=
26697fi
26698
26699
26700
26701# Set default font search path
26702
26703# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000026704if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026705 withval=$with_fontpath; with_fontpath=$withval
26706else
26707 with_fontpath=''
26708fi
26709
26710
26711if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26712 with_fontpath=''
26713else
26714
26715cat >>confdefs.h <<_ACEOF
26716#define MAGICK_FONT_PATH "$with_fontpath"
26717_ACEOF
26718
26719fi
26720if test "$with_fontpath=" != ''; then
26721 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26722fi
26723
26724# Set Ghostscript font directory
26725
26726# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000026727if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026728 withval=$with_gs_font_dir; with_gs_font_dir=$withval
26729else
26730 with_gs_font_dir='default'
26731fi
26732
26733
26734if test "$with_gs_font_dir" != 'default'; then
26735 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26736fi
26737
26738
26739#
26740# Check for GVC delegate library.
26741#
26742
26743# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000026744if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026745 withval=$with_gvc; with_gvc=$withval
26746else
26747 with_gvc='yes'
26748fi
26749
26750
26751if test "$with_gvc" != 'yes'; then
26752 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26753fi
26754
26755GVC_PKG=""
26756if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026758$as_echo "-------------------------------------------------------------" >&6; }
26759
26760pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000026762$as_echo_n "checking for GVC... " >&6; }
26763
26764if test -n "$GVC_CFLAGS"; then
26765 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26766 elif test -n "$PKG_CONFIG"; then
26767 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026768 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026769 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26770 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26772 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026773 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26774else
26775 pkg_failed=yes
26776fi
26777 else
26778 pkg_failed=untried
26779fi
26780if test -n "$GVC_LIBS"; then
26781 pkg_cv_GVC_LIBS="$GVC_LIBS"
26782 elif test -n "$PKG_CONFIG"; then
26783 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026784 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026785 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26786 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26788 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026789 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26790else
26791 pkg_failed=yes
26792fi
26793 else
26794 pkg_failed=untried
26795fi
26796
26797
26798
26799if test $pkg_failed = yes; then
26800
26801if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26802 _pkg_short_errors_supported=yes
26803else
26804 _pkg_short_errors_supported=no
26805fi
26806 if test $_pkg_short_errors_supported = yes; then
26807 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26808 else
26809 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26810 fi
26811 # Put the nasty error message in config.log where it belongs
26812 echo "$GVC_PKG_ERRORS" >&5
26813
cristy8b350f62009-11-15 23:12:43 +000026814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026815$as_echo "no" >&6; }
26816 have_gvc=no
26817elif test $pkg_failed = untried; then
26818 have_gvc=no
26819else
26820 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
26821 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000026822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026823$as_echo "yes" >&6; }
26824 have_gvc=yes
26825fi
cristy8b350f62009-11-15 23:12:43 +000026826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026827$as_echo "" >&6; }
26828fi
26829
26830if test "$have_gvc" = 'yes'; then
26831
cristy8b350f62009-11-15 23:12:43 +000026832$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026833
26834 if test "$with_modules" = 'no'; then
26835 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
26836 fi
26837fi
26838
26839 if test "$have_gvc" = 'yes'; then
26840 GVC_DELEGATE_TRUE=
26841 GVC_DELEGATE_FALSE='#'
26842else
26843 GVC_DELEGATE_TRUE='#'
26844 GVC_DELEGATE_FALSE=
26845fi
26846
26847
26848
26849
26850
26851#
26852# Check for JBIG delegate library.
26853#
26854
26855
26856# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000026857if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026858 withval=$with_jbig; with_jbig=$withval
26859else
26860 with_jbig='yes'
26861fi
26862
26863
26864have_jbig='no'
26865JBIG_LIBS=''
26866if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026868$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026870$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026872$as_echo "" >&6; }
26873 failed=0
26874 passed=0
cristy8b350f62009-11-15 23:12:43 +000026875 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
26876if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026877 passed=`expr $passed + 1`
26878else
26879 failed=`expr $failed + 1`
26880fi
26881
26882
cristy8b350f62009-11-15 23:12:43 +000026883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000026884$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026885if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026886 $as_echo_n "(cached) " >&6
26887else
26888 ac_check_lib_save_LIBS=$LIBS
26889LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026891/* end confdefs.h. */
26892
26893/* Override any GCC internal prototype to avoid an error.
26894 Use char because int might match the return type of a GCC
26895 builtin and then its argument prototype would still apply. */
26896#ifdef __cplusplus
26897extern "C"
26898#endif
26899char jbg_dec_init ();
26900int
26901main ()
26902{
26903return jbg_dec_init ();
26904 ;
26905 return 0;
26906}
26907_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026908if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026909 ac_cv_lib_jbig_jbg_dec_init=yes
26910else
cristy8b350f62009-11-15 23:12:43 +000026911 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000026912fi
cristy8b350f62009-11-15 23:12:43 +000026913rm -f core conftest.err conftest.$ac_objext \
26914 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026915LIBS=$ac_check_lib_save_LIBS
26916fi
cristy8b350f62009-11-15 23:12:43 +000026917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000026918$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026919if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026920 passed=`expr $passed + 1`
26921else
26922 failed=`expr $failed + 1`
26923fi
26924
cristy8b350f62009-11-15 23:12:43 +000026925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026926$as_echo_n "checking if JBIG package is complete... " >&6; }
26927 if test $passed -gt 0; then
26928 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026930$as_echo "no -- some components failed test" >&6; }
26931 have_jbig='no (failed tests)'
26932 else
26933 JBIG_LIBS='-ljbig'
26934 LIBS="$JBIG_LIBS $LIBS"
26935
cristy8b350f62009-11-15 23:12:43 +000026936$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026937
cristy8b350f62009-11-15 23:12:43 +000026938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026939$as_echo "yes" >&6; }
26940 have_jbig='yes'
26941 fi
26942 else
cristy8b350f62009-11-15 23:12:43 +000026943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026944$as_echo "no" >&6; }
26945 fi
26946fi
26947 if test "$have_jbig" = 'yes'; then
26948 JBIG_DELEGATE_TRUE=
26949 JBIG_DELEGATE_FALSE='#'
26950else
26951 JBIG_DELEGATE_TRUE='#'
26952 JBIG_DELEGATE_FALSE=
26953fi
26954
26955
26956
26957
26958#
26959# Check for JPEG delegate library.
26960#
26961
26962# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000026963if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026964 withval=$with_jpeg; with_jpeg=$withval
26965else
26966 with_jpeg='yes'
26967fi
26968
26969
26970if test "$with_jpeg" != 'yes'; then
26971 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26972fi
26973
26974have_jpeg='no'
26975JPEG_LIBS=''
26976if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026978$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026980$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026982$as_echo "" >&6; }
26983 failed=0
26984 passed=0
cristy8b350f62009-11-15 23:12:43 +000026985 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26986if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026987 passed=`expr $passed + 1`
26988else
26989 failed=`expr $failed + 1`
26990fi
26991
26992
cristy8b350f62009-11-15 23:12:43 +000026993 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26994if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026995 passed=`expr $passed + 1`
26996else
26997 failed=`expr $failed + 1`
26998fi
26999
27000
cristy8b350f62009-11-15 23:12:43 +000027001 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27002if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027003 passed=`expr $passed + 1`
27004else
27005 failed=`expr $failed + 1`
27006fi
27007
27008
cristy8b350f62009-11-15 23:12:43 +000027009 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27010if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027011 passed=`expr $passed + 1`
27012else
27013 failed=`expr $failed + 1`
27014fi
27015
27016
cristy8b350f62009-11-15 23:12:43 +000027017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027018$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027019if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027020 $as_echo_n "(cached) " >&6
27021else
27022 ac_check_lib_save_LIBS=$LIBS
27023LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027025/* end confdefs.h. */
27026
27027/* Override any GCC internal prototype to avoid an error.
27028 Use char because int might match the return type of a GCC
27029 builtin and then its argument prototype would still apply. */
27030#ifdef __cplusplus
27031extern "C"
27032#endif
27033char jpeg_read_header ();
27034int
27035main ()
27036{
27037return jpeg_read_header ();
27038 ;
27039 return 0;
27040}
27041_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027042if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027043 ac_cv_lib_jpeg_jpeg_read_header=yes
27044else
cristy8b350f62009-11-15 23:12:43 +000027045 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027046fi
cristy8b350f62009-11-15 23:12:43 +000027047rm -f core conftest.err conftest.$ac_objext \
27048 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027049LIBS=$ac_check_lib_save_LIBS
27050fi
cristy8b350f62009-11-15 23:12:43 +000027051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027052$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027053if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027054 passed=`expr $passed + 1`
27055else
27056 failed=`expr $failed + 1`
27057fi
27058
27059
27060# Test for compatible JPEG library
27061if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027063$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027064if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027065 $as_echo_n "(cached) " >&6
27066else
cristy8b350f62009-11-15 23:12:43 +000027067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027068/* end confdefs.h. */
27069#include <stdio.h>
27070#include <stdlib.h>
27071#include <jpeglib.h>
27072
27073int
27074main ()
27075{
27076
27077#if JPEG_LIB_VERSION < 62
27078#error IJG JPEG library must be version 6b or newer!
27079#endif
27080return 0;
27081
27082 ;
27083 return 0;
27084}
27085_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027086if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027087 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27088else
cristy8b350f62009-11-15 23:12:43 +000027089 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027090fi
cristy3ed852e2009-09-05 21:47:34 +000027091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27092fi
cristy8b350f62009-11-15 23:12:43 +000027093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027094$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27095fi
cristy8b350f62009-11-15 23:12:43 +000027096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027097$as_echo_n "checking if JPEG package is complete... " >&6; }
27098 if test $passed -gt 0; then
27099 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027101$as_echo "no -- some components failed test" >&6; }
27102 have_jpeg='no (failed tests)'
27103 else
27104 JPEG_LIBS='-ljpeg'
27105 LIBS="$JPEG_LIBS $LIBS"
27106
cristy8b350f62009-11-15 23:12:43 +000027107$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027108
cristy8b350f62009-11-15 23:12:43 +000027109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027110$as_echo "yes" >&6; }
27111 have_jpeg='yes'
27112 fi
27113 else
cristy8b350f62009-11-15 23:12:43 +000027114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027115$as_echo "no" >&6; }
27116 fi
27117fi
27118 if test "$have_jpeg" = 'yes'; then
27119 JPEG_DELEGATE_TRUE=
27120 JPEG_DELEGATE_FALSE='#'
27121else
27122 JPEG_DELEGATE_TRUE='#'
27123 JPEG_DELEGATE_FALSE=
27124fi
27125
27126
27127
27128
27129#
27130# Check for JPEG Version 2 delegate library.
27131#
27132
27133# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027134if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027135 withval=$with_jp2; with_jp2=$withval
27136else
27137 with_jp2='yes'
27138fi
27139
27140
27141if test "$with_jp2" != 'yes'; then
27142 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27143fi
27144
27145have_jp2='no'
27146JP2_LIBS=''
27147if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027149$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027151$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027153$as_echo "" >&6; }
27154 failed=0
27155 passed=0
cristy8b350f62009-11-15 23:12:43 +000027156 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27157if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027158 passed=`expr $passed + 1`
27159else
27160 failed=`expr $failed + 1`
27161fi
27162
27163
cristy8b350f62009-11-15 23:12:43 +000027164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027165$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027166if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027167 $as_echo_n "(cached) " >&6
27168else
27169 ac_check_lib_save_LIBS=$LIBS
27170LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027172/* end confdefs.h. */
27173
27174/* Override any GCC internal prototype to avoid an error.
27175 Use char because int might match the return type of a GCC
27176 builtin and then its argument prototype would still apply. */
27177#ifdef __cplusplus
27178extern "C"
27179#endif
27180char jas_stream_fopen ();
27181int
27182main ()
27183{
27184return jas_stream_fopen ();
27185 ;
27186 return 0;
27187}
27188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027189if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027190 ac_cv_lib_jasper_jas_stream_fopen=yes
27191else
cristy8b350f62009-11-15 23:12:43 +000027192 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027193fi
cristy8b350f62009-11-15 23:12:43 +000027194rm -f core conftest.err conftest.$ac_objext \
27195 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027196LIBS=$ac_check_lib_save_LIBS
27197fi
cristy8b350f62009-11-15 23:12:43 +000027198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027199$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027200if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027201 passed=`expr $passed + 1`
27202else
27203 failed=`expr $failed + 1`
27204fi
27205
cristy8b350f62009-11-15 23:12:43 +000027206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027207$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27208 if test $passed -gt 0; then
27209 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027211$as_echo "no -- some components failed test" >&6; }
27212 have_jp2='no (failed tests)'
27213 else
27214 JP2_LIBS='-ljasper'
27215 LIBS="$JP2_LIBS $LIBS"
27216
cristy8b350f62009-11-15 23:12:43 +000027217$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027218
cristy8b350f62009-11-15 23:12:43 +000027219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027220$as_echo "yes" >&6; }
27221 have_jp2='yes'
27222 fi
27223 else
cristy8b350f62009-11-15 23:12:43 +000027224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027225$as_echo "no" >&6; }
27226 fi
27227fi
27228 if test "$have_jp2" = 'yes'; then
27229 JP2_DELEGATE_TRUE=
27230 JP2_DELEGATE_FALSE='#'
27231else
27232 JP2_DELEGATE_TRUE='#'
27233 JP2_DELEGATE_FALSE=
27234fi
27235
27236
27237
27238
27239#
27240# Check for LCMS delegate library.
27241#
27242
27243# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027244if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027245 withval=$with_lcms; with_lcms=$withval
27246else
27247 with_lcms='yes'
27248fi
27249
27250
27251if test "$with_lcms" != 'yes'; then
27252 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27253fi
27254
27255have_lcms='no'
27256LCMS_LIBS=''
27257if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027259$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027261$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027263$as_echo "" >&6; }
27264 failed=0
27265 passed=0
27266 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000027267 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
27268if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027269 have_lcms_header='yes'
27270fi
27271
27272
27273 if test "$have_lcms_header" = 'yes'; then
27274 passed=`expr $passed + 1`
27275
cristy8b350f62009-11-15 23:12:43 +000027276$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027277
27278 else
cristy8b350f62009-11-15 23:12:43 +000027279 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
27280if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027281 have_lcms_header='yes'
27282fi
27283
27284
27285 if test "$have_lcms_header" = 'yes'; then
27286 passed=`expr $passed + 1`
27287
cristy8b350f62009-11-15 23:12:43 +000027288$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027289
27290 else
27291 failed=`expr $failed + 1`
27292 fi
27293 fi
cristy8b350f62009-11-15 23:12:43 +000027294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000027295$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027296if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027297 $as_echo_n "(cached) " >&6
27298else
27299 ac_check_lib_save_LIBS=$LIBS
27300LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027302/* end confdefs.h. */
27303
27304/* Override any GCC internal prototype to avoid an error.
27305 Use char because int might match the return type of a GCC
27306 builtin and then its argument prototype would still apply. */
27307#ifdef __cplusplus
27308extern "C"
27309#endif
27310char cmsOpenProfileFromMem ();
27311int
27312main ()
27313{
27314return cmsOpenProfileFromMem ();
27315 ;
27316 return 0;
27317}
27318_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027319if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027320 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
27321else
cristy8b350f62009-11-15 23:12:43 +000027322 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000027323fi
cristy8b350f62009-11-15 23:12:43 +000027324rm -f core conftest.err conftest.$ac_objext \
27325 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027326LIBS=$ac_check_lib_save_LIBS
27327fi
cristy8b350f62009-11-15 23:12:43 +000027328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027329$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027330if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027331 passed=`expr $passed + 1`
27332else
27333 failed=`expr $failed + 1`
27334fi
27335
cristy8b350f62009-11-15 23:12:43 +000027336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027337$as_echo_n "checking if LCMS package is complete... " >&6; }
27338 if test $passed -gt 0; then
27339 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027341$as_echo "no -- some components failed test" >&6; }
27342 have_lcms='no (failed tests)'
27343 else
27344 LCMS_LIBS='-llcms'
27345 LIBS="$LCMS_LIBS $LIBS"
27346
cristy8b350f62009-11-15 23:12:43 +000027347$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027348
cristy8b350f62009-11-15 23:12:43 +000027349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027350$as_echo "yes" >&6; }
27351 have_lcms='yes'
27352 fi
27353 else
cristy8b350f62009-11-15 23:12:43 +000027354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027355$as_echo "no" >&6; }
27356 fi
27357fi
27358 if test "$have_lcms" = 'yes'; then
27359 LCMS_DELEGATE_TRUE=
27360 LCMS_DELEGATE_FALSE='#'
27361else
27362 LCMS_DELEGATE_TRUE='#'
27363 LCMS_DELEGATE_FALSE=
27364fi
27365
27366
27367
27368
27369#
27370# Check for the LQR (Liquid Rescale) delegate library.
27371#
27372
27373# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000027374if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027375 withval=$with_lqr; with_lqr=$withval
27376else
27377 with_lqr='yes'
27378fi
27379
27380
27381if test "$with_lqr" != 'yes'; then
27382 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
27383fi
27384
27385have_lqr='no'
27386LQR_CFLAGS=""
27387LQR_LIBS=""
27388LQR_PKG=""
27389if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027391$as_echo "-------------------------------------------------------------" >&6; }
27392
27393pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000027395$as_echo_n "checking for LQR... " >&6; }
27396
27397if test -n "$LQR_CFLAGS"; then
27398 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
27399 elif test -n "$PKG_CONFIG"; then
27400 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027401 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027402 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27403 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27405 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027406 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
27407else
27408 pkg_failed=yes
27409fi
27410 else
27411 pkg_failed=untried
27412fi
27413if test -n "$LQR_LIBS"; then
27414 pkg_cv_LQR_LIBS="$LQR_LIBS"
27415 elif test -n "$PKG_CONFIG"; then
27416 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027417 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027418 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27419 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27421 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027422 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
27423else
27424 pkg_failed=yes
27425fi
27426 else
27427 pkg_failed=untried
27428fi
27429
27430
27431
27432if test $pkg_failed = yes; then
27433
27434if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27435 _pkg_short_errors_supported=yes
27436else
27437 _pkg_short_errors_supported=no
27438fi
27439 if test $_pkg_short_errors_supported = yes; then
27440 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
27441 else
27442 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
27443 fi
27444 # Put the nasty error message in config.log where it belongs
27445 echo "$LQR_PKG_ERRORS" >&5
27446
cristy8b350f62009-11-15 23:12:43 +000027447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027448$as_echo "no" >&6; }
27449 have_lqr=no
27450elif test $pkg_failed = untried; then
27451 have_lqr=no
27452else
27453 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
27454 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000027455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027456$as_echo "yes" >&6; }
27457 have_lqr=yes
27458fi
cristy8b350f62009-11-15 23:12:43 +000027459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027460$as_echo "" >&6; }
27461fi
27462
27463if test "$have_lqr" = 'yes'; then
27464
cristy8b350f62009-11-15 23:12:43 +000027465$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027466
27467 CFLAGS="$LQR_CFLAGS $CFLAGS"
27468fi
27469
27470 if test "$have_lqr" = 'yes'; then
27471 LQR_DELEGATE_TRUE=
27472 LQR_DELEGATE_FALSE='#'
27473else
27474 LQR_DELEGATE_TRUE='#'
27475 LQR_DELEGATE_FALSE=
27476fi
27477
27478
27479
27480
27481
27482#
27483# Check for the OpenEXR delegate library.
27484#
27485
27486# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000027487if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027488 withval=$with_openexr; with_openexr=$withval
27489else
27490 with_openexr='yes'
27491fi
27492
27493
27494if test "$with_openexr" != 'yes'; then
27495 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
27496fi
27497
27498have_openexr='no'
27499OPENEXR_CFLAGS=""
27500OPENEXR_LIBS=""
27501OPENEXR_PKG=""
27502if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027504$as_echo "-------------------------------------------------------------" >&6; }
27505
27506pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000027508$as_echo_n "checking for OPENEXR... " >&6; }
27509
27510if test -n "$OPENEXR_CFLAGS"; then
27511 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
27512 elif test -n "$PKG_CONFIG"; then
27513 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027514 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027515 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27516 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27518 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027519 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
27520else
27521 pkg_failed=yes
27522fi
27523 else
27524 pkg_failed=untried
27525fi
27526if test -n "$OPENEXR_LIBS"; then
27527 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
27528 elif test -n "$PKG_CONFIG"; then
27529 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027531 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27532 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27534 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027535 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
27536else
27537 pkg_failed=yes
27538fi
27539 else
27540 pkg_failed=untried
27541fi
27542
27543
27544
27545if test $pkg_failed = yes; then
27546
27547if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27548 _pkg_short_errors_supported=yes
27549else
27550 _pkg_short_errors_supported=no
27551fi
27552 if test $_pkg_short_errors_supported = yes; then
27553 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
27554 else
27555 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
27556 fi
27557 # Put the nasty error message in config.log where it belongs
27558 echo "$OPENEXR_PKG_ERRORS" >&5
27559
cristy8b350f62009-11-15 23:12:43 +000027560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027561$as_echo "no" >&6; }
27562 have_openexr=no
27563elif test $pkg_failed = untried; then
27564 have_openexr=no
27565else
27566 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
27567 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000027568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027569$as_echo "yes" >&6; }
27570 have_openexr=yes
27571fi
cristy8b350f62009-11-15 23:12:43 +000027572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027573$as_echo "" >&6; }
27574fi
27575
27576if test "$have_openexr" = 'yes'; then
27577
cristy8b350f62009-11-15 23:12:43 +000027578$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027579
27580 if test "$with_modules" = 'no'; then
27581 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
27582 fi
27583fi
27584
27585 if test "$have_openexr" = 'yes'; then
27586 OPENEXR_DELEGATE_TRUE=
27587 OPENEXR_DELEGATE_FALSE='#'
27588else
27589 OPENEXR_DELEGATE_TRUE='#'
27590 OPENEXR_DELEGATE_FALSE=
27591fi
27592
27593
27594
27595
27596
27597#
27598# Check for PNG delegate library.
27599#
27600
27601# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000027602if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027603 withval=$with_png; with_png=$withval
27604else
27605 with_png='yes'
27606fi
27607
27608
27609if test "$with_png" != 'yes'; then
27610 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
27611fi
27612
27613have_png='no'
27614PNG_LIBS=''
27615if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027617$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027619$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027621$as_echo "" >&6; }
27622 failed=0
27623 passed=0
cristy8b350f62009-11-15 23:12:43 +000027624 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
27625if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027626 passed=`expr $passed + 1`
27627else
27628 failed=`expr $failed + 1`
27629fi
27630
27631
cristy8b350f62009-11-15 23:12:43 +000027632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000027633$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027634if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027635 $as_echo_n "(cached) " >&6
27636else
27637 ac_check_lib_save_LIBS=$LIBS
27638LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027640/* end confdefs.h. */
27641
27642/* Override any GCC internal prototype to avoid an error.
27643 Use char because int might match the return type of a GCC
27644 builtin and then its argument prototype would still apply. */
27645#ifdef __cplusplus
27646extern "C"
27647#endif
27648char png_get_io_ptr ();
27649int
27650main ()
27651{
27652return png_get_io_ptr ();
27653 ;
27654 return 0;
27655}
27656_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027657if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027658 ac_cv_lib_png_png_get_io_ptr=yes
27659else
cristy8b350f62009-11-15 23:12:43 +000027660 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000027661fi
cristy8b350f62009-11-15 23:12:43 +000027662rm -f core conftest.err conftest.$ac_objext \
27663 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027664LIBS=$ac_check_lib_save_LIBS
27665fi
cristy8b350f62009-11-15 23:12:43 +000027666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000027667$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027668if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027669 passed=`expr $passed + 1`
27670else
27671 failed=`expr $failed + 1`
27672fi
27673
cristy8b350f62009-11-15 23:12:43 +000027674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027675$as_echo_n "checking if PNG package is complete... " >&6; }
27676 if test $passed -gt 0; then
27677 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027679$as_echo "no -- some components failed test" >&6; }
27680 have_png='no (failed tests)'
27681 else
27682 PNG_LIBS='-lpng'
27683 LIBS="$PNG_LIBS $LIBS"
27684
cristy8b350f62009-11-15 23:12:43 +000027685$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027686
cristy8b350f62009-11-15 23:12:43 +000027687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027688$as_echo "yes" >&6; }
27689 have_png='yes'
27690 fi
27691 else
cristy8b350f62009-11-15 23:12:43 +000027692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027693$as_echo "no" >&6; }
27694 fi
27695fi
27696 if test "$have_png" = 'yes'; then
27697 PNG_DELEGATE_TRUE=
27698 PNG_DELEGATE_FALSE='#'
27699else
27700 PNG_DELEGATE_TRUE='#'
27701 PNG_DELEGATE_FALSE=
27702fi
27703
27704
27705
27706
27707#
27708# Check for RSVG delegate library.
27709#
27710
27711# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000027712if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027713 withval=$with_rsvg; with_rsvg=$withval
27714else
27715 with_rsvg=$have_x
27716fi
27717
27718
27719if test "$with_rsvg" != 'yes'; then
27720 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
27721fi
27722
27723have_rsvg='no'
27724have_cairo='no'
27725RSVG_CFLAGS=""
27726RSVG_LIBS=""
27727RSVG_PKG=""
27728if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027730$as_echo "-------------------------------------------------------------" >&6; }
27731
27732pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027734$as_echo_n "checking for RSVG... " >&6; }
27735
27736if test -n "$RSVG_CFLAGS"; then
27737 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
27738 elif test -n "$PKG_CONFIG"; then
27739 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027740 { { $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 +000027741 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27742 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27744 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027745 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27746else
27747 pkg_failed=yes
27748fi
27749 else
27750 pkg_failed=untried
27751fi
27752if test -n "$RSVG_LIBS"; then
27753 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
27754 elif test -n "$PKG_CONFIG"; then
27755 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027756 { { $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 +000027757 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27758 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27760 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027761 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27762else
27763 pkg_failed=yes
27764fi
27765 else
27766 pkg_failed=untried
27767fi
27768
27769
27770
27771if test $pkg_failed = yes; then
27772
27773if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27774 _pkg_short_errors_supported=yes
27775else
27776 _pkg_short_errors_supported=no
27777fi
27778 if test $_pkg_short_errors_supported = yes; then
27779 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27780 else
27781 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27782 fi
27783 # Put the nasty error message in config.log where it belongs
27784 echo "$RSVG_PKG_ERRORS" >&5
27785
cristy8b350f62009-11-15 23:12:43 +000027786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027787$as_echo "no" >&6; }
27788 have_rsvg=no
27789elif test $pkg_failed = untried; then
27790 have_rsvg=no
27791else
27792 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
27793 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027795$as_echo "yes" >&6; }
27796 have_rsvg=yes
27797fi
cristy8b350f62009-11-15 23:12:43 +000027798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027799$as_echo "" >&6; }
27800
27801pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027803$as_echo_n "checking for CAIRO_SVG... " >&6; }
27804
27805if test -n "$CAIRO_SVG_CFLAGS"; then
27806 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
27807 elif test -n "$PKG_CONFIG"; then
27808 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027809 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027810 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27811 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27813 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027814 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
27815else
27816 pkg_failed=yes
27817fi
27818 else
27819 pkg_failed=untried
27820fi
27821if test -n "$CAIRO_SVG_LIBS"; then
27822 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
27823 elif test -n "$PKG_CONFIG"; then
27824 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027825 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027826 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27827 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27829 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027830 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
27831else
27832 pkg_failed=yes
27833fi
27834 else
27835 pkg_failed=untried
27836fi
27837
27838
27839
27840if test $pkg_failed = yes; then
27841
27842if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27843 _pkg_short_errors_supported=yes
27844else
27845 _pkg_short_errors_supported=no
27846fi
27847 if test $_pkg_short_errors_supported = yes; then
27848 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
27849 else
27850 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
27851 fi
27852 # Put the nasty error message in config.log where it belongs
27853 echo "$CAIRO_SVG_PKG_ERRORS" >&5
27854
cristy8b350f62009-11-15 23:12:43 +000027855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027856$as_echo "no" >&6; }
27857 have_cairo=no
27858elif test $pkg_failed = untried; then
27859 have_cairo=no
27860else
27861 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
27862 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027864$as_echo "yes" >&6; }
27865 have_cairo=yes
27866fi
cristy8b350f62009-11-15 23:12:43 +000027867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027868$as_echo "" >&6; }
27869fi
27870
27871if test "$have_rsvg" = 'yes'; then
27872
cristy8b350f62009-11-15 23:12:43 +000027873$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027874
27875 if test "$with_modules" = 'no'; then
27876 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
27877 fi
27878fi
27879
27880if test "$have_cairo" = 'yes'; then
27881
cristy8b350f62009-11-15 23:12:43 +000027882$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027883
27884 if test "$with_modules" = 'no'; then
27885 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
27886 fi
27887fi
27888
27889 if test "$have_rsvg" = 'yes'; then
27890 RSVG_DELEGATE_TRUE=
27891 RSVG_DELEGATE_FALSE='#'
27892else
27893 RSVG_DELEGATE_TRUE='#'
27894 RSVG_DELEGATE_FALSE=
27895fi
27896
27897 if test "$have_cairo" = 'yes'; then
27898 CAIRO_DELEGATE_TRUE=
27899 CAIRO_DELEGATE_FALSE='#'
27900else
27901 CAIRO_DELEGATE_TRUE='#'
27902 CAIRO_DELEGATE_FALSE=
27903fi
27904
27905
27906
27907
27908
27909#
27910# Check for TIFF delegate library.
27911#
27912
27913# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000027914if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027915 withval=$with_tiff; with_tiff=$withval
27916else
27917 with_tiff='yes'
27918fi
27919
27920
27921if test "$with_tiff" != 'yes'; then
27922 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27923fi
27924
27925have_tiff='no'
27926TIFF_LIBS=''
27927if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027929$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027931$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027933$as_echo "" >&6; }
27934 failed=0
27935 passed=0
cristy8b350f62009-11-15 23:12:43 +000027936 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27937if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027938 passed=`expr $passed + 1`
27939else
27940 failed=`expr $failed + 1`
27941fi
27942
27943
cristy8b350f62009-11-15 23:12:43 +000027944 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27945if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027946 passed=`expr $passed + 1`
27947else
27948 failed=`expr $failed + 1`
27949fi
27950
27951
cristy8b350f62009-11-15 23:12:43 +000027952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027953$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027954if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027955 $as_echo_n "(cached) " >&6
27956else
27957 ac_check_lib_save_LIBS=$LIBS
27958LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027960/* end confdefs.h. */
27961
27962/* Override any GCC internal prototype to avoid an error.
27963 Use char because int might match the return type of a GCC
27964 builtin and then its argument prototype would still apply. */
27965#ifdef __cplusplus
27966extern "C"
27967#endif
27968char TIFFOpen ();
27969int
27970main ()
27971{
27972return TIFFOpen ();
27973 ;
27974 return 0;
27975}
27976_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027977if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027978 ac_cv_lib_tiff_TIFFOpen=yes
27979else
cristy8b350f62009-11-15 23:12:43 +000027980 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027981fi
cristy8b350f62009-11-15 23:12:43 +000027982rm -f core conftest.err conftest.$ac_objext \
27983 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027984LIBS=$ac_check_lib_save_LIBS
27985fi
cristy8b350f62009-11-15 23:12:43 +000027986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027987$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027988if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027989 passed=`expr $passed + 1`
27990else
27991 failed=`expr $failed + 1`
27992fi
27993
cristy8b350f62009-11-15 23:12:43 +000027994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027995$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027996if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027997 $as_echo_n "(cached) " >&6
27998else
27999 ac_check_lib_save_LIBS=$LIBS
28000LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028002/* end confdefs.h. */
28003
28004/* Override any GCC internal prototype to avoid an error.
28005 Use char because int might match the return type of a GCC
28006 builtin and then its argument prototype would still apply. */
28007#ifdef __cplusplus
28008extern "C"
28009#endif
28010char TIFFClientOpen ();
28011int
28012main ()
28013{
28014return TIFFClientOpen ();
28015 ;
28016 return 0;
28017}
28018_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028019if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028020 ac_cv_lib_tiff_TIFFClientOpen=yes
28021else
cristy8b350f62009-11-15 23:12:43 +000028022 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028023fi
cristy8b350f62009-11-15 23:12:43 +000028024rm -f core conftest.err conftest.$ac_objext \
28025 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028026LIBS=$ac_check_lib_save_LIBS
28027fi
cristy8b350f62009-11-15 23:12:43 +000028028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028029$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028030if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028031 passed=`expr $passed + 1`
28032else
28033 failed=`expr $failed + 1`
28034fi
28035
cristy8b350f62009-11-15 23:12:43 +000028036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028037$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028038if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028039 $as_echo_n "(cached) " >&6
28040else
28041 ac_check_lib_save_LIBS=$LIBS
28042LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028044/* end confdefs.h. */
28045
28046/* Override any GCC internal prototype to avoid an error.
28047 Use char because int might match the return type of a GCC
28048 builtin and then its argument prototype would still apply. */
28049#ifdef __cplusplus
28050extern "C"
28051#endif
28052char TIFFIsByteSwapped ();
28053int
28054main ()
28055{
28056return TIFFIsByteSwapped ();
28057 ;
28058 return 0;
28059}
28060_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028061if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028062 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28063else
cristy8b350f62009-11-15 23:12:43 +000028064 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028065fi
cristy8b350f62009-11-15 23:12:43 +000028066rm -f core conftest.err conftest.$ac_objext \
28067 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028068LIBS=$ac_check_lib_save_LIBS
28069fi
cristy8b350f62009-11-15 23:12:43 +000028070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028071$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028072if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028073 passed=`expr $passed + 1`
28074else
28075 failed=`expr $failed + 1`
28076fi
28077
cristy8b350f62009-11-15 23:12:43 +000028078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028079$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028080if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028081 $as_echo_n "(cached) " >&6
28082else
28083 ac_check_lib_save_LIBS=$LIBS
28084LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028086/* end confdefs.h. */
28087
28088/* Override any GCC internal prototype to avoid an error.
28089 Use char because int might match the return type of a GCC
28090 builtin and then its argument prototype would still apply. */
28091#ifdef __cplusplus
28092extern "C"
28093#endif
28094char TIFFReadRGBATile ();
28095int
28096main ()
28097{
28098return TIFFReadRGBATile ();
28099 ;
28100 return 0;
28101}
28102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028103if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028104 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28105else
cristy8b350f62009-11-15 23:12:43 +000028106 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028107fi
cristy8b350f62009-11-15 23:12:43 +000028108rm -f core conftest.err conftest.$ac_objext \
28109 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028110LIBS=$ac_check_lib_save_LIBS
28111fi
cristy8b350f62009-11-15 23:12:43 +000028112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028113$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028114if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028115 passed=`expr $passed + 1`
28116else
28117 failed=`expr $failed + 1`
28118fi
28119
cristy8b350f62009-11-15 23:12:43 +000028120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028121$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028122if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028123 $as_echo_n "(cached) " >&6
28124else
28125 ac_check_lib_save_LIBS=$LIBS
28126LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028128/* end confdefs.h. */
28129
28130/* Override any GCC internal prototype to avoid an error.
28131 Use char because int might match the return type of a GCC
28132 builtin and then its argument prototype would still apply. */
28133#ifdef __cplusplus
28134extern "C"
28135#endif
28136char TIFFReadRGBAStrip ();
28137int
28138main ()
28139{
28140return TIFFReadRGBAStrip ();
28141 ;
28142 return 0;
28143}
28144_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028145if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028146 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28147else
cristy8b350f62009-11-15 23:12:43 +000028148 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028149fi
cristy8b350f62009-11-15 23:12:43 +000028150rm -f core conftest.err conftest.$ac_objext \
28151 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028152LIBS=$ac_check_lib_save_LIBS
28153fi
cristy8b350f62009-11-15 23:12:43 +000028154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028155$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028156if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028157 passed=`expr $passed + 1`
28158else
28159 failed=`expr $failed + 1`
28160fi
28161
cristy8b350f62009-11-15 23:12:43 +000028162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028163$as_echo_n "checking if TIFF package is complete... " >&6; }
28164 if test $passed -gt 0; then
28165 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028167$as_echo "no -- some components failed test" >&6; }
28168 have_tiff='no (failed tests)'
28169 else
28170 TIFF_LIBS='-ltiff'
28171 LIBS="$TIFF_LIBS $LIBS"
28172
cristy8b350f62009-11-15 23:12:43 +000028173$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028174
cristy8b350f62009-11-15 23:12:43 +000028175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028176$as_echo "yes" >&6; }
28177 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028178 for ac_header in tiffconf.h
28179do :
28180 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28181if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028182 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028183#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028184_ACEOF
28185
28186fi
28187
28188done
28189
cristy8b350f62009-11-15 23:12:43 +000028190 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028191 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28192 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028193do :
28194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28195ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28196eval as_val=\$$as_ac_var
28197 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028198 cat >>confdefs.h <<_ACEOF
28199#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28200_ACEOF
28201
28202fi
28203done
28204
28205 fi
28206 else
cristy8b350f62009-11-15 23:12:43 +000028207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028208$as_echo "no" >&6; }
28209 fi
28210fi
28211 if test "$have_tiff" = 'yes'; then
28212 TIFF_DELEGATE_TRUE=
28213 TIFF_DELEGATE_FALSE='#'
28214else
28215 TIFF_DELEGATE_TRUE='#'
28216 TIFF_DELEGATE_FALSE=
28217fi
28218
28219
28220
28221
28222#
28223# Set Windows font directory.
28224#
28225
28226# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028227if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028228 withval=$with_windows_font_dir; with_windows_font_dir=$withval
28229else
28230 with_windows_font_dir=''
28231fi
28232
28233if test "$with_windows_font_dir" != '' ; then
28234 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
28235fi
28236
28237
28238#
28239# Check for WMF delegate library.
28240#
28241
28242# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000028243if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028244 withval=$with_wmf; with_wmf=$withval
28245else
cristy8d63d1d2010-01-06 20:38:37 +000028246 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000028247fi
28248
28249
28250if test "$with_wmf" != 'yes'; then
28251 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
28252fi
28253
28254have_wmf='no'
28255WMF_LIBS=''
28256WMF_LIBS_DEPS=''
28257OLIBS="$LIBS"
28258if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028260$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028262$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028264$as_echo "" >&6; }
28265 have_libwmf='no'
28266 have_libwmflite='no'
28267 have_libwmf_ipa_h='no'
28268
cristy8b350f62009-11-15 23:12:43 +000028269 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
28270"
28271if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028272 have_libwmf_ipa_h='yes'
28273fi
28274
28275
28276 if test "$have_libwmf_ipa_h" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
cristy3ed852e2009-09-05 21:47:34 +000028278$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028279if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028280 $as_echo_n "(cached) " >&6
28281else
28282 ac_check_lib_save_LIBS=$LIBS
28283LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028285/* end confdefs.h. */
28286
28287/* Override any GCC internal prototype to avoid an error.
28288 Use char because int might match the return type of a GCC
28289 builtin and then its argument prototype would still apply. */
28290#ifdef __cplusplus
28291extern "C"
28292#endif
28293char wmf_lite_create ();
28294int
28295main ()
28296{
28297return wmf_lite_create ();
28298 ;
28299 return 0;
28300}
28301_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028302if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028303 ac_cv_lib_wmflite_wmf_lite_create=yes
28304else
cristy8b350f62009-11-15 23:12:43 +000028305 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000028306fi
cristy8b350f62009-11-15 23:12:43 +000028307rm -f core conftest.err conftest.$ac_objext \
28308 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028309LIBS=$ac_check_lib_save_LIBS
28310fi
cristy8b350f62009-11-15 23:12:43 +000028311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028312$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028313if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028314 have_libwmflite='yes'
28315fi
28316
28317 if test "$have_libwmflite" = 'yes'; then
28318
cristy8b350f62009-11-15 23:12:43 +000028319$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028320
28321 WMF_LIBS='-lwmflite'
28322 LIBS="$WMF_LIBS $LIBS"
28323 have_wmf='yes'
28324 else
28325 WMF_LIBS_DEPS=''
28326 WMF_CONFIG_LIBS=`libwmf-config --libs`
28327 for lib in xml2 expat freetype jpeg png z; do
28328 testlib="-l${lib}"
28329 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
28330 done
cristy8b350f62009-11-15 23:12:43 +000028331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
cristy3ed852e2009-09-05 21:47:34 +000028332$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028333if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028334 $as_echo_n "(cached) " >&6
28335else
28336 ac_check_lib_save_LIBS=$LIBS
28337LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028339/* end confdefs.h. */
28340
28341/* Override any GCC internal prototype to avoid an error.
28342 Use char because int might match the return type of a GCC
28343 builtin and then its argument prototype would still apply. */
28344#ifdef __cplusplus
28345extern "C"
28346#endif
28347char wmf_api_create ();
28348int
28349main ()
28350{
28351return wmf_api_create ();
28352 ;
28353 return 0;
28354}
28355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028356if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028357 ac_cv_lib_wmf_wmf_api_create=yes
28358else
cristy8b350f62009-11-15 23:12:43 +000028359 ac_cv_lib_wmf_wmf_api_create=no
cristy3ed852e2009-09-05 21:47:34 +000028360fi
cristy8b350f62009-11-15 23:12:43 +000028361rm -f core conftest.err conftest.$ac_objext \
28362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028363LIBS=$ac_check_lib_save_LIBS
28364fi
cristy8b350f62009-11-15 23:12:43 +000028365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028366$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028367if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028368 have_libwmf='yes'
28369fi
28370
28371 if test "$have_libwmf" = 'yes'; then
28372
cristy8b350f62009-11-15 23:12:43 +000028373$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028374
28375 WMF_LIBS='-lwmf'
28376 LIBS="$WMF_LIBS $LIBS"
28377 have_wmf='yes'
28378 else
cristy8b350f62009-11-15 23:12:43 +000028379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028380$as_echo "no -- some components failed test" >&6; }
28381 have_wmf='no (failed tests)'
28382 have_wmflite='no (failed tests)'
28383 LIBS="$OLIBS"
28384 WMF_LIBS=''
28385 fi
28386 fi
28387 fi
cristy8b350f62009-11-15 23:12:43 +000028388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028389$as_echo_n "checking if WMF package is complete... " >&6; }
28390 if test "$have_wmf" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028392$as_echo "yes" >&6; }
28393 else
cristy8b350f62009-11-15 23:12:43 +000028394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028395$as_echo "no" >&6; }
28396 fi
28397fi
28398 if test "$have_wmf" = 'yes'; then
28399 WMF_DELEGATE_TRUE=
28400 WMF_DELEGATE_FALSE='#'
28401else
28402 WMF_DELEGATE_TRUE='#'
28403 WMF_DELEGATE_FALSE=
28404fi
28405
28406
28407
28408
28409
28410#
28411# Check for XML delegate library.
28412#
28413
28414# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000028415if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028416 withval=$with_xml; with_xml=$withval
28417else
28418 with_xml=$have_x
28419fi
28420
28421
28422if test "$with_xml" != 'yes' ; then
28423 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
28424fi
28425
28426have_xml='no'
28427XML_LIBS=''
28428if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028430$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000028432$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028434$as_echo "" >&6; }
28435 PERSIST_LDFLAGS=$LDFLAGS
28436 PERSIST_CPPFLAGS=$CPPFLAGS
28437 xml2_config=''
28438 for ac_prog in xml2-config
28439do
28440 # Extract the first word of "$ac_prog", so it can be a program name with args.
28441set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028443$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028444if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028445 $as_echo_n "(cached) " >&6
28446else
28447 if test -n "$xml2_config"; then
28448 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
28449else
28450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28451for as_dir in $PATH
28452do
28453 IFS=$as_save_IFS
28454 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28457 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000028458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028459 break 2
28460 fi
28461done
cristy8b350f62009-11-15 23:12:43 +000028462 done
cristy3ed852e2009-09-05 21:47:34 +000028463IFS=$as_save_IFS
28464
28465fi
28466fi
28467xml2_config=$ac_cv_prog_xml2_config
28468if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000028469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000028470$as_echo "$xml2_config" >&6; }
28471else
cristy8b350f62009-11-15 23:12:43 +000028472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028473$as_echo "no" >&6; }
28474fi
28475
28476
28477 test -n "$xml2_config" && break
28478done
28479 if test -n "$xml2_config"; then
28480 # Debian installs libxml headers under /usr/include/libxml2/libxml with
28481 # the shared library installed under /usr/lib, whereas the package
28482 # installs itself under $prefix/libxml and $prefix/lib.
28483 xml2_prefix=`xml2-config --prefix`
28484 if test -d "${xml2_prefix}/include/libxml2"; then
28485 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
28486 fi
28487 if test "${xml2_prefix}" != '/usr'; then
28488 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
28489 fi
28490 fi
28491 failed=0
28492 passed=0
cristy8b350f62009-11-15 23:12:43 +000028493 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
28494if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028495 passed=`expr $passed + 1`
28496else
28497 failed=`expr $failed + 1`
28498fi
28499
28500
cristy8b350f62009-11-15 23:12:43 +000028501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028502$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028503if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028504 $as_echo_n "(cached) " >&6
28505else
28506 ac_check_lib_save_LIBS=$LIBS
28507LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028509/* end confdefs.h. */
28510
28511/* Override any GCC internal prototype to avoid an error.
28512 Use char because int might match the return type of a GCC
28513 builtin and then its argument prototype would still apply. */
28514#ifdef __cplusplus
28515extern "C"
28516#endif
28517char xmlParseExternalEntity ();
28518int
28519main ()
28520{
28521return xmlParseExternalEntity ();
28522 ;
28523 return 0;
28524}
28525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028527 ac_cv_lib_xml2_xmlParseExternalEntity=yes
28528else
cristy8b350f62009-11-15 23:12:43 +000028529 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000028530fi
cristy8b350f62009-11-15 23:12:43 +000028531rm -f core conftest.err conftest.$ac_objext \
28532 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028533LIBS=$ac_check_lib_save_LIBS
28534fi
cristy8b350f62009-11-15 23:12:43 +000028535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000028536$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028537if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028538 passed=`expr $passed + 1`
28539else
28540 failed=`expr $failed + 1`
28541fi
28542
cristy8b350f62009-11-15 23:12:43 +000028543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028544$as_echo_n "checking if XML package is complete... " >&6; }
28545 if test $passed -gt 0; then
28546 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028548$as_echo "no -- some components failed test" >&6; }
28549 have_xml='no (failed tests)'
28550 LDFLAGS="$PERSIST_LDFLAGS"
28551 CPPFLAGS="$PERSIST_CPPFLAGS"
28552 else
28553 XML_LIBS='-lxml2'
28554 LIBS="$XML_LIBS $LIBS"
28555
cristy8b350f62009-11-15 23:12:43 +000028556$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028557
cristy8b350f62009-11-15 23:12:43 +000028558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028559$as_echo "yes" >&6; }
28560 have_xml='yes'
28561 fi
28562 else
cristy8b350f62009-11-15 23:12:43 +000028563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028564$as_echo "no" >&6; }
28565 fi
28566fi
28567 if test "$have_xml" = 'yes'; then
28568 XML_DELEGATE_TRUE=
28569 XML_DELEGATE_FALSE='#'
28570else
28571 XML_DELEGATE_TRUE='#'
28572 XML_DELEGATE_FALSE=
28573fi
28574
28575
28576
28577
28578# Substitute compiler name to build/link PerlMagick
28579#
28580
28581
28582#
28583# Configure install Paths
28584#
28585
28586# Subdirectory under lib to place ImageMagick lib files
28587LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28588
28589cat >>confdefs.h <<_ACEOF
28590#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
28591_ACEOF
28592
28593
28594# Path to ImageMagick bin directory
28595EXECUTABLE_PATH="${BIN_DIR}"
28596DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
28597case "${build_os}" in
28598 mingw* )
28599 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
28600 ;;
28601esac
28602
28603cat >>confdefs.h <<_ACEOF
28604#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
28605_ACEOF
28606
28607
28608
28609# Path to ImageMagick lib
28610LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
28611DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
28612case "${build_os}" in
28613 mingw* )
28614 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
28615 ;;
28616esac
28617
28618cat >>confdefs.h <<_ACEOF
28619#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
28620_ACEOF
28621
28622
28623
28624# Subdirectory under lib to place ImageMagick configuration files
28625CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28626
28627cat >>confdefs.h <<_ACEOF
28628#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
28629_ACEOF
28630
28631CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28632DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28633case "${build_os}" in
28634 mingw* )
28635 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
28636 ;;
28637esac
28638
28639cat >>confdefs.h <<_ACEOF
28640#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
28641_ACEOF
28642
28643
28644
28645#
28646# Subdirectory under lib to place ImageMagick coder module files
28647CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
28648
28649cat >>confdefs.h <<_ACEOF
28650#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
28651_ACEOF
28652
28653CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
28654DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
28655case "${build_os}" in
28656 mingw* )
28657 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
28658 ;;
28659esac
28660
28661cat >>confdefs.h <<_ACEOF
28662#define CODER_PATH "$DEFINE_CODER_PATH"
28663_ACEOF
28664
28665
28666
28667#
28668# Subdirectory under lib to place ImageMagick filter module files
28669FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
28670
28671cat >>confdefs.h <<_ACEOF
28672#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
28673_ACEOF
28674
28675FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
28676DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
28677case "${build_os}" in
28678 mingw* )
28679 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
28680 ;;
28681esac
28682
28683cat >>confdefs.h <<_ACEOF
28684#define FILTER_PATH "$DEFINE_FILTER_PATH"
28685_ACEOF
28686
28687
28688
28689#
28690# Path to ImageMagick documentation files
28691DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28692DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
28693DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
28694case "${build_os}" in
28695 mingw* )
28696 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
28697 ;;
28698esac
28699
28700cat >>confdefs.h <<_ACEOF
28701#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28702_ACEOF
28703
28704
28705
28706#
28707# Path to ImageMagick share files
28708SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28709SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28710DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28711case "${build_os}" in
28712 mingw* )
28713 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28714 ;;
28715esac
28716
28717cat >>confdefs.h <<_ACEOF
28718#define SHARE_PATH "$DEFINE_SHARE_PATH"
28719_ACEOF
28720
28721
28722
28723# Subdirectory under share to place ImageMagick configuration files
28724SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28725
28726cat >>confdefs.h <<_ACEOF
28727#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28728_ACEOF
28729
28730SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28731DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28732case "${build_os}" in
28733 mingw* )
28734 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28735 ;;
28736esac
28737
28738cat >>confdefs.h <<_ACEOF
28739#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28740_ACEOF
28741
28742
28743
28744#
28745# program_transform_name is formed for use in a Makefile, so create a
28746# modified version for use in a shell script.
28747configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28748
28749# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000028750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028751$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028753$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028755$as_echo "" >&6; }
28756AutotraceDecodeDelegateDefault='autotrace'
28757AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000028758BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000028759BZIPDelegateDefault='bzip2'
28760BrowseDelegateDefault='xdg-open'
28761CGMDecodeDelegateDefault='ralcgm'
28762CatDelegateDefault='cat'
28763DNGDecodeDelegateDefault='ufraw-batch'
28764GVCDecodeDelegateDefault='dot'
28765DVIDecodeDelegateDefault='dvips'
28766EchoDelegateDefault='echo'
28767EditorDelegateDefault='xterm'
28768FIGDecodeDelegateDefault='fig2dev'
28769ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
28770DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
28771MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
28772GnuplotDecodeDelegateDefault='gnuplot'
28773HDRDecodeDelegateDefault='ra_pfm'
28774HPGLDecodeDelegateDefault='hp2xx'
28775HTMLDecodeDelegateDefault='html2ps'
28776ILBMDecodeDelegateDefault='ilbmtoppm'
28777ILBMEncodeDelegateDefault='ppmtoilbm'
28778LPDelegateDefault='lp'
28779LPRDelegateDefault='lpr'
28780LZWDecodeDelegateDefault='uncompress'
28781LZWEncodeDelegateDefault='compress'
28782LaunchDelegateDefault='gimp'
28783MANDelegateDefault='groff'
28784MPEGDecodeDelegateDefault='ffmpeg'
28785MPEGEncodeDelegateDefault='ffmpeg'
28786MVDelegateDefault='mv'
28787PCLDelegateDefault='pcl6'
28788PGPDecodeDelegateDefault='pgpv'
28789POVDelegateDefault='povray'
28790if test "$native_win32_build" = 'yes'; then
28791 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000028792elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028793 PSDelegateDefault='gsc'
28794else
28795 PSDelegateDefault='gs'
28796fi
28797RLEEncodeDelegateDefault='rawtorle'
28798RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000028799RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000028800SCANDecodeDelegateDefault='scanimage'
28801TXTDelegateDefault='enscript'
28802WMFDecodeDelegateDefault='wmf2eps'
28803WWWDecodeDelegateDefault='curl'
28804XPSDelegateDefault='gxps'
28805ZipDelegateDefault='gzip'
28806
28807# Search for delegates
28808# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
28809set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028811$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028812if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028813 $as_echo_n "(cached) " >&6
28814else
28815 case $AutotraceDecodeDelegate in
28816 [\\/]* | ?:[\\/]*)
28817 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
28818 ;;
28819 *)
28820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28821for as_dir in $PATH
28822do
28823 IFS=$as_save_IFS
28824 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028825 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28827 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028829 break 2
28830 fi
28831done
cristy8b350f62009-11-15 23:12:43 +000028832 done
cristy3ed852e2009-09-05 21:47:34 +000028833IFS=$as_save_IFS
28834
28835 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
28836 ;;
28837esac
28838fi
28839AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
28840if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028842$as_echo "$AutotraceDecodeDelegate" >&6; }
28843else
cristy8b350f62009-11-15 23:12:43 +000028844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028845$as_echo "no" >&6; }
28846fi
28847
28848
28849# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
28850set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028852$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028853if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028854 $as_echo_n "(cached) " >&6
28855else
28856 case $AVIDecodeDelegate in
28857 [\\/]* | ?:[\\/]*)
28858 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
28859 ;;
28860 *)
28861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28862for as_dir in $PATH
28863do
28864 IFS=$as_save_IFS
28865 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028866 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28868 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028870 break 2
28871 fi
28872done
cristy8b350f62009-11-15 23:12:43 +000028873 done
cristy3ed852e2009-09-05 21:47:34 +000028874IFS=$as_save_IFS
28875
28876 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
28877 ;;
28878esac
28879fi
28880AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
28881if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028883$as_echo "$AVIDecodeDelegate" >&6; }
28884else
cristy8b350f62009-11-15 23:12:43 +000028885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028886$as_echo "no" >&6; }
28887fi
28888
28889
28890# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
28891set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028893$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028894if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028895 $as_echo_n "(cached) " >&6
28896else
28897 case $BlenderDecodeDelegate in
28898 [\\/]* | ?:[\\/]*)
28899 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
28900 ;;
28901 *)
28902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28903for as_dir in $PATH
28904do
28905 IFS=$as_save_IFS
28906 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028907 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28909 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028911 break 2
28912 fi
28913done
cristy8b350f62009-11-15 23:12:43 +000028914 done
cristy3ed852e2009-09-05 21:47:34 +000028915IFS=$as_save_IFS
28916
28917 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28918 ;;
28919esac
28920fi
28921BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28922if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028924$as_echo "$BlenderDecodeDelegate" >&6; }
28925else
cristy8b350f62009-11-15 23:12:43 +000028926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028927$as_echo "no" >&6; }
28928fi
28929
28930
28931# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28932set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028934$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028935if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028936 $as_echo_n "(cached) " >&6
28937else
28938 case $BZIPDelegate in
28939 [\\/]* | ?:[\\/]*)
28940 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28941 ;;
28942 *)
28943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28944for as_dir in $PATH
28945do
28946 IFS=$as_save_IFS
28947 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28950 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028952 break 2
28953 fi
28954done
cristy8b350f62009-11-15 23:12:43 +000028955 done
cristy3ed852e2009-09-05 21:47:34 +000028956IFS=$as_save_IFS
28957
28958 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28959 ;;
28960esac
28961fi
28962BZIPDelegate=$ac_cv_path_BZIPDelegate
28963if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028965$as_echo "$BZIPDelegate" >&6; }
28966else
cristy8b350f62009-11-15 23:12:43 +000028967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028968$as_echo "no" >&6; }
28969fi
28970
28971
28972# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28973set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028975$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028976if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028977 $as_echo_n "(cached) " >&6
28978else
28979 case $BrowseDelegate in
28980 [\\/]* | ?:[\\/]*)
28981 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28982 ;;
28983 *)
28984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28985for as_dir in $PATH
28986do
28987 IFS=$as_save_IFS
28988 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28991 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028993 break 2
28994 fi
28995done
cristy8b350f62009-11-15 23:12:43 +000028996 done
cristy3ed852e2009-09-05 21:47:34 +000028997IFS=$as_save_IFS
28998
28999 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29000 ;;
29001esac
29002fi
29003BrowseDelegate=$ac_cv_path_BrowseDelegate
29004if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029006$as_echo "$BrowseDelegate" >&6; }
29007else
cristy8b350f62009-11-15 23:12:43 +000029008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029009$as_echo "no" >&6; }
29010fi
29011
29012
29013# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29014set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029016$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029017if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029018 $as_echo_n "(cached) " >&6
29019else
29020 case $CGMDecodeDelegate in
29021 [\\/]* | ?:[\\/]*)
29022 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29023 ;;
29024 *)
29025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29026for as_dir in $PATH
29027do
29028 IFS=$as_save_IFS
29029 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029030 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29032 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029034 break 2
29035 fi
29036done
cristy8b350f62009-11-15 23:12:43 +000029037 done
cristy3ed852e2009-09-05 21:47:34 +000029038IFS=$as_save_IFS
29039
29040 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29041 ;;
29042esac
29043fi
29044CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29045if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029047$as_echo "$CGMDecodeDelegate" >&6; }
29048else
cristy8b350f62009-11-15 23:12:43 +000029049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029050$as_echo "no" >&6; }
29051fi
29052
29053
29054# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29055set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029057$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029058if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029059 $as_echo_n "(cached) " >&6
29060else
29061 case $CatDelegate in
29062 [\\/]* | ?:[\\/]*)
29063 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29064 ;;
29065 *)
29066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29067for as_dir in $PATH
29068do
29069 IFS=$as_save_IFS
29070 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029071 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29073 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029075 break 2
29076 fi
29077done
cristy8b350f62009-11-15 23:12:43 +000029078 done
cristy3ed852e2009-09-05 21:47:34 +000029079IFS=$as_save_IFS
29080
29081 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29082 ;;
29083esac
29084fi
29085CatDelegate=$ac_cv_path_CatDelegate
29086if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029088$as_echo "$CatDelegate" >&6; }
29089else
cristy8b350f62009-11-15 23:12:43 +000029090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029091$as_echo "no" >&6; }
29092fi
29093
29094
29095# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29096set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029098$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029099if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029100 $as_echo_n "(cached) " >&6
29101else
29102 case $DNGDecodeDelegate in
29103 [\\/]* | ?:[\\/]*)
29104 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29105 ;;
29106 *)
29107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29108for as_dir in $PATH
29109do
29110 IFS=$as_save_IFS
29111 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29114 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029116 break 2
29117 fi
29118done
cristy8b350f62009-11-15 23:12:43 +000029119 done
cristy3ed852e2009-09-05 21:47:34 +000029120IFS=$as_save_IFS
29121
29122 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29123 ;;
29124esac
29125fi
29126DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29127if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029129$as_echo "$DNGDecodeDelegate" >&6; }
29130else
cristy8b350f62009-11-15 23:12:43 +000029131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029132$as_echo "no" >&6; }
29133fi
29134
29135
29136# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29137set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029139$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029140if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029141 $as_echo_n "(cached) " >&6
29142else
29143 case $GVCDecodeDelegate in
29144 [\\/]* | ?:[\\/]*)
29145 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29146 ;;
29147 *)
29148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29149for as_dir in $PATH
29150do
29151 IFS=$as_save_IFS
29152 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029153 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29155 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029157 break 2
29158 fi
29159done
cristy8b350f62009-11-15 23:12:43 +000029160 done
cristy3ed852e2009-09-05 21:47:34 +000029161IFS=$as_save_IFS
29162
29163 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29164 ;;
29165esac
29166fi
29167GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29168if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029170$as_echo "$GVCDecodeDelegate" >&6; }
29171else
cristy8b350f62009-11-15 23:12:43 +000029172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029173$as_echo "no" >&6; }
29174fi
29175
29176
29177# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29178set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029180$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029181if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029182 $as_echo_n "(cached) " >&6
29183else
29184 case $DVIDecodeDelegate in
29185 [\\/]* | ?:[\\/]*)
29186 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29187 ;;
29188 *)
29189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29190for as_dir in $PATH
29191do
29192 IFS=$as_save_IFS
29193 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029194 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29196 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029198 break 2
29199 fi
29200done
cristy8b350f62009-11-15 23:12:43 +000029201 done
cristy3ed852e2009-09-05 21:47:34 +000029202IFS=$as_save_IFS
29203
29204 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29205 ;;
29206esac
29207fi
29208DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29209if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029211$as_echo "$DVIDecodeDelegate" >&6; }
29212else
cristy8b350f62009-11-15 23:12:43 +000029213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029214$as_echo "no" >&6; }
29215fi
29216
29217
29218# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29219set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029221$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029222if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029223 $as_echo_n "(cached) " >&6
29224else
29225 case $EchoDelegate in
29226 [\\/]* | ?:[\\/]*)
29227 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29228 ;;
29229 *)
29230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29231for as_dir in $PATH
29232do
29233 IFS=$as_save_IFS
29234 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029235 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29237 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029239 break 2
29240 fi
29241done
cristy8b350f62009-11-15 23:12:43 +000029242 done
cristy3ed852e2009-09-05 21:47:34 +000029243IFS=$as_save_IFS
29244
29245 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29246 ;;
29247esac
29248fi
29249EchoDelegate=$ac_cv_path_EchoDelegate
29250if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029252$as_echo "$EchoDelegate" >&6; }
29253else
cristy8b350f62009-11-15 23:12:43 +000029254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029255$as_echo "no" >&6; }
29256fi
29257
29258
29259# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29260set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029262$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029263if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029264 $as_echo_n "(cached) " >&6
29265else
29266 case $EditorDelegate in
29267 [\\/]* | ?:[\\/]*)
29268 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29269 ;;
29270 *)
29271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29272for as_dir in $PATH
29273do
29274 IFS=$as_save_IFS
29275 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029276 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29278 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029280 break 2
29281 fi
29282done
cristy8b350f62009-11-15 23:12:43 +000029283 done
cristy3ed852e2009-09-05 21:47:34 +000029284IFS=$as_save_IFS
29285
29286 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
29287 ;;
29288esac
29289fi
29290EditorDelegate=$ac_cv_path_EditorDelegate
29291if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029293$as_echo "$EditorDelegate" >&6; }
29294else
cristy8b350f62009-11-15 23:12:43 +000029295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029296$as_echo "no" >&6; }
29297fi
29298
29299
29300# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
29301set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029303$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029304if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029305 $as_echo_n "(cached) " >&6
29306else
29307 case $FIGDecodeDelegate in
29308 [\\/]* | ?:[\\/]*)
29309 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
29310 ;;
29311 *)
29312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29313for as_dir in $PATH
29314do
29315 IFS=$as_save_IFS
29316 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029317 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29319 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029321 break 2
29322 fi
29323done
cristy8b350f62009-11-15 23:12:43 +000029324 done
cristy3ed852e2009-09-05 21:47:34 +000029325IFS=$as_save_IFS
29326
29327 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
29328 ;;
29329esac
29330fi
29331FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
29332if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029334$as_echo "$FIGDecodeDelegate" >&6; }
29335else
cristy8b350f62009-11-15 23:12:43 +000029336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029337$as_echo "no" >&6; }
29338fi
29339
29340
29341# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
29342set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029344$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029345if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029346 $as_echo_n "(cached) " >&6
29347else
29348 case $ConvertDelegate in
29349 [\\/]* | ?:[\\/]*)
29350 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
29351 ;;
29352 *)
29353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29354for as_dir in $PATH
29355do
29356 IFS=$as_save_IFS
29357 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029358 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29360 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029362 break 2
29363 fi
29364done
cristy8b350f62009-11-15 23:12:43 +000029365 done
cristy3ed852e2009-09-05 21:47:34 +000029366IFS=$as_save_IFS
29367
29368 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
29369 ;;
29370esac
29371fi
29372ConvertDelegate=$ac_cv_path_ConvertDelegate
29373if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029375$as_echo "$ConvertDelegate" >&6; }
29376else
cristy8b350f62009-11-15 23:12:43 +000029377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029378$as_echo "no" >&6; }
29379fi
29380
29381
29382# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
29383set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029385$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029386if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029387 $as_echo_n "(cached) " >&6
29388else
29389 case $DisplayDelegate in
29390 [\\/]* | ?:[\\/]*)
29391 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
29392 ;;
29393 *)
29394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29395for as_dir in $PATH
29396do
29397 IFS=$as_save_IFS
29398 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029399 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29401 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029403 break 2
29404 fi
29405done
cristy8b350f62009-11-15 23:12:43 +000029406 done
cristy3ed852e2009-09-05 21:47:34 +000029407IFS=$as_save_IFS
29408
29409 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
29410 ;;
29411esac
29412fi
29413DisplayDelegate=$ac_cv_path_DisplayDelegate
29414if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029416$as_echo "$DisplayDelegate" >&6; }
29417else
cristy8b350f62009-11-15 23:12:43 +000029418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029419$as_echo "no" >&6; }
29420fi
29421
29422
29423# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
29424set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029426$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029427if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029428 $as_echo_n "(cached) " >&6
29429else
29430 case $MogrifyDelegate in
29431 [\\/]* | ?:[\\/]*)
29432 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
29433 ;;
29434 *)
29435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29436for as_dir in $PATH
29437do
29438 IFS=$as_save_IFS
29439 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029440 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29442 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029444 break 2
29445 fi
29446done
cristy8b350f62009-11-15 23:12:43 +000029447 done
cristy3ed852e2009-09-05 21:47:34 +000029448IFS=$as_save_IFS
29449
29450 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
29451 ;;
29452esac
29453fi
29454MogrifyDelegate=$ac_cv_path_MogrifyDelegate
29455if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029457$as_echo "$MogrifyDelegate" >&6; }
29458else
cristy8b350f62009-11-15 23:12:43 +000029459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029460$as_echo "no" >&6; }
29461fi
29462
29463
29464# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
29465set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029467$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029468if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029469 $as_echo_n "(cached) " >&6
29470else
29471 case $GnuplotDecodeDelegate in
29472 [\\/]* | ?:[\\/]*)
29473 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
29474 ;;
29475 *)
29476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29477for as_dir in $PATH
29478do
29479 IFS=$as_save_IFS
29480 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029481 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29483 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029485 break 2
29486 fi
29487done
cristy8b350f62009-11-15 23:12:43 +000029488 done
cristy3ed852e2009-09-05 21:47:34 +000029489IFS=$as_save_IFS
29490
29491 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
29492 ;;
29493esac
29494fi
29495GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
29496if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029498$as_echo "$GnuplotDecodeDelegate" >&6; }
29499else
cristy8b350f62009-11-15 23:12:43 +000029500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029501$as_echo "no" >&6; }
29502fi
29503
29504
29505# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
29506set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029508$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029509if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029510 $as_echo_n "(cached) " >&6
29511else
29512 case $HDRDecodeDelegate in
29513 [\\/]* | ?:[\\/]*)
29514 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
29515 ;;
29516 *)
29517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29518for as_dir in $PATH
29519do
29520 IFS=$as_save_IFS
29521 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029522 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29524 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029526 break 2
29527 fi
29528done
cristy8b350f62009-11-15 23:12:43 +000029529 done
cristy3ed852e2009-09-05 21:47:34 +000029530IFS=$as_save_IFS
29531
29532 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
29533 ;;
29534esac
29535fi
29536HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
29537if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029539$as_echo "$HDRDecodeDelegate" >&6; }
29540else
cristy8b350f62009-11-15 23:12:43 +000029541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029542$as_echo "no" >&6; }
29543fi
29544
29545
29546# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
29547set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029549$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029550if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029551 $as_echo_n "(cached) " >&6
29552else
29553 case $HPGLDecodeDelegate in
29554 [\\/]* | ?:[\\/]*)
29555 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
29556 ;;
29557 *)
29558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29559for as_dir in $PATH
29560do
29561 IFS=$as_save_IFS
29562 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029563 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29565 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029567 break 2
29568 fi
29569done
cristy8b350f62009-11-15 23:12:43 +000029570 done
cristy3ed852e2009-09-05 21:47:34 +000029571IFS=$as_save_IFS
29572
29573 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
29574 ;;
29575esac
29576fi
29577HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
29578if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029580$as_echo "$HPGLDecodeDelegate" >&6; }
29581else
cristy8b350f62009-11-15 23:12:43 +000029582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029583$as_echo "no" >&6; }
29584fi
29585
29586
29587# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
29588set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029590$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029591if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029592 $as_echo_n "(cached) " >&6
29593else
29594 case $HTMLDecodeDelegate in
29595 [\\/]* | ?:[\\/]*)
29596 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
29597 ;;
29598 *)
29599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29600for as_dir in $PATH
29601do
29602 IFS=$as_save_IFS
29603 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29606 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029608 break 2
29609 fi
29610done
cristy8b350f62009-11-15 23:12:43 +000029611 done
cristy3ed852e2009-09-05 21:47:34 +000029612IFS=$as_save_IFS
29613
29614 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
29615 ;;
29616esac
29617fi
29618HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
29619if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029621$as_echo "$HTMLDecodeDelegate" >&6; }
29622else
cristy8b350f62009-11-15 23:12:43 +000029623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029624$as_echo "no" >&6; }
29625fi
29626
29627
29628# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
29629set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029631$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029632if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029633 $as_echo_n "(cached) " >&6
29634else
29635 case $ILBMDecodeDelegate in
29636 [\\/]* | ?:[\\/]*)
29637 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
29638 ;;
29639 *)
29640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29641for as_dir in $PATH
29642do
29643 IFS=$as_save_IFS
29644 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029645 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29647 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029649 break 2
29650 fi
29651done
cristy8b350f62009-11-15 23:12:43 +000029652 done
cristy3ed852e2009-09-05 21:47:34 +000029653IFS=$as_save_IFS
29654
29655 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
29656 ;;
29657esac
29658fi
29659ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
29660if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029662$as_echo "$ILBMDecodeDelegate" >&6; }
29663else
cristy8b350f62009-11-15 23:12:43 +000029664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029665$as_echo "no" >&6; }
29666fi
29667
29668
29669# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
29670set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029672$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029673if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029674 $as_echo_n "(cached) " >&6
29675else
29676 case $ILBMEncodeDelegate in
29677 [\\/]* | ?:[\\/]*)
29678 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
29679 ;;
29680 *)
29681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29682for as_dir in $PATH
29683do
29684 IFS=$as_save_IFS
29685 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029686 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29688 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029690 break 2
29691 fi
29692done
cristy8b350f62009-11-15 23:12:43 +000029693 done
cristy3ed852e2009-09-05 21:47:34 +000029694IFS=$as_save_IFS
29695
29696 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
29697 ;;
29698esac
29699fi
29700ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29701if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029703$as_echo "$ILBMEncodeDelegate" >&6; }
29704else
cristy8b350f62009-11-15 23:12:43 +000029705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029706$as_echo "no" >&6; }
29707fi
29708
29709
29710# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29711set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029713$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029714if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029715 $as_echo_n "(cached) " >&6
29716else
29717 case $LPDelegate in
29718 [\\/]* | ?:[\\/]*)
29719 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
29720 ;;
29721 *)
29722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29723for as_dir in $PATH
29724do
29725 IFS=$as_save_IFS
29726 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029727 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29729 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029731 break 2
29732 fi
29733done
cristy8b350f62009-11-15 23:12:43 +000029734 done
cristy3ed852e2009-09-05 21:47:34 +000029735IFS=$as_save_IFS
29736
29737 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
29738 ;;
29739esac
29740fi
29741LPDelegate=$ac_cv_path_LPDelegate
29742if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029744$as_echo "$LPDelegate" >&6; }
29745else
cristy8b350f62009-11-15 23:12:43 +000029746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029747$as_echo "no" >&6; }
29748fi
29749
29750
29751# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29752set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029754$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029755if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029756 $as_echo_n "(cached) " >&6
29757else
29758 case $LPRDelegate in
29759 [\\/]* | ?:[\\/]*)
29760 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
29761 ;;
29762 *)
29763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29764for as_dir in $PATH
29765do
29766 IFS=$as_save_IFS
29767 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029768 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29770 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029772 break 2
29773 fi
29774done
cristy8b350f62009-11-15 23:12:43 +000029775 done
cristy3ed852e2009-09-05 21:47:34 +000029776IFS=$as_save_IFS
29777
29778 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
29779 ;;
29780esac
29781fi
29782LPRDelegate=$ac_cv_path_LPRDelegate
29783if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029785$as_echo "$LPRDelegate" >&6; }
29786else
cristy8b350f62009-11-15 23:12:43 +000029787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029788$as_echo "no" >&6; }
29789fi
29790
29791
29792# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
29793set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029795$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029796if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029797 $as_echo_n "(cached) " >&6
29798else
29799 case $LZWDecodeDelegate in
29800 [\\/]* | ?:[\\/]*)
29801 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
29802 ;;
29803 *)
29804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29805for as_dir in $PATH
29806do
29807 IFS=$as_save_IFS
29808 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029809 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29811 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029813 break 2
29814 fi
29815done
cristy8b350f62009-11-15 23:12:43 +000029816 done
cristy3ed852e2009-09-05 21:47:34 +000029817IFS=$as_save_IFS
29818
29819 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
29820 ;;
29821esac
29822fi
29823LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
29824if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029826$as_echo "$LZWDecodeDelegate" >&6; }
29827else
cristy8b350f62009-11-15 23:12:43 +000029828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029829$as_echo "no" >&6; }
29830fi
29831
29832
29833# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
29834set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029836$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029837if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029838 $as_echo_n "(cached) " >&6
29839else
29840 case $LZWEncodeDelegate in
29841 [\\/]* | ?:[\\/]*)
29842 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
29843 ;;
29844 *)
29845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29846for as_dir in $PATH
29847do
29848 IFS=$as_save_IFS
29849 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29852 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029854 break 2
29855 fi
29856done
cristy8b350f62009-11-15 23:12:43 +000029857 done
cristy3ed852e2009-09-05 21:47:34 +000029858IFS=$as_save_IFS
29859
29860 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
29861 ;;
29862esac
29863fi
29864LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
29865if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029867$as_echo "$LZWEncodeDelegate" >&6; }
29868else
cristy8b350f62009-11-15 23:12:43 +000029869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029870$as_echo "no" >&6; }
29871fi
29872
29873
29874# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
29875set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029877$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029878if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029879 $as_echo_n "(cached) " >&6
29880else
29881 case $LaunchDelegate in
29882 [\\/]* | ?:[\\/]*)
29883 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
29884 ;;
29885 *)
29886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29887for as_dir in $PATH
29888do
29889 IFS=$as_save_IFS
29890 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029891 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29893 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029895 break 2
29896 fi
29897done
cristy8b350f62009-11-15 23:12:43 +000029898 done
cristy3ed852e2009-09-05 21:47:34 +000029899IFS=$as_save_IFS
29900
29901 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29902 ;;
29903esac
29904fi
29905LaunchDelegate=$ac_cv_path_LaunchDelegate
29906if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029908$as_echo "$LaunchDelegate" >&6; }
29909else
cristy8b350f62009-11-15 23:12:43 +000029910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029911$as_echo "no" >&6; }
29912fi
29913
29914
29915# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
29916set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029918$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029919if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029920 $as_echo_n "(cached) " >&6
29921else
29922 case $MANDelegate in
29923 [\\/]* | ?:[\\/]*)
29924 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
29925 ;;
29926 *)
29927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29928for as_dir in $PATH
29929do
29930 IFS=$as_save_IFS
29931 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029932 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29934 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029936 break 2
29937 fi
29938done
cristy8b350f62009-11-15 23:12:43 +000029939 done
cristy3ed852e2009-09-05 21:47:34 +000029940IFS=$as_save_IFS
29941
29942 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29943 ;;
29944esac
29945fi
29946MANDelegate=$ac_cv_path_MANDelegate
29947if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029949$as_echo "$MANDelegate" >&6; }
29950else
cristy8b350f62009-11-15 23:12:43 +000029951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029952$as_echo "no" >&6; }
29953fi
29954
29955
29956# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29957set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029959$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029960if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029961 $as_echo_n "(cached) " >&6
29962else
29963 case $MPEGDecodeDelegate in
29964 [\\/]* | ?:[\\/]*)
29965 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29966 ;;
29967 *)
29968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29969for as_dir in $PATH
29970do
29971 IFS=$as_save_IFS
29972 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029973 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29975 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029977 break 2
29978 fi
29979done
cristy8b350f62009-11-15 23:12:43 +000029980 done
cristy3ed852e2009-09-05 21:47:34 +000029981IFS=$as_save_IFS
29982
29983 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29984 ;;
29985esac
29986fi
29987MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29988if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029990$as_echo "$MPEGDecodeDelegate" >&6; }
29991else
cristy8b350f62009-11-15 23:12:43 +000029992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029993$as_echo "no" >&6; }
29994fi
29995
29996
29997# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29998set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030000$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030001if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030002 $as_echo_n "(cached) " >&6
30003else
30004 case $MPEGEncodeDelegate in
30005 [\\/]* | ?:[\\/]*)
30006 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30007 ;;
30008 *)
30009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30010for as_dir in $PATH
30011do
30012 IFS=$as_save_IFS
30013 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030014 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30016 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030018 break 2
30019 fi
30020done
cristy8b350f62009-11-15 23:12:43 +000030021 done
cristy3ed852e2009-09-05 21:47:34 +000030022IFS=$as_save_IFS
30023
30024 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30025 ;;
30026esac
30027fi
30028MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30029if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030031$as_echo "$MPEGEncodeDelegate" >&6; }
30032else
cristy8b350f62009-11-15 23:12:43 +000030033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030034$as_echo "no" >&6; }
30035fi
30036
30037
30038# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30039set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030041$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030042if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030043 $as_echo_n "(cached) " >&6
30044else
30045 case $MVDelegate in
30046 [\\/]* | ?:[\\/]*)
30047 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30048 ;;
30049 *)
30050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30051for as_dir in $PATH
30052do
30053 IFS=$as_save_IFS
30054 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030055 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30057 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030059 break 2
30060 fi
30061done
cristy8b350f62009-11-15 23:12:43 +000030062 done
cristy3ed852e2009-09-05 21:47:34 +000030063IFS=$as_save_IFS
30064
30065 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30066 ;;
30067esac
30068fi
30069MVDelegate=$ac_cv_path_MVDelegate
30070if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030072$as_echo "$MVDelegate" >&6; }
30073else
cristy8b350f62009-11-15 23:12:43 +000030074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030075$as_echo "no" >&6; }
30076fi
30077
30078
30079# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30080set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030082$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030083if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030084 $as_echo_n "(cached) " >&6
30085else
30086 case $PCLDelegate in
30087 [\\/]* | ?:[\\/]*)
30088 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30089 ;;
30090 *)
30091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30092for as_dir in $PATH
30093do
30094 IFS=$as_save_IFS
30095 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030096 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30098 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030100 break 2
30101 fi
30102done
cristy8b350f62009-11-15 23:12:43 +000030103 done
cristy3ed852e2009-09-05 21:47:34 +000030104IFS=$as_save_IFS
30105
30106 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30107 ;;
30108esac
30109fi
30110PCLDelegate=$ac_cv_path_PCLDelegate
30111if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030113$as_echo "$PCLDelegate" >&6; }
30114else
cristy8b350f62009-11-15 23:12:43 +000030115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030116$as_echo "no" >&6; }
30117fi
30118
30119
30120# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30121set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030123$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030124if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030125 $as_echo_n "(cached) " >&6
30126else
30127 case $PGPDecodeDelegate in
30128 [\\/]* | ?:[\\/]*)
30129 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30130 ;;
30131 *)
30132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30133for as_dir in $PATH
30134do
30135 IFS=$as_save_IFS
30136 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030137 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30139 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030141 break 2
30142 fi
30143done
cristy8b350f62009-11-15 23:12:43 +000030144 done
cristy3ed852e2009-09-05 21:47:34 +000030145IFS=$as_save_IFS
30146
30147 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30148 ;;
30149esac
30150fi
30151PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30152if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030154$as_echo "$PGPDecodeDelegate" >&6; }
30155else
cristy8b350f62009-11-15 23:12:43 +000030156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030157$as_echo "no" >&6; }
30158fi
30159
30160
30161# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30162set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030164$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030165if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030166 $as_echo_n "(cached) " >&6
30167else
30168 case $POVDelegate in
30169 [\\/]* | ?:[\\/]*)
30170 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30171 ;;
30172 *)
30173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30174for as_dir in $PATH
30175do
30176 IFS=$as_save_IFS
30177 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030178 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30180 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030182 break 2
30183 fi
30184done
cristy8b350f62009-11-15 23:12:43 +000030185 done
cristy3ed852e2009-09-05 21:47:34 +000030186IFS=$as_save_IFS
30187
30188 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30189 ;;
30190esac
30191fi
30192POVDelegate=$ac_cv_path_POVDelegate
30193if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030195$as_echo "$POVDelegate" >&6; }
30196else
cristy8b350f62009-11-15 23:12:43 +000030197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030198$as_echo "no" >&6; }
30199fi
30200
30201
30202for ac_prog in gsx gsc "$PSDelegateDefault"
30203do
30204 # Extract the first word of "$ac_prog", so it can be a program name with args.
30205set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030207$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030208if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030209 $as_echo_n "(cached) " >&6
30210else
30211 case $PSDelegate in
30212 [\\/]* | ?:[\\/]*)
30213 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30214 ;;
30215 *)
30216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30217for as_dir in $PATH
30218do
30219 IFS=$as_save_IFS
30220 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030221 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30223 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030225 break 2
30226 fi
30227done
cristy8b350f62009-11-15 23:12:43 +000030228 done
cristy3ed852e2009-09-05 21:47:34 +000030229IFS=$as_save_IFS
30230
30231 ;;
30232esac
30233fi
30234PSDelegate=$ac_cv_path_PSDelegate
30235if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030237$as_echo "$PSDelegate" >&6; }
30238else
cristy8b350f62009-11-15 23:12:43 +000030239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030240$as_echo "no" >&6; }
30241fi
30242
30243
30244 test -n "$PSDelegate" && break
30245done
30246test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
30247
30248# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
30249set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030251$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030252if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030253 $as_echo_n "(cached) " >&6
30254else
30255 case $RLEEncodeDelegate in
30256 [\\/]* | ?:[\\/]*)
30257 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
30258 ;;
30259 *)
30260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30261for as_dir in $PATH
30262do
30263 IFS=$as_save_IFS
30264 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30267 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030269 break 2
30270 fi
30271done
cristy8b350f62009-11-15 23:12:43 +000030272 done
cristy3ed852e2009-09-05 21:47:34 +000030273IFS=$as_save_IFS
30274
30275 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
30276 ;;
30277esac
30278fi
30279RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
30280if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030282$as_echo "$RLEEncodeDelegate" >&6; }
30283else
cristy8b350f62009-11-15 23:12:43 +000030284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030285$as_echo "no" >&6; }
30286fi
30287
30288
30289# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
30290set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030292$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030293if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030294 $as_echo_n "(cached) " >&6
30295else
30296 case $RMDelegate in
30297 [\\/]* | ?:[\\/]*)
30298 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
30299 ;;
30300 *)
30301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30302for as_dir in $PATH
30303do
30304 IFS=$as_save_IFS
30305 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030306 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30308 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030310 break 2
30311 fi
30312done
cristy8b350f62009-11-15 23:12:43 +000030313 done
cristy3ed852e2009-09-05 21:47:34 +000030314IFS=$as_save_IFS
30315
30316 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
30317 ;;
30318esac
30319fi
30320RMDelegate=$ac_cv_path_RMDelegate
30321if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030323$as_echo "$RMDelegate" >&6; }
30324else
cristy8b350f62009-11-15 23:12:43 +000030325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030326$as_echo "no" >&6; }
30327fi
30328
30329
cristy4689cf02010-02-17 21:15:45 +000030330# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
30331set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
30332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30333$as_echo_n "checking for $ac_word... " >&6; }
30334if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
30335 $as_echo_n "(cached) " >&6
30336else
30337 case $RSVGDecodeDelegate in
30338 [\\/]* | ?:[\\/]*)
30339 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
30340 ;;
30341 *)
30342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30343for as_dir in $PATH
30344do
30345 IFS=$as_save_IFS
30346 test -z "$as_dir" && as_dir=.
30347 for ac_exec_ext in '' $ac_executable_extensions; do
30348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30349 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30351 break 2
30352 fi
30353done
30354 done
30355IFS=$as_save_IFS
30356
30357 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
30358 ;;
30359esac
30360fi
30361RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
30362if test -n "$RSVGDecodeDelegate"; then
30363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
30364$as_echo "$RSVGDecodeDelegate" >&6; }
30365else
30366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30367$as_echo "no" >&6; }
30368fi
30369
30370
cristy3ed852e2009-09-05 21:47:34 +000030371# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
30372set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030374$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030375if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030376 $as_echo_n "(cached) " >&6
30377else
30378 case $SCANDecodeDelegate in
30379 [\\/]* | ?:[\\/]*)
30380 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
30381 ;;
30382 *)
30383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30384for as_dir in $PATH
30385do
30386 IFS=$as_save_IFS
30387 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30390 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030392 break 2
30393 fi
30394done
cristy8b350f62009-11-15 23:12:43 +000030395 done
cristy3ed852e2009-09-05 21:47:34 +000030396IFS=$as_save_IFS
30397
30398 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
30399 ;;
30400esac
30401fi
30402SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
30403if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030405$as_echo "$SCANDecodeDelegate" >&6; }
30406else
cristy8b350f62009-11-15 23:12:43 +000030407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030408$as_echo "no" >&6; }
30409fi
30410
30411
30412# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
30413set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030415$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030416if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030417 $as_echo_n "(cached) " >&6
30418else
30419 case $TXTDelegate in
30420 [\\/]* | ?:[\\/]*)
30421 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
30422 ;;
30423 *)
30424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30425for as_dir in $PATH
30426do
30427 IFS=$as_save_IFS
30428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30431 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030433 break 2
30434 fi
30435done
cristy8b350f62009-11-15 23:12:43 +000030436 done
cristy3ed852e2009-09-05 21:47:34 +000030437IFS=$as_save_IFS
30438
30439 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
30440 ;;
30441esac
30442fi
30443TXTDelegate=$ac_cv_path_TXTDelegate
30444if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030446$as_echo "$TXTDelegate" >&6; }
30447else
cristy8b350f62009-11-15 23:12:43 +000030448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030449$as_echo "no" >&6; }
30450fi
30451
30452
30453# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
30454set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030456$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030457if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030458 $as_echo_n "(cached) " >&6
30459else
30460 case $WMFDecodeDelegate in
30461 [\\/]* | ?:[\\/]*)
30462 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
30463 ;;
30464 *)
30465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30466for as_dir in $PATH
30467do
30468 IFS=$as_save_IFS
30469 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030470 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30472 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030474 break 2
30475 fi
30476done
cristy8b350f62009-11-15 23:12:43 +000030477 done
cristy3ed852e2009-09-05 21:47:34 +000030478IFS=$as_save_IFS
30479
30480 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
30481 ;;
30482esac
30483fi
30484WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
30485if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030487$as_echo "$WMFDecodeDelegate" >&6; }
30488else
cristy8b350f62009-11-15 23:12:43 +000030489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030490$as_echo "no" >&6; }
30491fi
30492
30493
30494# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
30495set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030497$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030498if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030499 $as_echo_n "(cached) " >&6
30500else
30501 case $WWWDecodeDelegate in
30502 [\\/]* | ?:[\\/]*)
30503 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
30504 ;;
30505 *)
30506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30507for as_dir in $PATH
30508do
30509 IFS=$as_save_IFS
30510 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030511 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30513 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030515 break 2
30516 fi
30517done
cristy8b350f62009-11-15 23:12:43 +000030518 done
cristy3ed852e2009-09-05 21:47:34 +000030519IFS=$as_save_IFS
30520
30521 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
30522 ;;
30523esac
30524fi
30525WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
30526if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030528$as_echo "$WWWDecodeDelegate" >&6; }
30529else
cristy8b350f62009-11-15 23:12:43 +000030530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030531$as_echo "no" >&6; }
30532fi
30533
30534
30535# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
30536set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030538$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030539if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030540 $as_echo_n "(cached) " >&6
30541else
30542 case $XPSDelegate in
30543 [\\/]* | ?:[\\/]*)
30544 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
30545 ;;
30546 *)
30547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30548for as_dir in $PATH
30549do
30550 IFS=$as_save_IFS
30551 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30554 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030556 break 2
30557 fi
30558done
cristy8b350f62009-11-15 23:12:43 +000030559 done
cristy3ed852e2009-09-05 21:47:34 +000030560IFS=$as_save_IFS
30561
30562 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
30563 ;;
30564esac
30565fi
30566XPSDelegate=$ac_cv_path_XPSDelegate
30567if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030569$as_echo "$XPSDelegate" >&6; }
30570else
cristy8b350f62009-11-15 23:12:43 +000030571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030572$as_echo "no" >&6; }
30573fi
30574
30575
30576# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
30577set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030579$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030580if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030581 $as_echo_n "(cached) " >&6
30582else
30583 case $ZipDelegate in
30584 [\\/]* | ?:[\\/]*)
30585 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
30586 ;;
30587 *)
30588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30589for as_dir in $PATH
30590do
30591 IFS=$as_save_IFS
30592 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030593 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30595 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030597 break 2
30598 fi
30599done
cristy8b350f62009-11-15 23:12:43 +000030600 done
cristy3ed852e2009-09-05 21:47:34 +000030601IFS=$as_save_IFS
30602
30603 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
30604 ;;
30605esac
30606fi
30607ZipDelegate=$ac_cv_path_ZipDelegate
30608if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030610$as_echo "$ZipDelegate" >&6; }
30611else
cristy8b350f62009-11-15 23:12:43 +000030612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030613$as_echo "no" >&6; }
30614fi
30615
30616
30617
30618# Prefer lpr to lp; lp needs options tacked on.
30619if test "$LPRDelegate" != no; then
30620 PrintDelegate="$LPRDelegate"
30621else
30622 PrintDelegate="$LPDelegate -c -s"
30623fi
30624
30625
30626# Installed ImageMagick utiltity paths
30627ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
30628DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
30629MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
30630
30631# Set delegate booleans
30632have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
30633have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
30634have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
30635have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
30636have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
30637have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
30638have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
30639have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
30640have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
30641have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
30642have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
30643
30644#
30645# Test for font directories
30646#
30647type_include_files=''
30648
cristy430a7312010-01-21 20:44:04 +000030649# Dejavu fonts.
30650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
30651$as_echo_n "checking for Dejavu fonts directory... " >&6; }
30652dejavu_font_dir=''
30653if test "${with_dejavu_font_dir}" != 'default'; then
30654 dejavu_font_dir="${with_dejavu_font_dir}/"
30655else
30656 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
30657 if test -f "${font_dir}DejaVuSerif.ttf"; then
30658 dejavu_font_dir="${font_dir}"
30659 break 1
30660 fi
30661 done
30662fi
30663if test "${dejavu_font_dir}x" != 'x'; then
30664 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
30665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
30666$as_echo "$dejavu_font_dir" >&6; }
30667else
30668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
30669$as_echo "not found!" >&6; };
30670fi
30671
30672
cristy3ed852e2009-09-05 21:47:34 +000030673# Windows
30674windows_font_dir=''
30675if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
30676 windows_font_dir="${with_windows_font_dir}/"
30677fi
cristy430a7312010-01-21 20:44:04 +000030678if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000030679 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
30680 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
30681 fi
30682 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
30683 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
30684 fi
30685 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
30686 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
30687 fi
30688fi
cristy430a7312010-01-21 20:44:04 +000030689if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000030690 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
30691fi
30692
30693
30694# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000030695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000030696$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
30697ghostscript_font_dir=''
30698if test "${with_gs_font_dir}" != 'default'; then
30699 ghostscript_font_dir="${with_gs_font_dir}/"
30700else
30701 if test "${native_win32_build}" = 'yes'; then
30702 # Native Windows Build
30703 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
30704 if test -f "${font_dir}a010013l.pfb"; then
30705 ghostscript_font_dir="$font_dir"
30706 break 1
30707 fi
30708 done
30709 if test "${PSDelegate}" != 'gswin32c'; then
30710 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
30711 fi
30712 else
30713 # Linux / Mac OS X / Unix Build
30714 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
30715 if test -f "${font_dir}a010013l.pfb"; then
30716 ghostscript_font_dir="${font_dir}"
30717 break 1
30718 fi
30719 done
30720 if test "${ghostscript_font_dir}x" = 'x'; then
30721 if test "$PSDelegate" != 'gs'; then
30722 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
30723 fi
30724 fi
30725 fi
30726fi
30727if test "${ghostscript_font_dir}x" != 'x'; then
30728 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000030729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000030730$as_echo "$ghostscript_font_dir" >&6; }
30731else
cristy8b350f62009-11-15 23:12:43 +000030732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000030733$as_echo "not found!" >&6; };
30734fi
30735
30736case "${build_os}" in
30737 mingw* )
30738 PSDelegate=`$WinPathScript "$PSDelegate" 1`
30739 ;;
30740esac
30741
30742
30743
30744#
30745# Handle case where user doesn't want frozen paths
30746#
30747if test "$with_frozenpaths" != 'yes'; then
30748 # Re-set delegate definitions to default (no paths)
30749 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
30750 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
30751 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
30752 BZIPDelegate="$BZIPDelegateDefault"
30753 BrowseDelegate="$BrowseDelegateDefault"
30754 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
30755 CatDelegate="$CatDelegateDefault"
30756 ConvertDelegate="$ConvertDelegateDefault"
30757 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
30758 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
30759 EchoDelegate="$EchoDelegateDefault"
30760 EditorDelegate="$EditorDelegateDefault"
30761 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
30762 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
30763 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
30764 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
30765 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
30766 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
30767 LPDelegate="$LPDelegateDefault"
30768 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
30769 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
30770 LaunchDelegate="$LaunchDelegateDefault"
30771 MANDelegate="$MANDelegateDefault"
30772 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
30773 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
30774 MVDelegate="$MVDelegateDefault"
30775 MogrifyDelegate="$MogrifyDelegateDefault"
30776 PCLDelegate="$PCLDelegateDefault"
30777 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
30778 POVDelegate="$POVDelegateDefault"
30779 PSDelegate="$PSDelegateDefault"
30780 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
30781 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
30782 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000030783 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000030784 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
30785 ShowImageDelegate="$ShowImageDelegateDefault"
30786 TXTDelegate="$TXTDelegateDefault"
30787 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
30788 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
30789 XPSDelegate="$XPSDelegateDefault"
30790 ZipDelegate="$ZipDelegateDefault"
30791fi
30792
30793# Delegate substitutions
30794
30795
30796
30797
30798
30799
30800
30801
30802
30803
30804
30805
30806
30807
30808
30809
30810
30811
30812
30813
30814
30815
30816
30817
30818
30819
30820
30821
30822
30823
30824
30825
30826
30827
30828
30829
30830
30831
30832
30833
30834
30835
30836#
30837# RPM support.
30838#
30839RPM=''
30840for ac_prog in gnutar gtar tar
30841do
30842 # Extract the first word of "$ac_prog", so it can be a program name with args.
30843set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030845$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030846if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030847 $as_echo_n "(cached) " >&6
30848else
30849 if test -n "$TAR"; then
30850 ac_cv_prog_TAR="$TAR" # Let the user override the test.
30851else
30852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30853for as_dir in $PATH
30854do
30855 IFS=$as_save_IFS
30856 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030857 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30859 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030861 break 2
30862 fi
30863done
cristy8b350f62009-11-15 23:12:43 +000030864 done
cristy3ed852e2009-09-05 21:47:34 +000030865IFS=$as_save_IFS
30866
30867fi
30868fi
30869TAR=$ac_cv_prog_TAR
30870if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000030871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000030872$as_echo "$TAR" >&6; }
30873else
cristy8b350f62009-11-15 23:12:43 +000030874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030875$as_echo "no" >&6; }
30876fi
30877
30878
30879 test -n "$TAR" && break
30880done
30881
30882for ac_prog in perl
30883do
30884 # Extract the first word of "$ac_prog", so it can be a program name with args.
30885set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030887$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030888if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030889 $as_echo_n "(cached) " >&6
30890else
30891 if test -n "$PERL"; then
30892 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30893else
30894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30895for as_dir in $PATH
30896do
30897 IFS=$as_save_IFS
30898 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30901 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030903 break 2
30904 fi
30905done
cristy8b350f62009-11-15 23:12:43 +000030906 done
cristy3ed852e2009-09-05 21:47:34 +000030907IFS=$as_save_IFS
30908
30909fi
30910fi
30911PERL=$ac_cv_prog_PERL
30912if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030914$as_echo "$PERL" >&6; }
30915else
cristy8b350f62009-11-15 23:12:43 +000030916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030917$as_echo "no" >&6; }
30918fi
30919
30920
30921 test -n "$PERL" && break
30922done
30923
30924for ac_prog in rpmbuild rpm
30925do
30926 # Extract the first word of "$ac_prog", so it can be a program name with args.
30927set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030929$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030930if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030931 $as_echo_n "(cached) " >&6
30932else
30933 if test -n "$RPM"; then
30934 ac_cv_prog_RPM="$RPM" # Let the user override the test.
30935else
30936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30937for as_dir in $PATH
30938do
30939 IFS=$as_save_IFS
30940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30943 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030945 break 2
30946 fi
30947done
cristy8b350f62009-11-15 23:12:43 +000030948 done
cristy3ed852e2009-09-05 21:47:34 +000030949IFS=$as_save_IFS
30950
30951fi
30952fi
30953RPM=$ac_cv_prog_RPM
30954if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000030955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000030956$as_echo "$RPM" >&6; }
30957else
cristy8b350f62009-11-15 23:12:43 +000030958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030959$as_echo "no" >&6; }
30960fi
30961
30962
30963 test -n "$RPM" && break
30964done
30965
30966
30967ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30968
30969
30970AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30971
30972
30973AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30974
30975
30976AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30977
30978
30979 if test "x$RPM" != "x" ; then
30980 RPM_DELEGATE_TRUE=
30981 RPM_DELEGATE_FALSE='#'
30982else
30983 RPM_DELEGATE_TRUE='#'
30984 RPM_DELEGATE_FALSE=
30985fi
30986
30987
30988#
30989# 7ZIP support (http://p7zip.sourceforge.net/)
30990#
30991P7ZIP=''
30992for ac_prog in 7za
30993do
30994 # Extract the first word of "$ac_prog", so it can be a program name with args.
30995set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030997$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030998if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030999 $as_echo_n "(cached) " >&6
31000else
31001 if test -n "$P7ZIP"; then
31002 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31003else
31004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31005for as_dir in $PATH
31006do
31007 IFS=$as_save_IFS
31008 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31011 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031013 break 2
31014 fi
31015done
cristy8b350f62009-11-15 23:12:43 +000031016 done
cristy3ed852e2009-09-05 21:47:34 +000031017IFS=$as_save_IFS
31018
31019fi
31020fi
31021P7ZIP=$ac_cv_prog_P7ZIP
31022if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031024$as_echo "$P7ZIP" >&6; }
31025else
cristy8b350f62009-11-15 23:12:43 +000031026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031027$as_echo "no" >&6; }
31028fi
31029
31030
31031 test -n "$P7ZIP" && break
31032done
31033
31034
31035 if test "x$P7ZIP" != "x" ; then
31036 P7ZIP_DELEGATE_TRUE=
31037 P7ZIP_DELEGATE_FALSE='#'
31038else
31039 P7ZIP_DELEGATE_TRUE='#'
31040 P7ZIP_DELEGATE_FALSE=
31041fi
31042
31043
31044#
31045# ZIP support (http://www.info-zip.org/Zip.html)
31046#
31047ZIP=''
31048for ac_prog in zip
31049do
31050 # Extract the first word of "$ac_prog", so it can be a program name with args.
31051set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031053$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031054if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031055 $as_echo_n "(cached) " >&6
31056else
31057 if test -n "$ZIP"; then
31058 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31059else
31060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31061for as_dir in $PATH
31062do
31063 IFS=$as_save_IFS
31064 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031065 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31067 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031069 break 2
31070 fi
31071done
cristy8b350f62009-11-15 23:12:43 +000031072 done
cristy3ed852e2009-09-05 21:47:34 +000031073IFS=$as_save_IFS
31074
31075fi
31076fi
31077ZIP=$ac_cv_prog_ZIP
31078if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031080$as_echo "$ZIP" >&6; }
31081else
cristy8b350f62009-11-15 23:12:43 +000031082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031083$as_echo "no" >&6; }
31084fi
31085
31086
31087 test -n "$ZIP" && break
31088done
31089
31090
31091 if test "x$ZIP" != "x" ; then
31092 ZIP_DELEGATE_TRUE=
31093 ZIP_DELEGATE_FALSE='#'
31094else
31095 ZIP_DELEGATE_TRUE='#'
31096 ZIP_DELEGATE_FALSE=
31097fi
31098
31099
31100#
31101# GhostPCL related configuration.
31102#
31103PCLColorDevice=ppmraw
31104PCLCMYKDevice=bmpsep8
31105PCLMonoDevice=pbmraw
31106if test -z "$PCLVersion"; then
31107 PCLVersion='unknown'
31108fi
31109if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031111$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031113$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031115$as_echo "" >&6; }
31116 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031118$as_echo_n "checking for pcl color device... " >&6; }
31119 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31120 :
31121 else
31122 PCLColorDevice=ppmraw
31123 fi
cristy8b350f62009-11-15 23:12:43 +000031124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031125$as_echo "$PCLColorDevice" >&6; }
31126
31127 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031129$as_echo_n "checking for pcl CMYK device... " >&6; }
31130 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31131 :
31132 else
31133 PCLCMYKDevice=$PCLColorDevice
31134 fi
cristy8b350f62009-11-15 23:12:43 +000031135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031136$as_echo "$PCLCMYKDevice" >&6; }
31137
31138 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031140$as_echo_n "checking for pcl mono device... " >&6; }
31141 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31142 :
31143 else
31144 PCLMonoDevice=$PCLColorDevice
31145 fi
cristy8b350f62009-11-15 23:12:43 +000031146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031147$as_echo "$PCLMonoDevice" >&6; }
31148fi
31149
31150
31151
31152
31153
31154
31155#
31156# GhostXPS related configuration.
31157#
31158XPSColorDevice=ppmraw
31159XPSCMYKDevice=bmpsep8
31160XPSMonoDevice=pbmraw
31161if test -z "$XPSVersion"; then
31162 XPSVersion='unknown'
31163fi
31164if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031166$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031168$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031170$as_echo "" >&6; }
31171 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031173$as_echo_n "checking for xps color device... " >&6; }
31174 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31175 :
31176 else
31177 XPSColorDevice=ppmraw
31178 fi
cristy8b350f62009-11-15 23:12:43 +000031179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031180$as_echo "$XPSColorDevice" >&6; }
31181
31182 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031184$as_echo_n "checking for xps CMYK device... " >&6; }
31185 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31186 :
31187 else
31188 XPSCMYKDevice=$XPSColorDevice
31189 fi
cristy8b350f62009-11-15 23:12:43 +000031190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031191$as_echo "$XPSCMYKDevice" >&6; }
31192
31193 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031195$as_echo_n "checking for xps mono device... " >&6; }
31196 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31197 :
31198 else
31199 XPSMonoDevice=$XPSColorDevice
31200 fi
cristy8b350f62009-11-15 23:12:43 +000031201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031202$as_echo "$XPSMonoDevice" >&6; }
31203fi
31204
31205
31206
31207
31208
31209
31210#
31211# Ghostscript related configuration.
31212#
31213if test "$have_png" = 'yes'; then
31214 GSAlphaDevice=pngalpha
31215else
31216 GSAlphaDevice=pnmraw
31217fi
31218GSColorDevice=pnmraw
31219GSCMYKDevice=pam
31220GSMonoDevice=pbmraw
31221GSPDFDevice=pdfwrite
31222GSPSDevice=pswrite
31223GSEPSDevice=epswrite
31224GSVersion='unknown'
31225if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031227$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000031229$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031231$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000031233$as_echo_n "checking for Ghostscript version... " >&6; }
31234 if GSVersion=`$PSDelegate --version`; then
31235 :
31236 else
31237 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
31238 fi
cristy8b350f62009-11-15 23:12:43 +000031239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000031240$as_echo "$GSVersion" >&6; }
31241
31242 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000031243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031244$as_echo_n "checking for gs alpha device... " >&6; }
31245 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31246 :
31247 else
31248 GSAlphaDevice=pnmraw
31249 fi
cristy8b350f62009-11-15 23:12:43 +000031250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031251$as_echo "$GSAlphaDevice" >&6; }
31252
31253 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031255$as_echo_n "checking for gs color device... " >&6; }
31256 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31257 :
31258 else
31259 GSColorDevice=pnmraw
31260 fi
cristy8b350f62009-11-15 23:12:43 +000031261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031262$as_echo "$GSColorDevice" >&6; }
31263
31264 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031266$as_echo_n "checking for gs CMYK device... " >&6; }
31267 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31268 :
31269 else
31270 GSCMYKDevice=bmpsep8
31271 fi
cristy8b350f62009-11-15 23:12:43 +000031272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031273$as_echo "$GSCMYKDevice" >&6; }
31274
31275 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031277$as_echo_n "checking for gs mono device... " >&6; }
31278 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31279 :
31280 else
31281 GSMonoDevice=$GSColorDevice
31282 fi
cristy8b350f62009-11-15 23:12:43 +000031283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031284$as_echo "$GSMonoDevice" >&6; }
31285
31286 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000031287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031288$as_echo_n "checking for gs PDF writing device... " >&6; }
31289 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31290 :
31291 else
31292 GSPDFDevice=nodevice
31293 fi
cristy8b350f62009-11-15 23:12:43 +000031294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031295$as_echo "$GSPDFDevice" >&6; }
31296
31297 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000031298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031299$as_echo_n "checking for gs PS writing device... " >&6; }
31300 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31301 :
31302 else
31303 GSPSDevice=nodevice
31304 fi
cristy8b350f62009-11-15 23:12:43 +000031305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031306$as_echo "$GSPSDevice" >&6; }
31307
31308 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000031309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031310$as_echo_n "checking for gs EPS writing device... " >&6; }
31311 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31312 :
31313 else
31314 GSEPSDevice=nodevice
31315 fi
cristy8b350f62009-11-15 23:12:43 +000031316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031317$as_echo "$GSEPSDevice" >&6; }
31318fi
31319
31320
31321
31322
31323
31324
31325
31326
31327
31328
31329#
31330# PerlMagick-related configuration
31331#
31332
31333# Look for PERL if PerlMagick requested
31334# If name/path of desired PERL interpreter is specified, look for that one first
31335have_perl='no'
31336if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000031337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031338$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031340$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031342$as_echo "" >&6; }
31343 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031345$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031346if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031347 $as_echo_n "(cached) " >&6
31348else
31349 ac_cv_path_PERL="$with_perl"
31350fi
cristy8b350f62009-11-15 23:12:43 +000031351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031352$as_echo "$ac_cv_path_PERL" >&6; };
31353 PERL=$ac_cv_path_PERL
31354 have_perl="$ac_cv_path_PERL"
31355 else
31356 for ac_prog in perl perl5
31357do
31358 # Extract the first word of "$ac_prog", so it can be a program name with args.
31359set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031361$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031362if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031363 $as_echo_n "(cached) " >&6
31364else
31365 case $PERL in
31366 [\\/]* | ?:[\\/]*)
31367 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31368 ;;
31369 *)
31370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31371for as_dir in $PATH
31372do
31373 IFS=$as_save_IFS
31374 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031375 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31377 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031379 break 2
31380 fi
31381done
cristy8b350f62009-11-15 23:12:43 +000031382 done
cristy3ed852e2009-09-05 21:47:34 +000031383IFS=$as_save_IFS
31384
31385 ;;
31386esac
31387fi
31388PERL=$ac_cv_path_PERL
31389if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031391$as_echo "$PERL" >&6; }
31392else
cristy8b350f62009-11-15 23:12:43 +000031393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031394$as_echo "no" >&6; }
31395fi
31396
31397
31398 test -n "$PERL" && break
31399done
31400 if test "$ac_cv_path_PERL"; then
31401 have_perl="$ac_cv_path_PERL"
31402 fi
31403 fi
31404fi
31405
cristy949301e2010-01-06 01:38:40 +000031406if test "$with_perl" != 'yes' ; then
31407 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
31408fi
31409
31410PERL_SUPPORTS_DESTDIR='no'
31411
cristy3ed852e2009-09-05 21:47:34 +000031412with_perl_static='no'
31413with_perl_dynamic='no'
31414if test "$have_perl" != 'no'; then
31415 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
31416 with_perl_static='yes'
31417 fi
31418 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
31419 with_perl_dynamic='yes'
31420 fi
31421 # Is PERL's MakeMaker new enough to support DESTDIR?
31422 # Make sure we have perl
31423if test -z "$PERL"; then
31424# Extract the first word of "perl", so it can be a program name with args.
31425set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031427$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031428if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031429 $as_echo_n "(cached) " >&6
31430else
31431 if test -n "$PERL"; then
31432 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31433else
31434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31435for as_dir in $PATH
31436do
31437 IFS=$as_save_IFS
31438 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031439 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31441 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000031442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031443 break 2
31444 fi
31445done
cristy8b350f62009-11-15 23:12:43 +000031446 done
cristy3ed852e2009-09-05 21:47:34 +000031447IFS=$as_save_IFS
31448
31449fi
31450fi
31451PERL=$ac_cv_prog_PERL
31452if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031454$as_echo "$PERL" >&6; }
31455else
cristy8b350f62009-11-15 23:12:43 +000031456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031457$as_echo "no" >&6; }
31458fi
31459
31460
31461fi
31462
31463# Check if version of Perl is sufficient
31464ac_perl_version="5.8.1"
31465
31466if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000031467 { $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 +000031468$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
31469 # NB: It would be nice to log the error if there is one, but we cannot rely
31470 # on autoconf internals
31471 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
31472 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000031473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031474$as_echo "no" >&6; };
31475 PERL_SUPPORTS_DESTDIR='no'
31476 else
cristy8b350f62009-11-15 23:12:43 +000031477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000031478$as_echo "ok" >&6; };
31479 PERL_SUPPORTS_DESTDIR='yes'
31480 fi
31481else
cristy8b350f62009-11-15 23:12:43 +000031482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031483$as_echo "$as_me: WARNING: could not find perl" >&2;}
31484fi
31485
31486fi
31487 if test "$have_perl" != 'no'; then
31488 WITH_PERL_TRUE=
31489 WITH_PERL_FALSE='#'
31490else
31491 WITH_PERL_TRUE='#'
31492 WITH_PERL_FALSE=
31493fi
31494
31495 if test $with_perl_static = 'yes'; then
31496 WITH_PERL_STATIC_TRUE=
31497 WITH_PERL_STATIC_FALSE='#'
31498else
31499 WITH_PERL_STATIC_TRUE='#'
31500 WITH_PERL_STATIC_FALSE=
31501fi
31502
31503 if test $with_perl_dynamic = 'yes'; then
31504 WITH_PERL_DYNAMIC_TRUE=
31505 WITH_PERL_DYNAMIC_FALSE='#'
31506else
31507 WITH_PERL_DYNAMIC_TRUE='#'
31508 WITH_PERL_DYNAMIC_FALSE=
31509fi
31510
31511
31512
31513# Determine path to pick up MagickCore library from for use with building PerlMagick
31514MAGICKCORE_PATH="${LIB_DIR}"
31515if test $with_perl_static = 'yes'; then
31516 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
31517 libtool_objdir=$objdir
31518
31519 # Linker search path to library, followed by -lMagickCore
31520 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
31521fi
31522
31523
31524# Create a simple string containing format names for all delegate libraries
31525DELEGATES=''
31526if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
31527if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
31528if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
31529if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
31530if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
31531if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
31532if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
31533if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
31534if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
31535if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
31536if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
31537if test "$have_jpeg" = 'yes'; then
31538 DELEGATES="$DELEGATES jpeg";
31539 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
31540fi
31541if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
31542if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
31543if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
31544if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
31545if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
31546if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
31547if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
31548if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
31549if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
31550if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
31551if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
31552if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
31553
31554
31555
31556#
31557# Handle special compiler flags
31558#
31559
31560# Add '-p' if prof source profiling support enabled
31561if test "$enable_prof" = 'yes'; then
31562 CFLAGS="-p $CFLAGS"
31563 CXXFLAGS="-p $CXXFLAGS"
31564 LDFLAGS="-p $LDFLAGS"
31565fi
31566
31567# Add '-pg' if gprof source profiling support enabled
31568if test "$enable_gprof" = 'yes'; then
31569 CFLAGS="-pg $CFLAGS"
31570 CXXFLAGS="-pg $CXXFLAGS"
31571 LDFLAGS="-pg $LDFLAGS"
31572fi
31573
31574# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
31575# This is a gcc-specific feature
31576if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000031578$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031579if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031580 $as_echo_n "(cached) " >&6
31581else
31582 ac_check_lib_save_LIBS=$LIBS
31583LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031585/* end confdefs.h. */
31586
31587/* Override any GCC internal prototype to avoid an error.
31588 Use char because int might match the return type of a GCC
31589 builtin and then its argument prototype would still apply. */
31590#ifdef __cplusplus
31591extern "C"
31592#endif
31593char _gcov_init ();
31594int
31595main ()
31596{
31597return _gcov_init ();
31598 ;
31599 return 0;
31600}
31601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031602if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031603 ac_cv_lib_gcov__gcov_init=yes
31604else
cristy8b350f62009-11-15 23:12:43 +000031605 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000031606fi
cristy8b350f62009-11-15 23:12:43 +000031607rm -f core conftest.err conftest.$ac_objext \
31608 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031609LIBS=$ac_check_lib_save_LIBS
31610fi
cristy8b350f62009-11-15 23:12:43 +000031611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000031612$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031613if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000031614 cat >>confdefs.h <<_ACEOF
31615#define HAVE_LIBGCOV 1
31616_ACEOF
31617
31618 LIBS="-lgcov $LIBS"
31619
31620fi
31621
cristy8b350f62009-11-15 23:12:43 +000031622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000031623$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031624if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031625 $as_echo_n "(cached) " >&6
31626else
31627 ac_check_lib_save_LIBS=$LIBS
31628LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031630/* end confdefs.h. */
31631
31632/* Override any GCC internal prototype to avoid an error.
31633 Use char because int might match the return type of a GCC
31634 builtin and then its argument prototype would still apply. */
31635#ifdef __cplusplus
31636extern "C"
31637#endif
31638char __gcov_init ();
31639int
31640main ()
31641{
31642return __gcov_init ();
31643 ;
31644 return 0;
31645}
31646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031647if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031648 ac_cv_lib_gcov___gcov_init=yes
31649else
cristy8b350f62009-11-15 23:12:43 +000031650 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000031651fi
cristy8b350f62009-11-15 23:12:43 +000031652rm -f core conftest.err conftest.$ac_objext \
31653 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031654LIBS=$ac_check_lib_save_LIBS
31655fi
cristy8b350f62009-11-15 23:12:43 +000031656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000031657$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031658if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000031659 cat >>confdefs.h <<_ACEOF
31660#define HAVE_LIBGCOV 1
31661_ACEOF
31662
31663 LIBS="-lgcov $LIBS"
31664
31665fi
31666
31667 case "$target_os" in
31668 darwin*)
31669 OSX_GCOV_LDFLAG="-Wl,-single_module"
31670 ;;
31671 *)
31672 OSX_GCOV_LDFLAG=""
31673 ;;
31674 esac
31675
31676 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
31677 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
31678 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
31679fi
31680
31681#
31682# Build library dependency list for libMagickCore
31683#
31684
31685MAGICK_LIBLTDL='' # Libltdl for build
31686MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
31687MAGICK_LTDLDEPS='' # extra libltdl dependencies
31688if test "$with_ltdl" != 'no'
31689then
31690 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
31691 MAGICK_API_LIBLTDL='-lltdl'
31692 fi
31693 MAGICK_LIBLTDL=${LIBLTDL}
31694 MAGICK_LTDLDEPS=${LTDLDEPS}
31695fi
31696
31697
31698
31699if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000031700 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 +000031701else
cristy2e8b51d2009-10-17 18:26:15 +000031702 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 +000031703fi
31704
31705
31706#
31707# Remove extraneous spaces from output variables (asthetic)
31708#
31709X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
31710X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
31711X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
31712X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
31713
31714CC=`echo $CC | sed -e 's/ */ /g'`
31715CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
31716CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
31717CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
31718DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
31719DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
31720LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
31721TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
31722MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
31723#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
31724
31725# Pass only user-provided LIBS as "global" libraries
31726LIBS=$USER_LIBS
31727
31728#AC_SUBST(CPPFLAGS)
31729
31730#AC_SUBST(LDFLAGS)
31731#AC_SUBST(X_PRE_LIBS)
31732#AC_SUBST(X_LIBS)
31733#AC_SUBST(X_EXTRA_LIBS)
31734
31735MAGICK_CFLAGS=$CFLAGS
31736MAGICK_CXXFLAGS="$CXXFLAGS"
31737MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
31738MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
31739MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
31740MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
31741
31742
31743
31744
31745
31746
31747
31748
31749# Set configured scripts to executable.
31750ac_config_commands="$ac_config_commands default"
31751
31752ac_config_commands="$ac_config_commands MagickCore-config.in"
31753
31754ac_config_commands="$ac_config_commands Magick-config.in"
31755
31756ac_config_commands="$ac_config_commands MagickWand-config.in"
31757
31758ac_config_commands="$ac_config_commands Wand-config.in"
31759
31760ac_config_commands="$ac_config_commands Magick++-config.in"
31761
31762ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
31763
31764
cristy8b350f62009-11-15 23:12:43 +000031765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031766$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000031768$as_echo "Update ImageMagick configuration" >&6; }
31769cat >confcache <<\_ACEOF
31770# This file is a shell script that caches the results of configure
31771# tests run on this system so they can be shared between configure
31772# scripts and configure runs, see configure's option --config-cache.
31773# It is not useful on other systems. If it contains results you don't
31774# want to keep, you may remove or edit it.
31775#
31776# config.status only pays attention to the cache file if you give it
31777# the --recheck option to rerun configure.
31778#
31779# `ac_cv_env_foo' variables (set or unset) will be overridden when
31780# loading this file, other *unset* `ac_cv_foo' will be assigned the
31781# following values.
31782
31783_ACEOF
31784
31785# The following way of writing the cache mishandles newlines in values,
31786# but we know of no workaround that is simple, portable, and efficient.
31787# So, we kill variables containing newlines.
31788# Ultrix sh set writes to stderr and can't be redirected directly,
31789# and sets the high bit in the cache file unless we assign to the vars.
31790(
31791 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31792 eval ac_val=\$$ac_var
31793 case $ac_val in #(
31794 *${as_nl}*)
31795 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000031796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000031797$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31798 esac
31799 case $ac_var in #(
31800 _ | IFS | as_nl) ;; #(
31801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000031802 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000031803 esac ;;
31804 esac
31805 done
31806
31807 (set) 2>&1 |
31808 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31809 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000031810 # `set' does not quote correctly, so add quotes: double-quote
31811 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000031812 sed -n \
31813 "s/'/'\\\\''/g;
31814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31815 ;; #(
31816 *)
31817 # `set' quotes correctly as required by POSIX, so do not add quotes.
31818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31819 ;;
31820 esac |
31821 sort
31822) |
31823 sed '
31824 /^ac_cv_env_/b end
31825 t clear
31826 :clear
31827 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31828 t end
31829 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31830 :end' >>confcache
31831if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31832 if test -w "$cache_file"; then
31833 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000031834 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031835$as_echo "$as_me: updating cache $cache_file" >&6;}
31836 cat confcache >$cache_file
31837 else
cristy8b350f62009-11-15 23:12:43 +000031838 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031839$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31840 fi
31841fi
31842rm -f confcache
31843
31844test "x$prefix" = xNONE && prefix=$ac_default_prefix
31845# Let make expand exec_prefix.
31846test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31847
31848DEFS=-DHAVE_CONFIG_H
31849
31850ac_libobjs=
31851ac_ltlibobjs=
31852for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31853 # 1. Remove the extension, and $U if already installed.
31854 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31855 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31856 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31857 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000031858 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31859 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000031860done
31861LIBOBJS=$ac_libobjs
31862
31863LTLIBOBJS=$ac_ltlibobjs
31864
31865
31866 if test -n "$EXEEXT"; then
31867 am__EXEEXT_TRUE=
31868 am__EXEEXT_FALSE='#'
31869else
31870 am__EXEEXT_TRUE='#'
31871 am__EXEEXT_FALSE=
31872fi
31873
31874if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031875 as_fn_error "conditional \"AMDEP\" was never defined.
31876Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031877fi
31878if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031879 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31880Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031881fi
cristya0b81c32010-01-22 02:54:33 +000031882if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31883 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31884Usually this means the macro was only invoked conditionally." "$LINENO" 5
31885fi
cristy3ed852e2009-09-05 21:47:34 +000031886if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031887 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31888Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031889fi
31890if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031891 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
31892Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031893fi
31894if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031895 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
31896Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031897fi
31898if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031899 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
31900Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031901fi
31902if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031903 as_fn_error "conditional \"USING_CL\" was never defined.
31904Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031905fi
cristy18304f92009-11-22 15:48:26 +000031906if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31907 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31908Usually this means the macro was only invoked conditionally." "$LINENO" 5
31909fi
cristy3ed852e2009-09-05 21:47:34 +000031910if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031911 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
31912Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031913fi
31914if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031915 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
31916Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031917fi
31918LT_CONFIG_H=config/config.h
31919
31920 _ltdl_libobjs=
31921 _ltdl_ltlibobjs=
31922 if test -n "$_LT_LIBOBJS"; then
31923 # Remove the extension.
31924 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
31925 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
31926 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
31927 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
31928 done
31929 fi
31930 ltdl_LIBOBJS=$_ltdl_libobjs
31931
31932 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
31933
31934
cristyfa112112010-01-04 17:48:07 +000031935if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
31936 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
31937Usually this means the macro was only invoked conditionally." "$LINENO" 5
31938fi
cristy3ed852e2009-09-05 21:47:34 +000031939if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031940 as_fn_error "conditional \"WITH_MODULES\" was never defined.
31941Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031942fi
31943if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031944 as_fn_error "conditional \"WITH_LTDL\" was never defined.
31945Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031946fi
31947if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031948 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
31949Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031950fi
31951
31952if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031953 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31954Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031955fi
31956if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031957 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
31958Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031959fi
31960if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031961 as_fn_error "conditional \"HasUMEM\" was never defined.
31962Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031963fi
31964if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031965 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
31966Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031967fi
31968if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031969 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
31970Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031971fi
31972if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031973 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
31974Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031975fi
31976if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031977 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
31978Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031979fi
31980if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031981 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
31982Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031983fi
31984if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031985 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
31986Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031987fi
31988if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031989 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
31990Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031991fi
31992if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031993 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
31994Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031995fi
31996if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031997 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
31998Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031999fi
32000if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032001 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32002Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032003fi
32004if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032005 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32006Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032007fi
32008if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032009 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32010Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032011fi
32012if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032013 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32014Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032015fi
32016if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032017 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32018Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032019fi
32020if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032021 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32022Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032023fi
32024if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032025 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32026Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032027fi
32028if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032029 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32030Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032031fi
32032if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032033 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32034Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032035fi
32036if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032037 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32038Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032039fi
32040if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032041 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32042Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032043fi
32044if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032045 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32046Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032047fi
32048if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032049 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32050Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032051fi
32052if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032053 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32054Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032055fi
32056if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032057 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32058Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032059fi
32060if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032061 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32062Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032063fi
32064if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032065 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
32066Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032067fi
32068if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032069 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
32070Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032071fi
32072if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032073 as_fn_error "conditional \"WITH_PERL\" was never defined.
32074Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032075fi
32076if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032077 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
32078Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032079fi
32080if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032081 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32082Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032083fi
32084
32085: ${CONFIG_STATUS=./config.status}
32086ac_write_fail=0
32087ac_clean_files_save=$ac_clean_files
32088ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032089{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032090$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032091as_write_fail=0
32092cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032093#! $SHELL
32094# Generated by $as_me.
32095# Run this file to recreate the current configuration.
32096# Compiler output produced by configure, useful for debugging
32097# configure, is in config.log if it exists.
32098
32099debug=false
32100ac_cs_recheck=false
32101ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032102
cristy8b350f62009-11-15 23:12:43 +000032103SHELL=\${CONFIG_SHELL-$SHELL}
32104export SHELL
32105_ASEOF
32106cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32107## -------------------- ##
32108## M4sh Initialization. ##
32109## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032110
32111# Be more Bourne compatible
32112DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032113if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032114 emulate sh
32115 NULLCMD=:
32116 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32117 # is contrary to our usage. Disable this feature.
32118 alias -g '${1+"$@"}'='"$@"'
32119 setopt NO_GLOB_SUBST
32120else
cristy8b350f62009-11-15 23:12:43 +000032121 case `(set -o) 2>/dev/null` in #(
32122 *posix*) :
32123 set -o posix ;; #(
32124 *) :
32125 ;;
cristy3ed852e2009-09-05 21:47:34 +000032126esac
cristy3ed852e2009-09-05 21:47:34 +000032127fi
32128
32129
cristy3ed852e2009-09-05 21:47:34 +000032130as_nl='
32131'
32132export as_nl
32133# Printing a long string crashes Solaris 7 /usr/bin/printf.
32134as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32135as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32136as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032137# Prefer a ksh shell builtin over an external printf program on Solaris,
32138# but without wasting forks for bash or zsh.
32139if test -z "$BASH_VERSION$ZSH_VERSION" \
32140 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32141 as_echo='print -r --'
32142 as_echo_n='print -rn --'
32143elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032144 as_echo='printf %s\n'
32145 as_echo_n='printf %s'
32146else
32147 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32148 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32149 as_echo_n='/usr/ucb/echo -n'
32150 else
32151 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32152 as_echo_n_body='eval
32153 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032154 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032155 *"$as_nl"*)
32156 expr "X$arg" : "X\\(.*\\)$as_nl";
32157 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32158 esac;
32159 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32160 '
32161 export as_echo_n_body
32162 as_echo_n='sh -c $as_echo_n_body as_echo'
32163 fi
32164 export as_echo_body
32165 as_echo='sh -c $as_echo_body as_echo'
32166fi
32167
32168# The user is always right.
32169if test "${PATH_SEPARATOR+set}" != set; then
32170 PATH_SEPARATOR=:
32171 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32172 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32173 PATH_SEPARATOR=';'
32174 }
32175fi
32176
cristy3ed852e2009-09-05 21:47:34 +000032177
32178# IFS
32179# We need space, tab and new line, in precisely that order. Quoting is
32180# there to prevent editors from complaining about space-tab.
32181# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32182# splitting by setting IFS to empty value.)
32183IFS=" "" $as_nl"
32184
32185# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000032186case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000032187 *[\\/]* ) as_myself=$0 ;;
32188 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32189for as_dir in $PATH
32190do
32191 IFS=$as_save_IFS
32192 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032193 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32194 done
cristy3ed852e2009-09-05 21:47:34 +000032195IFS=$as_save_IFS
32196
32197 ;;
32198esac
32199# We did not find ourselves, most probably we were run as `sh COMMAND'
32200# in which case we are not to be found in the path.
32201if test "x$as_myself" = x; then
32202 as_myself=$0
32203fi
32204if test ! -f "$as_myself"; then
32205 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000032206 exit 1
cristy3ed852e2009-09-05 21:47:34 +000032207fi
32208
cristy8b350f62009-11-15 23:12:43 +000032209# Unset variables that we do not need and which cause bugs (e.g. in
32210# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32211# suppresses any "Segmentation fault" message there. '((' could
32212# trigger a bug in pdksh 5.2.14.
32213for as_var in BASH_ENV ENV MAIL MAILPATH
32214do eval test x\${$as_var+set} = xset \
32215 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000032216done
32217PS1='$ '
32218PS2='> '
32219PS4='+ '
32220
32221# NLS nuisances.
32222LC_ALL=C
32223export LC_ALL
32224LANGUAGE=C
32225export LANGUAGE
32226
cristy8b350f62009-11-15 23:12:43 +000032227# CDPATH.
32228(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32229
32230
32231# as_fn_error ERROR [LINENO LOG_FD]
32232# ---------------------------------
32233# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32234# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32235# script with status $?, using 1 if that was 0.
32236as_fn_error ()
32237{
32238 as_status=$?; test $as_status -eq 0 && as_status=1
32239 if test "$3"; then
32240 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32241 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
32242 fi
32243 $as_echo "$as_me: error: $1" >&2
32244 as_fn_exit $as_status
32245} # as_fn_error
32246
32247
32248# as_fn_set_status STATUS
32249# -----------------------
32250# Set $? to STATUS, without forking.
32251as_fn_set_status ()
32252{
32253 return $1
32254} # as_fn_set_status
32255
32256# as_fn_exit STATUS
32257# -----------------
32258# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32259as_fn_exit ()
32260{
32261 set +e
32262 as_fn_set_status $1
32263 exit $1
32264} # as_fn_exit
32265
32266# as_fn_unset VAR
32267# ---------------
32268# Portably unset VAR.
32269as_fn_unset ()
32270{
32271 { eval $1=; unset $1;}
32272}
32273as_unset=as_fn_unset
32274# as_fn_append VAR VALUE
32275# ----------------------
32276# Append the text in VALUE to the end of the definition contained in VAR. Take
32277# advantage of any shell optimizations that allow amortized linear growth over
32278# repeated appends, instead of the typical quadratic growth present in naive
32279# implementations.
32280if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32281 eval 'as_fn_append ()
32282 {
32283 eval $1+=\$2
32284 }'
32285else
32286 as_fn_append ()
32287 {
32288 eval $1=\$$1\$2
32289 }
32290fi # as_fn_append
32291
32292# as_fn_arith ARG...
32293# ------------------
32294# Perform arithmetic evaluation on the ARGs, and store the result in the
32295# global $as_val. Take advantage of shells that can avoid forks. The arguments
32296# must be portable across $(()) and expr.
32297if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32298 eval 'as_fn_arith ()
32299 {
32300 as_val=$(( $* ))
32301 }'
32302else
32303 as_fn_arith ()
32304 {
32305 as_val=`expr "$@" || test $? -eq 1`
32306 }
32307fi # as_fn_arith
32308
32309
cristy3ed852e2009-09-05 21:47:34 +000032310if expr a : '\(a\)' >/dev/null 2>&1 &&
32311 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32312 as_expr=expr
32313else
32314 as_expr=false
32315fi
32316
32317if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32318 as_basename=basename
32319else
32320 as_basename=false
32321fi
32322
cristy8b350f62009-11-15 23:12:43 +000032323if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32324 as_dirname=dirname
32325else
32326 as_dirname=false
32327fi
cristy3ed852e2009-09-05 21:47:34 +000032328
cristy3ed852e2009-09-05 21:47:34 +000032329as_me=`$as_basename -- "$0" ||
32330$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32331 X"$0" : 'X\(//\)$' \| \
32332 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32333$as_echo X/"$0" |
32334 sed '/^.*\/\([^/][^/]*\)\/*$/{
32335 s//\1/
32336 q
32337 }
32338 /^X\/\(\/\/\)$/{
32339 s//\1/
32340 q
32341 }
32342 /^X\/\(\/\).*/{
32343 s//\1/
32344 q
32345 }
32346 s/.*/./; q'`
32347
cristy8b350f62009-11-15 23:12:43 +000032348# Avoid depending upon Character Ranges.
32349as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32350as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32351as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32352as_cr_digits='0123456789'
32353as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000032354
32355ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000032356case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000032357-n*)
cristy8b350f62009-11-15 23:12:43 +000032358 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000032359 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000032360 xy) ECHO_C='\c';;
32361 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32362 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000032363 esac;;
32364*)
32365 ECHO_N='-n';;
32366esac
cristy3ed852e2009-09-05 21:47:34 +000032367
32368rm -f conf$$ conf$$.exe conf$$.file
32369if test -d conf$$.dir; then
32370 rm -f conf$$.dir/conf$$.file
32371else
32372 rm -f conf$$.dir
32373 mkdir conf$$.dir 2>/dev/null
32374fi
32375if (echo >conf$$.file) 2>/dev/null; then
32376 if ln -s conf$$.file conf$$ 2>/dev/null; then
32377 as_ln_s='ln -s'
32378 # ... but there are two gotchas:
32379 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32380 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32381 # In both cases, we have to default to `cp -p'.
32382 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32383 as_ln_s='cp -p'
32384 elif ln conf$$.file conf$$ 2>/dev/null; then
32385 as_ln_s=ln
32386 else
32387 as_ln_s='cp -p'
32388 fi
32389else
32390 as_ln_s='cp -p'
32391fi
32392rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32393rmdir conf$$.dir 2>/dev/null
32394
cristy8b350f62009-11-15 23:12:43 +000032395
32396# as_fn_mkdir_p
32397# -------------
32398# Create "$as_dir" as a directory, including parents if necessary.
32399as_fn_mkdir_p ()
32400{
32401
32402 case $as_dir in #(
32403 -*) as_dir=./$as_dir;;
32404 esac
32405 test -d "$as_dir" || eval $as_mkdir_p || {
32406 as_dirs=
32407 while :; do
32408 case $as_dir in #(
32409 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32410 *) as_qdir=$as_dir;;
32411 esac
32412 as_dirs="'$as_qdir' $as_dirs"
32413 as_dir=`$as_dirname -- "$as_dir" ||
32414$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32415 X"$as_dir" : 'X\(//\)[^/]' \| \
32416 X"$as_dir" : 'X\(//\)$' \| \
32417 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32418$as_echo X"$as_dir" |
32419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32420 s//\1/
32421 q
32422 }
32423 /^X\(\/\/\)[^/].*/{
32424 s//\1/
32425 q
32426 }
32427 /^X\(\/\/\)$/{
32428 s//\1/
32429 q
32430 }
32431 /^X\(\/\).*/{
32432 s//\1/
32433 q
32434 }
32435 s/.*/./; q'`
32436 test -d "$as_dir" && break
32437 done
32438 test -z "$as_dirs" || eval "mkdir $as_dirs"
32439 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
32440
32441
32442} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032443if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032444 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000032445else
32446 test -d ./-p && rmdir ./-p
32447 as_mkdir_p=false
32448fi
32449
32450if test -x / >/dev/null 2>&1; then
32451 as_test_x='test -x'
32452else
32453 if ls -dL / >/dev/null 2>&1; then
32454 as_ls_L_option=L
32455 else
32456 as_ls_L_option=
32457 fi
32458 as_test_x='
32459 eval sh -c '\''
32460 if test -d "$1"; then
32461 test -d "$1/.";
32462 else
cristy8b350f62009-11-15 23:12:43 +000032463 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000032464 -*)set "./$1";;
32465 esac;
cristy8b350f62009-11-15 23:12:43 +000032466 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000032467 ???[sx]*):;;*)false;;esac;fi
32468 '\'' sh
32469 '
32470fi
32471as_executable_p=$as_test_x
32472
32473# Sed expression to map a string onto a valid CPP name.
32474as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32475
32476# Sed expression to map a string onto a valid variable name.
32477as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32478
32479
32480exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000032481## ----------------------------------- ##
32482## Main body of $CONFIG_STATUS script. ##
32483## ----------------------------------- ##
32484_ASEOF
32485test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032486
cristy8b350f62009-11-15 23:12:43 +000032487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32488# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000032489# report actual input values of CONFIG_FILES etc. instead of their
32490# values after options handling.
32491ac_log="
cristydc0f0892009-12-29 02:21:55 +000032492This file was extended by ImageMagick $as_me 6.5.9, which was
cristycd4c5312009-11-22 01:19:08 +000032493generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000032494
32495 CONFIG_FILES = $CONFIG_FILES
32496 CONFIG_HEADERS = $CONFIG_HEADERS
32497 CONFIG_LINKS = $CONFIG_LINKS
32498 CONFIG_COMMANDS = $CONFIG_COMMANDS
32499 $ $0 $@
32500
32501on `(hostname || uname -n) 2>/dev/null | sed 1q`
32502"
32503
32504_ACEOF
32505
32506case $ac_config_files in *"
32507"*) set x $ac_config_files; shift; ac_config_files=$*;;
32508esac
32509
32510case $ac_config_headers in *"
32511"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32512esac
32513
32514
32515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32516# Files that config.status was made for.
32517config_files="$ac_config_files"
32518config_headers="$ac_config_headers"
32519config_commands="$ac_config_commands"
32520
32521_ACEOF
32522
32523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32524ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000032525\`$as_me' instantiates files and other configuration actions
32526from templates according to the current configuration. Unless the files
32527and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000032528
cristy8b350f62009-11-15 23:12:43 +000032529Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000032530
32531 -h, --help print this help, then exit
32532 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000032533 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000032534 -q, --quiet, --silent
32535 do not print progress messages
32536 -d, --debug don't remove temporary files
32537 --recheck update $as_me by reconfiguring in the same conditions
32538 --file=FILE[:TEMPLATE]
32539 instantiate the configuration file FILE
32540 --header=FILE[:TEMPLATE]
32541 instantiate the configuration header FILE
32542
32543Configuration files:
32544$config_files
32545
32546Configuration headers:
32547$config_headers
32548
32549Configuration commands:
32550$config_commands
32551
cristy8b350f62009-11-15 23:12:43 +000032552Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000032553
32554_ACEOF
32555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000032556ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000032557ac_cs_version="\\
cristydc0f0892009-12-29 02:21:55 +000032558ImageMagick config.status 6.5.9
cristycd4c5312009-11-22 01:19:08 +000032559configured by $0, generated by GNU Autoconf 2.65,
32560 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000032561
cristy8b350f62009-11-15 23:12:43 +000032562Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000032563This config.status script is free software; the Free Software Foundation
32564gives unlimited permission to copy, distribute and modify it."
32565
32566ac_pwd='$ac_pwd'
32567srcdir='$srcdir'
32568INSTALL='$INSTALL'
32569MKDIR_P='$MKDIR_P'
32570AWK='$AWK'
32571test -n "\$AWK" || AWK=awk
32572_ACEOF
32573
32574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32575# The default lists apply if the user does not specify any file.
32576ac_need_defaults=:
32577while test $# != 0
32578do
32579 case $1 in
32580 --*=*)
32581 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32582 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32583 ac_shift=:
32584 ;;
32585 *)
32586 ac_option=$1
32587 ac_optarg=$2
32588 ac_shift=shift
32589 ;;
32590 esac
32591
32592 case $ac_option in
32593 # Handling of the options.
32594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32595 ac_cs_recheck=: ;;
32596 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32597 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000032598 --config | --confi | --conf | --con | --co | --c )
32599 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000032600 --debug | --debu | --deb | --de | --d | -d )
32601 debug=: ;;
32602 --file | --fil | --fi | --f )
32603 $ac_shift
32604 case $ac_optarg in
32605 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32606 esac
cristy8b350f62009-11-15 23:12:43 +000032607 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000032608 ac_need_defaults=false;;
32609 --header | --heade | --head | --hea )
32610 $ac_shift
32611 case $ac_optarg in
32612 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32613 esac
cristy8b350f62009-11-15 23:12:43 +000032614 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000032615 ac_need_defaults=false;;
32616 --he | --h)
32617 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000032618 as_fn_error "ambiguous option: \`$1'
32619Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000032620 --help | --hel | -h )
32621 $as_echo "$ac_cs_usage"; exit ;;
32622 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32623 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32624 ac_cs_silent=: ;;
32625
32626 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000032627 -*) as_fn_error "unrecognized option: \`$1'
32628Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000032629
cristy8b350f62009-11-15 23:12:43 +000032630 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000032631 ac_need_defaults=false ;;
32632
32633 esac
32634 shift
32635done
32636
32637ac_configure_extra_args=
32638
32639if $ac_cs_silent; then
32640 exec 6>/dev/null
32641 ac_configure_extra_args="$ac_configure_extra_args --silent"
32642fi
32643
32644_ACEOF
32645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32646if \$ac_cs_recheck; then
32647 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32648 shift
32649 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32650 CONFIG_SHELL='$SHELL'
32651 export CONFIG_SHELL
32652 exec "\$@"
32653fi
32654
32655_ACEOF
32656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32657exec 5>>config.log
32658{
32659 echo
32660 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32661## Running $as_me. ##
32662_ASBOX
32663 $as_echo "$ac_log"
32664} >&5
32665
32666_ACEOF
32667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32668#
32669# INIT-COMMANDS
32670#
32671PACKAGE="$PACKAGE"
32672AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32673
32674
32675# The HP-UX ksh and POSIX shell print the target directory to stdout
32676# if CDPATH is set.
32677(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32678
32679sed_quote_subst='$sed_quote_subst'
32680double_quote_subst='$double_quote_subst'
32681delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000032682SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
32683Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
32684GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
32685EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
32686FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
32687LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
32688macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
32689macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
32690AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
32691DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32692OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
32693enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
32694enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
32695pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
32696enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
32697host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
32698host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
32699host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
32700build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
32701build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
32702build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
32703NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
32704LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
32705max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
32706ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
32707exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
32708lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
32709lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
32710lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
32711reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
32712reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32713deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
32714file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
32715AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
32716AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32717STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
32718RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
32719old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32720old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32721old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32722CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
32723CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32724compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
32725GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
32726lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
32727lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
32728lt_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"`'
32729lt_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"`'
32730objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
32731SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
32732ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
32733MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
32734lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
32735lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
32736lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
32737lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
32738lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
32739need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
32740DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
32741NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
32742LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
32743OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32744OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
32745libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
32746shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32747extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32748archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
32749enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
32750export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32751whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32752compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
32753old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32754old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32755archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32756archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32757module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32758module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32759with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
32760allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32761no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32762hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32763hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
32764hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
32765hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
32766hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
32767hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
32768hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32769hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
32770inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
32771link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
32772fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
32773always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
32774export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32775exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32776include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32777prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32778file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
32779variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
32780need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32781need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
32782version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
32783runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32784shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32785shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
32786libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32787library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
32788soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32789postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32790postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32791finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32792finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
32793hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
32794sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32795sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32796hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
32797enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
32798enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
32799enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
32800old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
32801striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
32802compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
32803predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32804postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32805predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
32806postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
32807compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
32808LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32809old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32810compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32811GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32812lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32813lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32814lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32815lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32816lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32817archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32818enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32819export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32820whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32821compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32822old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32823old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32824archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32825archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32826module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32827module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32828with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32829allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32830no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32831hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32832hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32833hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32834hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32835hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32836hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32837hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32838hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32839inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32840link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32841fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32842always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32843export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32844exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32845include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32846prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32847file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32848hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32849compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32850predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32851postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32852predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32853postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32854compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000032855
32856LTCC='$LTCC'
32857LTCFLAGS='$LTCFLAGS'
32858compiler='$compiler_DEFAULT'
32859
32860# Quote evaled strings.
32861for var in SED \
32862GREP \
32863EGREP \
32864FGREP \
32865LD \
32866NM \
32867LN_S \
32868lt_SP2NL \
32869lt_NL2SP \
32870reload_flag \
32871deplibs_check_method \
32872file_magic_cmd \
32873AR \
32874AR_FLAGS \
32875STRIP \
32876RANLIB \
32877CC \
32878CFLAGS \
32879compiler \
32880lt_cv_sys_global_symbol_pipe \
32881lt_cv_sys_global_symbol_to_cdecl \
32882lt_cv_sys_global_symbol_to_c_name_address \
32883lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000032884SHELL \
32885ECHO \
cristy3ed852e2009-09-05 21:47:34 +000032886lt_prog_compiler_no_builtin_flag \
32887lt_prog_compiler_wl \
32888lt_prog_compiler_pic \
32889lt_prog_compiler_static \
32890lt_cv_prog_compiler_c_o \
32891need_locks \
32892DSYMUTIL \
32893NMEDIT \
32894LIPO \
32895OTOOL \
32896OTOOL64 \
32897shrext_cmds \
32898export_dynamic_flag_spec \
32899whole_archive_flag_spec \
32900compiler_needs_object \
32901with_gnu_ld \
32902allow_undefined_flag \
32903no_undefined_flag \
32904hardcode_libdir_flag_spec \
32905hardcode_libdir_flag_spec_ld \
32906hardcode_libdir_separator \
32907fix_srcfile_path \
32908exclude_expsyms \
32909include_expsyms \
32910file_list_spec \
32911variables_saved_for_relink \
32912libname_spec \
32913library_names_spec \
32914soname_spec \
32915finish_eval \
32916old_striplib \
32917striplib \
32918compiler_lib_search_dirs \
32919predep_objects \
32920postdep_objects \
32921predeps \
32922postdeps \
32923compiler_lib_search_path \
32924LD_CXX \
32925compiler_CXX \
32926lt_prog_compiler_no_builtin_flag_CXX \
32927lt_prog_compiler_wl_CXX \
32928lt_prog_compiler_pic_CXX \
32929lt_prog_compiler_static_CXX \
32930lt_cv_prog_compiler_c_o_CXX \
32931export_dynamic_flag_spec_CXX \
32932whole_archive_flag_spec_CXX \
32933compiler_needs_object_CXX \
32934with_gnu_ld_CXX \
32935allow_undefined_flag_CXX \
32936no_undefined_flag_CXX \
32937hardcode_libdir_flag_spec_CXX \
32938hardcode_libdir_flag_spec_ld_CXX \
32939hardcode_libdir_separator_CXX \
32940fix_srcfile_path_CXX \
32941exclude_expsyms_CXX \
32942include_expsyms_CXX \
32943file_list_spec_CXX \
32944compiler_lib_search_dirs_CXX \
32945predep_objects_CXX \
32946postdep_objects_CXX \
32947predeps_CXX \
32948postdeps_CXX \
32949compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000032950 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032951 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032952 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000032953 ;;
32954 *)
32955 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32956 ;;
32957 esac
32958done
32959
32960# Double-quote double-evaled strings.
32961for var in reload_cmds \
32962old_postinstall_cmds \
32963old_postuninstall_cmds \
32964old_archive_cmds \
32965extract_expsyms_cmds \
32966old_archive_from_new_cmds \
32967old_archive_from_expsyms_cmds \
32968archive_cmds \
32969archive_expsym_cmds \
32970module_cmds \
32971module_expsym_cmds \
32972export_symbols_cmds \
32973prelink_cmds \
32974postinstall_cmds \
32975postuninstall_cmds \
32976finish_cmds \
32977sys_lib_search_path_spec \
32978sys_lib_dlsearch_path_spec \
32979old_archive_cmds_CXX \
32980old_archive_from_new_cmds_CXX \
32981old_archive_from_expsyms_cmds_CXX \
32982archive_cmds_CXX \
32983archive_expsym_cmds_CXX \
32984module_cmds_CXX \
32985module_expsym_cmds_CXX \
32986export_symbols_cmds_CXX \
32987prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000032988 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032989 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032990 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000032991 ;;
32992 *)
32993 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32994 ;;
32995 esac
32996done
32997
cristy18304f92009-11-22 15:48:26 +000032998# Fix-up fallback echo if it was mangled by the above quoting rules.
32999case \$lt_ECHO in
33000*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33001 ;;
33002esac
33003
cristy3ed852e2009-09-05 21:47:34 +000033004ac_aux_dir='$ac_aux_dir'
33005xsi_shell='$xsi_shell'
33006lt_shell_append='$lt_shell_append'
33007
33008# See if we are running on zsh, and set the options which allow our
33009# commands through without removal of \ escapes INIT.
33010if test -n "\${ZSH_VERSION+set}" ; then
33011 setopt NO_GLOB_SUBST
33012fi
33013
33014
33015 PACKAGE='$PACKAGE'
33016 VERSION='$VERSION'
33017 TIMESTAMP='$TIMESTAMP'
33018 RM='$RM'
33019 ofile='$ofile'
33020
33021
33022
33023
33024
33025
33026_ACEOF
33027
33028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33029
33030# Handling of arguments.
33031for ac_config_target in $ac_config_targets
33032do
33033 case $ac_config_target in
33034 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33035 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33036 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33037 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33038 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33039 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33040 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033041 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033042 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33043 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33044 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33045 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33046 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33047 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33048 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33049 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33050 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33051 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33052 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33053 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33054 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33055 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33056 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33057 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33058 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33059 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33060 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33061 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33062 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33063 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33064 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33065 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33066 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33067 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33068 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33069 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33070 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33071 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33072 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33073 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33074 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33075 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33076 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33077 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33078 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33079 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33080 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33081 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33082 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33083 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33084
cristy8b350f62009-11-15 23:12:43 +000033085 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033086 esac
33087done
33088
33089
33090# If the user did not use the arguments to specify the items to instantiate,
33091# then the envvar interface is used. Set only those that are not.
33092# We use the long form for the default assignment because of an extremely
33093# bizarre bug on SunOS 4.1.3.
33094if $ac_need_defaults; then
33095 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33096 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33097 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33098fi
33099
33100# Have a temporary directory for convenience. Make it in the build tree
33101# simply because there is no reason against having it here, and in addition,
33102# creating and moving files from /tmp can sometimes cause problems.
33103# Hook for its removal unless debugging.
33104# Note that there is a small window in which the directory will not be cleaned:
33105# after its creation but before its name has been assigned to `$tmp'.
33106$debug ||
33107{
33108 tmp=
33109 trap 'exit_status=$?
33110 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33111' 0
cristy8b350f62009-11-15 23:12:43 +000033112 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033113}
33114# Create a (secure) tmp directory for tmp files.
33115
33116{
33117 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33118 test -n "$tmp" && test -d "$tmp"
33119} ||
33120{
33121 tmp=./conf$$-$RANDOM
33122 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000033123} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033124
33125# Set up the scripts for CONFIG_FILES section.
33126# No need to generate them if there are no CONFIG_FILES.
33127# This happens for instance with `./config.status config.h'.
33128if test -n "$CONFIG_FILES"; then
33129
33130
cristy8b350f62009-11-15 23:12:43 +000033131ac_cr=`echo X | tr X '\015'`
33132# On cygwin, bash can eat \r inside `` if the user requested igncr.
33133# But we know of no other shell where ac_cr would be empty at this
33134# point, so we can use a bashism as a fallback.
33135if test "x$ac_cr" = x; then
33136 eval ac_cr=\$\'\\r\'
33137fi
cristy3ed852e2009-09-05 21:47:34 +000033138ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33139if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000033140 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000033141else
33142 ac_cs_awk_cr=$ac_cr
33143fi
33144
33145echo 'BEGIN {' >"$tmp/subs1.awk" &&
33146_ACEOF
33147
33148
33149{
33150 echo "cat >conf$$subs.awk <<_ACEOF" &&
33151 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33152 echo "_ACEOF"
33153} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033154 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033155ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33156ac_delim='%!_!# '
33157for ac_last_try in false false false false false :; do
33158 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033159 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033160
33161 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33162 if test $ac_delim_n = $ac_delim_num; then
33163 break
33164 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033165 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033166 else
33167 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33168 fi
33169done
33170rm -f conf$$subs.sh
33171
33172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33173cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33174_ACEOF
33175sed -n '
33176h
33177s/^/S["/; s/!.*/"]=/
33178p
33179g
33180s/^[^!]*!//
33181:repl
33182t repl
33183s/'"$ac_delim"'$//
33184t delim
33185:nl
33186h
cristycd4c5312009-11-22 01:19:08 +000033187s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033188t more1
33189s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33190p
33191n
33192b repl
33193:more1
33194s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33195p
33196g
33197s/.\{148\}//
33198t nl
33199:delim
33200h
cristycd4c5312009-11-22 01:19:08 +000033201s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033202t more2
33203s/["\\]/\\&/g; s/^/"/; s/$/"/
33204p
33205b
33206:more2
33207s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33208p
33209g
33210s/.\{148\}//
33211t delim
33212' <conf$$subs.awk | sed '
33213/^[^""]/{
33214 N
33215 s/\n//
33216}
33217' >>$CONFIG_STATUS || ac_write_fail=1
33218rm -f conf$$subs.awk
33219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33220_ACAWK
33221cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33222 for (key in S) S_is_set[key] = 1
33223 FS = ""
33224
33225}
33226{
33227 line = $ 0
33228 nfields = split(line, field, "@")
33229 substed = 0
33230 len = length(field[1])
33231 for (i = 2; i < nfields; i++) {
33232 key = field[i]
33233 keylen = length(key)
33234 if (S_is_set[key]) {
33235 value = S[key]
33236 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33237 len += length(value) + length(field[++i])
33238 substed = 1
33239 } else
33240 len += 1 + keylen
33241 }
33242
33243 print line
33244}
33245
33246_ACAWK
33247_ACEOF
33248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33249if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33250 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33251else
33252 cat
33253fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000033254 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033255_ACEOF
33256
33257# VPATH may cause trouble with some makes, so we remove $(srcdir),
33258# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33259# trailing colons and then remove the whole line if VPATH becomes empty
33260# (actually we leave an empty line to preserve line numbers).
33261if test "x$srcdir" = x.; then
33262 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33263s/:*\$(srcdir):*/:/
33264s/:*\${srcdir}:*/:/
33265s/:*@srcdir@:*/:/
33266s/^\([^=]*=[ ]*\):*/\1/
33267s/:*$//
33268s/^[^=]*=[ ]*$//
33269}'
33270fi
33271
33272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33273fi # test -n "$CONFIG_FILES"
33274
33275# Set up the scripts for CONFIG_HEADERS section.
33276# No need to generate them if there are no CONFIG_HEADERS.
33277# This happens for instance with `./config.status Makefile'.
33278if test -n "$CONFIG_HEADERS"; then
33279cat >"$tmp/defines.awk" <<\_ACAWK ||
33280BEGIN {
33281_ACEOF
33282
33283# Transform confdefs.h into an awk script `defines.awk', embedded as
33284# here-document in config.status, that substitutes the proper values into
33285# config.h.in to produce config.h.
33286
33287# Create a delimiter string that does not exist in confdefs.h, to ease
33288# handling of long lines.
33289ac_delim='%!_!# '
33290for ac_last_try in false false :; do
33291 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33292 if test -z "$ac_t"; then
33293 break
33294 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033295 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033296 else
33297 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33298 fi
33299done
33300
33301# For the awk script, D is an array of macro values keyed by name,
33302# likewise P contains macro parameters if any. Preserve backslash
33303# newline sequences.
33304
33305ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33306sed -n '
33307s/.\{148\}/&'"$ac_delim"'/g
33308t rset
33309:rset
33310s/^[ ]*#[ ]*define[ ][ ]*/ /
33311t def
33312d
33313:def
33314s/\\$//
33315t bsnl
33316s/["\\]/\\&/g
33317s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33318D["\1"]=" \3"/p
33319s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33320d
33321:bsnl
33322s/["\\]/\\&/g
33323s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33324D["\1"]=" \3\\\\\\n"\\/p
33325t cont
33326s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33327t cont
33328d
33329:cont
33330n
33331s/.\{148\}/&'"$ac_delim"'/g
33332t clear
33333:clear
33334s/\\$//
33335t bsnlc
33336s/["\\]/\\&/g; s/^/"/; s/$/"/p
33337d
33338:bsnlc
33339s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33340b cont
33341' <confdefs.h | sed '
33342s/'"$ac_delim"'/"\\\
33343"/g' >>$CONFIG_STATUS || ac_write_fail=1
33344
33345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33346 for (key in D) D_is_set[key] = 1
33347 FS = ""
33348}
33349/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33350 line = \$ 0
33351 split(line, arg, " ")
33352 if (arg[1] == "#") {
33353 defundef = arg[2]
33354 mac1 = arg[3]
33355 } else {
33356 defundef = substr(arg[1], 2)
33357 mac1 = arg[2]
33358 }
33359 split(mac1, mac2, "(") #)
33360 macro = mac2[1]
33361 prefix = substr(line, 1, index(line, defundef) - 1)
33362 if (D_is_set[macro]) {
33363 # Preserve the white space surrounding the "#".
33364 print prefix "define", macro P[macro] D[macro]
33365 next
33366 } else {
33367 # Replace #undef with comments. This is necessary, for example,
33368 # in the case of _POSIX_SOURCE, which is predefined and required
33369 # on some systems where configure will not decide to define it.
33370 if (defundef == "undef") {
33371 print "/*", prefix defundef, macro, "*/"
33372 next
33373 }
33374 }
33375}
33376{ print }
33377_ACAWK
33378_ACEOF
33379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000033380 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033381fi # test -n "$CONFIG_HEADERS"
33382
33383
33384eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33385shift
33386for ac_tag
33387do
33388 case $ac_tag in
33389 :[FHLC]) ac_mode=$ac_tag; continue;;
33390 esac
33391 case $ac_mode$ac_tag in
33392 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000033393 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033394 :[FH]-) ac_tag=-:-;;
33395 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33396 esac
33397 ac_save_IFS=$IFS
33398 IFS=:
33399 set x $ac_tag
33400 IFS=$ac_save_IFS
33401 shift
33402 ac_file=$1
33403 shift
33404
33405 case $ac_mode in
33406 :L) ac_source=$1;;
33407 :[FH])
33408 ac_file_inputs=
33409 for ac_f
33410 do
33411 case $ac_f in
33412 -) ac_f="$tmp/stdin";;
33413 *) # Look for the file first in the build tree, then in the source tree
33414 # (if the path is not absolute). The absolute path cannot be DOS-style,
33415 # because $ac_f cannot contain `:'.
33416 test -f "$ac_f" ||
33417 case $ac_f in
33418 [\\/$]*) false;;
33419 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33420 esac ||
cristy8b350f62009-11-15 23:12:43 +000033421 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033422 esac
33423 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000033424 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000033425 done
33426
33427 # Let's still pretend it is `configure' which instantiates (i.e., don't
33428 # use $as_me), people would be surprised to read:
33429 # /* config.h. Generated by config.status. */
33430 configure_input='Generated from '`
33431 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33432 `' by configure.'
33433 if test x"$ac_file" != x-; then
33434 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000033435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033436$as_echo "$as_me: creating $ac_file" >&6;}
33437 fi
33438 # Neutralize special characters interpreted by sed in replacement strings.
33439 case $configure_input in #(
33440 *\&* | *\|* | *\\* )
33441 ac_sed_conf_input=`$as_echo "$configure_input" |
33442 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33443 *) ac_sed_conf_input=$configure_input;;
33444 esac
33445
33446 case $ac_tag in
33447 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000033448 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000033449 esac
33450 ;;
33451 esac
33452
33453 ac_dir=`$as_dirname -- "$ac_file" ||
33454$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33455 X"$ac_file" : 'X\(//\)[^/]' \| \
33456 X"$ac_file" : 'X\(//\)$' \| \
33457 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33458$as_echo X"$ac_file" |
33459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33460 s//\1/
33461 q
33462 }
33463 /^X\(\/\/\)[^/].*/{
33464 s//\1/
33465 q
33466 }
33467 /^X\(\/\/\)$/{
33468 s//\1/
33469 q
33470 }
33471 /^X\(\/\).*/{
33472 s//\1/
33473 q
33474 }
33475 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033476 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033477 ac_builddir=.
33478
33479case "$ac_dir" in
33480.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33481*)
33482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33483 # A ".." for each directory in $ac_dir_suffix.
33484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33485 case $ac_top_builddir_sub in
33486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33488 esac ;;
33489esac
33490ac_abs_top_builddir=$ac_pwd
33491ac_abs_builddir=$ac_pwd$ac_dir_suffix
33492# for backward compatibility:
33493ac_top_builddir=$ac_top_build_prefix
33494
33495case $srcdir in
33496 .) # We are building in place.
33497 ac_srcdir=.
33498 ac_top_srcdir=$ac_top_builddir_sub
33499 ac_abs_top_srcdir=$ac_pwd ;;
33500 [\\/]* | ?:[\\/]* ) # Absolute name.
33501 ac_srcdir=$srcdir$ac_dir_suffix;
33502 ac_top_srcdir=$srcdir
33503 ac_abs_top_srcdir=$srcdir ;;
33504 *) # Relative name.
33505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33506 ac_top_srcdir=$ac_top_build_prefix$srcdir
33507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33508esac
33509ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33510
33511
33512 case $ac_mode in
33513 :F)
33514 #
33515 # CONFIG_FILE
33516 #
33517
33518 case $INSTALL in
33519 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33520 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33521 esac
33522 ac_MKDIR_P=$MKDIR_P
33523 case $MKDIR_P in
33524 [\\/$]* | ?:[\\/]* ) ;;
33525 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33526 esac
33527_ACEOF
33528
33529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33530# If the template does not know about datarootdir, expand it.
33531# FIXME: This hack should be removed a few years after 2.60.
33532ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000033533ac_sed_dataroot='
33534/datarootdir/ {
33535 p
33536 q
33537}
33538/@datadir@/p
33539/@docdir@/p
33540/@infodir@/p
33541/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000033542/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000033543case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33544*datarootdir*) ac_datarootdir_seen=yes;;
33545*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000033546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000033547$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33548_ACEOF
33549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33550 ac_datarootdir_hack='
33551 s&@datadir@&$datadir&g
33552 s&@docdir@&$docdir&g
33553 s&@infodir@&$infodir&g
33554 s&@localedir@&$localedir&g
33555 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000033556 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000033557esac
33558_ACEOF
33559
33560# Neutralize VPATH when `$srcdir' = `.'.
33561# Shell code in configure.ac might set extrasub.
33562# FIXME: do we really want to maintain this feature?
33563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33564ac_sed_extra="$ac_vpsub
33565$extrasub
33566_ACEOF
33567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33568:t
33569/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33570s|@configure_input@|$ac_sed_conf_input|;t t
33571s&@top_builddir@&$ac_top_builddir_sub&;t t
33572s&@top_build_prefix@&$ac_top_build_prefix&;t t
33573s&@srcdir@&$ac_srcdir&;t t
33574s&@abs_srcdir@&$ac_abs_srcdir&;t t
33575s&@top_srcdir@&$ac_top_srcdir&;t t
33576s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33577s&@builddir@&$ac_builddir&;t t
33578s&@abs_builddir@&$ac_abs_builddir&;t t
33579s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33580s&@INSTALL@&$ac_INSTALL&;t t
33581s&@MKDIR_P@&$ac_MKDIR_P&;t t
33582$ac_datarootdir_hack
33583"
33584eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000033585 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033586
33587test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33588 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33589 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000033590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000033591which seems to be undefined. Please make sure it is defined." >&5
33592$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33593which seems to be undefined. Please make sure it is defined." >&2;}
33594
33595 rm -f "$tmp/stdin"
33596 case $ac_file in
33597 -) cat "$tmp/out" && rm -f "$tmp/out";;
33598 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
33599 esac \
cristy8b350f62009-11-15 23:12:43 +000033600 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033601 ;;
33602 :H)
33603 #
33604 # CONFIG_HEADER
33605 #
33606 if test x"$ac_file" != x-; then
33607 {
33608 $as_echo "/* $configure_input */" \
33609 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
33610 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000033611 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033612 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000033613 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000033614$as_echo "$as_me: $ac_file is unchanged" >&6;}
33615 else
33616 rm -f "$ac_file"
33617 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000033618 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033619 fi
33620 else
33621 $as_echo "/* $configure_input */" \
33622 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000033623 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033624 fi
33625# Compute "$ac_file"'s index in $config_headers.
33626_am_arg="$ac_file"
33627_am_stamp_count=1
33628for _am_header in $config_headers :; do
33629 case $_am_header in
33630 $_am_arg | $_am_arg:* )
33631 break ;;
33632 * )
33633 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33634 esac
33635done
33636echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33637$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33638 X"$_am_arg" : 'X\(//\)[^/]' \| \
33639 X"$_am_arg" : 'X\(//\)$' \| \
33640 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33641$as_echo X"$_am_arg" |
33642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33643 s//\1/
33644 q
33645 }
33646 /^X\(\/\/\)[^/].*/{
33647 s//\1/
33648 q
33649 }
33650 /^X\(\/\/\)$/{
33651 s//\1/
33652 q
33653 }
33654 /^X\(\/\).*/{
33655 s//\1/
33656 q
33657 }
33658 s/.*/./; q'`/stamp-h$_am_stamp_count
33659 ;;
33660
cristy8b350f62009-11-15 23:12:43 +000033661 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000033662$as_echo "$as_me: executing $ac_file commands" >&6;}
33663 ;;
33664 esac
33665
33666
33667 case $ac_file$ac_mode in
33668 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
33669ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
33670ac_prefix_conf_PKG=`echo MagickCore`
33671ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
33672ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
33673ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
33674if test ".$ac_prefix_conf_INP" = "."; then
33675 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
33676 case "$ac_file" in
33677 *.h) ac_prefix_conf_INP=$ac_file ;;
33678 *)
33679 esac
33680 test ".$ac_prefix_conf_INP" != "." && break
33681 done
33682fi
33683if test ".$ac_prefix_conf_INP" = "."; then
33684 case "$ac_prefix_conf_OUT" in
33685 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
33686 ;;
33687 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
33688 ;;
33689 *) ac_prefix_conf_INP=config.h
33690 ;;
33691 esac
33692fi
33693if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000033694 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033695else
33696 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
33697 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
33698 fi fi
cristy8b350f62009-11-15 23:12:43 +000033699 { $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 +000033700$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
33701 if test -f $ac_prefix_conf_INP ; then
33702 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
33703 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
33704 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
33705 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
33706 echo "#endif/" >>conftest.prefix
33707 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
33708 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
33709 echo "#endif/" >> conftest.prefix
33710 # now executing _script on _DEF input to create _OUT output file
33711 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
33712 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
33713 echo ' ' >>$tmp/pconfig.h
33714 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
33715
33716 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
33717 echo ' ' >>$tmp/pconfig.h
33718 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
33719 echo "#endif" >>$tmp/pconfig.h
33720 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033721 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000033722$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
33723 else
33724 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
33725$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33726 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
33727 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
33728 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
33729$as_echo X"$ac_prefix_conf_OUT" |
33730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33731 s//\1/
33732 q
33733 }
33734 /^X\(\/\/\)[^/].*/{
33735 s//\1/
33736 q
33737 }
33738 /^X\(\/\/\)$/{
33739 s//\1/
33740 q
33741 }
33742 /^X\(\/\).*/{
33743 s//\1/
33744 q
33745 }
33746 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033747 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033748 rm -f "$ac_prefix_conf_OUT"
33749 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
33750 fi
33751 cp conftest.prefix _configs.sed
33752 else
cristy8b350f62009-11-15 23:12:43 +000033753 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 +000033754 fi
33755 rm -f conftest.*
33756fi
33757 ;;
33758 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33759 # Autoconf 2.62 quotes --file arguments for eval, but not when files
33760 # are listed without --file. Let's play safe and only enable the eval
33761 # if we detect the quoting.
33762 case $CONFIG_FILES in
33763 *\'*) eval set x "$CONFIG_FILES" ;;
33764 *) set x $CONFIG_FILES ;;
33765 esac
33766 shift
33767 for mf
33768 do
33769 # Strip MF so we end up with the name of the file.
33770 mf=`echo "$mf" | sed -e 's/:.*$//'`
33771 # Check whether this is an Automake generated Makefile or not.
33772 # We used to match only the files named `Makefile.in', but
33773 # some people rename them; so instead we look at the file content.
33774 # Grep'ing the first line is not enough: some people post-process
33775 # each Makefile.in and add a new line on top of each file to say so.
33776 # Grep'ing the whole file is not good either: AIX grep has a line
33777 # limit of 2048, but all sed's we know have understand at least 4000.
33778 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33779 dirpart=`$as_dirname -- "$mf" ||
33780$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33781 X"$mf" : 'X\(//\)[^/]' \| \
33782 X"$mf" : 'X\(//\)$' \| \
33783 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33784$as_echo X"$mf" |
33785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33786 s//\1/
33787 q
33788 }
33789 /^X\(\/\/\)[^/].*/{
33790 s//\1/
33791 q
33792 }
33793 /^X\(\/\/\)$/{
33794 s//\1/
33795 q
33796 }
33797 /^X\(\/\).*/{
33798 s//\1/
33799 q
33800 }
33801 s/.*/./; q'`
33802 else
33803 continue
33804 fi
33805 # Extract the definition of DEPDIR, am__include, and am__quote
33806 # from the Makefile without running `make'.
33807 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33808 test -z "$DEPDIR" && continue
33809 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33810 test -z "am__include" && continue
33811 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33812 # When using ansi2knr, U may be empty or an underscore; expand it
33813 U=`sed -n 's/^U = //p' < "$mf"`
33814 # Find all dependency output files, they are included files with
33815 # $(DEPDIR) in their names. We invoke sed twice because it is the
33816 # simplest approach to changing $(DEPDIR) to its actual value in the
33817 # expansion.
33818 for file in `sed -n "
33819 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33820 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33821 # Make sure the directory exists.
33822 test -f "$dirpart/$file" && continue
33823 fdir=`$as_dirname -- "$file" ||
33824$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33825 X"$file" : 'X\(//\)[^/]' \| \
33826 X"$file" : 'X\(//\)$' \| \
33827 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33828$as_echo X"$file" |
33829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33830 s//\1/
33831 q
33832 }
33833 /^X\(\/\/\)[^/].*/{
33834 s//\1/
33835 q
33836 }
33837 /^X\(\/\/\)$/{
33838 s//\1/
33839 q
33840 }
33841 /^X\(\/\).*/{
33842 s//\1/
33843 q
33844 }
33845 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033846 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033847 # echo "creating $dirpart/$file"
33848 echo '# dummy' > "$dirpart/$file"
33849 done
33850 done
33851}
33852 ;;
33853 "libtool":C)
33854
33855 # See if we are running on zsh, and set the options which allow our
33856 # commands through without removal of \ escapes.
33857 if test -n "${ZSH_VERSION+set}" ; then
33858 setopt NO_GLOB_SUBST
33859 fi
33860
33861 cfgfile="${ofile}T"
33862 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33863 $RM "$cfgfile"
33864
33865 cat <<_LT_EOF >> "$cfgfile"
33866#! $SHELL
33867
33868# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33869# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33870# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33871# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33872#
33873# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000033874# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033875# Written by Gordon Matzigkeit, 1996
33876#
33877# This file is part of GNU Libtool.
33878#
33879# GNU Libtool is free software; you can redistribute it and/or
33880# modify it under the terms of the GNU General Public License as
33881# published by the Free Software Foundation; either version 2 of
33882# the License, or (at your option) any later version.
33883#
33884# As a special exception to the GNU General Public License,
33885# if you distribute this file as part of a program or library that
33886# is built using GNU Libtool, you may include this file under the
33887# same distribution terms that you use for the rest of that program.
33888#
33889# GNU Libtool is distributed in the hope that it will be useful,
33890# but WITHOUT ANY WARRANTY; without even the implied warranty of
33891# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33892# GNU General Public License for more details.
33893#
33894# You should have received a copy of the GNU General Public License
33895# along with GNU Libtool; see the file COPYING. If not, a copy
33896# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33897# obtained by writing to the Free Software Foundation, Inc.,
33898# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33899
33900
33901# The names of the tagged configurations supported by this script.
33902available_tags="CXX "
33903
33904# ### BEGIN LIBTOOL CONFIG
33905
33906# A sed program that does not truncate output.
33907SED=$lt_SED
33908
33909# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33910Xsed="\$SED -e 1s/^X//"
33911
33912# A grep program that handles long lines.
33913GREP=$lt_GREP
33914
33915# An ERE matcher.
33916EGREP=$lt_EGREP
33917
33918# A literal string matcher.
33919FGREP=$lt_FGREP
33920
33921# Which release of libtool.m4 was used?
33922macro_version=$macro_version
33923macro_revision=$macro_revision
33924
33925# Assembler program.
cristy18304f92009-11-22 15:48:26 +000033926AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000033927
33928# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000033929DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000033930
33931# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000033932OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000033933
33934# Whether or not to build shared libraries.
33935build_libtool_libs=$enable_shared
33936
33937# Whether or not to build static libraries.
33938build_old_libs=$enable_static
33939
33940# What type of objects to build.
33941pic_mode=$pic_mode
33942
33943# Whether or not to optimize for fast installation.
33944fast_install=$enable_fast_install
33945
33946# The host system.
33947host_alias=$host_alias
33948host=$host
33949host_os=$host_os
33950
33951# The build system.
33952build_alias=$build_alias
33953build=$build
33954build_os=$build_os
33955
33956# A BSD- or MS-compatible name lister.
33957NM=$lt_NM
33958
33959# Whether we need soft or hard links.
33960LN_S=$lt_LN_S
33961
33962# What is the maximum length of a command?
33963max_cmd_len=$max_cmd_len
33964
33965# Object file suffix (normally "o").
33966objext=$ac_objext
33967
33968# Executable file suffix (normally "").
33969exeext=$exeext
33970
33971# whether the shell understands "unset".
33972lt_unset=$lt_unset
33973
33974# turn spaces into newlines.
33975SP2NL=$lt_lt_SP2NL
33976
33977# turn newlines into spaces.
33978NL2SP=$lt_lt_NL2SP
33979
cristy18304f92009-11-22 15:48:26 +000033980# How to create reloadable object files.
33981reload_flag=$lt_reload_flag
33982reload_cmds=$lt_reload_cmds
33983
cristy3ed852e2009-09-05 21:47:34 +000033984# Method to check whether dependent libraries are shared objects.
33985deplibs_check_method=$lt_deplibs_check_method
33986
33987# Command to use when deplibs_check_method == "file_magic".
33988file_magic_cmd=$lt_file_magic_cmd
33989
33990# The archiver.
33991AR=$lt_AR
33992AR_FLAGS=$lt_AR_FLAGS
33993
33994# A symbol stripping program.
33995STRIP=$lt_STRIP
33996
33997# Commands used to install an old-style archive.
33998RANLIB=$lt_RANLIB
33999old_postinstall_cmds=$lt_old_postinstall_cmds
34000old_postuninstall_cmds=$lt_old_postuninstall_cmds
34001
34002# A C compiler.
34003LTCC=$lt_CC
34004
34005# LTCC compiler flags.
34006LTCFLAGS=$lt_CFLAGS
34007
34008# Take the output of nm and produce a listing of raw symbols and C names.
34009global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34010
34011# Transform the output of nm in a proper C declaration.
34012global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34013
34014# Transform the output of nm in a C name address pair.
34015global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34016
34017# Transform the output of nm in a C name address pair when lib prefix is needed.
34018global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34019
34020# The name of the directory that contains temporary libtool files.
34021objdir=$objdir
34022
cristy18304f92009-11-22 15:48:26 +000034023# Shell to use when invoking shell scripts.
34024SHELL=$lt_SHELL
34025
34026# An echo program that does not interpret backslashes.
34027ECHO=$lt_ECHO
34028
cristy3ed852e2009-09-05 21:47:34 +000034029# Used to examine libraries when file_magic_cmd begins with "file".
34030MAGIC_CMD=$MAGIC_CMD
34031
34032# Must we lock files when doing compilation?
34033need_locks=$lt_need_locks
34034
34035# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34036DSYMUTIL=$lt_DSYMUTIL
34037
34038# Tool to change global to local symbols on Mac OS X.
34039NMEDIT=$lt_NMEDIT
34040
34041# Tool to manipulate fat objects and archives on Mac OS X.
34042LIPO=$lt_LIPO
34043
34044# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34045OTOOL=$lt_OTOOL
34046
34047# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34048OTOOL64=$lt_OTOOL64
34049
34050# Old archive suffix (normally "a").
34051libext=$libext
34052
34053# Shared library suffix (normally ".so").
34054shrext_cmds=$lt_shrext_cmds
34055
34056# The commands to extract the exported symbol list from a shared archive.
34057extract_expsyms_cmds=$lt_extract_expsyms_cmds
34058
34059# Variables whose values should be saved in libtool wrapper scripts and
34060# restored at link time.
34061variables_saved_for_relink=$lt_variables_saved_for_relink
34062
34063# Do we need the "lib" prefix for modules?
34064need_lib_prefix=$need_lib_prefix
34065
34066# Do we need a version for libraries?
34067need_version=$need_version
34068
34069# Library versioning type.
34070version_type=$version_type
34071
34072# Shared library runtime path variable.
34073runpath_var=$runpath_var
34074
34075# Shared library path variable.
34076shlibpath_var=$shlibpath_var
34077
34078# Is shlibpath searched before the hard-coded library search path?
34079shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34080
34081# Format of library name prefix.
34082libname_spec=$lt_libname_spec
34083
34084# List of archive names. First name is the real one, the rest are links.
34085# The last name is the one that the linker finds with -lNAME
34086library_names_spec=$lt_library_names_spec
34087
34088# The coded name of the library, if different from the real name.
34089soname_spec=$lt_soname_spec
34090
34091# Command to use after installation of a shared archive.
34092postinstall_cmds=$lt_postinstall_cmds
34093
34094# Command to use after uninstallation of a shared archive.
34095postuninstall_cmds=$lt_postuninstall_cmds
34096
34097# Commands used to finish a libtool library installation in a directory.
34098finish_cmds=$lt_finish_cmds
34099
34100# As "finish_cmds", except a single script fragment to be evaled but
34101# not shown.
34102finish_eval=$lt_finish_eval
34103
34104# Whether we should hardcode library paths into libraries.
34105hardcode_into_libs=$hardcode_into_libs
34106
34107# Compile-time system search path for libraries.
34108sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34109
34110# Run-time system search path for libraries.
34111sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34112
34113# Whether dlopen is supported.
34114dlopen_support=$enable_dlopen
34115
34116# Whether dlopen of programs is supported.
34117dlopen_self=$enable_dlopen_self
34118
34119# Whether dlopen of statically linked programs is supported.
34120dlopen_self_static=$enable_dlopen_self_static
34121
34122# Commands to strip libraries.
34123old_striplib=$lt_old_striplib
34124striplib=$lt_striplib
34125
34126
34127# The linker used to build libraries.
34128LD=$lt_LD
34129
34130# Commands used to build an old-style archive.
34131old_archive_cmds=$lt_old_archive_cmds
34132
34133# A language specific compiler.
34134CC=$lt_compiler
34135
34136# Is the compiler the GNU compiler?
34137with_gcc=$GCC
34138
34139# Compiler flag to turn off builtin functions.
34140no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34141
34142# How to pass a linker flag through the compiler.
34143wl=$lt_lt_prog_compiler_wl
34144
34145# Additional compiler flags for building library objects.
34146pic_flag=$lt_lt_prog_compiler_pic
34147
34148# Compiler flag to prevent dynamic linking.
34149link_static_flag=$lt_lt_prog_compiler_static
34150
34151# Does compiler simultaneously support -c and -o options?
34152compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34153
34154# Whether or not to add -lc for building shared libraries.
34155build_libtool_need_lc=$archive_cmds_need_lc
34156
34157# Whether or not to disallow shared libs when runtime libs are static.
34158allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34159
34160# Compiler flag to allow reflexive dlopens.
34161export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34162
34163# Compiler flag to generate shared objects directly from archives.
34164whole_archive_flag_spec=$lt_whole_archive_flag_spec
34165
34166# Whether the compiler copes with passing no objects directly.
34167compiler_needs_object=$lt_compiler_needs_object
34168
34169# Create an old-style archive from a shared archive.
34170old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34171
34172# Create a temporary old-style archive to link instead of a shared archive.
34173old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34174
34175# Commands used to build a shared archive.
34176archive_cmds=$lt_archive_cmds
34177archive_expsym_cmds=$lt_archive_expsym_cmds
34178
34179# Commands used to build a loadable module if different from building
34180# a shared archive.
34181module_cmds=$lt_module_cmds
34182module_expsym_cmds=$lt_module_expsym_cmds
34183
34184# Whether we are building with GNU ld or not.
34185with_gnu_ld=$lt_with_gnu_ld
34186
34187# Flag that allows shared libraries with undefined symbols to be built.
34188allow_undefined_flag=$lt_allow_undefined_flag
34189
34190# Flag that enforces no undefined symbols.
34191no_undefined_flag=$lt_no_undefined_flag
34192
34193# Flag to hardcode \$libdir into a binary during linking.
34194# This must work even if \$libdir does not exist
34195hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34196
34197# If ld is used when linking, flag to hardcode \$libdir into a binary
34198# during linking. This must work even if \$libdir does not exist.
34199hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34200
34201# Whether we need a single "-rpath" flag with a separated argument.
34202hardcode_libdir_separator=$lt_hardcode_libdir_separator
34203
34204# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34205# DIR into the resulting binary.
34206hardcode_direct=$hardcode_direct
34207
34208# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34209# DIR into the resulting binary and the resulting library dependency is
34210# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34211# library is relocated.
34212hardcode_direct_absolute=$hardcode_direct_absolute
34213
34214# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34215# into the resulting binary.
34216hardcode_minus_L=$hardcode_minus_L
34217
34218# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34219# into the resulting binary.
34220hardcode_shlibpath_var=$hardcode_shlibpath_var
34221
34222# Set to "yes" if building a shared library automatically hardcodes DIR
34223# into the library and all subsequent libraries and executables linked
34224# against it.
34225hardcode_automatic=$hardcode_automatic
34226
34227# Set to yes if linker adds runtime paths of dependent libraries
34228# to runtime path list.
34229inherit_rpath=$inherit_rpath
34230
34231# Whether libtool must link a program against all its dependency libraries.
34232link_all_deplibs=$link_all_deplibs
34233
34234# Fix the shell variable \$srcfile for the compiler.
34235fix_srcfile_path=$lt_fix_srcfile_path
34236
34237# Set to "yes" if exported symbols are required.
34238always_export_symbols=$always_export_symbols
34239
34240# The commands to list exported symbols.
34241export_symbols_cmds=$lt_export_symbols_cmds
34242
34243# Symbols that should not be listed in the preloaded symbols.
34244exclude_expsyms=$lt_exclude_expsyms
34245
34246# Symbols that must always be exported.
34247include_expsyms=$lt_include_expsyms
34248
34249# Commands necessary for linking programs (against libraries) with templates.
34250prelink_cmds=$lt_prelink_cmds
34251
34252# Specify filename containing input files.
34253file_list_spec=$lt_file_list_spec
34254
34255# How to hardcode a shared library path into an executable.
34256hardcode_action=$hardcode_action
34257
34258# The directories searched by this compiler when creating a shared library.
34259compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34260
34261# Dependencies to place before and after the objects being linked to
34262# create a shared library.
34263predep_objects=$lt_predep_objects
34264postdep_objects=$lt_postdep_objects
34265predeps=$lt_predeps
34266postdeps=$lt_postdeps
34267
34268# The library search path used internally by the compiler when linking
34269# a shared library.
34270compiler_lib_search_path=$lt_compiler_lib_search_path
34271
34272# ### END LIBTOOL CONFIG
34273
34274_LT_EOF
34275
34276 case $host_os in
34277 aix3*)
34278 cat <<\_LT_EOF >> "$cfgfile"
34279# AIX sometimes has problems with the GCC collect2 program. For some
34280# reason, if we set the COLLECT_NAMES environment variable, the problems
34281# vanish in a puff of smoke.
34282if test "X${COLLECT_NAMES+set}" != Xset; then
34283 COLLECT_NAMES=
34284 export COLLECT_NAMES
34285fi
34286_LT_EOF
34287 ;;
34288 esac
34289
34290
34291ltmain="$ac_aux_dir/ltmain.sh"
34292
34293
34294 # We use sed instead of cat because bash on DJGPP gets confused if
34295 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34296 # text mode, it properly converts lines to CR/LF. This bash problem
34297 # is reportedly fixed, but why not run on old versions too?
34298 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34299 || (rm -f "$cfgfile"; exit 1)
34300
34301 case $xsi_shell in
34302 yes)
34303 cat << \_LT_EOF >> "$cfgfile"
34304
34305# func_dirname file append nondir_replacement
34306# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34307# otherwise set result to NONDIR_REPLACEMENT.
34308func_dirname ()
34309{
34310 case ${1} in
34311 */*) func_dirname_result="${1%/*}${2}" ;;
34312 * ) func_dirname_result="${3}" ;;
34313 esac
34314}
34315
34316# func_basename file
34317func_basename ()
34318{
34319 func_basename_result="${1##*/}"
34320}
34321
34322# func_dirname_and_basename file append nondir_replacement
34323# perform func_basename and func_dirname in a single function
34324# call:
34325# dirname: Compute the dirname of FILE. If nonempty,
34326# add APPEND to the result, otherwise set result
34327# to NONDIR_REPLACEMENT.
34328# value returned in "$func_dirname_result"
34329# basename: Compute filename of FILE.
34330# value retuned in "$func_basename_result"
34331# Implementation must be kept synchronized with func_dirname
34332# and func_basename. For efficiency, we do not delegate to
34333# those functions but instead duplicate the functionality here.
34334func_dirname_and_basename ()
34335{
34336 case ${1} in
34337 */*) func_dirname_result="${1%/*}${2}" ;;
34338 * ) func_dirname_result="${3}" ;;
34339 esac
34340 func_basename_result="${1##*/}"
34341}
34342
34343# func_stripname prefix suffix name
34344# strip PREFIX and SUFFIX off of NAME.
34345# PREFIX and SUFFIX must not contain globbing or regex special
34346# characters, hashes, percent signs, but SUFFIX may contain a leading
34347# dot (in which case that matches only a dot).
34348func_stripname ()
34349{
34350 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34351 # positional parameters, so assign one to ordinary parameter first.
34352 func_stripname_result=${3}
34353 func_stripname_result=${func_stripname_result#"${1}"}
34354 func_stripname_result=${func_stripname_result%"${2}"}
34355}
34356
34357# func_opt_split
34358func_opt_split ()
34359{
34360 func_opt_split_opt=${1%%=*}
34361 func_opt_split_arg=${1#*=}
34362}
34363
34364# func_lo2o object
34365func_lo2o ()
34366{
34367 case ${1} in
34368 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
34369 *) func_lo2o_result=${1} ;;
34370 esac
34371}
34372
34373# func_xform libobj-or-source
34374func_xform ()
34375{
34376 func_xform_result=${1%.*}.lo
34377}
34378
34379# func_arith arithmetic-term...
34380func_arith ()
34381{
34382 func_arith_result=$(( $* ))
34383}
34384
34385# func_len string
34386# STRING may not start with a hyphen.
34387func_len ()
34388{
34389 func_len_result=${#1}
34390}
34391
34392_LT_EOF
34393 ;;
34394 *) # Bourne compatible functions.
34395 cat << \_LT_EOF >> "$cfgfile"
34396
34397# func_dirname file append nondir_replacement
34398# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34399# otherwise set result to NONDIR_REPLACEMENT.
34400func_dirname ()
34401{
34402 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000034403 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000034404 if test "X$func_dirname_result" = "X${1}"; then
34405 func_dirname_result="${3}"
34406 else
34407 func_dirname_result="$func_dirname_result${2}"
34408 fi
34409}
34410
34411# func_basename file
34412func_basename ()
34413{
cristy18304f92009-11-22 15:48:26 +000034414 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000034415}
34416
34417
34418# func_stripname prefix suffix name
34419# strip PREFIX and SUFFIX off of NAME.
34420# PREFIX and SUFFIX must not contain globbing or regex special
34421# characters, hashes, percent signs, but SUFFIX may contain a leading
34422# dot (in which case that matches only a dot).
34423# func_strip_suffix prefix name
34424func_stripname ()
34425{
34426 case ${2} in
cristy18304f92009-11-22 15:48:26 +000034427 .*) func_stripname_result=`$ECHO "X${3}" \
34428 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
34429 *) func_stripname_result=`$ECHO "X${3}" \
34430 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000034431 esac
34432}
34433
34434# sed scripts:
34435my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
34436my_sed_long_arg='1s/^-[^=]*=//'
34437
34438# func_opt_split
34439func_opt_split ()
34440{
cristy18304f92009-11-22 15:48:26 +000034441 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
34442 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000034443}
34444
34445# func_lo2o object
34446func_lo2o ()
34447{
cristy18304f92009-11-22 15:48:26 +000034448 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000034449}
34450
34451# func_xform libobj-or-source
34452func_xform ()
34453{
cristy18304f92009-11-22 15:48:26 +000034454 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000034455}
34456
34457# func_arith arithmetic-term...
34458func_arith ()
34459{
34460 func_arith_result=`expr "$@"`
34461}
34462
34463# func_len string
34464# STRING may not start with a hyphen.
34465func_len ()
34466{
34467 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
34468}
34469
34470_LT_EOF
34471esac
34472
34473case $lt_shell_append in
34474 yes)
34475 cat << \_LT_EOF >> "$cfgfile"
34476
34477# func_append var value
34478# Append VALUE to the end of shell variable VAR.
34479func_append ()
34480{
34481 eval "$1+=\$2"
34482}
34483_LT_EOF
34484 ;;
34485 *)
34486 cat << \_LT_EOF >> "$cfgfile"
34487
34488# func_append var value
34489# Append VALUE to the end of shell variable VAR.
34490func_append ()
34491{
34492 eval "$1=\$$1\$2"
34493}
34494
34495_LT_EOF
34496 ;;
34497 esac
34498
34499
34500 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
34501 || (rm -f "$cfgfile"; exit 1)
34502
34503 mv -f "$cfgfile" "$ofile" ||
34504 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34505 chmod +x "$ofile"
34506
34507
34508 cat <<_LT_EOF >> "$ofile"
34509
34510# ### BEGIN LIBTOOL TAG CONFIG: CXX
34511
34512# The linker used to build libraries.
34513LD=$lt_LD_CXX
34514
34515# Commands used to build an old-style archive.
34516old_archive_cmds=$lt_old_archive_cmds_CXX
34517
34518# A language specific compiler.
34519CC=$lt_compiler_CXX
34520
34521# Is the compiler the GNU compiler?
34522with_gcc=$GCC_CXX
34523
34524# Compiler flag to turn off builtin functions.
34525no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34526
34527# How to pass a linker flag through the compiler.
34528wl=$lt_lt_prog_compiler_wl_CXX
34529
34530# Additional compiler flags for building library objects.
34531pic_flag=$lt_lt_prog_compiler_pic_CXX
34532
34533# Compiler flag to prevent dynamic linking.
34534link_static_flag=$lt_lt_prog_compiler_static_CXX
34535
34536# Does compiler simultaneously support -c and -o options?
34537compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34538
34539# Whether or not to add -lc for building shared libraries.
34540build_libtool_need_lc=$archive_cmds_need_lc_CXX
34541
34542# Whether or not to disallow shared libs when runtime libs are static.
34543allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34544
34545# Compiler flag to allow reflexive dlopens.
34546export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34547
34548# Compiler flag to generate shared objects directly from archives.
34549whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34550
34551# Whether the compiler copes with passing no objects directly.
34552compiler_needs_object=$lt_compiler_needs_object_CXX
34553
34554# Create an old-style archive from a shared archive.
34555old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34556
34557# Create a temporary old-style archive to link instead of a shared archive.
34558old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34559
34560# Commands used to build a shared archive.
34561archive_cmds=$lt_archive_cmds_CXX
34562archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34563
34564# Commands used to build a loadable module if different from building
34565# a shared archive.
34566module_cmds=$lt_module_cmds_CXX
34567module_expsym_cmds=$lt_module_expsym_cmds_CXX
34568
34569# Whether we are building with GNU ld or not.
34570with_gnu_ld=$lt_with_gnu_ld_CXX
34571
34572# Flag that allows shared libraries with undefined symbols to be built.
34573allow_undefined_flag=$lt_allow_undefined_flag_CXX
34574
34575# Flag that enforces no undefined symbols.
34576no_undefined_flag=$lt_no_undefined_flag_CXX
34577
34578# Flag to hardcode \$libdir into a binary during linking.
34579# This must work even if \$libdir does not exist
34580hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34581
34582# If ld is used when linking, flag to hardcode \$libdir into a binary
34583# during linking. This must work even if \$libdir does not exist.
34584hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
34585
34586# Whether we need a single "-rpath" flag with a separated argument.
34587hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34588
34589# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34590# DIR into the resulting binary.
34591hardcode_direct=$hardcode_direct_CXX
34592
34593# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34594# DIR into the resulting binary and the resulting library dependency is
34595# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34596# library is relocated.
34597hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34598
34599# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34600# into the resulting binary.
34601hardcode_minus_L=$hardcode_minus_L_CXX
34602
34603# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34604# into the resulting binary.
34605hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34606
34607# Set to "yes" if building a shared library automatically hardcodes DIR
34608# into the library and all subsequent libraries and executables linked
34609# against it.
34610hardcode_automatic=$hardcode_automatic_CXX
34611
34612# Set to yes if linker adds runtime paths of dependent libraries
34613# to runtime path list.
34614inherit_rpath=$inherit_rpath_CXX
34615
34616# Whether libtool must link a program against all its dependency libraries.
34617link_all_deplibs=$link_all_deplibs_CXX
34618
34619# Fix the shell variable \$srcfile for the compiler.
34620fix_srcfile_path=$lt_fix_srcfile_path_CXX
34621
34622# Set to "yes" if exported symbols are required.
34623always_export_symbols=$always_export_symbols_CXX
34624
34625# The commands to list exported symbols.
34626export_symbols_cmds=$lt_export_symbols_cmds_CXX
34627
34628# Symbols that should not be listed in the preloaded symbols.
34629exclude_expsyms=$lt_exclude_expsyms_CXX
34630
34631# Symbols that must always be exported.
34632include_expsyms=$lt_include_expsyms_CXX
34633
34634# Commands necessary for linking programs (against libraries) with templates.
34635prelink_cmds=$lt_prelink_cmds_CXX
34636
34637# Specify filename containing input files.
34638file_list_spec=$lt_file_list_spec_CXX
34639
34640# How to hardcode a shared library path into an executable.
34641hardcode_action=$hardcode_action_CXX
34642
34643# The directories searched by this compiler when creating a shared library.
34644compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34645
34646# Dependencies to place before and after the objects being linked to
34647# create a shared library.
34648predep_objects=$lt_predep_objects_CXX
34649postdep_objects=$lt_postdep_objects_CXX
34650predeps=$lt_predeps_CXX
34651postdeps=$lt_postdeps_CXX
34652
34653# The library search path used internally by the compiler when linking
34654# a shared library.
34655compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34656
34657# ### END LIBTOOL TAG CONFIG: CXX
34658_LT_EOF
34659
34660 ;;
34661 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
34662 "Magick-config.in":C) chmod +x magick/Magick-config ;;
34663 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
34664 "Wand-config.in":C) chmod +x wand/Wand-config ;;
34665 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
34666 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
34667
34668 esac
34669done # for ac_tag
34670
34671
cristy8b350f62009-11-15 23:12:43 +000034672as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000034673_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000034674ac_clean_files=$ac_clean_files_save
34675
34676test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000034677 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034678
34679
34680# configure is writing to config.log, and then calls config.status.
34681# config.status does its own redirection, appending to config.log.
34682# Unfortunately, on DOS this fails, as config.log is still kept open
34683# by configure, so config.status won't be able to write to it; its
34684# output is simply discarded. So we exec the FD to /dev/null,
34685# effectively closing config.log, so it can be properly (re)opened and
34686# appended to by config.status. When coming back to configure, we
34687# need to make the FD available again.
34688if test "$no_create" != yes; then
34689 ac_cs_success=:
34690 ac_config_status_args=
34691 test "$silent" = yes &&
34692 ac_config_status_args="$ac_config_status_args --quiet"
34693 exec 5>/dev/null
34694 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34695 exec 5>>config.log
34696 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34697 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000034698 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000034699fi
34700if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000034701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000034702$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34703fi
34704
34705
34706rm -f magick-version
34707
cristy430a7312010-01-21 20:44:04 +000034708result_dejavu_font_dir='none'
34709if test "${dejavu_font_dir}x" != 'x'; then
34710 result_dejavu_font_dir=$dejavu_font_dir
34711fi
34712
cristy3ed852e2009-09-05 21:47:34 +000034713result_ghostscript_font_dir='none'
34714if test "${ghostscript_font_dir}x" != 'x'; then
34715 result_ghostscript_font_dir=$ghostscript_font_dir
34716fi
34717
34718result_windows_font_dir='none'
34719if test "${windows_font_dir}x" != 'x'; then
34720 result_windows_font_dir=${windows_font_dir}
34721fi
34722
cristy8b350f62009-11-15 23:12:43 +000034723{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000034724ImageMagick is configured as follows. Please verify that this configuration
34725matches your expectations.
34726
34727Host system type: $host
34728Build system type: $build
34729
34730 Option Value
34731-------------------------------------------------------------------------------
34732Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34733Static libraries --enable-static=$enable_static $libtool_build_static_libs
34734Module support --with-modules=$with_modules $with_modules
34735GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34736Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34737High Dynamic Range Imagery
34738 --enable-hdri=$enable_hdri $enable_hdri
34739
34740Delegate Configuration:
34741BZLIB --with-bzlib=$with_bzlib $have_bzlib
34742Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000034743Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000034744DJVU --with-djvu=$with_djvu $have_djvu
34745DPS --with-dps=$with_dps $have_dps
34746FFTW --with-fftw=$with_fftw $have_fftw
34747FlashPIX --with-fpx=$with_fpx $have_fpx
34748FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34749FreeType --with-freetype=$with_freetype $have_freetype
34750GhostPCL None $PCLDelegate ($PCLVersion)
34751GhostXPS None $XPSDelegate ($XPSVersion)
34752Ghostscript None $PSDelegate ($GSVersion)
34753Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34754Ghostscript lib --with-gslib=$with_gslib $have_gslib
34755Graphviz --with-gvc=$with_gvc $have_gvc
34756JBIG --with-jbig=$with_jbig $have_jbig
34757JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34758JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34759LCMS --with-lcms=$with_lcms $have_lcms
34760LQR --with-lqr=$with_lqr $have_lqr
34761Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34762OpenEXR --with-openexr=$with_openexr $have_openexr
34763PERL --with-perl=$with_perl $have_perl
34764PNG --with-png=$with_png $have_png
34765RSVG --with-rsvg=$with_rsvg $have_rsvg
34766TIFF --with-tiff=$with_tiff $have_tiff
34767Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
34768WMF --with-wmf=$with_wmf $have_wmf
34769X11 --with-x=$with_x $have_x
34770XML --with-xml=$with_xml $have_xml
34771ZLIB --with-zlib=$with_zlib $have_zlib
34772
34773X11 Configuration:
34774 X_CFLAGS = $X_CFLAGS
34775 X_PRE_LIBS = $X_PRE_LIBS
34776 X_LIBS = $X_LIBS
34777 X_EXTRA_LIBS = $X_EXTRA_LIBS
34778
34779Options used to compile and link:
34780 PREFIX = $PREFIX_DIR
34781 EXEC-PREFIX = $EXEC_PREFIX_DIR
34782 VERSION = $PACKAGE_VERSION
34783 CC = $CC
34784 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034785 CPPFLAGS = $MAGICK_CPPFLAGS
34786 PCFLAGS = $MAGICK_PCFLAGS
34787 DEFS = $DEFS
34788 LDFLAGS = $LDFLAGS
34789 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34790 LIBS = $MAGICK_LIBS
34791 CXX = $CXX
34792 CXXFLAGS = $CXXFLAGS
34793" >&5
34794$as_echo "
34795ImageMagick is configured as follows. Please verify that this configuration
34796matches your expectations.
34797
34798Host system type: $host
34799Build system type: $build
34800
34801 Option Value
34802-------------------------------------------------------------------------------
34803Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34804Static libraries --enable-static=$enable_static $libtool_build_static_libs
34805Module support --with-modules=$with_modules $with_modules
34806GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34807Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34808High Dynamic Range Imagery
34809 --enable-hdri=$enable_hdri $enable_hdri
34810
34811Delegate Configuration:
34812BZLIB --with-bzlib=$with_bzlib $have_bzlib
34813Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000034814Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000034815DJVU --with-djvu=$with_djvu $have_djvu
34816DPS --with-dps=$with_dps $have_dps
34817FFTW --with-fftw=$with_fftw $have_fftw
34818FlashPIX --with-fpx=$with_fpx $have_fpx
34819FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34820FreeType --with-freetype=$with_freetype $have_freetype
34821GhostPCL None $PCLDelegate ($PCLVersion)
34822GhostXPS None $XPSDelegate ($XPSVersion)
34823Ghostscript None $PSDelegate ($GSVersion)
34824Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34825Ghostscript lib --with-gslib=$with_gslib $have_gslib
34826Graphviz --with-gvc=$with_gvc $have_gvc
34827JBIG --with-jbig=$with_jbig $have_jbig
34828JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34829JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34830LCMS --with-lcms=$with_lcms $have_lcms
34831LQR --with-lqr=$with_lqr $have_lqr
34832Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34833OpenEXR --with-openexr=$with_openexr $have_openexr
34834PERL --with-perl=$with_perl $have_perl
34835PNG --with-png=$with_png $have_png
34836RSVG --with-rsvg=$with_rsvg $have_rsvg
34837TIFF --with-tiff=$with_tiff $have_tiff
34838Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
34839WMF --with-wmf=$with_wmf $have_wmf
34840X11 --with-x=$with_x $have_x
34841XML --with-xml=$with_xml $have_xml
34842ZLIB --with-zlib=$with_zlib $have_zlib
34843
34844X11 Configuration:
34845 X_CFLAGS = $X_CFLAGS
34846 X_PRE_LIBS = $X_PRE_LIBS
34847 X_LIBS = $X_LIBS
34848 X_EXTRA_LIBS = $X_EXTRA_LIBS
34849
34850Options used to compile and link:
34851 PREFIX = $PREFIX_DIR
34852 EXEC-PREFIX = $EXEC_PREFIX_DIR
34853 VERSION = $PACKAGE_VERSION
34854 CC = $CC
34855 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034856 CPPFLAGS = $MAGICK_CPPFLAGS
34857 PCFLAGS = $MAGICK_PCFLAGS
34858 DEFS = $DEFS
34859 LDFLAGS = $LDFLAGS
34860 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34861 LIBS = $MAGICK_LIBS
34862 CXX = $CXX
34863 CXXFLAGS = $CXXFLAGS
34864" >&6; }