blob: d2afb12424432516494c8a01b61a8d7637c8f4b4 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyb36feb22010-03-26 16:54:37 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.6.1.
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'
cristyb36feb22010-03-26 16:54:37 +0000708PACKAGE_VERSION='6.6.1'
709PACKAGE_STRING='ImageMagick 6.6.1'
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
cristy3ed852e2009-09-05 21:47:34 +0000866WMF_LIBS
867WMF_DELEGATE_FALSE
868WMF_DELEGATE_TRUE
869TIFF_LIBS
870TIFF_DELEGATE_FALSE
871TIFF_DELEGATE_TRUE
872CAIRO_DELEGATE_FALSE
873CAIRO_DELEGATE_TRUE
874RSVG_DELEGATE_FALSE
875RSVG_DELEGATE_TRUE
876CAIRO_SVG_LIBS
877CAIRO_SVG_CFLAGS
878RSVG_LIBS
879RSVG_CFLAGS
880PNG_LIBS
881PNG_DELEGATE_FALSE
882PNG_DELEGATE_TRUE
883OPENEXR_DELEGATE_FALSE
884OPENEXR_DELEGATE_TRUE
885OPENEXR_LIBS
886OPENEXR_CFLAGS
887LQR_DELEGATE_FALSE
888LQR_DELEGATE_TRUE
889LQR_LIBS
890LQR_CFLAGS
891LCMS_LIBS
892LCMS_DELEGATE_FALSE
893LCMS_DELEGATE_TRUE
894JP2_LIBS
895JP2_DELEGATE_FALSE
896JP2_DELEGATE_TRUE
897JPEG_LIBS
898JPEG_DELEGATE_FALSE
899JPEG_DELEGATE_TRUE
900JBIG_LIBS
901JBIG_DELEGATE_FALSE
902JBIG_DELEGATE_TRUE
903GVC_DELEGATE_FALSE
904GVC_DELEGATE_TRUE
905GVC_LIBS
906GVC_CFLAGS
907GS_LIBS
908GS_DELEGATE_FALSE
909GS_DELEGATE_TRUE
910FREETYPE_LIBS
911FREETYPE_DELEGATE_FALSE
912FREETYPE_DELEGATE_TRUE
913freetype_config
914FONTCONFIG_DELEGATE_FALSE
915FONTCONFIG_DELEGATE_TRUE
916FONTCONFIG_LIBS
917FONTCONFIG_CFLAGS
918FPX_LIBS
919FPX_DELEGATE_FALSE
920FPX_DELEGATE_TRUE
921FFTW_LIBS
922FFTW_DELEGATE_FALSE
923FFTW_DELEGATE_TRUE
924DJVU_LIBS
925DJVU_DELEGATE_FALSE
926DJVU_DELEGATE_TRUE
927DPS_LIBS
928DPS_DELEGATE_FALSE
929DPS_DELEGATE_TRUE
930AUTOTRACE_DELEGATE_FALSE
931AUTOTRACE_DELEGATE_TRUE
932AUTOTRACE_LIBS
933AUTOTRACE_CFLAGS
934LIB_DL
935ZLIB_LIBS
936ZLIB_DELEGATE_FALSE
937ZLIB_DELEGATE_TRUE
938XEXT_LIBS
939X11_LIBS
940X11_DELEGATE_FALSE
941X11_DELEGATE_TRUE
942X_EXTRA_LIBS
943X_LIBS
944X_PRE_LIBS
945X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000946XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000947BZLIB_LIBS
948BZLIB_DELEGATE_FALSE
949BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000950CCMALLOCDelegate
951UMEM_LIBS
952HasUMEM_FALSE
953HasUMEM_TRUE
954THREAD_LIBS
955GOMP_LIBS
956WITH_MAGICK_PLUS_PLUS_FALSE
957WITH_MAGICK_PLUS_PLUS_TRUE
958OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000959MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000960POW_LIB
961LIBOBJS
962UINTPTR_T
963UINTMAX_T
964UINT64_T
965INT64_T
966UINT32_T
967INT32_T
968UINT16_T
969INT16_T
970UINT8_T
971INT8_T
972LIBRARY_EXTRA_CPPFLAGS
973MODULE_EXTRA_CPPFLAGS
974LIBSTDCLDFLAGS
975PERL_MAKE_OPTIONS
976QUANTUM_DEPTH
977MAINT
978MAINTAINER_MODE_FALSE
979MAINTAINER_MODE_TRUE
980MAGICK_HDRI
981DLLDFLAGS
982WITH_LTDL_FALSE
983WITH_LTDL_TRUE
984WITH_MODULES_FALSE
985WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000986WITH_SHARED_LIBS_FALSE
987WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000988LTDLOPEN
989LT_CONFIG_H
990CONVENIENCE_LTDL_FALSE
991CONVENIENCE_LTDL_TRUE
992INSTALL_LTDL_FALSE
993INSTALL_LTDL_TRUE
994ARGZ_H
995sys_symbol_underscore
996LIBADD_DL
997LT_DLPREOPEN
998LIBADD_DLD_LINK
999LIBADD_SHL_LOAD
1000LIBADD_DLOPEN
1001LT_DLLOADERS
1002INCLTDL
1003LTDLINCL
1004LTDLDEPS
1005LIBLTDL
1006LIBTOOL_DEPS
1007CXXCPP
1008OTOOL64
1009OTOOL
1010LIPO
1011NMEDIT
1012DSYMUTIL
cristy18304f92009-11-22 15:48:26 +00001013lt_ECHO
cristy4dc44432009-12-30 23:30:06 +00001014RANLIB
cristy3ed852e2009-09-05 21:47:34 +00001015AR
1016NM
1017ac_ct_DUMPBIN
1018DUMPBIN
1019LIBTOOL
1020OBJDUMP
1021DLLTOOL
1022AS
1023LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001024CL_LIBS
1025CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001026OPENMP_CFLAGS
1027PTHREAD_CFLAGS
1028PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001029PTHREAD_CC
1030acx_pthread_config
1031WinPathScript
1032USING_CL_FALSE
1033USING_CL_TRUE
1034CYGWIN_BUILD_FALSE
1035CYGWIN_BUILD_TRUE
1036WIN32_NATIVE_BUILD_FALSE
1037WIN32_NATIVE_BUILD_TRUE
1038WINGDI32_DELEGATE_FALSE
1039WINGDI32_DELEGATE_TRUE
1040GDI32_LIBS
1041PKG_CONFIG
1042LN_S
cristy3ed852e2009-09-05 21:47:34 +00001043LD
1044FGREP
cristy3ed852e2009-09-05 21:47:34 +00001045SED
cristy95646052009-11-28 23:05:30 +00001046am__fastdepCXX_FALSE
1047am__fastdepCXX_TRUE
1048CXXDEPMODE
1049ac_ct_CXX
1050CXXFLAGS
1051CXX
cristya0b81c32010-01-22 02:54:33 +00001052EGREP
1053GREP
1054CPP
cristy3ed852e2009-09-05 21:47:34 +00001055am__fastdepCC_FALSE
1056am__fastdepCC_TRUE
1057CCDEPMODE
1058AMDEPBACKSLASH
1059AMDEP_FALSE
1060AMDEP_TRUE
1061am__quote
1062am__include
1063DEPDIR
1064OBJEXT
1065EXEEXT
1066ac_ct_CC
1067CPPFLAGS
1068LDFLAGS
1069CFLAGS
1070CC
1071DIRSEP
1072MAGICK_FILTER_MODULE_PATH
1073MAGICK_CONFIGURE_BUILD_PATH
1074MAGICK_CONFIGURE_SRC_PATH
1075MAGICK_CODER_MODULE_PATH
1076MAN_DIR
1077INFO_DIR
1078PERSISTINCLUDE_DIR
1079INCLUDE_DIR
1080LIB_DIR
1081LOCALSTATE_DIR
1082SHAREDSTATE_DIR
1083SYSCONF_DIR
1084DATA_DIR
1085LIBEXEC_DIR
1086SBIN_DIR
1087BIN_DIR
1088EXEC_PREFIX_DIR
1089PREFIX_DIR
1090CONFIG_STATUS_DEPENDENCIES
1091MAGICK_LIB_VERSION_NUMBER
1092MAGICK_LIB_VERSION_TEXT
1093MAGICK_LIB_VERSION
1094AM_BACKSLASH
1095AM_DEFAULT_VERBOSITY
1096am__untar
1097am__tar
1098AMTAR
1099am__leading_dot
1100SET_MAKE
1101AWK
1102mkdir_p
1103MKDIR_P
1104INSTALL_STRIP_PROGRAM
1105STRIP
1106install_sh
1107MAKEINFO
1108AUTOHEADER
1109AUTOMAKE
1110AUTOCONF
1111ACLOCAL
1112VERSION
1113PACKAGE
1114CYGPATH_W
1115am__isrc
1116INSTALL_DATA
1117INSTALL_SCRIPT
1118INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001119PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001120PACKAGE_RELEASE_DATE
1121PACKAGE_LIB_VERSION_NUMBER
1122PACKAGE_LIB_VERSION
1123PACKAGE_CHANGE_DATE
1124PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001125MAGICK_LIBRARY_VERSION_INFO
1126MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001127MAGICK_LIBRARY_AGE
1128MAGICK_LIBRARY_REVISION
1129MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001130MAGICK_TARGET_OS
1131MAGICK_TARGET_VENDOR
1132MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001133target_os
1134target_vendor
1135target_cpu
1136target
1137host_os
1138host_vendor
1139host_cpu
1140host
1141build_os
1142build_vendor
1143build_cpu
1144build
1145CONFIGURE_ARGS
1146DISTCHECK_CONFIG_FLAGS
1147target_alias
1148host_alias
1149build_alias
1150LIBS
1151ECHO_T
1152ECHO_N
1153ECHO_C
1154DEFS
1155mandir
1156localedir
1157libdir
1158psdir
1159pdfdir
1160dvidir
1161htmldir
1162infodir
1163docdir
1164oldincludedir
1165includedir
1166localstatedir
1167sharedstatedir
1168sysconfdir
1169datadir
1170datarootdir
1171libexecdir
1172sbindir
1173bindir
1174program_transform_name
1175prefix
1176exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001177PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001178PACKAGE_BUGREPORT
1179PACKAGE_STRING
1180PACKAGE_VERSION
1181PACKAGE_TARNAME
1182PACKAGE_NAME
1183PATH_SEPARATOR
1184SHELL'
1185ac_subst_files=''
1186ac_user_opts='
1187enable_option_checking
1188enable_silent_rules
1189enable_dependency_tracking
1190with_gnu_ld
1191with_maximum_compile_warnings
1192with_dmalloc
1193enable_bounds_checking
1194enable_osx_universal_binary
1195with_threads
1196enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001197enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001198enable_largefile
1199enable_shared
1200enable_static
1201with_pic
1202enable_fast_install
1203enable_libtool_lock
1204with_included_ltdl
1205with_ltdl_include
1206with_ltdl_lib
1207enable_ltdl_install
1208with_modules
1209enable_delegate_build
1210enable_deprecated
1211enable_installed
1212enable_cipher
1213enable_embeddable
1214enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001215enable_assert
1216enable_maintainer_mode
1217enable_ccmalloc
1218enable_efence
1219enable_prof
1220enable_gprof
1221enable_gcov
1222with_method_prefix
1223with_quantum_depth
1224with_cache
1225with_frozenpaths
1226with_magick_plus_plus
1227with_perl
1228with_perl_options
1229with_umem
1230with_libstdc
1231with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001232with_x
cristy3ed852e2009-09-05 21:47:34 +00001233with_zlib
1234with_autotrace
1235with_dps
1236with_djvu
cristy430a7312010-01-21 20:44:04 +00001237with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001238with_fftw
1239with_fpx
1240with_fontconfig
1241with_freetype
1242with_gslib
1243with_fontpath
1244with_gs_font_dir
1245with_gvc
1246with_jbig
1247with_jpeg
1248with_jp2
1249with_lcms
1250with_lqr
1251with_openexr
1252with_png
1253with_rsvg
1254with_tiff
1255with_windows_font_dir
1256with_wmf
1257with_xml
1258'
1259 ac_precious_vars='build_alias
1260host_alias
1261target_alias
1262CC
1263CFLAGS
1264LDFLAGS
1265LIBS
1266CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001267CPP
cristy3ed852e2009-09-05 21:47:34 +00001268CXX
1269CXXFLAGS
1270CCC
1271PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001272CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001273XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001274AUTOTRACE_CFLAGS
1275AUTOTRACE_LIBS
1276FONTCONFIG_CFLAGS
1277FONTCONFIG_LIBS
1278GVC_CFLAGS
1279GVC_LIBS
1280LQR_CFLAGS
1281LQR_LIBS
1282OPENEXR_CFLAGS
1283OPENEXR_LIBS
1284RSVG_CFLAGS
1285RSVG_LIBS
1286CAIRO_SVG_CFLAGS
1287CAIRO_SVG_LIBS'
1288
1289
1290# Initialize some variables set by options.
1291ac_init_help=
1292ac_init_version=false
1293ac_unrecognized_opts=
1294ac_unrecognized_sep=
1295# The variables have the same names as the options, with
1296# dashes changed to underlines.
1297cache_file=/dev/null
1298exec_prefix=NONE
1299no_create=
1300no_recursion=
1301prefix=NONE
1302program_prefix=NONE
1303program_suffix=NONE
1304program_transform_name=s,x,x,
1305silent=
1306site=
1307srcdir=
1308verbose=
1309x_includes=NONE
1310x_libraries=NONE
1311
1312# Installation directory options.
1313# These are left unexpanded so users can "make install exec_prefix=/foo"
1314# and all the variables that are supposed to be based on exec_prefix
1315# by default will actually change.
1316# Use braces instead of parens because sh, perl, etc. also accept them.
1317# (The list follows the same order as the GNU Coding Standards.)
1318bindir='${exec_prefix}/bin'
1319sbindir='${exec_prefix}/sbin'
1320libexecdir='${exec_prefix}/libexec'
1321datarootdir='${prefix}/share'
1322datadir='${datarootdir}'
1323sysconfdir='${prefix}/etc'
1324sharedstatedir='${prefix}/com'
1325localstatedir='${prefix}/var'
1326includedir='${prefix}/include'
1327oldincludedir='/usr/include'
1328docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1329infodir='${datarootdir}/info'
1330htmldir='${docdir}'
1331dvidir='${docdir}'
1332pdfdir='${docdir}'
1333psdir='${docdir}'
1334libdir='${exec_prefix}/lib'
1335localedir='${datarootdir}/locale'
1336mandir='${datarootdir}/man'
1337
1338ac_prev=
1339ac_dashdash=
1340for ac_option
1341do
1342 # If the previous option needs an argument, assign it.
1343 if test -n "$ac_prev"; then
1344 eval $ac_prev=\$ac_option
1345 ac_prev=
1346 continue
1347 fi
1348
1349 case $ac_option in
1350 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1351 *) ac_optarg=yes ;;
1352 esac
1353
1354 # Accept the important Cygnus configure options, so we can diagnose typos.
1355
1356 case $ac_dashdash$ac_option in
1357 --)
1358 ac_dashdash=yes ;;
1359
1360 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1361 ac_prev=bindir ;;
1362 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1363 bindir=$ac_optarg ;;
1364
1365 -build | --build | --buil | --bui | --bu)
1366 ac_prev=build_alias ;;
1367 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1368 build_alias=$ac_optarg ;;
1369
1370 -cache-file | --cache-file | --cache-fil | --cache-fi \
1371 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1372 ac_prev=cache_file ;;
1373 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1374 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1375 cache_file=$ac_optarg ;;
1376
1377 --config-cache | -C)
1378 cache_file=config.cache ;;
1379
1380 -datadir | --datadir | --datadi | --datad)
1381 ac_prev=datadir ;;
1382 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1383 datadir=$ac_optarg ;;
1384
1385 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1386 | --dataroo | --dataro | --datar)
1387 ac_prev=datarootdir ;;
1388 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1389 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1390 datarootdir=$ac_optarg ;;
1391
1392 -disable-* | --disable-*)
1393 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001396 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001397 ac_useropt_orig=$ac_useropt
1398 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1399 case $ac_user_opts in
1400 *"
1401"enable_$ac_useropt"
1402"*) ;;
1403 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1404 ac_unrecognized_sep=', ';;
1405 esac
1406 eval enable_$ac_useropt=no ;;
1407
1408 -docdir | --docdir | --docdi | --doc | --do)
1409 ac_prev=docdir ;;
1410 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1411 docdir=$ac_optarg ;;
1412
1413 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1414 ac_prev=dvidir ;;
1415 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1416 dvidir=$ac_optarg ;;
1417
1418 -enable-* | --enable-*)
1419 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1420 # Reject names that are not valid shell variable names.
1421 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001422 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001423 ac_useropt_orig=$ac_useropt
1424 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1425 case $ac_user_opts in
1426 *"
1427"enable_$ac_useropt"
1428"*) ;;
1429 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1430 ac_unrecognized_sep=', ';;
1431 esac
1432 eval enable_$ac_useropt=\$ac_optarg ;;
1433
1434 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1435 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1436 | --exec | --exe | --ex)
1437 ac_prev=exec_prefix ;;
1438 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1439 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1440 | --exec=* | --exe=* | --ex=*)
1441 exec_prefix=$ac_optarg ;;
1442
1443 -gas | --gas | --ga | --g)
1444 # Obsolete; use --with-gas.
1445 with_gas=yes ;;
1446
1447 -help | --help | --hel | --he | -h)
1448 ac_init_help=long ;;
1449 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1450 ac_init_help=recursive ;;
1451 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1452 ac_init_help=short ;;
1453
1454 -host | --host | --hos | --ho)
1455 ac_prev=host_alias ;;
1456 -host=* | --host=* | --hos=* | --ho=*)
1457 host_alias=$ac_optarg ;;
1458
1459 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1460 ac_prev=htmldir ;;
1461 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1462 | --ht=*)
1463 htmldir=$ac_optarg ;;
1464
1465 -includedir | --includedir | --includedi | --included | --include \
1466 | --includ | --inclu | --incl | --inc)
1467 ac_prev=includedir ;;
1468 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1469 | --includ=* | --inclu=* | --incl=* | --inc=*)
1470 includedir=$ac_optarg ;;
1471
1472 -infodir | --infodir | --infodi | --infod | --info | --inf)
1473 ac_prev=infodir ;;
1474 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1475 infodir=$ac_optarg ;;
1476
1477 -libdir | --libdir | --libdi | --libd)
1478 ac_prev=libdir ;;
1479 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1480 libdir=$ac_optarg ;;
1481
1482 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1483 | --libexe | --libex | --libe)
1484 ac_prev=libexecdir ;;
1485 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1486 | --libexe=* | --libex=* | --libe=*)
1487 libexecdir=$ac_optarg ;;
1488
1489 -localedir | --localedir | --localedi | --localed | --locale)
1490 ac_prev=localedir ;;
1491 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1492 localedir=$ac_optarg ;;
1493
1494 -localstatedir | --localstatedir | --localstatedi | --localstated \
1495 | --localstate | --localstat | --localsta | --localst | --locals)
1496 ac_prev=localstatedir ;;
1497 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1498 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1499 localstatedir=$ac_optarg ;;
1500
1501 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1502 ac_prev=mandir ;;
1503 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1504 mandir=$ac_optarg ;;
1505
1506 -nfp | --nfp | --nf)
1507 # Obsolete; use --without-fp.
1508 with_fp=no ;;
1509
1510 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1511 | --no-cr | --no-c | -n)
1512 no_create=yes ;;
1513
1514 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1515 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1516 no_recursion=yes ;;
1517
1518 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1519 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1520 | --oldin | --oldi | --old | --ol | --o)
1521 ac_prev=oldincludedir ;;
1522 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1523 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1524 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1525 oldincludedir=$ac_optarg ;;
1526
1527 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1528 ac_prev=prefix ;;
1529 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1530 prefix=$ac_optarg ;;
1531
1532 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1533 | --program-pre | --program-pr | --program-p)
1534 ac_prev=program_prefix ;;
1535 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1536 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1537 program_prefix=$ac_optarg ;;
1538
1539 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1540 | --program-suf | --program-su | --program-s)
1541 ac_prev=program_suffix ;;
1542 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1543 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1544 program_suffix=$ac_optarg ;;
1545
1546 -program-transform-name | --program-transform-name \
1547 | --program-transform-nam | --program-transform-na \
1548 | --program-transform-n | --program-transform- \
1549 | --program-transform | --program-transfor \
1550 | --program-transfo | --program-transf \
1551 | --program-trans | --program-tran \
1552 | --progr-tra | --program-tr | --program-t)
1553 ac_prev=program_transform_name ;;
1554 -program-transform-name=* | --program-transform-name=* \
1555 | --program-transform-nam=* | --program-transform-na=* \
1556 | --program-transform-n=* | --program-transform-=* \
1557 | --program-transform=* | --program-transfor=* \
1558 | --program-transfo=* | --program-transf=* \
1559 | --program-trans=* | --program-tran=* \
1560 | --progr-tra=* | --program-tr=* | --program-t=*)
1561 program_transform_name=$ac_optarg ;;
1562
1563 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1564 ac_prev=pdfdir ;;
1565 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1566 pdfdir=$ac_optarg ;;
1567
1568 -psdir | --psdir | --psdi | --psd | --ps)
1569 ac_prev=psdir ;;
1570 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1571 psdir=$ac_optarg ;;
1572
1573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1574 | -silent | --silent | --silen | --sile | --sil)
1575 silent=yes ;;
1576
1577 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1578 ac_prev=sbindir ;;
1579 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1580 | --sbi=* | --sb=*)
1581 sbindir=$ac_optarg ;;
1582
1583 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1584 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1585 | --sharedst | --shareds | --shared | --share | --shar \
1586 | --sha | --sh)
1587 ac_prev=sharedstatedir ;;
1588 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1589 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1590 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1591 | --sha=* | --sh=*)
1592 sharedstatedir=$ac_optarg ;;
1593
1594 -site | --site | --sit)
1595 ac_prev=site ;;
1596 -site=* | --site=* | --sit=*)
1597 site=$ac_optarg ;;
1598
1599 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1600 ac_prev=srcdir ;;
1601 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1602 srcdir=$ac_optarg ;;
1603
1604 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1605 | --syscon | --sysco | --sysc | --sys | --sy)
1606 ac_prev=sysconfdir ;;
1607 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1608 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1609 sysconfdir=$ac_optarg ;;
1610
1611 -target | --target | --targe | --targ | --tar | --ta | --t)
1612 ac_prev=target_alias ;;
1613 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1614 target_alias=$ac_optarg ;;
1615
1616 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1617 verbose=yes ;;
1618
1619 -version | --version | --versio | --versi | --vers | -V)
1620 ac_init_version=: ;;
1621
1622 -with-* | --with-*)
1623 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1624 # Reject names that are not valid shell variable names.
1625 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001626 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001627 ac_useropt_orig=$ac_useropt
1628 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1629 case $ac_user_opts in
1630 *"
1631"with_$ac_useropt"
1632"*) ;;
1633 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1634 ac_unrecognized_sep=', ';;
1635 esac
1636 eval with_$ac_useropt=\$ac_optarg ;;
1637
1638 -without-* | --without-*)
1639 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1640 # Reject names that are not valid shell variable names.
1641 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001642 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001643 ac_useropt_orig=$ac_useropt
1644 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1645 case $ac_user_opts in
1646 *"
1647"with_$ac_useropt"
1648"*) ;;
1649 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1650 ac_unrecognized_sep=', ';;
1651 esac
1652 eval with_$ac_useropt=no ;;
1653
1654 --x)
1655 # Obsolete; use --with-x.
1656 with_x=yes ;;
1657
1658 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1659 | --x-incl | --x-inc | --x-in | --x-i)
1660 ac_prev=x_includes ;;
1661 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1662 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1663 x_includes=$ac_optarg ;;
1664
1665 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1666 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1667 ac_prev=x_libraries ;;
1668 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1669 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1670 x_libraries=$ac_optarg ;;
1671
cristy8b350f62009-11-15 23:12:43 +00001672 -*) as_fn_error "unrecognized option: \`$ac_option'
1673Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001674 ;;
1675
1676 *=*)
1677 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1678 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001679 case $ac_envvar in #(
1680 '' | [0-9]* | *[!_$as_cr_alnum]* )
1681 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1682 esac
cristy3ed852e2009-09-05 21:47:34 +00001683 eval $ac_envvar=\$ac_optarg
1684 export $ac_envvar ;;
1685
1686 *)
1687 # FIXME: should be removed in autoconf 3.0.
1688 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1689 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1690 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1691 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1692 ;;
1693
1694 esac
1695done
1696
1697if test -n "$ac_prev"; then
1698 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001699 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001700fi
1701
1702if test -n "$ac_unrecognized_opts"; then
1703 case $enable_option_checking in
1704 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001705 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001706 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1707 esac
1708fi
1709
1710# Check all directory arguments for consistency.
1711for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1712 datadir sysconfdir sharedstatedir localstatedir includedir \
1713 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1714 libdir localedir mandir
1715do
1716 eval ac_val=\$$ac_var
1717 # Remove trailing slashes.
1718 case $ac_val in
1719 */ )
1720 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1721 eval $ac_var=\$ac_val;;
1722 esac
1723 # Be sure to have absolute directory names.
1724 case $ac_val in
1725 [\\/$]* | ?:[\\/]* ) continue;;
1726 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1727 esac
cristy8b350f62009-11-15 23:12:43 +00001728 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001729done
1730
1731# There might be people who depend on the old broken behavior: `$host'
1732# used to hold the argument of --host etc.
1733# FIXME: To remove some day.
1734build=$build_alias
1735host=$host_alias
1736target=$target_alias
1737
1738# FIXME: To remove some day.
1739if test "x$host_alias" != x; then
1740 if test "x$build_alias" = x; then
1741 cross_compiling=maybe
1742 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1743 If a cross compiler is detected then cross compile mode will be used." >&2
1744 elif test "x$build_alias" != "x$host_alias"; then
1745 cross_compiling=yes
1746 fi
1747fi
1748
1749ac_tool_prefix=
1750test -n "$host_alias" && ac_tool_prefix=$host_alias-
1751
1752test "$silent" = yes && exec 6>/dev/null
1753
1754
1755ac_pwd=`pwd` && test -n "$ac_pwd" &&
1756ac_ls_di=`ls -di .` &&
1757ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001758 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001759test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001760 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001761
1762
1763# Find the source files, if location was not specified.
1764if test -z "$srcdir"; then
1765 ac_srcdir_defaulted=yes
1766 # Try the directory containing this script, then the parent directory.
1767 ac_confdir=`$as_dirname -- "$as_myself" ||
1768$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1769 X"$as_myself" : 'X\(//\)[^/]' \| \
1770 X"$as_myself" : 'X\(//\)$' \| \
1771 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1772$as_echo X"$as_myself" |
1773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1774 s//\1/
1775 q
1776 }
1777 /^X\(\/\/\)[^/].*/{
1778 s//\1/
1779 q
1780 }
1781 /^X\(\/\/\)$/{
1782 s//\1/
1783 q
1784 }
1785 /^X\(\/\).*/{
1786 s//\1/
1787 q
1788 }
1789 s/.*/./; q'`
1790 srcdir=$ac_confdir
1791 if test ! -r "$srcdir/$ac_unique_file"; then
1792 srcdir=..
1793 fi
1794else
1795 ac_srcdir_defaulted=no
1796fi
1797if test ! -r "$srcdir/$ac_unique_file"; then
1798 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001799 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001800fi
1801ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1802ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001803 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001804 pwd)`
1805# When building in place, set srcdir=.
1806if test "$ac_abs_confdir" = "$ac_pwd"; then
1807 srcdir=.
1808fi
1809# Remove unnecessary trailing slashes from srcdir.
1810# Double slashes in file names in object file debugging info
1811# mess up M-x gdb in Emacs.
1812case $srcdir in
1813*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1814esac
1815for ac_var in $ac_precious_vars; do
1816 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1817 eval ac_env_${ac_var}_value=\$${ac_var}
1818 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1819 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1820done
1821
1822#
1823# Report the --help message.
1824#
1825if test "$ac_init_help" = "long"; then
1826 # Omit some internal or obsolete options to make the list less imposing.
1827 # This message is too long to be a string in the A/UX 3.1 sh.
1828 cat <<_ACEOF
cristyb36feb22010-03-26 16:54:37 +00001829\`configure' configures ImageMagick 6.6.1 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001830
1831Usage: $0 [OPTION]... [VAR=VALUE]...
1832
1833To assign environment variables (e.g., CC, CFLAGS...), specify them as
1834VAR=VALUE. See below for descriptions of some of the useful variables.
1835
1836Defaults for the options are specified in brackets.
1837
1838Configuration:
1839 -h, --help display this help and exit
1840 --help=short display options specific to this package
1841 --help=recursive display the short help of all the included packages
1842 -V, --version display version information and exit
1843 -q, --quiet, --silent do not print \`checking...' messages
1844 --cache-file=FILE cache test results in FILE [disabled]
1845 -C, --config-cache alias for \`--cache-file=config.cache'
1846 -n, --no-create do not create output files
1847 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1848
1849Installation directories:
1850 --prefix=PREFIX install architecture-independent files in PREFIX
1851 [$ac_default_prefix]
1852 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1853 [PREFIX]
1854
1855By default, \`make install' will install all the files in
1856\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1857an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1858for instance \`--prefix=\$HOME'.
1859
1860For better control, use the options below.
1861
1862Fine tuning of the installation directories:
1863 --bindir=DIR user executables [EPREFIX/bin]
1864 --sbindir=DIR system admin executables [EPREFIX/sbin]
1865 --libexecdir=DIR program executables [EPREFIX/libexec]
1866 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1867 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1868 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1869 --libdir=DIR object code libraries [EPREFIX/lib]
1870 --includedir=DIR C header files [PREFIX/include]
1871 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1872 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1873 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1874 --infodir=DIR info documentation [DATAROOTDIR/info]
1875 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1876 --mandir=DIR man documentation [DATAROOTDIR/man]
1877 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1878 --htmldir=DIR html documentation [DOCDIR]
1879 --dvidir=DIR dvi documentation [DOCDIR]
1880 --pdfdir=DIR pdf documentation [DOCDIR]
1881 --psdir=DIR ps documentation [DOCDIR]
1882_ACEOF
1883
1884 cat <<\_ACEOF
1885
1886Program names:
1887 --program-prefix=PREFIX prepend PREFIX to installed program names
1888 --program-suffix=SUFFIX append SUFFIX to installed program names
1889 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1890
1891X features:
1892 --x-includes=DIR X include files are in DIR
1893 --x-libraries=DIR X library files are in DIR
1894
1895System types:
1896 --build=BUILD configure for building on BUILD [guessed]
1897 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1898 --target=TARGET configure for building compilers for TARGET [HOST]
1899_ACEOF
1900fi
1901
1902if test -n "$ac_init_help"; then
1903 case $ac_init_help in
cristyb36feb22010-03-26 16:54:37 +00001904 short | recursive ) echo "Configuration of ImageMagick 6.6.1:";;
cristy3ed852e2009-09-05 21:47:34 +00001905 esac
1906 cat <<\_ACEOF
1907
1908Optional Features:
1909 --disable-option-checking ignore unrecognized --enable/--with options
1910 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1911 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1912 --enable-silent-rules less verbose build output (undo: `make V=1')
1913 --disable-silent-rules verbose build output (undo: `make V=0')
1914 --disable-dependency-tracking speeds up one-time build
1915 --enable-dependency-tracking do not reject slow dependency extractors
1916 --bounds-checking enable run-time bounds-checking
1917 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001918 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001919 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001920 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001921 --disable-largefile omit support for large files
1922 --enable-shared[=PKGS] build shared libraries [default=yes]
1923 --enable-static[=PKGS] build static libraries [default=yes]
1924 --enable-fast-install[=PKGS]
1925 optimize for fast installation [default=yes]
1926 --disable-libtool-lock avoid locking (might break parallel builds)
1927 --enable-ltdl-install install libltdl
1928 --enable-delegate-build look for delegate libraries in build directory
1929 --disable-deprecated exclude deprecated methods in MagickCore and
1930 MagickWand API's
1931 --disable-installed Formally install ImageMagick under PREFIX
1932 --disable-cipher disable enciphering and deciphering image pixels
1933 --enable-embeddable enable self-contained, embeddable,
1934 zero-configuration ImageMagick
1935 --enable-hdri accurately represent the wide range of intensity
1936 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001937 --disable-assert disable assert() statements in build
1938 --enable-maintainer-mode enable make rules and dependencies not useful
1939 (and sometimes confusing) to the casual installer
1940 --enable-ccmalloc enable 'ccmalloc' memory debug support
1941 --enable-efence enable 'efence' memory debug support
1942 --enable-prof enable 'prof' profiling support
1943 --enable-gprof enable 'gprof' profiling support
1944 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001945 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001946
1947Optional Packages:
1948 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1949 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1950 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1951 --without-maximum-compile-warnings
1952 Disable maximum warning verbosity
1953 --with-dmalloc use dmalloc, as in
1954 http://www.dmalloc.com/dmalloc.tar.gz
1955 --without-threads disable threads support
1956 --with-pic try to use only PIC/non-PIC objects [default=use
1957 both]
1958 --with-included-ltdl use the GNU ltdl sources included here
1959 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1960 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1961 --with-modules enable building dynamically loadable modules
1962 --with-method-prefix=PREFIX
1963 prefix MagickCore API methods
1964 --with-quantum-depth=DEPTH
1965 number of bits in a pixel quantum (default 16)
1966 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1967 memory)
1968 --with-frozenpaths freeze delegate paths
1969 --without-magick-plus-plus
1970 disable build/install of Magick++
1971 --with-perl enable build/install of PerlMagick
1972 --with-perl-options=OPTIONS
1973 options to pass on command-line when generating
1974 PerlMagick's build file
1975 --with-umem enable umem memory allocation library support
1976 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1977 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001978 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001979 --without-zlib disable ZLIB support
1980 --with-autotrace enable autotrace support
1981 --without-dps disable Display Postscript support
1982 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001983 --with-dejavu-font-dir=DIR
1984 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001985 --without-fftw disable FFTW support
1986 --without-fpx disable FlashPIX support
1987 --without-fontconfig disable fontconfig support
1988 --without-freetype disable Freetype support
1989 --without-gslib enable Ghostscript library support
1990 --with-fontpath=DIR prepend to default font search path
1991 --with-gs-font-dir=DIR Ghostscript font directory
1992 --without-gvc disable GVC support
1993 --without-jbig disable JBIG support
1994 --without-jpeg disable JPEG support
1995 --without-jp2 disable JPEG-2000 support
1996 --without-lcms disable LCMS support
cristyf0c78232010-03-15 12:53:40 +00001997 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001998 --without-openexr disable OpenEXR support
1999 --without-png disable PNG support
2000 --without-rsvg disable RSVG support
2001 --without-tiff disable TIFF support
2002 --with-windows-font-dir=DIR
2003 directory containing MS-Windows fonts
2004 --without-wmf disable WMF support
2005 --without-xml disable XML support
2006
2007Some influential environment variables:
2008 CC C compiler command
2009 CFLAGS C compiler flags
2010 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2011 nonstandard directory <lib dir>
2012 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002013 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002014 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002015 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002016 CXX C++ compiler command
2017 CXXFLAGS C++ compiler flags
2018 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002019 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002020 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002021 AUTOTRACE_CFLAGS
2022 C compiler flags for AUTOTRACE, overriding pkg-config
2023 AUTOTRACE_LIBS
2024 linker flags for AUTOTRACE, overriding pkg-config
2025 FONTCONFIG_CFLAGS
2026 C compiler flags for FONTCONFIG, overriding pkg-config
2027 FONTCONFIG_LIBS
2028 linker flags for FONTCONFIG, overriding pkg-config
2029 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2030 GVC_LIBS linker flags for GVC, overriding pkg-config
2031 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2032 LQR_LIBS linker flags for LQR, overriding pkg-config
2033 OPENEXR_CFLAGS
2034 C compiler flags for OPENEXR, overriding pkg-config
2035 OPENEXR_LIBS
2036 linker flags for OPENEXR, overriding pkg-config
2037 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2038 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2039 CAIRO_SVG_CFLAGS
2040 C compiler flags for CAIRO_SVG, overriding pkg-config
2041 CAIRO_SVG_LIBS
2042 linker flags for CAIRO_SVG, overriding pkg-config
2043
2044Use these variables to override the choices made by `configure' or to help
2045it to find libraries and programs with nonstandard names/locations.
2046
2047Report bugs to <http://www.imagemagick.org>.
2048_ACEOF
2049ac_status=$?
2050fi
2051
2052if test "$ac_init_help" = "recursive"; then
2053 # If there are subdirs, report their specific --help.
2054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2055 test -d "$ac_dir" ||
2056 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2057 continue
2058 ac_builddir=.
2059
2060case "$ac_dir" in
2061.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2062*)
2063 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2064 # A ".." for each directory in $ac_dir_suffix.
2065 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2066 case $ac_top_builddir_sub in
2067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2069 esac ;;
2070esac
2071ac_abs_top_builddir=$ac_pwd
2072ac_abs_builddir=$ac_pwd$ac_dir_suffix
2073# for backward compatibility:
2074ac_top_builddir=$ac_top_build_prefix
2075
2076case $srcdir in
2077 .) # We are building in place.
2078 ac_srcdir=.
2079 ac_top_srcdir=$ac_top_builddir_sub
2080 ac_abs_top_srcdir=$ac_pwd ;;
2081 [\\/]* | ?:[\\/]* ) # Absolute name.
2082 ac_srcdir=$srcdir$ac_dir_suffix;
2083 ac_top_srcdir=$srcdir
2084 ac_abs_top_srcdir=$srcdir ;;
2085 *) # Relative name.
2086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2087 ac_top_srcdir=$ac_top_build_prefix$srcdir
2088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2089esac
2090ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2091
2092 cd "$ac_dir" || { ac_status=$?; continue; }
2093 # Check for guested configure.
2094 if test -f "$ac_srcdir/configure.gnu"; then
2095 echo &&
2096 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2097 elif test -f "$ac_srcdir/configure"; then
2098 echo &&
2099 $SHELL "$ac_srcdir/configure" --help=recursive
2100 else
2101 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2102 fi || ac_status=$?
2103 cd "$ac_pwd" || { ac_status=$?; break; }
2104 done
2105fi
2106
2107test -n "$ac_init_help" && exit $ac_status
2108if $ac_init_version; then
2109 cat <<\_ACEOF
cristyb36feb22010-03-26 16:54:37 +00002110ImageMagick configure 6.6.1
cristycd4c5312009-11-22 01:19:08 +00002111generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002112
cristy8b350f62009-11-15 23:12:43 +00002113Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002114This configure script is free software; the Free Software Foundation
2115gives unlimited permission to copy, distribute and modify it.
2116_ACEOF
2117 exit
2118fi
cristy8b350f62009-11-15 23:12:43 +00002119
2120## ------------------------ ##
2121## Autoconf initialization. ##
2122## ------------------------ ##
2123
2124# ac_fn_c_try_compile LINENO
2125# --------------------------
2126# Try to compile conftest.$ac_ext, and return whether this succeeded.
2127ac_fn_c_try_compile ()
2128{
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 rm -f conftest.$ac_objext
2131 if { { ac_try="$ac_compile"
2132case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135esac
2136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137$as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_compile") 2>conftest.err
2139 ac_status=$?
2140 if test -s conftest.err; then
2141 grep -v '^ *+' conftest.err >conftest.er1
2142 cat conftest.er1 >&5
2143 mv -f conftest.er1 conftest.err
2144 fi
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; } && {
2147 test -z "$ac_c_werror_flag" ||
2148 test ! -s conftest.err
2149 } && test -s conftest.$ac_objext; then :
2150 ac_retval=0
2151else
2152 $as_echo "$as_me: failed program was:" >&5
2153sed 's/^/| /' conftest.$ac_ext >&5
2154
2155 ac_retval=1
2156fi
2157 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002158 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002159
2160} # ac_fn_c_try_compile
2161
cristy95646052009-11-28 23:05:30 +00002162# ac_fn_c_try_cpp LINENO
2163# ----------------------
2164# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2165ac_fn_c_try_cpp ()
2166{
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 if { { ac_try="$ac_cpp conftest.$ac_ext"
2169case "(($ac_try" in
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2172esac
2173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174$as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2176 ac_status=$?
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2181 fi
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } >/dev/null && {
2184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2185 test ! -s conftest.err
2186 }; then :
2187 ac_retval=0
2188else
2189 $as_echo "$as_me: failed program was:" >&5
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
2192 ac_retval=1
2193fi
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195 as_fn_set_status $ac_retval
2196
2197} # ac_fn_c_try_cpp
2198
cristy8b350f62009-11-15 23:12:43 +00002199# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2200# -------------------------------------------------------
2201# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2202# the include files in INCLUDES and setting the cache variable VAR
2203# accordingly.
2204ac_fn_c_check_header_mongrel ()
2205{
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209$as_echo_n "checking for $2... " >&6; }
2210if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2211 $as_echo_n "(cached) " >&6
2212fi
2213eval ac_res=\$$3
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215$as_echo "$ac_res" >&6; }
2216else
2217 # Is the header compilable?
2218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2219$as_echo_n "checking $2 usability... " >&6; }
2220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221/* end confdefs.h. */
2222$4
2223#include <$2>
2224_ACEOF
2225if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_header_compiler=yes
2227else
2228 ac_header_compiler=no
2229fi
2230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2232$as_echo "$ac_header_compiler" >&6; }
2233
2234# Is the header present?
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2236$as_echo_n "checking $2 presence... " >&6; }
2237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238/* end confdefs.h. */
2239#include <$2>
2240_ACEOF
2241if ac_fn_c_try_cpp "$LINENO"; then :
2242 ac_header_preproc=yes
2243else
2244 ac_header_preproc=no
2245fi
2246rm -f conftest.err conftest.$ac_ext
2247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2248$as_echo "$ac_header_preproc" >&6; }
2249
2250# So? What about this header?
2251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2252 yes:no: )
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2254$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2256$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2257 ;;
2258 no:yes:* )
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2260$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2262$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2264$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2266$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2268$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2269( cat <<\_ASBOX
2270## ----------------------------------------- ##
2271## Report this to http://www.imagemagick.org ##
2272## ----------------------------------------- ##
2273_ASBOX
2274 ) | sed "s/^/$as_me: WARNING: /" >&2
2275 ;;
2276esac
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2278$as_echo_n "checking for $2... " >&6; }
2279if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2280 $as_echo_n "(cached) " >&6
2281else
2282 eval "$3=\$ac_header_compiler"
2283fi
2284eval ac_res=\$$3
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286$as_echo "$ac_res" >&6; }
2287fi
2288 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2289
2290} # ac_fn_c_check_header_mongrel
2291
2292# ac_fn_c_try_run LINENO
2293# ----------------------
2294# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2295# that executables *can* be run.
2296ac_fn_c_try_run ()
2297{
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 if { { ac_try="$ac_link"
2300case "(($ac_try" in
2301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302 *) ac_try_echo=$ac_try;;
2303esac
2304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2305$as_echo "$ac_try_echo"; } >&5
2306 (eval "$ac_link") 2>&5
2307 ac_status=$?
2308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2309 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2310 { { case "(($ac_try" in
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2313esac
2314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2315$as_echo "$ac_try_echo"; } >&5
2316 (eval "$ac_try") 2>&5
2317 ac_status=$?
2318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2319 test $ac_status = 0; }; }; then :
2320 ac_retval=0
2321else
2322 $as_echo "$as_me: program exited with status $ac_status" >&5
2323 $as_echo "$as_me: failed program was:" >&5
2324sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 ac_retval=$ac_status
2327fi
2328 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2329 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002330 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002331
2332} # ac_fn_c_try_run
2333
2334# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2335# -------------------------------------------------------
2336# Tests whether HEADER exists and can be compiled using the include files in
2337# INCLUDES, setting the cache variable VAR accordingly.
2338ac_fn_c_check_header_compile ()
2339{
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342$as_echo_n "checking for $2... " >&6; }
2343if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344 $as_echo_n "(cached) " >&6
2345else
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347/* end confdefs.h. */
2348$4
2349#include <$2>
2350_ACEOF
2351if ac_fn_c_try_compile "$LINENO"; then :
2352 eval "$3=yes"
2353else
2354 eval "$3=no"
2355fi
2356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357fi
2358eval ac_res=\$$3
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360$as_echo "$ac_res" >&6; }
2361 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2362
2363} # ac_fn_c_check_header_compile
2364
cristya0b81c32010-01-22 02:54:33 +00002365# ac_fn_cxx_try_compile LINENO
2366# ----------------------------
2367# Try to compile conftest.$ac_ext, and return whether this succeeded.
2368ac_fn_cxx_try_compile ()
2369{
2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371 rm -f conftest.$ac_objext
2372 if { { ac_try="$ac_compile"
2373case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2376esac
2377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2378$as_echo "$ac_try_echo"; } >&5
2379 (eval "$ac_compile") 2>conftest.err
2380 ac_status=$?
2381 if test -s conftest.err; then
2382 grep -v '^ *+' conftest.err >conftest.er1
2383 cat conftest.er1 >&5
2384 mv -f conftest.er1 conftest.err
2385 fi
2386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2387 test $ac_status = 0; } && {
2388 test -z "$ac_cxx_werror_flag" ||
2389 test ! -s conftest.err
2390 } && test -s conftest.$ac_objext; then :
2391 ac_retval=0
2392else
2393 $as_echo "$as_me: failed program was:" >&5
2394sed 's/^/| /' conftest.$ac_ext >&5
2395
2396 ac_retval=1
2397fi
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399 as_fn_set_status $ac_retval
2400
2401} # ac_fn_cxx_try_compile
2402
cristy8b350f62009-11-15 23:12:43 +00002403# ac_fn_c_try_link LINENO
2404# -----------------------
2405# Try to link conftest.$ac_ext, and return whether this succeeded.
2406ac_fn_c_try_link ()
2407{
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 rm -f conftest.$ac_objext conftest$ac_exeext
2410 if { { ac_try="$ac_link"
2411case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2414esac
2415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2416$as_echo "$ac_try_echo"; } >&5
2417 (eval "$ac_link") 2>conftest.err
2418 ac_status=$?
2419 if test -s conftest.err; then
2420 grep -v '^ *+' conftest.err >conftest.er1
2421 cat conftest.er1 >&5
2422 mv -f conftest.er1 conftest.err
2423 fi
2424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2425 test $ac_status = 0; } && {
2426 test -z "$ac_c_werror_flag" ||
2427 test ! -s conftest.err
2428 } && test -s conftest$ac_exeext && {
2429 test "$cross_compiling" = yes ||
2430 $as_test_x conftest$ac_exeext
2431 }; then :
2432 ac_retval=0
2433else
2434 $as_echo "$as_me: failed program was:" >&5
2435sed 's/^/| /' conftest.$ac_ext >&5
2436
2437 ac_retval=1
2438fi
2439 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2440 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2441 # interfere with the next link command; also delete a directory that is
2442 # left behind by Apple's compiler. We do this before executing the actions.
2443 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002445 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002446
2447} # ac_fn_c_try_link
2448
2449# ac_fn_c_check_func LINENO FUNC VAR
2450# ----------------------------------
2451# Tests whether FUNC exists, setting the cache variable VAR accordingly
2452ac_fn_c_check_func ()
2453{
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2456$as_echo_n "checking for $2... " >&6; }
2457if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2458 $as_echo_n "(cached) " >&6
2459else
2460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461/* end confdefs.h. */
2462/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2464#define $2 innocuous_$2
2465
2466/* System header to define __stub macros and hopefully few prototypes,
2467 which can conflict with char $2 (); below.
2468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2469 <limits.h> exists even on freestanding compilers. */
2470
2471#ifdef __STDC__
2472# include <limits.h>
2473#else
2474# include <assert.h>
2475#endif
2476
2477#undef $2
2478
2479/* Override any GCC internal prototype to avoid an error.
2480 Use char because int might match the return type of a GCC
2481 builtin and then its argument prototype would still apply. */
2482#ifdef __cplusplus
2483extern "C"
2484#endif
2485char $2 ();
2486/* The GNU C library defines this for functions which it implements
2487 to always fail with ENOSYS. Some functions are actually named
2488 something starting with __ and the normal name is an alias. */
2489#if defined __stub_$2 || defined __stub___$2
2490choke me
2491#endif
2492
2493int
2494main ()
2495{
2496return $2 ();
2497 ;
2498 return 0;
2499}
2500_ACEOF
2501if ac_fn_c_try_link "$LINENO"; then :
2502 eval "$3=yes"
2503else
2504 eval "$3=no"
2505fi
2506rm -f core conftest.err conftest.$ac_objext \
2507 conftest$ac_exeext conftest.$ac_ext
2508fi
2509eval ac_res=\$$3
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2511$as_echo "$ac_res" >&6; }
2512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2513
2514} # ac_fn_c_check_func
2515
2516# ac_fn_cxx_try_cpp LINENO
2517# ------------------------
2518# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2519ac_fn_cxx_try_cpp ()
2520{
2521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522 if { { ac_try="$ac_cpp conftest.$ac_ext"
2523case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526esac
2527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2528$as_echo "$ac_try_echo"; } >&5
2529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2530 ac_status=$?
2531 if test -s conftest.err; then
2532 grep -v '^ *+' conftest.err >conftest.er1
2533 cat conftest.er1 >&5
2534 mv -f conftest.er1 conftest.err
2535 fi
2536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2537 test $ac_status = 0; } >/dev/null && {
2538 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2539 test ! -s conftest.err
2540 }; then :
2541 ac_retval=0
2542else
2543 $as_echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546 ac_retval=1
2547fi
2548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002549 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002550
2551} # ac_fn_cxx_try_cpp
2552
2553# ac_fn_cxx_try_link LINENO
2554# -------------------------
2555# Try to link conftest.$ac_ext, and return whether this succeeded.
2556ac_fn_cxx_try_link ()
2557{
2558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2559 rm -f conftest.$ac_objext conftest$ac_exeext
2560 if { { ac_try="$ac_link"
2561case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2564esac
2565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2566$as_echo "$ac_try_echo"; } >&5
2567 (eval "$ac_link") 2>conftest.err
2568 ac_status=$?
2569 if test -s conftest.err; then
2570 grep -v '^ *+' conftest.err >conftest.er1
2571 cat conftest.er1 >&5
2572 mv -f conftest.er1 conftest.err
2573 fi
2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575 test $ac_status = 0; } && {
2576 test -z "$ac_cxx_werror_flag" ||
2577 test ! -s conftest.err
2578 } && test -s conftest$ac_exeext && {
2579 test "$cross_compiling" = yes ||
2580 $as_test_x conftest$ac_exeext
2581 }; then :
2582 ac_retval=0
2583else
2584 $as_echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587 ac_retval=1
2588fi
2589 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2590 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2591 # interfere with the next link command; also delete a directory that is
2592 # left behind by Apple's compiler. We do this before executing the actions.
2593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2594 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002595 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002596
2597} # ac_fn_cxx_try_link
2598
2599# ac_fn_c_check_decl LINENO SYMBOL VAR
2600# ------------------------------------
2601# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2602ac_fn_c_check_decl ()
2603{
2604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2606$as_echo_n "checking whether $2 is declared... " >&6; }
2607if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2608 $as_echo_n "(cached) " >&6
2609else
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611/* end confdefs.h. */
2612$4
2613int
2614main ()
2615{
2616#ifndef $2
2617 (void) $2;
2618#endif
2619
2620 ;
2621 return 0;
2622}
2623_ACEOF
2624if ac_fn_c_try_compile "$LINENO"; then :
2625 eval "$3=yes"
2626else
2627 eval "$3=no"
2628fi
2629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630fi
2631eval ac_res=\$$3
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633$as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2635
2636} # ac_fn_c_check_decl
2637
2638# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2639# -------------------------------------------
2640# Tests whether TYPE exists after having included INCLUDES, setting cache
2641# variable VAR accordingly.
2642ac_fn_c_check_type ()
2643{
2644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2646$as_echo_n "checking for $2... " >&6; }
2647if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2648 $as_echo_n "(cached) " >&6
2649else
2650 eval "$3=no"
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652/* end confdefs.h. */
2653$4
2654int
2655main ()
2656{
2657if (sizeof ($2))
2658 return 0;
2659 ;
2660 return 0;
2661}
2662_ACEOF
2663if ac_fn_c_try_compile "$LINENO"; then :
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665/* end confdefs.h. */
2666$4
2667int
2668main ()
2669{
2670if (sizeof (($2)))
2671 return 0;
2672 ;
2673 return 0;
2674}
2675_ACEOF
2676if ac_fn_c_try_compile "$LINENO"; then :
2677
2678else
2679 eval "$3=yes"
2680fi
2681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682fi
2683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684fi
2685eval ac_res=\$$3
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687$as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2689
2690} # ac_fn_c_check_type
2691
2692# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2693# --------------------------------------------
2694# Tries to find the compile-time value of EXPR in a program that includes
2695# INCLUDES, setting VAR accordingly. Returns whether the value could be
2696# computed
2697ac_fn_c_compute_int ()
2698{
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 if test "$cross_compiling" = yes; then
2701 # Depending upon the size, compute the lo and hi bounds.
2702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703/* end confdefs.h. */
2704$4
2705int
2706main ()
2707{
2708static int test_array [1 - 2 * !(($2) >= 0)];
2709test_array [0] = 0
2710
2711 ;
2712 return 0;
2713}
2714_ACEOF
2715if ac_fn_c_try_compile "$LINENO"; then :
2716 ac_lo=0 ac_mid=0
2717 while :; do
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719/* end confdefs.h. */
2720$4
2721int
2722main ()
2723{
2724static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2725test_array [0] = 0
2726
2727 ;
2728 return 0;
2729}
2730_ACEOF
2731if ac_fn_c_try_compile "$LINENO"; then :
2732 ac_hi=$ac_mid; break
2733else
2734 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2735 if test $ac_lo -le $ac_mid; then
2736 ac_lo= ac_hi=
2737 break
2738 fi
2739 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2740fi
2741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 done
2743else
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745/* end confdefs.h. */
2746$4
2747int
2748main ()
2749{
2750static int test_array [1 - 2 * !(($2) < 0)];
2751test_array [0] = 0
2752
2753 ;
2754 return 0;
2755}
2756_ACEOF
2757if ac_fn_c_try_compile "$LINENO"; then :
2758 ac_hi=-1 ac_mid=-1
2759 while :; do
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761/* end confdefs.h. */
2762$4
2763int
2764main ()
2765{
2766static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2767test_array [0] = 0
2768
2769 ;
2770 return 0;
2771}
2772_ACEOF
2773if ac_fn_c_try_compile "$LINENO"; then :
2774 ac_lo=$ac_mid; break
2775else
2776 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2777 if test $ac_mid -le $ac_hi; then
2778 ac_lo= ac_hi=
2779 break
2780 fi
2781 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2782fi
2783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 done
2785else
2786 ac_lo= ac_hi=
2787fi
2788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789fi
2790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791# Binary search between lo and hi bounds.
2792while test "x$ac_lo" != "x$ac_hi"; do
2793 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795/* end confdefs.h. */
2796$4
2797int
2798main ()
2799{
2800static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2801test_array [0] = 0
2802
2803 ;
2804 return 0;
2805}
2806_ACEOF
2807if ac_fn_c_try_compile "$LINENO"; then :
2808 ac_hi=$ac_mid
2809else
2810 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2811fi
2812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813done
2814case $ac_lo in #((
2815?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2816'') ac_retval=1 ;;
2817esac
2818 else
2819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820/* end confdefs.h. */
2821$4
2822static long int longval () { return $2; }
2823static unsigned long int ulongval () { return $2; }
2824#include <stdio.h>
2825#include <stdlib.h>
2826int
2827main ()
2828{
2829
2830 FILE *f = fopen ("conftest.val", "w");
2831 if (! f)
2832 return 1;
2833 if (($2) < 0)
2834 {
2835 long int i = longval ();
2836 if (i != ($2))
2837 return 1;
2838 fprintf (f, "%ld", i);
2839 }
2840 else
2841 {
2842 unsigned long int i = ulongval ();
2843 if (i != ($2))
2844 return 1;
2845 fprintf (f, "%lu", i);
2846 }
2847 /* Do not output a trailing newline, as this causes \r\n confusion
2848 on some platforms. */
2849 return ferror (f) || fclose (f) != 0;
2850
2851 ;
2852 return 0;
2853}
2854_ACEOF
2855if ac_fn_c_try_run "$LINENO"; then :
2856 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2857else
2858 ac_retval=1
2859fi
2860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2861 conftest.$ac_objext conftest.beam conftest.$ac_ext
2862rm -f conftest.val
2863
2864 fi
2865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002866 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002867
2868} # ac_fn_c_compute_int
2869
2870# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2871# ---------------------------------------------------------
2872# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2873# the include files in INCLUDES and setting the cache variable VAR
2874# accordingly.
2875ac_fn_cxx_check_header_mongrel ()
2876{
2877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2878 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2880$as_echo_n "checking for $2... " >&6; }
2881if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2882 $as_echo_n "(cached) " >&6
2883fi
2884eval ac_res=\$$3
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2886$as_echo "$ac_res" >&6; }
2887else
2888 # Is the header compilable?
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2890$as_echo_n "checking $2 usability... " >&6; }
2891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892/* end confdefs.h. */
2893$4
2894#include <$2>
2895_ACEOF
2896if ac_fn_cxx_try_compile "$LINENO"; then :
2897 ac_header_compiler=yes
2898else
2899 ac_header_compiler=no
2900fi
2901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2903$as_echo "$ac_header_compiler" >&6; }
2904
2905# Is the header present?
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2907$as_echo_n "checking $2 presence... " >&6; }
2908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2909/* end confdefs.h. */
2910#include <$2>
2911_ACEOF
2912if ac_fn_cxx_try_cpp "$LINENO"; then :
2913 ac_header_preproc=yes
2914else
2915 ac_header_preproc=no
2916fi
2917rm -f conftest.err conftest.$ac_ext
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2919$as_echo "$ac_header_preproc" >&6; }
2920
2921# So? What about this header?
2922case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2923 yes:no: )
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2925$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2927$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2928 ;;
2929 no:yes:* )
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2931$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2933$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2935$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2937$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2939$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2940( cat <<\_ASBOX
2941## ----------------------------------------- ##
2942## Report this to http://www.imagemagick.org ##
2943## ----------------------------------------- ##
2944_ASBOX
2945 ) | sed "s/^/$as_me: WARNING: /" >&2
2946 ;;
2947esac
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2949$as_echo_n "checking for $2... " >&6; }
2950if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2951 $as_echo_n "(cached) " >&6
2952else
2953 eval "$3=\$ac_header_compiler"
2954fi
2955eval ac_res=\$$3
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2957$as_echo "$ac_res" >&6; }
2958fi
2959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2960
2961} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002962cat >config.log <<_ACEOF
2963This file contains any messages produced by compilers while
2964running configure, to aid debugging if configure makes a mistake.
2965
cristyb36feb22010-03-26 16:54:37 +00002966It was created by ImageMagick $as_me 6.6.1, which was
cristycd4c5312009-11-22 01:19:08 +00002967generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002968
2969 $ $0 $@
2970
2971_ACEOF
2972exec 5>>config.log
2973{
2974cat <<_ASUNAME
2975## --------- ##
2976## Platform. ##
2977## --------- ##
2978
2979hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2980uname -m = `(uname -m) 2>/dev/null || echo unknown`
2981uname -r = `(uname -r) 2>/dev/null || echo unknown`
2982uname -s = `(uname -s) 2>/dev/null || echo unknown`
2983uname -v = `(uname -v) 2>/dev/null || echo unknown`
2984
2985/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2986/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2987
2988/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2989/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2990/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2991/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2992/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2993/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2994/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2995
2996_ASUNAME
2997
2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH
3000do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003003 $as_echo "PATH: $as_dir"
3004 done
cristy3ed852e2009-09-05 21:47:34 +00003005IFS=$as_save_IFS
3006
3007} >&5
3008
3009cat >&5 <<_ACEOF
3010
3011
3012## ----------- ##
3013## Core tests. ##
3014## ----------- ##
3015
3016_ACEOF
3017
3018
3019# Keep a trace of the command line.
3020# Strip out --no-create and --no-recursion so they do not pile up.
3021# Strip out --silent because we don't want to record it for future runs.
3022# Also quote any args containing shell meta-characters.
3023# Make two passes to allow for proper duplicate-argument suppression.
3024ac_configure_args=
3025ac_configure_args0=
3026ac_configure_args1=
3027ac_must_keep_next=false
3028for ac_pass in 1 2
3029do
3030 for ac_arg
3031 do
3032 case $ac_arg in
3033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3035 | -silent | --silent | --silen | --sile | --sil)
3036 continue ;;
3037 *\'*)
3038 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3039 esac
3040 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003041 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003042 2)
cristy8b350f62009-11-15 23:12:43 +00003043 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003044 if test $ac_must_keep_next = true; then
3045 ac_must_keep_next=false # Got value, back to normal.
3046 else
3047 case $ac_arg in
3048 *=* | --config-cache | -C | -disable-* | --disable-* \
3049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3051 | -with-* | --with-* | -without-* | --without-* | --x)
3052 case "$ac_configure_args0 " in
3053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3054 esac
3055 ;;
3056 -* ) ac_must_keep_next=true ;;
3057 esac
3058 fi
cristy8b350f62009-11-15 23:12:43 +00003059 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003060 ;;
3061 esac
3062 done
3063done
cristy8b350f62009-11-15 23:12:43 +00003064{ ac_configure_args0=; unset ac_configure_args0;}
3065{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003066
3067# When interrupted or exit'd, cleanup temporary files, and complete
3068# config.log. We remove comments because anyway the quotes in there
3069# would cause problems or look ugly.
3070# WARNING: Use '\'' to represent an apostrophe within the trap.
3071# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3072trap 'exit_status=$?
3073 # Save into config.log some information that might help in debugging.
3074 {
3075 echo
3076
3077 cat <<\_ASBOX
3078## ---------------- ##
3079## Cache variables. ##
3080## ---------------- ##
3081_ASBOX
3082 echo
3083 # The following way of writing the cache mishandles newlines in values,
3084(
3085 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3086 eval ac_val=\$$ac_var
3087 case $ac_val in #(
3088 *${as_nl}*)
3089 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003090 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003091$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3092 esac
3093 case $ac_var in #(
3094 _ | IFS | as_nl) ;; #(
3095 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003096 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003097 esac ;;
3098 esac
3099 done
3100 (set) 2>&1 |
3101 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3102 *${as_nl}ac_space=\ *)
3103 sed -n \
3104 "s/'\''/'\''\\\\'\'''\''/g;
3105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3106 ;; #(
3107 *)
3108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3109 ;;
3110 esac |
3111 sort
3112)
3113 echo
3114
3115 cat <<\_ASBOX
3116## ----------------- ##
3117## Output variables. ##
3118## ----------------- ##
3119_ASBOX
3120 echo
3121 for ac_var in $ac_subst_vars
3122 do
3123 eval ac_val=\$$ac_var
3124 case $ac_val in
3125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3126 esac
3127 $as_echo "$ac_var='\''$ac_val'\''"
3128 done | sort
3129 echo
3130
3131 if test -n "$ac_subst_files"; then
3132 cat <<\_ASBOX
3133## ------------------- ##
3134## File substitutions. ##
3135## ------------------- ##
3136_ASBOX
3137 echo
3138 for ac_var in $ac_subst_files
3139 do
3140 eval ac_val=\$$ac_var
3141 case $ac_val in
3142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3143 esac
3144 $as_echo "$ac_var='\''$ac_val'\''"
3145 done | sort
3146 echo
3147 fi
3148
3149 if test -s confdefs.h; then
3150 cat <<\_ASBOX
3151## ----------- ##
3152## confdefs.h. ##
3153## ----------- ##
3154_ASBOX
3155 echo
3156 cat confdefs.h
3157 echo
3158 fi
3159 test "$ac_signal" != 0 &&
3160 $as_echo "$as_me: caught signal $ac_signal"
3161 $as_echo "$as_me: exit $exit_status"
3162 } >&5
3163 rm -f core *.core core.conftest.* &&
3164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3165 exit $exit_status
3166' 0
3167for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003169done
3170ac_signal=0
3171
3172# confdefs.h avoids OS command line length limits that DEFS can exceed.
3173rm -f -r conftest* confdefs.h
3174
cristy8b350f62009-11-15 23:12:43 +00003175$as_echo "/* confdefs.h */" > confdefs.h
3176
cristy3ed852e2009-09-05 21:47:34 +00003177# Predefined preprocessor variables.
3178
3179cat >>confdefs.h <<_ACEOF
3180#define PACKAGE_NAME "$PACKAGE_NAME"
3181_ACEOF
3182
cristy3ed852e2009-09-05 21:47:34 +00003183cat >>confdefs.h <<_ACEOF
3184#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3185_ACEOF
3186
cristy3ed852e2009-09-05 21:47:34 +00003187cat >>confdefs.h <<_ACEOF
3188#define PACKAGE_VERSION "$PACKAGE_VERSION"
3189_ACEOF
3190
cristy3ed852e2009-09-05 21:47:34 +00003191cat >>confdefs.h <<_ACEOF
3192#define PACKAGE_STRING "$PACKAGE_STRING"
3193_ACEOF
3194
cristy3ed852e2009-09-05 21:47:34 +00003195cat >>confdefs.h <<_ACEOF
3196#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3197_ACEOF
3198
cristy8b350f62009-11-15 23:12:43 +00003199cat >>confdefs.h <<_ACEOF
3200#define PACKAGE_URL "$PACKAGE_URL"
3201_ACEOF
3202
cristy3ed852e2009-09-05 21:47:34 +00003203
3204# Let the site file select an alternate cache file if it wants to.
3205# Prefer an explicitly selected file to automatically selected ones.
3206ac_site_file1=NONE
3207ac_site_file2=NONE
3208if test -n "$CONFIG_SITE"; then
3209 ac_site_file1=$CONFIG_SITE
3210elif test "x$prefix" != xNONE; then
3211 ac_site_file1=$prefix/share/config.site
3212 ac_site_file2=$prefix/etc/config.site
3213else
3214 ac_site_file1=$ac_default_prefix/share/config.site
3215 ac_site_file2=$ac_default_prefix/etc/config.site
3216fi
3217for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3218do
3219 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003220 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003221 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003222$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3223 sed 's/^/| /' "$ac_site_file" >&5
3224 . "$ac_site_file"
3225 fi
3226done
3227
3228if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003229 # Some versions of bash will fail to source /dev/null (special files
3230 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3231 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003233$as_echo "$as_me: loading cache $cache_file" >&6;}
3234 case $cache_file in
3235 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3236 *) . "./$cache_file";;
3237 esac
3238 fi
3239else
cristy8b350f62009-11-15 23:12:43 +00003240 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003241$as_echo "$as_me: creating cache $cache_file" >&6;}
3242 >$cache_file
3243fi
3244
cristycd4c5312009-11-22 01:19:08 +00003245as_fn_append ac_header_list " stdlib.h"
3246as_fn_append ac_header_list " unistd.h"
3247as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003248# Check that the precious variables saved in the cache have kept the same
3249# value.
3250ac_cache_corrupted=false
3251for ac_var in $ac_precious_vars; do
3252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3253 eval ac_new_set=\$ac_env_${ac_var}_set
3254 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3255 eval ac_new_val=\$ac_env_${ac_var}_value
3256 case $ac_old_set,$ac_new_set in
3257 set,)
cristy8b350f62009-11-15 23:12:43 +00003258 { $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 +00003259$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3260 ac_cache_corrupted=: ;;
3261 ,set)
cristy8b350f62009-11-15 23:12:43 +00003262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003263$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3264 ac_cache_corrupted=: ;;
3265 ,);;
3266 *)
3267 if test "x$ac_old_val" != "x$ac_new_val"; then
3268 # differences in whitespace do not lead to failure.
3269 ac_old_val_w=`echo x $ac_old_val`
3270 ac_new_val_w=`echo x $ac_new_val`
3271 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003273$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3274 ac_cache_corrupted=:
3275 else
cristy8b350f62009-11-15 23:12:43 +00003276 { $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 +00003277$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3278 eval $ac_var=\$ac_old_val
3279 fi
cristy8b350f62009-11-15 23:12:43 +00003280 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003281$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003282 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003283$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3284 fi;;
3285 esac
3286 # Pass precious variables to config.status.
3287 if test "$ac_new_set" = set; then
3288 case $ac_new_val in
3289 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3290 *) ac_arg=$ac_var=$ac_new_val ;;
3291 esac
3292 case " $ac_configure_args " in
3293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003294 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003295 esac
3296 fi
3297done
3298if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003302$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003303 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003304fi
cristy8b350f62009-11-15 23:12:43 +00003305## -------------------- ##
3306## Main body of script. ##
3307## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003308
3309ac_ext=c
3310ac_cpp='$CPP $CPPFLAGS'
3311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314
3315
3316
3317ac_aux_dir=
3318for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003319 for ac_t in install-sh install.sh shtool; do
3320 if test -f "$ac_dir/$ac_t"; then
3321 ac_aux_dir=$ac_dir
3322 ac_install_sh="$ac_aux_dir/$ac_t -c"
3323 break 2
3324 fi
3325 done
cristy3ed852e2009-09-05 21:47:34 +00003326done
3327if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003328 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003329fi
3330
3331# These three variables are undocumented and unsupported,
3332# and are intended to be withdrawn in a future Autoconf release.
3333# They can cause serious problems if a builder's source tree is in a directory
3334# whose full name contains unusual characters.
3335ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3336ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3337ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3338
3339
3340
3341
3342ac_config_headers="$ac_config_headers config/config.h"
3343
3344ac_config_commands="$ac_config_commands magick/magick-config.h"
3345
cristy430a7312010-01-21 20:44:04 +00003346ac_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 +00003347
3348
3349#
3350# Save initial user-tunable values
3351#
3352USER_LIBS=$LIBS
3353for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3354 eval isset=\${$var+set}
3355 if test "$isset" = 'set'; then
3356 eval val=$`echo $var`
3357 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3358 fi
3359done
3360
3361
3362CONFIGURE_ARGS="$0 ${ac_configure_args}"
3363
3364
3365# Source file containing package/library versioning information.
3366. ${srcdir}/version.sh
3367
cristy15a88782010-01-31 23:24:49 +00003368echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003369# Make sure we can run config.sub.
3370$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003371 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003372
cristy8b350f62009-11-15 23:12:43 +00003373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003374$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003375if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003376 $as_echo_n "(cached) " >&6
3377else
3378 ac_build_alias=$build_alias
3379test "x$ac_build_alias" = x &&
3380 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3381test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003382 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003383ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003384 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003385
3386fi
cristy8b350f62009-11-15 23:12:43 +00003387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003388$as_echo "$ac_cv_build" >&6; }
3389case $ac_cv_build in
3390*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003391*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003392esac
3393build=$ac_cv_build
3394ac_save_IFS=$IFS; IFS='-'
3395set x $ac_cv_build
3396shift
3397build_cpu=$1
3398build_vendor=$2
3399shift; shift
3400# Remember, the first character of IFS is used to create $*,
3401# except with old shells:
3402build_os=$*
3403IFS=$ac_save_IFS
3404case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3405
3406
cristy8b350f62009-11-15 23:12:43 +00003407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003408$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003409if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003410 $as_echo_n "(cached) " >&6
3411else
3412 if test "x$host_alias" = x; then
3413 ac_cv_host=$ac_cv_build
3414else
3415 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003416 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003417fi
3418
3419fi
cristy8b350f62009-11-15 23:12:43 +00003420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003421$as_echo "$ac_cv_host" >&6; }
3422case $ac_cv_host in
3423*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003424*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003425esac
3426host=$ac_cv_host
3427ac_save_IFS=$IFS; IFS='-'
3428set x $ac_cv_host
3429shift
3430host_cpu=$1
3431host_vendor=$2
3432shift; shift
3433# Remember, the first character of IFS is used to create $*,
3434# except with old shells:
3435host_os=$*
3436IFS=$ac_save_IFS
3437case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3438
3439
cristy8b350f62009-11-15 23:12:43 +00003440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003441$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003442if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003443 $as_echo_n "(cached) " >&6
3444else
3445 if test "x$target_alias" = x; then
3446 ac_cv_target=$ac_cv_host
3447else
3448 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003449 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003450fi
3451
3452fi
cristy8b350f62009-11-15 23:12:43 +00003453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003454$as_echo "$ac_cv_target" >&6; }
3455case $ac_cv_target in
3456*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003457*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003458esac
3459target=$ac_cv_target
3460ac_save_IFS=$IFS; IFS='-'
3461set x $ac_cv_target
3462shift
3463target_cpu=$1
3464target_vendor=$2
3465shift; shift
3466# Remember, the first character of IFS is used to create $*,
3467# except with old shells:
3468target_os=$*
3469IFS=$ac_save_IFS
3470case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3471
3472
3473# The aliases save the names the user supplied, while $host etc.
3474# will get canonicalized.
3475test -n "$target_alias" &&
3476 test "$program_prefix$program_suffix$program_transform_name" = \
3477 NONENONEs,x,x, &&
3478 program_prefix=${target_alias}-
3479
cristy837d6dc2010-02-27 01:16:57 +00003480
3481
3482
3483
cristy3225a072010-04-17 01:47:28 +00003484MAGICK_TARGET_CPU=$target_cpu
3485
3486
3487MAGICK_TARGET_VENDOR=$target_vendor
3488
3489
3490MAGICK_TARGET_OS=$target_os
3491
3492
cristy3ed852e2009-09-05 21:47:34 +00003493# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003494MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3495
3496MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3497
cristy3ed852e2009-09-05 21:47:34 +00003498
3499
3500# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003502$as_echo_n "checking whether build environment is sane... " >&6; }
3503# Just in case
3504sleep 1
3505echo timestamp > conftest.file
3506# Reject unsafe characters in $srcdir or the absolute working directory
3507# name. Accept space and tab only in the latter.
3508am_lf='
3509'
3510case `pwd` in
3511 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003512 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003513esac
3514case $srcdir in
3515 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003516 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003517esac
3518
3519# Do `set' in a subshell so we don't clobber the current shell's
3520# arguments. Must try -L first in case configure is actually a
3521# symlink; some systems play weird games with the mod time of symlinks
3522# (eg FreeBSD returns the mod time of the symlink's containing
3523# directory).
3524if (
3525 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3526 if test "$*" = "X"; then
3527 # -L didn't work.
3528 set X `ls -t "$srcdir/configure" conftest.file`
3529 fi
3530 rm -f conftest.file
3531 if test "$*" != "X $srcdir/configure conftest.file" \
3532 && test "$*" != "X conftest.file $srcdir/configure"; then
3533
3534 # If neither matched, then we have a broken ls. This can happen
3535 # if, for instance, CONFIG_SHELL is bash and it inherits a
3536 # broken ls alias from the environment. This has actually
3537 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003538 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3539alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003540 fi
3541
3542 test "$2" = conftest.file
3543 )
3544then
3545 # Ok.
3546 :
3547else
cristy8b350f62009-11-15 23:12:43 +00003548 as_fn_error "newly created file is older than distributed files!
3549Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003550fi
cristy8b350f62009-11-15 23:12:43 +00003551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003552$as_echo "yes" >&6; }
3553
3554am__api_version='1.11'
3555
3556# Find a good install program. We prefer a C program (faster),
3557# so one script is as good as another. But avoid the broken or
3558# incompatible versions:
3559# SysV /etc/install, /usr/sbin/install
3560# SunOS /usr/etc/install
3561# IRIX /sbin/install
3562# AIX /bin/install
3563# AmigaOS /C/install, which installs bootblocks on floppy discs
3564# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3565# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3566# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3567# OS/2's system install, which has a completely different semantic
3568# ./install, which can be erroneously created by make from ./install.sh.
3569# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003571$as_echo_n "checking for a BSD-compatible install... " >&6; }
3572if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003573if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003574 $as_echo_n "(cached) " >&6
3575else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577for as_dir in $PATH
3578do
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003581 # Account for people who put trailing slashes in PATH elements.
3582case $as_dir/ in #((
3583 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003584 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003585 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003586 /usr/ucb/* ) ;;
3587 *)
3588 # OSF1 and SCO ODT 3.0 have their own names for install.
3589 # Don't use installbsd from OSF since it installs stuff as root
3590 # by default.
3591 for ac_prog in ginstall scoinst install; do
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3594 if test $ac_prog = install &&
3595 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3596 # AIX install. It has an incompatible calling convention.
3597 :
3598 elif test $ac_prog = install &&
3599 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3600 # program-specific install script used by HP pwplus--don't use.
3601 :
3602 else
3603 rm -rf conftest.one conftest.two conftest.dir
3604 echo one > conftest.one
3605 echo two > conftest.two
3606 mkdir conftest.dir
3607 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3608 test -s conftest.one && test -s conftest.two &&
3609 test -s conftest.dir/conftest.one &&
3610 test -s conftest.dir/conftest.two
3611 then
3612 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3613 break 3
3614 fi
3615 fi
3616 fi
3617 done
3618 done
3619 ;;
3620esac
3621
cristy8b350f62009-11-15 23:12:43 +00003622 done
cristy3ed852e2009-09-05 21:47:34 +00003623IFS=$as_save_IFS
3624
3625rm -rf conftest.one conftest.two conftest.dir
3626
3627fi
3628 if test "${ac_cv_path_install+set}" = set; then
3629 INSTALL=$ac_cv_path_install
3630 else
3631 # As a last resort, use the slow shell script. Don't cache a
3632 # value for INSTALL within a source directory, because that will
3633 # break other packages using the cache if that directory is
3634 # removed, or if the value is a relative name.
3635 INSTALL=$ac_install_sh
3636 fi
3637fi
cristy8b350f62009-11-15 23:12:43 +00003638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003639$as_echo "$INSTALL" >&6; }
3640
3641# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3642# It thinks the first close brace ends the variable substitution.
3643test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3644
3645test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3646
3647test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3648
3649test "$program_prefix" != NONE &&
3650 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3651# Use a double $ so make ignores it.
3652test "$program_suffix" != NONE &&
3653 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3654# Double any \ or $.
3655# By default was `s,x,x', remove it if useless.
3656ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3657program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3658
3659# expand $ac_aux_dir to an absolute path
3660am_aux_dir=`cd $ac_aux_dir && pwd`
3661
3662if test x"${MISSING+set}" != xset; then
3663 case $am_aux_dir in
3664 *\ * | *\ *)
3665 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3666 *)
3667 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3668 esac
3669fi
3670# Use eval to expand $SHELL
3671if eval "$MISSING --run true"; then
3672 am_missing_run="$MISSING --run "
3673else
3674 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003676$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3677fi
3678
3679if test x"${install_sh}" != xset; then
3680 case $am_aux_dir in
3681 *\ * | *\ *)
3682 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3683 *)
3684 install_sh="\${SHELL} $am_aux_dir/install-sh"
3685 esac
3686fi
3687
3688# Installed binaries are usually stripped using `strip' when the user
3689# run `make install-strip'. However `strip' might not be the right
3690# tool to use in cross-compilation environments, therefore Automake
3691# will honor the `STRIP' environment variable to overrule this program.
3692if test "$cross_compiling" != no; then
3693 if test -n "$ac_tool_prefix"; then
3694 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3695set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003697$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003698if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003699 $as_echo_n "(cached) " >&6
3700else
3701 if test -n "$STRIP"; then
3702 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3703else
3704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705for as_dir in $PATH
3706do
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003709 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003713 break 2
3714 fi
3715done
cristy8b350f62009-11-15 23:12:43 +00003716 done
cristy3ed852e2009-09-05 21:47:34 +00003717IFS=$as_save_IFS
3718
3719fi
3720fi
3721STRIP=$ac_cv_prog_STRIP
3722if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003724$as_echo "$STRIP" >&6; }
3725else
cristy8b350f62009-11-15 23:12:43 +00003726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003727$as_echo "no" >&6; }
3728fi
3729
3730
3731fi
3732if test -z "$ac_cv_prog_STRIP"; then
3733 ac_ct_STRIP=$STRIP
3734 # Extract the first word of "strip", so it can be a program name with args.
3735set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003737$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003738if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003739 $as_echo_n "(cached) " >&6
3740else
3741 if test -n "$ac_ct_STRIP"; then
3742 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3743else
3744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745for as_dir in $PATH
3746do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003749 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003753 break 2
3754 fi
3755done
cristy8b350f62009-11-15 23:12:43 +00003756 done
cristy3ed852e2009-09-05 21:47:34 +00003757IFS=$as_save_IFS
3758
3759fi
3760fi
3761ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3762if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003764$as_echo "$ac_ct_STRIP" >&6; }
3765else
cristy8b350f62009-11-15 23:12:43 +00003766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003767$as_echo "no" >&6; }
3768fi
3769
3770 if test "x$ac_ct_STRIP" = x; then
3771 STRIP=":"
3772 else
3773 case $cross_compiling:$ac_tool_warned in
3774yes:)
cristy8b350f62009-11-15 23:12:43 +00003775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777ac_tool_warned=yes ;;
3778esac
3779 STRIP=$ac_ct_STRIP
3780 fi
3781else
3782 STRIP="$ac_cv_prog_STRIP"
3783fi
3784
3785fi
3786INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3787
cristy8b350f62009-11-15 23:12:43 +00003788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003789$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3790if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003791 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003792 $as_echo_n "(cached) " >&6
3793else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3796do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003799 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3802 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3803 'mkdir (GNU coreutils) '* | \
3804 'mkdir (coreutils) '* | \
3805 'mkdir (fileutils) '4.1*)
3806 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3807 break 3;;
3808 esac
3809 done
3810 done
cristy8b350f62009-11-15 23:12:43 +00003811 done
cristy3ed852e2009-09-05 21:47:34 +00003812IFS=$as_save_IFS
3813
3814fi
3815
cristycd4c5312009-11-22 01:19:08 +00003816 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003817 if test "${ac_cv_path_mkdir+set}" = set; then
3818 MKDIR_P="$ac_cv_path_mkdir -p"
3819 else
3820 # As a last resort, use the slow shell script. Don't cache a
3821 # value for MKDIR_P within a source directory, because that will
3822 # break other packages using the cache if that directory is
3823 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003824 MKDIR_P="$ac_install_sh -d"
3825 fi
3826fi
cristy8b350f62009-11-15 23:12:43 +00003827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003828$as_echo "$MKDIR_P" >&6; }
3829
3830mkdir_p="$MKDIR_P"
3831case $mkdir_p in
3832 [\\/$]* | ?:[\\/]*) ;;
3833 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3834esac
3835
3836for ac_prog in gawk mawk nawk awk
3837do
3838 # Extract the first word of "$ac_prog", so it can be a program name with args.
3839set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003841$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003842if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003843 $as_echo_n "(cached) " >&6
3844else
3845 if test -n "$AWK"; then
3846 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3847else
3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH
3850do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003853 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3855 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003857 break 2
3858 fi
3859done
cristy8b350f62009-11-15 23:12:43 +00003860 done
cristy3ed852e2009-09-05 21:47:34 +00003861IFS=$as_save_IFS
3862
3863fi
3864fi
3865AWK=$ac_cv_prog_AWK
3866if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003868$as_echo "$AWK" >&6; }
3869else
cristy8b350f62009-11-15 23:12:43 +00003870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003871$as_echo "no" >&6; }
3872fi
3873
3874
3875 test -n "$AWK" && break
3876done
3877
cristy8b350f62009-11-15 23:12:43 +00003878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003879$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3880set x ${MAKE-make}
3881ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003882if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003883 $as_echo_n "(cached) " >&6
3884else
3885 cat >conftest.make <<\_ACEOF
3886SHELL = /bin/sh
3887all:
3888 @echo '@@@%%%=$(MAKE)=@@@%%%'
3889_ACEOF
3890# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3891case `${MAKE-make} -f conftest.make 2>/dev/null` in
3892 *@@@%%%=?*=@@@%%%*)
3893 eval ac_cv_prog_make_${ac_make}_set=yes;;
3894 *)
3895 eval ac_cv_prog_make_${ac_make}_set=no;;
3896esac
3897rm -f conftest.make
3898fi
3899if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003901$as_echo "yes" >&6; }
3902 SET_MAKE=
3903else
cristy8b350f62009-11-15 23:12:43 +00003904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003905$as_echo "no" >&6; }
3906 SET_MAKE="MAKE=${MAKE-make}"
3907fi
3908
3909rm -rf .tst 2>/dev/null
3910mkdir .tst 2>/dev/null
3911if test -d .tst; then
3912 am__leading_dot=.
3913else
3914 am__leading_dot=_
3915fi
3916rmdir .tst 2>/dev/null
3917
3918if test "`cd $srcdir && pwd`" != "`pwd`"; then
3919 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3920 # is not polluted with repeated "-I."
3921 am__isrc=' -I$(srcdir)'
3922 # test to see if srcdir already configured
3923 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003924 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003925 fi
3926fi
3927
3928# test whether we have cygpath
3929if test -z "$CYGPATH_W"; then
3930 if (cygpath --version) >/dev/null 2>/dev/null; then
3931 CYGPATH_W='cygpath -w'
3932 else
3933 CYGPATH_W=echo
3934 fi
3935fi
3936
3937
3938# Define the identity of the package.
3939 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003940 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003941
3942
3943# Some tools Automake needs.
3944
3945ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3946
3947
3948AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3949
3950
3951AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3952
3953
3954AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3955
3956
3957MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3958
3959# We need awk for the "check" target. The system "awk" is bad on
3960# some platforms.
3961# Always define AMTAR for backward compatibility.
3962
3963AMTAR=${AMTAR-"${am_missing_run}tar"}
3964
3965am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3966
3967
3968
3969
3970
3971
3972# Enable support for silent build rules
3973# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003974if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003975 enableval=$enable_silent_rules;
3976fi
3977
3978case $enable_silent_rules in
3979yes) AM_DEFAULT_VERBOSITY=0;;
3980no) AM_DEFAULT_VERBOSITY=1;;
3981*) AM_DEFAULT_VERBOSITY=0;;
3982esac
3983AM_BACKSLASH='\'
3984
3985
3986MAGICK_LIB_VERSION="0x"
3987if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3988 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3989fi
3990MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3991if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3992 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3993fi
3994MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3995if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3996 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3997fi
3998MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3999
4000
4001# Definition used to define MagickLibVersionText in version.h
4002MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4003
4004
4005# Definition used to define MagickLibVersionNumber in version.h
4006MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4007
4008
4009# Regenerate config.status if ChangeLog or version.sh is updated.
4010CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4011
4012
4013PERLMAINCC=$CC
4014
4015MAGICK_CFLAGS=''
4016MAGICK_CPPFLAGS=$CPPFLAGS_USER
4017MAGICK_PCFLAGS=$CPPFLAGS_USER
4018MAGICK_LDFLAGS=''
4019MAGICK_LIBS=''
4020
4021#
4022# Evaluate shell variable equivalents to Makefile directory variables
4023#
4024if test "x$prefix" = xNONE; then
4025 prefix=$ac_default_prefix
4026fi
4027# Let make expand exec_prefix.
4028if test "x$exec_prefix" = xNONE; then
4029 exec_prefix='${prefix}'
4030fi
4031
4032#
4033eval "eval PREFIX_DIR=${prefix}"
4034
4035eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4036
4037eval "eval BIN_DIR=$bindir"
4038
4039eval "eval SBIN_DIR=$sbindir"
4040
4041eval "eval LIBEXEC_DIR=$libexecdir"
4042
4043eval "eval DATA_DIR=$datadir"
4044
4045eval "eval SYSCONF_DIR=$sysconfdir"
4046
4047eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4048
4049eval "eval LOCALSTATE_DIR=$localstatedir"
4050
4051eval "eval LIB_DIR=$libdir"
4052
4053eval "eval INCLUDE_DIR=$includedir"
4054
4055eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4056
4057eval "eval INFO_DIR=$infodir"
4058
4059eval "eval MAN_DIR=$mandir"
4060
4061
4062# Get full paths to source and build directories
4063srcdirfull="`cd $srcdir && pwd`"
4064builddir="`pwd`"
4065
4066#
4067# Compute variables useful for running uninstalled software.
4068#
4069MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4070MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4071MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4072MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4073DIRSEP=':'
4074case "${build_os}" in
4075 mingw* )
4076 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4077 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4078 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4079 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4080 DIRSEP=';'
4081 ;;
4082esac
4083case "${host_os}" in
4084 mingw* )
4085 DIRSEP=';'
4086 ;;
4087esac
4088
4089
4090
4091
4092
4093
cristya0b81c32010-01-22 02:54:33 +00004094
4095#
4096# Enable OS features.
4097#
4098DEPDIR="${am__leading_dot}deps"
4099
4100ac_config_commands="$ac_config_commands depfiles"
4101
4102
4103am_make=${MAKE-make}
4104cat > confinc << 'END'
4105am__doit:
4106 @echo this is the am__doit target
4107.PHONY: am__doit
4108END
4109# If we don't find an include directive, just comment out the code.
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4111$as_echo_n "checking for style of include used by $am_make... " >&6; }
4112am__include="#"
4113am__quote=
4114_am_result=none
4115# First try GNU make style include.
4116echo "include confinc" > confmf
4117# Ignore all kinds of additional output from `make'.
4118case `$am_make -s -f confmf 2> /dev/null` in #(
4119*the\ am__doit\ target*)
4120 am__include=include
4121 am__quote=
4122 _am_result=GNU
4123 ;;
4124esac
4125# Now try BSD make style include.
4126if test "$am__include" = "#"; then
4127 echo '.include "confinc"' > confmf
4128 case `$am_make -s -f confmf 2> /dev/null` in #(
4129 *the\ am__doit\ target*)
4130 am__include=.include
4131 am__quote="\""
4132 _am_result=BSD
4133 ;;
4134 esac
4135fi
4136
4137
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4139$as_echo "$_am_result" >&6; }
4140rm -f confinc confmf
4141
4142# Check whether --enable-dependency-tracking was given.
4143if test "${enable_dependency_tracking+set}" = set; then :
4144 enableval=$enable_dependency_tracking;
4145fi
4146
4147if test "x$enable_dependency_tracking" != xno; then
4148 am_depcomp="$ac_aux_dir/depcomp"
4149 AMDEPBACKSLASH='\'
4150fi
4151 if test "x$enable_dependency_tracking" != xno; then
4152 AMDEP_TRUE=
4153 AMDEP_FALSE='#'
4154else
4155 AMDEP_TRUE='#'
4156 AMDEP_FALSE=
4157fi
4158
4159
cristy3ed852e2009-09-05 21:47:34 +00004160ac_ext=c
4161ac_cpp='$CPP $CPPFLAGS'
4162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165if test -n "$ac_tool_prefix"; then
4166 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4167set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004169$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004170if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004171 $as_echo_n "(cached) " >&6
4172else
4173 if test -n "$CC"; then
4174 ac_cv_prog_CC="$CC" # Let the user override the test.
4175else
4176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH
4178do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004185 break 2
4186 fi
4187done
cristy8b350f62009-11-15 23:12:43 +00004188 done
cristy3ed852e2009-09-05 21:47:34 +00004189IFS=$as_save_IFS
4190
4191fi
4192fi
4193CC=$ac_cv_prog_CC
4194if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004196$as_echo "$CC" >&6; }
4197else
cristy8b350f62009-11-15 23:12:43 +00004198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004199$as_echo "no" >&6; }
4200fi
4201
4202
4203fi
4204if test -z "$ac_cv_prog_CC"; then
4205 ac_ct_CC=$CC
4206 # Extract the first word of "gcc", so it can be a program name with args.
4207set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004209$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004210if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004211 $as_echo_n "(cached) " >&6
4212else
4213 if test -n "$ac_ct_CC"; then
4214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4215else
4216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217for as_dir in $PATH
4218do
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004221 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004225 break 2
4226 fi
4227done
cristy8b350f62009-11-15 23:12:43 +00004228 done
cristy3ed852e2009-09-05 21:47:34 +00004229IFS=$as_save_IFS
4230
4231fi
4232fi
4233ac_ct_CC=$ac_cv_prog_ac_ct_CC
4234if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004236$as_echo "$ac_ct_CC" >&6; }
4237else
cristy8b350f62009-11-15 23:12:43 +00004238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004239$as_echo "no" >&6; }
4240fi
4241
4242 if test "x$ac_ct_CC" = x; then
4243 CC=""
4244 else
4245 case $cross_compiling:$ac_tool_warned in
4246yes:)
cristy8b350f62009-11-15 23:12:43 +00004247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4249ac_tool_warned=yes ;;
4250esac
4251 CC=$ac_ct_CC
4252 fi
4253else
4254 CC="$ac_cv_prog_CC"
4255fi
4256
4257if test -z "$CC"; then
4258 if test -n "$ac_tool_prefix"; then
4259 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4260set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004262$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004263if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004264 $as_echo_n "(cached) " >&6
4265else
4266 if test -n "$CC"; then
4267 ac_cv_prog_CC="$CC" # Let the user override the test.
4268else
4269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270for as_dir in $PATH
4271do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004278 break 2
4279 fi
4280done
cristy8b350f62009-11-15 23:12:43 +00004281 done
cristy3ed852e2009-09-05 21:47:34 +00004282IFS=$as_save_IFS
4283
4284fi
4285fi
4286CC=$ac_cv_prog_CC
4287if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004289$as_echo "$CC" >&6; }
4290else
cristy8b350f62009-11-15 23:12:43 +00004291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004292$as_echo "no" >&6; }
4293fi
4294
4295
4296 fi
4297fi
4298if test -z "$CC"; then
4299 # Extract the first word of "cc", so it can be a program name with args.
4300set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004302$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004303if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004304 $as_echo_n "(cached) " >&6
4305else
4306 if test -n "$CC"; then
4307 ac_cv_prog_CC="$CC" # Let the user override the test.
4308else
4309 ac_prog_rejected=no
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4318 ac_prog_rejected=yes
4319 continue
4320 fi
4321 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004323 break 2
4324 fi
4325done
cristy8b350f62009-11-15 23:12:43 +00004326 done
cristy3ed852e2009-09-05 21:47:34 +00004327IFS=$as_save_IFS
4328
4329if test $ac_prog_rejected = yes; then
4330 # We found a bogon in the path, so make sure we never use it.
4331 set dummy $ac_cv_prog_CC
4332 shift
4333 if test $# != 0; then
4334 # We chose a different compiler from the bogus one.
4335 # However, it has the same basename, so the bogon will be chosen
4336 # first if we set CC to just the basename; use the full file name.
4337 shift
4338 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4339 fi
4340fi
4341fi
4342fi
4343CC=$ac_cv_prog_CC
4344if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004346$as_echo "$CC" >&6; }
4347else
cristy8b350f62009-11-15 23:12:43 +00004348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004349$as_echo "no" >&6; }
4350fi
4351
4352
4353fi
4354if test -z "$CC"; then
4355 if test -n "$ac_tool_prefix"; then
4356 for ac_prog in cl.exe
4357 do
4358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4359set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004361$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004362if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004363 $as_echo_n "(cached) " >&6
4364else
4365 if test -n "$CC"; then
4366 ac_cv_prog_CC="$CC" # Let the user override the test.
4367else
4368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH
4370do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004373 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004377 break 2
4378 fi
4379done
cristy8b350f62009-11-15 23:12:43 +00004380 done
cristy3ed852e2009-09-05 21:47:34 +00004381IFS=$as_save_IFS
4382
4383fi
4384fi
4385CC=$ac_cv_prog_CC
4386if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004388$as_echo "$CC" >&6; }
4389else
cristy8b350f62009-11-15 23:12:43 +00004390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004391$as_echo "no" >&6; }
4392fi
4393
4394
4395 test -n "$CC" && break
4396 done
4397fi
4398if test -z "$CC"; then
4399 ac_ct_CC=$CC
4400 for ac_prog in cl.exe
4401do
4402 # Extract the first word of "$ac_prog", so it can be a program name with args.
4403set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004405$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004406if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004407 $as_echo_n "(cached) " >&6
4408else
4409 if test -n "$ac_ct_CC"; then
4410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4411else
4412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413for as_dir in $PATH
4414do
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004417 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004421 break 2
4422 fi
4423done
cristy8b350f62009-11-15 23:12:43 +00004424 done
cristy3ed852e2009-09-05 21:47:34 +00004425IFS=$as_save_IFS
4426
4427fi
4428fi
4429ac_ct_CC=$ac_cv_prog_ac_ct_CC
4430if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004432$as_echo "$ac_ct_CC" >&6; }
4433else
cristy8b350f62009-11-15 23:12:43 +00004434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004435$as_echo "no" >&6; }
4436fi
4437
4438
4439 test -n "$ac_ct_CC" && break
4440done
4441
4442 if test "x$ac_ct_CC" = x; then
4443 CC=""
4444 else
4445 case $cross_compiling:$ac_tool_warned in
4446yes:)
cristy8b350f62009-11-15 23:12:43 +00004447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4449ac_tool_warned=yes ;;
4450esac
4451 CC=$ac_ct_CC
4452 fi
4453fi
4454
4455fi
4456
4457
cristy8b350f62009-11-15 23:12:43 +00004458test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004460as_fn_error "no acceptable C compiler found in \$PATH
4461See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004462
4463# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004464$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004465set X $ac_compile
4466ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004467for ac_option in --version -v -V -qversion; do
4468 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004469case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472esac
cristy8b350f62009-11-15 23:12:43 +00004473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4474$as_echo "$ac_try_echo"; } >&5
4475 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004476 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004477 if test -s conftest.err; then
4478 sed '10a\
4479... rest of stderr output deleted ...
4480 10q' conftest.err >conftest.er1
4481 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004482 fi
cristycd4c5312009-11-22 01:19:08 +00004483 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4485 test $ac_status = 0; }
4486done
cristy3ed852e2009-09-05 21:47:34 +00004487
cristy8b350f62009-11-15 23:12:43 +00004488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004489/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004490
cristy3ed852e2009-09-05 21:47:34 +00004491int
4492main ()
4493{
4494
4495 ;
4496 return 0;
4497}
4498_ACEOF
4499ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004500ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004501# Try to create an executable without -o first, disregard a.out.
4502# It will help us diagnose broken compilers, and finding out an intuition
4503# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4505$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004506ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4507
4508# The possible output files:
4509ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4510
4511ac_rmfiles=
4512for ac_file in $ac_files
4513do
4514 case $ac_file in
4515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4516 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4517 esac
4518done
4519rm -f $ac_rmfiles
4520
cristy8b350f62009-11-15 23:12:43 +00004521if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004522case "(($ac_try" in
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4525esac
cristy8b350f62009-11-15 23:12:43 +00004526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4527$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004528 (eval "$ac_link_default") 2>&5
4529 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4531 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004532 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4533# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4534# in a Makefile. We should not override ac_cv_exeext if it was cached,
4535# so that the user can short-circuit this test for compilers unknown to
4536# Autoconf.
4537for ac_file in $ac_files ''
4538do
4539 test -f "$ac_file" || continue
4540 case $ac_file in
4541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4542 ;;
4543 [ab].out )
4544 # We found the default executable, but exeext='' is most
4545 # certainly right.
4546 break;;
4547 *.* )
cristy8b350f62009-11-15 23:12:43 +00004548 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004549 then :; else
4550 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4551 fi
4552 # We set ac_cv_exeext here because the later test for it is not
4553 # safe: cross compilers may not add the suffix if given an `-o'
4554 # argument, so we may need to know it at that point already.
4555 # Even if this section looks crufty: it has the advantage of
4556 # actually working.
4557 break;;
4558 * )
4559 break;;
4560 esac
4561done
4562test "$ac_cv_exeext" = no && ac_cv_exeext=
4563
4564else
4565 ac_file=''
4566fi
cristy8b350f62009-11-15 23:12:43 +00004567if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569$as_echo "no" >&6; }
4570$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004571sed 's/^/| /' conftest.$ac_ext >&5
4572
cristy8b350f62009-11-15 23:12:43 +00004573{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004575{ as_fn_set_status 77
4576as_fn_error "C compiler cannot create executables
4577See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004578else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4580$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004581fi
cristycd4c5312009-11-22 01:19:08 +00004582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4583$as_echo_n "checking for C compiler default output file name... " >&6; }
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4585$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004586ac_exeext=$ac_cv_exeext
4587
cristycd4c5312009-11-22 01:19:08 +00004588rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004589ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004591$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004592if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004593case "(($ac_try" in
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4596esac
cristy8b350f62009-11-15 23:12:43 +00004597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4598$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004599 (eval "$ac_link") 2>&5
4600 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4602 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4604# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4605# work properly (i.e., refer to `conftest.exe'), while it won't with
4606# `rm'.
4607for ac_file in conftest.exe conftest conftest.*; do
4608 test -f "$ac_file" || continue
4609 case $ac_file in
4610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4612 break;;
4613 * ) break;;
4614 esac
4615done
4616else
cristy8b350f62009-11-15 23:12:43 +00004617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004619as_fn_error "cannot compute suffix of executables: cannot compile and link
4620See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004621fi
cristycd4c5312009-11-22 01:19:08 +00004622rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004624$as_echo "$ac_cv_exeext" >&6; }
4625
4626rm -f conftest.$ac_ext
4627EXEEXT=$ac_cv_exeext
4628ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630/* end confdefs.h. */
4631#include <stdio.h>
4632int
4633main ()
4634{
4635FILE *f = fopen ("conftest.out", "w");
4636 return ferror (f) || fclose (f) != 0;
4637
4638 ;
4639 return 0;
4640}
4641_ACEOF
4642ac_clean_files="$ac_clean_files conftest.out"
4643# Check that the compiler produces executables we can run. If not, either
4644# the compiler is broken, or we cross compile.
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4646$as_echo_n "checking whether we are cross compiling... " >&6; }
4647if test "$cross_compiling" != yes; then
4648 { { ac_try="$ac_link"
4649case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652esac
4653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4654$as_echo "$ac_try_echo"; } >&5
4655 (eval "$ac_link") 2>&5
4656 ac_status=$?
4657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; }
4659 if { ac_try='./conftest$ac_cv_exeext'
4660 { { case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4663esac
4664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4665$as_echo "$ac_try_echo"; } >&5
4666 (eval "$ac_try") 2>&5
4667 ac_status=$?
4668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4669 test $ac_status = 0; }; }; then
4670 cross_compiling=no
4671 else
4672 if test "$cross_compiling" = maybe; then
4673 cross_compiling=yes
4674 else
4675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4677as_fn_error "cannot run C compiled programs.
4678If you meant to cross compile, use \`--host'.
4679See \`config.log' for more details." "$LINENO" 5; }
4680 fi
4681 fi
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4684$as_echo "$cross_compiling" >&6; }
4685
4686rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4687ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004689$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004690if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004691 $as_echo_n "(cached) " >&6
4692else
cristy8b350f62009-11-15 23:12:43 +00004693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004694/* end confdefs.h. */
4695
4696int
4697main ()
4698{
4699
4700 ;
4701 return 0;
4702}
4703_ACEOF
4704rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004705if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004706case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709esac
cristy8b350f62009-11-15 23:12:43 +00004710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4711$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004712 (eval "$ac_compile") 2>&5
4713 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004716 for ac_file in conftest.o conftest.obj conftest.*; do
4717 test -f "$ac_file" || continue;
4718 case $ac_file in
4719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4721 break;;
4722 esac
4723done
4724else
4725 $as_echo "$as_me: failed program was:" >&5
4726sed 's/^/| /' conftest.$ac_ext >&5
4727
cristy8b350f62009-11-15 23:12:43 +00004728{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004730as_fn_error "cannot compute suffix of object files: cannot compile
4731See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004732fi
cristy3ed852e2009-09-05 21:47:34 +00004733rm -f conftest.$ac_cv_objext conftest.$ac_ext
4734fi
cristy8b350f62009-11-15 23:12:43 +00004735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004736$as_echo "$ac_cv_objext" >&6; }
4737OBJEXT=$ac_cv_objext
4738ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004740$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004741if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004742 $as_echo_n "(cached) " >&6
4743else
cristy8b350f62009-11-15 23:12:43 +00004744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004745/* end confdefs.h. */
4746
4747int
4748main ()
4749{
4750#ifndef __GNUC__
4751 choke me
4752#endif
4753
4754 ;
4755 return 0;
4756}
4757_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004758if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004759 ac_compiler_gnu=yes
4760else
cristy8b350f62009-11-15 23:12:43 +00004761 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004762fi
cristy3ed852e2009-09-05 21:47:34 +00004763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764ac_cv_c_compiler_gnu=$ac_compiler_gnu
4765
4766fi
cristy8b350f62009-11-15 23:12:43 +00004767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004768$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4769if test $ac_compiler_gnu = yes; then
4770 GCC=yes
4771else
4772 GCC=
4773fi
4774ac_test_CFLAGS=${CFLAGS+set}
4775ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004777$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004778if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004779 $as_echo_n "(cached) " >&6
4780else
4781 ac_save_c_werror_flag=$ac_c_werror_flag
4782 ac_c_werror_flag=yes
4783 ac_cv_prog_cc_g=no
4784 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004785 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 ac_cv_prog_cc_g=yes
4798else
cristy8b350f62009-11-15 23:12:43 +00004799 CFLAGS=""
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004801/* end confdefs.h. */
4802
4803int
4804main ()
4805{
4806
4807 ;
4808 return 0;
4809}
4810_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004811if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004812
cristy8b350f62009-11-15 23:12:43 +00004813else
4814 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004815 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004817/* end confdefs.h. */
4818
4819int
4820main ()
4821{
4822
4823 ;
4824 return 0;
4825}
4826_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004827if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004828 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004829fi
cristy3ed852e2009-09-05 21:47:34 +00004830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831fi
cristy3ed852e2009-09-05 21:47:34 +00004832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833fi
cristy3ed852e2009-09-05 21:47:34 +00004834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 ac_c_werror_flag=$ac_save_c_werror_flag
4836fi
cristy8b350f62009-11-15 23:12:43 +00004837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004838$as_echo "$ac_cv_prog_cc_g" >&6; }
4839if test "$ac_test_CFLAGS" = set; then
4840 CFLAGS=$ac_save_CFLAGS
4841elif test $ac_cv_prog_cc_g = yes; then
4842 if test "$GCC" = yes; then
4843 CFLAGS="-g -O2"
4844 else
4845 CFLAGS="-g"
4846 fi
4847else
4848 if test "$GCC" = yes; then
4849 CFLAGS="-O2"
4850 else
4851 CFLAGS=
4852 fi
4853fi
cristy8b350f62009-11-15 23:12:43 +00004854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004855$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004856if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004857 $as_echo_n "(cached) " >&6
4858else
4859 ac_cv_prog_cc_c89=no
4860ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004862/* end confdefs.h. */
4863#include <stdarg.h>
4864#include <stdio.h>
4865#include <sys/types.h>
4866#include <sys/stat.h>
4867/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4868struct buf { int x; };
4869FILE * (*rcsopen) (struct buf *, struct stat *, int);
4870static char *e (p, i)
4871 char **p;
4872 int i;
4873{
4874 return p[i];
4875}
4876static char *f (char * (*g) (char **, int), char **p, ...)
4877{
4878 char *s;
4879 va_list v;
4880 va_start (v,p);
4881 s = g (p, va_arg (v,int));
4882 va_end (v);
4883 return s;
4884}
4885
4886/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4887 function prototypes and stuff, but not '\xHH' hex character constants.
4888 These don't provoke an error unfortunately, instead are silently treated
4889 as 'x'. The following induces an error, until -std is added to get
4890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4891 array size at least. It's necessary to write '\x00'==0 to get something
4892 that's true only with -std. */
4893int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4894
4895/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4896 inside strings and character constants. */
4897#define FOO(x) 'x'
4898int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4899
4900int test (int i, double x);
4901struct s1 {int (*f) (int a);};
4902struct s2 {int (*f) (double a);};
4903int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4904int argc;
4905char **argv;
4906int
4907main ()
4908{
4909return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4910 ;
4911 return 0;
4912}
4913_ACEOF
4914for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4915 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4916do
4917 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004918 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004919 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004920fi
cristy3ed852e2009-09-05 21:47:34 +00004921rm -f core conftest.err conftest.$ac_objext
4922 test "x$ac_cv_prog_cc_c89" != "xno" && break
4923done
4924rm -f conftest.$ac_ext
4925CC=$ac_save_CC
4926
4927fi
4928# AC_CACHE_VAL
4929case "x$ac_cv_prog_cc_c89" in
4930 x)
cristy8b350f62009-11-15 23:12:43 +00004931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004932$as_echo "none needed" >&6; } ;;
4933 xno)
cristy8b350f62009-11-15 23:12:43 +00004934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004935$as_echo "unsupported" >&6; } ;;
4936 *)
4937 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004939$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4940esac
cristy8b350f62009-11-15 23:12:43 +00004941if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004942
cristy8b350f62009-11-15 23:12:43 +00004943fi
cristy3ed852e2009-09-05 21:47:34 +00004944
4945ac_ext=c
4946ac_cpp='$CPP $CPPFLAGS'
4947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004950
cristya0b81c32010-01-22 02:54:33 +00004951depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00004952
cristya0b81c32010-01-22 02:54:33 +00004953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4954$as_echo_n "checking dependency style of $depcc... " >&6; }
4955if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00004957else
cristya0b81c32010-01-22 02:54:33 +00004958 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4959 # We make a subdir and do the tests there. Otherwise we can end up
4960 # making bogus files that we don't know about and never remove. For
4961 # instance it was reported that on HP-UX the gcc test will end up
4962 # making a dummy file named `D' -- because `-MD' means `put the output
4963 # in D'.
4964 mkdir conftest.dir
4965 # Copy depcomp to subdir because otherwise we won't find it if we're
4966 # using a relative directory.
4967 cp "$am_depcomp" conftest.dir
4968 cd conftest.dir
4969 # We will build objects and dependencies in a subdirectory because
4970 # it helps to detect inapplicable dependency modes. For instance
4971 # both Tru64's cc and ICC support -MD to output dependencies as a
4972 # side effect of compilation, but ICC will put the dependencies in
4973 # the current directory while Tru64 will put them in the object
4974 # directory.
4975 mkdir sub
4976
4977 am_cv_CC_dependencies_compiler_type=none
4978 if test "$am_compiler_list" = ""; then
4979 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4980 fi
4981 am__universal=false
4982 case " $depcc " in #(
4983 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4984 esac
4985
4986 for depmode in $am_compiler_list; do
4987 # Setup a source with many dependencies, because some compilers
4988 # like to wrap large dependency lists on column 80 (with \), and
4989 # we should not choose a depcomp mode which is confused by this.
4990 #
4991 # We need to recreate these files for each test, as the compiler may
4992 # overwrite some of them when testing with obscure command lines.
4993 # This happens at least with the AIX C compiler.
4994 : > sub/conftest.c
4995 for i in 1 2 3 4 5 6; do
4996 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4997 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4998 # Solaris 8's {/usr,}/bin/sh.
4999 touch sub/conftst$i.h
5000 done
5001 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5002
5003 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5004 # mode. It turns out that the SunPro C++ compiler does not properly
5005 # handle `-M -o', and we need to detect this. Also, some Intel
5006 # versions had trouble with output in subdirs
5007 am__obj=sub/conftest.${OBJEXT-o}
5008 am__minus_obj="-o $am__obj"
5009 case $depmode in
5010 gcc)
5011 # This depmode causes a compiler race in universal mode.
5012 test "$am__universal" = false || continue
5013 ;;
5014 nosideeffect)
5015 # after this tag, mechanisms are not by side-effect, so they'll
5016 # only be used when explicitly requested
5017 if test "x$enable_dependency_tracking" = xyes; then
5018 continue
5019 else
5020 break
5021 fi
5022 ;;
5023 msvisualcpp | msvcmsys)
5024 # This compiler won't grok `-c -o', but also, the minuso test has
5025 # not run yet. These depmodes are late enough in the game, and
5026 # so weak that their functioning should not be impacted.
5027 am__obj=conftest.${OBJEXT-o}
5028 am__minus_obj=
5029 ;;
5030 none) break ;;
5031 esac
5032 if depmode=$depmode \
5033 source=sub/conftest.c object=$am__obj \
5034 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5035 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5036 >/dev/null 2>conftest.err &&
5037 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5038 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5039 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5040 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5041 # icc doesn't choke on unknown options, it will just issue warnings
5042 # or remarks (even with -Werror). So we grep stderr for any message
5043 # that says an option was ignored or not supported.
5044 # When given -MP, icc 7.0 and 7.1 complain thusly:
5045 # icc: Command line warning: ignoring option '-M'; no argument required
5046 # The diagnosis changed in icc 8.0:
5047 # icc: Command line remark: option '-MP' not supported
5048 if (grep 'ignoring option' conftest.err ||
5049 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5050 am_cv_CC_dependencies_compiler_type=$depmode
5051 break
5052 fi
5053 fi
5054 done
5055
5056 cd ..
5057 rm -rf conftest.dir
5058else
5059 am_cv_CC_dependencies_compiler_type=none
5060fi
5061
5062fi
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5064$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5065CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5066
5067 if
5068 test "x$enable_dependency_tracking" != xno \
5069 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5070 am__fastdepCC_TRUE=
5071 am__fastdepCC_FALSE='#'
5072else
5073 am__fastdepCC_TRUE='#'
5074 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005075fi
5076
5077
5078
cristya0b81c32010-01-22 02:54:33 +00005079ac_ext=c
5080ac_cpp='$CPP $CPPFLAGS'
5081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5085$as_echo_n "checking how to run the C preprocessor... " >&6; }
5086# On Suns, sometimes $CPP names a directory.
5087if test -n "$CPP" && test -d "$CPP"; then
5088 CPP=
5089fi
5090if test -z "$CPP"; then
5091 if test "${ac_cv_prog_CPP+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093else
5094 # Double quotes because CPP needs to be expanded
5095 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5096 do
5097 ac_preproc_ok=false
5098for ac_c_preproc_warn_flag in '' yes
5099do
5100 # Use a header file that comes with gcc, so configuring glibc
5101 # with a fresh cross-compiler works.
5102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103 # <limits.h> exists even on freestanding compilers.
5104 # On the NeXT, cc -E runs the code through the compiler's parser,
5105 # not just through cpp. "Syntax error" is here to catch this case.
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107/* end confdefs.h. */
5108#ifdef __STDC__
5109# include <limits.h>
5110#else
5111# include <assert.h>
5112#endif
5113 Syntax error
5114_ACEOF
5115if ac_fn_c_try_cpp "$LINENO"; then :
5116
5117else
5118 # Broken: fails on valid input.
5119continue
5120fi
5121rm -f conftest.err conftest.$ac_ext
5122
5123 # OK, works on sane cases. Now check whether nonexistent headers
5124 # can be detected and how.
5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126/* end confdefs.h. */
5127#include <ac_nonexistent.h>
5128_ACEOF
5129if ac_fn_c_try_cpp "$LINENO"; then :
5130 # Broken: success on invalid input.
5131continue
5132else
5133 # Passes both tests.
5134ac_preproc_ok=:
5135break
5136fi
5137rm -f conftest.err conftest.$ac_ext
5138
5139done
5140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141rm -f conftest.err conftest.$ac_ext
5142if $ac_preproc_ok; then :
5143 break
5144fi
5145
5146 done
5147 ac_cv_prog_CPP=$CPP
5148
5149fi
5150 CPP=$ac_cv_prog_CPP
5151else
5152 ac_cv_prog_CPP=$CPP
5153fi
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5155$as_echo "$CPP" >&6; }
5156ac_preproc_ok=false
5157for ac_c_preproc_warn_flag in '' yes
5158do
5159 # Use a header file that comes with gcc, so configuring glibc
5160 # with a fresh cross-compiler works.
5161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 # <limits.h> exists even on freestanding compilers.
5163 # On the NeXT, cc -E runs the code through the compiler's parser,
5164 # not just through cpp. "Syntax error" is here to catch this case.
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166/* end confdefs.h. */
5167#ifdef __STDC__
5168# include <limits.h>
5169#else
5170# include <assert.h>
5171#endif
5172 Syntax error
5173_ACEOF
5174if ac_fn_c_try_cpp "$LINENO"; then :
5175
5176else
5177 # Broken: fails on valid input.
5178continue
5179fi
5180rm -f conftest.err conftest.$ac_ext
5181
5182 # OK, works on sane cases. Now check whether nonexistent headers
5183 # can be detected and how.
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185/* end confdefs.h. */
5186#include <ac_nonexistent.h>
5187_ACEOF
5188if ac_fn_c_try_cpp "$LINENO"; then :
5189 # Broken: success on invalid input.
5190continue
5191else
5192 # Passes both tests.
5193ac_preproc_ok=:
5194break
5195fi
5196rm -f conftest.err conftest.$ac_ext
5197
5198done
5199# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5200rm -f conftest.err conftest.$ac_ext
5201if $ac_preproc_ok; then :
5202
5203else
5204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5206as_fn_error "C preprocessor \"$CPP\" fails sanity check
5207See \`config.log' for more details." "$LINENO" 5; }
5208fi
5209
5210ac_ext=c
5211ac_cpp='$CPP $CPPFLAGS'
5212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214ac_compiler_gnu=$ac_cv_c_compiler_gnu
5215
5216
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5218$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5219if test "${ac_cv_path_GREP+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5221else
5222 if test -z "$GREP"; then
5223 ac_path_GREP_found=false
5224 # Loop through the user's path and test for each of PROGNAME-LIST
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5227do
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_prog in grep ggrep; do
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5233 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5234# Check for GNU ac_path_GREP and select it if it is found.
5235 # Check for GNU $ac_path_GREP
5236case `"$ac_path_GREP" --version 2>&1` in
5237*GNU*)
5238 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5239*)
5240 ac_count=0
5241 $as_echo_n 0123456789 >"conftest.in"
5242 while :
5243 do
5244 cat "conftest.in" "conftest.in" >"conftest.tmp"
5245 mv "conftest.tmp" "conftest.in"
5246 cp "conftest.in" "conftest.nl"
5247 $as_echo 'GREP' >> "conftest.nl"
5248 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5250 as_fn_arith $ac_count + 1 && ac_count=$as_val
5251 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5252 # Best one so far, save it but keep looking for a better one
5253 ac_cv_path_GREP="$ac_path_GREP"
5254 ac_path_GREP_max=$ac_count
5255 fi
5256 # 10*(2^10) chars as input seems more than enough
5257 test $ac_count -gt 10 && break
5258 done
5259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5260esac
5261
5262 $ac_path_GREP_found && break 3
5263 done
5264 done
5265 done
5266IFS=$as_save_IFS
5267 if test -z "$ac_cv_path_GREP"; then
5268 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5269 fi
5270else
5271 ac_cv_path_GREP=$GREP
5272fi
5273
5274fi
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5276$as_echo "$ac_cv_path_GREP" >&6; }
5277 GREP="$ac_cv_path_GREP"
5278
5279
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5281$as_echo_n "checking for egrep... " >&6; }
5282if test "${ac_cv_path_EGREP+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5284else
5285 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5286 then ac_cv_path_EGREP="$GREP -E"
5287 else
5288 if test -z "$EGREP"; then
5289 ac_path_EGREP_found=false
5290 # Loop through the user's path and test for each of PROGNAME-LIST
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5293do
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_prog in egrep; do
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5299 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5300# Check for GNU ac_path_EGREP and select it if it is found.
5301 # Check for GNU $ac_path_EGREP
5302case `"$ac_path_EGREP" --version 2>&1` in
5303*GNU*)
5304 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5305*)
5306 ac_count=0
5307 $as_echo_n 0123456789 >"conftest.in"
5308 while :
5309 do
5310 cat "conftest.in" "conftest.in" >"conftest.tmp"
5311 mv "conftest.tmp" "conftest.in"
5312 cp "conftest.in" "conftest.nl"
5313 $as_echo 'EGREP' >> "conftest.nl"
5314 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5316 as_fn_arith $ac_count + 1 && ac_count=$as_val
5317 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5318 # Best one so far, save it but keep looking for a better one
5319 ac_cv_path_EGREP="$ac_path_EGREP"
5320 ac_path_EGREP_max=$ac_count
5321 fi
5322 # 10*(2^10) chars as input seems more than enough
5323 test $ac_count -gt 10 && break
5324 done
5325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5326esac
5327
5328 $ac_path_EGREP_found && break 3
5329 done
5330 done
5331 done
5332IFS=$as_save_IFS
5333 if test -z "$ac_cv_path_EGREP"; then
5334 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5335 fi
5336else
5337 ac_cv_path_EGREP=$EGREP
5338fi
5339
5340 fi
5341fi
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5343$as_echo "$ac_cv_path_EGREP" >&6; }
5344 EGREP="$ac_cv_path_EGREP"
5345
5346
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5348$as_echo_n "checking for ANSI C header files... " >&6; }
5349if test "${ac_cv_header_stdc+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5351else
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h. */
5354#include <stdlib.h>
5355#include <stdarg.h>
5356#include <string.h>
5357#include <float.h>
5358
5359int
5360main ()
5361{
5362
5363 ;
5364 return 0;
5365}
5366_ACEOF
5367if ac_fn_c_try_compile "$LINENO"; then :
5368 ac_cv_header_stdc=yes
5369else
5370 ac_cv_header_stdc=no
5371fi
5372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373
5374if test $ac_cv_header_stdc = yes; then
5375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h. */
5378#include <string.h>
5379
5380_ACEOF
5381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5382 $EGREP "memchr" >/dev/null 2>&1; then :
5383
5384else
5385 ac_cv_header_stdc=no
5386fi
5387rm -f conftest*
5388
5389fi
5390
5391if test $ac_cv_header_stdc = yes; then
5392 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394/* end confdefs.h. */
5395#include <stdlib.h>
5396
5397_ACEOF
5398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "free" >/dev/null 2>&1; then :
5400
5401else
5402 ac_cv_header_stdc=no
5403fi
5404rm -f conftest*
5405
5406fi
5407
5408if test $ac_cv_header_stdc = yes; then
5409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5410 if test "$cross_compiling" = yes; then :
5411 :
5412else
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414/* end confdefs.h. */
5415#include <ctype.h>
5416#include <stdlib.h>
5417#if ((' ' & 0x0FF) == 0x020)
5418# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5419# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5420#else
5421# define ISLOWER(c) \
5422 (('a' <= (c) && (c) <= 'i') \
5423 || ('j' <= (c) && (c) <= 'r') \
5424 || ('s' <= (c) && (c) <= 'z'))
5425# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5426#endif
5427
5428#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5429int
5430main ()
5431{
5432 int i;
5433 for (i = 0; i < 256; i++)
5434 if (XOR (islower (i), ISLOWER (i))
5435 || toupper (i) != TOUPPER (i))
5436 return 2;
5437 return 0;
5438}
5439_ACEOF
5440if ac_fn_c_try_run "$LINENO"; then :
5441
5442else
5443 ac_cv_header_stdc=no
5444fi
5445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5446 conftest.$ac_objext conftest.beam conftest.$ac_ext
5447fi
5448
5449fi
5450fi
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5452$as_echo "$ac_cv_header_stdc" >&6; }
5453if test $ac_cv_header_stdc = yes; then
5454
5455$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5456
5457fi
5458
5459# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5460for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5461 inttypes.h stdint.h unistd.h
5462do :
5463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5464ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5465"
5466eval as_val=\$$as_ac_Header
5467 if test "x$as_val" = x""yes; then :
5468 cat >>confdefs.h <<_ACEOF
5469#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5470_ACEOF
5471
5472fi
5473
5474done
5475
5476
5477
5478 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5479if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5480 MINIX=yes
5481else
5482 MINIX=
5483fi
5484
5485
5486 if test "$MINIX" = yes; then
5487
5488$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5489
5490
5491$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5492
5493
5494$as_echo "#define _MINIX 1" >>confdefs.h
5495
5496 fi
5497
5498
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5500$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5501if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5503else
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505/* end confdefs.h. */
5506
5507# define __EXTENSIONS__ 1
5508 $ac_includes_default
5509int
5510main ()
5511{
5512
5513 ;
5514 return 0;
5515}
5516_ACEOF
5517if ac_fn_c_try_compile "$LINENO"; then :
5518 ac_cv_safe_to_define___extensions__=yes
5519else
5520 ac_cv_safe_to_define___extensions__=no
5521fi
5522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523fi
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5525$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5526 test $ac_cv_safe_to_define___extensions__ = yes &&
5527 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5528
5529 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5530
5531 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5532
5533 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5534
5535 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5536
5537
5538
5539# Check for programs
5540ac_ext=c
5541ac_cpp='$CPP $CPPFLAGS'
5542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544ac_compiler_gnu=$ac_cv_c_compiler_gnu
5545if test -n "$ac_tool_prefix"; then
5546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5547set dummy ${ac_tool_prefix}gcc; ac_word=$2
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549$as_echo_n "checking for $ac_word... " >&6; }
5550if test "${ac_cv_prog_CC+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5552else
5553 if test -n "$CC"; then
5554 ac_cv_prog_CC="$CC" # Let the user override the test.
5555else
5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567done
5568 done
5569IFS=$as_save_IFS
5570
5571fi
5572fi
5573CC=$ac_cv_prog_CC
5574if test -n "$CC"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5576$as_echo "$CC" >&6; }
5577else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579$as_echo "no" >&6; }
5580fi
5581
5582
5583fi
5584if test -z "$ac_cv_prog_CC"; then
5585 ac_ct_CC=$CC
5586 # Extract the first word of "gcc", so it can be a program name with args.
5587set dummy gcc; ac_word=$2
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589$as_echo_n "checking for $ac_word... " >&6; }
5590if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5592else
5593 if test -n "$ac_ct_CC"; then
5594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5595else
5596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597for as_dir in $PATH
5598do
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603 ac_cv_prog_ac_ct_CC="gcc"
5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 break 2
5606 fi
5607done
5608 done
5609IFS=$as_save_IFS
5610
5611fi
5612fi
5613ac_ct_CC=$ac_cv_prog_ac_ct_CC
5614if test -n "$ac_ct_CC"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5616$as_echo "$ac_ct_CC" >&6; }
5617else
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619$as_echo "no" >&6; }
5620fi
5621
5622 if test "x$ac_ct_CC" = x; then
5623 CC=""
5624 else
5625 case $cross_compiling:$ac_tool_warned in
5626yes:)
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5629ac_tool_warned=yes ;;
5630esac
5631 CC=$ac_ct_CC
5632 fi
5633else
5634 CC="$ac_cv_prog_CC"
5635fi
5636
5637if test -z "$CC"; then
5638 if test -n "$ac_tool_prefix"; then
5639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5640set dummy ${ac_tool_prefix}cc; ac_word=$2
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642$as_echo_n "checking for $ac_word... " >&6; }
5643if test "${ac_cv_prog_CC+set}" = set; then :
5644 $as_echo_n "(cached) " >&6
5645else
5646 if test -n "$CC"; then
5647 ac_cv_prog_CC="$CC" # Let the user override the test.
5648else
5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5656 ac_cv_prog_CC="${ac_tool_prefix}cc"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660done
5661 done
5662IFS=$as_save_IFS
5663
5664fi
5665fi
5666CC=$ac_cv_prog_CC
5667if test -n "$CC"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5669$as_echo "$CC" >&6; }
5670else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672$as_echo "no" >&6; }
5673fi
5674
5675
5676 fi
5677fi
5678if test -z "$CC"; then
5679 # Extract the first word of "cc", so it can be a program name with args.
5680set dummy cc; ac_word=$2
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682$as_echo_n "checking for $ac_word... " >&6; }
5683if test "${ac_cv_prog_CC+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
5685else
5686 if test -n "$CC"; then
5687 ac_cv_prog_CC="$CC" # Let the user override the test.
5688else
5689 ac_prog_rejected=no
5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691for as_dir in $PATH
5692do
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5698 ac_prog_rejected=yes
5699 continue
5700 fi
5701 ac_cv_prog_CC="cc"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
5705done
5706 done
5707IFS=$as_save_IFS
5708
5709if test $ac_prog_rejected = yes; then
5710 # We found a bogon in the path, so make sure we never use it.
5711 set dummy $ac_cv_prog_CC
5712 shift
5713 if test $# != 0; then
5714 # We chose a different compiler from the bogus one.
5715 # However, it has the same basename, so the bogon will be chosen
5716 # first if we set CC to just the basename; use the full file name.
5717 shift
5718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5719 fi
5720fi
5721fi
5722fi
5723CC=$ac_cv_prog_CC
5724if test -n "$CC"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5726$as_echo "$CC" >&6; }
5727else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729$as_echo "no" >&6; }
5730fi
5731
5732
5733fi
5734if test -z "$CC"; then
5735 if test -n "$ac_tool_prefix"; then
5736 for ac_prog in cl.exe
5737 do
5738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5739set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741$as_echo_n "checking for $ac_word... " >&6; }
5742if test "${ac_cv_prog_CC+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5744else
5745 if test -n "$CC"; then
5746 ac_cv_prog_CC="$CC" # Let the user override the test.
5747else
5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5758 fi
5759done
5760 done
5761IFS=$as_save_IFS
5762
5763fi
5764fi
5765CC=$ac_cv_prog_CC
5766if test -n "$CC"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5768$as_echo "$CC" >&6; }
5769else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771$as_echo "no" >&6; }
5772fi
5773
5774
5775 test -n "$CC" && break
5776 done
5777fi
5778if test -z "$CC"; then
5779 ac_ct_CC=$CC
5780 for ac_prog in cl.exe
5781do
5782 # Extract the first word of "$ac_prog", so it can be a program name with args.
5783set dummy $ac_prog; ac_word=$2
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785$as_echo_n "checking for $ac_word... " >&6; }
5786if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5787 $as_echo_n "(cached) " >&6
5788else
5789 if test -n "$ac_ct_CC"; then
5790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5791else
5792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793for as_dir in $PATH
5794do
5795 IFS=$as_save_IFS
5796 test -z "$as_dir" && as_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5799 ac_cv_prog_ac_ct_CC="$ac_prog"
5800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 break 2
5802 fi
5803done
5804 done
5805IFS=$as_save_IFS
5806
5807fi
5808fi
5809ac_ct_CC=$ac_cv_prog_ac_ct_CC
5810if test -n "$ac_ct_CC"; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5812$as_echo "$ac_ct_CC" >&6; }
5813else
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815$as_echo "no" >&6; }
5816fi
5817
5818
5819 test -n "$ac_ct_CC" && break
5820done
5821
5822 if test "x$ac_ct_CC" = x; then
5823 CC=""
5824 else
5825 case $cross_compiling:$ac_tool_warned in
5826yes:)
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5829ac_tool_warned=yes ;;
5830esac
5831 CC=$ac_ct_CC
5832 fi
5833fi
5834
5835fi
5836
5837
5838test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5840as_fn_error "no acceptable C compiler found in \$PATH
5841See \`config.log' for more details." "$LINENO" 5; }
5842
5843# Provide some information about the compiler.
5844$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5845set X $ac_compile
5846ac_compiler=$2
5847for ac_option in --version -v -V -qversion; do
5848 { { ac_try="$ac_compiler $ac_option >&5"
5849case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852esac
5853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5854$as_echo "$ac_try_echo"; } >&5
5855 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5856 ac_status=$?
5857 if test -s conftest.err; then
5858 sed '10a\
5859... rest of stderr output deleted ...
5860 10q' conftest.err >conftest.er1
5861 cat conftest.er1 >&5
5862 fi
5863 rm -f conftest.er1 conftest.err
5864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5865 test $ac_status = 0; }
5866done
5867
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5869$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5870if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5872else
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874/* end confdefs.h. */
5875
5876int
5877main ()
5878{
5879#ifndef __GNUC__
5880 choke me
5881#endif
5882
5883 ;
5884 return 0;
5885}
5886_ACEOF
5887if ac_fn_c_try_compile "$LINENO"; then :
5888 ac_compiler_gnu=yes
5889else
5890 ac_compiler_gnu=no
5891fi
5892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893ac_cv_c_compiler_gnu=$ac_compiler_gnu
5894
5895fi
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5897$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5898if test $ac_compiler_gnu = yes; then
5899 GCC=yes
5900else
5901 GCC=
5902fi
5903ac_test_CFLAGS=${CFLAGS+set}
5904ac_save_CFLAGS=$CFLAGS
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5906$as_echo_n "checking whether $CC accepts -g... " >&6; }
5907if test "${ac_cv_prog_cc_g+set}" = set; then :
5908 $as_echo_n "(cached) " >&6
5909else
5910 ac_save_c_werror_flag=$ac_c_werror_flag
5911 ac_c_werror_flag=yes
5912 ac_cv_prog_cc_g=no
5913 CFLAGS="-g"
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 ac_cv_prog_cc_g=yes
5927else
5928 CFLAGS=""
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h. */
5931
5932int
5933main ()
5934{
5935
5936 ;
5937 return 0;
5938}
5939_ACEOF
5940if ac_fn_c_try_compile "$LINENO"; then :
5941
5942else
5943 ac_c_werror_flag=$ac_save_c_werror_flag
5944 CFLAGS="-g"
5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946/* end confdefs.h. */
5947
5948int
5949main ()
5950{
5951
5952 ;
5953 return 0;
5954}
5955_ACEOF
5956if ac_fn_c_try_compile "$LINENO"; then :
5957 ac_cv_prog_cc_g=yes
5958fi
5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960fi
5961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962fi
5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 ac_c_werror_flag=$ac_save_c_werror_flag
5965fi
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5967$as_echo "$ac_cv_prog_cc_g" >&6; }
5968if test "$ac_test_CFLAGS" = set; then
5969 CFLAGS=$ac_save_CFLAGS
5970elif test $ac_cv_prog_cc_g = yes; then
5971 if test "$GCC" = yes; then
5972 CFLAGS="-g -O2"
5973 else
5974 CFLAGS="-g"
5975 fi
5976else
5977 if test "$GCC" = yes; then
5978 CFLAGS="-O2"
5979 else
5980 CFLAGS=
5981 fi
5982fi
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5984$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5985if test "${ac_cv_prog_cc_c89+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5987else
5988 ac_cv_prog_cc_c89=no
5989ac_save_CC=$CC
5990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991/* end confdefs.h. */
5992#include <stdarg.h>
5993#include <stdio.h>
5994#include <sys/types.h>
5995#include <sys/stat.h>
5996/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5997struct buf { int x; };
5998FILE * (*rcsopen) (struct buf *, struct stat *, int);
5999static char *e (p, i)
6000 char **p;
6001 int i;
6002{
6003 return p[i];
6004}
6005static char *f (char * (*g) (char **, int), char **p, ...)
6006{
6007 char *s;
6008 va_list v;
6009 va_start (v,p);
6010 s = g (p, va_arg (v,int));
6011 va_end (v);
6012 return s;
6013}
6014
6015/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6016 function prototypes and stuff, but not '\xHH' hex character constants.
6017 These don't provoke an error unfortunately, instead are silently treated
6018 as 'x'. The following induces an error, until -std is added to get
6019 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6020 array size at least. It's necessary to write '\x00'==0 to get something
6021 that's true only with -std. */
6022int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6023
6024/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6025 inside strings and character constants. */
6026#define FOO(x) 'x'
6027int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6028
6029int test (int i, double x);
6030struct s1 {int (*f) (int a);};
6031struct s2 {int (*f) (double a);};
6032int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6033int argc;
6034char **argv;
6035int
6036main ()
6037{
6038return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6039 ;
6040 return 0;
6041}
6042_ACEOF
6043for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6044 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6045do
6046 CC="$ac_save_CC $ac_arg"
6047 if ac_fn_c_try_compile "$LINENO"; then :
6048 ac_cv_prog_cc_c89=$ac_arg
6049fi
6050rm -f core conftest.err conftest.$ac_objext
6051 test "x$ac_cv_prog_cc_c89" != "xno" && break
6052done
6053rm -f conftest.$ac_ext
6054CC=$ac_save_CC
6055
6056fi
6057# AC_CACHE_VAL
6058case "x$ac_cv_prog_cc_c89" in
6059 x)
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6061$as_echo "none needed" >&6; } ;;
6062 xno)
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6064$as_echo "unsupported" >&6; } ;;
6065 *)
6066 CC="$CC $ac_cv_prog_cc_c89"
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6068$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6069esac
6070if test "x$ac_cv_prog_cc_c89" != xno; then :
6071
6072fi
6073
6074ac_ext=c
6075ac_cpp='$CPP $CPPFLAGS'
6076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078ac_compiler_gnu=$ac_cv_c_compiler_gnu
6079
cristy3ed852e2009-09-05 21:47:34 +00006080depcc="$CC" am_compiler_list=
6081
cristy8b350f62009-11-15 23:12:43 +00006082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006083$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006084if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006085 $as_echo_n "(cached) " >&6
6086else
6087 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6088 # We make a subdir and do the tests there. Otherwise we can end up
6089 # making bogus files that we don't know about and never remove. For
6090 # instance it was reported that on HP-UX the gcc test will end up
6091 # making a dummy file named `D' -- because `-MD' means `put the output
6092 # in D'.
6093 mkdir conftest.dir
6094 # Copy depcomp to subdir because otherwise we won't find it if we're
6095 # using a relative directory.
6096 cp "$am_depcomp" conftest.dir
6097 cd conftest.dir
6098 # We will build objects and dependencies in a subdirectory because
6099 # it helps to detect inapplicable dependency modes. For instance
6100 # both Tru64's cc and ICC support -MD to output dependencies as a
6101 # side effect of compilation, but ICC will put the dependencies in
6102 # the current directory while Tru64 will put them in the object
6103 # directory.
6104 mkdir sub
6105
6106 am_cv_CC_dependencies_compiler_type=none
6107 if test "$am_compiler_list" = ""; then
6108 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6109 fi
6110 am__universal=false
6111 case " $depcc " in #(
6112 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6113 esac
6114
6115 for depmode in $am_compiler_list; do
6116 # Setup a source with many dependencies, because some compilers
6117 # like to wrap large dependency lists on column 80 (with \), and
6118 # we should not choose a depcomp mode which is confused by this.
6119 #
6120 # We need to recreate these files for each test, as the compiler may
6121 # overwrite some of them when testing with obscure command lines.
6122 # This happens at least with the AIX C compiler.
6123 : > sub/conftest.c
6124 for i in 1 2 3 4 5 6; do
6125 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6126 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6127 # Solaris 8's {/usr,}/bin/sh.
6128 touch sub/conftst$i.h
6129 done
6130 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6131
6132 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6133 # mode. It turns out that the SunPro C++ compiler does not properly
6134 # handle `-M -o', and we need to detect this. Also, some Intel
6135 # versions had trouble with output in subdirs
6136 am__obj=sub/conftest.${OBJEXT-o}
6137 am__minus_obj="-o $am__obj"
6138 case $depmode in
6139 gcc)
6140 # This depmode causes a compiler race in universal mode.
6141 test "$am__universal" = false || continue
6142 ;;
6143 nosideeffect)
6144 # after this tag, mechanisms are not by side-effect, so they'll
6145 # only be used when explicitly requested
6146 if test "x$enable_dependency_tracking" = xyes; then
6147 continue
6148 else
6149 break
6150 fi
6151 ;;
6152 msvisualcpp | msvcmsys)
6153 # This compiler won't grok `-c -o', but also, the minuso test has
6154 # not run yet. These depmodes are late enough in the game, and
6155 # so weak that their functioning should not be impacted.
6156 am__obj=conftest.${OBJEXT-o}
6157 am__minus_obj=
6158 ;;
6159 none) break ;;
6160 esac
6161 if depmode=$depmode \
6162 source=sub/conftest.c object=$am__obj \
6163 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6164 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6165 >/dev/null 2>conftest.err &&
6166 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6167 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6168 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6169 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6170 # icc doesn't choke on unknown options, it will just issue warnings
6171 # or remarks (even with -Werror). So we grep stderr for any message
6172 # that says an option was ignored or not supported.
6173 # When given -MP, icc 7.0 and 7.1 complain thusly:
6174 # icc: Command line warning: ignoring option '-M'; no argument required
6175 # The diagnosis changed in icc 8.0:
6176 # icc: Command line remark: option '-MP' not supported
6177 if (grep 'ignoring option' conftest.err ||
6178 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6179 am_cv_CC_dependencies_compiler_type=$depmode
6180 break
6181 fi
6182 fi
6183 done
6184
6185 cd ..
6186 rm -rf conftest.dir
6187else
6188 am_cv_CC_dependencies_compiler_type=none
6189fi
6190
6191fi
cristy8b350f62009-11-15 23:12:43 +00006192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006193$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6194CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6195
6196 if
6197 test "x$enable_dependency_tracking" != xno \
6198 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6199 am__fastdepCC_TRUE=
6200 am__fastdepCC_FALSE='#'
6201else
6202 am__fastdepCC_TRUE='#'
6203 am__fastdepCC_FALSE=
6204fi
6205
6206
cristy95646052009-11-28 23:05:30 +00006207ac_ext=cpp
6208ac_cpp='$CXXCPP $CPPFLAGS'
6209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6212if test -z "$CXX"; then
6213 if test -n "$CCC"; then
6214 CXX=$CCC
6215 else
6216 if test -n "$ac_tool_prefix"; then
6217 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6218 do
6219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6220set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222$as_echo_n "checking for $ac_word... " >&6; }
6223if test "${ac_cv_prog_CXX+set}" = set; then :
6224 $as_echo_n "(cached) " >&6
6225else
6226 if test -n "$CXX"; then
6227 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6239 fi
6240done
6241 done
6242IFS=$as_save_IFS
6243
6244fi
6245fi
6246CXX=$ac_cv_prog_CXX
6247if test -n "$CXX"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6249$as_echo "$CXX" >&6; }
6250else
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252$as_echo "no" >&6; }
6253fi
6254
6255
6256 test -n "$CXX" && break
6257 done
6258fi
6259if test -z "$CXX"; then
6260 ac_ct_CXX=$CXX
6261 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6262do
6263 # Extract the first word of "$ac_prog", so it can be a program name with args.
6264set dummy $ac_prog; ac_word=$2
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266$as_echo_n "checking for $ac_word... " >&6; }
6267if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6268 $as_echo_n "(cached) " >&6
6269else
6270 if test -n "$ac_ct_CXX"; then
6271 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6272else
6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_prog_ac_ct_CXX="$ac_prog"
6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6283 fi
6284done
6285 done
6286IFS=$as_save_IFS
6287
6288fi
6289fi
6290ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6291if test -n "$ac_ct_CXX"; then
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6293$as_echo "$ac_ct_CXX" >&6; }
6294else
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296$as_echo "no" >&6; }
6297fi
6298
6299
6300 test -n "$ac_ct_CXX" && break
6301done
6302
6303 if test "x$ac_ct_CXX" = x; then
6304 CXX="g++"
6305 else
6306 case $cross_compiling:$ac_tool_warned in
6307yes:)
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310ac_tool_warned=yes ;;
6311esac
6312 CXX=$ac_ct_CXX
6313 fi
6314fi
6315
6316 fi
6317fi
6318# Provide some information about the compiler.
6319$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6320set X $ac_compile
6321ac_compiler=$2
6322for ac_option in --version -v -V -qversion; do
6323 { { ac_try="$ac_compiler $ac_option >&5"
6324case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327esac
6328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6329$as_echo "$ac_try_echo"; } >&5
6330 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6331 ac_status=$?
6332 if test -s conftest.err; then
6333 sed '10a\
6334... rest of stderr output deleted ...
6335 10q' conftest.err >conftest.er1
6336 cat conftest.er1 >&5
6337 fi
6338 rm -f conftest.er1 conftest.err
6339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6340 test $ac_status = 0; }
6341done
6342
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6344$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6345if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6346 $as_echo_n "(cached) " >&6
6347else
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349/* end confdefs.h. */
6350
6351int
6352main ()
6353{
6354#ifndef __GNUC__
6355 choke me
6356#endif
6357
6358 ;
6359 return 0;
6360}
6361_ACEOF
6362if ac_fn_cxx_try_compile "$LINENO"; then :
6363 ac_compiler_gnu=yes
6364else
6365 ac_compiler_gnu=no
6366fi
6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6369
6370fi
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6372$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6373if test $ac_compiler_gnu = yes; then
6374 GXX=yes
6375else
6376 GXX=
6377fi
6378ac_test_CXXFLAGS=${CXXFLAGS+set}
6379ac_save_CXXFLAGS=$CXXFLAGS
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6381$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6382if test "${ac_cv_prog_cxx_g+set}" = set; then :
6383 $as_echo_n "(cached) " >&6
6384else
6385 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6386 ac_cxx_werror_flag=yes
6387 ac_cv_prog_cxx_g=no
6388 CXXFLAGS="-g"
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 ac_cv_prog_cxx_g=yes
6402else
6403 CXXFLAGS=""
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405/* end confdefs.h. */
6406
6407int
6408main ()
6409{
6410
6411 ;
6412 return 0;
6413}
6414_ACEOF
6415if ac_fn_cxx_try_compile "$LINENO"; then :
6416
6417else
6418 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6419 CXXFLAGS="-g"
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421/* end confdefs.h. */
6422
6423int
6424main ()
6425{
6426
6427 ;
6428 return 0;
6429}
6430_ACEOF
6431if ac_fn_cxx_try_compile "$LINENO"; then :
6432 ac_cv_prog_cxx_g=yes
6433fi
6434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435fi
6436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437fi
6438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6440fi
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6442$as_echo "$ac_cv_prog_cxx_g" >&6; }
6443if test "$ac_test_CXXFLAGS" = set; then
6444 CXXFLAGS=$ac_save_CXXFLAGS
6445elif test $ac_cv_prog_cxx_g = yes; then
6446 if test "$GXX" = yes; then
6447 CXXFLAGS="-g -O2"
6448 else
6449 CXXFLAGS="-g"
6450 fi
6451else
6452 if test "$GXX" = yes; then
6453 CXXFLAGS="-O2"
6454 else
6455 CXXFLAGS=
6456 fi
6457fi
6458ac_ext=c
6459ac_cpp='$CPP $CPPFLAGS'
6460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462ac_compiler_gnu=$ac_cv_c_compiler_gnu
6463
6464depcc="$CXX" am_compiler_list=
6465
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6467$as_echo_n "checking dependency style of $depcc... " >&6; }
6468if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6470else
6471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6472 # We make a subdir and do the tests there. Otherwise we can end up
6473 # making bogus files that we don't know about and never remove. For
6474 # instance it was reported that on HP-UX the gcc test will end up
6475 # making a dummy file named `D' -- because `-MD' means `put the output
6476 # in D'.
6477 mkdir conftest.dir
6478 # Copy depcomp to subdir because otherwise we won't find it if we're
6479 # using a relative directory.
6480 cp "$am_depcomp" conftest.dir
6481 cd conftest.dir
6482 # We will build objects and dependencies in a subdirectory because
6483 # it helps to detect inapplicable dependency modes. For instance
6484 # both Tru64's cc and ICC support -MD to output dependencies as a
6485 # side effect of compilation, but ICC will put the dependencies in
6486 # the current directory while Tru64 will put them in the object
6487 # directory.
6488 mkdir sub
6489
6490 am_cv_CXX_dependencies_compiler_type=none
6491 if test "$am_compiler_list" = ""; then
6492 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6493 fi
6494 am__universal=false
6495 case " $depcc " in #(
6496 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6497 esac
6498
6499 for depmode in $am_compiler_list; do
6500 # Setup a source with many dependencies, because some compilers
6501 # like to wrap large dependency lists on column 80 (with \), and
6502 # we should not choose a depcomp mode which is confused by this.
6503 #
6504 # We need to recreate these files for each test, as the compiler may
6505 # overwrite some of them when testing with obscure command lines.
6506 # This happens at least with the AIX C compiler.
6507 : > sub/conftest.c
6508 for i in 1 2 3 4 5 6; do
6509 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6510 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6511 # Solaris 8's {/usr,}/bin/sh.
6512 touch sub/conftst$i.h
6513 done
6514 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6515
6516 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6517 # mode. It turns out that the SunPro C++ compiler does not properly
6518 # handle `-M -o', and we need to detect this. Also, some Intel
6519 # versions had trouble with output in subdirs
6520 am__obj=sub/conftest.${OBJEXT-o}
6521 am__minus_obj="-o $am__obj"
6522 case $depmode in
6523 gcc)
6524 # This depmode causes a compiler race in universal mode.
6525 test "$am__universal" = false || continue
6526 ;;
6527 nosideeffect)
6528 # after this tag, mechanisms are not by side-effect, so they'll
6529 # only be used when explicitly requested
6530 if test "x$enable_dependency_tracking" = xyes; then
6531 continue
6532 else
6533 break
6534 fi
6535 ;;
6536 msvisualcpp | msvcmsys)
6537 # This compiler won't grok `-c -o', but also, the minuso test has
6538 # not run yet. These depmodes are late enough in the game, and
6539 # so weak that their functioning should not be impacted.
6540 am__obj=conftest.${OBJEXT-o}
6541 am__minus_obj=
6542 ;;
6543 none) break ;;
6544 esac
6545 if depmode=$depmode \
6546 source=sub/conftest.c object=$am__obj \
6547 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6548 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6549 >/dev/null 2>conftest.err &&
6550 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6551 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6552 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6553 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6554 # icc doesn't choke on unknown options, it will just issue warnings
6555 # or remarks (even with -Werror). So we grep stderr for any message
6556 # that says an option was ignored or not supported.
6557 # When given -MP, icc 7.0 and 7.1 complain thusly:
6558 # icc: Command line warning: ignoring option '-M'; no argument required
6559 # The diagnosis changed in icc 8.0:
6560 # icc: Command line remark: option '-MP' not supported
6561 if (grep 'ignoring option' conftest.err ||
6562 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6563 am_cv_CXX_dependencies_compiler_type=$depmode
6564 break
6565 fi
6566 fi
6567 done
6568
6569 cd ..
6570 rm -rf conftest.dir
6571else
6572 am_cv_CXX_dependencies_compiler_type=none
6573fi
6574
6575fi
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6577$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6578CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6579
6580 if
6581 test "x$enable_dependency_tracking" != xno \
6582 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6583 am__fastdepCXX_TRUE=
6584 am__fastdepCXX_FALSE='#'
6585else
6586 am__fastdepCXX_TRUE='#'
6587 am__fastdepCXX_FALSE=
6588fi
6589
6590
cristy8b350f62009-11-15 23:12:43 +00006591 case $ac_cv_prog_cc_stdc in #(
6592 no) :
6593 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6594 *) :
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006596$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006597if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006598 $as_echo_n "(cached) " >&6
6599else
6600 ac_cv_prog_cc_c99=no
6601ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006603/* end confdefs.h. */
6604#include <stdarg.h>
6605#include <stdbool.h>
6606#include <stdlib.h>
6607#include <wchar.h>
6608#include <stdio.h>
6609
6610// Check varargs macros. These examples are taken from C99 6.10.3.5.
6611#define debug(...) fprintf (stderr, __VA_ARGS__)
6612#define showlist(...) puts (#__VA_ARGS__)
6613#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6614static void
6615test_varargs_macros (void)
6616{
6617 int x = 1234;
6618 int y = 5678;
6619 debug ("Flag");
6620 debug ("X = %d\n", x);
6621 showlist (The first, second, and third items.);
6622 report (x>y, "x is %d but y is %d", x, y);
6623}
6624
6625// Check long long types.
6626#define BIG64 18446744073709551615ull
6627#define BIG32 4294967295ul
6628#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6629#if !BIG_OK
6630 your preprocessor is broken;
6631#endif
6632#if BIG_OK
6633#else
6634 your preprocessor is broken;
6635#endif
6636static long long int bignum = -9223372036854775807LL;
6637static unsigned long long int ubignum = BIG64;
6638
6639struct incomplete_array
6640{
6641 int datasize;
6642 double data[];
6643};
6644
6645struct named_init {
6646 int number;
6647 const wchar_t *name;
6648 double average;
6649};
6650
6651typedef const char *ccp;
6652
6653static inline int
6654test_restrict (ccp restrict text)
6655{
6656 // See if C++-style comments work.
6657 // Iterate through items via the restricted pointer.
6658 // Also check for declarations in for loops.
6659 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6660 continue;
6661 return 0;
6662}
6663
6664// Check varargs and va_copy.
6665static void
6666test_varargs (const char *format, ...)
6667{
6668 va_list args;
6669 va_start (args, format);
6670 va_list args_copy;
6671 va_copy (args_copy, args);
6672
6673 const char *str;
6674 int number;
6675 float fnumber;
6676
6677 while (*format)
6678 {
6679 switch (*format++)
6680 {
6681 case 's': // string
6682 str = va_arg (args_copy, const char *);
6683 break;
6684 case 'd': // int
6685 number = va_arg (args_copy, int);
6686 break;
6687 case 'f': // float
6688 fnumber = va_arg (args_copy, double);
6689 break;
6690 default:
6691 break;
6692 }
6693 }
6694 va_end (args_copy);
6695 va_end (args);
6696}
6697
6698int
6699main ()
6700{
6701
6702 // Check bool.
6703 _Bool success = false;
6704
6705 // Check restrict.
6706 if (test_restrict ("String literal") == 0)
6707 success = true;
6708 char *restrict newvar = "Another string";
6709
6710 // Check varargs.
6711 test_varargs ("s, d' f .", "string", 65, 34.234);
6712 test_varargs_macros ();
6713
6714 // Check flexible array members.
6715 struct incomplete_array *ia =
6716 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6717 ia->datasize = 10;
6718 for (int i = 0; i < ia->datasize; ++i)
6719 ia->data[i] = i * 1.234;
6720
6721 // Check named initializers.
6722 struct named_init ni = {
6723 .number = 34,
6724 .name = L"Test wide string",
6725 .average = 543.34343,
6726 };
6727
6728 ni.number = 58;
6729
6730 int dynamic_array[ni.number];
6731 dynamic_array[ni.number - 1] = 543;
6732
6733 // work around unused variable warnings
6734 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6735 || dynamic_array[ni.number - 1] != 543);
6736
6737 ;
6738 return 0;
6739}
6740_ACEOF
6741for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6742do
6743 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006744 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006745 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006746fi
cristy3ed852e2009-09-05 21:47:34 +00006747rm -f core conftest.err conftest.$ac_objext
6748 test "x$ac_cv_prog_cc_c99" != "xno" && break
6749done
6750rm -f conftest.$ac_ext
6751CC=$ac_save_CC
6752
6753fi
6754# AC_CACHE_VAL
6755case "x$ac_cv_prog_cc_c99" in
6756 x)
cristy8b350f62009-11-15 23:12:43 +00006757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006758$as_echo "none needed" >&6; } ;;
6759 xno)
cristy8b350f62009-11-15 23:12:43 +00006760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006761$as_echo "unsupported" >&6; } ;;
6762 *)
6763 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006765$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6766esac
cristy8b350f62009-11-15 23:12:43 +00006767if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006768 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6769else
cristy8b350f62009-11-15 23:12:43 +00006770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006771$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006772if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006773 $as_echo_n "(cached) " >&6
6774else
6775 ac_cv_prog_cc_c89=no
6776ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006778/* end confdefs.h. */
6779#include <stdarg.h>
6780#include <stdio.h>
6781#include <sys/types.h>
6782#include <sys/stat.h>
6783/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6784struct buf { int x; };
6785FILE * (*rcsopen) (struct buf *, struct stat *, int);
6786static char *e (p, i)
6787 char **p;
6788 int i;
6789{
6790 return p[i];
6791}
6792static char *f (char * (*g) (char **, int), char **p, ...)
6793{
6794 char *s;
6795 va_list v;
6796 va_start (v,p);
6797 s = g (p, va_arg (v,int));
6798 va_end (v);
6799 return s;
6800}
6801
6802/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6803 function prototypes and stuff, but not '\xHH' hex character constants.
6804 These don't provoke an error unfortunately, instead are silently treated
6805 as 'x'. The following induces an error, until -std is added to get
6806 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6807 array size at least. It's necessary to write '\x00'==0 to get something
6808 that's true only with -std. */
6809int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6810
6811/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6812 inside strings and character constants. */
6813#define FOO(x) 'x'
6814int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6815
6816int test (int i, double x);
6817struct s1 {int (*f) (int a);};
6818struct s2 {int (*f) (double a);};
6819int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6820int argc;
6821char **argv;
6822int
6823main ()
6824{
6825return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6826 ;
6827 return 0;
6828}
6829_ACEOF
6830for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6831 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6832do
6833 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006834 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006835 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006836fi
cristy3ed852e2009-09-05 21:47:34 +00006837rm -f core conftest.err conftest.$ac_objext
6838 test "x$ac_cv_prog_cc_c89" != "xno" && break
6839done
6840rm -f conftest.$ac_ext
6841CC=$ac_save_CC
6842
6843fi
6844# AC_CACHE_VAL
6845case "x$ac_cv_prog_cc_c89" in
6846 x)
cristy8b350f62009-11-15 23:12:43 +00006847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006848$as_echo "none needed" >&6; } ;;
6849 xno)
cristy8b350f62009-11-15 23:12:43 +00006850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006851$as_echo "unsupported" >&6; } ;;
6852 *)
6853 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006855$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6856esac
cristy8b350f62009-11-15 23:12:43 +00006857if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006858 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6859else
6860 ac_cv_prog_cc_stdc=no
6861fi
6862
cristy3ed852e2009-09-05 21:47:34 +00006863fi
cristy3ed852e2009-09-05 21:47:34 +00006864 ;;
6865esac
cristy8b350f62009-11-15 23:12:43 +00006866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006867$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006868 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006869 $as_echo_n "(cached) " >&6
6870fi
6871
cristy8b350f62009-11-15 23:12:43 +00006872 case $ac_cv_prog_cc_stdc in #(
6873 no) :
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6875$as_echo "unsupported" >&6; } ;; #(
6876 '') :
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6878$as_echo "none needed" >&6; } ;; #(
6879 *) :
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006881$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6882esac
6883
cristy3ed852e2009-09-05 21:47:34 +00006884ac_ext=c
6885ac_cpp='$CPP $CPPFLAGS'
6886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006890$as_echo_n "checking how to run the C preprocessor... " >&6; }
6891# On Suns, sometimes $CPP names a directory.
6892if test -n "$CPP" && test -d "$CPP"; then
6893 CPP=
6894fi
6895if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006896 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006897 $as_echo_n "(cached) " >&6
6898else
6899 # Double quotes because CPP needs to be expanded
6900 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6901 do
6902 ac_preproc_ok=false
6903for ac_c_preproc_warn_flag in '' yes
6904do
6905 # Use a header file that comes with gcc, so configuring glibc
6906 # with a fresh cross-compiler works.
6907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6908 # <limits.h> exists even on freestanding compilers.
6909 # On the NeXT, cc -E runs the code through the compiler's parser,
6910 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006912/* end confdefs.h. */
6913#ifdef __STDC__
6914# include <limits.h>
6915#else
6916# include <assert.h>
6917#endif
6918 Syntax error
6919_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006920if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006921
cristy8b350f62009-11-15 23:12:43 +00006922else
cristy3ed852e2009-09-05 21:47:34 +00006923 # Broken: fails on valid input.
6924continue
6925fi
cristy3ed852e2009-09-05 21:47:34 +00006926rm -f conftest.err conftest.$ac_ext
6927
6928 # OK, works on sane cases. Now check whether nonexistent headers
6929 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006931/* end confdefs.h. */
6932#include <ac_nonexistent.h>
6933_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006934if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006935 # Broken: success on invalid input.
6936continue
6937else
cristy3ed852e2009-09-05 21:47:34 +00006938 # Passes both tests.
6939ac_preproc_ok=:
6940break
6941fi
cristy3ed852e2009-09-05 21:47:34 +00006942rm -f conftest.err conftest.$ac_ext
6943
6944done
6945# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6946rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006947if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006948 break
6949fi
6950
6951 done
6952 ac_cv_prog_CPP=$CPP
6953
6954fi
6955 CPP=$ac_cv_prog_CPP
6956else
6957 ac_cv_prog_CPP=$CPP
6958fi
cristy8b350f62009-11-15 23:12:43 +00006959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006960$as_echo "$CPP" >&6; }
6961ac_preproc_ok=false
6962for ac_c_preproc_warn_flag in '' yes
6963do
6964 # Use a header file that comes with gcc, so configuring glibc
6965 # with a fresh cross-compiler works.
6966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6967 # <limits.h> exists even on freestanding compilers.
6968 # On the NeXT, cc -E runs the code through the compiler's parser,
6969 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006971/* end confdefs.h. */
6972#ifdef __STDC__
6973# include <limits.h>
6974#else
6975# include <assert.h>
6976#endif
6977 Syntax error
6978_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006979if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006980
cristy8b350f62009-11-15 23:12:43 +00006981else
cristy3ed852e2009-09-05 21:47:34 +00006982 # Broken: fails on valid input.
6983continue
6984fi
cristy3ed852e2009-09-05 21:47:34 +00006985rm -f conftest.err conftest.$ac_ext
6986
6987 # OK, works on sane cases. Now check whether nonexistent headers
6988 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006990/* end confdefs.h. */
6991#include <ac_nonexistent.h>
6992_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006993if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006994 # Broken: success on invalid input.
6995continue
6996else
cristy3ed852e2009-09-05 21:47:34 +00006997 # Passes both tests.
6998ac_preproc_ok=:
6999break
7000fi
cristy3ed852e2009-09-05 21:47:34 +00007001rm -f conftest.err conftest.$ac_ext
7002
7003done
7004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7005rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007006if $ac_preproc_ok; then :
7007
cristy3ed852e2009-09-05 21:47:34 +00007008else
cristy8b350f62009-11-15 23:12:43 +00007009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00007011as_fn_error "C preprocessor \"$CPP\" fails sanity check
7012See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007013fi
7014
7015ac_ext=c
7016ac_cpp='$CPP $CPPFLAGS'
7017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020
cristy8b350f62009-11-15 23:12:43 +00007021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00007022$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007023if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007024 $as_echo_n "(cached) " >&6
7025else
7026 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7027 for ac_i in 1 2 3 4 5 6 7; do
7028 ac_script="$ac_script$as_nl$ac_script"
7029 done
7030 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00007031 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00007032 if test -z "$SED"; then
7033 ac_path_SED_found=false
7034 # Loop through the user's path and test for each of PROGNAME-LIST
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036for as_dir in $PATH
7037do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007040 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00007041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7043 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7044# Check for GNU ac_path_SED and select it if it is found.
7045 # Check for GNU $ac_path_SED
7046case `"$ac_path_SED" --version 2>&1` in
7047*GNU*)
7048 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7049*)
7050 ac_count=0
7051 $as_echo_n 0123456789 >"conftest.in"
7052 while :
7053 do
7054 cat "conftest.in" "conftest.in" >"conftest.tmp"
7055 mv "conftest.tmp" "conftest.in"
7056 cp "conftest.in" "conftest.nl"
7057 $as_echo '' >> "conftest.nl"
7058 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7059 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007060 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007061 if test $ac_count -gt ${ac_path_SED_max-0}; then
7062 # Best one so far, save it but keep looking for a better one
7063 ac_cv_path_SED="$ac_path_SED"
7064 ac_path_SED_max=$ac_count
7065 fi
7066 # 10*(2^10) chars as input seems more than enough
7067 test $ac_count -gt 10 && break
7068 done
7069 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7070esac
7071
7072 $ac_path_SED_found && break 3
7073 done
7074 done
cristy8b350f62009-11-15 23:12:43 +00007075 done
cristy3ed852e2009-09-05 21:47:34 +00007076IFS=$as_save_IFS
7077 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00007078 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007079 fi
7080else
7081 ac_cv_path_SED=$SED
7082fi
7083
7084fi
cristy8b350f62009-11-15 23:12:43 +00007085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007086$as_echo "$ac_cv_path_SED" >&6; }
7087 SED="$ac_cv_path_SED"
7088 rm -f conftest.sed
7089
7090test -z "$SED" && SED=sed
7091Xsed="$SED -e 1s/^X//"
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
cristy8b350f62009-11-15 23:12:43 +00007103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007104$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007105if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007106 $as_echo_n "(cached) " >&6
7107else
7108 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7109 then ac_cv_path_FGREP="$GREP -F"
7110 else
7111 if test -z "$FGREP"; then
7112 ac_path_FGREP_found=false
7113 # Loop through the user's path and test for each of PROGNAME-LIST
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7116do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007119 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7122 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7123# Check for GNU ac_path_FGREP and select it if it is found.
7124 # Check for GNU $ac_path_FGREP
7125case `"$ac_path_FGREP" --version 2>&1` in
7126*GNU*)
7127 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7128*)
7129 ac_count=0
7130 $as_echo_n 0123456789 >"conftest.in"
7131 while :
7132 do
7133 cat "conftest.in" "conftest.in" >"conftest.tmp"
7134 mv "conftest.tmp" "conftest.in"
7135 cp "conftest.in" "conftest.nl"
7136 $as_echo 'FGREP' >> "conftest.nl"
7137 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007139 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007140 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7141 # Best one so far, save it but keep looking for a better one
7142 ac_cv_path_FGREP="$ac_path_FGREP"
7143 ac_path_FGREP_max=$ac_count
7144 fi
7145 # 10*(2^10) chars as input seems more than enough
7146 test $ac_count -gt 10 && break
7147 done
7148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7149esac
7150
7151 $ac_path_FGREP_found && break 3
7152 done
7153 done
cristy8b350f62009-11-15 23:12:43 +00007154 done
cristy3ed852e2009-09-05 21:47:34 +00007155IFS=$as_save_IFS
7156 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00007157 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007158 fi
7159else
7160 ac_cv_path_FGREP=$FGREP
7161fi
7162
7163 fi
7164fi
cristy8b350f62009-11-15 23:12:43 +00007165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007166$as_echo "$ac_cv_path_FGREP" >&6; }
7167 FGREP="$ac_cv_path_FGREP"
7168
7169
7170test -z "$GREP" && GREP=grep
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007191if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007192 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7193else
7194 with_gnu_ld=no
7195fi
7196
7197ac_prog=ld
7198if test "$GCC" = yes; then
7199 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007201$as_echo_n "checking for ld used by $CC... " >&6; }
7202 case $host in
7203 *-*-mingw*)
7204 # gcc leaves a trailing carriage return which upsets mingw
7205 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7206 *)
7207 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7208 esac
7209 case $ac_prog in
7210 # Accept absolute paths.
7211 [\\/]* | ?:[\\/]*)
7212 re_direlt='/[^/][^/]*/\.\./'
7213 # Canonicalize the pathname of ld
7214 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7215 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7216 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7217 done
7218 test -z "$LD" && LD="$ac_prog"
7219 ;;
7220 "")
7221 # If it fails, then pretend we aren't using GCC.
7222 ac_prog=ld
7223 ;;
7224 *)
7225 # If it is relative, then search for the first ld in PATH.
7226 with_gnu_ld=unknown
7227 ;;
7228 esac
7229elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007231$as_echo_n "checking for GNU ld... " >&6; }
7232else
cristy8b350f62009-11-15 23:12:43 +00007233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007234$as_echo_n "checking for non-GNU ld... " >&6; }
7235fi
cristy8b350f62009-11-15 23:12:43 +00007236if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007237 $as_echo_n "(cached) " >&6
7238else
7239 if test -z "$LD"; then
7240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7241 for ac_dir in $PATH; do
7242 IFS="$lt_save_ifs"
7243 test -z "$ac_dir" && ac_dir=.
7244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7245 lt_cv_path_LD="$ac_dir/$ac_prog"
7246 # Check to see if the program is GNU ld. I'd rather use --version,
7247 # but apparently some variants of GNU ld only accept -v.
7248 # Break only if it was the GNU/non-GNU ld that we prefer.
7249 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7250 *GNU* | *'with BFD'*)
7251 test "$with_gnu_ld" != no && break
7252 ;;
7253 *)
7254 test "$with_gnu_ld" != yes && break
7255 ;;
7256 esac
7257 fi
7258 done
7259 IFS="$lt_save_ifs"
7260else
7261 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7262fi
7263fi
7264
7265LD="$lt_cv_path_LD"
7266if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007268$as_echo "$LD" >&6; }
7269else
cristy8b350f62009-11-15 23:12:43 +00007270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007271$as_echo "no" >&6; }
7272fi
cristy8b350f62009-11-15 23:12:43 +00007273test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007275$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007276if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007277 $as_echo_n "(cached) " >&6
7278else
7279 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7280case `$LD -v 2>&1 </dev/null` in
7281*GNU* | *'with BFD'*)
7282 lt_cv_prog_gnu_ld=yes
7283 ;;
7284*)
7285 lt_cv_prog_gnu_ld=no
7286 ;;
7287esac
7288fi
cristy8b350f62009-11-15 23:12:43 +00007289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007290$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7291with_gnu_ld=$lt_cv_prog_gnu_ld
7292
7293
7294
7295
7296
7297
7298
7299
7300
cristy3ed852e2009-09-05 21:47:34 +00007301
cristy837d6dc2010-02-27 01:16:57 +00007302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7303$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7304if test "${ac_cv_prog_cc_c99+set}" = set; then :
7305 $as_echo_n "(cached) " >&6
7306else
7307 ac_cv_prog_cc_c99=no
7308ac_save_CC=$CC
7309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310/* end confdefs.h. */
7311#include <stdarg.h>
7312#include <stdbool.h>
7313#include <stdlib.h>
7314#include <wchar.h>
7315#include <stdio.h>
7316
7317// Check varargs macros. These examples are taken from C99 6.10.3.5.
7318#define debug(...) fprintf (stderr, __VA_ARGS__)
7319#define showlist(...) puts (#__VA_ARGS__)
7320#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7321static void
7322test_varargs_macros (void)
7323{
7324 int x = 1234;
7325 int y = 5678;
7326 debug ("Flag");
7327 debug ("X = %d\n", x);
7328 showlist (The first, second, and third items.);
7329 report (x>y, "x is %d but y is %d", x, y);
7330}
7331
7332// Check long long types.
7333#define BIG64 18446744073709551615ull
7334#define BIG32 4294967295ul
7335#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7336#if !BIG_OK
7337 your preprocessor is broken;
7338#endif
7339#if BIG_OK
7340#else
7341 your preprocessor is broken;
7342#endif
7343static long long int bignum = -9223372036854775807LL;
7344static unsigned long long int ubignum = BIG64;
7345
7346struct incomplete_array
7347{
7348 int datasize;
7349 double data[];
7350};
7351
7352struct named_init {
7353 int number;
7354 const wchar_t *name;
7355 double average;
7356};
7357
7358typedef const char *ccp;
7359
7360static inline int
7361test_restrict (ccp restrict text)
7362{
7363 // See if C++-style comments work.
7364 // Iterate through items via the restricted pointer.
7365 // Also check for declarations in for loops.
7366 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7367 continue;
7368 return 0;
7369}
7370
7371// Check varargs and va_copy.
7372static void
7373test_varargs (const char *format, ...)
7374{
7375 va_list args;
7376 va_start (args, format);
7377 va_list args_copy;
7378 va_copy (args_copy, args);
7379
7380 const char *str;
7381 int number;
7382 float fnumber;
7383
7384 while (*format)
7385 {
7386 switch (*format++)
7387 {
7388 case 's': // string
7389 str = va_arg (args_copy, const char *);
7390 break;
7391 case 'd': // int
7392 number = va_arg (args_copy, int);
7393 break;
7394 case 'f': // float
7395 fnumber = va_arg (args_copy, double);
7396 break;
7397 default:
7398 break;
7399 }
7400 }
7401 va_end (args_copy);
7402 va_end (args);
7403}
7404
7405int
7406main ()
7407{
7408
7409 // Check bool.
7410 _Bool success = false;
7411
7412 // Check restrict.
7413 if (test_restrict ("String literal") == 0)
7414 success = true;
7415 char *restrict newvar = "Another string";
7416
7417 // Check varargs.
7418 test_varargs ("s, d' f .", "string", 65, 34.234);
7419 test_varargs_macros ();
7420
7421 // Check flexible array members.
7422 struct incomplete_array *ia =
7423 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7424 ia->datasize = 10;
7425 for (int i = 0; i < ia->datasize; ++i)
7426 ia->data[i] = i * 1.234;
7427
7428 // Check named initializers.
7429 struct named_init ni = {
7430 .number = 34,
7431 .name = L"Test wide string",
7432 .average = 543.34343,
7433 };
7434
7435 ni.number = 58;
7436
7437 int dynamic_array[ni.number];
7438 dynamic_array[ni.number - 1] = 543;
7439
7440 // work around unused variable warnings
7441 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7442 || dynamic_array[ni.number - 1] != 543);
7443
7444 ;
7445 return 0;
7446}
7447_ACEOF
7448for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7449do
7450 CC="$ac_save_CC $ac_arg"
7451 if ac_fn_c_try_compile "$LINENO"; then :
7452 ac_cv_prog_cc_c99=$ac_arg
7453fi
7454rm -f core conftest.err conftest.$ac_objext
7455 test "x$ac_cv_prog_cc_c99" != "xno" && break
7456done
7457rm -f conftest.$ac_ext
7458CC=$ac_save_CC
7459
7460fi
7461# AC_CACHE_VAL
7462case "x$ac_cv_prog_cc_c99" in
7463 x)
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7465$as_echo "none needed" >&6; } ;;
7466 xno)
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7468$as_echo "unsupported" >&6; } ;;
7469 *)
7470 CC="$CC $ac_cv_prog_cc_c99"
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7472$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7473esac
7474if test "x$ac_cv_prog_cc_c99" != xno; then :
7475
7476fi
7477
7478
cristy3ed852e2009-09-05 21:47:34 +00007479if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007481$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7482else
cristy8b350f62009-11-15 23:12:43 +00007483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007484$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7485fi
7486set dummy $CC; ac_cc=`$as_echo "$2" |
7487 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00007488if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007489 $as_echo_n "(cached) " >&6
7490else
cristy8b350f62009-11-15 23:12:43 +00007491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007492/* end confdefs.h. */
7493
7494int
7495main ()
7496{
7497
7498 ;
7499 return 0;
7500}
7501_ACEOF
7502# Make sure it works both with $CC and with simple cc.
7503# We do the test twice because some compilers refuse to overwrite an
7504# existing .o file with -o, though they will create one.
7505ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7506rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007507if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7510esac
cristy8b350f62009-11-15 23:12:43 +00007511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7512$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007513 (eval "$ac_try") 2>&5
7514 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516 test $ac_status = 0; } &&
7517 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519 *) ac_try_echo=$ac_try;;
7520esac
cristy8b350f62009-11-15 23:12:43 +00007521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7522$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007523 (eval "$ac_try") 2>&5
7524 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007527then
7528 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7529 if test "x$CC" != xcc; then
7530 # Test first that cc exists at all.
7531 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007532 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7535esac
cristy8b350f62009-11-15 23:12:43 +00007536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7537$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007538 (eval "$ac_try") 2>&5
7539 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007542 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7543 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007544 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7547esac
cristy8b350f62009-11-15 23:12:43 +00007548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7549$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007550 (eval "$ac_try") 2>&5
7551 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553 test $ac_status = 0; } &&
7554 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7557esac
cristy8b350f62009-11-15 23:12:43 +00007558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7559$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007560 (eval "$ac_try") 2>&5
7561 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7563 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007564 then
7565 # cc works too.
7566 :
7567 else
7568 # cc exists but doesn't like -o.
7569 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7570 fi
7571 fi
7572 fi
7573else
7574 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7575fi
7576rm -f core conftest*
7577
7578fi
7579if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007581$as_echo "yes" >&6; }
7582else
cristy8b350f62009-11-15 23:12:43 +00007583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007584$as_echo "no" >&6; }
7585
cristy8b350f62009-11-15 23:12:43 +00007586$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007587
7588fi
7589
7590# FIXME: we rely on the cache variable name because
7591# there is no other way.
7592set dummy $CC
7593am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7594eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7595if test "$am_t" != yes; then
7596 # Losing compiler, so override with the script.
7597 # FIXME: It is wrong to rewrite CC.
7598 # But if we don't then we get into trouble of one sort or another.
7599 # A longer-term fix would be to have automake use am__CC in this case,
7600 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7601 CC="$am_aux_dir/compile $CC"
7602fi
7603
7604
cristy3ed852e2009-09-05 21:47:34 +00007605
cristy8b350f62009-11-15 23:12:43 +00007606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007607$as_echo_n "checking maximum warning verbosity option... " >&6; }
7608
7609
7610
7611
7612# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00007613if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007614 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
7615else
7616 ac_compile_warnings_on=""
7617fi
7618
7619
7620 if test x"$ac_compile_warnings_on" = xno
7621 then
7622 ac_compile_warnings_msg=no
7623 else
7624 if test -n "$CXX"
7625 then
7626 if test "$GXX" = "yes"
7627 then
cristybcbeec82010-01-22 03:20:31 +00007628 ac_compile_warnings_opt='-Wall -W'
cristy3ed852e2009-09-05 21:47:34 +00007629 fi
7630 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
7631 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
7632 fi
7633
7634 if test -n "$CC"
7635 then
7636 if test "$GCC" = "yes"
7637 then
cristybcbeec82010-01-22 03:20:31 +00007638 ac_compile_warnings_opt='-Wall -W'
cristy3ed852e2009-09-05 21:47:34 +00007639 fi
7640 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
7641 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
7642 fi
7643 fi
cristy8b350f62009-11-15 23:12:43 +00007644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00007645$as_echo "$ac_compile_warnings_msg" >&6; }
7646 unset ac_compile_warnings_msg
7647 unset ac_compile_warnings_opt
7648
cristya0b81c32010-01-22 02:54:33 +00007649$ac_includes_default
7650
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7652$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7653set x ${MAKE-make}
7654ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7655if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7656 $as_echo_n "(cached) " >&6
7657else
7658 cat >conftest.make <<\_ACEOF
7659SHELL = /bin/sh
7660all:
7661 @echo '@@@%%%=$(MAKE)=@@@%%%'
7662_ACEOF
7663# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7664case `${MAKE-make} -f conftest.make 2>/dev/null` in
7665 *@@@%%%=?*=@@@%%%*)
7666 eval ac_cv_prog_make_${ac_make}_set=yes;;
7667 *)
7668 eval ac_cv_prog_make_${ac_make}_set=no;;
7669esac
7670rm -f conftest.make
7671fi
7672if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7674$as_echo "yes" >&6; }
7675 SET_MAKE=
7676else
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678$as_echo "no" >&6; }
7679 SET_MAKE="MAKE=${MAKE-make}"
7680fi
7681
cristy8b350f62009-11-15 23:12:43 +00007682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007683$as_echo_n "checking whether ln -s works... " >&6; }
7684LN_S=$as_ln_s
7685if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007687$as_echo "yes" >&6; }
7688else
cristy8b350f62009-11-15 23:12:43 +00007689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007690$as_echo "no, using $LN_S" >&6; }
7691fi
7692
cristy8b350f62009-11-15 23:12:43 +00007693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007694$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7695
7696# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007697if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007698 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007700$as_echo "yes" >&6; }
7701
cristy8b350f62009-11-15 23:12:43 +00007702$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007703
7704 LIBS="$LIBS -ldmalloc"
7705 LDFLAGS="$LDFLAGS -g"
7706else
cristy8b350f62009-11-15 23:12:43 +00007707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007708$as_echo "no" >&6; }
7709fi
7710else
cristy8b350f62009-11-15 23:12:43 +00007711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007712$as_echo "no" >&6; }
7713fi
7714
7715
7716
7717
7718if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7719 if test -n "$ac_tool_prefix"; then
7720 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7721set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007723$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007724if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007725 $as_echo_n "(cached) " >&6
7726else
7727 case $PKG_CONFIG in
7728 [\\/]* | ?:[\\/]*)
7729 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7730 ;;
7731 *)
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733for as_dir in $PATH
7734do
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7739 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007741 break 2
7742 fi
7743done
cristy8b350f62009-11-15 23:12:43 +00007744 done
cristy3ed852e2009-09-05 21:47:34 +00007745IFS=$as_save_IFS
7746
7747 ;;
7748esac
7749fi
7750PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7751if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007753$as_echo "$PKG_CONFIG" >&6; }
7754else
cristy8b350f62009-11-15 23:12:43 +00007755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007756$as_echo "no" >&6; }
7757fi
7758
7759
7760fi
7761if test -z "$ac_cv_path_PKG_CONFIG"; then
7762 ac_pt_PKG_CONFIG=$PKG_CONFIG
7763 # Extract the first word of "pkg-config", so it can be a program name with args.
7764set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007766$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007767if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007768 $as_echo_n "(cached) " >&6
7769else
7770 case $ac_pt_PKG_CONFIG in
7771 [\\/]* | ?:[\\/]*)
7772 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7773 ;;
7774 *)
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776for as_dir in $PATH
7777do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007780 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007784 break 2
7785 fi
7786done
cristy8b350f62009-11-15 23:12:43 +00007787 done
cristy3ed852e2009-09-05 21:47:34 +00007788IFS=$as_save_IFS
7789
7790 ;;
7791esac
7792fi
7793ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7794if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007796$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7797else
cristy8b350f62009-11-15 23:12:43 +00007798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007799$as_echo "no" >&6; }
7800fi
7801
7802 if test "x$ac_pt_PKG_CONFIG" = x; then
7803 PKG_CONFIG=""
7804 else
7805 case $cross_compiling:$ac_tool_warned in
7806yes:)
cristy8b350f62009-11-15 23:12:43 +00007807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809ac_tool_warned=yes ;;
7810esac
7811 PKG_CONFIG=$ac_pt_PKG_CONFIG
7812 fi
7813else
7814 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7815fi
7816
7817fi
7818if test -n "$PKG_CONFIG"; then
7819 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007821$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7822 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007824$as_echo "yes" >&6; }
7825 else
cristy8b350f62009-11-15 23:12:43 +00007826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007827$as_echo "no" >&6; }
7828 PKG_CONFIG=""
7829 fi
7830
7831fi
7832
7833#
cristy3ed852e2009-09-05 21:47:34 +00007834# Enable run-time checking.
7835#
7836# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007837if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007838 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7839else
7840 enable_bounds_checking='no'
7841fi
7842
7843
7844if test "$enable_bounds_checking" = yes; then
7845
cristy8b350f62009-11-15 23:12:43 +00007846$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007847
7848fi
7849
7850#
7851# Tests for Windows
7852#
7853
7854
7855
7856GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007857native_win32_build='no'
7858cygwin_build='no'
7859case "${host_os}" in
7860 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007861 cygwin_build='yes'
7862 GDI32_LIBS='-lgdi32'
7863 ;;
7864 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007865 native_win32_build='yes'
7866 GDI32_LIBS='-lgdi32'
7867 ;;
7868esac
7869if test "${GDI32_LIBS}x" != 'x'; then
7870
cristy8b350f62009-11-15 23:12:43 +00007871$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007872
7873fi
7874
7875 if test "${GDI32_LIBS}x" != 'x' ; then
7876 WINGDI32_DELEGATE_TRUE=
7877 WINGDI32_DELEGATE_FALSE='#'
7878else
7879 WINGDI32_DELEGATE_TRUE='#'
7880 WINGDI32_DELEGATE_FALSE=
7881fi
7882
7883 if test "${native_win32_build}" = 'yes' ; then
7884 WIN32_NATIVE_BUILD_TRUE=
7885 WIN32_NATIVE_BUILD_FALSE='#'
7886else
7887 WIN32_NATIVE_BUILD_TRUE='#'
7888 WIN32_NATIVE_BUILD_FALSE=
7889fi
7890
7891 if test "${cygwin_build}" = 'yes' ; then
7892 CYGWIN_BUILD_TRUE=
7893 CYGWIN_BUILD_FALSE='#'
7894else
7895 CYGWIN_BUILD_TRUE='#'
7896 CYGWIN_BUILD_FALSE=
7897fi
7898
7899 if test "x${CC}" = 'xcl.exe' ; then
7900 USING_CL_TRUE=
7901 USING_CL_FALSE='#'
7902else
7903 USING_CL_TRUE='#'
7904 USING_CL_FALSE=
7905fi
7906
7907
7908WinPathScript="${srcdirfull}/winpath.sh"
7909
7910
7911#
7912# Compiler flags tweaks
7913#
7914if test "${GCC}" != "yes"; then
7915 case "${host}" in
7916 *-*-hpux* )
7917 # aCC: HP ANSI C++ B3910B A.03.34
7918 CFLAGS="${CFLAGS} -Wp,-H30000"
7919 if test -n "${CXXFLAGS}"; then
7920 CXXFLAGS='-AA'
7921 else
7922 CXXFLAGS="${CXXFLAGS} -AA"
7923 fi
7924 ;;
7925 *-dec-osf5.* )
7926 # Compaq alphaev68-dec-osf5.1 compiler
7927 if test -n "${CXXFLAGS}"; then
7928 CXXFLAGS='-std strict_ansi -noimplicit_include'
7929 else
7930 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7931 fi
7932 esac
7933fi
7934
7935# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00007936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007937$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007938if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007939 $as_echo_n "(cached) " >&6
7940else
7941
7942im_cv_ld_lazyload='none'
7943case "${host}" in
7944 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7945 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7946 im_cv_ld_lazyload='-Wl,-zlazyload'
7947 fi
7948 ;;
7949esac
7950
7951fi
cristy8b350f62009-11-15 23:12:43 +00007952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00007953$as_echo "$im_cv_ld_lazyload" >&6; }
7954if test "${im_cv_ld_lazyload}" != 'none' ; then
7955 if test -z "${LDFLAGS}" ; then
7956 LDFLAGS="${im_cv_ld_lazyload}"
7957 else
7958 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7959 fi
7960fi
7961
7962case "$host" in
7963*darwin* | *-macos10*)
7964 if test -d /opt/local ; then
7965 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7966 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7967 elif test -d /sw ; then
7968 CPPFLAGS="$CPPFLAGS -I/sw/include"
7969 LDFLAGS="$LDFLAGS -L/sw/lib"
7970 fi
7971 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00007972if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007973 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7974else
7975 build_osxuniversal=no
7976fi
7977
7978
7979 if test "${build_osxuniversal}" != no ; then
7980 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00007981 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00007982Please re-run configure with these options:
7983 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00007984 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007985 fi
7986 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7987 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7988 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7989 fi
7990 ;;
7991esac
7992
7993# Enable support for threads
7994
7995# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00007996if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007997 withval=$with_threads; with_threads=$withval
7998else
7999 with_threads='yes'
8000fi
8001
8002
8003have_threads=no
8004if test "$with_threads" != 'no'; then
8005
8006
8007
8008ac_ext=c
8009ac_cpp='$CPP $CPPFLAGS'
8010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8012ac_compiler_gnu=$ac_cv_c_compiler_gnu
8013
8014acx_pthread_ok=no
8015
8016# We used to check for pthread.h first, but this fails if pthread.h
8017# requires special compiler flags (e.g. on True64 or Sequent).
8018# It gets checked for in the link test anyway.
8019
8020# First of all, check if the user has set any of the PTHREAD_LIBS,
8021# etcetera environment variables, and if threads linking works using
8022# them:
8023if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8024 save_CFLAGS="$CFLAGS"
8025 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8026 save_LIBS="$LIBS"
8027 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008028 { $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 +00008029$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008031/* end confdefs.h. */
8032
8033/* Override any GCC internal prototype to avoid an error.
8034 Use char because int might match the return type of a GCC
8035 builtin and then its argument prototype would still apply. */
8036#ifdef __cplusplus
8037extern "C"
8038#endif
8039char pthread_join ();
8040int
8041main ()
8042{
8043return pthread_join ();
8044 ;
8045 return 0;
8046}
8047_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008048if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008049 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008050fi
cristy8b350f62009-11-15 23:12:43 +00008051rm -f core conftest.err conftest.$ac_objext \
8052 conftest$ac_exeext conftest.$ac_ext
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00008054$as_echo "$acx_pthread_ok" >&6; }
8055 if test x"$acx_pthread_ok" = xno; then
8056 PTHREAD_LIBS=""
8057 PTHREAD_CFLAGS=""
8058 fi
8059 LIBS="$save_LIBS"
8060 CFLAGS="$save_CFLAGS"
8061fi
8062
8063# We must check for the threads library under a number of different
8064# names; the ordering is very important because some systems
8065# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8066# libraries is broken (non-POSIX).
8067
8068# Create a list of thread flags to try. Items starting with a "-" are
8069# C compiler flags, and other items are library names, except for "none"
8070# which indicates that we try without any flags at all, and "pthread-config"
8071# which is a program returning the flags for the Pth emulation library.
8072
8073acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8074
8075# The ordering *is* (sometimes) important. Some notes on the
8076# individual items follow:
8077
8078# pthreads: AIX (must check this before -lpthread)
8079# none: in case threads are in libc; should be tried before -Kthread and
8080# other compiler flags to prevent continual compiler warnings
8081# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8082# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8083# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8084# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8085# -pthreads: Solaris/gcc
8086# -mthreads: Mingw32/gcc, Lynx/gcc
8087# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8088# doesn't hurt to check since this sometimes defines pthreads too;
8089# also defines -D_REENTRANT)
8090# ... -mt is also the pthreads flag for HP/aCC
8091# pthread: Linux, etcetera
8092# --thread-safe: KAI C++
8093# pthread-config: use pthread-config program (for GNU Pth library)
8094
8095case "${host_cpu}-${host_os}" in
8096 *solaris*)
8097
8098 # On Solaris (at least, for some versions), libc contains stubbed
8099 # (non-functional) versions of the pthreads routines, so link-based
8100 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8101 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8102 # a function called by this macro, so we could check for that, but
8103 # who knows whether they'll stub that too in a future libc.) So,
8104 # we'll just look for -pthreads and -lpthread first:
8105
8106 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
8107 ;;
cristy3ed852e2009-09-05 21:47:34 +00008108esac
8109
8110if test x"$acx_pthread_ok" = xno; then
8111for flag in $acx_pthread_flags; do
8112
8113 case $flag in
8114 none)
cristy8b350f62009-11-15 23:12:43 +00008115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008116$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8117 ;;
8118
8119 -*)
cristy8b350f62009-11-15 23:12:43 +00008120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008121$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8122 PTHREAD_CFLAGS="$flag"
8123 ;;
8124
8125 pthread-config)
8126 # Extract the first word of "pthread-config", so it can be a program name with args.
8127set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008129$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008130if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008131 $as_echo_n "(cached) " >&6
8132else
8133 if test -n "$acx_pthread_config"; then
8134 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
8135else
8136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137for as_dir in $PATH
8138do
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008141 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8143 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008145 break 2
8146 fi
8147done
cristy8b350f62009-11-15 23:12:43 +00008148 done
cristy3ed852e2009-09-05 21:47:34 +00008149IFS=$as_save_IFS
8150
8151 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
8152fi
8153fi
8154acx_pthread_config=$ac_cv_prog_acx_pthread_config
8155if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00008156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00008157$as_echo "$acx_pthread_config" >&6; }
8158else
cristy8b350f62009-11-15 23:12:43 +00008159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008160$as_echo "no" >&6; }
8161fi
8162
8163
8164 if test x"$acx_pthread_config" = xno; then continue; fi
8165 PTHREAD_CFLAGS="`pthread-config --cflags`"
8166 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8167 ;;
8168
8169 *)
cristy8b350f62009-11-15 23:12:43 +00008170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008171$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8172 PTHREAD_LIBS="-l$flag"
8173 ;;
8174 esac
8175
8176 save_LIBS="$LIBS"
8177 save_CFLAGS="$CFLAGS"
8178 LIBS="$PTHREAD_LIBS $LIBS"
8179 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8180
8181 # Check for various functions. We must include pthread.h,
8182 # since some functions may be macros. (On the Sequent, we
8183 # need a special flag -Kthread to make this header compile.)
8184 # We check for pthread_join because it is in -lpthread on IRIX
8185 # while pthread_create is in libc. We check for pthread_attr_init
8186 # due to DEC craziness with -lpthreads. We check for
8187 # pthread_cleanup_push because it is one of the few pthread
8188 # functions on Solaris that doesn't have a non-functional libc stub.
8189 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008191/* end confdefs.h. */
8192#include <pthread.h>
8193int
8194main ()
8195{
8196pthread_t th; pthread_join(th, 0);
8197 pthread_attr_init(0); pthread_cleanup_push(0, 0);
8198 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
8199 ;
8200 return 0;
8201}
8202_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008203if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008204 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008205fi
cristy8b350f62009-11-15 23:12:43 +00008206rm -f core conftest.err conftest.$ac_objext \
8207 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008208
8209 LIBS="$save_LIBS"
8210 CFLAGS="$save_CFLAGS"
8211
cristy8b350f62009-11-15 23:12:43 +00008212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00008213$as_echo "$acx_pthread_ok" >&6; }
8214 if test "x$acx_pthread_ok" = xyes; then
8215 break;
8216 fi
8217
8218 PTHREAD_LIBS=""
8219 PTHREAD_CFLAGS=""
8220done
8221fi
8222
8223# Various other checks:
8224if test "x$acx_pthread_ok" = xyes; then
8225 save_LIBS="$LIBS"
8226 LIBS="$PTHREAD_LIBS $LIBS"
8227 save_CFLAGS="$CFLAGS"
8228 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8229
8230 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008232$as_echo_n "checking for joinable pthread attribute... " >&6; }
8233 attr_name=unknown
8234 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008236/* end confdefs.h. */
8237#include <pthread.h>
8238int
8239main ()
8240{
8241int attr=$attr; return attr;
8242 ;
8243 return 0;
8244}
8245_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008246if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008247 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008248fi
cristy8b350f62009-11-15 23:12:43 +00008249rm -f core conftest.err conftest.$ac_objext \
8250 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008251 done
cristy8b350f62009-11-15 23:12:43 +00008252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008253$as_echo "$attr_name" >&6; }
8254 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8255
8256cat >>confdefs.h <<_ACEOF
8257#define PTHREAD_CREATE_JOINABLE $attr_name
8258_ACEOF
8259
8260 fi
8261
cristy8b350f62009-11-15 23:12:43 +00008262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008263$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8264 flag=no
8265 case "${host_cpu}-${host_os}" in
8266 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8267 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8268 esac
cristy8b350f62009-11-15 23:12:43 +00008269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008270$as_echo "${flag}" >&6; }
8271 if test "x$flag" != xno; then
8272 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8273 fi
8274
8275 LIBS="$save_LIBS"
8276 CFLAGS="$save_CFLAGS"
8277
8278 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008279 if test x"$GCC" != xyes; then
8280 for ac_prog in xlc_r cc_r
8281do
8282 # Extract the first word of "$ac_prog", so it can be a program name with args.
8283set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008285$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008286if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008287 $as_echo_n "(cached) " >&6
8288else
8289 if test -n "$PTHREAD_CC"; then
8290 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8291else
8292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293for as_dir in $PATH
8294do
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008297 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008298 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 +00008299 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008301 break 2
8302 fi
8303done
cristy8b350f62009-11-15 23:12:43 +00008304 done
cristy3ed852e2009-09-05 21:47:34 +00008305IFS=$as_save_IFS
8306
cristy3ed852e2009-09-05 21:47:34 +00008307fi
8308fi
8309PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8310if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008312$as_echo "$PTHREAD_CC" >&6; }
8313else
cristy8b350f62009-11-15 23:12:43 +00008314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008315$as_echo "no" >&6; }
8316fi
8317
cristy736173a2009-09-20 21:18:22 +00008318
8319 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008320done
cristy736173a2009-09-20 21:18:22 +00008321test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008322
cristy736173a2009-09-20 21:18:22 +00008323 else
8324 PTHREAD_CC=$CC
8325 fi
cristy3ed852e2009-09-05 21:47:34 +00008326else
cristy736173a2009-09-20 21:18:22 +00008327 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008328fi
8329
cristy3ed852e2009-09-05 21:47:34 +00008330
8331
8332
8333
8334# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8335if test x"$acx_pthread_ok" = xyes; then
8336
cristy8b350f62009-11-15 23:12:43 +00008337$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008338
8339 :
8340else
8341 acx_pthread_ok=no
8342
8343fi
8344ac_ext=c
8345ac_cpp='$CPP $CPPFLAGS'
8346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8348ac_compiler_gnu=$ac_cv_c_compiler_gnu
8349
8350
8351 if test "$acx_pthread_ok" = yes; then
8352 have_threads=yes
8353 DEF_THREAD="$PTHREAD_CFLAGS"
8354 CFLAGS="$CFLAGS $DEF_THREAD"
8355 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8356 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008357 { $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 +00008358$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8359 CC="$PTHREAD_CC"
8360 fi
8361 fi
8362fi
8363
8364# Enable support for OpenMP
8365if test "$have_threads" != 'yes'; then
8366 ac_cv_prog_c_openmp=unsupported
8367fi
8368
8369 OPENMP_CFLAGS=
8370 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008371if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008372 enableval=$enable_openmp;
8373fi
8374
8375 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008377$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008378if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008379 $as_echo_n "(cached) " >&6
8380else
cristy8b350f62009-11-15 23:12:43 +00008381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008383
8384#ifndef _OPENMP
8385 choke me
8386#endif
8387#include <omp.h>
8388int main () { return omp_get_num_threads (); }
8389
8390_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008391if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008392 ac_cv_prog_c_openmp='none needed'
8393else
cristy8b350f62009-11-15 23:12:43 +00008394 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008395 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8396 ac_save_CFLAGS=$CFLAGS
8397 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008400
8401#ifndef _OPENMP
8402 choke me
8403#endif
8404#include <omp.h>
8405int main () { return omp_get_num_threads (); }
8406
8407_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008408if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008409 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008410fi
cristy8b350f62009-11-15 23:12:43 +00008411rm -f core conftest.err conftest.$ac_objext \
8412 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008413 CFLAGS=$ac_save_CFLAGS
8414 if test "$ac_cv_prog_c_openmp" != unsupported; then
8415 break
8416 fi
8417 done
8418fi
cristy8b350f62009-11-15 23:12:43 +00008419rm -f core conftest.err conftest.$ac_objext \
8420 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008421fi
cristy8b350f62009-11-15 23:12:43 +00008422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008423$as_echo "$ac_cv_prog_c_openmp" >&6; }
8424 case $ac_cv_prog_c_openmp in #(
8425 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008426 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008427 *)
cristy8b350f62009-11-15 23:12:43 +00008428 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008429 esac
8430 fi
8431
8432
8433CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8434MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8435
8436
cristy736173a2009-09-20 21:18:22 +00008437# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008438
cristy43596fe2010-01-21 16:46:08 +00008439# Check whether --enable-opencl was given.
8440if test "${enable_opencl+set}" = set; then :
8441 enableval=$enable_opencl; disable_opencl=$enableval
8442else
8443 disable_opencl='yes'
8444fi
8445
8446
8447if test "$disable_opencl" = 'yes'; then
8448 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008449ac_cpp='$CPP $CPPFLAGS'
8450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8452ac_compiler_gnu=$ac_cv_c_compiler_gnu
8453
cristy43596fe2010-01-21 16:46:08 +00008454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008455$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008456if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008457 $as_echo_n "(cached) " >&6
8458else
cristy8b350f62009-11-15 23:12:43 +00008459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008460/* end confdefs.h. */
8461
8462int
8463main ()
8464{
8465#ifndef _MSC_VER
8466 choke me
8467#endif
8468
8469 ;
8470 return 0;
8471}
8472_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008473if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008474 ax_compiler_ms=yes
8475else
cristy8b350f62009-11-15 23:12:43 +00008476 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008477fi
cristy736173a2009-09-20 21:18:22 +00008478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479ax_cv_c_compiler_ms=$ax_compiler_ms
8480
8481fi
cristy8b350f62009-11-15 23:12:43 +00008482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008483$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008484 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008485 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8486fi
8487
cristy43596fe2010-01-21 16:46:08 +00008488 ax_save_CPPFLAGS=$CPPFLAGS
8489 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8490 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008491do :
8492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8493ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8494eval as_val=\$$as_ac_Header
8495 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008496 cat >>confdefs.h <<_ACEOF
8497#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8498_ACEOF
8499
8500fi
8501
8502done
8503
cristy43596fe2010-01-21 16:46:08 +00008504 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008505
cristy43596fe2010-01-21 16:46:08 +00008506 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008507do :
8508 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8509if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008510 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008511#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008512_ACEOF
8513
8514fi
8515
8516done
8517
8518
8519
8520
cristy43596fe2010-01-21 16:46:08 +00008521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008522$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008523if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008524 $as_echo_n "(cached) " >&6
8525else
8526 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008527 case $host_cpu in
8528 x86_64) ax_check_cl_libdir=lib64 ;;
8529 *) ax_check_cl_libdir=lib ;;
8530 esac
8531 ax_save_CPPFLAGS=$CPPFLAGS
8532 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8533 ax_save_LIBS=$LIBS
8534 LIBS=""
8535 ax_check_libs="-lOpenCL -lCL -lclparser"
8536 for ax_lib in $ax_check_libs; do
8537 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008538 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8539else
8540 ax_try_lib=$ax_lib
8541fi
cristy43596fe2010-01-21 16:46:08 +00008542 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008544/* end confdefs.h. */
8545
cristy43596fe2010-01-21 16:46:08 +00008546 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8547 # include <windows.h>
8548 # endif
8549 # ifdef HAVE_CL_CL_H
8550 # include <CL/cl.h>
8551 # elif defined(HAVE_OPENCL_CL_H)
8552 # include <OpenCL/cl.h>
8553 # else
8554 # error no CL.h
8555 # endif
cristy736173a2009-09-20 21:18:22 +00008556int
8557main ()
8558{
cristyc7083c12009-10-14 03:16:55 +00008559clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008560 ;
8561 return 0;
8562}
8563_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008564if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008565 ax_cv_check_cl_libcl=$ax_try_lib; break
8566else
cristy8b350f62009-11-15 23:12:43 +00008567 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 +00008568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008569/* end confdefs.h. */
8570
cristy43596fe2010-01-21 16:46:08 +00008571 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8572 # include <windows.h>
8573 # endif
8574 # ifdef HAVE_CL_CL_H
8575 # include <CL/cl.h>
8576 # elif defined(HAVE_OPENCL_CL_H)
8577 # include <OpenCL/cl.h>
8578 # else
8579 # error no CL.h
8580 # endif
cristy736173a2009-09-20 21:18:22 +00008581int
8582main ()
8583{
cristyc7083c12009-10-14 03:16:55 +00008584clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008585 ;
8586 return 0;
8587}
8588_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008589if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008590 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
8591else
cristy4dc44432009-12-30 23:30:06 +00008592 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 +00008593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008594/* end confdefs.h. */
8595
cristy43596fe2010-01-21 16:46:08 +00008596 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8597 # include <windows.h>
8598 # endif
8599 # ifdef HAVE_CL_CL_H
8600 # include <CL/cl.h>
8601 # elif defined(HAVE_OPENCL_CL_H)
8602 # include <OpenCL/cl.h>
8603 # else
8604 # error no CL.h
8605 # endif
cristy736173a2009-09-20 21:18:22 +00008606int
8607main ()
8608{
cristyc7083c12009-10-14 03:16:55 +00008609clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008610 ;
8611 return 0;
8612}
8613_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008614if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008615 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00008616fi
cristy8b350f62009-11-15 23:12:43 +00008617rm -f core conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008619fi
cristy8b350f62009-11-15 23:12:43 +00008620rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008622fi
cristy8b350f62009-11-15 23:12:43 +00008623rm -f core conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00008625 done
cristy736173a2009-09-20 21:18:22 +00008626
cristy43596fe2010-01-21 16:46:08 +00008627 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008628 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00008629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008630/* end confdefs.h. */
8631
cristy43596fe2010-01-21 16:46:08 +00008632 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8633 # include <windows.h>
8634 # endif
8635 # ifdef HAVE_CL_CL_H
8636 # include <CL/cl.h>
8637 # elif defined(HAVE_OPENCL_CL_H)
8638 # include <OpenCL/cl.h>
8639 # else
8640 # error no CL.h
8641 # endif
cristy736173a2009-09-20 21:18:22 +00008642int
8643main ()
8644{
cristyc7083c12009-10-14 03:16:55 +00008645clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008646 ;
8647 return 0;
8648}
8649_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008650if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008651 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00008652fi
cristy8b350f62009-11-15 23:12:43 +00008653rm -f core conftest.err conftest.$ac_objext \
8654 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008655fi
8656
cristy43596fe2010-01-21 16:46:08 +00008657 LIBS=$ax_save_LIBS
8658 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008659fi
cristy8b350f62009-11-15 23:12:43 +00008660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00008661$as_echo "$ax_cv_check_cl_libcl" >&6; }
8662
cristy43596fe2010-01-21 16:46:08 +00008663 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008664 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
8665else
cristy99cc3002010-01-21 14:50:11 +00008666 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
8667$as_echo "#define _OPENCL 1" >>confdefs.h
8668
cristy736173a2009-09-20 21:18:22 +00008669fi
cristy43596fe2010-01-21 16:46:08 +00008670 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008671ac_cpp='$CPP $CPPFLAGS'
8672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8674ac_compiler_gnu=$ac_cv_c_compiler_gnu
8675
cristy43596fe2010-01-21 16:46:08 +00008676fi
cristy736173a2009-09-20 21:18:22 +00008677
8678
8679
8680
cristyc7083c12009-10-14 03:16:55 +00008681CFLAGS="$CL_CFLAGS $CFLAGS"
8682LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00008683
cristy2e8b51d2009-10-17 18:26:15 +00008684
cristy3ed852e2009-09-05 21:47:34 +00008685########
8686#
8687# Check for large file support
8688#
8689########
8690# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00008691if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008692 enableval=$enable_largefile;
8693fi
8694
8695if test "$enable_largefile" != no; then
8696
cristy8b350f62009-11-15 23:12:43 +00008697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008698$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008699if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008700 $as_echo_n "(cached) " >&6
8701else
8702 ac_cv_sys_largefile_CC=no
8703 if test "$GCC" != yes; then
8704 ac_save_CC=$CC
8705 while :; do
8706 # IRIX 6.2 and later do not support large files by default,
8707 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00008708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008709/* end confdefs.h. */
8710#include <sys/types.h>
8711 /* Check that off_t can represent 2**63 - 1 correctly.
8712 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8713 since some C++ compilers masquerading as C compilers
8714 incorrectly reject 9223372036854775807. */
8715#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8716 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8717 && LARGE_OFF_T % 2147483647 == 1)
8718 ? 1 : -1];
8719int
8720main ()
8721{
8722
8723 ;
8724 return 0;
8725}
8726_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008727 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008728 break
cristy3ed852e2009-09-05 21:47:34 +00008729fi
cristy3ed852e2009-09-05 21:47:34 +00008730rm -f core conftest.err conftest.$ac_objext
8731 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00008732 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008733 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00008734fi
cristy3ed852e2009-09-05 21:47:34 +00008735rm -f core conftest.err conftest.$ac_objext
8736 break
8737 done
8738 CC=$ac_save_CC
8739 rm -f conftest.$ac_ext
8740 fi
8741fi
cristy8b350f62009-11-15 23:12:43 +00008742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008743$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8744 if test "$ac_cv_sys_largefile_CC" != no; then
8745 CC=$CC$ac_cv_sys_largefile_CC
8746 fi
8747
cristy8b350f62009-11-15 23:12:43 +00008748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008749$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008750if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008751 $as_echo_n "(cached) " >&6
8752else
8753 while :; do
cristy8b350f62009-11-15 23:12:43 +00008754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008755/* end confdefs.h. */
8756#include <sys/types.h>
8757 /* Check that off_t can represent 2**63 - 1 correctly.
8758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8759 since some C++ compilers masquerading as C compilers
8760 incorrectly reject 9223372036854775807. */
8761#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8763 && LARGE_OFF_T % 2147483647 == 1)
8764 ? 1 : -1];
8765int
8766main ()
8767{
8768
8769 ;
8770 return 0;
8771}
8772_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008773if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008774 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00008775fi
cristy3ed852e2009-09-05 21:47:34 +00008776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00008777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008778/* end confdefs.h. */
8779#define _FILE_OFFSET_BITS 64
8780#include <sys/types.h>
8781 /* Check that off_t can represent 2**63 - 1 correctly.
8782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8783 since some C++ compilers masquerading as C compilers
8784 incorrectly reject 9223372036854775807. */
8785#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8787 && LARGE_OFF_T % 2147483647 == 1)
8788 ? 1 : -1];
8789int
8790main ()
8791{
8792
8793 ;
8794 return 0;
8795}
8796_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008797if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008798 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00008799fi
cristy3ed852e2009-09-05 21:47:34 +00008800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801 ac_cv_sys_file_offset_bits=unknown
8802 break
8803done
8804fi
cristy8b350f62009-11-15 23:12:43 +00008805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00008806$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8807case $ac_cv_sys_file_offset_bits in #(
8808 no | unknown) ;;
8809 *)
8810cat >>confdefs.h <<_ACEOF
8811#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8812_ACEOF
8813;;
8814esac
8815rm -rf conftest*
8816 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00008817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008818$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008819if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008820 $as_echo_n "(cached) " >&6
8821else
8822 while :; do
cristy8b350f62009-11-15 23:12:43 +00008823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008824/* end confdefs.h. */
8825#include <sys/types.h>
8826 /* Check that off_t can represent 2**63 - 1 correctly.
8827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8828 since some C++ compilers masquerading as C compilers
8829 incorrectly reject 9223372036854775807. */
8830#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8832 && LARGE_OFF_T % 2147483647 == 1)
8833 ? 1 : -1];
8834int
8835main ()
8836{
8837
8838 ;
8839 return 0;
8840}
8841_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008842if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008843 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00008844fi
cristy3ed852e2009-09-05 21:47:34 +00008845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00008846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008847/* end confdefs.h. */
8848#define _LARGE_FILES 1
8849#include <sys/types.h>
8850 /* Check that off_t can represent 2**63 - 1 correctly.
8851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8852 since some C++ compilers masquerading as C compilers
8853 incorrectly reject 9223372036854775807. */
8854#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8856 && LARGE_OFF_T % 2147483647 == 1)
8857 ? 1 : -1];
8858int
8859main ()
8860{
8861
8862 ;
8863 return 0;
8864}
8865_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008866if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008867 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00008868fi
cristy3ed852e2009-09-05 21:47:34 +00008869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870 ac_cv_sys_large_files=unknown
8871 break
8872done
8873fi
cristy8b350f62009-11-15 23:12:43 +00008874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008875$as_echo "$ac_cv_sys_large_files" >&6; }
8876case $ac_cv_sys_large_files in #(
8877 no | unknown) ;;
8878 *)
8879cat >>confdefs.h <<_ACEOF
8880#define _LARGE_FILES $ac_cv_sys_large_files
8881_ACEOF
8882;;
8883esac
8884rm -rf conftest*
8885 fi
8886fi
8887
cristy8b350f62009-11-15 23:12:43 +00008888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008889$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008890if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008891 $as_echo_n "(cached) " >&6
8892else
8893 while :; do
cristy8b350f62009-11-15 23:12:43 +00008894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008895/* end confdefs.h. */
8896#include <sys/types.h> /* for off_t */
8897 #include <stdio.h>
8898int
8899main ()
8900{
8901int (*fp) (FILE *, off_t, int) = fseeko;
8902 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8903 ;
8904 return 0;
8905}
8906_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008907if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008908 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00008909fi
cristy8b350f62009-11-15 23:12:43 +00008910rm -f core conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008913/* end confdefs.h. */
8914#define _LARGEFILE_SOURCE 1
8915#include <sys/types.h> /* for off_t */
8916 #include <stdio.h>
8917int
8918main ()
8919{
8920int (*fp) (FILE *, off_t, int) = fseeko;
8921 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8922 ;
8923 return 0;
8924}
8925_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008926if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008927 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00008928fi
cristy8b350f62009-11-15 23:12:43 +00008929rm -f core conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008931 ac_cv_sys_largefile_source=unknown
8932 break
8933done
8934fi
cristy8b350f62009-11-15 23:12:43 +00008935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00008936$as_echo "$ac_cv_sys_largefile_source" >&6; }
8937case $ac_cv_sys_largefile_source in #(
8938 no | unknown) ;;
8939 *)
8940cat >>confdefs.h <<_ACEOF
8941#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8942_ACEOF
8943;;
8944esac
8945rm -rf conftest*
8946
8947# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8948# in glibc 2.1.3, but that breaks too many other things.
8949# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8950if test $ac_cv_sys_largefile_source != unknown; then
8951
cristy8b350f62009-11-15 23:12:43 +00008952$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008953
8954fi
8955
8956LFS_CPPFLAGS=''
8957if test "$enable_largefile" != no; then
8958 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8959 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8960 else
cristy8b350f62009-11-15 23:12:43 +00008961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00008962$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008963 if test "$cross_compiling" = yes; then :
8964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00008966as_fn_error "cannot run test program while cross compiling
8967See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00008968else
cristy8b350f62009-11-15 23:12:43 +00008969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008971#include <unistd.h>
8972 main () {
8973 exit(!(sizeof(off_t) == 8));
8974 }
8975_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008976if ac_fn_c_try_run "$LINENO"; then :
8977 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008978
cristy8b350f62009-11-15 23:12:43 +00008979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008980$as_echo "yes" >&6; }
8981else
cristy8b350f62009-11-15 23:12:43 +00008982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008983$as_echo "no" >&6; }
8984fi
cristy8b350f62009-11-15 23:12:43 +00008985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8986 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008987fi
8988
cristy3ed852e2009-09-05 21:47:34 +00008989 fi
8990 if test "$ac_cv_sys_large_files" != 'no'; then
8991 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8992 fi
8993 if test "$ac_cv_sys_largefile_source" != 'no'; then
8994 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8995 fi
8996fi
8997
8998
8999#
9000# Configure libtool & libltdl
9001#
9002# Configure libtool
9003enable_dlopen=yes
9004
9005
9006
9007case `pwd` in
9008 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009010$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9011esac
9012
9013
9014
cristy18304f92009-11-22 15:48:26 +00009015macro_version='2.2.6b'
9016macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00009017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030ltmain="$ac_aux_dir/ltmain.sh"
9031
cristy8b350f62009-11-15 23:12:43 +00009032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009033$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009034if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009035 $as_echo_n "(cached) " >&6
9036else
9037 if test -n "$NM"; then
9038 # Let the user override the test.
9039 lt_cv_path_NM="$NM"
9040else
9041 lt_nm_to_check="${ac_tool_prefix}nm"
9042 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9043 lt_nm_to_check="$lt_nm_to_check nm"
9044 fi
9045 for lt_tmp_nm in $lt_nm_to_check; do
9046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9047 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9048 IFS="$lt_save_ifs"
9049 test -z "$ac_dir" && ac_dir=.
9050 tmp_nm="$ac_dir/$lt_tmp_nm"
9051 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9052 # Check to see if the nm accepts a BSD-compat flag.
9053 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9054 # nm: unknown option "B" ignored
9055 # Tru64's nm complains that /dev/null is an invalid object file
9056 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9057 */dev/null* | *'Invalid file or object type'*)
9058 lt_cv_path_NM="$tmp_nm -B"
9059 break
9060 ;;
9061 *)
9062 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9063 */dev/null*)
9064 lt_cv_path_NM="$tmp_nm -p"
9065 break
9066 ;;
9067 *)
9068 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9069 continue # so that we can try to find one that supports BSD flags
9070 ;;
9071 esac
9072 ;;
9073 esac
9074 fi
9075 done
9076 IFS="$lt_save_ifs"
9077 done
9078 : ${lt_cv_path_NM=no}
9079fi
9080fi
cristy8b350f62009-11-15 23:12:43 +00009081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009082$as_echo "$lt_cv_path_NM" >&6; }
9083if test "$lt_cv_path_NM" != "no"; then
9084 NM="$lt_cv_path_NM"
9085else
9086 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00009087 if test -n "$ac_tool_prefix"; then
9088 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009089 do
9090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9091set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009093$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009094if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009095 $as_echo_n "(cached) " >&6
9096else
9097 if test -n "$DUMPBIN"; then
9098 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9099else
9100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101for as_dir in $PATH
9102do
9103 IFS=$as_save_IFS
9104 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009105 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9107 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009109 break 2
9110 fi
9111done
cristy8b350f62009-11-15 23:12:43 +00009112 done
cristy3ed852e2009-09-05 21:47:34 +00009113IFS=$as_save_IFS
9114
9115fi
9116fi
9117DUMPBIN=$ac_cv_prog_DUMPBIN
9118if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009120$as_echo "$DUMPBIN" >&6; }
9121else
cristy8b350f62009-11-15 23:12:43 +00009122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009123$as_echo "no" >&6; }
9124fi
9125
9126
9127 test -n "$DUMPBIN" && break
9128 done
9129fi
9130if test -z "$DUMPBIN"; then
9131 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00009132 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009133do
9134 # Extract the first word of "$ac_prog", so it can be a program name with args.
9135set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009137$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009138if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009139 $as_echo_n "(cached) " >&6
9140else
9141 if test -n "$ac_ct_DUMPBIN"; then
9142 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9143else
9144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145for as_dir in $PATH
9146do
9147 IFS=$as_save_IFS
9148 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009149 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9151 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009153 break 2
9154 fi
9155done
cristy8b350f62009-11-15 23:12:43 +00009156 done
cristy3ed852e2009-09-05 21:47:34 +00009157IFS=$as_save_IFS
9158
9159fi
9160fi
9161ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9162if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009164$as_echo "$ac_ct_DUMPBIN" >&6; }
9165else
cristy8b350f62009-11-15 23:12:43 +00009166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009167$as_echo "no" >&6; }
9168fi
9169
9170
9171 test -n "$ac_ct_DUMPBIN" && break
9172done
9173
9174 if test "x$ac_ct_DUMPBIN" = x; then
9175 DUMPBIN=":"
9176 else
9177 case $cross_compiling:$ac_tool_warned in
9178yes:)
cristy8b350f62009-11-15 23:12:43 +00009179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9181ac_tool_warned=yes ;;
9182esac
9183 DUMPBIN=$ac_ct_DUMPBIN
9184 fi
9185fi
9186
9187
9188 if test "$DUMPBIN" != ":"; then
9189 NM="$DUMPBIN"
9190 fi
9191fi
9192test -z "$NM" && NM=nm
9193
9194
9195
9196
9197
9198
cristy8b350f62009-11-15 23:12:43 +00009199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009200$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009201if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009202 $as_echo_n "(cached) " >&6
9203else
9204 lt_cv_nm_interface="BSD nm"
9205 echo "int some_variable = 0;" > conftest.$ac_ext
cristy3225a072010-04-17 01:47:28 +00009206 (eval echo "\"\$as_me:9206: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009207 (eval "$ac_compile" 2>conftest.err)
9208 cat conftest.err >&5
cristy3225a072010-04-17 01:47:28 +00009209 (eval echo "\"\$as_me:9209: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009210 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9211 cat conftest.err >&5
cristy3225a072010-04-17 01:47:28 +00009212 (eval echo "\"\$as_me:9212: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009213 cat conftest.out >&5
9214 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9215 lt_cv_nm_interface="MS dumpbin"
9216 fi
9217 rm -f conftest*
9218fi
cristy8b350f62009-11-15 23:12:43 +00009219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009220$as_echo "$lt_cv_nm_interface" >&6; }
9221
9222# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009224$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009225if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009226 $as_echo_n "(cached) " >&6
9227else
9228 i=0
9229 teststring="ABCD"
9230
9231 case $build_os in
9232 msdosdjgpp*)
9233 # On DJGPP, this test can blow up pretty badly due to problems in libc
9234 # (any single argument exceeding 2000 bytes causes a buffer overrun
9235 # during glob expansion). Even if it were fixed, the result of this
9236 # check would be larger than it should be.
9237 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9238 ;;
9239
9240 gnu*)
9241 # Under GNU Hurd, this test is not required because there is
9242 # no limit to the length of command line arguments.
9243 # Libtool will interpret -1 as no limit whatsoever
9244 lt_cv_sys_max_cmd_len=-1;
9245 ;;
9246
9247 cygwin* | mingw* | cegcc*)
9248 # On Win9x/ME, this test blows up -- it succeeds, but takes
9249 # about 5 minutes as the teststring grows exponentially.
9250 # Worse, since 9x/ME are not pre-emptively multitasking,
9251 # you end up with a "frozen" computer, even though with patience
9252 # the test eventually succeeds (with a max line length of 256k).
9253 # Instead, let's just punt: use the minimum linelength reported by
9254 # all of the supported platforms: 8192 (on NT/2K/XP).
9255 lt_cv_sys_max_cmd_len=8192;
9256 ;;
9257
9258 amigaos*)
9259 # On AmigaOS with pdksh, this test takes hours, literally.
9260 # So we just punt and use a minimum line length of 8192.
9261 lt_cv_sys_max_cmd_len=8192;
9262 ;;
9263
9264 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9265 # This has been around since 386BSD, at least. Likely further.
9266 if test -x /sbin/sysctl; then
9267 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9268 elif test -x /usr/sbin/sysctl; then
9269 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9270 else
9271 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9272 fi
9273 # And add a safety zone
9274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9276 ;;
9277
9278 interix*)
9279 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9280 lt_cv_sys_max_cmd_len=196608
9281 ;;
9282
9283 osf*)
9284 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9285 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9286 # nice to cause kernel panics so lets avoid the loop below.
9287 # First set a reasonable default.
9288 lt_cv_sys_max_cmd_len=16384
9289 #
9290 if test -x /sbin/sysconfig; then
9291 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9292 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9293 esac
9294 fi
9295 ;;
9296 sco3.2v5*)
9297 lt_cv_sys_max_cmd_len=102400
9298 ;;
9299 sysv5* | sco5v6* | sysv4.2uw2*)
9300 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9301 if test -n "$kargmax"; then
9302 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9303 else
9304 lt_cv_sys_max_cmd_len=32768
9305 fi
9306 ;;
9307 *)
9308 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9309 if test -n "$lt_cv_sys_max_cmd_len"; then
9310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9312 else
9313 # Make teststring a little bigger before we do anything with it.
9314 # a 1K string should be a reasonable start.
9315 for i in 1 2 3 4 5 6 7 8 ; do
9316 teststring=$teststring$teststring
9317 done
9318 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9319 # If test is not a shell built-in, we'll probably end up computing a
9320 # maximum length that is only half of the actual maximum length, but
9321 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00009322 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9323 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009324 test $i != 17 # 1/2 MB should be enough
9325 do
9326 i=`expr $i + 1`
9327 teststring=$teststring$teststring
9328 done
9329 # Only check the string length outside the loop.
9330 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9331 teststring=
9332 # Add a significant safety factor because C++ compilers can tack on
9333 # massive amounts of additional arguments before passing them to the
9334 # linker. It appears as though 1/2 is a usable value.
9335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9336 fi
9337 ;;
9338 esac
9339
9340fi
9341
9342if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009344$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9345else
cristy8b350f62009-11-15 23:12:43 +00009346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009347$as_echo "none" >&6; }
9348fi
9349max_cmd_len=$lt_cv_sys_max_cmd_len
9350
9351
9352
9353
9354
9355
9356: ${CP="cp -f"}
9357: ${MV="mv -f"}
9358: ${RM="rm -f"}
9359
cristy8b350f62009-11-15 23:12:43 +00009360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009361$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9362# Try some XSI features
9363xsi_shell=no
9364( _lt_dummy="a/b/c"
9365 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9366 = c,a/b,, \
9367 && eval 'test $(( 1 + 1 )) -eq 2 \
9368 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9369 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009371$as_echo "$xsi_shell" >&6; }
9372
9373
cristy8b350f62009-11-15 23:12:43 +00009374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009375$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9376lt_shell_append=no
9377( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9378 >/dev/null 2>&1 \
9379 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009381$as_echo "$lt_shell_append" >&6; }
9382
9383
9384if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9385 lt_unset=unset
9386else
9387 lt_unset=false
9388fi
9389
9390
9391
9392
9393
9394# test EBCDIC or ASCII
9395case `echo X|tr X '\101'` in
9396 A) # ASCII based system
9397 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9398 lt_SP2NL='tr \040 \012'
9399 lt_NL2SP='tr \015\012 \040\040'
9400 ;;
9401 *) # EBCDIC based system
9402 lt_SP2NL='tr \100 \n'
9403 lt_NL2SP='tr \r\n \100\100'
9404 ;;
9405esac
9406
9407
9408
9409
9410
9411
9412
9413
9414
cristy8b350f62009-11-15 23:12:43 +00009415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009416$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009417if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009418 $as_echo_n "(cached) " >&6
9419else
9420 lt_cv_ld_reload_flag='-r'
9421fi
cristy8b350f62009-11-15 23:12:43 +00009422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009423$as_echo "$lt_cv_ld_reload_flag" >&6; }
9424reload_flag=$lt_cv_ld_reload_flag
9425case $reload_flag in
9426"" | " "*) ;;
9427*) reload_flag=" $reload_flag" ;;
9428esac
9429reload_cmds='$LD$reload_flag -o $output$reload_objs'
9430case $host_os in
9431 darwin*)
9432 if test "$GCC" = yes; then
9433 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9434 else
9435 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9436 fi
9437 ;;
9438esac
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448if test -n "$ac_tool_prefix"; then
9449 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9450set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009452$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009453if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009454 $as_echo_n "(cached) " >&6
9455else
9456 if test -n "$OBJDUMP"; then
9457 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9458else
9459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460for as_dir in $PATH
9461do
9462 IFS=$as_save_IFS
9463 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009464 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9466 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009468 break 2
9469 fi
9470done
cristy8b350f62009-11-15 23:12:43 +00009471 done
cristy3ed852e2009-09-05 21:47:34 +00009472IFS=$as_save_IFS
9473
9474fi
9475fi
9476OBJDUMP=$ac_cv_prog_OBJDUMP
9477if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009479$as_echo "$OBJDUMP" >&6; }
9480else
cristy8b350f62009-11-15 23:12:43 +00009481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009482$as_echo "no" >&6; }
9483fi
9484
9485
9486fi
9487if test -z "$ac_cv_prog_OBJDUMP"; then
9488 ac_ct_OBJDUMP=$OBJDUMP
9489 # Extract the first word of "objdump", so it can be a program name with args.
9490set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009492$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009493if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009494 $as_echo_n "(cached) " >&6
9495else
9496 if test -n "$ac_ct_OBJDUMP"; then
9497 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9498else
9499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500for as_dir in $PATH
9501do
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009504 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9506 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009508 break 2
9509 fi
9510done
cristy8b350f62009-11-15 23:12:43 +00009511 done
cristy3ed852e2009-09-05 21:47:34 +00009512IFS=$as_save_IFS
9513
9514fi
9515fi
9516ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9517if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009519$as_echo "$ac_ct_OBJDUMP" >&6; }
9520else
cristy8b350f62009-11-15 23:12:43 +00009521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009522$as_echo "no" >&6; }
9523fi
9524
9525 if test "x$ac_ct_OBJDUMP" = x; then
9526 OBJDUMP="false"
9527 else
9528 case $cross_compiling:$ac_tool_warned in
9529yes:)
cristy8b350f62009-11-15 23:12:43 +00009530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9532ac_tool_warned=yes ;;
9533esac
9534 OBJDUMP=$ac_ct_OBJDUMP
9535 fi
9536else
9537 OBJDUMP="$ac_cv_prog_OBJDUMP"
9538fi
9539
9540test -z "$OBJDUMP" && OBJDUMP=objdump
9541
9542
9543
9544
9545
9546
cristy8b350f62009-11-15 23:12:43 +00009547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00009548$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009549if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009550 $as_echo_n "(cached) " >&6
9551else
9552 lt_cv_file_magic_cmd='$MAGIC_CMD'
9553lt_cv_file_magic_test_file=
9554lt_cv_deplibs_check_method='unknown'
9555# Need to set the preceding variable on all platforms that support
9556# interlibrary dependencies.
9557# 'none' -- dependencies not supported.
9558# `unknown' -- same as none, but documents that we really don't know.
9559# 'pass_all' -- all dependencies passed with no checks.
9560# 'test_compile' -- check by making test program.
9561# 'file_magic [[regex]]' -- check by looking for files in library path
9562# which responds to the $file_magic_cmd with a given extended regex.
9563# If you have `file' or equivalent on your system and you're not sure
9564# whether `pass_all' will *always* work, you probably want this one.
9565
9566case $host_os in
9567aix[4-9]*)
9568 lt_cv_deplibs_check_method=pass_all
9569 ;;
9570
9571beos*)
9572 lt_cv_deplibs_check_method=pass_all
9573 ;;
9574
9575bsdi[45]*)
9576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9577 lt_cv_file_magic_cmd='/usr/bin/file -L'
9578 lt_cv_file_magic_test_file=/shlib/libc.so
9579 ;;
9580
9581cygwin*)
9582 # func_win32_libid is a shell function defined in ltmain.sh
9583 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9584 lt_cv_file_magic_cmd='func_win32_libid'
9585 ;;
9586
9587mingw* | pw32*)
9588 # Base MSYS/MinGW do not provide the 'file' command needed by
9589 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9590 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +00009591 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00009592 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9593 lt_cv_file_magic_cmd='func_win32_libid'
9594 else
9595 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9596 lt_cv_file_magic_cmd='$OBJDUMP -f'
9597 fi
9598 ;;
9599
cristy18304f92009-11-22 15:48:26 +00009600cegcc)
cristy3ed852e2009-09-05 21:47:34 +00009601 # use the weaker test based on 'objdump'. See mingw*.
9602 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9603 lt_cv_file_magic_cmd='$OBJDUMP -f'
9604 ;;
9605
9606darwin* | rhapsody*)
9607 lt_cv_deplibs_check_method=pass_all
9608 ;;
9609
9610freebsd* | dragonfly*)
9611 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9612 case $host_cpu in
9613 i*86 )
9614 # Not sure whether the presence of OpenBSD here was a mistake.
9615 # Let's accept both of them until this is cleared up.
9616 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9617 lt_cv_file_magic_cmd=/usr/bin/file
9618 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9619 ;;
9620 esac
9621 else
9622 lt_cv_deplibs_check_method=pass_all
9623 fi
9624 ;;
9625
9626gnu*)
9627 lt_cv_deplibs_check_method=pass_all
9628 ;;
9629
9630hpux10.20* | hpux11*)
9631 lt_cv_file_magic_cmd=/usr/bin/file
9632 case $host_cpu in
9633 ia64*)
9634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9635 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9636 ;;
9637 hppa*64*)
cristy18304f92009-11-22 15:48:26 +00009638 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 +00009639 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9640 ;;
9641 *)
cristy18304f92009-11-22 15:48:26 +00009642 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 +00009643 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9644 ;;
9645 esac
9646 ;;
9647
9648interix[3-9]*)
9649 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9651 ;;
9652
9653irix5* | irix6* | nonstopux*)
9654 case $LD in
9655 *-32|*"-32 ") libmagic=32-bit;;
9656 *-n32|*"-n32 ") libmagic=N32;;
9657 *-64|*"-64 ") libmagic=64-bit;;
9658 *) libmagic=never-match;;
9659 esac
9660 lt_cv_deplibs_check_method=pass_all
9661 ;;
9662
9663# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +00009664linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00009665 lt_cv_deplibs_check_method=pass_all
9666 ;;
9667
9668netbsd*)
9669 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9671 else
9672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9673 fi
9674 ;;
9675
9676newos6*)
9677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9678 lt_cv_file_magic_cmd=/usr/bin/file
9679 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9680 ;;
9681
9682*nto* | *qnx*)
9683 lt_cv_deplibs_check_method=pass_all
9684 ;;
9685
9686openbsd*)
9687 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9689 else
9690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9691 fi
9692 ;;
9693
9694osf3* | osf4* | osf5*)
9695 lt_cv_deplibs_check_method=pass_all
9696 ;;
9697
9698rdos*)
9699 lt_cv_deplibs_check_method=pass_all
9700 ;;
9701
9702solaris*)
9703 lt_cv_deplibs_check_method=pass_all
9704 ;;
9705
9706sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9707 lt_cv_deplibs_check_method=pass_all
9708 ;;
9709
9710sysv4 | sysv4.3*)
9711 case $host_vendor in
9712 motorola)
9713 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]'
9714 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9715 ;;
9716 ncr)
9717 lt_cv_deplibs_check_method=pass_all
9718 ;;
9719 sequent)
9720 lt_cv_file_magic_cmd='/bin/file'
9721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9722 ;;
9723 sni)
9724 lt_cv_file_magic_cmd='/bin/file'
9725 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9726 lt_cv_file_magic_test_file=/lib/libc.so
9727 ;;
9728 siemens)
9729 lt_cv_deplibs_check_method=pass_all
9730 ;;
9731 pc)
9732 lt_cv_deplibs_check_method=pass_all
9733 ;;
9734 esac
9735 ;;
9736
9737tpf*)
9738 lt_cv_deplibs_check_method=pass_all
9739 ;;
9740esac
9741
9742fi
cristy8b350f62009-11-15 23:12:43 +00009743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00009744$as_echo "$lt_cv_deplibs_check_method" >&6; }
9745file_magic_cmd=$lt_cv_file_magic_cmd
9746deplibs_check_method=$lt_cv_deplibs_check_method
9747test -z "$deplibs_check_method" && deplibs_check_method=unknown
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760if test -n "$ac_tool_prefix"; then
9761 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9762set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009764$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009765if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009766 $as_echo_n "(cached) " >&6
9767else
9768 if test -n "$AR"; then
9769 ac_cv_prog_AR="$AR" # Let the user override the test.
9770else
9771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772for as_dir in $PATH
9773do
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00009779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009780 break 2
9781 fi
9782done
cristy8b350f62009-11-15 23:12:43 +00009783 done
cristy3ed852e2009-09-05 21:47:34 +00009784IFS=$as_save_IFS
9785
9786fi
9787fi
9788AR=$ac_cv_prog_AR
9789if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00009790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00009791$as_echo "$AR" >&6; }
9792else
cristy8b350f62009-11-15 23:12:43 +00009793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009794$as_echo "no" >&6; }
9795fi
9796
9797
9798fi
9799if test -z "$ac_cv_prog_AR"; then
9800 ac_ct_AR=$AR
9801 # Extract the first word of "ar", so it can be a program name with args.
9802set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009804$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009805if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009806 $as_echo_n "(cached) " >&6
9807else
9808 if test -n "$ac_ct_AR"; then
9809 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9810else
9811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812for as_dir in $PATH
9813do
9814 IFS=$as_save_IFS
9815 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9818 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00009819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009820 break 2
9821 fi
9822done
cristy8b350f62009-11-15 23:12:43 +00009823 done
cristy3ed852e2009-09-05 21:47:34 +00009824IFS=$as_save_IFS
9825
9826fi
9827fi
9828ac_ct_AR=$ac_cv_prog_ac_ct_AR
9829if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00009830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00009831$as_echo "$ac_ct_AR" >&6; }
9832else
cristy8b350f62009-11-15 23:12:43 +00009833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009834$as_echo "no" >&6; }
9835fi
9836
9837 if test "x$ac_ct_AR" = x; then
9838 AR="false"
9839 else
9840 case $cross_compiling:$ac_tool_warned in
9841yes:)
cristy8b350f62009-11-15 23:12:43 +00009842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9844ac_tool_warned=yes ;;
9845esac
9846 AR=$ac_ct_AR
9847 fi
9848else
9849 AR="$ac_cv_prog_AR"
9850fi
9851
9852test -z "$AR" && AR=ar
9853test -z "$AR_FLAGS" && AR_FLAGS=cru
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865if test -n "$ac_tool_prefix"; then
9866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9867set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009869$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009870if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009871 $as_echo_n "(cached) " >&6
9872else
9873 if test -n "$STRIP"; then
9874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9875else
9876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877for as_dir in $PATH
9878do
9879 IFS=$as_save_IFS
9880 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00009884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009885 break 2
9886 fi
9887done
cristy8b350f62009-11-15 23:12:43 +00009888 done
cristy3ed852e2009-09-05 21:47:34 +00009889IFS=$as_save_IFS
9890
9891fi
9892fi
9893STRIP=$ac_cv_prog_STRIP
9894if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009896$as_echo "$STRIP" >&6; }
9897else
cristy8b350f62009-11-15 23:12:43 +00009898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009899$as_echo "no" >&6; }
9900fi
9901
9902
9903fi
9904if test -z "$ac_cv_prog_STRIP"; then
9905 ac_ct_STRIP=$STRIP
9906 # Extract the first word of "strip", so it can be a program name with args.
9907set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009909$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009910if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009911 $as_echo_n "(cached) " >&6
9912else
9913 if test -n "$ac_ct_STRIP"; then
9914 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9915else
9916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917for as_dir in $PATH
9918do
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9923 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00009924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009925 break 2
9926 fi
9927done
cristy8b350f62009-11-15 23:12:43 +00009928 done
cristy3ed852e2009-09-05 21:47:34 +00009929IFS=$as_save_IFS
9930
9931fi
9932fi
9933ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9934if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009936$as_echo "$ac_ct_STRIP" >&6; }
9937else
cristy8b350f62009-11-15 23:12:43 +00009938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009939$as_echo "no" >&6; }
9940fi
9941
9942 if test "x$ac_ct_STRIP" = x; then
9943 STRIP=":"
9944 else
9945 case $cross_compiling:$ac_tool_warned in
9946yes:)
cristy8b350f62009-11-15 23:12:43 +00009947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9949ac_tool_warned=yes ;;
9950esac
9951 STRIP=$ac_ct_STRIP
9952 fi
9953else
9954 STRIP="$ac_cv_prog_STRIP"
9955fi
9956
9957test -z "$STRIP" && STRIP=:
9958
9959
9960
9961
9962
9963
9964if test -n "$ac_tool_prefix"; then
9965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9966set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009968$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009969if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009970 $as_echo_n "(cached) " >&6
9971else
9972 if test -n "$RANLIB"; then
9973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9974else
9975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976for as_dir in $PATH
9977do
9978 IFS=$as_save_IFS
9979 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00009983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009984 break 2
9985 fi
9986done
cristy8b350f62009-11-15 23:12:43 +00009987 done
cristy3ed852e2009-09-05 21:47:34 +00009988IFS=$as_save_IFS
9989
9990fi
9991fi
9992RANLIB=$ac_cv_prog_RANLIB
9993if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009995$as_echo "$RANLIB" >&6; }
9996else
cristy8b350f62009-11-15 23:12:43 +00009997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009998$as_echo "no" >&6; }
9999fi
10000
10001
10002fi
10003if test -z "$ac_cv_prog_RANLIB"; then
10004 ac_ct_RANLIB=$RANLIB
10005 # Extract the first word of "ranlib", so it can be a program name with args.
10006set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010008$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010009if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010010 $as_echo_n "(cached) " >&6
10011else
10012 if test -n "$ac_ct_RANLIB"; then
10013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10014else
10015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10016for as_dir in $PATH
10017do
10018 IFS=$as_save_IFS
10019 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10022 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010024 break 2
10025 fi
10026done
cristy8b350f62009-11-15 23:12:43 +000010027 done
cristy3ed852e2009-09-05 21:47:34 +000010028IFS=$as_save_IFS
10029
10030fi
10031fi
10032ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10033if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010035$as_echo "$ac_ct_RANLIB" >&6; }
10036else
cristy8b350f62009-11-15 23:12:43 +000010037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010038$as_echo "no" >&6; }
10039fi
10040
10041 if test "x$ac_ct_RANLIB" = x; then
10042 RANLIB=":"
10043 else
10044 case $cross_compiling:$ac_tool_warned in
10045yes:)
cristy8b350f62009-11-15 23:12:43 +000010046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10048ac_tool_warned=yes ;;
10049esac
10050 RANLIB=$ac_ct_RANLIB
10051 fi
10052else
10053 RANLIB="$ac_cv_prog_RANLIB"
10054fi
10055
10056test -z "$RANLIB" && RANLIB=:
10057
10058
10059
10060
10061
10062
10063# Determine commands to create old-style static archives.
10064old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10065old_postinstall_cmds='chmod 644 $oldlib'
10066old_postuninstall_cmds=
10067
10068if test -n "$RANLIB"; then
10069 case $host_os in
10070 openbsd*)
10071 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10072 ;;
10073 *)
10074 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10075 ;;
10076 esac
10077 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10078fi
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113# If no C compiler was specified, use CC.
10114LTCC=${LTCC-"$CC"}
10115
10116# If no C compiler flags were specified, use CFLAGS.
10117LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10118
10119# Allow CC to be a program name with arguments.
10120compiler=$CC
10121
10122
10123# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010125$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010126if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010127 $as_echo_n "(cached) " >&6
10128else
10129
10130# These are sane defaults that work on at least a few old systems.
10131# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10132
10133# Character class describing NM global symbol codes.
10134symcode='[BCDEGRST]'
10135
10136# Regexp to match symbols that can be accessed directly from C.
10137sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10138
10139# Define system-specific variables.
10140case $host_os in
10141aix*)
10142 symcode='[BCDT]'
10143 ;;
10144cygwin* | mingw* | pw32* | cegcc*)
10145 symcode='[ABCDGISTW]'
10146 ;;
10147hpux*)
10148 if test "$host_cpu" = ia64; then
10149 symcode='[ABCDEGRST]'
10150 fi
10151 ;;
10152irix* | nonstopux*)
10153 symcode='[BCDEGRST]'
10154 ;;
10155osf*)
10156 symcode='[BCDEGQRST]'
10157 ;;
10158solaris*)
10159 symcode='[BDRT]'
10160 ;;
10161sco3.2v5*)
10162 symcode='[DT]'
10163 ;;
10164sysv4.2uw2*)
10165 symcode='[DT]'
10166 ;;
10167sysv5* | sco5v6* | unixware* | OpenUNIX*)
10168 symcode='[ABDT]'
10169 ;;
10170sysv4)
10171 symcode='[DFNSTU]'
10172 ;;
10173esac
10174
10175# If we're using GNU nm, then use its standard symbol codes.
10176case `$NM -V 2>&1` in
10177*GNU* | *'with BFD'*)
10178 symcode='[ABCDGIRSTW]' ;;
10179esac
10180
10181# Transform an extracted symbol line into a proper C declaration.
10182# Some systems (esp. on ia64) link data and code symbols differently,
10183# so use this general approach.
10184lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10185
10186# Transform an extracted symbol line into symbol name and symbol address
10187lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10188lt_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'"
10189
10190# Handle CRLF in mingw tool chain
10191opt_cr=
10192case $build_os in
10193mingw*)
10194 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10195 ;;
10196esac
10197
10198# Try without a prefix underscore, then with it.
10199for ac_symprfx in "" "_"; do
10200
10201 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10202 symxfrm="\\1 $ac_symprfx\\2 \\2"
10203
10204 # Write the raw and C identifiers.
10205 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10206 # Fake it for dumpbin and say T for any non-static function
10207 # and D for any global variable.
10208 # Also find C++ and __fastcall symbols from MSVC++,
10209 # which start with @ or ?.
10210 lt_cv_sys_global_symbol_pipe="$AWK '"\
10211" {last_section=section; section=\$ 3};"\
10212" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10213" \$ 0!~/External *\|/{next};"\
10214" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10215" {if(hide[section]) next};"\
10216" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10217" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10218" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10219" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10220" ' prfx=^$ac_symprfx"
10221 else
10222 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10223 fi
10224
10225 # Check to see that the pipe works correctly.
10226 pipe_works=no
10227
10228 rm -f conftest*
10229 cat > conftest.$ac_ext <<_LT_EOF
10230#ifdef __cplusplus
10231extern "C" {
10232#endif
10233char nm_test_var;
10234void nm_test_func(void);
10235void nm_test_func(void){}
10236#ifdef __cplusplus
10237}
10238#endif
10239int main(){nm_test_var='a';nm_test_func();return(0);}
10240_LT_EOF
10241
cristy8b350f62009-11-15 23:12:43 +000010242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010243 (eval $ac_compile) 2>&5
10244 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10246 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010247 # Now try to grab the symbols.
10248 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +000010249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10250 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010251 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10253 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010254 # Try sorting and uniquifying the output.
10255 if sort "$nlist" | uniq > "$nlist"T; then
10256 mv -f "$nlist"T "$nlist"
10257 else
10258 rm -f "$nlist"T
10259 fi
10260
10261 # Make sure that we snagged all the symbols we need.
10262 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10263 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10264 cat <<_LT_EOF > conftest.$ac_ext
10265#ifdef __cplusplus
10266extern "C" {
10267#endif
10268
10269_LT_EOF
10270 # Now generate the symbol file.
10271 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10272
10273 cat <<_LT_EOF >> conftest.$ac_ext
10274
10275/* The mapping between symbol names and symbols. */
10276const struct {
10277 const char *name;
10278 void *address;
10279}
10280lt__PROGRAM__LTX_preloaded_symbols[] =
10281{
10282 { "@PROGRAM@", (void *) 0 },
10283_LT_EOF
10284 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10285 cat <<\_LT_EOF >> conftest.$ac_ext
10286 {0, (void *) 0}
10287};
10288
10289/* This works around a problem in FreeBSD linker */
10290#ifdef FREEBSD_WORKAROUND
10291static const void *lt_preloaded_setup() {
10292 return lt__PROGRAM__LTX_preloaded_symbols;
10293}
10294#endif
10295
10296#ifdef __cplusplus
10297}
10298#endif
10299_LT_EOF
10300 # Now try linking the two files.
10301 mv conftest.$ac_objext conftstm.$ac_objext
10302 lt_save_LIBS="$LIBS"
10303 lt_save_CFLAGS="$CFLAGS"
10304 LIBS="conftstm.$ac_objext"
10305 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010307 (eval $ac_link) 2>&5
10308 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10310 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010311 pipe_works=yes
10312 fi
10313 LIBS="$lt_save_LIBS"
10314 CFLAGS="$lt_save_CFLAGS"
10315 else
10316 echo "cannot find nm_test_func in $nlist" >&5
10317 fi
10318 else
10319 echo "cannot find nm_test_var in $nlist" >&5
10320 fi
10321 else
10322 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10323 fi
10324 else
10325 echo "$progname: failed program was:" >&5
10326 cat conftest.$ac_ext >&5
10327 fi
10328 rm -rf conftest* conftst*
10329
10330 # Do not use the global_symbol_pipe unless it works.
10331 if test "$pipe_works" = yes; then
10332 break
10333 else
10334 lt_cv_sys_global_symbol_pipe=
10335 fi
10336done
10337
10338fi
10339
10340if test -z "$lt_cv_sys_global_symbol_pipe"; then
10341 lt_cv_sys_global_symbol_to_cdecl=
10342fi
10343if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010345$as_echo "failed" >&6; }
10346else
cristy8b350f62009-11-15 23:12:43 +000010347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010348$as_echo "ok" >&6; }
10349fi
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010373if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010374 enableval=$enable_libtool_lock;
10375fi
10376
10377test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10378
10379# Some flags need to be propagated to the compiler or linker for good
10380# libtool support.
10381case $host in
10382ia64-*-hpux*)
10383 # Find out which ABI we are using.
10384 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010386 (eval $ac_compile) 2>&5
10387 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10389 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010390 case `/usr/bin/file conftest.$ac_objext` in
10391 *ELF-32*)
10392 HPUX_IA64_MODE="32"
10393 ;;
10394 *ELF-64*)
10395 HPUX_IA64_MODE="64"
10396 ;;
10397 esac
10398 fi
10399 rm -rf conftest*
10400 ;;
10401*-*-irix6*)
10402 # Find out which ABI we are using.
cristy3225a072010-04-17 01:47:28 +000010403 echo '#line 10403 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010405 (eval $ac_compile) 2>&5
10406 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10408 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010409 if test "$lt_cv_prog_gnu_ld" = yes; then
10410 case `/usr/bin/file conftest.$ac_objext` in
10411 *32-bit*)
10412 LD="${LD-ld} -melf32bsmip"
10413 ;;
10414 *N32*)
10415 LD="${LD-ld} -melf32bmipn32"
10416 ;;
10417 *64-bit*)
10418 LD="${LD-ld} -melf64bmip"
10419 ;;
10420 esac
10421 else
10422 case `/usr/bin/file conftest.$ac_objext` in
10423 *32-bit*)
10424 LD="${LD-ld} -32"
10425 ;;
10426 *N32*)
10427 LD="${LD-ld} -n32"
10428 ;;
10429 *64-bit*)
10430 LD="${LD-ld} -64"
10431 ;;
10432 esac
10433 fi
10434 fi
10435 rm -rf conftest*
10436 ;;
10437
10438x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10439s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10440 # Find out which ABI we are using.
10441 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010443 (eval $ac_compile) 2>&5
10444 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10446 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010447 case `/usr/bin/file conftest.o` in
10448 *32-bit*)
10449 case $host in
10450 x86_64-*kfreebsd*-gnu)
10451 LD="${LD-ld} -m elf_i386_fbsd"
10452 ;;
10453 x86_64-*linux*)
10454 LD="${LD-ld} -m elf_i386"
10455 ;;
10456 ppc64-*linux*|powerpc64-*linux*)
10457 LD="${LD-ld} -m elf32ppclinux"
10458 ;;
10459 s390x-*linux*)
10460 LD="${LD-ld} -m elf_s390"
10461 ;;
10462 sparc64-*linux*)
10463 LD="${LD-ld} -m elf32_sparc"
10464 ;;
10465 esac
10466 ;;
10467 *64-bit*)
10468 case $host in
10469 x86_64-*kfreebsd*-gnu)
10470 LD="${LD-ld} -m elf_x86_64_fbsd"
10471 ;;
10472 x86_64-*linux*)
10473 LD="${LD-ld} -m elf_x86_64"
10474 ;;
10475 ppc*-*linux*|powerpc*-*linux*)
10476 LD="${LD-ld} -m elf64ppc"
10477 ;;
10478 s390*-*linux*|s390*-*tpf*)
10479 LD="${LD-ld} -m elf64_s390"
10480 ;;
10481 sparc*-*linux*)
10482 LD="${LD-ld} -m elf64_sparc"
10483 ;;
10484 esac
10485 ;;
10486 esac
10487 fi
10488 rm -rf conftest*
10489 ;;
10490
10491*-*-sco3.2v5*)
10492 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10493 SAVE_CFLAGS="$CFLAGS"
10494 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010496$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010497if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010498 $as_echo_n "(cached) " >&6
10499else
10500 ac_ext=c
10501ac_cpp='$CPP $CPPFLAGS'
10502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10504ac_compiler_gnu=$ac_cv_c_compiler_gnu
10505
cristy8b350f62009-11-15 23:12:43 +000010506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010507/* end confdefs.h. */
10508
10509int
10510main ()
10511{
10512
10513 ;
10514 return 0;
10515}
10516_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010517if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010518 lt_cv_cc_needs_belf=yes
10519else
cristy8b350f62009-11-15 23:12:43 +000010520 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000010521fi
cristy8b350f62009-11-15 23:12:43 +000010522rm -f core conftest.err conftest.$ac_objext \
10523 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010524 ac_ext=c
10525ac_cpp='$CPP $CPPFLAGS'
10526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10528ac_compiler_gnu=$ac_cv_c_compiler_gnu
10529
10530fi
cristy8b350f62009-11-15 23:12:43 +000010531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010532$as_echo "$lt_cv_cc_needs_belf" >&6; }
10533 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10534 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10535 CFLAGS="$SAVE_CFLAGS"
10536 fi
10537 ;;
10538sparc*-*solaris*)
10539 # Find out which ABI we are using.
10540 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010542 (eval $ac_compile) 2>&5
10543 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10545 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010546 case `/usr/bin/file conftest.o` in
10547 *64-bit*)
10548 case $lt_cv_prog_gnu_ld in
10549 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10550 *)
10551 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10552 LD="${LD-ld} -64"
10553 fi
10554 ;;
10555 esac
10556 ;;
10557 esac
10558 fi
10559 rm -rf conftest*
10560 ;;
10561esac
10562
10563need_locks="$enable_libtool_lock"
10564
10565
10566 case $host_os in
10567 rhapsody* | darwin*)
10568 if test -n "$ac_tool_prefix"; then
10569 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10570set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010572$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010573if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010574 $as_echo_n "(cached) " >&6
10575else
10576 if test -n "$DSYMUTIL"; then
10577 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10578else
10579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580for as_dir in $PATH
10581do
10582 IFS=$as_save_IFS
10583 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010584 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10586 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010588 break 2
10589 fi
10590done
cristy8b350f62009-11-15 23:12:43 +000010591 done
cristy3ed852e2009-09-05 21:47:34 +000010592IFS=$as_save_IFS
10593
10594fi
10595fi
10596DSYMUTIL=$ac_cv_prog_DSYMUTIL
10597if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000010598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010599$as_echo "$DSYMUTIL" >&6; }
10600else
cristy8b350f62009-11-15 23:12:43 +000010601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010602$as_echo "no" >&6; }
10603fi
10604
10605
10606fi
10607if test -z "$ac_cv_prog_DSYMUTIL"; then
10608 ac_ct_DSYMUTIL=$DSYMUTIL
10609 # Extract the first word of "dsymutil", so it can be a program name with args.
10610set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010612$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010613if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010614 $as_echo_n "(cached) " >&6
10615else
10616 if test -n "$ac_ct_DSYMUTIL"; then
10617 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10618else
10619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10620for as_dir in $PATH
10621do
10622 IFS=$as_save_IFS
10623 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10626 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010628 break 2
10629 fi
10630done
cristy8b350f62009-11-15 23:12:43 +000010631 done
cristy3ed852e2009-09-05 21:47:34 +000010632IFS=$as_save_IFS
10633
10634fi
10635fi
10636ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10637if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000010638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010639$as_echo "$ac_ct_DSYMUTIL" >&6; }
10640else
cristy8b350f62009-11-15 23:12:43 +000010641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010642$as_echo "no" >&6; }
10643fi
10644
10645 if test "x$ac_ct_DSYMUTIL" = x; then
10646 DSYMUTIL=":"
10647 else
10648 case $cross_compiling:$ac_tool_warned in
10649yes:)
cristy8b350f62009-11-15 23:12:43 +000010650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10652ac_tool_warned=yes ;;
10653esac
10654 DSYMUTIL=$ac_ct_DSYMUTIL
10655 fi
10656else
10657 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10658fi
10659
10660 if test -n "$ac_tool_prefix"; then
10661 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10662set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010664$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010665if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010666 $as_echo_n "(cached) " >&6
10667else
10668 if test -n "$NMEDIT"; then
10669 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10670else
10671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672for as_dir in $PATH
10673do
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010676 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10678 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000010679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010680 break 2
10681 fi
10682done
cristy8b350f62009-11-15 23:12:43 +000010683 done
cristy3ed852e2009-09-05 21:47:34 +000010684IFS=$as_save_IFS
10685
10686fi
10687fi
10688NMEDIT=$ac_cv_prog_NMEDIT
10689if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000010690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000010691$as_echo "$NMEDIT" >&6; }
10692else
cristy8b350f62009-11-15 23:12:43 +000010693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010694$as_echo "no" >&6; }
10695fi
10696
10697
10698fi
10699if test -z "$ac_cv_prog_NMEDIT"; then
10700 ac_ct_NMEDIT=$NMEDIT
10701 # Extract the first word of "nmedit", so it can be a program name with args.
10702set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010704$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010705if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010706 $as_echo_n "(cached) " >&6
10707else
10708 if test -n "$ac_ct_NMEDIT"; then
10709 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10710else
10711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712for as_dir in $PATH
10713do
10714 IFS=$as_save_IFS
10715 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010716 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10718 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000010719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010720 break 2
10721 fi
10722done
cristy8b350f62009-11-15 23:12:43 +000010723 done
cristy3ed852e2009-09-05 21:47:34 +000010724IFS=$as_save_IFS
10725
10726fi
10727fi
10728ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10729if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000010730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000010731$as_echo "$ac_ct_NMEDIT" >&6; }
10732else
cristy8b350f62009-11-15 23:12:43 +000010733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010734$as_echo "no" >&6; }
10735fi
10736
10737 if test "x$ac_ct_NMEDIT" = x; then
10738 NMEDIT=":"
10739 else
10740 case $cross_compiling:$ac_tool_warned in
10741yes:)
cristy8b350f62009-11-15 23:12:43 +000010742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10744ac_tool_warned=yes ;;
10745esac
10746 NMEDIT=$ac_ct_NMEDIT
10747 fi
10748else
10749 NMEDIT="$ac_cv_prog_NMEDIT"
10750fi
10751
10752 if test -n "$ac_tool_prefix"; then
10753 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10754set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010756$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010757if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010758 $as_echo_n "(cached) " >&6
10759else
10760 if test -n "$LIPO"; then
10761 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10762else
10763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764for as_dir in $PATH
10765do
10766 IFS=$as_save_IFS
10767 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010768 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10770 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000010771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010772 break 2
10773 fi
10774done
cristy8b350f62009-11-15 23:12:43 +000010775 done
cristy3ed852e2009-09-05 21:47:34 +000010776IFS=$as_save_IFS
10777
10778fi
10779fi
10780LIPO=$ac_cv_prog_LIPO
10781if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000010782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000010783$as_echo "$LIPO" >&6; }
10784else
cristy8b350f62009-11-15 23:12:43 +000010785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010786$as_echo "no" >&6; }
10787fi
10788
10789
10790fi
10791if test -z "$ac_cv_prog_LIPO"; then
10792 ac_ct_LIPO=$LIPO
10793 # Extract the first word of "lipo", so it can be a program name with args.
10794set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010796$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010797if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010798 $as_echo_n "(cached) " >&6
10799else
10800 if test -n "$ac_ct_LIPO"; then
10801 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10802else
10803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804for as_dir in $PATH
10805do
10806 IFS=$as_save_IFS
10807 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010808 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10810 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000010811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010812 break 2
10813 fi
10814done
cristy8b350f62009-11-15 23:12:43 +000010815 done
cristy3ed852e2009-09-05 21:47:34 +000010816IFS=$as_save_IFS
10817
10818fi
10819fi
10820ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10821if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000010822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000010823$as_echo "$ac_ct_LIPO" >&6; }
10824else
cristy8b350f62009-11-15 23:12:43 +000010825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010826$as_echo "no" >&6; }
10827fi
10828
10829 if test "x$ac_ct_LIPO" = x; then
10830 LIPO=":"
10831 else
10832 case $cross_compiling:$ac_tool_warned in
10833yes:)
cristy8b350f62009-11-15 23:12:43 +000010834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10836ac_tool_warned=yes ;;
10837esac
10838 LIPO=$ac_ct_LIPO
10839 fi
10840else
10841 LIPO="$ac_cv_prog_LIPO"
10842fi
10843
10844 if test -n "$ac_tool_prefix"; then
10845 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10846set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010848$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010849if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010850 $as_echo_n "(cached) " >&6
10851else
10852 if test -n "$OTOOL"; then
10853 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10854else
10855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856for as_dir in $PATH
10857do
10858 IFS=$as_save_IFS
10859 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010860 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10862 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000010863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010864 break 2
10865 fi
10866done
cristy8b350f62009-11-15 23:12:43 +000010867 done
cristy3ed852e2009-09-05 21:47:34 +000010868IFS=$as_save_IFS
10869
10870fi
10871fi
10872OTOOL=$ac_cv_prog_OTOOL
10873if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010875$as_echo "$OTOOL" >&6; }
10876else
cristy8b350f62009-11-15 23:12:43 +000010877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010878$as_echo "no" >&6; }
10879fi
10880
10881
10882fi
10883if test -z "$ac_cv_prog_OTOOL"; then
10884 ac_ct_OTOOL=$OTOOL
10885 # Extract the first word of "otool", so it can be a program name with args.
10886set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010888$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010889if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010890 $as_echo_n "(cached) " >&6
10891else
10892 if test -n "$ac_ct_OTOOL"; then
10893 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10894else
10895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896for as_dir in $PATH
10897do
10898 IFS=$as_save_IFS
10899 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010900 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10902 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000010903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010904 break 2
10905 fi
10906done
cristy8b350f62009-11-15 23:12:43 +000010907 done
cristy3ed852e2009-09-05 21:47:34 +000010908IFS=$as_save_IFS
10909
10910fi
10911fi
10912ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10913if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010915$as_echo "$ac_ct_OTOOL" >&6; }
10916else
cristy8b350f62009-11-15 23:12:43 +000010917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010918$as_echo "no" >&6; }
10919fi
10920
10921 if test "x$ac_ct_OTOOL" = x; then
10922 OTOOL=":"
10923 else
10924 case $cross_compiling:$ac_tool_warned in
10925yes:)
cristy8b350f62009-11-15 23:12:43 +000010926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10928ac_tool_warned=yes ;;
10929esac
10930 OTOOL=$ac_ct_OTOOL
10931 fi
10932else
10933 OTOOL="$ac_cv_prog_OTOOL"
10934fi
10935
10936 if test -n "$ac_tool_prefix"; then
10937 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10938set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010940$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010941if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010942 $as_echo_n "(cached) " >&6
10943else
10944 if test -n "$OTOOL64"; then
10945 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10946else
10947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948for as_dir in $PATH
10949do
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10954 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000010955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010956 break 2
10957 fi
10958done
cristy8b350f62009-11-15 23:12:43 +000010959 done
cristy3ed852e2009-09-05 21:47:34 +000010960IFS=$as_save_IFS
10961
10962fi
10963fi
10964OTOOL64=$ac_cv_prog_OTOOL64
10965if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010967$as_echo "$OTOOL64" >&6; }
10968else
cristy8b350f62009-11-15 23:12:43 +000010969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010970$as_echo "no" >&6; }
10971fi
10972
10973
10974fi
10975if test -z "$ac_cv_prog_OTOOL64"; then
10976 ac_ct_OTOOL64=$OTOOL64
10977 # Extract the first word of "otool64", so it can be a program name with args.
10978set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010980$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010981if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010982 $as_echo_n "(cached) " >&6
10983else
10984 if test -n "$ac_ct_OTOOL64"; then
10985 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10986else
10987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10988for as_dir in $PATH
10989do
10990 IFS=$as_save_IFS
10991 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10994 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000010995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010996 break 2
10997 fi
10998done
cristy8b350f62009-11-15 23:12:43 +000010999 done
cristy3ed852e2009-09-05 21:47:34 +000011000IFS=$as_save_IFS
11001
11002fi
11003fi
11004ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11005if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011007$as_echo "$ac_ct_OTOOL64" >&6; }
11008else
cristy8b350f62009-11-15 23:12:43 +000011009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011010$as_echo "no" >&6; }
11011fi
11012
11013 if test "x$ac_ct_OTOOL64" = x; then
11014 OTOOL64=":"
11015 else
11016 case $cross_compiling:$ac_tool_warned in
11017yes:)
cristy8b350f62009-11-15 23:12:43 +000011018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11020ac_tool_warned=yes ;;
11021esac
11022 OTOOL64=$ac_ct_OTOOL64
11023 fi
11024else
11025 OTOOL64="$ac_cv_prog_OTOOL64"
11026fi
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
cristy8b350f62009-11-15 23:12:43 +000011054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011055$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011056if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011057 $as_echo_n "(cached) " >&6
11058else
11059 lt_cv_apple_cc_single_mod=no
11060 if test -z "${LT_MULTI_MODULE}"; then
11061 # By default we will add the -single_module flag. You can override
11062 # by either setting the environment variable LT_MULTI_MODULE
11063 # non-empty at configure time, or by adding -multi_module to the
11064 # link flags.
11065 rm -rf libconftest.dylib*
11066 echo "int foo(void){return 1;}" > conftest.c
11067 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11068-dynamiclib -Wl,-single_module conftest.c" >&5
11069 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11070 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11071 _lt_result=$?
11072 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11073 lt_cv_apple_cc_single_mod=yes
11074 else
11075 cat conftest.err >&5
11076 fi
11077 rm -rf libconftest.dylib*
11078 rm -f conftest.*
11079 fi
11080fi
cristy8b350f62009-11-15 23:12:43 +000011081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011082$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011084$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011085if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011086 $as_echo_n "(cached) " >&6
11087else
11088 lt_cv_ld_exported_symbols_list=no
11089 save_LDFLAGS=$LDFLAGS
11090 echo "_main" > conftest.sym
11091 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011093/* end confdefs.h. */
11094
11095int
11096main ()
11097{
11098
11099 ;
11100 return 0;
11101}
11102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011103if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011104 lt_cv_ld_exported_symbols_list=yes
11105else
cristy8b350f62009-11-15 23:12:43 +000011106 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011107fi
cristy8b350f62009-11-15 23:12:43 +000011108rm -f core conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011110 LDFLAGS="$save_LDFLAGS"
11111
11112fi
cristy8b350f62009-11-15 23:12:43 +000011113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011114$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11115 case $host_os in
11116 rhapsody* | darwin1.[012])
11117 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11118 darwin1.*)
11119 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11120 darwin*) # darwin 5.x on
11121 # if running on 10.5 or later, the deployment target defaults
11122 # to the OS version, if on x86, and 10.4, the deployment
11123 # target defaults to 10.4. Don't you love it?
11124 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11125 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11126 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11127 10.[012]*)
11128 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11129 10.*)
11130 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11131 esac
11132 ;;
11133 esac
11134 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11135 _lt_dar_single_mod='$single_module'
11136 fi
11137 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11138 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11139 else
11140 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11141 fi
cristy18304f92009-11-22 15:48:26 +000011142 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000011143 _lt_dsymutil='~$DSYMUTIL $lib || :'
11144 else
11145 _lt_dsymutil=
11146 fi
11147 ;;
11148 esac
11149
cristy3ed852e2009-09-05 21:47:34 +000011150for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011151do :
11152 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11153"
11154if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011155 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011156#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011157_ACEOF
11158
11159fi
11160
11161done
11162
11163
11164
cristy18304f92009-11-22 15:48:26 +000011165ac_ext=cpp
11166ac_cpp='$CXXCPP $CPPFLAGS'
11167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11170if test -z "$CXX"; then
11171 if test -n "$CCC"; then
11172 CXX=$CCC
11173 else
11174 if test -n "$ac_tool_prefix"; then
11175 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11176 do
11177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11180$as_echo_n "checking for $ac_word... " >&6; }
11181if test "${ac_cv_prog_CXX+set}" = set; then :
11182 $as_echo_n "(cached) " >&6
11183else
11184 if test -n "$CXX"; then
11185 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11186else
11187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188for as_dir in $PATH
11189do
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11194 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196 break 2
11197 fi
11198done
11199 done
11200IFS=$as_save_IFS
11201
11202fi
11203fi
11204CXX=$ac_cv_prog_CXX
11205if test -n "$CXX"; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11207$as_echo "$CXX" >&6; }
11208else
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210$as_echo "no" >&6; }
11211fi
11212
11213
11214 test -n "$CXX" && break
11215 done
11216fi
11217if test -z "$CXX"; then
11218 ac_ct_CXX=$CXX
11219 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11220do
11221 # Extract the first word of "$ac_prog", so it can be a program name with args.
11222set dummy $ac_prog; ac_word=$2
11223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224$as_echo_n "checking for $ac_word... " >&6; }
11225if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11227else
11228 if test -n "$ac_ct_CXX"; then
11229 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11230else
11231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232for as_dir in $PATH
11233do
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11238 ac_cv_prog_ac_ct_CXX="$ac_prog"
11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240 break 2
11241 fi
11242done
11243 done
11244IFS=$as_save_IFS
11245
11246fi
11247fi
11248ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11249if test -n "$ac_ct_CXX"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11251$as_echo "$ac_ct_CXX" >&6; }
11252else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254$as_echo "no" >&6; }
11255fi
11256
11257
11258 test -n "$ac_ct_CXX" && break
11259done
11260
11261 if test "x$ac_ct_CXX" = x; then
11262 CXX="g++"
11263 else
11264 case $cross_compiling:$ac_tool_warned in
11265yes:)
11266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11268ac_tool_warned=yes ;;
11269esac
11270 CXX=$ac_ct_CXX
11271 fi
11272fi
11273
11274 fi
11275fi
11276# Provide some information about the compiler.
11277$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11278set X $ac_compile
11279ac_compiler=$2
11280for ac_option in --version -v -V -qversion; do
11281 { { ac_try="$ac_compiler $ac_option >&5"
11282case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11285esac
11286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11287$as_echo "$ac_try_echo"; } >&5
11288 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11289 ac_status=$?
11290 if test -s conftest.err; then
11291 sed '10a\
11292... rest of stderr output deleted ...
11293 10q' conftest.err >conftest.er1
11294 cat conftest.er1 >&5
11295 fi
11296 rm -f conftest.er1 conftest.err
11297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11298 test $ac_status = 0; }
11299done
11300
11301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11302$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11303if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305else
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307/* end confdefs.h. */
11308
11309int
11310main ()
11311{
11312#ifndef __GNUC__
11313 choke me
11314#endif
11315
11316 ;
11317 return 0;
11318}
11319_ACEOF
11320if ac_fn_cxx_try_compile "$LINENO"; then :
11321 ac_compiler_gnu=yes
11322else
11323 ac_compiler_gnu=no
11324fi
11325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11326ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11327
11328fi
11329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11330$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11331if test $ac_compiler_gnu = yes; then
11332 GXX=yes
11333else
11334 GXX=
11335fi
11336ac_test_CXXFLAGS=${CXXFLAGS+set}
11337ac_save_CXXFLAGS=$CXXFLAGS
11338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11339$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11340if test "${ac_cv_prog_cxx_g+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
11342else
11343 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11344 ac_cxx_werror_flag=yes
11345 ac_cv_prog_cxx_g=no
11346 CXXFLAGS="-g"
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348/* end confdefs.h. */
11349
11350int
11351main ()
11352{
11353
11354 ;
11355 return 0;
11356}
11357_ACEOF
11358if ac_fn_cxx_try_compile "$LINENO"; then :
11359 ac_cv_prog_cxx_g=yes
11360else
11361 CXXFLAGS=""
11362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363/* end confdefs.h. */
11364
11365int
11366main ()
11367{
11368
11369 ;
11370 return 0;
11371}
11372_ACEOF
11373if ac_fn_cxx_try_compile "$LINENO"; then :
11374
11375else
11376 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11377 CXXFLAGS="-g"
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379/* end confdefs.h. */
11380
11381int
11382main ()
11383{
11384
11385 ;
11386 return 0;
11387}
11388_ACEOF
11389if ac_fn_cxx_try_compile "$LINENO"; then :
11390 ac_cv_prog_cxx_g=yes
11391fi
11392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11393fi
11394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11395fi
11396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11398fi
11399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11400$as_echo "$ac_cv_prog_cxx_g" >&6; }
11401if test "$ac_test_CXXFLAGS" = set; then
11402 CXXFLAGS=$ac_save_CXXFLAGS
11403elif test $ac_cv_prog_cxx_g = yes; then
11404 if test "$GXX" = yes; then
11405 CXXFLAGS="-g -O2"
11406 else
11407 CXXFLAGS="-g"
11408 fi
11409else
11410 if test "$GXX" = yes; then
11411 CXXFLAGS="-O2"
11412 else
11413 CXXFLAGS=
11414 fi
11415fi
11416ac_ext=c
11417ac_cpp='$CPP $CPPFLAGS'
11418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11420ac_compiler_gnu=$ac_cv_c_compiler_gnu
11421
11422depcc="$CXX" am_compiler_list=
11423
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11425$as_echo_n "checking dependency style of $depcc... " >&6; }
11426if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11427 $as_echo_n "(cached) " >&6
11428else
11429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11430 # We make a subdir and do the tests there. Otherwise we can end up
11431 # making bogus files that we don't know about and never remove. For
11432 # instance it was reported that on HP-UX the gcc test will end up
11433 # making a dummy file named `D' -- because `-MD' means `put the output
11434 # in D'.
11435 mkdir conftest.dir
11436 # Copy depcomp to subdir because otherwise we won't find it if we're
11437 # using a relative directory.
11438 cp "$am_depcomp" conftest.dir
11439 cd conftest.dir
11440 # We will build objects and dependencies in a subdirectory because
11441 # it helps to detect inapplicable dependency modes. For instance
11442 # both Tru64's cc and ICC support -MD to output dependencies as a
11443 # side effect of compilation, but ICC will put the dependencies in
11444 # the current directory while Tru64 will put them in the object
11445 # directory.
11446 mkdir sub
11447
11448 am_cv_CXX_dependencies_compiler_type=none
11449 if test "$am_compiler_list" = ""; then
11450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11451 fi
11452 am__universal=false
11453 case " $depcc " in #(
11454 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11455 esac
11456
11457 for depmode in $am_compiler_list; do
11458 # Setup a source with many dependencies, because some compilers
11459 # like to wrap large dependency lists on column 80 (with \), and
11460 # we should not choose a depcomp mode which is confused by this.
11461 #
11462 # We need to recreate these files for each test, as the compiler may
11463 # overwrite some of them when testing with obscure command lines.
11464 # This happens at least with the AIX C compiler.
11465 : > sub/conftest.c
11466 for i in 1 2 3 4 5 6; do
11467 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11468 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11469 # Solaris 8's {/usr,}/bin/sh.
11470 touch sub/conftst$i.h
11471 done
11472 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11473
11474 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11475 # mode. It turns out that the SunPro C++ compiler does not properly
11476 # handle `-M -o', and we need to detect this. Also, some Intel
11477 # versions had trouble with output in subdirs
11478 am__obj=sub/conftest.${OBJEXT-o}
11479 am__minus_obj="-o $am__obj"
11480 case $depmode in
11481 gcc)
11482 # This depmode causes a compiler race in universal mode.
11483 test "$am__universal" = false || continue
11484 ;;
11485 nosideeffect)
11486 # after this tag, mechanisms are not by side-effect, so they'll
11487 # only be used when explicitly requested
11488 if test "x$enable_dependency_tracking" = xyes; then
11489 continue
11490 else
11491 break
11492 fi
11493 ;;
11494 msvisualcpp | msvcmsys)
11495 # This compiler won't grok `-c -o', but also, the minuso test has
11496 # not run yet. These depmodes are late enough in the game, and
11497 # so weak that their functioning should not be impacted.
11498 am__obj=conftest.${OBJEXT-o}
11499 am__minus_obj=
11500 ;;
11501 none) break ;;
11502 esac
11503 if depmode=$depmode \
11504 source=sub/conftest.c object=$am__obj \
11505 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11506 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11507 >/dev/null 2>conftest.err &&
11508 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11510 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11512 # icc doesn't choke on unknown options, it will just issue warnings
11513 # or remarks (even with -Werror). So we grep stderr for any message
11514 # that says an option was ignored or not supported.
11515 # When given -MP, icc 7.0 and 7.1 complain thusly:
11516 # icc: Command line warning: ignoring option '-M'; no argument required
11517 # The diagnosis changed in icc 8.0:
11518 # icc: Command line remark: option '-MP' not supported
11519 if (grep 'ignoring option' conftest.err ||
11520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11521 am_cv_CXX_dependencies_compiler_type=$depmode
11522 break
11523 fi
11524 fi
11525 done
11526
11527 cd ..
11528 rm -rf conftest.dir
11529else
11530 am_cv_CXX_dependencies_compiler_type=none
11531fi
11532
11533fi
11534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11535$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11536CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11537
11538 if
11539 test "x$enable_dependency_tracking" != xno \
11540 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11541 am__fastdepCXX_TRUE=
11542 am__fastdepCXX_FALSE='#'
11543else
11544 am__fastdepCXX_TRUE='#'
11545 am__fastdepCXX_FALSE=
11546fi
11547
11548
11549if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11550 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11551 (test "X$CXX" != "Xg++"))) ; then
11552 ac_ext=cpp
11553ac_cpp='$CXXCPP $CPPFLAGS'
11554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11558$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11559if test -z "$CXXCPP"; then
11560 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11561 $as_echo_n "(cached) " >&6
11562else
11563 # Double quotes because CXXCPP needs to be expanded
11564 for CXXCPP in "$CXX -E" "/lib/cpp"
11565 do
11566 ac_preproc_ok=false
11567for ac_cxx_preproc_warn_flag in '' yes
11568do
11569 # Use a header file that comes with gcc, so configuring glibc
11570 # with a fresh cross-compiler works.
11571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11572 # <limits.h> exists even on freestanding compilers.
11573 # On the NeXT, cc -E runs the code through the compiler's parser,
11574 # not just through cpp. "Syntax error" is here to catch this case.
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576/* end confdefs.h. */
11577#ifdef __STDC__
11578# include <limits.h>
11579#else
11580# include <assert.h>
11581#endif
11582 Syntax error
11583_ACEOF
11584if ac_fn_cxx_try_cpp "$LINENO"; then :
11585
11586else
11587 # Broken: fails on valid input.
11588continue
11589fi
11590rm -f conftest.err conftest.$ac_ext
11591
11592 # OK, works on sane cases. Now check whether nonexistent headers
11593 # can be detected and how.
11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595/* end confdefs.h. */
11596#include <ac_nonexistent.h>
11597_ACEOF
11598if ac_fn_cxx_try_cpp "$LINENO"; then :
11599 # Broken: success on invalid input.
11600continue
11601else
11602 # Passes both tests.
11603ac_preproc_ok=:
11604break
11605fi
11606rm -f conftest.err conftest.$ac_ext
11607
11608done
11609# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11610rm -f conftest.err conftest.$ac_ext
11611if $ac_preproc_ok; then :
11612 break
11613fi
11614
11615 done
11616 ac_cv_prog_CXXCPP=$CXXCPP
11617
11618fi
11619 CXXCPP=$ac_cv_prog_CXXCPP
11620else
11621 ac_cv_prog_CXXCPP=$CXXCPP
11622fi
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11624$as_echo "$CXXCPP" >&6; }
11625ac_preproc_ok=false
11626for ac_cxx_preproc_warn_flag in '' yes
11627do
11628 # Use a header file that comes with gcc, so configuring glibc
11629 # with a fresh cross-compiler works.
11630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11631 # <limits.h> exists even on freestanding compilers.
11632 # On the NeXT, cc -E runs the code through the compiler's parser,
11633 # not just through cpp. "Syntax error" is here to catch this case.
11634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635/* end confdefs.h. */
11636#ifdef __STDC__
11637# include <limits.h>
11638#else
11639# include <assert.h>
11640#endif
11641 Syntax error
11642_ACEOF
11643if ac_fn_cxx_try_cpp "$LINENO"; then :
11644
11645else
11646 # Broken: fails on valid input.
11647continue
11648fi
11649rm -f conftest.err conftest.$ac_ext
11650
11651 # OK, works on sane cases. Now check whether nonexistent headers
11652 # can be detected and how.
11653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654/* end confdefs.h. */
11655#include <ac_nonexistent.h>
11656_ACEOF
11657if ac_fn_cxx_try_cpp "$LINENO"; then :
11658 # Broken: success on invalid input.
11659continue
11660else
11661 # Passes both tests.
11662ac_preproc_ok=:
11663break
11664fi
11665rm -f conftest.err conftest.$ac_ext
11666
11667done
11668# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11669rm -f conftest.err conftest.$ac_ext
11670if $ac_preproc_ok; then :
11671
11672else
11673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11675_lt_caught_CXX_error=yes; }
11676fi
11677
11678ac_ext=c
11679ac_cpp='$CPP $CPPFLAGS'
11680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11682ac_compiler_gnu=$ac_cv_c_compiler_gnu
11683
11684else
11685 _lt_caught_CXX_error=yes
11686fi
11687
11688
cristy3ed852e2009-09-05 21:47:34 +000011689
11690
11691
11692# Set options
11693enable_win32_dll=yes
11694
11695case $host in
cristy18304f92009-11-22 15:48:26 +000011696*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011697 if test -n "$ac_tool_prefix"; then
11698 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11699set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011701$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011702if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011703 $as_echo_n "(cached) " >&6
11704else
11705 if test -n "$AS"; then
11706 ac_cv_prog_AS="$AS" # Let the user override the test.
11707else
11708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709for as_dir in $PATH
11710do
11711 IFS=$as_save_IFS
11712 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011713 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11715 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011717 break 2
11718 fi
11719done
cristy8b350f62009-11-15 23:12:43 +000011720 done
cristy3ed852e2009-09-05 21:47:34 +000011721IFS=$as_save_IFS
11722
11723fi
11724fi
11725AS=$ac_cv_prog_AS
11726if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011728$as_echo "$AS" >&6; }
11729else
cristy8b350f62009-11-15 23:12:43 +000011730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011731$as_echo "no" >&6; }
11732fi
11733
11734
11735fi
11736if test -z "$ac_cv_prog_AS"; then
11737 ac_ct_AS=$AS
11738 # Extract the first word of "as", so it can be a program name with args.
11739set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011741$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011742if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011743 $as_echo_n "(cached) " >&6
11744else
11745 if test -n "$ac_ct_AS"; then
11746 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11747else
11748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749for as_dir in $PATH
11750do
11751 IFS=$as_save_IFS
11752 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11755 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011757 break 2
11758 fi
11759done
cristy8b350f62009-11-15 23:12:43 +000011760 done
cristy3ed852e2009-09-05 21:47:34 +000011761IFS=$as_save_IFS
11762
11763fi
11764fi
11765ac_ct_AS=$ac_cv_prog_ac_ct_AS
11766if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011768$as_echo "$ac_ct_AS" >&6; }
11769else
cristy8b350f62009-11-15 23:12:43 +000011770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011771$as_echo "no" >&6; }
11772fi
11773
11774 if test "x$ac_ct_AS" = x; then
11775 AS="false"
11776 else
11777 case $cross_compiling:$ac_tool_warned in
11778yes:)
cristy8b350f62009-11-15 23:12:43 +000011779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11781ac_tool_warned=yes ;;
11782esac
11783 AS=$ac_ct_AS
11784 fi
11785else
11786 AS="$ac_cv_prog_AS"
11787fi
11788
11789 if test -n "$ac_tool_prefix"; then
11790 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11791set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011793$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011794if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011795 $as_echo_n "(cached) " >&6
11796else
11797 if test -n "$DLLTOOL"; then
11798 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11799else
11800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801for as_dir in $PATH
11802do
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11807 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011809 break 2
11810 fi
11811done
cristy8b350f62009-11-15 23:12:43 +000011812 done
cristy3ed852e2009-09-05 21:47:34 +000011813IFS=$as_save_IFS
11814
11815fi
11816fi
11817DLLTOOL=$ac_cv_prog_DLLTOOL
11818if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011820$as_echo "$DLLTOOL" >&6; }
11821else
cristy8b350f62009-11-15 23:12:43 +000011822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011823$as_echo "no" >&6; }
11824fi
11825
11826
11827fi
11828if test -z "$ac_cv_prog_DLLTOOL"; then
11829 ac_ct_DLLTOOL=$DLLTOOL
11830 # Extract the first word of "dlltool", so it can be a program name with args.
11831set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011833$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011834if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011835 $as_echo_n "(cached) " >&6
11836else
11837 if test -n "$ac_ct_DLLTOOL"; then
11838 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11839else
11840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841for as_dir in $PATH
11842do
11843 IFS=$as_save_IFS
11844 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011845 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11847 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011849 break 2
11850 fi
11851done
cristy8b350f62009-11-15 23:12:43 +000011852 done
cristy3ed852e2009-09-05 21:47:34 +000011853IFS=$as_save_IFS
11854
11855fi
11856fi
11857ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11858if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011860$as_echo "$ac_ct_DLLTOOL" >&6; }
11861else
cristy8b350f62009-11-15 23:12:43 +000011862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011863$as_echo "no" >&6; }
11864fi
11865
11866 if test "x$ac_ct_DLLTOOL" = x; then
11867 DLLTOOL="false"
11868 else
11869 case $cross_compiling:$ac_tool_warned in
11870yes:)
cristy8b350f62009-11-15 23:12:43 +000011871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11873ac_tool_warned=yes ;;
11874esac
11875 DLLTOOL=$ac_ct_DLLTOOL
11876 fi
11877else
11878 DLLTOOL="$ac_cv_prog_DLLTOOL"
11879fi
11880
11881 if test -n "$ac_tool_prefix"; then
11882 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11883set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011885$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011886if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011887 $as_echo_n "(cached) " >&6
11888else
11889 if test -n "$OBJDUMP"; then
11890 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11891else
11892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893for as_dir in $PATH
11894do
11895 IFS=$as_save_IFS
11896 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11899 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011901 break 2
11902 fi
11903done
cristy8b350f62009-11-15 23:12:43 +000011904 done
cristy3ed852e2009-09-05 21:47:34 +000011905IFS=$as_save_IFS
11906
11907fi
11908fi
11909OBJDUMP=$ac_cv_prog_OBJDUMP
11910if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011912$as_echo "$OBJDUMP" >&6; }
11913else
cristy8b350f62009-11-15 23:12:43 +000011914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011915$as_echo "no" >&6; }
11916fi
11917
11918
11919fi
11920if test -z "$ac_cv_prog_OBJDUMP"; then
11921 ac_ct_OBJDUMP=$OBJDUMP
11922 # Extract the first word of "objdump", so it can be a program name with args.
11923set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011925$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011926if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011927 $as_echo_n "(cached) " >&6
11928else
11929 if test -n "$ac_ct_OBJDUMP"; then
11930 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11931else
11932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933for as_dir in $PATH
11934do
11935 IFS=$as_save_IFS
11936 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11939 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011941 break 2
11942 fi
11943done
cristy8b350f62009-11-15 23:12:43 +000011944 done
cristy3ed852e2009-09-05 21:47:34 +000011945IFS=$as_save_IFS
11946
11947fi
11948fi
11949ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11950if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011952$as_echo "$ac_ct_OBJDUMP" >&6; }
11953else
cristy8b350f62009-11-15 23:12:43 +000011954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011955$as_echo "no" >&6; }
11956fi
11957
11958 if test "x$ac_ct_OBJDUMP" = x; then
11959 OBJDUMP="false"
11960 else
11961 case $cross_compiling:$ac_tool_warned in
11962yes:)
cristy8b350f62009-11-15 23:12:43 +000011963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11965ac_tool_warned=yes ;;
11966esac
11967 OBJDUMP=$ac_ct_OBJDUMP
11968 fi
11969else
11970 OBJDUMP="$ac_cv_prog_OBJDUMP"
11971fi
11972
11973 ;;
11974esac
11975
11976test -z "$AS" && AS=as
11977
11978
11979
11980
11981
11982test -z "$DLLTOOL" && DLLTOOL=dlltool
11983
11984
11985
11986
11987
11988test -z "$OBJDUMP" && OBJDUMP=objdump
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011999if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012000 enableval=$enable_shared; p=${PACKAGE-default}
12001 case $enableval in
12002 yes) enable_shared=yes ;;
12003 no) enable_shared=no ;;
12004 *)
12005 enable_shared=no
12006 # Look at the argument we got. We use all the common list separators.
12007 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12008 for pkg in $enableval; do
12009 IFS="$lt_save_ifs"
12010 if test "X$pkg" = "X$p"; then
12011 enable_shared=yes
12012 fi
12013 done
12014 IFS="$lt_save_ifs"
12015 ;;
12016 esac
12017else
12018 enable_shared=yes
12019fi
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012030if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012031 enableval=$enable_static; p=${PACKAGE-default}
12032 case $enableval in
12033 yes) enable_static=yes ;;
12034 no) enable_static=no ;;
12035 *)
12036 enable_static=no
12037 # Look at the argument we got. We use all the common list separators.
12038 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12039 for pkg in $enableval; do
12040 IFS="$lt_save_ifs"
12041 if test "X$pkg" = "X$p"; then
12042 enable_static=yes
12043 fi
12044 done
12045 IFS="$lt_save_ifs"
12046 ;;
12047 esac
12048else
12049 enable_static=yes
12050fi
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012062if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012063 withval=$with_pic; pic_mode="$withval"
12064else
12065 pic_mode=default
12066fi
12067
12068
12069test -z "$pic_mode" && pic_mode=default
12070
12071
12072
12073
12074
12075
12076
12077 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012078if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012079 enableval=$enable_fast_install; p=${PACKAGE-default}
12080 case $enableval in
12081 yes) enable_fast_install=yes ;;
12082 no) enable_fast_install=no ;;
12083 *)
12084 enable_fast_install=no
12085 # Look at the argument we got. We use all the common list separators.
12086 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12087 for pkg in $enableval; do
12088 IFS="$lt_save_ifs"
12089 if test "X$pkg" = "X$p"; then
12090 enable_fast_install=yes
12091 fi
12092 done
12093 IFS="$lt_save_ifs"
12094 ;;
12095 esac
12096else
12097 enable_fast_install=yes
12098fi
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110# This can be used to rebuild libtool when needed
12111LIBTOOL_DEPS="$ltmain"
12112
12113# Always use our own libtool.
12114LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140test -z "$LN_S" && LN_S="ln -s"
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155if test -n "${ZSH_VERSION+set}" ; then
12156 setopt NO_GLOB_SUBST
12157fi
12158
cristy8b350f62009-11-15 23:12:43 +000012159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012160$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012161if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012162 $as_echo_n "(cached) " >&6
12163else
12164 rm -f .libs 2>/dev/null
12165mkdir .libs 2>/dev/null
12166if test -d .libs; then
12167 lt_cv_objdir=.libs
12168else
12169 # MS-DOS does not allow filenames that begin with a dot.
12170 lt_cv_objdir=_libs
12171fi
12172rmdir .libs 2>/dev/null
12173fi
cristy8b350f62009-11-15 23:12:43 +000012174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012175$as_echo "$lt_cv_objdir" >&6; }
12176objdir=$lt_cv_objdir
12177
12178
12179
12180
12181
12182cat >>confdefs.h <<_ACEOF
12183#define LT_OBJDIR "$lt_cv_objdir/"
12184_ACEOF
12185
12186
12187
12188
cristy18304f92009-11-22 15:48:26 +000012189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
cristy3ed852e2009-09-05 21:47:34 +000012202case $host_os in
12203aix3*)
12204 # AIX sometimes has problems with the GCC collect2 program. For some
12205 # reason, if we set the COLLECT_NAMES environment variable, the problems
12206 # vanish in a puff of smoke.
12207 if test "X${COLLECT_NAMES+set}" != Xset; then
12208 COLLECT_NAMES=
12209 export COLLECT_NAMES
12210 fi
12211 ;;
12212esac
12213
cristy18304f92009-11-22 15:48:26 +000012214# Sed substitution that helps us do robust quoting. It backslashifies
12215# metacharacters that are still active within double-quoted strings.
12216sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12217
12218# Same as above, but do not quote variable references.
12219double_quote_subst='s/\(["`\\]\)/\\\1/g'
12220
12221# Sed substitution to delay expansion of an escaped shell variable in a
12222# double_quote_subst'ed string.
12223delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12224
12225# Sed substitution to delay expansion of an escaped single quote.
12226delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12227
12228# Sed substitution to avoid accidental globbing in evaled expressions
12229no_glob_subst='s/\*/\\\*/g'
12230
cristy3ed852e2009-09-05 21:47:34 +000012231# Global variables:
12232ofile=libtool
12233can_build_shared=yes
12234
12235# All known linkers require a `.a' archive for static linking (except MSVC,
12236# which needs '.lib').
12237libext=a
12238
12239with_gnu_ld="$lt_cv_prog_gnu_ld"
12240
12241old_CC="$CC"
12242old_CFLAGS="$CFLAGS"
12243
12244# Set sane defaults for various variables
12245test -z "$CC" && CC=cc
12246test -z "$LTCC" && LTCC=$CC
12247test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12248test -z "$LD" && LD=ld
12249test -z "$ac_objext" && ac_objext=o
12250
12251for cc_temp in $compiler""; do
12252 case $cc_temp in
12253 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12254 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12255 \-*) ;;
12256 *) break;;
12257 esac
12258done
cristy18304f92009-11-22 15:48:26 +000012259cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012260
12261
12262# Only perform the check for file, if the check method requires it
12263test -z "$MAGIC_CMD" && MAGIC_CMD=file
12264case $deplibs_check_method in
12265file_magic*)
12266 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012268$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012269if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012270 $as_echo_n "(cached) " >&6
12271else
12272 case $MAGIC_CMD in
12273[\\/*] | ?:[\\/]*)
12274 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12275 ;;
12276*)
12277 lt_save_MAGIC_CMD="$MAGIC_CMD"
12278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12279 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12280 for ac_dir in $ac_dummy; do
12281 IFS="$lt_save_ifs"
12282 test -z "$ac_dir" && ac_dir=.
12283 if test -f $ac_dir/${ac_tool_prefix}file; then
12284 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12285 if test -n "$file_magic_test_file"; then
12286 case $deplibs_check_method in
12287 "file_magic "*)
12288 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12290 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12291 $EGREP "$file_magic_regex" > /dev/null; then
12292 :
12293 else
12294 cat <<_LT_EOF 1>&2
12295
12296*** Warning: the command libtool uses to detect shared libraries,
12297*** $file_magic_cmd, produces output that libtool cannot recognize.
12298*** The result is that libtool may fail to recognize shared libraries
12299*** as such. This will affect the creation of libtool libraries that
12300*** depend on shared libraries, but programs linked with such libtool
12301*** libraries will work regardless of this problem. Nevertheless, you
12302*** may want to report the problem to your system manager and/or to
12303*** bug-libtool@gnu.org
12304
12305_LT_EOF
12306 fi ;;
12307 esac
12308 fi
12309 break
12310 fi
12311 done
12312 IFS="$lt_save_ifs"
12313 MAGIC_CMD="$lt_save_MAGIC_CMD"
12314 ;;
12315esac
12316fi
12317
12318MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12319if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012321$as_echo "$MAGIC_CMD" >&6; }
12322else
cristy8b350f62009-11-15 23:12:43 +000012323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012324$as_echo "no" >&6; }
12325fi
12326
12327
12328
12329
12330
12331if test -z "$lt_cv_path_MAGIC_CMD"; then
12332 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012334$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012335if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012336 $as_echo_n "(cached) " >&6
12337else
12338 case $MAGIC_CMD in
12339[\\/*] | ?:[\\/]*)
12340 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12341 ;;
12342*)
12343 lt_save_MAGIC_CMD="$MAGIC_CMD"
12344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12345 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12346 for ac_dir in $ac_dummy; do
12347 IFS="$lt_save_ifs"
12348 test -z "$ac_dir" && ac_dir=.
12349 if test -f $ac_dir/file; then
12350 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12351 if test -n "$file_magic_test_file"; then
12352 case $deplibs_check_method in
12353 "file_magic "*)
12354 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12356 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12357 $EGREP "$file_magic_regex" > /dev/null; then
12358 :
12359 else
12360 cat <<_LT_EOF 1>&2
12361
12362*** Warning: the command libtool uses to detect shared libraries,
12363*** $file_magic_cmd, produces output that libtool cannot recognize.
12364*** The result is that libtool may fail to recognize shared libraries
12365*** as such. This will affect the creation of libtool libraries that
12366*** depend on shared libraries, but programs linked with such libtool
12367*** libraries will work regardless of this problem. Nevertheless, you
12368*** may want to report the problem to your system manager and/or to
12369*** bug-libtool@gnu.org
12370
12371_LT_EOF
12372 fi ;;
12373 esac
12374 fi
12375 break
12376 fi
12377 done
12378 IFS="$lt_save_ifs"
12379 MAGIC_CMD="$lt_save_MAGIC_CMD"
12380 ;;
12381esac
12382fi
12383
12384MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12385if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012387$as_echo "$MAGIC_CMD" >&6; }
12388else
cristy8b350f62009-11-15 23:12:43 +000012389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012390$as_echo "no" >&6; }
12391fi
12392
12393
12394 else
12395 MAGIC_CMD=:
12396 fi
12397fi
12398
12399 fi
12400 ;;
12401esac
12402
12403# Use C for the default configuration in the libtool script
12404
12405lt_save_CC="$CC"
12406ac_ext=c
12407ac_cpp='$CPP $CPPFLAGS'
12408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12410ac_compiler_gnu=$ac_cv_c_compiler_gnu
12411
12412
12413# Source file extension for C test sources.
12414ac_ext=c
12415
12416# Object file extension for compiled C test sources.
12417objext=o
12418objext=$objext
12419
12420# Code to be used in simple compile tests
12421lt_simple_compile_test_code="int some_variable = 0;"
12422
12423# Code to be used in simple link tests
12424lt_simple_link_test_code='int main(){return(0);}'
12425
12426
12427
12428
12429
12430
12431
12432# If no C compiler was specified, use CC.
12433LTCC=${LTCC-"$CC"}
12434
12435# If no C compiler flags were specified, use CFLAGS.
12436LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12437
12438# Allow CC to be a program name with arguments.
12439compiler=$CC
12440
12441# Save the default compiler, since it gets overwritten when the other
12442# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12443compiler_DEFAULT=$CC
12444
12445# save warnings/boilerplate of simple test code
12446ac_outfile=conftest.$ac_objext
12447echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12448eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12449_lt_compiler_boilerplate=`cat conftest.err`
12450$RM conftest*
12451
12452ac_outfile=conftest.$ac_objext
12453echo "$lt_simple_link_test_code" >conftest.$ac_ext
12454eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12455_lt_linker_boilerplate=`cat conftest.err`
12456$RM -r conftest*
12457
12458
12459## CAVEAT EMPTOR:
12460## There is no encapsulation within the following macros, do not change
12461## the running order or otherwise move them around unless you know exactly
12462## what you are doing...
12463if test -n "$compiler"; then
12464
12465lt_prog_compiler_no_builtin_flag=
12466
12467if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012468 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000012469
cristy8b350f62009-11-15 23:12:43 +000012470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012471$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012472if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012473 $as_echo_n "(cached) " >&6
12474else
12475 lt_cv_prog_compiler_rtti_exceptions=no
12476 ac_outfile=conftest.$ac_objext
12477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12478 lt_compiler_flag="-fno-rtti -fno-exceptions"
12479 # Insert the option either (1) after the last *FLAGS variable, or
12480 # (2) before a word containing "conftest.", or (3) at the end.
12481 # Note that $ac_compile itself does not contain backslashes and begins
12482 # with a dollar sign (not a hyphen), so the echo should work correctly.
12483 # The option is referenced via a variable to avoid confusing sed.
12484 lt_compile=`echo "$ac_compile" | $SED \
12485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12487 -e 's:$: $lt_compiler_flag:'`
cristy3225a072010-04-17 01:47:28 +000012488 (eval echo "\"\$as_me:12488: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012489 (eval "$lt_compile" 2>conftest.err)
12490 ac_status=$?
12491 cat conftest.err >&5
cristy3225a072010-04-17 01:47:28 +000012492 echo "$as_me:12492: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012493 if (exit $ac_status) && test -s "$ac_outfile"; then
12494 # The compiler can only warn and ignore the option if not recognized
12495 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000012496 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12499 lt_cv_prog_compiler_rtti_exceptions=yes
12500 fi
12501 fi
12502 $RM conftest*
12503
12504fi
cristy8b350f62009-11-15 23:12:43 +000012505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012506$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12507
12508if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12509 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12510else
12511 :
12512fi
12513
12514fi
12515
12516
12517
12518
12519
12520
12521 lt_prog_compiler_wl=
12522lt_prog_compiler_pic=
12523lt_prog_compiler_static=
12524
cristy8b350f62009-11-15 23:12:43 +000012525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012526$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12527
12528 if test "$GCC" = yes; then
12529 lt_prog_compiler_wl='-Wl,'
12530 lt_prog_compiler_static='-static'
12531
12532 case $host_os in
12533 aix*)
12534 # All AIX code is PIC.
12535 if test "$host_cpu" = ia64; then
12536 # AIX 5 now supports IA64 processor
12537 lt_prog_compiler_static='-Bstatic'
12538 fi
12539 ;;
12540
12541 amigaos*)
12542 case $host_cpu in
12543 powerpc)
12544 # see comment about AmigaOS4 .so support
12545 lt_prog_compiler_pic='-fPIC'
12546 ;;
12547 m68k)
12548 # FIXME: we need at least 68020 code to build shared libraries, but
12549 # adding the `-m68020' flag to GCC prevents building anything better,
12550 # like `-m68040'.
12551 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12552 ;;
12553 esac
12554 ;;
12555
12556 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12557 # PIC is the default for these OSes.
12558 ;;
12559
12560 mingw* | cygwin* | pw32* | os2* | cegcc*)
12561 # This hack is so that the source file can tell whether it is being
12562 # built for inclusion in a dll (and should export symbols for example).
12563 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12564 # (--disable-auto-import) libraries
12565 lt_prog_compiler_pic='-DDLL_EXPORT'
12566 ;;
12567
12568 darwin* | rhapsody*)
12569 # PIC is the default on this platform
12570 # Common symbols not allowed in MH_DYLIB files
12571 lt_prog_compiler_pic='-fno-common'
12572 ;;
12573
12574 hpux*)
12575 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12576 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12577 # sets the default TLS model and affects inlining.
12578 case $host_cpu in
12579 hppa*64*)
12580 # +Z the default
12581 ;;
12582 *)
12583 lt_prog_compiler_pic='-fPIC'
12584 ;;
12585 esac
12586 ;;
12587
12588 interix[3-9]*)
12589 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12590 # Instead, we relocate shared libraries at runtime.
12591 ;;
12592
12593 msdosdjgpp*)
12594 # Just because we use GCC doesn't mean we suddenly get shared libraries
12595 # on systems that don't support them.
12596 lt_prog_compiler_can_build_shared=no
12597 enable_shared=no
12598 ;;
12599
12600 *nto* | *qnx*)
12601 # QNX uses GNU C++, but need to define -shared option too, otherwise
12602 # it will coredump.
12603 lt_prog_compiler_pic='-fPIC -shared'
12604 ;;
12605
12606 sysv4*MP*)
12607 if test -d /usr/nec; then
12608 lt_prog_compiler_pic=-Kconform_pic
12609 fi
12610 ;;
12611
12612 *)
12613 lt_prog_compiler_pic='-fPIC'
12614 ;;
12615 esac
12616 else
12617 # PORTME Check for flag to pass linker flags through the system compiler.
12618 case $host_os in
12619 aix*)
12620 lt_prog_compiler_wl='-Wl,'
12621 if test "$host_cpu" = ia64; then
12622 # AIX 5 now supports IA64 processor
12623 lt_prog_compiler_static='-Bstatic'
12624 else
12625 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12626 fi
12627 ;;
12628
12629 mingw* | cygwin* | pw32* | os2* | cegcc*)
12630 # This hack is so that the source file can tell whether it is being
12631 # built for inclusion in a dll (and should export symbols for example).
12632 lt_prog_compiler_pic='-DDLL_EXPORT'
12633 ;;
12634
12635 hpux9* | hpux10* | hpux11*)
12636 lt_prog_compiler_wl='-Wl,'
12637 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12638 # not for PA HP-UX.
12639 case $host_cpu in
12640 hppa*64*|ia64*)
12641 # +Z the default
12642 ;;
12643 *)
12644 lt_prog_compiler_pic='+Z'
12645 ;;
12646 esac
12647 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12648 lt_prog_compiler_static='${wl}-a ${wl}archive'
12649 ;;
12650
12651 irix5* | irix6* | nonstopux*)
12652 lt_prog_compiler_wl='-Wl,'
12653 # PIC (with -KPIC) is the default.
12654 lt_prog_compiler_static='-non_shared'
12655 ;;
12656
cristy18304f92009-11-22 15:48:26 +000012657 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012658 case $cc_basename in
12659 # old Intel for x86_64 which still supported -KPIC.
12660 ecc*)
12661 lt_prog_compiler_wl='-Wl,'
12662 lt_prog_compiler_pic='-KPIC'
12663 lt_prog_compiler_static='-static'
12664 ;;
12665 # icc used to be incompatible with GCC.
12666 # ICC 10 doesn't accept -KPIC any more.
12667 icc* | ifort*)
12668 lt_prog_compiler_wl='-Wl,'
12669 lt_prog_compiler_pic='-fPIC'
12670 lt_prog_compiler_static='-static'
12671 ;;
12672 # Lahey Fortran 8.1.
12673 lf95*)
12674 lt_prog_compiler_wl='-Wl,'
12675 lt_prog_compiler_pic='--shared'
12676 lt_prog_compiler_static='--static'
12677 ;;
cristy18304f92009-11-22 15:48:26 +000012678 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000012679 # Portland Group compilers (*not* the Pentium gcc compiler,
12680 # which looks to be a dead project)
12681 lt_prog_compiler_wl='-Wl,'
12682 lt_prog_compiler_pic='-fpic'
12683 lt_prog_compiler_static='-Bstatic'
12684 ;;
12685 ccc*)
12686 lt_prog_compiler_wl='-Wl,'
12687 # All Alpha code is PIC.
12688 lt_prog_compiler_static='-non_shared'
12689 ;;
cristy18304f92009-11-22 15:48:26 +000012690 xl*)
12691 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000012692 lt_prog_compiler_wl='-Wl,'
12693 lt_prog_compiler_pic='-qpic'
12694 lt_prog_compiler_static='-qstaticlink'
12695 ;;
12696 *)
12697 case `$CC -V 2>&1 | sed 5q` in
12698 *Sun\ C*)
12699 # Sun C 5.9
12700 lt_prog_compiler_pic='-KPIC'
12701 lt_prog_compiler_static='-Bstatic'
12702 lt_prog_compiler_wl='-Wl,'
12703 ;;
cristy18304f92009-11-22 15:48:26 +000012704 *Sun\ F*)
12705 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12706 lt_prog_compiler_pic='-KPIC'
12707 lt_prog_compiler_static='-Bstatic'
12708 lt_prog_compiler_wl=''
12709 ;;
cristy3ed852e2009-09-05 21:47:34 +000012710 esac
12711 ;;
12712 esac
12713 ;;
12714
12715 newsos6)
12716 lt_prog_compiler_pic='-KPIC'
12717 lt_prog_compiler_static='-Bstatic'
12718 ;;
12719
12720 *nto* | *qnx*)
12721 # QNX uses GNU C++, but need to define -shared option too, otherwise
12722 # it will coredump.
12723 lt_prog_compiler_pic='-fPIC -shared'
12724 ;;
12725
12726 osf3* | osf4* | osf5*)
12727 lt_prog_compiler_wl='-Wl,'
12728 # All OSF/1 code is PIC.
12729 lt_prog_compiler_static='-non_shared'
12730 ;;
12731
12732 rdos*)
12733 lt_prog_compiler_static='-non_shared'
12734 ;;
12735
12736 solaris*)
12737 lt_prog_compiler_pic='-KPIC'
12738 lt_prog_compiler_static='-Bstatic'
12739 case $cc_basename in
12740 f77* | f90* | f95*)
12741 lt_prog_compiler_wl='-Qoption ld ';;
12742 *)
12743 lt_prog_compiler_wl='-Wl,';;
12744 esac
12745 ;;
12746
12747 sunos4*)
12748 lt_prog_compiler_wl='-Qoption ld '
12749 lt_prog_compiler_pic='-PIC'
12750 lt_prog_compiler_static='-Bstatic'
12751 ;;
12752
12753 sysv4 | sysv4.2uw2* | sysv4.3*)
12754 lt_prog_compiler_wl='-Wl,'
12755 lt_prog_compiler_pic='-KPIC'
12756 lt_prog_compiler_static='-Bstatic'
12757 ;;
12758
12759 sysv4*MP*)
12760 if test -d /usr/nec ;then
12761 lt_prog_compiler_pic='-Kconform_pic'
12762 lt_prog_compiler_static='-Bstatic'
12763 fi
12764 ;;
12765
12766 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12767 lt_prog_compiler_wl='-Wl,'
12768 lt_prog_compiler_pic='-KPIC'
12769 lt_prog_compiler_static='-Bstatic'
12770 ;;
12771
12772 unicos*)
12773 lt_prog_compiler_wl='-Wl,'
12774 lt_prog_compiler_can_build_shared=no
12775 ;;
12776
12777 uts4*)
12778 lt_prog_compiler_pic='-pic'
12779 lt_prog_compiler_static='-Bstatic'
12780 ;;
12781
12782 *)
12783 lt_prog_compiler_can_build_shared=no
12784 ;;
12785 esac
12786 fi
12787
12788case $host_os in
12789 # For platforms which do not support PIC, -DPIC is meaningless:
12790 *djgpp*)
12791 lt_prog_compiler_pic=
12792 ;;
12793 *)
12794 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12795 ;;
12796esac
cristy8b350f62009-11-15 23:12:43 +000012797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012798$as_echo "$lt_prog_compiler_pic" >&6; }
12799
12800
12801
12802
12803
12804
12805#
12806# Check to make sure the PIC flag actually works.
12807#
12808if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012810$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012811if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012812 $as_echo_n "(cached) " >&6
12813else
12814 lt_cv_prog_compiler_pic_works=no
12815 ac_outfile=conftest.$ac_objext
12816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12817 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12818 # Insert the option either (1) after the last *FLAGS variable, or
12819 # (2) before a word containing "conftest.", or (3) at the end.
12820 # Note that $ac_compile itself does not contain backslashes and begins
12821 # with a dollar sign (not a hyphen), so the echo should work correctly.
12822 # The option is referenced via a variable to avoid confusing sed.
12823 lt_compile=`echo "$ac_compile" | $SED \
12824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12826 -e 's:$: $lt_compiler_flag:'`
cristy3225a072010-04-17 01:47:28 +000012827 (eval echo "\"\$as_me:12827: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012828 (eval "$lt_compile" 2>conftest.err)
12829 ac_status=$?
12830 cat conftest.err >&5
cristy3225a072010-04-17 01:47:28 +000012831 echo "$as_me:12831: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012832 if (exit $ac_status) && test -s "$ac_outfile"; then
12833 # The compiler can only warn and ignore the option if not recognized
12834 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000012835 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12837 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12838 lt_cv_prog_compiler_pic_works=yes
12839 fi
12840 fi
12841 $RM conftest*
12842
12843fi
cristy8b350f62009-11-15 23:12:43 +000012844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012845$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12846
12847if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12848 case $lt_prog_compiler_pic in
12849 "" | " "*) ;;
12850 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12851 esac
12852else
12853 lt_prog_compiler_pic=
12854 lt_prog_compiler_can_build_shared=no
12855fi
12856
12857fi
12858
12859
12860
12861
12862
12863
12864#
12865# Check to make sure the static flag actually works.
12866#
12867wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012869$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012870if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012871 $as_echo_n "(cached) " >&6
12872else
12873 lt_cv_prog_compiler_static_works=no
12874 save_LDFLAGS="$LDFLAGS"
12875 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12876 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12877 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12878 # The linker can only warn and ignore the option if not recognized
12879 # So say no if there are warnings
12880 if test -s conftest.err; then
12881 # Append any errors to the config.log.
12882 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000012883 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12885 if diff conftest.exp conftest.er2 >/dev/null; then
12886 lt_cv_prog_compiler_static_works=yes
12887 fi
12888 else
12889 lt_cv_prog_compiler_static_works=yes
12890 fi
12891 fi
12892 $RM -r conftest*
12893 LDFLAGS="$save_LDFLAGS"
12894
12895fi
cristy8b350f62009-11-15 23:12:43 +000012896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012897$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12898
12899if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12900 :
12901else
12902 lt_prog_compiler_static=
12903fi
12904
12905
12906
12907
12908
12909
12910
cristy8b350f62009-11-15 23:12:43 +000012911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012912$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012913if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012914 $as_echo_n "(cached) " >&6
12915else
12916 lt_cv_prog_compiler_c_o=no
12917 $RM -r conftest 2>/dev/null
12918 mkdir conftest
12919 cd conftest
12920 mkdir out
12921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12922
12923 lt_compiler_flag="-o out/conftest2.$ac_objext"
12924 # Insert the option either (1) after the last *FLAGS variable, or
12925 # (2) before a word containing "conftest.", or (3) at the end.
12926 # Note that $ac_compile itself does not contain backslashes and begins
12927 # with a dollar sign (not a hyphen), so the echo should work correctly.
12928 lt_compile=`echo "$ac_compile" | $SED \
12929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12931 -e 's:$: $lt_compiler_flag:'`
cristy3225a072010-04-17 01:47:28 +000012932 (eval echo "\"\$as_me:12932: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012933 (eval "$lt_compile" 2>out/conftest.err)
12934 ac_status=$?
12935 cat out/conftest.err >&5
cristy3225a072010-04-17 01:47:28 +000012936 echo "$as_me:12936: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012937 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12938 then
12939 # The compiler can only warn and ignore the option if not recognized
12940 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012941 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012942 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12943 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12944 lt_cv_prog_compiler_c_o=yes
12945 fi
12946 fi
12947 chmod u+w . 2>&5
12948 $RM conftest*
12949 # SGI C++ compiler will create directory out/ii_files/ for
12950 # template instantiation
12951 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12952 $RM out/* && rmdir out
12953 cd ..
12954 $RM -r conftest
12955 $RM conftest*
12956
12957fi
cristy8b350f62009-11-15 23:12:43 +000012958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012959$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12960
12961
12962
12963
12964
12965
cristy8b350f62009-11-15 23:12:43 +000012966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012967$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012968if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012969 $as_echo_n "(cached) " >&6
12970else
12971 lt_cv_prog_compiler_c_o=no
12972 $RM -r conftest 2>/dev/null
12973 mkdir conftest
12974 cd conftest
12975 mkdir out
12976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12977
12978 lt_compiler_flag="-o out/conftest2.$ac_objext"
12979 # Insert the option either (1) after the last *FLAGS variable, or
12980 # (2) before a word containing "conftest.", or (3) at the end.
12981 # Note that $ac_compile itself does not contain backslashes and begins
12982 # with a dollar sign (not a hyphen), so the echo should work correctly.
12983 lt_compile=`echo "$ac_compile" | $SED \
12984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12986 -e 's:$: $lt_compiler_flag:'`
cristy3225a072010-04-17 01:47:28 +000012987 (eval echo "\"\$as_me:12987: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012988 (eval "$lt_compile" 2>out/conftest.err)
12989 ac_status=$?
12990 cat out/conftest.err >&5
cristy3225a072010-04-17 01:47:28 +000012991 echo "$as_me:12991: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12993 then
12994 # The compiler can only warn and ignore the option if not recognized
12995 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012996 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12999 lt_cv_prog_compiler_c_o=yes
13000 fi
13001 fi
13002 chmod u+w . 2>&5
13003 $RM conftest*
13004 # SGI C++ compiler will create directory out/ii_files/ for
13005 # template instantiation
13006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13007 $RM out/* && rmdir out
13008 cd ..
13009 $RM -r conftest
13010 $RM conftest*
13011
13012fi
cristy8b350f62009-11-15 23:12:43 +000013013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013014$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13015
13016
13017
13018
13019hard_links="nottested"
13020if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13021 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013023$as_echo_n "checking if we can lock with hard links... " >&6; }
13024 hard_links=yes
13025 $RM conftest*
13026 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13027 touch conftest.a
13028 ln conftest.a conftest.b 2>&5 || hard_links=no
13029 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013031$as_echo "$hard_links" >&6; }
13032 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013033 { $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 +000013034$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13035 need_locks=warn
13036 fi
13037else
13038 need_locks=no
13039fi
13040
13041
13042
13043
13044
13045
cristy8b350f62009-11-15 23:12:43 +000013046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013047$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13048
13049 runpath_var=
13050 allow_undefined_flag=
13051 always_export_symbols=no
13052 archive_cmds=
13053 archive_expsym_cmds=
13054 compiler_needs_object=no
13055 enable_shared_with_static_runtimes=no
13056 export_dynamic_flag_spec=
13057 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13058 hardcode_automatic=no
13059 hardcode_direct=no
13060 hardcode_direct_absolute=no
13061 hardcode_libdir_flag_spec=
13062 hardcode_libdir_flag_spec_ld=
13063 hardcode_libdir_separator=
13064 hardcode_minus_L=no
13065 hardcode_shlibpath_var=unsupported
13066 inherit_rpath=no
13067 link_all_deplibs=unknown
13068 module_cmds=
13069 module_expsym_cmds=
13070 old_archive_from_new_cmds=
13071 old_archive_from_expsyms_cmds=
13072 thread_safe_flag_spec=
13073 whole_archive_flag_spec=
13074 # include_expsyms should be a list of space-separated symbols to be *always*
13075 # included in the symbol list
13076 include_expsyms=
13077 # exclude_expsyms can be an extended regexp of symbols to exclude
13078 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13079 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13080 # as well as any symbol that contains `d'.
13081 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13082 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13083 # platforms (ab)use it in PIC code, but their linkers get confused if
13084 # the symbol is explicitly referenced. Since portable code cannot
13085 # rely on this symbol name, it's probably fine to never include it in
13086 # preloaded symbol tables.
13087 # Exclude shared library initialization/finalization symbols.
13088 extract_expsyms_cmds=
13089
13090 case $host_os in
13091 cygwin* | mingw* | pw32* | cegcc*)
13092 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13093 # When not using gcc, we currently assume that we are using
13094 # Microsoft Visual C++.
13095 if test "$GCC" != yes; then
13096 with_gnu_ld=no
13097 fi
13098 ;;
13099 interix*)
13100 # we just hope/assume this is gcc and not c89 (= MSVC++)
13101 with_gnu_ld=yes
13102 ;;
13103 openbsd*)
13104 with_gnu_ld=no
13105 ;;
13106 esac
13107
13108 ld_shlibs=yes
13109 if test "$with_gnu_ld" = yes; then
13110 # If archive_cmds runs LD, not CC, wlarc should be empty
13111 wlarc='${wl}'
13112
13113 # Set some defaults for GNU ld with shared library support. These
13114 # are reset later if shared libraries are not supported. Putting them
13115 # here allows them to be overridden if necessary.
13116 runpath_var=LD_RUN_PATH
13117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13118 export_dynamic_flag_spec='${wl}--export-dynamic'
13119 # ancient GNU ld didn't support --whole-archive et. al.
13120 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13121 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13122 else
13123 whole_archive_flag_spec=
13124 fi
13125 supports_anon_versioning=no
13126 case `$LD -v 2>&1` in
13127 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13128 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13129 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13130 *\ 2.11.*) ;; # other 2.11 versions
13131 *) supports_anon_versioning=yes ;;
13132 esac
13133
13134 # See if GNU ld supports shared libraries.
13135 case $host_os in
13136 aix[3-9]*)
13137 # On AIX/PPC, the GNU linker is very broken
13138 if test "$host_cpu" != ia64; then
13139 ld_shlibs=no
13140 cat <<_LT_EOF 1>&2
13141
cristy18304f92009-11-22 15:48:26 +000013142*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000013143*** to be unable to reliably create shared libraries on AIX.
13144*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000013145*** really care for shared libraries, you may want to modify your PATH
13146*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000013147
13148_LT_EOF
13149 fi
13150 ;;
13151
13152 amigaos*)
13153 case $host_cpu in
13154 powerpc)
13155 # see comment about AmigaOS4 .so support
13156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13157 archive_expsym_cmds=''
13158 ;;
13159 m68k)
13160 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)'
13161 hardcode_libdir_flag_spec='-L$libdir'
13162 hardcode_minus_L=yes
13163 ;;
13164 esac
13165 ;;
13166
13167 beos*)
13168 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13169 allow_undefined_flag=unsupported
13170 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13171 # support --undefined. This deserves some investigation. FIXME
13172 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13173 else
13174 ld_shlibs=no
13175 fi
13176 ;;
13177
13178 cygwin* | mingw* | pw32* | cegcc*)
13179 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13180 # as there is no search path for DLLs.
13181 hardcode_libdir_flag_spec='-L$libdir'
13182 allow_undefined_flag=unsupported
13183 always_export_symbols=no
13184 enable_shared_with_static_runtimes=yes
13185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13186
13187 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13189 # If the export-symbols file already is a .def file (1st line
13190 # is EXPORTS), use it as is; otherwise, prepend...
13191 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13192 cp $export_symbols $output_objdir/$soname.def;
13193 else
13194 echo EXPORTS > $output_objdir/$soname.def;
13195 cat $export_symbols >> $output_objdir/$soname.def;
13196 fi~
13197 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13198 else
13199 ld_shlibs=no
13200 fi
13201 ;;
13202
13203 interix[3-9]*)
13204 hardcode_direct=no
13205 hardcode_shlibpath_var=no
13206 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13207 export_dynamic_flag_spec='${wl}-E'
13208 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13209 # Instead, shared libraries are loaded at an image base (0x10000000 by
13210 # default) and relocated if they conflict, which is a slow very memory
13211 # consuming and fragmenting process. To avoid this, we pick a random,
13212 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13213 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13215 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'
13216 ;;
13217
cristy18304f92009-11-22 15:48:26 +000013218 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013219 tmp_diet=no
13220 if test "$host_os" = linux-dietlibc; then
13221 case $cc_basename in
13222 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13223 esac
13224 fi
13225 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13226 && test "$tmp_diet" = no
13227 then
13228 tmp_addflag=
13229 tmp_sharedflag='-shared'
13230 case $cc_basename,$host_cpu in
13231 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000013232 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 +000013233 tmp_addflag=' $pic_flag'
13234 ;;
cristy18304f92009-11-22 15:48:26 +000013235 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13236 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 +000013237 tmp_addflag=' $pic_flag -Mnomain' ;;
13238 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13239 tmp_addflag=' -i_dynamic' ;;
13240 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13241 tmp_addflag=' -i_dynamic -nofor_main' ;;
13242 ifc* | ifort*) # Intel Fortran compiler
13243 tmp_addflag=' -nofor_main' ;;
13244 lf95*) # Lahey Fortran 8.1
13245 whole_archive_flag_spec=
13246 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000013247 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013248 tmp_sharedflag='-qmkshrobj'
13249 tmp_addflag= ;;
13250 esac
13251 case `$CC -V 2>&1 | sed 5q` in
13252 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000013253 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 +000013254 compiler_needs_object=yes
13255 tmp_sharedflag='-G' ;;
13256 *Sun\ F*) # Sun Fortran 8.3
13257 tmp_sharedflag='-G' ;;
13258 esac
13259 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13260
13261 if test "x$supports_anon_versioning" = xyes; then
13262 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13264 echo "local: *; };" >> $output_objdir/$libname.ver~
13265 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13266 fi
13267
13268 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000013269 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000013270 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13271 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13272 hardcode_libdir_flag_spec=
13273 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13274 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13275 if test "x$supports_anon_versioning" = xyes; then
13276 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13277 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13278 echo "local: *; };" >> $output_objdir/$libname.ver~
13279 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13280 fi
13281 ;;
13282 esac
13283 else
13284 ld_shlibs=no
13285 fi
13286 ;;
13287
13288 netbsd*)
13289 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13290 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13291 wlarc=
13292 else
13293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13295 fi
13296 ;;
13297
13298 solaris*)
13299 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13300 ld_shlibs=no
13301 cat <<_LT_EOF 1>&2
13302
13303*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13304*** create shared libraries on Solaris systems. Therefore, libtool
13305*** is disabling shared libraries support. We urge you to upgrade GNU
13306*** binutils to release 2.9.1 or newer. Another option is to modify
13307*** your PATH or compiler configuration so that the native linker is
13308*** used, and then restart.
13309
13310_LT_EOF
13311 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13314 else
13315 ld_shlibs=no
13316 fi
13317 ;;
13318
13319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13320 case `$LD -v 2>&1` in
13321 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13322 ld_shlibs=no
13323 cat <<_LT_EOF 1>&2
13324
13325*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13326*** reliably create shared libraries on SCO systems. Therefore, libtool
13327*** is disabling shared libraries support. We urge you to upgrade GNU
13328*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13329*** your PATH or compiler configuration so that the native linker is
13330*** used, and then restart.
13331
13332_LT_EOF
13333 ;;
13334 *)
13335 # For security reasons, it is highly recommended that you always
13336 # use absolute paths for naming shared libraries, and exclude the
13337 # DT_RUNPATH tag from executables and libraries. But doing so
13338 # requires that you compile everything twice, which is a pain.
13339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13343 else
13344 ld_shlibs=no
13345 fi
13346 ;;
13347 esac
13348 ;;
13349
13350 sunos4*)
13351 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13352 wlarc=
13353 hardcode_direct=yes
13354 hardcode_shlibpath_var=no
13355 ;;
13356
13357 *)
13358 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13360 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13361 else
13362 ld_shlibs=no
13363 fi
13364 ;;
13365 esac
13366
13367 if test "$ld_shlibs" = no; then
13368 runpath_var=
13369 hardcode_libdir_flag_spec=
13370 export_dynamic_flag_spec=
13371 whole_archive_flag_spec=
13372 fi
13373 else
13374 # PORTME fill in a description of your system's linker (not GNU ld)
13375 case $host_os in
13376 aix3*)
13377 allow_undefined_flag=unsupported
13378 always_export_symbols=yes
13379 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'
13380 # Note: this linker hardcodes the directories in LIBPATH if there
13381 # are no directories specified by -L.
13382 hardcode_minus_L=yes
13383 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13384 # Neither direct hardcoding nor static linking is supported with a
13385 # broken collect2.
13386 hardcode_direct=unsupported
13387 fi
13388 ;;
13389
13390 aix[4-9]*)
13391 if test "$host_cpu" = ia64; then
13392 # On IA64, the linker does run time linking by default, so we don't
13393 # have to do anything special.
13394 aix_use_runtimelinking=no
13395 exp_sym_flag='-Bexport'
13396 no_entry_flag=""
13397 else
13398 # If we're using GNU nm, then we don't want the "-C" option.
13399 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13400 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000013401 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 +000013402 else
13403 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'
13404 fi
13405 aix_use_runtimelinking=no
13406
13407 # Test if we are trying to use run time linking or normal
13408 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13409 # need to do runtime linking.
13410 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13411 for ld_flag in $LDFLAGS; do
13412 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13413 aix_use_runtimelinking=yes
13414 break
13415 fi
13416 done
13417 ;;
13418 esac
13419
13420 exp_sym_flag='-bexport'
13421 no_entry_flag='-bnoentry'
13422 fi
13423
13424 # When large executables or shared objects are built, AIX ld can
13425 # have problems creating the table of contents. If linking a library
13426 # or program results in "error TOC overflow" add -mminimal-toc to
13427 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13428 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13429
13430 archive_cmds=''
13431 hardcode_direct=yes
13432 hardcode_direct_absolute=yes
13433 hardcode_libdir_separator=':'
13434 link_all_deplibs=yes
13435 file_list_spec='${wl}-f,'
13436
13437 if test "$GCC" = yes; then
13438 case $host_os in aix4.[012]|aix4.[012].*)
13439 # We only want to do this on AIX 4.2 and lower, the check
13440 # below for broken collect2 doesn't work under 4.3+
13441 collect2name=`${CC} -print-prog-name=collect2`
13442 if test -f "$collect2name" &&
13443 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13444 then
13445 # We have reworked collect2
13446 :
13447 else
13448 # We have old collect2
13449 hardcode_direct=unsupported
13450 # It fails to find uninstalled libraries when the uninstalled
13451 # path is not listed in the libpath. Setting hardcode_minus_L
13452 # to unsupported forces relinking
13453 hardcode_minus_L=yes
13454 hardcode_libdir_flag_spec='-L$libdir'
13455 hardcode_libdir_separator=
13456 fi
13457 ;;
13458 esac
13459 shared_flag='-shared'
13460 if test "$aix_use_runtimelinking" = yes; then
13461 shared_flag="$shared_flag "'${wl}-G'
13462 fi
13463 else
13464 # not using gcc
13465 if test "$host_cpu" = ia64; then
13466 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13467 # chokes on -Wl,-G. The following line is correct:
13468 shared_flag='-G'
13469 else
13470 if test "$aix_use_runtimelinking" = yes; then
13471 shared_flag='${wl}-G'
13472 else
13473 shared_flag='${wl}-bM:SRE'
13474 fi
13475 fi
13476 fi
13477
13478 export_dynamic_flag_spec='${wl}-bexpall'
13479 # It seems that -bexpall does not export symbols beginning with
13480 # underscore (_), so it is better to generate a list of symbols to export.
13481 always_export_symbols=yes
13482 if test "$aix_use_runtimelinking" = yes; then
13483 # Warning - without using the other runtime loading flags (-brtl),
13484 # -berok will link without error, but may produce a broken library.
13485 allow_undefined_flag='-berok'
13486 # Determine the default libpath from the value encoded in an
13487 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013489/* end confdefs.h. */
13490
13491int
13492main ()
13493{
13494
13495 ;
13496 return 0;
13497}
13498_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013499if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013500
13501lt_aix_libpath_sed='
13502 /Import File Strings/,/^$/ {
13503 /^0/ {
13504 s/^0 *\(.*\)$/\1/
13505 p
13506 }
13507 }'
13508aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13509# Check for a 64-bit object if we didn't find anything.
13510if test -z "$aix_libpath"; then
13511 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13512fi
cristy3ed852e2009-09-05 21:47:34 +000013513fi
cristy8b350f62009-11-15 23:12:43 +000013514rm -f core conftest.err conftest.$ac_objext \
13515 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013516if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13517
13518 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000013519 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 +000013520 else
13521 if test "$host_cpu" = ia64; then
13522 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13523 allow_undefined_flag="-z nodefs"
13524 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"
13525 else
13526 # Determine the default libpath from the value encoded in an
13527 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013529/* end confdefs.h. */
13530
13531int
13532main ()
13533{
13534
13535 ;
13536 return 0;
13537}
13538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013539if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013540
13541lt_aix_libpath_sed='
13542 /Import File Strings/,/^$/ {
13543 /^0/ {
13544 s/^0 *\(.*\)$/\1/
13545 p
13546 }
13547 }'
13548aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13549# Check for a 64-bit object if we didn't find anything.
13550if test -z "$aix_libpath"; then
13551 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13552fi
cristy3ed852e2009-09-05 21:47:34 +000013553fi
cristy8b350f62009-11-15 23:12:43 +000013554rm -f core conftest.err conftest.$ac_objext \
13555 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013556if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13557
13558 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13559 # Warning - without using the other run time loading flags,
13560 # -berok will link without error, but may produce a broken library.
13561 no_undefined_flag=' ${wl}-bernotok'
13562 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000013563 # Exported symbols can be pulled into shared objects from archives
13564 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000013565 archive_cmds_need_lc=yes
13566 # This is similar to how AIX traditionally builds its shared libraries.
13567 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'
13568 fi
13569 fi
13570 ;;
13571
13572 amigaos*)
13573 case $host_cpu in
13574 powerpc)
13575 # see comment about AmigaOS4 .so support
13576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13577 archive_expsym_cmds=''
13578 ;;
13579 m68k)
13580 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)'
13581 hardcode_libdir_flag_spec='-L$libdir'
13582 hardcode_minus_L=yes
13583 ;;
13584 esac
13585 ;;
13586
13587 bsdi[45]*)
13588 export_dynamic_flag_spec=-rdynamic
13589 ;;
13590
13591 cygwin* | mingw* | pw32* | cegcc*)
13592 # When not using gcc, we currently assume that we are using
13593 # Microsoft Visual C++.
13594 # hardcode_libdir_flag_spec is actually meaningless, as there is
13595 # no search path for DLLs.
13596 hardcode_libdir_flag_spec=' '
13597 allow_undefined_flag=unsupported
13598 # Tell ltmain to make .lib files, not .a files.
13599 libext=lib
13600 # Tell ltmain to make .dll files, not .so files.
13601 shrext_cmds=".dll"
13602 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000013603 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013604 # The linker will automatically build a .lib file if we build a DLL.
13605 old_archive_from_new_cmds='true'
13606 # FIXME: Should let the user specify the lib program.
13607 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13608 fix_srcfile_path='`cygpath -w "$srcfile"`'
13609 enable_shared_with_static_runtimes=yes
13610 ;;
13611
13612 darwin* | rhapsody*)
13613
13614
13615 archive_cmds_need_lc=no
13616 hardcode_direct=no
13617 hardcode_automatic=yes
13618 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000013619 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000013620 link_all_deplibs=yes
13621 allow_undefined_flag="$_lt_dar_allow_undefined"
13622 case $cc_basename in
13623 ifort*) _lt_dar_can_shared=yes ;;
13624 *) _lt_dar_can_shared=$GCC ;;
13625 esac
13626 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000013627 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000013628 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13629 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13630 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}"
13631 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}"
13632
13633 else
13634 ld_shlibs=no
13635 fi
13636
13637 ;;
13638
13639 dgux*)
13640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13641 hardcode_libdir_flag_spec='-L$libdir'
13642 hardcode_shlibpath_var=no
13643 ;;
13644
13645 freebsd1*)
13646 ld_shlibs=no
13647 ;;
13648
13649 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13650 # support. Future versions do this automatically, but an explicit c++rt0.o
13651 # does not break anything, and helps significantly (at the cost of a little
13652 # extra space).
13653 freebsd2.2*)
13654 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13655 hardcode_libdir_flag_spec='-R$libdir'
13656 hardcode_direct=yes
13657 hardcode_shlibpath_var=no
13658 ;;
13659
13660 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13661 freebsd2*)
13662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13663 hardcode_direct=yes
13664 hardcode_minus_L=yes
13665 hardcode_shlibpath_var=no
13666 ;;
13667
13668 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13669 freebsd* | dragonfly*)
13670 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13671 hardcode_libdir_flag_spec='-R$libdir'
13672 hardcode_direct=yes
13673 hardcode_shlibpath_var=no
13674 ;;
13675
13676 hpux9*)
13677 if test "$GCC" = yes; then
13678 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'
13679 else
13680 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'
13681 fi
13682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13683 hardcode_libdir_separator=:
13684 hardcode_direct=yes
13685
13686 # hardcode_minus_L: Not really in the search PATH,
13687 # but as the default location of the library.
13688 hardcode_minus_L=yes
13689 export_dynamic_flag_spec='${wl}-E'
13690 ;;
13691
13692 hpux10*)
cristy18304f92009-11-22 15:48:26 +000013693 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013694 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13695 else
13696 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13697 fi
13698 if test "$with_gnu_ld" = no; then
13699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13700 hardcode_libdir_flag_spec_ld='+b $libdir'
13701 hardcode_libdir_separator=:
13702 hardcode_direct=yes
13703 hardcode_direct_absolute=yes
13704 export_dynamic_flag_spec='${wl}-E'
13705 # hardcode_minus_L: Not really in the search PATH,
13706 # but as the default location of the library.
13707 hardcode_minus_L=yes
13708 fi
13709 ;;
13710
13711 hpux11*)
cristy18304f92009-11-22 15:48:26 +000013712 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013713 case $host_cpu in
13714 hppa*64*)
13715 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13716 ;;
13717 ia64*)
13718 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13719 ;;
13720 *)
13721 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13722 ;;
13723 esac
13724 else
13725 case $host_cpu in
13726 hppa*64*)
13727 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13728 ;;
13729 ia64*)
13730 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13731 ;;
13732 *)
cristy18304f92009-11-22 15:48:26 +000013733 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 +000013734 ;;
13735 esac
13736 fi
13737 if test "$with_gnu_ld" = no; then
13738 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13739 hardcode_libdir_separator=:
13740
13741 case $host_cpu in
13742 hppa*64*|ia64*)
13743 hardcode_direct=no
13744 hardcode_shlibpath_var=no
13745 ;;
13746 *)
13747 hardcode_direct=yes
13748 hardcode_direct_absolute=yes
13749 export_dynamic_flag_spec='${wl}-E'
13750
13751 # hardcode_minus_L: Not really in the search PATH,
13752 # but as the default location of the library.
13753 hardcode_minus_L=yes
13754 ;;
13755 esac
13756 fi
13757 ;;
13758
13759 irix5* | irix6* | nonstopux*)
13760 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000013761 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 +000013762 # Try to use the -exported_symbol ld option, if it does not
13763 # work, assume that -exports_file does not work either and
13764 # implicitly export all symbols.
13765 save_LDFLAGS="$LDFLAGS"
13766 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013769int foo(void) {}
13770_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013771if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000013772 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 +000013773
cristy3ed852e2009-09-05 21:47:34 +000013774fi
cristy8b350f62009-11-15 23:12:43 +000013775rm -f core conftest.err conftest.$ac_objext \
13776 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013777 LDFLAGS="$save_LDFLAGS"
13778 else
cristy18304f92009-11-22 15:48:26 +000013779 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'
13780 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 +000013781 fi
13782 archive_cmds_need_lc='no'
13783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13784 hardcode_libdir_separator=:
13785 inherit_rpath=yes
13786 link_all_deplibs=yes
13787 ;;
13788
13789 netbsd*)
13790 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13792 else
13793 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13794 fi
13795 hardcode_libdir_flag_spec='-R$libdir'
13796 hardcode_direct=yes
13797 hardcode_shlibpath_var=no
13798 ;;
13799
13800 newsos6)
13801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13802 hardcode_direct=yes
13803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13804 hardcode_libdir_separator=:
13805 hardcode_shlibpath_var=no
13806 ;;
13807
13808 *nto* | *qnx*)
13809 ;;
13810
13811 openbsd*)
13812 if test -f /usr/libexec/ld.so; then
13813 hardcode_direct=yes
13814 hardcode_shlibpath_var=no
13815 hardcode_direct_absolute=yes
13816 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13817 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13818 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13820 export_dynamic_flag_spec='${wl}-E'
13821 else
13822 case $host_os in
13823 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13825 hardcode_libdir_flag_spec='-R$libdir'
13826 ;;
13827 *)
13828 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13830 ;;
13831 esac
13832 fi
13833 else
13834 ld_shlibs=no
13835 fi
13836 ;;
13837
13838 os2*)
13839 hardcode_libdir_flag_spec='-L$libdir'
13840 hardcode_minus_L=yes
13841 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000013842 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 +000013843 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13844 ;;
13845
13846 osf3*)
13847 if test "$GCC" = yes; then
13848 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000013849 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 +000013850 else
13851 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000013852 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 +000013853 fi
13854 archive_cmds_need_lc='no'
13855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13856 hardcode_libdir_separator=:
13857 ;;
13858
13859 osf4* | osf5*) # as osf3* with the addition of -msym flag
13860 if test "$GCC" = yes; then
13861 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000013862 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 +000013863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13864 else
13865 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000013866 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 +000013867 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 +000013868 $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 +000013869
13870 # Both c and cxx compiler support -rpath directly
13871 hardcode_libdir_flag_spec='-rpath $libdir'
13872 fi
13873 archive_cmds_need_lc='no'
13874 hardcode_libdir_separator=:
13875 ;;
13876
13877 solaris*)
13878 no_undefined_flag=' -z defs'
13879 if test "$GCC" = yes; then
13880 wlarc='${wl}'
13881 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13882 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13883 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13884 else
13885 case `$CC -V 2>&1` in
13886 *"Compilers 5.0"*)
13887 wlarc=''
13888 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13889 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13890 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13891 ;;
13892 *)
13893 wlarc='${wl}'
13894 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13895 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13896 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13897 ;;
13898 esac
13899 fi
13900 hardcode_libdir_flag_spec='-R$libdir'
13901 hardcode_shlibpath_var=no
13902 case $host_os in
13903 solaris2.[0-5] | solaris2.[0-5].*) ;;
13904 *)
13905 # The compiler driver will combine and reorder linker options,
13906 # but understands `-z linker_flag'. GCC discards it without `$wl',
13907 # but is careful enough not to reorder.
13908 # Supported since Solaris 2.6 (maybe 2.5.1?)
13909 if test "$GCC" = yes; then
13910 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13911 else
13912 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13913 fi
13914 ;;
13915 esac
13916 link_all_deplibs=yes
13917 ;;
13918
13919 sunos4*)
13920 if test "x$host_vendor" = xsequent; then
13921 # Use $CC to link under sequent, because it throws in some extra .o
13922 # files that make .init and .fini sections work.
13923 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13924 else
13925 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13926 fi
13927 hardcode_libdir_flag_spec='-L$libdir'
13928 hardcode_direct=yes
13929 hardcode_minus_L=yes
13930 hardcode_shlibpath_var=no
13931 ;;
13932
13933 sysv4)
13934 case $host_vendor in
13935 sni)
13936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13937 hardcode_direct=yes # is this really true???
13938 ;;
13939 siemens)
13940 ## LD is ld it makes a PLAMLIB
13941 ## CC just makes a GrossModule.
13942 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13943 reload_cmds='$CC -r -o $output$reload_objs'
13944 hardcode_direct=no
13945 ;;
13946 motorola)
13947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13948 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13949 ;;
13950 esac
13951 runpath_var='LD_RUN_PATH'
13952 hardcode_shlibpath_var=no
13953 ;;
13954
13955 sysv4.3*)
13956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13957 hardcode_shlibpath_var=no
13958 export_dynamic_flag_spec='-Bexport'
13959 ;;
13960
13961 sysv4*MP*)
13962 if test -d /usr/nec; then
13963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13964 hardcode_shlibpath_var=no
13965 runpath_var=LD_RUN_PATH
13966 hardcode_runpath_var=yes
13967 ld_shlibs=yes
13968 fi
13969 ;;
13970
13971 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13972 no_undefined_flag='${wl}-z,text'
13973 archive_cmds_need_lc=no
13974 hardcode_shlibpath_var=no
13975 runpath_var='LD_RUN_PATH'
13976
13977 if test "$GCC" = yes; then
13978 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13979 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13980 else
13981 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13982 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13983 fi
13984 ;;
13985
13986 sysv5* | sco3.2v5* | sco5v6*)
13987 # Note: We can NOT use -z defs as we might desire, because we do not
13988 # link with -lc, and that would cause any symbols used from libc to
13989 # always be unresolved, which means just about no library would
13990 # ever link correctly. If we're not using GNU ld we use -z text
13991 # though, which does catch some bad symbols but isn't as heavy-handed
13992 # as -z defs.
13993 no_undefined_flag='${wl}-z,text'
13994 allow_undefined_flag='${wl}-z,nodefs'
13995 archive_cmds_need_lc=no
13996 hardcode_shlibpath_var=no
13997 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13998 hardcode_libdir_separator=':'
13999 link_all_deplibs=yes
14000 export_dynamic_flag_spec='${wl}-Bexport'
14001 runpath_var='LD_RUN_PATH'
14002
14003 if test "$GCC" = yes; then
14004 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14005 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14006 else
14007 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14008 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14009 fi
14010 ;;
14011
14012 uts4*)
14013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14014 hardcode_libdir_flag_spec='-L$libdir'
14015 hardcode_shlibpath_var=no
14016 ;;
14017
14018 *)
14019 ld_shlibs=no
14020 ;;
14021 esac
14022
14023 if test x$host_vendor = xsni; then
14024 case $host in
14025 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14026 export_dynamic_flag_spec='${wl}-Blargedynsym'
14027 ;;
14028 esac
14029 fi
14030 fi
14031
cristy8b350f62009-11-15 23:12:43 +000014032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014033$as_echo "$ld_shlibs" >&6; }
14034test "$ld_shlibs" = no && can_build_shared=no
14035
14036with_gnu_ld=$with_gnu_ld
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052#
14053# Do we need to explicitly link libc?
14054#
14055case "x$archive_cmds_need_lc" in
14056x|xyes)
14057 # Assume -lc should be added
14058 archive_cmds_need_lc=yes
14059
14060 if test "$enable_shared" = yes && test "$GCC" = yes; then
14061 case $archive_cmds in
14062 *'~'*)
14063 # FIXME: we may have to deal with multi-command sequences.
14064 ;;
14065 '$CC '*)
14066 # Test whether the compiler implicitly links with -lc since on some
14067 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14068 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014070$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000014071 $RM conftest*
14072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014073
cristy18304f92009-11-22 15:48:26 +000014074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014075 (eval $ac_compile) 2>&5
14076 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14078 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000014079 soname=conftest
14080 lib=conftest
14081 libobjs=conftest.$ac_objext
14082 deplibs=
14083 wl=$lt_prog_compiler_wl
14084 pic_flag=$lt_prog_compiler_pic
14085 compiler_flags=-v
14086 linker_flags=-v
14087 verstring=
14088 output_objdir=.
14089 libname=conftest
14090 lt_save_allow_undefined_flag=$allow_undefined_flag
14091 allow_undefined_flag=
14092 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 +000014093 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14094 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14096 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000014097 then
14098 archive_cmds_need_lc=no
14099 else
14100 archive_cmds_need_lc=yes
14101 fi
14102 allow_undefined_flag=$lt_save_allow_undefined_flag
14103 else
14104 cat conftest.err 1>&5
14105 fi
14106 $RM conftest*
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14108$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000014109 ;;
14110 esac
14111 fi
14112 ;;
14113esac
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
cristy8b350f62009-11-15 23:12:43 +000014271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014272$as_echo_n "checking dynamic linker characteristics... " >&6; }
14273
14274if test "$GCC" = yes; then
14275 case $host_os in
14276 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14277 *) lt_awk_arg="/^libraries:/" ;;
14278 esac
cristy18304f92009-11-22 15:48:26 +000014279 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14280 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000014281 # if the path contains ";" then we assume it to be the separator
14282 # otherwise default to the standard path separator (i.e. ":") - it is
14283 # assumed that no part of a normal pathname contains ";" but that should
14284 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000014285 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14286 else
14287 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14288 fi
cristy3ed852e2009-09-05 21:47:34 +000014289 # Ok, now we have the path, separated by spaces, we can step through it
14290 # and add multilib dir if necessary.
14291 lt_tmp_lt_search_path_spec=
14292 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14293 for lt_sys_path in $lt_search_path_spec; do
14294 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14295 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14296 else
14297 test -d "$lt_sys_path" && \
14298 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14299 fi
14300 done
cristy18304f92009-11-22 15:48:26 +000014301 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000014302BEGIN {RS=" "; FS="/|\n";} {
14303 lt_foo="";
14304 lt_count=0;
14305 for (lt_i = NF; lt_i > 0; lt_i--) {
14306 if ($lt_i != "" && $lt_i != ".") {
14307 if ($lt_i == "..") {
14308 lt_count++;
14309 } else {
14310 if (lt_count == 0) {
14311 lt_foo="/" $lt_i lt_foo;
14312 } else {
14313 lt_count--;
14314 }
14315 }
14316 }
14317 }
14318 if (lt_foo != "") { lt_freq[lt_foo]++; }
14319 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14320}'`
cristy18304f92009-11-22 15:48:26 +000014321 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000014322else
14323 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14324fi
14325library_names_spec=
14326libname_spec='lib$name'
14327soname_spec=
14328shrext_cmds=".so"
14329postinstall_cmds=
14330postuninstall_cmds=
14331finish_cmds=
14332finish_eval=
14333shlibpath_var=
14334shlibpath_overrides_runpath=unknown
14335version_type=none
14336dynamic_linker="$host_os ld.so"
14337sys_lib_dlsearch_path_spec="/lib /usr/lib"
14338need_lib_prefix=unknown
14339hardcode_into_libs=no
14340
14341# when you set need_version to no, make sure it does not cause -set_version
14342# flags to be left without arguments
14343need_version=unknown
14344
14345case $host_os in
14346aix3*)
14347 version_type=linux
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14349 shlibpath_var=LIBPATH
14350
14351 # AIX 3 has no versioning support, so we append a major version to the name.
14352 soname_spec='${libname}${release}${shared_ext}$major'
14353 ;;
14354
14355aix[4-9]*)
14356 version_type=linux
14357 need_lib_prefix=no
14358 need_version=no
14359 hardcode_into_libs=yes
14360 if test "$host_cpu" = ia64; then
14361 # AIX 5 supports IA64
14362 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14363 shlibpath_var=LD_LIBRARY_PATH
14364 else
14365 # With GCC up to 2.95.x, collect2 would create an import file
14366 # for dependence libraries. The import file would start with
14367 # the line `#! .'. This would cause the generated library to
14368 # depend on `.', always an invalid library. This was fixed in
14369 # development snapshots of GCC prior to 3.0.
14370 case $host_os in
14371 aix4 | aix4.[01] | aix4.[01].*)
14372 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14373 echo ' yes '
14374 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14375 :
14376 else
14377 can_build_shared=no
14378 fi
14379 ;;
14380 esac
14381 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14382 # soname into executable. Probably we can add versioning support to
14383 # collect2, so additional links can be useful in future.
14384 if test "$aix_use_runtimelinking" = yes; then
14385 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14386 # instead of lib<name>.a to let people know that these are not
14387 # typical AIX shared libraries.
14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389 else
14390 # We preserve .a as extension for shared libraries through AIX4.2
14391 # and later when we are not doing run time linking.
14392 library_names_spec='${libname}${release}.a $libname.a'
14393 soname_spec='${libname}${release}${shared_ext}$major'
14394 fi
14395 shlibpath_var=LIBPATH
14396 fi
14397 ;;
14398
14399amigaos*)
14400 case $host_cpu in
14401 powerpc)
14402 # Since July 2007 AmigaOS4 officially supports .so libraries.
14403 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14405 ;;
14406 m68k)
14407 library_names_spec='$libname.ixlibrary $libname.a'
14408 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000014409 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 +000014410 ;;
14411 esac
14412 ;;
14413
14414beos*)
14415 library_names_spec='${libname}${shared_ext}'
14416 dynamic_linker="$host_os ld.so"
14417 shlibpath_var=LIBRARY_PATH
14418 ;;
14419
14420bsdi[45]*)
14421 version_type=linux
14422 need_version=no
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424 soname_spec='${libname}${release}${shared_ext}$major'
14425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14426 shlibpath_var=LD_LIBRARY_PATH
14427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14429 # the default ld.so.conf also contains /usr/contrib/lib and
14430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14431 # libtool to hard-code these into programs
14432 ;;
14433
14434cygwin* | mingw* | pw32* | cegcc*)
14435 version_type=windows
14436 shrext_cmds=".dll"
14437 need_version=no
14438 need_lib_prefix=no
14439
14440 case $GCC,$host_os in
14441 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14442 library_names_spec='$libname.dll.a'
14443 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14444 postinstall_cmds='base_file=`basename \${file}`~
14445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14446 dldir=$destdir/`dirname \$dlpath`~
14447 test -d \$dldir || mkdir -p \$dldir~
14448 $install_prog $dir/$dlname \$dldir/$dlname~
14449 chmod a+x \$dldir/$dlname~
14450 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14451 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14452 fi'
14453 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14454 dlpath=$dir/\$dldll~
14455 $RM \$dlpath'
14456 shlibpath_overrides_runpath=yes
14457
14458 case $host_os in
14459 cygwin*)
14460 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14461 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014462 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000014463 ;;
14464 mingw* | cegcc*)
14465 # MinGW DLLs use traditional 'lib' prefix
14466 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014467 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14468 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14469 # It is most probably a Windows format PATH printed by
14470 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14471 # path with ; separators, and with drive letters. We can handle the
14472 # drive letters (cygwin fileutils understands them), so leave them,
14473 # especially as we might pass files found there to a mingw objdump,
14474 # which wouldn't understand a cygwinified path. Ahh.
14475 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14476 else
14477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14478 fi
cristy3ed852e2009-09-05 21:47:34 +000014479 ;;
14480 pw32*)
14481 # pw32 DLLs use 'pw' prefix rather than 'lib'
14482 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14483 ;;
14484 esac
14485 ;;
14486
14487 *)
14488 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14489 ;;
14490 esac
14491 dynamic_linker='Win32 ld.exe'
14492 # FIXME: first we should search . and the directory the executable is in
14493 shlibpath_var=PATH
14494 ;;
14495
14496darwin* | rhapsody*)
14497 dynamic_linker="$host_os dyld"
14498 version_type=darwin
14499 need_lib_prefix=no
14500 need_version=no
14501 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14502 soname_spec='${libname}${release}${major}$shared_ext'
14503 shlibpath_overrides_runpath=yes
14504 shlibpath_var=DYLD_LIBRARY_PATH
14505 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14506
14507 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14508 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14509 ;;
14510
14511dgux*)
14512 version_type=linux
14513 need_lib_prefix=no
14514 need_version=no
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 ;;
14519
14520freebsd1*)
14521 dynamic_linker=no
14522 ;;
14523
14524freebsd* | dragonfly*)
14525 # DragonFly does not have aout. When/if they implement a new
14526 # versioning mechanism, adjust this.
14527 if test -x /usr/bin/objformat; then
14528 objformat=`/usr/bin/objformat`
14529 else
14530 case $host_os in
14531 freebsd[123]*) objformat=aout ;;
14532 *) objformat=elf ;;
14533 esac
14534 fi
14535 version_type=freebsd-$objformat
14536 case $version_type in
14537 freebsd-elf*)
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14539 need_version=no
14540 need_lib_prefix=no
14541 ;;
14542 freebsd-*)
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14544 need_version=yes
14545 ;;
14546 esac
14547 shlibpath_var=LD_LIBRARY_PATH
14548 case $host_os in
14549 freebsd2*)
14550 shlibpath_overrides_runpath=yes
14551 ;;
14552 freebsd3.[01]* | freebsdelf3.[01]*)
14553 shlibpath_overrides_runpath=yes
14554 hardcode_into_libs=yes
14555 ;;
14556 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14557 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14558 shlibpath_overrides_runpath=no
14559 hardcode_into_libs=yes
14560 ;;
14561 *) # from 4.6 on, and DragonFly
14562 shlibpath_overrides_runpath=yes
14563 hardcode_into_libs=yes
14564 ;;
14565 esac
14566 ;;
14567
14568gnu*)
14569 version_type=linux
14570 need_lib_prefix=no
14571 need_version=no
14572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14573 soname_spec='${libname}${release}${shared_ext}$major'
14574 shlibpath_var=LD_LIBRARY_PATH
14575 hardcode_into_libs=yes
14576 ;;
14577
14578hpux9* | hpux10* | hpux11*)
14579 # Give a soname corresponding to the major version so that dld.sl refuses to
14580 # link against other versions.
14581 version_type=sunos
14582 need_lib_prefix=no
14583 need_version=no
14584 case $host_cpu in
14585 ia64*)
14586 shrext_cmds='.so'
14587 hardcode_into_libs=yes
14588 dynamic_linker="$host_os dld.so"
14589 shlibpath_var=LD_LIBRARY_PATH
14590 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592 soname_spec='${libname}${release}${shared_ext}$major'
14593 if test "X$HPUX_IA64_MODE" = X32; then
14594 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14595 else
14596 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14597 fi
14598 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14599 ;;
14600 hppa*64*)
14601 shrext_cmds='.sl'
14602 hardcode_into_libs=yes
14603 dynamic_linker="$host_os dld.sl"
14604 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607 soname_spec='${libname}${release}${shared_ext}$major'
14608 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14609 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14610 ;;
14611 *)
14612 shrext_cmds='.sl'
14613 dynamic_linker="$host_os dld.sl"
14614 shlibpath_var=SHLIB_PATH
14615 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14617 soname_spec='${libname}${release}${shared_ext}$major'
14618 ;;
14619 esac
cristy18304f92009-11-22 15:48:26 +000014620 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000014621 postinstall_cmds='chmod 555 $lib'
14622 ;;
14623
14624interix[3-9]*)
14625 version_type=linux
14626 need_lib_prefix=no
14627 need_version=no
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14629 soname_spec='${libname}${release}${shared_ext}$major'
14630 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14631 shlibpath_var=LD_LIBRARY_PATH
14632 shlibpath_overrides_runpath=no
14633 hardcode_into_libs=yes
14634 ;;
14635
14636irix5* | irix6* | nonstopux*)
14637 case $host_os in
14638 nonstopux*) version_type=nonstopux ;;
14639 *)
14640 if test "$lt_cv_prog_gnu_ld" = yes; then
14641 version_type=linux
14642 else
14643 version_type=irix
14644 fi ;;
14645 esac
14646 need_lib_prefix=no
14647 need_version=no
14648 soname_spec='${libname}${release}${shared_ext}$major'
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14650 case $host_os in
14651 irix5* | nonstopux*)
14652 libsuff= shlibsuff=
14653 ;;
14654 *)
14655 case $LD in # libtool.m4 will add one of these switches to LD
14656 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14657 libsuff= shlibsuff= libmagic=32-bit;;
14658 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14659 libsuff=32 shlibsuff=N32 libmagic=N32;;
14660 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14661 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14662 *) libsuff= shlibsuff= libmagic=never-match;;
14663 esac
14664 ;;
14665 esac
14666 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14667 shlibpath_overrides_runpath=no
14668 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14669 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14670 hardcode_into_libs=yes
14671 ;;
14672
14673# No shared lib support for Linux oldld, aout, or coff.
14674linux*oldld* | linux*aout* | linux*coff*)
14675 dynamic_linker=no
14676 ;;
14677
14678# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000014679linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014680 version_type=linux
14681 need_lib_prefix=no
14682 need_version=no
14683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14684 soname_spec='${libname}${release}${shared_ext}$major'
14685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14686 shlibpath_var=LD_LIBRARY_PATH
14687 shlibpath_overrides_runpath=no
14688 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000014689 save_LDFLAGS=$LDFLAGS
14690 save_libdir=$libdir
14691 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14692 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014694/* end confdefs.h. */
14695
14696int
14697main ()
14698{
14699
14700 ;
14701 return 0;
14702}
14703_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014704if ac_fn_c_try_link "$LINENO"; then :
14705 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000014706 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014707fi
cristy3ed852e2009-09-05 21:47:34 +000014708fi
cristy8b350f62009-11-15 23:12:43 +000014709rm -f core conftest.err conftest.$ac_objext \
14710 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000014711 LDFLAGS=$save_LDFLAGS
14712 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000014713
14714 # This implies no fast_install, which is unacceptable.
14715 # Some rework will be needed to allow for fast_install
14716 # before this can be enabled.
14717 hardcode_into_libs=yes
14718
cristy679ed8e2009-12-05 02:37:41 +000014719 # Add ABI-specific directories to the system library path.
14720 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14721
cristy3ed852e2009-09-05 21:47:34 +000014722 # Append ld.so.conf contents to the search path
14723 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000014724 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 +000014725 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000014726 fi
14727
14728 # We used to test for /lib/ld.so.1 and disable shared libraries on
14729 # powerpc, because MkLinux only supported shared libraries with the
14730 # GNU dynamic linker. Since this was broken with cross compilers,
14731 # most powerpc-linux boxes support dynamic linking these days and
14732 # people can always --disable-shared, the test was removed, and we
14733 # assume the GNU/Linux dynamic linker is in use.
14734 dynamic_linker='GNU/Linux ld.so'
14735 ;;
14736
14737netbsd*)
14738 version_type=sunos
14739 need_lib_prefix=no
14740 need_version=no
14741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14744 dynamic_linker='NetBSD (a.out) ld.so'
14745 else
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14747 soname_spec='${libname}${release}${shared_ext}$major'
14748 dynamic_linker='NetBSD ld.elf_so'
14749 fi
14750 shlibpath_var=LD_LIBRARY_PATH
14751 shlibpath_overrides_runpath=yes
14752 hardcode_into_libs=yes
14753 ;;
14754
14755newsos6)
14756 version_type=linux
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14758 shlibpath_var=LD_LIBRARY_PATH
14759 shlibpath_overrides_runpath=yes
14760 ;;
14761
14762*nto* | *qnx*)
14763 version_type=qnx
14764 need_lib_prefix=no
14765 need_version=no
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14767 soname_spec='${libname}${release}${shared_ext}$major'
14768 shlibpath_var=LD_LIBRARY_PATH
14769 shlibpath_overrides_runpath=no
14770 hardcode_into_libs=yes
14771 dynamic_linker='ldqnx.so'
14772 ;;
14773
14774openbsd*)
14775 version_type=sunos
14776 sys_lib_dlsearch_path_spec="/usr/lib"
14777 need_lib_prefix=no
14778 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14779 case $host_os in
14780 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14781 *) need_version=no ;;
14782 esac
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14785 shlibpath_var=LD_LIBRARY_PATH
14786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14787 case $host_os in
14788 openbsd2.[89] | openbsd2.[89].*)
14789 shlibpath_overrides_runpath=no
14790 ;;
14791 *)
14792 shlibpath_overrides_runpath=yes
14793 ;;
14794 esac
14795 else
14796 shlibpath_overrides_runpath=yes
14797 fi
14798 ;;
14799
14800os2*)
14801 libname_spec='$name'
14802 shrext_cmds=".dll"
14803 need_lib_prefix=no
14804 library_names_spec='$libname${shared_ext} $libname.a'
14805 dynamic_linker='OS/2 ld.exe'
14806 shlibpath_var=LIBPATH
14807 ;;
14808
14809osf3* | osf4* | osf5*)
14810 version_type=osf
14811 need_lib_prefix=no
14812 need_version=no
14813 soname_spec='${libname}${release}${shared_ext}$major'
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815 shlibpath_var=LD_LIBRARY_PATH
14816 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14817 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14818 ;;
14819
14820rdos*)
14821 dynamic_linker=no
14822 ;;
14823
14824solaris*)
14825 version_type=linux
14826 need_lib_prefix=no
14827 need_version=no
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829 soname_spec='${libname}${release}${shared_ext}$major'
14830 shlibpath_var=LD_LIBRARY_PATH
14831 shlibpath_overrides_runpath=yes
14832 hardcode_into_libs=yes
14833 # ldd complains unless libraries are executable
14834 postinstall_cmds='chmod +x $lib'
14835 ;;
14836
14837sunos4*)
14838 version_type=sunos
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14840 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14841 shlibpath_var=LD_LIBRARY_PATH
14842 shlibpath_overrides_runpath=yes
14843 if test "$with_gnu_ld" = yes; then
14844 need_lib_prefix=no
14845 fi
14846 need_version=yes
14847 ;;
14848
14849sysv4 | sysv4.3*)
14850 version_type=linux
14851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14852 soname_spec='${libname}${release}${shared_ext}$major'
14853 shlibpath_var=LD_LIBRARY_PATH
14854 case $host_vendor in
14855 sni)
14856 shlibpath_overrides_runpath=no
14857 need_lib_prefix=no
14858 runpath_var=LD_RUN_PATH
14859 ;;
14860 siemens)
14861 need_lib_prefix=no
14862 ;;
14863 motorola)
14864 need_lib_prefix=no
14865 need_version=no
14866 shlibpath_overrides_runpath=no
14867 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14868 ;;
14869 esac
14870 ;;
14871
14872sysv4*MP*)
14873 if test -d /usr/nec ;then
14874 version_type=linux
14875 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14876 soname_spec='$libname${shared_ext}.$major'
14877 shlibpath_var=LD_LIBRARY_PATH
14878 fi
14879 ;;
14880
14881sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14882 version_type=freebsd-elf
14883 need_lib_prefix=no
14884 need_version=no
14885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14886 soname_spec='${libname}${release}${shared_ext}$major'
14887 shlibpath_var=LD_LIBRARY_PATH
14888 shlibpath_overrides_runpath=yes
14889 hardcode_into_libs=yes
14890 if test "$with_gnu_ld" = yes; then
14891 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14892 else
14893 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14894 case $host_os in
14895 sco3.2v5*)
14896 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14897 ;;
14898 esac
14899 fi
14900 sys_lib_dlsearch_path_spec='/usr/lib'
14901 ;;
14902
14903tpf*)
14904 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14905 version_type=linux
14906 need_lib_prefix=no
14907 need_version=no
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14909 shlibpath_var=LD_LIBRARY_PATH
14910 shlibpath_overrides_runpath=no
14911 hardcode_into_libs=yes
14912 ;;
14913
14914uts4*)
14915 version_type=linux
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917 soname_spec='${libname}${release}${shared_ext}$major'
14918 shlibpath_var=LD_LIBRARY_PATH
14919 ;;
14920
14921*)
14922 dynamic_linker=no
14923 ;;
14924esac
cristy8b350f62009-11-15 23:12:43 +000014925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000014926$as_echo "$dynamic_linker" >&6; }
14927test "$dynamic_linker" = no && can_build_shared=no
14928
14929variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14930if test "$GCC" = yes; then
14931 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14932fi
14933
14934if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14935 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14936fi
14937if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14938 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14939fi
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
cristy8b350f62009-11-15 23:12:43 +000015027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015028$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15029hardcode_action=
15030if test -n "$hardcode_libdir_flag_spec" ||
15031 test -n "$runpath_var" ||
15032 test "X$hardcode_automatic" = "Xyes" ; then
15033
15034 # We can hardcode non-existent directories.
15035 if test "$hardcode_direct" != no &&
15036 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15037 # have to relink, otherwise we might link with an installed library
15038 # when we should be linking with a yet-to-be-installed one
15039 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15040 test "$hardcode_minus_L" != no; then
15041 # Linking always hardcodes the temporary library directory.
15042 hardcode_action=relink
15043 else
15044 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15045 hardcode_action=immediate
15046 fi
15047else
15048 # We cannot hardcode anything, or else we can only hardcode existing
15049 # directories.
15050 hardcode_action=unsupported
15051fi
cristy8b350f62009-11-15 23:12:43 +000015052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015053$as_echo "$hardcode_action" >&6; }
15054
15055if test "$hardcode_action" = relink ||
15056 test "$inherit_rpath" = yes; then
15057 # Fast installation is not supported
15058 enable_fast_install=no
15059elif test "$shlibpath_overrides_runpath" = yes ||
15060 test "$enable_shared" = no; then
15061 # Fast installation is not necessary
15062 enable_fast_install=needless
15063fi
15064
15065
15066
15067
15068
15069
15070 if test "x$enable_dlopen" != xyes; then
15071 enable_dlopen=unknown
15072 enable_dlopen_self=unknown
15073 enable_dlopen_self_static=unknown
15074else
15075 lt_cv_dlopen=no
15076 lt_cv_dlopen_libs=
15077
15078 case $host_os in
15079 beos*)
15080 lt_cv_dlopen="load_add_on"
15081 lt_cv_dlopen_libs=
15082 lt_cv_dlopen_self=yes
15083 ;;
15084
15085 mingw* | pw32* | cegcc*)
15086 lt_cv_dlopen="LoadLibrary"
15087 lt_cv_dlopen_libs=
15088 ;;
15089
15090 cygwin*)
15091 lt_cv_dlopen="dlopen"
15092 lt_cv_dlopen_libs=
15093 ;;
15094
15095 darwin*)
15096 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015098$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015099if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015100 $as_echo_n "(cached) " >&6
15101else
15102 ac_check_lib_save_LIBS=$LIBS
15103LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015105/* end confdefs.h. */
15106
15107/* Override any GCC internal prototype to avoid an error.
15108 Use char because int might match the return type of a GCC
15109 builtin and then its argument prototype would still apply. */
15110#ifdef __cplusplus
15111extern "C"
15112#endif
15113char dlopen ();
15114int
15115main ()
15116{
15117return dlopen ();
15118 ;
15119 return 0;
15120}
15121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015122if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015123 ac_cv_lib_dl_dlopen=yes
15124else
cristy8b350f62009-11-15 23:12:43 +000015125 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015126fi
cristy8b350f62009-11-15 23:12:43 +000015127rm -f core conftest.err conftest.$ac_objext \
15128 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015129LIBS=$ac_check_lib_save_LIBS
15130fi
cristy8b350f62009-11-15 23:12:43 +000015131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015132$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015133if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15135else
15136
15137 lt_cv_dlopen="dyld"
15138 lt_cv_dlopen_libs=
15139 lt_cv_dlopen_self=yes
15140
15141fi
15142
15143 ;;
15144
15145 *)
cristy8b350f62009-11-15 23:12:43 +000015146 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15147if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015148 lt_cv_dlopen="shl_load"
15149else
cristy8b350f62009-11-15 23:12:43 +000015150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015151$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015152if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015153 $as_echo_n "(cached) " >&6
15154else
15155 ac_check_lib_save_LIBS=$LIBS
15156LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015158/* end confdefs.h. */
15159
15160/* Override any GCC internal prototype to avoid an error.
15161 Use char because int might match the return type of a GCC
15162 builtin and then its argument prototype would still apply. */
15163#ifdef __cplusplus
15164extern "C"
15165#endif
15166char shl_load ();
15167int
15168main ()
15169{
15170return shl_load ();
15171 ;
15172 return 0;
15173}
15174_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015175if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015176 ac_cv_lib_dld_shl_load=yes
15177else
cristy8b350f62009-11-15 23:12:43 +000015178 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015179fi
cristy8b350f62009-11-15 23:12:43 +000015180rm -f core conftest.err conftest.$ac_objext \
15181 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015182LIBS=$ac_check_lib_save_LIBS
15183fi
cristy8b350f62009-11-15 23:12:43 +000015184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015185$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015186if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015187 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15188else
cristy8b350f62009-11-15 23:12:43 +000015189 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15190if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015191 lt_cv_dlopen="dlopen"
15192else
cristy8b350f62009-11-15 23:12:43 +000015193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015194$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015195if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015196 $as_echo_n "(cached) " >&6
15197else
15198 ac_check_lib_save_LIBS=$LIBS
15199LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015201/* end confdefs.h. */
15202
15203/* Override any GCC internal prototype to avoid an error.
15204 Use char because int might match the return type of a GCC
15205 builtin and then its argument prototype would still apply. */
15206#ifdef __cplusplus
15207extern "C"
15208#endif
15209char dlopen ();
15210int
15211main ()
15212{
15213return dlopen ();
15214 ;
15215 return 0;
15216}
15217_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015218if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015219 ac_cv_lib_dl_dlopen=yes
15220else
cristy8b350f62009-11-15 23:12:43 +000015221 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015222fi
cristy8b350f62009-11-15 23:12:43 +000015223rm -f core conftest.err conftest.$ac_objext \
15224 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015225LIBS=$ac_check_lib_save_LIBS
15226fi
cristy8b350f62009-11-15 23:12:43 +000015227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015228$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015229if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15231else
cristy8b350f62009-11-15 23:12:43 +000015232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015233$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015234if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015235 $as_echo_n "(cached) " >&6
15236else
15237 ac_check_lib_save_LIBS=$LIBS
15238LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015240/* end confdefs.h. */
15241
15242/* Override any GCC internal prototype to avoid an error.
15243 Use char because int might match the return type of a GCC
15244 builtin and then its argument prototype would still apply. */
15245#ifdef __cplusplus
15246extern "C"
15247#endif
15248char dlopen ();
15249int
15250main ()
15251{
15252return dlopen ();
15253 ;
15254 return 0;
15255}
15256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015257if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015258 ac_cv_lib_svld_dlopen=yes
15259else
cristy8b350f62009-11-15 23:12:43 +000015260 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015261fi
cristy8b350f62009-11-15 23:12:43 +000015262rm -f core conftest.err conftest.$ac_objext \
15263 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015264LIBS=$ac_check_lib_save_LIBS
15265fi
cristy8b350f62009-11-15 23:12:43 +000015266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015267$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015268if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15270else
cristy8b350f62009-11-15 23:12:43 +000015271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015272$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015273if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015274 $as_echo_n "(cached) " >&6
15275else
15276 ac_check_lib_save_LIBS=$LIBS
15277LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015279/* end confdefs.h. */
15280
15281/* Override any GCC internal prototype to avoid an error.
15282 Use char because int might match the return type of a GCC
15283 builtin and then its argument prototype would still apply. */
15284#ifdef __cplusplus
15285extern "C"
15286#endif
15287char dld_link ();
15288int
15289main ()
15290{
15291return dld_link ();
15292 ;
15293 return 0;
15294}
15295_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015296if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015297 ac_cv_lib_dld_dld_link=yes
15298else
cristy8b350f62009-11-15 23:12:43 +000015299 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015300fi
cristy8b350f62009-11-15 23:12:43 +000015301rm -f core conftest.err conftest.$ac_objext \
15302 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015303LIBS=$ac_check_lib_save_LIBS
15304fi
cristy8b350f62009-11-15 23:12:43 +000015305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015306$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015307if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015308 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15309fi
15310
15311
15312fi
15313
15314
15315fi
15316
15317
15318fi
15319
15320
15321fi
15322
15323
15324fi
15325
15326 ;;
15327 esac
15328
15329 if test "x$lt_cv_dlopen" != xno; then
15330 enable_dlopen=yes
15331 else
15332 enable_dlopen=no
15333 fi
15334
15335 case $lt_cv_dlopen in
15336 dlopen)
15337 save_CPPFLAGS="$CPPFLAGS"
15338 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15339
15340 save_LDFLAGS="$LDFLAGS"
15341 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15342
15343 save_LIBS="$LIBS"
15344 LIBS="$lt_cv_dlopen_libs $LIBS"
15345
cristy8b350f62009-11-15 23:12:43 +000015346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015347$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015348if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015349 $as_echo_n "(cached) " >&6
15350else
15351 if test "$cross_compiling" = yes; then :
15352 lt_cv_dlopen_self=cross
15353else
15354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15355 lt_status=$lt_dlunknown
15356 cat > conftest.$ac_ext <<_LT_EOF
cristy3225a072010-04-17 01:47:28 +000015357#line 15357 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015358#include "confdefs.h"
15359
15360#if HAVE_DLFCN_H
15361#include <dlfcn.h>
15362#endif
15363
15364#include <stdio.h>
15365
15366#ifdef RTLD_GLOBAL
15367# define LT_DLGLOBAL RTLD_GLOBAL
15368#else
15369# ifdef DL_GLOBAL
15370# define LT_DLGLOBAL DL_GLOBAL
15371# else
15372# define LT_DLGLOBAL 0
15373# endif
15374#endif
15375
15376/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15377 find out it does not work in some platform. */
15378#ifndef LT_DLLAZY_OR_NOW
15379# ifdef RTLD_LAZY
15380# define LT_DLLAZY_OR_NOW RTLD_LAZY
15381# else
15382# ifdef DL_LAZY
15383# define LT_DLLAZY_OR_NOW DL_LAZY
15384# else
15385# ifdef RTLD_NOW
15386# define LT_DLLAZY_OR_NOW RTLD_NOW
15387# else
15388# ifdef DL_NOW
15389# define LT_DLLAZY_OR_NOW DL_NOW
15390# else
15391# define LT_DLLAZY_OR_NOW 0
15392# endif
15393# endif
15394# endif
15395# endif
15396#endif
15397
cristy18304f92009-11-22 15:48:26 +000015398void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015399int main ()
15400{
15401 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15402 int status = $lt_dlunknown;
15403
15404 if (self)
15405 {
15406 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015407 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015408 /* dlclose (self); */
15409 }
15410 else
15411 puts (dlerror ());
15412
15413 return status;
15414}
15415_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015417 (eval $ac_link) 2>&5
15418 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15420 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015421 (./conftest; exit; ) >&5 2>/dev/null
15422 lt_status=$?
15423 case x$lt_status in
15424 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15425 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15426 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15427 esac
15428 else :
15429 # compilation failed
15430 lt_cv_dlopen_self=no
15431 fi
15432fi
15433rm -fr conftest*
15434
15435
15436fi
cristy8b350f62009-11-15 23:12:43 +000015437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015438$as_echo "$lt_cv_dlopen_self" >&6; }
15439
15440 if test "x$lt_cv_dlopen_self" = xyes; then
15441 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015443$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015444if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015445 $as_echo_n "(cached) " >&6
15446else
15447 if test "$cross_compiling" = yes; then :
15448 lt_cv_dlopen_self_static=cross
15449else
15450 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15451 lt_status=$lt_dlunknown
15452 cat > conftest.$ac_ext <<_LT_EOF
cristy3225a072010-04-17 01:47:28 +000015453#line 15453 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015454#include "confdefs.h"
15455
15456#if HAVE_DLFCN_H
15457#include <dlfcn.h>
15458#endif
15459
15460#include <stdio.h>
15461
15462#ifdef RTLD_GLOBAL
15463# define LT_DLGLOBAL RTLD_GLOBAL
15464#else
15465# ifdef DL_GLOBAL
15466# define LT_DLGLOBAL DL_GLOBAL
15467# else
15468# define LT_DLGLOBAL 0
15469# endif
15470#endif
15471
15472/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15473 find out it does not work in some platform. */
15474#ifndef LT_DLLAZY_OR_NOW
15475# ifdef RTLD_LAZY
15476# define LT_DLLAZY_OR_NOW RTLD_LAZY
15477# else
15478# ifdef DL_LAZY
15479# define LT_DLLAZY_OR_NOW DL_LAZY
15480# else
15481# ifdef RTLD_NOW
15482# define LT_DLLAZY_OR_NOW RTLD_NOW
15483# else
15484# ifdef DL_NOW
15485# define LT_DLLAZY_OR_NOW DL_NOW
15486# else
15487# define LT_DLLAZY_OR_NOW 0
15488# endif
15489# endif
15490# endif
15491# endif
15492#endif
15493
cristy18304f92009-11-22 15:48:26 +000015494void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015495int main ()
15496{
15497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15498 int status = $lt_dlunknown;
15499
15500 if (self)
15501 {
15502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015503 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015504 /* dlclose (self); */
15505 }
15506 else
15507 puts (dlerror ());
15508
15509 return status;
15510}
15511_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015513 (eval $ac_link) 2>&5
15514 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15516 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015517 (./conftest; exit; ) >&5 2>/dev/null
15518 lt_status=$?
15519 case x$lt_status in
15520 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15521 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15522 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15523 esac
15524 else :
15525 # compilation failed
15526 lt_cv_dlopen_self_static=no
15527 fi
15528fi
15529rm -fr conftest*
15530
15531
15532fi
cristy8b350f62009-11-15 23:12:43 +000015533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015534$as_echo "$lt_cv_dlopen_self_static" >&6; }
15535 fi
15536
15537 CPPFLAGS="$save_CPPFLAGS"
15538 LDFLAGS="$save_LDFLAGS"
15539 LIBS="$save_LIBS"
15540 ;;
15541 esac
15542
15543 case $lt_cv_dlopen_self in
15544 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15545 *) enable_dlopen_self=unknown ;;
15546 esac
15547
15548 case $lt_cv_dlopen_self_static in
15549 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15550 *) enable_dlopen_self_static=unknown ;;
15551 esac
15552fi
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570striplib=
15571old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015573$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15574if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15575 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15576 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015578$as_echo "yes" >&6; }
15579else
15580# FIXME - insert some real tests, host_os isn't really good enough
15581 case $host_os in
15582 darwin*)
15583 if test -n "$STRIP" ; then
15584 striplib="$STRIP -x"
15585 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015587$as_echo "yes" >&6; }
15588 else
cristy8b350f62009-11-15 23:12:43 +000015589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015590$as_echo "no" >&6; }
15591 fi
15592 ;;
15593 *)
cristy8b350f62009-11-15 23:12:43 +000015594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015595$as_echo "no" >&6; }
15596 ;;
15597 esac
15598fi
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015613$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015615$as_echo "$can_build_shared" >&6; }
15616
cristy8b350f62009-11-15 23:12:43 +000015617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015618$as_echo_n "checking whether to build shared libraries... " >&6; }
15619 test "$can_build_shared" = "no" && enable_shared=no
15620
15621 # On AIX, shared libraries and static libraries use the same namespace, and
15622 # are all built from PIC.
15623 case $host_os in
15624 aix3*)
15625 test "$enable_shared" = yes && enable_static=no
15626 if test -n "$RANLIB"; then
15627 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15628 postinstall_cmds='$RANLIB $lib'
15629 fi
15630 ;;
15631
15632 aix[4-9]*)
15633 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15634 test "$enable_shared" = yes && enable_static=no
15635 fi
15636 ;;
15637 esac
cristy8b350f62009-11-15 23:12:43 +000015638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015639$as_echo "$enable_shared" >&6; }
15640
cristy8b350f62009-11-15 23:12:43 +000015641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015642$as_echo_n "checking whether to build static libraries... " >&6; }
15643 # Make sure either enable_shared or enable_static is yes.
15644 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015646$as_echo "$enable_static" >&6; }
15647
15648
15649
15650
15651fi
15652ac_ext=c
15653ac_cpp='$CPP $CPPFLAGS'
15654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15656ac_compiler_gnu=$ac_cv_c_compiler_gnu
15657
15658CC="$lt_save_CC"
15659
15660
15661ac_ext=cpp
15662ac_cpp='$CXXCPP $CPPFLAGS'
15663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15666
15667archive_cmds_need_lc_CXX=no
15668allow_undefined_flag_CXX=
15669always_export_symbols_CXX=no
15670archive_expsym_cmds_CXX=
15671compiler_needs_object_CXX=no
15672export_dynamic_flag_spec_CXX=
15673hardcode_direct_CXX=no
15674hardcode_direct_absolute_CXX=no
15675hardcode_libdir_flag_spec_CXX=
15676hardcode_libdir_flag_spec_ld_CXX=
15677hardcode_libdir_separator_CXX=
15678hardcode_minus_L_CXX=no
15679hardcode_shlibpath_var_CXX=unsupported
15680hardcode_automatic_CXX=no
15681inherit_rpath_CXX=no
15682module_cmds_CXX=
15683module_expsym_cmds_CXX=
15684link_all_deplibs_CXX=unknown
15685old_archive_cmds_CXX=$old_archive_cmds
15686no_undefined_flag_CXX=
15687whole_archive_flag_spec_CXX=
15688enable_shared_with_static_runtimes_CXX=no
15689
15690# Source file extension for C++ test sources.
15691ac_ext=cpp
15692
15693# Object file extension for compiled C++ test sources.
15694objext=o
15695objext_CXX=$objext
15696
15697# No sense in running all these tests if we already determined that
15698# the CXX compiler isn't working. Some variables (like enable_shared)
15699# are currently assumed to apply to all compilers on this platform,
15700# and will be corrupted by setting them based on a non-working compiler.
15701if test "$_lt_caught_CXX_error" != yes; then
15702 # Code to be used in simple compile tests
15703 lt_simple_compile_test_code="int some_variable = 0;"
15704
15705 # Code to be used in simple link tests
15706 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15707
15708 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15709
15710
15711
15712
15713
15714
15715# If no C compiler was specified, use CC.
15716LTCC=${LTCC-"$CC"}
15717
15718# If no C compiler flags were specified, use CFLAGS.
15719LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15720
15721# Allow CC to be a program name with arguments.
15722compiler=$CC
15723
15724
15725 # save warnings/boilerplate of simple test code
15726 ac_outfile=conftest.$ac_objext
15727echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15728eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15729_lt_compiler_boilerplate=`cat conftest.err`
15730$RM conftest*
15731
15732 ac_outfile=conftest.$ac_objext
15733echo "$lt_simple_link_test_code" >conftest.$ac_ext
15734eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15735_lt_linker_boilerplate=`cat conftest.err`
15736$RM -r conftest*
15737
15738
15739 # Allow CC to be a program name with arguments.
15740 lt_save_CC=$CC
15741 lt_save_LD=$LD
15742 lt_save_GCC=$GCC
15743 GCC=$GXX
15744 lt_save_with_gnu_ld=$with_gnu_ld
15745 lt_save_path_LD=$lt_cv_path_LD
15746 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15747 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15748 else
15749 $as_unset lt_cv_prog_gnu_ld
15750 fi
15751 if test -n "${lt_cv_path_LDCXX+set}"; then
15752 lt_cv_path_LD=$lt_cv_path_LDCXX
15753 else
15754 $as_unset lt_cv_path_LD
15755 fi
15756 test -z "${LDCXX+set}" || LD=$LDCXX
15757 CC=${CXX-"c++"}
15758 compiler=$CC
15759 compiler_CXX=$CC
15760 for cc_temp in $compiler""; do
15761 case $cc_temp in
15762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15764 \-*) ;;
15765 *) break;;
15766 esac
15767done
cristy18304f92009-11-22 15:48:26 +000015768cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000015769
15770
15771 if test -n "$compiler"; then
15772 # We don't want -fno-exception when compiling C++ code, so set the
15773 # no_builtin_flag separately
15774 if test "$GXX" = yes; then
15775 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15776 else
15777 lt_prog_compiler_no_builtin_flag_CXX=
15778 fi
15779
15780 if test "$GXX" = yes; then
15781 # Set up default GNU C++ configuration
15782
15783
15784
15785# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000015786if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015787 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15788else
15789 with_gnu_ld=no
15790fi
15791
15792ac_prog=ld
15793if test "$GCC" = yes; then
15794 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000015795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000015796$as_echo_n "checking for ld used by $CC... " >&6; }
15797 case $host in
15798 *-*-mingw*)
15799 # gcc leaves a trailing carriage return which upsets mingw
15800 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15801 *)
15802 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15803 esac
15804 case $ac_prog in
15805 # Accept absolute paths.
15806 [\\/]* | ?:[\\/]*)
15807 re_direlt='/[^/][^/]*/\.\./'
15808 # Canonicalize the pathname of ld
15809 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15810 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15811 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15812 done
15813 test -z "$LD" && LD="$ac_prog"
15814 ;;
15815 "")
15816 # If it fails, then pretend we aren't using GCC.
15817 ac_prog=ld
15818 ;;
15819 *)
15820 # If it is relative, then search for the first ld in PATH.
15821 with_gnu_ld=unknown
15822 ;;
15823 esac
15824elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000015825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015826$as_echo_n "checking for GNU ld... " >&6; }
15827else
cristy8b350f62009-11-15 23:12:43 +000015828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015829$as_echo_n "checking for non-GNU ld... " >&6; }
15830fi
cristy8b350f62009-11-15 23:12:43 +000015831if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015832 $as_echo_n "(cached) " >&6
15833else
15834 if test -z "$LD"; then
15835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15836 for ac_dir in $PATH; do
15837 IFS="$lt_save_ifs"
15838 test -z "$ac_dir" && ac_dir=.
15839 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15840 lt_cv_path_LD="$ac_dir/$ac_prog"
15841 # Check to see if the program is GNU ld. I'd rather use --version,
15842 # but apparently some variants of GNU ld only accept -v.
15843 # Break only if it was the GNU/non-GNU ld that we prefer.
15844 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15845 *GNU* | *'with BFD'*)
15846 test "$with_gnu_ld" != no && break
15847 ;;
15848 *)
15849 test "$with_gnu_ld" != yes && break
15850 ;;
15851 esac
15852 fi
15853 done
15854 IFS="$lt_save_ifs"
15855else
15856 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15857fi
15858fi
15859
15860LD="$lt_cv_path_LD"
15861if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000015862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000015863$as_echo "$LD" >&6; }
15864else
cristy8b350f62009-11-15 23:12:43 +000015865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015866$as_echo "no" >&6; }
15867fi
cristy8b350f62009-11-15 23:12:43 +000015868test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015870$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015871if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015872 $as_echo_n "(cached) " >&6
15873else
15874 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15875case `$LD -v 2>&1 </dev/null` in
15876*GNU* | *'with BFD'*)
15877 lt_cv_prog_gnu_ld=yes
15878 ;;
15879*)
15880 lt_cv_prog_gnu_ld=no
15881 ;;
15882esac
15883fi
cristy8b350f62009-11-15 23:12:43 +000015884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015885$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15886with_gnu_ld=$lt_cv_prog_gnu_ld
15887
15888
15889
15890
15891
15892
15893
15894 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15895 # archiving commands below assume that GNU ld is being used.
15896 if test "$with_gnu_ld" = yes; then
15897 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15898 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'
15899
15900 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15901 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15902
15903 # If archive_cmds runs LD, not CC, wlarc should be empty
15904 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15905 # investigate it a little bit more. (MM)
15906 wlarc='${wl}'
15907
15908 # ancient GNU ld didn't support --whole-archive et. al.
15909 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15910 $GREP 'no-whole-archive' > /dev/null; then
15911 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15912 else
15913 whole_archive_flag_spec_CXX=
15914 fi
15915 else
15916 with_gnu_ld=no
15917 wlarc=
15918
15919 # A generic and very simple default shared library creation
15920 # command for GNU C++ for the case where it uses the native
15921 # linker, instead of GNU ld. If possible, this setting should
15922 # overridden to take advantage of the native linker features on
15923 # the platform it is being used on.
15924 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15925 fi
15926
15927 # Commands to make compiler produce verbose output that lists
15928 # what "hidden" libraries, object files and flags are used when
15929 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015930 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015931
15932 else
15933 GXX=no
15934 with_gnu_ld=no
15935 wlarc=
15936 fi
15937
15938 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000015939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015940$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15941 ld_shlibs_CXX=yes
15942 case $host_os in
15943 aix3*)
15944 # FIXME: insert proper C++ library support
15945 ld_shlibs_CXX=no
15946 ;;
15947 aix[4-9]*)
15948 if test "$host_cpu" = ia64; then
15949 # On IA64, the linker does run time linking by default, so we don't
15950 # have to do anything special.
15951 aix_use_runtimelinking=no
15952 exp_sym_flag='-Bexport'
15953 no_entry_flag=""
15954 else
15955 aix_use_runtimelinking=no
15956
15957 # Test if we are trying to use run time linking or normal
15958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15959 # need to do runtime linking.
15960 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15961 for ld_flag in $LDFLAGS; do
15962 case $ld_flag in
15963 *-brtl*)
15964 aix_use_runtimelinking=yes
15965 break
15966 ;;
15967 esac
15968 done
15969 ;;
15970 esac
15971
15972 exp_sym_flag='-bexport'
15973 no_entry_flag='-bnoentry'
15974 fi
15975
15976 # When large executables or shared objects are built, AIX ld can
15977 # have problems creating the table of contents. If linking a library
15978 # or program results in "error TOC overflow" add -mminimal-toc to
15979 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15980 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15981
15982 archive_cmds_CXX=''
15983 hardcode_direct_CXX=yes
15984 hardcode_direct_absolute_CXX=yes
15985 hardcode_libdir_separator_CXX=':'
15986 link_all_deplibs_CXX=yes
15987 file_list_spec_CXX='${wl}-f,'
15988
15989 if test "$GXX" = yes; then
15990 case $host_os in aix4.[012]|aix4.[012].*)
15991 # We only want to do this on AIX 4.2 and lower, the check
15992 # below for broken collect2 doesn't work under 4.3+
15993 collect2name=`${CC} -print-prog-name=collect2`
15994 if test -f "$collect2name" &&
15995 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15996 then
15997 # We have reworked collect2
15998 :
15999 else
16000 # We have old collect2
16001 hardcode_direct_CXX=unsupported
16002 # It fails to find uninstalled libraries when the uninstalled
16003 # path is not listed in the libpath. Setting hardcode_minus_L
16004 # to unsupported forces relinking
16005 hardcode_minus_L_CXX=yes
16006 hardcode_libdir_flag_spec_CXX='-L$libdir'
16007 hardcode_libdir_separator_CXX=
16008 fi
16009 esac
16010 shared_flag='-shared'
16011 if test "$aix_use_runtimelinking" = yes; then
16012 shared_flag="$shared_flag "'${wl}-G'
16013 fi
16014 else
16015 # not using gcc
16016 if test "$host_cpu" = ia64; then
16017 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16018 # chokes on -Wl,-G. The following line is correct:
16019 shared_flag='-G'
16020 else
16021 if test "$aix_use_runtimelinking" = yes; then
16022 shared_flag='${wl}-G'
16023 else
16024 shared_flag='${wl}-bM:SRE'
16025 fi
16026 fi
16027 fi
16028
16029 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16030 # It seems that -bexpall does not export symbols beginning with
16031 # underscore (_), so it is better to generate a list of symbols to
16032 # export.
16033 always_export_symbols_CXX=yes
16034 if test "$aix_use_runtimelinking" = yes; then
16035 # Warning - without using the other runtime loading flags (-brtl),
16036 # -berok will link without error, but may produce a broken library.
16037 allow_undefined_flag_CXX='-berok'
16038 # Determine the default libpath from the value encoded in an empty
16039 # executable.
cristy8b350f62009-11-15 23:12:43 +000016040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016041/* end confdefs.h. */
16042
16043int
16044main ()
16045{
16046
16047 ;
16048 return 0;
16049}
16050_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016051if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016052
16053lt_aix_libpath_sed='
16054 /Import File Strings/,/^$/ {
16055 /^0/ {
16056 s/^0 *\(.*\)$/\1/
16057 p
16058 }
16059 }'
16060aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16061# Check for a 64-bit object if we didn't find anything.
16062if test -z "$aix_libpath"; then
16063 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16064fi
cristy3ed852e2009-09-05 21:47:34 +000016065fi
cristy8b350f62009-11-15 23:12:43 +000016066rm -f core conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016068if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16069
16070 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16071
cristy18304f92009-11-22 15:48:26 +000016072 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 +000016073 else
16074 if test "$host_cpu" = ia64; then
16075 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16076 allow_undefined_flag_CXX="-z nodefs"
16077 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"
16078 else
16079 # Determine the default libpath from the value encoded in an
16080 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016082/* end confdefs.h. */
16083
16084int
16085main ()
16086{
16087
16088 ;
16089 return 0;
16090}
16091_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016092if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016093
16094lt_aix_libpath_sed='
16095 /Import File Strings/,/^$/ {
16096 /^0/ {
16097 s/^0 *\(.*\)$/\1/
16098 p
16099 }
16100 }'
16101aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16102# Check for a 64-bit object if we didn't find anything.
16103if test -z "$aix_libpath"; then
16104 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16105fi
cristy3ed852e2009-09-05 21:47:34 +000016106fi
cristy8b350f62009-11-15 23:12:43 +000016107rm -f core conftest.err conftest.$ac_objext \
16108 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016109if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16110
16111 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16112 # Warning - without using the other run time loading flags,
16113 # -berok will link without error, but may produce a broken library.
16114 no_undefined_flag_CXX=' ${wl}-bernotok'
16115 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000016116 # Exported symbols can be pulled into shared objects from archives
16117 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000016118 archive_cmds_need_lc_CXX=yes
16119 # This is similar to how AIX traditionally builds its shared
16120 # libraries.
16121 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'
16122 fi
16123 fi
16124 ;;
16125
16126 beos*)
16127 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16128 allow_undefined_flag_CXX=unsupported
16129 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16130 # support --undefined. This deserves some investigation. FIXME
16131 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16132 else
16133 ld_shlibs_CXX=no
16134 fi
16135 ;;
16136
16137 chorus*)
16138 case $cc_basename in
16139 *)
16140 # FIXME: insert proper C++ library support
16141 ld_shlibs_CXX=no
16142 ;;
16143 esac
16144 ;;
16145
16146 cygwin* | mingw* | pw32* | cegcc*)
16147 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16148 # as there is no search path for DLLs.
16149 hardcode_libdir_flag_spec_CXX='-L$libdir'
16150 allow_undefined_flag_CXX=unsupported
16151 always_export_symbols_CXX=no
16152 enable_shared_with_static_runtimes_CXX=yes
16153
16154 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16155 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'
16156 # If the export-symbols file already is a .def file (1st line
16157 # is EXPORTS), use it as is; otherwise, prepend...
16158 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16159 cp $export_symbols $output_objdir/$soname.def;
16160 else
16161 echo EXPORTS > $output_objdir/$soname.def;
16162 cat $export_symbols >> $output_objdir/$soname.def;
16163 fi~
16164 $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'
16165 else
16166 ld_shlibs_CXX=no
16167 fi
16168 ;;
16169 darwin* | rhapsody*)
16170
16171
16172 archive_cmds_need_lc_CXX=no
16173 hardcode_direct_CXX=no
16174 hardcode_automatic_CXX=yes
16175 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000016176 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000016177 link_all_deplibs_CXX=yes
16178 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16179 case $cc_basename in
16180 ifort*) _lt_dar_can_shared=yes ;;
16181 *) _lt_dar_can_shared=$GCC ;;
16182 esac
16183 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000016184 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016185 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}"
16186 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16187 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}"
16188 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}"
16189 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16190 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}"
16191 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}"
16192 fi
16193
16194 else
16195 ld_shlibs_CXX=no
16196 fi
16197
16198 ;;
16199
16200 dgux*)
16201 case $cc_basename in
16202 ec++*)
16203 # FIXME: insert proper C++ library support
16204 ld_shlibs_CXX=no
16205 ;;
16206 ghcx*)
16207 # Green Hills C++ Compiler
16208 # FIXME: insert proper C++ library support
16209 ld_shlibs_CXX=no
16210 ;;
16211 *)
16212 # FIXME: insert proper C++ library support
16213 ld_shlibs_CXX=no
16214 ;;
16215 esac
16216 ;;
16217
16218 freebsd[12]*)
16219 # C++ shared libraries reported to be fairly broken before
16220 # switch to ELF
16221 ld_shlibs_CXX=no
16222 ;;
16223
16224 freebsd-elf*)
16225 archive_cmds_need_lc_CXX=no
16226 ;;
16227
16228 freebsd* | dragonfly*)
16229 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16230 # conventions
16231 ld_shlibs_CXX=yes
16232 ;;
16233
16234 gnu*)
16235 ;;
16236
16237 hpux9*)
16238 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16239 hardcode_libdir_separator_CXX=:
16240 export_dynamic_flag_spec_CXX='${wl}-E'
16241 hardcode_direct_CXX=yes
16242 hardcode_minus_L_CXX=yes # Not in the search PATH,
16243 # but as the default
16244 # location of the library.
16245
16246 case $cc_basename in
16247 CC*)
16248 # FIXME: insert proper C++ library support
16249 ld_shlibs_CXX=no
16250 ;;
16251 aCC*)
16252 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'
16253 # Commands to make compiler produce verbose output that lists
16254 # what "hidden" libraries, object files and flags are used when
16255 # linking a shared library.
16256 #
16257 # There doesn't appear to be a way to prevent this compiler from
16258 # explicitly linking system object files so we need to strip them
16259 # from the output so that they don't get included in the library
16260 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016261 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 +000016262 ;;
16263 *)
16264 if test "$GXX" = yes; then
16265 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'
16266 else
16267 # FIXME: insert proper C++ library support
16268 ld_shlibs_CXX=no
16269 fi
16270 ;;
16271 esac
16272 ;;
16273
16274 hpux10*|hpux11*)
16275 if test $with_gnu_ld = no; then
16276 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16277 hardcode_libdir_separator_CXX=:
16278
16279 case $host_cpu in
16280 hppa*64*|ia64*)
16281 ;;
16282 *)
16283 export_dynamic_flag_spec_CXX='${wl}-E'
16284 ;;
16285 esac
16286 fi
16287 case $host_cpu in
16288 hppa*64*|ia64*)
16289 hardcode_direct_CXX=no
16290 hardcode_shlibpath_var_CXX=no
16291 ;;
16292 *)
16293 hardcode_direct_CXX=yes
16294 hardcode_direct_absolute_CXX=yes
16295 hardcode_minus_L_CXX=yes # Not in the search PATH,
16296 # but as the default
16297 # location of the library.
16298 ;;
16299 esac
16300
16301 case $cc_basename in
16302 CC*)
16303 # FIXME: insert proper C++ library support
16304 ld_shlibs_CXX=no
16305 ;;
16306 aCC*)
16307 case $host_cpu in
16308 hppa*64*)
16309 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16310 ;;
16311 ia64*)
16312 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16313 ;;
16314 *)
16315 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16316 ;;
16317 esac
16318 # Commands to make compiler produce verbose output that lists
16319 # what "hidden" libraries, object files and flags are used when
16320 # linking a shared library.
16321 #
16322 # There doesn't appear to be a way to prevent this compiler from
16323 # explicitly linking system object files so we need to strip them
16324 # from the output so that they don't get included in the library
16325 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016326 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 +000016327 ;;
16328 *)
16329 if test "$GXX" = yes; then
16330 if test $with_gnu_ld = no; then
16331 case $host_cpu in
16332 hppa*64*)
16333 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16334 ;;
16335 ia64*)
16336 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16337 ;;
16338 *)
16339 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'
16340 ;;
16341 esac
16342 fi
16343 else
16344 # FIXME: insert proper C++ library support
16345 ld_shlibs_CXX=no
16346 fi
16347 ;;
16348 esac
16349 ;;
16350
16351 interix[3-9]*)
16352 hardcode_direct_CXX=no
16353 hardcode_shlibpath_var_CXX=no
16354 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16355 export_dynamic_flag_spec_CXX='${wl}-E'
16356 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16357 # Instead, shared libraries are loaded at an image base (0x10000000 by
16358 # default) and relocated if they conflict, which is a slow very memory
16359 # consuming and fragmenting process. To avoid this, we pick a random,
16360 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16361 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16362 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'
16363 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'
16364 ;;
16365 irix5* | irix6*)
16366 case $cc_basename in
16367 CC*)
16368 # SGI C++
cristy18304f92009-11-22 15:48:26 +000016369 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 +000016370
16371 # Archives containing C++ object files must be created using
16372 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16373 # necessary to make sure instantiated templates are included
16374 # in the archive.
16375 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16376 ;;
16377 *)
16378 if test "$GXX" = yes; then
16379 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000016380 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 +000016381 else
cristy18304f92009-11-22 15:48:26 +000016382 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 +000016383 fi
16384 fi
16385 link_all_deplibs_CXX=yes
16386 ;;
16387 esac
16388 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16389 hardcode_libdir_separator_CXX=:
16390 inherit_rpath_CXX=yes
16391 ;;
16392
cristy18304f92009-11-22 15:48:26 +000016393 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016394 case $cc_basename in
16395 KCC*)
16396 # Kuck and Associates, Inc. (KAI) C++ Compiler
16397
16398 # KCC will only create a shared library if the output file
16399 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16400 # to its proper name (with version) after linking.
16401 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'
16402 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'
16403 # Commands to make compiler produce verbose output that lists
16404 # what "hidden" libraries, object files and flags are used when
16405 # linking a shared library.
16406 #
16407 # There doesn't appear to be a way to prevent this compiler from
16408 # explicitly linking system object files so we need to strip them
16409 # from the output so that they don't get included in the library
16410 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016411 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 +000016412
16413 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16414 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16415
16416 # Archives containing C++ object files must be created using
16417 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16418 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16419 ;;
16420 icpc* | ecpc* )
16421 # Intel C++
16422 with_gnu_ld=yes
16423 # version 8.0 and above of icpc choke on multiply defined symbols
16424 # if we add $predep_objects and $postdep_objects, however 7.1 and
16425 # earlier do not add the objects themselves.
16426 case `$CC -V 2>&1` in
16427 *"Version 7."*)
16428 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16429 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'
16430 ;;
16431 *) # Version 8.0 or newer
16432 tmp_idyn=
16433 case $host_cpu in
16434 ia64*) tmp_idyn=' -i_dynamic';;
16435 esac
16436 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16437 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'
16438 ;;
16439 esac
16440 archive_cmds_need_lc_CXX=no
16441 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16442 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16443 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16444 ;;
16445 pgCC* | pgcpp*)
16446 # Portland Group C++ compiler
16447 case `$CC -V` in
16448 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16449 prelink_cmds_CXX='tpldir=Template.dir~
16450 rm -rf $tpldir~
16451 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16452 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16453 old_archive_cmds_CXX='tpldir=Template.dir~
16454 rm -rf $tpldir~
16455 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16456 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16457 $RANLIB $oldlib'
16458 archive_cmds_CXX='tpldir=Template.dir~
16459 rm -rf $tpldir~
16460 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16461 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16462 archive_expsym_cmds_CXX='tpldir=Template.dir~
16463 rm -rf $tpldir~
16464 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16465 $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'
16466 ;;
16467 *) # Version 6 will use weak symbols
16468 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16469 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'
16470 ;;
16471 esac
16472
16473 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16474 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000016475 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 +000016476 ;;
16477 cxx*)
16478 # Compaq C++
16479 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16480 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'
16481
16482 runpath_var=LD_RUN_PATH
16483 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16484 hardcode_libdir_separator_CXX=:
16485
16486 # Commands to make compiler produce verbose output that lists
16487 # what "hidden" libraries, object files and flags are used when
16488 # linking a shared library.
16489 #
16490 # There doesn't appear to be a way to prevent this compiler from
16491 # explicitly linking system object files so we need to strip them
16492 # from the output so that they don't get included in the library
16493 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016494 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 +000016495 ;;
cristy18304f92009-11-22 15:48:26 +000016496 xl*)
cristy3ed852e2009-09-05 21:47:34 +000016497 # IBM XL 8.0 on PPC, with GNU ld
16498 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16499 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16500 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16501 if test "x$supports_anon_versioning" = xyes; then
16502 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16503 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16504 echo "local: *; };" >> $output_objdir/$libname.ver~
16505 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16506 fi
16507 ;;
16508 *)
16509 case `$CC -V 2>&1 | sed 5q` in
16510 *Sun\ C*)
16511 # Sun C++ 5.9
16512 no_undefined_flag_CXX=' -zdefs'
16513 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16514 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'
16515 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000016516 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 +000016517 compiler_needs_object_CXX=yes
16518
16519 # Not sure whether something based on
16520 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16521 # would be better.
cristy18304f92009-11-22 15:48:26 +000016522 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000016523
16524 # Archives containing C++ object files must be created using
16525 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16526 # necessary to make sure instantiated templates are included
16527 # in the archive.
16528 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16529 ;;
16530 esac
16531 ;;
16532 esac
16533 ;;
16534
16535 lynxos*)
16536 # FIXME: insert proper C++ library support
16537 ld_shlibs_CXX=no
16538 ;;
16539
16540 m88k*)
16541 # FIXME: insert proper C++ library support
16542 ld_shlibs_CXX=no
16543 ;;
16544
16545 mvs*)
16546 case $cc_basename in
16547 cxx*)
16548 # FIXME: insert proper C++ library support
16549 ld_shlibs_CXX=no
16550 ;;
16551 *)
16552 # FIXME: insert proper C++ library support
16553 ld_shlibs_CXX=no
16554 ;;
16555 esac
16556 ;;
16557
16558 netbsd*)
16559 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16560 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16561 wlarc=
16562 hardcode_libdir_flag_spec_CXX='-R$libdir'
16563 hardcode_direct_CXX=yes
16564 hardcode_shlibpath_var_CXX=no
16565 fi
16566 # Workaround some broken pre-1.5 toolchains
16567 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16568 ;;
16569
16570 *nto* | *qnx*)
16571 ld_shlibs_CXX=yes
16572 ;;
16573
16574 openbsd2*)
16575 # C++ shared libraries are fairly broken
16576 ld_shlibs_CXX=no
16577 ;;
16578
16579 openbsd*)
16580 if test -f /usr/libexec/ld.so; then
16581 hardcode_direct_CXX=yes
16582 hardcode_shlibpath_var_CXX=no
16583 hardcode_direct_absolute_CXX=yes
16584 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16585 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16587 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16588 export_dynamic_flag_spec_CXX='${wl}-E'
16589 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16590 fi
cristy18304f92009-11-22 15:48:26 +000016591 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016592 else
16593 ld_shlibs_CXX=no
16594 fi
16595 ;;
16596
16597 osf3* | osf4* | osf5*)
16598 case $cc_basename in
16599 KCC*)
16600 # Kuck and Associates, Inc. (KAI) C++ Compiler
16601
16602 # KCC will only create a shared library if the output file
16603 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16604 # to its proper name (with version) after linking.
16605 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'
16606
16607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16608 hardcode_libdir_separator_CXX=:
16609
16610 # Archives containing C++ object files must be created using
16611 # the KAI C++ compiler.
16612 case $host in
16613 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16614 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16615 esac
16616 ;;
16617 RCC*)
16618 # Rational C++ 2.4.1
16619 # FIXME: insert proper C++ library support
16620 ld_shlibs_CXX=no
16621 ;;
16622 cxx*)
16623 case $host in
16624 osf3*)
16625 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000016626 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 +000016627 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16628 ;;
16629 *)
16630 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000016631 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 +000016632 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16633 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000016634 $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 +000016635 $RM $lib.exp'
16636 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16637 ;;
16638 esac
16639
16640 hardcode_libdir_separator_CXX=:
16641
16642 # Commands to make compiler produce verbose output that lists
16643 # what "hidden" libraries, object files and flags are used when
16644 # linking a shared library.
16645 #
16646 # There doesn't appear to be a way to prevent this compiler from
16647 # explicitly linking system object files so we need to strip them
16648 # from the output so that they don't get included in the library
16649 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016650 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 +000016651 ;;
16652 *)
16653 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16654 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16655 case $host in
16656 osf3*)
cristy18304f92009-11-22 15:48:26 +000016657 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 +000016658 ;;
16659 *)
cristy18304f92009-11-22 15:48:26 +000016660 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 +000016661 ;;
16662 esac
16663
16664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16665 hardcode_libdir_separator_CXX=:
16666
16667 # Commands to make compiler produce verbose output that lists
16668 # what "hidden" libraries, object files and flags are used when
16669 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016670 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016671
16672 else
16673 # FIXME: insert proper C++ library support
16674 ld_shlibs_CXX=no
16675 fi
16676 ;;
16677 esac
16678 ;;
16679
16680 psos*)
16681 # FIXME: insert proper C++ library support
16682 ld_shlibs_CXX=no
16683 ;;
16684
16685 sunos4*)
16686 case $cc_basename in
16687 CC*)
16688 # Sun C++ 4.x
16689 # FIXME: insert proper C++ library support
16690 ld_shlibs_CXX=no
16691 ;;
16692 lcc*)
16693 # Lucid
16694 # FIXME: insert proper C++ library support
16695 ld_shlibs_CXX=no
16696 ;;
16697 *)
16698 # FIXME: insert proper C++ library support
16699 ld_shlibs_CXX=no
16700 ;;
16701 esac
16702 ;;
16703
16704 solaris*)
16705 case $cc_basename in
16706 CC*)
16707 # Sun C++ 4.2, 5.x and Centerline C++
16708 archive_cmds_need_lc_CXX=yes
16709 no_undefined_flag_CXX=' -zdefs'
16710 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16711 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16712 $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'
16713
16714 hardcode_libdir_flag_spec_CXX='-R$libdir'
16715 hardcode_shlibpath_var_CXX=no
16716 case $host_os in
16717 solaris2.[0-5] | solaris2.[0-5].*) ;;
16718 *)
16719 # The compiler driver will combine and reorder linker options,
16720 # but understands `-z linker_flag'.
16721 # Supported since Solaris 2.6 (maybe 2.5.1?)
16722 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16723 ;;
16724 esac
16725 link_all_deplibs_CXX=yes
16726
cristy18304f92009-11-22 15:48:26 +000016727 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000016728
16729 # Archives containing C++ object files must be created using
16730 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16731 # necessary to make sure instantiated templates are included
16732 # in the archive.
16733 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16734 ;;
16735 gcx*)
16736 # Green Hills C++ Compiler
16737 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16738
16739 # The C++ compiler must be used to create the archive.
16740 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16741 ;;
16742 *)
16743 # GNU C++ compiler with Solaris linker
16744 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16745 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16746 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16747 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16748 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16749 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16750
16751 # Commands to make compiler produce verbose output that lists
16752 # what "hidden" libraries, object files and flags are used when
16753 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016754 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016755 else
16756 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16757 # platform.
16758 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16759 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16760 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16761
16762 # Commands to make compiler produce verbose output that lists
16763 # what "hidden" libraries, object files and flags are used when
16764 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016765 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016766 fi
16767
16768 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16769 case $host_os in
16770 solaris2.[0-5] | solaris2.[0-5].*) ;;
16771 *)
16772 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16773 ;;
16774 esac
16775 fi
16776 ;;
16777 esac
16778 ;;
16779
16780 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16781 no_undefined_flag_CXX='${wl}-z,text'
16782 archive_cmds_need_lc_CXX=no
16783 hardcode_shlibpath_var_CXX=no
16784 runpath_var='LD_RUN_PATH'
16785
16786 case $cc_basename in
16787 CC*)
16788 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16789 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16790 ;;
16791 *)
16792 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16793 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16794 ;;
16795 esac
16796 ;;
16797
16798 sysv5* | sco3.2v5* | sco5v6*)
16799 # Note: We can NOT use -z defs as we might desire, because we do not
16800 # link with -lc, and that would cause any symbols used from libc to
16801 # always be unresolved, which means just about no library would
16802 # ever link correctly. If we're not using GNU ld we use -z text
16803 # though, which does catch some bad symbols but isn't as heavy-handed
16804 # as -z defs.
16805 no_undefined_flag_CXX='${wl}-z,text'
16806 allow_undefined_flag_CXX='${wl}-z,nodefs'
16807 archive_cmds_need_lc_CXX=no
16808 hardcode_shlibpath_var_CXX=no
16809 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16810 hardcode_libdir_separator_CXX=':'
16811 link_all_deplibs_CXX=yes
16812 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16813 runpath_var='LD_RUN_PATH'
16814
16815 case $cc_basename in
16816 CC*)
16817 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16818 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16819 ;;
16820 *)
16821 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16822 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16823 ;;
16824 esac
16825 ;;
16826
16827 tandem*)
16828 case $cc_basename in
16829 NCC*)
16830 # NonStop-UX NCC 3.20
16831 # FIXME: insert proper C++ library support
16832 ld_shlibs_CXX=no
16833 ;;
16834 *)
16835 # FIXME: insert proper C++ library support
16836 ld_shlibs_CXX=no
16837 ;;
16838 esac
16839 ;;
16840
16841 vxworks*)
16842 # FIXME: insert proper C++ library support
16843 ld_shlibs_CXX=no
16844 ;;
16845
16846 *)
16847 # FIXME: insert proper C++ library support
16848 ld_shlibs_CXX=no
16849 ;;
16850 esac
16851
cristy8b350f62009-11-15 23:12:43 +000016852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016853$as_echo "$ld_shlibs_CXX" >&6; }
16854 test "$ld_shlibs_CXX" = no && can_build_shared=no
16855
16856 GCC_CXX="$GXX"
16857 LD_CXX="$LD"
16858
16859 ## CAVEAT EMPTOR:
16860 ## There is no encapsulation within the following macros, do not change
16861 ## the running order or otherwise move them around unless you know exactly
16862 ## what you are doing...
16863 # Dependencies to place before and after the object being linked:
16864predep_objects_CXX=
16865postdep_objects_CXX=
16866predeps_CXX=
16867postdeps_CXX=
16868compiler_lib_search_path_CXX=
16869
16870cat > conftest.$ac_ext <<_LT_EOF
16871class Foo
16872{
16873public:
16874 Foo (void) { a = 0; }
16875private:
16876 int a;
16877};
16878_LT_EOF
16879
cristy8b350f62009-11-15 23:12:43 +000016880if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016881 (eval $ac_compile) 2>&5
16882 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16884 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000016885 # Parse the compiler output and extract the necessary
16886 # objects, libraries and library flags.
16887
16888 # Sentinel used to keep track of whether or not we are before
16889 # the conftest object file.
16890 pre_test_object_deps_done=no
16891
16892 for p in `eval "$output_verbose_link_cmd"`; do
16893 case $p in
16894
16895 -L* | -R* | -l*)
16896 # Some compilers place space between "-{L,R}" and the path.
16897 # Remove the space.
16898 if test $p = "-L" ||
16899 test $p = "-R"; then
16900 prev=$p
16901 continue
16902 else
16903 prev=
16904 fi
16905
16906 if test "$pre_test_object_deps_done" = no; then
16907 case $p in
16908 -L* | -R*)
16909 # Internal compiler library paths should come after those
16910 # provided the user. The postdeps already come after the
16911 # user supplied libs so there is no need to process them.
16912 if test -z "$compiler_lib_search_path_CXX"; then
16913 compiler_lib_search_path_CXX="${prev}${p}"
16914 else
16915 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16916 fi
16917 ;;
16918 # The "-l" case would never come before the object being
16919 # linked, so don't bother handling this case.
16920 esac
16921 else
16922 if test -z "$postdeps_CXX"; then
16923 postdeps_CXX="${prev}${p}"
16924 else
16925 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16926 fi
16927 fi
16928 ;;
16929
16930 *.$objext)
16931 # This assumes that the test object file only shows up
16932 # once in the compiler output.
16933 if test "$p" = "conftest.$objext"; then
16934 pre_test_object_deps_done=yes
16935 continue
16936 fi
16937
16938 if test "$pre_test_object_deps_done" = no; then
16939 if test -z "$predep_objects_CXX"; then
16940 predep_objects_CXX="$p"
16941 else
16942 predep_objects_CXX="$predep_objects_CXX $p"
16943 fi
16944 else
16945 if test -z "$postdep_objects_CXX"; then
16946 postdep_objects_CXX="$p"
16947 else
16948 postdep_objects_CXX="$postdep_objects_CXX $p"
16949 fi
16950 fi
16951 ;;
16952
16953 *) ;; # Ignore the rest.
16954
16955 esac
16956 done
16957
16958 # Clean up.
16959 rm -f a.out a.exe
16960else
16961 echo "libtool.m4: error: problem compiling CXX test program"
16962fi
16963
16964$RM -f confest.$objext
16965
16966# PORTME: override above test on systems where it is broken
16967case $host_os in
16968interix[3-9]*)
16969 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16970 # hack all around it, let's just trust "g++" to DTRT.
16971 predep_objects_CXX=
16972 postdep_objects_CXX=
16973 postdeps_CXX=
16974 ;;
16975
16976linux*)
16977 case `$CC -V 2>&1 | sed 5q` in
16978 *Sun\ C*)
16979 # Sun C++ 5.9
16980
16981 # The more standards-conforming stlport4 library is
16982 # incompatible with the Cstd library. Avoid specifying
16983 # it if it's in CXXFLAGS. Ignore libCrun as
16984 # -library=stlport4 depends on it.
16985 case " $CXX $CXXFLAGS " in
16986 *" -library=stlport4 "*)
16987 solaris_use_stlport4=yes
16988 ;;
16989 esac
16990
16991 if test "$solaris_use_stlport4" != yes; then
16992 postdeps_CXX='-library=Cstd -library=Crun'
16993 fi
16994 ;;
16995 esac
16996 ;;
16997
16998solaris*)
16999 case $cc_basename in
17000 CC*)
17001 # The more standards-conforming stlport4 library is
17002 # incompatible with the Cstd library. Avoid specifying
17003 # it if it's in CXXFLAGS. Ignore libCrun as
17004 # -library=stlport4 depends on it.
17005 case " $CXX $CXXFLAGS " in
17006 *" -library=stlport4 "*)
17007 solaris_use_stlport4=yes
17008 ;;
17009 esac
17010
17011 # Adding this requires a known-good setup of shared libraries for
17012 # Sun compiler versions before 5.6, else PIC objects from an old
17013 # archive will be linked into the output, leading to subtle bugs.
17014 if test "$solaris_use_stlport4" != yes; then
17015 postdeps_CXX='-library=Cstd -library=Crun'
17016 fi
17017 ;;
17018 esac
17019 ;;
17020esac
17021
17022
17023case " $postdeps_CXX " in
17024*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17025esac
17026 compiler_lib_search_dirs_CXX=
17027if test -n "${compiler_lib_search_path_CXX}"; then
17028 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17029fi
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061 lt_prog_compiler_wl_CXX=
17062lt_prog_compiler_pic_CXX=
17063lt_prog_compiler_static_CXX=
17064
cristy8b350f62009-11-15 23:12:43 +000017065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017066$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17067
17068 # C++ specific cases for pic, static, wl, etc.
17069 if test "$GXX" = yes; then
17070 lt_prog_compiler_wl_CXX='-Wl,'
17071 lt_prog_compiler_static_CXX='-static'
17072
17073 case $host_os in
17074 aix*)
17075 # All AIX code is PIC.
17076 if test "$host_cpu" = ia64; then
17077 # AIX 5 now supports IA64 processor
17078 lt_prog_compiler_static_CXX='-Bstatic'
17079 fi
17080 ;;
17081
17082 amigaos*)
17083 case $host_cpu in
17084 powerpc)
17085 # see comment about AmigaOS4 .so support
17086 lt_prog_compiler_pic_CXX='-fPIC'
17087 ;;
17088 m68k)
17089 # FIXME: we need at least 68020 code to build shared libraries, but
17090 # adding the `-m68020' flag to GCC prevents building anything better,
17091 # like `-m68040'.
17092 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17093 ;;
17094 esac
17095 ;;
17096
17097 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17098 # PIC is the default for these OSes.
17099 ;;
17100 mingw* | cygwin* | os2* | pw32* | cegcc*)
17101 # This hack is so that the source file can tell whether it is being
17102 # built for inclusion in a dll (and should export symbols for example).
17103 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17104 # (--disable-auto-import) libraries
17105 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17106 ;;
17107 darwin* | rhapsody*)
17108 # PIC is the default on this platform
17109 # Common symbols not allowed in MH_DYLIB files
17110 lt_prog_compiler_pic_CXX='-fno-common'
17111 ;;
17112 *djgpp*)
17113 # DJGPP does not support shared libraries at all
17114 lt_prog_compiler_pic_CXX=
17115 ;;
17116 interix[3-9]*)
17117 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17118 # Instead, we relocate shared libraries at runtime.
17119 ;;
17120 sysv4*MP*)
17121 if test -d /usr/nec; then
17122 lt_prog_compiler_pic_CXX=-Kconform_pic
17123 fi
17124 ;;
17125 hpux*)
17126 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17127 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17128 # sets the default TLS model and affects inlining.
17129 case $host_cpu in
17130 hppa*64*)
17131 ;;
17132 *)
17133 lt_prog_compiler_pic_CXX='-fPIC'
17134 ;;
17135 esac
17136 ;;
17137 *qnx* | *nto*)
17138 # QNX uses GNU C++, but need to define -shared option too, otherwise
17139 # it will coredump.
17140 lt_prog_compiler_pic_CXX='-fPIC -shared'
17141 ;;
17142 *)
17143 lt_prog_compiler_pic_CXX='-fPIC'
17144 ;;
17145 esac
17146 else
17147 case $host_os in
17148 aix[4-9]*)
17149 # All AIX code is PIC.
17150 if test "$host_cpu" = ia64; then
17151 # AIX 5 now supports IA64 processor
17152 lt_prog_compiler_static_CXX='-Bstatic'
17153 else
17154 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17155 fi
17156 ;;
17157 chorus*)
17158 case $cc_basename in
17159 cxch68*)
17160 # Green Hills C++ Compiler
17161 # _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"
17162 ;;
17163 esac
17164 ;;
17165 dgux*)
17166 case $cc_basename in
17167 ec++*)
17168 lt_prog_compiler_pic_CXX='-KPIC'
17169 ;;
17170 ghcx*)
17171 # Green Hills C++ Compiler
17172 lt_prog_compiler_pic_CXX='-pic'
17173 ;;
17174 *)
17175 ;;
17176 esac
17177 ;;
17178 freebsd* | dragonfly*)
17179 # FreeBSD uses GNU C++
17180 ;;
17181 hpux9* | hpux10* | hpux11*)
17182 case $cc_basename in
17183 CC*)
17184 lt_prog_compiler_wl_CXX='-Wl,'
17185 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17186 if test "$host_cpu" != ia64; then
17187 lt_prog_compiler_pic_CXX='+Z'
17188 fi
17189 ;;
17190 aCC*)
17191 lt_prog_compiler_wl_CXX='-Wl,'
17192 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17193 case $host_cpu in
17194 hppa*64*|ia64*)
17195 # +Z the default
17196 ;;
17197 *)
17198 lt_prog_compiler_pic_CXX='+Z'
17199 ;;
17200 esac
17201 ;;
17202 *)
17203 ;;
17204 esac
17205 ;;
17206 interix*)
17207 # This is c89, which is MS Visual C++ (no shared libs)
17208 # Anyone wants to do a port?
17209 ;;
17210 irix5* | irix6* | nonstopux*)
17211 case $cc_basename in
17212 CC*)
17213 lt_prog_compiler_wl_CXX='-Wl,'
17214 lt_prog_compiler_static_CXX='-non_shared'
17215 # CC pic flag -KPIC is the default.
17216 ;;
17217 *)
17218 ;;
17219 esac
17220 ;;
cristy18304f92009-11-22 15:48:26 +000017221 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017222 case $cc_basename in
17223 KCC*)
17224 # KAI C++ Compiler
17225 lt_prog_compiler_wl_CXX='--backend -Wl,'
17226 lt_prog_compiler_pic_CXX='-fPIC'
17227 ;;
17228 ecpc* )
17229 # old Intel C++ for x86_64 which still supported -KPIC.
17230 lt_prog_compiler_wl_CXX='-Wl,'
17231 lt_prog_compiler_pic_CXX='-KPIC'
17232 lt_prog_compiler_static_CXX='-static'
17233 ;;
17234 icpc* )
17235 # Intel C++, used to be incompatible with GCC.
17236 # ICC 10 doesn't accept -KPIC any more.
17237 lt_prog_compiler_wl_CXX='-Wl,'
17238 lt_prog_compiler_pic_CXX='-fPIC'
17239 lt_prog_compiler_static_CXX='-static'
17240 ;;
17241 pgCC* | pgcpp*)
17242 # Portland Group C++ compiler
17243 lt_prog_compiler_wl_CXX='-Wl,'
17244 lt_prog_compiler_pic_CXX='-fpic'
17245 lt_prog_compiler_static_CXX='-Bstatic'
17246 ;;
17247 cxx*)
17248 # Compaq C++
17249 # Make sure the PIC flag is empty. It appears that all Alpha
17250 # Linux and Compaq Tru64 Unix objects are PIC.
17251 lt_prog_compiler_pic_CXX=
17252 lt_prog_compiler_static_CXX='-non_shared'
17253 ;;
cristy18304f92009-11-22 15:48:26 +000017254 xlc* | xlC*)
17255 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000017256 lt_prog_compiler_wl_CXX='-Wl,'
17257 lt_prog_compiler_pic_CXX='-qpic'
17258 lt_prog_compiler_static_CXX='-qstaticlink'
17259 ;;
17260 *)
17261 case `$CC -V 2>&1 | sed 5q` in
17262 *Sun\ C*)
17263 # Sun C++ 5.9
17264 lt_prog_compiler_pic_CXX='-KPIC'
17265 lt_prog_compiler_static_CXX='-Bstatic'
17266 lt_prog_compiler_wl_CXX='-Qoption ld '
17267 ;;
17268 esac
17269 ;;
17270 esac
17271 ;;
17272 lynxos*)
17273 ;;
17274 m88k*)
17275 ;;
17276 mvs*)
17277 case $cc_basename in
17278 cxx*)
17279 lt_prog_compiler_pic_CXX='-W c,exportall'
17280 ;;
17281 *)
17282 ;;
17283 esac
17284 ;;
17285 netbsd*)
17286 ;;
17287 *qnx* | *nto*)
17288 # QNX uses GNU C++, but need to define -shared option too, otherwise
17289 # it will coredump.
17290 lt_prog_compiler_pic_CXX='-fPIC -shared'
17291 ;;
17292 osf3* | osf4* | osf5*)
17293 case $cc_basename in
17294 KCC*)
17295 lt_prog_compiler_wl_CXX='--backend -Wl,'
17296 ;;
17297 RCC*)
17298 # Rational C++ 2.4.1
17299 lt_prog_compiler_pic_CXX='-pic'
17300 ;;
17301 cxx*)
17302 # Digital/Compaq C++
17303 lt_prog_compiler_wl_CXX='-Wl,'
17304 # Make sure the PIC flag is empty. It appears that all Alpha
17305 # Linux and Compaq Tru64 Unix objects are PIC.
17306 lt_prog_compiler_pic_CXX=
17307 lt_prog_compiler_static_CXX='-non_shared'
17308 ;;
17309 *)
17310 ;;
17311 esac
17312 ;;
17313 psos*)
17314 ;;
17315 solaris*)
17316 case $cc_basename in
17317 CC*)
17318 # Sun C++ 4.2, 5.x and Centerline C++
17319 lt_prog_compiler_pic_CXX='-KPIC'
17320 lt_prog_compiler_static_CXX='-Bstatic'
17321 lt_prog_compiler_wl_CXX='-Qoption ld '
17322 ;;
17323 gcx*)
17324 # Green Hills C++ Compiler
17325 lt_prog_compiler_pic_CXX='-PIC'
17326 ;;
17327 *)
17328 ;;
17329 esac
17330 ;;
17331 sunos4*)
17332 case $cc_basename in
17333 CC*)
17334 # Sun C++ 4.x
17335 lt_prog_compiler_pic_CXX='-pic'
17336 lt_prog_compiler_static_CXX='-Bstatic'
17337 ;;
17338 lcc*)
17339 # Lucid
17340 lt_prog_compiler_pic_CXX='-pic'
17341 ;;
17342 *)
17343 ;;
17344 esac
17345 ;;
17346 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17347 case $cc_basename in
17348 CC*)
17349 lt_prog_compiler_wl_CXX='-Wl,'
17350 lt_prog_compiler_pic_CXX='-KPIC'
17351 lt_prog_compiler_static_CXX='-Bstatic'
17352 ;;
17353 esac
17354 ;;
17355 tandem*)
17356 case $cc_basename in
17357 NCC*)
17358 # NonStop-UX NCC 3.20
17359 lt_prog_compiler_pic_CXX='-KPIC'
17360 ;;
17361 *)
17362 ;;
17363 esac
17364 ;;
17365 vxworks*)
17366 ;;
17367 *)
17368 lt_prog_compiler_can_build_shared_CXX=no
17369 ;;
17370 esac
17371 fi
17372
17373case $host_os in
17374 # For platforms which do not support PIC, -DPIC is meaningless:
17375 *djgpp*)
17376 lt_prog_compiler_pic_CXX=
17377 ;;
17378 *)
17379 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17380 ;;
17381esac
cristy8b350f62009-11-15 23:12:43 +000017382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017383$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17384
17385
17386
17387#
17388# Check to make sure the PIC flag actually works.
17389#
17390if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017391 { $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 +000017392$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017393if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017394 $as_echo_n "(cached) " >&6
17395else
17396 lt_cv_prog_compiler_pic_works_CXX=no
17397 ac_outfile=conftest.$ac_objext
17398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17399 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17400 # Insert the option either (1) after the last *FLAGS variable, or
17401 # (2) before a word containing "conftest.", or (3) at the end.
17402 # Note that $ac_compile itself does not contain backslashes and begins
17403 # with a dollar sign (not a hyphen), so the echo should work correctly.
17404 # The option is referenced via a variable to avoid confusing sed.
17405 lt_compile=`echo "$ac_compile" | $SED \
17406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17408 -e 's:$: $lt_compiler_flag:'`
cristy3225a072010-04-17 01:47:28 +000017409 (eval echo "\"\$as_me:17409: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017410 (eval "$lt_compile" 2>conftest.err)
17411 ac_status=$?
17412 cat conftest.err >&5
cristy3225a072010-04-17 01:47:28 +000017413 echo "$as_me:17413: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017414 if (exit $ac_status) && test -s "$ac_outfile"; then
17415 # The compiler can only warn and ignore the option if not recognized
17416 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000017417 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17420 lt_cv_prog_compiler_pic_works_CXX=yes
17421 fi
17422 fi
17423 $RM conftest*
17424
17425fi
cristy8b350f62009-11-15 23:12:43 +000017426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017427$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17428
17429if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17430 case $lt_prog_compiler_pic_CXX in
17431 "" | " "*) ;;
17432 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17433 esac
17434else
17435 lt_prog_compiler_pic_CXX=
17436 lt_prog_compiler_can_build_shared_CXX=no
17437fi
17438
17439fi
17440
17441
17442
17443#
17444# Check to make sure the static flag actually works.
17445#
17446wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017448$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017449if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017450 $as_echo_n "(cached) " >&6
17451else
17452 lt_cv_prog_compiler_static_works_CXX=no
17453 save_LDFLAGS="$LDFLAGS"
17454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17455 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17457 # The linker can only warn and ignore the option if not recognized
17458 # So say no if there are warnings
17459 if test -s conftest.err; then
17460 # Append any errors to the config.log.
17461 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000017462 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17464 if diff conftest.exp conftest.er2 >/dev/null; then
17465 lt_cv_prog_compiler_static_works_CXX=yes
17466 fi
17467 else
17468 lt_cv_prog_compiler_static_works_CXX=yes
17469 fi
17470 fi
17471 $RM -r conftest*
17472 LDFLAGS="$save_LDFLAGS"
17473
17474fi
cristy8b350f62009-11-15 23:12:43 +000017475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017476$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17477
17478if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17479 :
17480else
17481 lt_prog_compiler_static_CXX=
17482fi
17483
17484
17485
17486
cristy8b350f62009-11-15 23:12:43 +000017487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017488$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017489if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017490 $as_echo_n "(cached) " >&6
17491else
17492 lt_cv_prog_compiler_c_o_CXX=no
17493 $RM -r conftest 2>/dev/null
17494 mkdir conftest
17495 cd conftest
17496 mkdir out
17497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17498
17499 lt_compiler_flag="-o out/conftest2.$ac_objext"
17500 # Insert the option either (1) after the last *FLAGS variable, or
17501 # (2) before a word containing "conftest.", or (3) at the end.
17502 # Note that $ac_compile itself does not contain backslashes and begins
17503 # with a dollar sign (not a hyphen), so the echo should work correctly.
17504 lt_compile=`echo "$ac_compile" | $SED \
17505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17507 -e 's:$: $lt_compiler_flag:'`
cristy3225a072010-04-17 01:47:28 +000017508 (eval echo "\"\$as_me:17508: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017509 (eval "$lt_compile" 2>out/conftest.err)
17510 ac_status=$?
17511 cat out/conftest.err >&5
cristy3225a072010-04-17 01:47:28 +000017512 echo "$as_me:17512: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17514 then
17515 # The compiler can only warn and ignore the option if not recognized
17516 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000017517 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17520 lt_cv_prog_compiler_c_o_CXX=yes
17521 fi
17522 fi
17523 chmod u+w . 2>&5
17524 $RM conftest*
17525 # SGI C++ compiler will create directory out/ii_files/ for
17526 # template instantiation
17527 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17528 $RM out/* && rmdir out
17529 cd ..
17530 $RM -r conftest
17531 $RM conftest*
17532
17533fi
cristy8b350f62009-11-15 23:12:43 +000017534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017535$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17536
17537
17538
cristy8b350f62009-11-15 23:12:43 +000017539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017540$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017541if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017542 $as_echo_n "(cached) " >&6
17543else
17544 lt_cv_prog_compiler_c_o_CXX=no
17545 $RM -r conftest 2>/dev/null
17546 mkdir conftest
17547 cd conftest
17548 mkdir out
17549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17550
17551 lt_compiler_flag="-o out/conftest2.$ac_objext"
17552 # Insert the option either (1) after the last *FLAGS variable, or
17553 # (2) before a word containing "conftest.", or (3) at the end.
17554 # Note that $ac_compile itself does not contain backslashes and begins
17555 # with a dollar sign (not a hyphen), so the echo should work correctly.
17556 lt_compile=`echo "$ac_compile" | $SED \
17557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17559 -e 's:$: $lt_compiler_flag:'`
cristy3225a072010-04-17 01:47:28 +000017560 (eval echo "\"\$as_me:17560: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017561 (eval "$lt_compile" 2>out/conftest.err)
17562 ac_status=$?
17563 cat out/conftest.err >&5
cristy3225a072010-04-17 01:47:28 +000017564 echo "$as_me:17564: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17566 then
17567 # The compiler can only warn and ignore the option if not recognized
17568 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000017569 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17572 lt_cv_prog_compiler_c_o_CXX=yes
17573 fi
17574 fi
17575 chmod u+w . 2>&5
17576 $RM conftest*
17577 # SGI C++ compiler will create directory out/ii_files/ for
17578 # template instantiation
17579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17580 $RM out/* && rmdir out
17581 cd ..
17582 $RM -r conftest
17583 $RM conftest*
17584
17585fi
cristy8b350f62009-11-15 23:12:43 +000017586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017587$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17588
17589
17590
17591
17592hard_links="nottested"
17593if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17594 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017596$as_echo_n "checking if we can lock with hard links... " >&6; }
17597 hard_links=yes
17598 $RM conftest*
17599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17600 touch conftest.a
17601 ln conftest.a conftest.b 2>&5 || hard_links=no
17602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017604$as_echo "$hard_links" >&6; }
17605 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017606 { $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 +000017607$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17608 need_locks=warn
17609 fi
17610else
17611 need_locks=no
17612fi
17613
17614
17615
cristy8b350f62009-11-15 23:12:43 +000017616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017617$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17618
17619 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17620 case $host_os in
17621 aix[4-9]*)
17622 # If we're using GNU nm, then we don't want the "-C" option.
17623 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17624 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000017625 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 +000017626 else
17627 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'
17628 fi
17629 ;;
17630 pw32*)
17631 export_symbols_cmds_CXX="$ltdll_cmds"
17632 ;;
17633 cygwin* | mingw* | cegcc*)
17634 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'
17635 ;;
17636 *)
17637 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17638 ;;
17639 esac
17640 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17641
cristy8b350f62009-11-15 23:12:43 +000017642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017643$as_echo "$ld_shlibs_CXX" >&6; }
17644test "$ld_shlibs_CXX" = no && can_build_shared=no
17645
17646with_gnu_ld_CXX=$with_gnu_ld
17647
17648
17649
17650
17651
17652
17653#
17654# Do we need to explicitly link libc?
17655#
17656case "x$archive_cmds_need_lc_CXX" in
17657x|xyes)
17658 # Assume -lc should be added
17659 archive_cmds_need_lc_CXX=yes
17660
17661 if test "$enable_shared" = yes && test "$GCC" = yes; then
17662 case $archive_cmds_CXX in
17663 *'~'*)
17664 # FIXME: we may have to deal with multi-command sequences.
17665 ;;
17666 '$CC '*)
17667 # Test whether the compiler implicitly links with -lc since on some
17668 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17669 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017671$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000017672 $RM conftest*
17673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017674
cristy18304f92009-11-22 15:48:26 +000017675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017676 (eval $ac_compile) 2>&5
17677 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17679 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000017680 soname=conftest
17681 lib=conftest
17682 libobjs=conftest.$ac_objext
17683 deplibs=
17684 wl=$lt_prog_compiler_wl_CXX
17685 pic_flag=$lt_prog_compiler_pic_CXX
17686 compiler_flags=-v
17687 linker_flags=-v
17688 verstring=
17689 output_objdir=.
17690 libname=conftest
17691 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17692 allow_undefined_flag_CXX=
17693 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 +000017694 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17695 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17697 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000017698 then
17699 archive_cmds_need_lc_CXX=no
17700 else
17701 archive_cmds_need_lc_CXX=yes
17702 fi
17703 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17704 else
17705 cat conftest.err 1>&5
17706 fi
17707 $RM conftest*
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17709$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000017710 ;;
17711 esac
17712 fi
17713 ;;
17714esac
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
cristy8b350f62009-11-15 23:12:43 +000017779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000017780$as_echo_n "checking dynamic linker characteristics... " >&6; }
17781
17782library_names_spec=
17783libname_spec='lib$name'
17784soname_spec=
17785shrext_cmds=".so"
17786postinstall_cmds=
17787postuninstall_cmds=
17788finish_cmds=
17789finish_eval=
17790shlibpath_var=
17791shlibpath_overrides_runpath=unknown
17792version_type=none
17793dynamic_linker="$host_os ld.so"
17794sys_lib_dlsearch_path_spec="/lib /usr/lib"
17795need_lib_prefix=unknown
17796hardcode_into_libs=no
17797
17798# when you set need_version to no, make sure it does not cause -set_version
17799# flags to be left without arguments
17800need_version=unknown
17801
17802case $host_os in
17803aix3*)
17804 version_type=linux
17805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17806 shlibpath_var=LIBPATH
17807
17808 # AIX 3 has no versioning support, so we append a major version to the name.
17809 soname_spec='${libname}${release}${shared_ext}$major'
17810 ;;
17811
17812aix[4-9]*)
17813 version_type=linux
17814 need_lib_prefix=no
17815 need_version=no
17816 hardcode_into_libs=yes
17817 if test "$host_cpu" = ia64; then
17818 # AIX 5 supports IA64
17819 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17820 shlibpath_var=LD_LIBRARY_PATH
17821 else
17822 # With GCC up to 2.95.x, collect2 would create an import file
17823 # for dependence libraries. The import file would start with
17824 # the line `#! .'. This would cause the generated library to
17825 # depend on `.', always an invalid library. This was fixed in
17826 # development snapshots of GCC prior to 3.0.
17827 case $host_os in
17828 aix4 | aix4.[01] | aix4.[01].*)
17829 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17830 echo ' yes '
17831 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17832 :
17833 else
17834 can_build_shared=no
17835 fi
17836 ;;
17837 esac
17838 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17839 # soname into executable. Probably we can add versioning support to
17840 # collect2, so additional links can be useful in future.
17841 if test "$aix_use_runtimelinking" = yes; then
17842 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17843 # instead of lib<name>.a to let people know that these are not
17844 # typical AIX shared libraries.
17845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17846 else
17847 # We preserve .a as extension for shared libraries through AIX4.2
17848 # and later when we are not doing run time linking.
17849 library_names_spec='${libname}${release}.a $libname.a'
17850 soname_spec='${libname}${release}${shared_ext}$major'
17851 fi
17852 shlibpath_var=LIBPATH
17853 fi
17854 ;;
17855
17856amigaos*)
17857 case $host_cpu in
17858 powerpc)
17859 # Since July 2007 AmigaOS4 officially supports .so libraries.
17860 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17862 ;;
17863 m68k)
17864 library_names_spec='$libname.ixlibrary $libname.a'
17865 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000017866 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 +000017867 ;;
17868 esac
17869 ;;
17870
17871beos*)
17872 library_names_spec='${libname}${shared_ext}'
17873 dynamic_linker="$host_os ld.so"
17874 shlibpath_var=LIBRARY_PATH
17875 ;;
17876
17877bsdi[45]*)
17878 version_type=linux
17879 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17883 shlibpath_var=LD_LIBRARY_PATH
17884 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17885 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17886 # the default ld.so.conf also contains /usr/contrib/lib and
17887 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17888 # libtool to hard-code these into programs
17889 ;;
17890
17891cygwin* | mingw* | pw32* | cegcc*)
17892 version_type=windows
17893 shrext_cmds=".dll"
17894 need_version=no
17895 need_lib_prefix=no
17896
17897 case $GCC,$host_os in
17898 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17899 library_names_spec='$libname.dll.a'
17900 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17901 postinstall_cmds='base_file=`basename \${file}`~
17902 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17903 dldir=$destdir/`dirname \$dlpath`~
17904 test -d \$dldir || mkdir -p \$dldir~
17905 $install_prog $dir/$dlname \$dldir/$dlname~
17906 chmod a+x \$dldir/$dlname~
17907 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17908 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17909 fi'
17910 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17911 dlpath=$dir/\$dldll~
17912 $RM \$dlpath'
17913 shlibpath_overrides_runpath=yes
17914
17915 case $host_os in
17916 cygwin*)
17917 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17918 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000017919 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000017920 ;;
17921 mingw* | cegcc*)
17922 # MinGW DLLs use traditional 'lib' prefix
17923 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000017924 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17925 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17926 # It is most probably a Windows format PATH printed by
17927 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17928 # path with ; separators, and with drive letters. We can handle the
17929 # drive letters (cygwin fileutils understands them), so leave them,
17930 # especially as we might pass files found there to a mingw objdump,
17931 # which wouldn't understand a cygwinified path. Ahh.
17932 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17933 else
17934 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17935 fi
cristy3ed852e2009-09-05 21:47:34 +000017936 ;;
17937 pw32*)
17938 # pw32 DLLs use 'pw' prefix rather than 'lib'
17939 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17940 ;;
17941 esac
17942 ;;
17943
17944 *)
17945 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17946 ;;
17947 esac
17948 dynamic_linker='Win32 ld.exe'
17949 # FIXME: first we should search . and the directory the executable is in
17950 shlibpath_var=PATH
17951 ;;
17952
17953darwin* | rhapsody*)
17954 dynamic_linker="$host_os dyld"
17955 version_type=darwin
17956 need_lib_prefix=no
17957 need_version=no
17958 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17959 soname_spec='${libname}${release}${major}$shared_ext'
17960 shlibpath_overrides_runpath=yes
17961 shlibpath_var=DYLD_LIBRARY_PATH
17962 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17963
17964 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17965 ;;
17966
17967dgux*)
17968 version_type=linux
17969 need_lib_prefix=no
17970 need_version=no
17971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17972 soname_spec='${libname}${release}${shared_ext}$major'
17973 shlibpath_var=LD_LIBRARY_PATH
17974 ;;
17975
17976freebsd1*)
17977 dynamic_linker=no
17978 ;;
17979
17980freebsd* | dragonfly*)
17981 # DragonFly does not have aout. When/if they implement a new
17982 # versioning mechanism, adjust this.
17983 if test -x /usr/bin/objformat; then
17984 objformat=`/usr/bin/objformat`
17985 else
17986 case $host_os in
17987 freebsd[123]*) objformat=aout ;;
17988 *) objformat=elf ;;
17989 esac
17990 fi
17991 version_type=freebsd-$objformat
17992 case $version_type in
17993 freebsd-elf*)
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17995 need_version=no
17996 need_lib_prefix=no
17997 ;;
17998 freebsd-*)
17999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18000 need_version=yes
18001 ;;
18002 esac
18003 shlibpath_var=LD_LIBRARY_PATH
18004 case $host_os in
18005 freebsd2*)
18006 shlibpath_overrides_runpath=yes
18007 ;;
18008 freebsd3.[01]* | freebsdelf3.[01]*)
18009 shlibpath_overrides_runpath=yes
18010 hardcode_into_libs=yes
18011 ;;
18012 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18013 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18014 shlibpath_overrides_runpath=no
18015 hardcode_into_libs=yes
18016 ;;
18017 *) # from 4.6 on, and DragonFly
18018 shlibpath_overrides_runpath=yes
18019 hardcode_into_libs=yes
18020 ;;
18021 esac
18022 ;;
18023
18024gnu*)
18025 version_type=linux
18026 need_lib_prefix=no
18027 need_version=no
18028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18029 soname_spec='${libname}${release}${shared_ext}$major'
18030 shlibpath_var=LD_LIBRARY_PATH
18031 hardcode_into_libs=yes
18032 ;;
18033
18034hpux9* | hpux10* | hpux11*)
18035 # Give a soname corresponding to the major version so that dld.sl refuses to
18036 # link against other versions.
18037 version_type=sunos
18038 need_lib_prefix=no
18039 need_version=no
18040 case $host_cpu in
18041 ia64*)
18042 shrext_cmds='.so'
18043 hardcode_into_libs=yes
18044 dynamic_linker="$host_os dld.so"
18045 shlibpath_var=LD_LIBRARY_PATH
18046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18048 soname_spec='${libname}${release}${shared_ext}$major'
18049 if test "X$HPUX_IA64_MODE" = X32; then
18050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18051 else
18052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18053 fi
18054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18055 ;;
18056 hppa*64*)
18057 shrext_cmds='.sl'
18058 hardcode_into_libs=yes
18059 dynamic_linker="$host_os dld.sl"
18060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18063 soname_spec='${libname}${release}${shared_ext}$major'
18064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18066 ;;
18067 *)
18068 shrext_cmds='.sl'
18069 dynamic_linker="$host_os dld.sl"
18070 shlibpath_var=SHLIB_PATH
18071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18073 soname_spec='${libname}${release}${shared_ext}$major'
18074 ;;
18075 esac
cristy18304f92009-11-22 15:48:26 +000018076 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000018077 postinstall_cmds='chmod 555 $lib'
18078 ;;
18079
18080interix[3-9]*)
18081 version_type=linux
18082 need_lib_prefix=no
18083 need_version=no
18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18085 soname_spec='${libname}${release}${shared_ext}$major'
18086 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18087 shlibpath_var=LD_LIBRARY_PATH
18088 shlibpath_overrides_runpath=no
18089 hardcode_into_libs=yes
18090 ;;
18091
18092irix5* | irix6* | nonstopux*)
18093 case $host_os in
18094 nonstopux*) version_type=nonstopux ;;
18095 *)
18096 if test "$lt_cv_prog_gnu_ld" = yes; then
18097 version_type=linux
18098 else
18099 version_type=irix
18100 fi ;;
18101 esac
18102 need_lib_prefix=no
18103 need_version=no
18104 soname_spec='${libname}${release}${shared_ext}$major'
18105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18106 case $host_os in
18107 irix5* | nonstopux*)
18108 libsuff= shlibsuff=
18109 ;;
18110 *)
18111 case $LD in # libtool.m4 will add one of these switches to LD
18112 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18113 libsuff= shlibsuff= libmagic=32-bit;;
18114 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18115 libsuff=32 shlibsuff=N32 libmagic=N32;;
18116 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18117 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18118 *) libsuff= shlibsuff= libmagic=never-match;;
18119 esac
18120 ;;
18121 esac
18122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18123 shlibpath_overrides_runpath=no
18124 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18125 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18126 hardcode_into_libs=yes
18127 ;;
18128
18129# No shared lib support for Linux oldld, aout, or coff.
18130linux*oldld* | linux*aout* | linux*coff*)
18131 dynamic_linker=no
18132 ;;
18133
18134# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000018135linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018136 version_type=linux
18137 need_lib_prefix=no
18138 need_version=no
18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18140 soname_spec='${libname}${release}${shared_ext}$major'
18141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18142 shlibpath_var=LD_LIBRARY_PATH
18143 shlibpath_overrides_runpath=no
18144 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000018145 save_LDFLAGS=$LDFLAGS
18146 save_libdir=$libdir
18147 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18148 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018150/* end confdefs.h. */
18151
18152int
18153main ()
18154{
18155
18156 ;
18157 return 0;
18158}
18159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018160if ac_fn_cxx_try_link "$LINENO"; then :
18161 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000018162 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018163fi
cristy3ed852e2009-09-05 21:47:34 +000018164fi
cristy8b350f62009-11-15 23:12:43 +000018165rm -f core conftest.err conftest.$ac_objext \
18166 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000018167 LDFLAGS=$save_LDFLAGS
18168 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000018169
18170 # This implies no fast_install, which is unacceptable.
18171 # Some rework will be needed to allow for fast_install
18172 # before this can be enabled.
18173 hardcode_into_libs=yes
18174
cristy679ed8e2009-12-05 02:37:41 +000018175 # Add ABI-specific directories to the system library path.
18176 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18177
cristy3ed852e2009-09-05 21:47:34 +000018178 # Append ld.so.conf contents to the search path
18179 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000018180 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 +000018181 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000018182 fi
18183
18184 # We used to test for /lib/ld.so.1 and disable shared libraries on
18185 # powerpc, because MkLinux only supported shared libraries with the
18186 # GNU dynamic linker. Since this was broken with cross compilers,
18187 # most powerpc-linux boxes support dynamic linking these days and
18188 # people can always --disable-shared, the test was removed, and we
18189 # assume the GNU/Linux dynamic linker is in use.
18190 dynamic_linker='GNU/Linux ld.so'
18191 ;;
18192
18193netbsd*)
18194 version_type=sunos
18195 need_lib_prefix=no
18196 need_version=no
18197 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18200 dynamic_linker='NetBSD (a.out) ld.so'
18201 else
18202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18203 soname_spec='${libname}${release}${shared_ext}$major'
18204 dynamic_linker='NetBSD ld.elf_so'
18205 fi
18206 shlibpath_var=LD_LIBRARY_PATH
18207 shlibpath_overrides_runpath=yes
18208 hardcode_into_libs=yes
18209 ;;
18210
18211newsos6)
18212 version_type=linux
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18214 shlibpath_var=LD_LIBRARY_PATH
18215 shlibpath_overrides_runpath=yes
18216 ;;
18217
18218*nto* | *qnx*)
18219 version_type=qnx
18220 need_lib_prefix=no
18221 need_version=no
18222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18223 soname_spec='${libname}${release}${shared_ext}$major'
18224 shlibpath_var=LD_LIBRARY_PATH
18225 shlibpath_overrides_runpath=no
18226 hardcode_into_libs=yes
18227 dynamic_linker='ldqnx.so'
18228 ;;
18229
18230openbsd*)
18231 version_type=sunos
18232 sys_lib_dlsearch_path_spec="/usr/lib"
18233 need_lib_prefix=no
18234 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18235 case $host_os in
18236 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18237 *) need_version=no ;;
18238 esac
18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18241 shlibpath_var=LD_LIBRARY_PATH
18242 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18243 case $host_os in
18244 openbsd2.[89] | openbsd2.[89].*)
18245 shlibpath_overrides_runpath=no
18246 ;;
18247 *)
18248 shlibpath_overrides_runpath=yes
18249 ;;
18250 esac
18251 else
18252 shlibpath_overrides_runpath=yes
18253 fi
18254 ;;
18255
18256os2*)
18257 libname_spec='$name'
18258 shrext_cmds=".dll"
18259 need_lib_prefix=no
18260 library_names_spec='$libname${shared_ext} $libname.a'
18261 dynamic_linker='OS/2 ld.exe'
18262 shlibpath_var=LIBPATH
18263 ;;
18264
18265osf3* | osf4* | osf5*)
18266 version_type=osf
18267 need_lib_prefix=no
18268 need_version=no
18269 soname_spec='${libname}${release}${shared_ext}$major'
18270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18271 shlibpath_var=LD_LIBRARY_PATH
18272 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18273 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18274 ;;
18275
18276rdos*)
18277 dynamic_linker=no
18278 ;;
18279
18280solaris*)
18281 version_type=linux
18282 need_lib_prefix=no
18283 need_version=no
18284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18285 soname_spec='${libname}${release}${shared_ext}$major'
18286 shlibpath_var=LD_LIBRARY_PATH
18287 shlibpath_overrides_runpath=yes
18288 hardcode_into_libs=yes
18289 # ldd complains unless libraries are executable
18290 postinstall_cmds='chmod +x $lib'
18291 ;;
18292
18293sunos4*)
18294 version_type=sunos
18295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18296 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18297 shlibpath_var=LD_LIBRARY_PATH
18298 shlibpath_overrides_runpath=yes
18299 if test "$with_gnu_ld" = yes; then
18300 need_lib_prefix=no
18301 fi
18302 need_version=yes
18303 ;;
18304
18305sysv4 | sysv4.3*)
18306 version_type=linux
18307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18308 soname_spec='${libname}${release}${shared_ext}$major'
18309 shlibpath_var=LD_LIBRARY_PATH
18310 case $host_vendor in
18311 sni)
18312 shlibpath_overrides_runpath=no
18313 need_lib_prefix=no
18314 runpath_var=LD_RUN_PATH
18315 ;;
18316 siemens)
18317 need_lib_prefix=no
18318 ;;
18319 motorola)
18320 need_lib_prefix=no
18321 need_version=no
18322 shlibpath_overrides_runpath=no
18323 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18324 ;;
18325 esac
18326 ;;
18327
18328sysv4*MP*)
18329 if test -d /usr/nec ;then
18330 version_type=linux
18331 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18332 soname_spec='$libname${shared_ext}.$major'
18333 shlibpath_var=LD_LIBRARY_PATH
18334 fi
18335 ;;
18336
18337sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18338 version_type=freebsd-elf
18339 need_lib_prefix=no
18340 need_version=no
18341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18342 soname_spec='${libname}${release}${shared_ext}$major'
18343 shlibpath_var=LD_LIBRARY_PATH
18344 shlibpath_overrides_runpath=yes
18345 hardcode_into_libs=yes
18346 if test "$with_gnu_ld" = yes; then
18347 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18348 else
18349 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18350 case $host_os in
18351 sco3.2v5*)
18352 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18353 ;;
18354 esac
18355 fi
18356 sys_lib_dlsearch_path_spec='/usr/lib'
18357 ;;
18358
18359tpf*)
18360 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18361 version_type=linux
18362 need_lib_prefix=no
18363 need_version=no
18364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18365 shlibpath_var=LD_LIBRARY_PATH
18366 shlibpath_overrides_runpath=no
18367 hardcode_into_libs=yes
18368 ;;
18369
18370uts4*)
18371 version_type=linux
18372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18373 soname_spec='${libname}${release}${shared_ext}$major'
18374 shlibpath_var=LD_LIBRARY_PATH
18375 ;;
18376
18377*)
18378 dynamic_linker=no
18379 ;;
18380esac
cristy8b350f62009-11-15 23:12:43 +000018381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018382$as_echo "$dynamic_linker" >&6; }
18383test "$dynamic_linker" = no && can_build_shared=no
18384
18385variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18386if test "$GCC" = yes; then
18387 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18388fi
18389
18390if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18391 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18392fi
18393if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18394 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18395fi
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
cristy8b350f62009-11-15 23:12:43 +000018432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018433$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18434hardcode_action_CXX=
18435if test -n "$hardcode_libdir_flag_spec_CXX" ||
18436 test -n "$runpath_var_CXX" ||
18437 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18438
18439 # We can hardcode non-existent directories.
18440 if test "$hardcode_direct_CXX" != no &&
18441 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18442 # have to relink, otherwise we might link with an installed library
18443 # when we should be linking with a yet-to-be-installed one
18444 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18445 test "$hardcode_minus_L_CXX" != no; then
18446 # Linking always hardcodes the temporary library directory.
18447 hardcode_action_CXX=relink
18448 else
18449 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18450 hardcode_action_CXX=immediate
18451 fi
18452else
18453 # We cannot hardcode anything, or else we can only hardcode existing
18454 # directories.
18455 hardcode_action_CXX=unsupported
18456fi
cristy8b350f62009-11-15 23:12:43 +000018457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018458$as_echo "$hardcode_action_CXX" >&6; }
18459
18460if test "$hardcode_action_CXX" = relink ||
18461 test "$inherit_rpath_CXX" = yes; then
18462 # Fast installation is not supported
18463 enable_fast_install=no
18464elif test "$shlibpath_overrides_runpath" = yes ||
18465 test "$enable_shared" = no; then
18466 # Fast installation is not necessary
18467 enable_fast_install=needless
18468fi
18469
18470
18471
18472
18473
18474
18475
18476 fi # test -n "$compiler"
18477
18478 CC=$lt_save_CC
18479 LDCXX=$LD
18480 LD=$lt_save_LD
18481 GCC=$lt_save_GCC
18482 with_gnu_ld=$lt_save_with_gnu_ld
18483 lt_cv_path_LDCXX=$lt_cv_path_LD
18484 lt_cv_path_LD=$lt_save_path_LD
18485 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18486 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18487fi # test "$_lt_caught_CXX_error" != yes
18488
18489ac_ext=c
18490ac_cpp='$CPP $CPPFLAGS'
18491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18493ac_compiler_gnu=$ac_cv_c_compiler_gnu
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507 ac_config_commands="$ac_config_commands libtool"
18508
18509
18510
18511
18512# Only expand once:
18513
18514
18515
18516
18517
18518# Configure libltdl
18519
18520
18521
18522
18523
18524
18525
cristy18304f92009-11-22 15:48:26 +000018526
cristy8b350f62009-11-15 23:12:43 +000018527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018528$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018529if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018530 $as_echo_n "(cached) " >&6
18531else
18532
18533module=yes
18534eval libltdl_cv_shlibext=$shrext_cmds
18535
18536fi
cristy8b350f62009-11-15 23:12:43 +000018537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018538$as_echo "$libltdl_cv_shlibext" >&6; }
18539if test -n "$libltdl_cv_shlibext"; then
18540
18541cat >>confdefs.h <<_ACEOF
18542#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18543_ACEOF
18544
18545fi
18546
cristy8b350f62009-11-15 23:12:43 +000018547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018548$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018549if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018550 $as_echo_n "(cached) " >&6
18551else
18552 lt_cv_module_path_var="$shlibpath_var"
18553fi
cristy8b350f62009-11-15 23:12:43 +000018554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018555$as_echo "$lt_cv_module_path_var" >&6; }
18556if test -n "$lt_cv_module_path_var"; then
18557
18558cat >>confdefs.h <<_ACEOF
18559#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18560_ACEOF
18561
18562fi
18563
cristy8b350f62009-11-15 23:12:43 +000018564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018565$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018566if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018567 $as_echo_n "(cached) " >&6
18568else
18569 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18570fi
cristy8b350f62009-11-15 23:12:43 +000018571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018572$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18573if test -n "$lt_cv_sys_dlsearch_path"; then
18574 sys_dlsearch_path=
18575 for dir in $lt_cv_sys_dlsearch_path; do
18576 if test -z "$sys_dlsearch_path"; then
18577 sys_dlsearch_path="$dir"
18578 else
18579 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18580 fi
18581 done
18582
18583cat >>confdefs.h <<_ACEOF
18584#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18585_ACEOF
18586
18587fi
18588
18589
18590LT_DLLOADERS=
18591
18592
18593ac_ext=c
18594ac_cpp='$CPP $CPPFLAGS'
18595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18597ac_compiler_gnu=$ac_cv_c_compiler_gnu
18598
18599
18600LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018602$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018603if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018604 $as_echo_n "(cached) " >&6
18605else
18606 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018608/* end confdefs.h. */
18609
18610/* Override any GCC internal prototype to avoid an error.
18611 Use char because int might match the return type of a GCC
18612 builtin and then its argument prototype would still apply. */
18613#ifdef __cplusplus
18614extern "C"
18615#endif
18616char dlopen ();
18617int
18618main ()
18619{
18620return dlopen ();
18621 ;
18622 return 0;
18623}
18624_ACEOF
18625for ac_lib in '' dl; do
18626 if test -z "$ac_lib"; then
18627 ac_res="none required"
18628 else
18629 ac_res=-l$ac_lib
18630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18631 fi
cristy8b350f62009-11-15 23:12:43 +000018632 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018633 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018634fi
cristy8b350f62009-11-15 23:12:43 +000018635rm -f core conftest.err conftest.$ac_objext \
18636 conftest$ac_exeext
18637 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018638 break
18639fi
18640done
cristy8b350f62009-11-15 23:12:43 +000018641if test "${ac_cv_search_dlopen+set}" = set; then :
18642
cristy3ed852e2009-09-05 21:47:34 +000018643else
18644 ac_cv_search_dlopen=no
18645fi
18646rm conftest.$ac_ext
18647LIBS=$ac_func_search_save_LIBS
18648fi
cristy8b350f62009-11-15 23:12:43 +000018649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018650$as_echo "$ac_cv_search_dlopen" >&6; }
18651ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018652if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18654
cristy8b350f62009-11-15 23:12:43 +000018655$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018656
18657 if test "$ac_cv_search_dlopen" != "none required" ; then
18658 LIBADD_DLOPEN="-ldl"
18659 fi
18660 libltdl_cv_lib_dl_dlopen="yes"
18661 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18662else
cristy8b350f62009-11-15 23:12:43 +000018663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018664/* end confdefs.h. */
18665#if HAVE_DLFCN_H
18666# include <dlfcn.h>
18667#endif
18668
18669int
18670main ()
18671{
18672dlopen(0, 0);
18673 ;
18674 return 0;
18675}
18676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018677if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018678
cristy8b350f62009-11-15 23:12:43 +000018679$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018680
18681 libltdl_cv_func_dlopen="yes"
18682 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18683else
cristy8b350f62009-11-15 23:12:43 +000018684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018685$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018686if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018687 $as_echo_n "(cached) " >&6
18688else
18689 ac_check_lib_save_LIBS=$LIBS
18690LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018692/* end confdefs.h. */
18693
18694/* Override any GCC internal prototype to avoid an error.
18695 Use char because int might match the return type of a GCC
18696 builtin and then its argument prototype would still apply. */
18697#ifdef __cplusplus
18698extern "C"
18699#endif
18700char dlopen ();
18701int
18702main ()
18703{
18704return dlopen ();
18705 ;
18706 return 0;
18707}
18708_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018709if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018710 ac_cv_lib_svld_dlopen=yes
18711else
cristy8b350f62009-11-15 23:12:43 +000018712 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000018713fi
cristy8b350f62009-11-15 23:12:43 +000018714rm -f core conftest.err conftest.$ac_objext \
18715 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018716LIBS=$ac_check_lib_save_LIBS
18717fi
cristy8b350f62009-11-15 23:12:43 +000018718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018719$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018720if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018721
cristy8b350f62009-11-15 23:12:43 +000018722$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018723
18724 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
18725 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18726fi
18727
18728fi
cristy8b350f62009-11-15 23:12:43 +000018729rm -f core conftest.err conftest.$ac_objext \
18730 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018731fi
18732
18733if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
18734then
18735 lt_save_LIBS="$LIBS"
18736 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000018737 for ac_func in dlerror
18738do :
18739 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
18740if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018741 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018742#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000018743_ACEOF
18744
18745fi
18746done
18747
18748 LIBS="$lt_save_LIBS"
18749fi
18750
18751
18752LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000018753ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18754if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018755
cristy8b350f62009-11-15 23:12:43 +000018756$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018757
18758 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18759else
cristy8b350f62009-11-15 23:12:43 +000018760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018761$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018762if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018763 $as_echo_n "(cached) " >&6
18764else
18765 ac_check_lib_save_LIBS=$LIBS
18766LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018768/* end confdefs.h. */
18769
18770/* Override any GCC internal prototype to avoid an error.
18771 Use char because int might match the return type of a GCC
18772 builtin and then its argument prototype would still apply. */
18773#ifdef __cplusplus
18774extern "C"
18775#endif
18776char shl_load ();
18777int
18778main ()
18779{
18780return shl_load ();
18781 ;
18782 return 0;
18783}
18784_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018785if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018786 ac_cv_lib_dld_shl_load=yes
18787else
cristy8b350f62009-11-15 23:12:43 +000018788 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000018789fi
cristy8b350f62009-11-15 23:12:43 +000018790rm -f core conftest.err conftest.$ac_objext \
18791 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018792LIBS=$ac_check_lib_save_LIBS
18793fi
cristy8b350f62009-11-15 23:12:43 +000018794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000018795$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018796if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018797
cristy8b350f62009-11-15 23:12:43 +000018798$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018799
18800 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18801 LIBADD_SHL_LOAD="-ldld"
18802fi
18803
18804fi
18805
18806
18807
18808case $host_os in
18809darwin[1567].*)
18810# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000018811 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
18812if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018813
cristy8b350f62009-11-15 23:12:43 +000018814$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018815
18816 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
18817fi
18818
18819 ;;
18820beos*)
18821 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
18822 ;;
18823cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000018824 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
18825"
18826if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
18827 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000018828else
cristy8b350f62009-11-15 23:12:43 +000018829 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000018830fi
18831
cristy3ed852e2009-09-05 21:47:34 +000018832cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018833#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000018834_ACEOF
18835
cristy3ed852e2009-09-05 21:47:34 +000018836 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
18837 ;;
18838esac
18839
cristy8b350f62009-11-15 23:12:43 +000018840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018841$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018842if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018843 $as_echo_n "(cached) " >&6
18844else
18845 ac_check_lib_save_LIBS=$LIBS
18846LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018848/* end confdefs.h. */
18849
18850/* Override any GCC internal prototype to avoid an error.
18851 Use char because int might match the return type of a GCC
18852 builtin and then its argument prototype would still apply. */
18853#ifdef __cplusplus
18854extern "C"
18855#endif
18856char dld_link ();
18857int
18858main ()
18859{
18860return dld_link ();
18861 ;
18862 return 0;
18863}
18864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018865if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018866 ac_cv_lib_dld_dld_link=yes
18867else
cristy8b350f62009-11-15 23:12:43 +000018868 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000018869fi
cristy8b350f62009-11-15 23:12:43 +000018870rm -f core conftest.err conftest.$ac_objext \
18871 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018872LIBS=$ac_check_lib_save_LIBS
18873fi
cristy8b350f62009-11-15 23:12:43 +000018874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000018875$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018876if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018877
cristy8b350f62009-11-15 23:12:43 +000018878$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018879
18880 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
18881fi
18882
18883
18884
18885
18886LT_DLPREOPEN=
18887if test -n "$LT_DLLOADERS"
18888then
18889 for lt_loader in $LT_DLLOADERS; do
18890 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
18891 done
18892
cristy8b350f62009-11-15 23:12:43 +000018893$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018894
18895fi
18896
18897
18898LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
18899
18900
18901ac_ext=c
18902ac_cpp='$CPP $CPPFLAGS'
18903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18905ac_compiler_gnu=$ac_cv_c_compiler_gnu
18906
18907
cristy8b350f62009-11-15 23:12:43 +000018908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018909$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018910if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018911 $as_echo_n "(cached) " >&6
18912else
18913 lt_cv_sys_symbol_underscore=no
18914 cat > conftest.$ac_ext <<_LT_EOF
18915void nm_test_func(){}
18916int main(){nm_test_func;return 0;}
18917_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018919 (eval $ac_compile) 2>&5
18920 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18922 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000018923 # Now try to grab the symbols.
18924 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000018925 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 +000018926 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18927 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18929 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000018930 # See whether the symbols have a leading underscore.
18931 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18932 lt_cv_sys_symbol_underscore=yes
18933 else
18934 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18935 :
18936 else
18937 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18938 fi
18939 fi
18940 else
18941 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18942 fi
18943 else
18944 echo "configure: failed program was:" >&5
18945 cat conftest.c >&5
18946 fi
18947 rm -rf conftest*
18948
18949fi
cristy8b350f62009-11-15 23:12:43 +000018950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018951$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18952 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18953
18954
18955if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18956 if test x"$libltdl_cv_func_dlopen" = xyes ||
18957 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000018958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000018959$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018960if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018961 $as_echo_n "(cached) " >&6
18962else
18963 libltdl_cv_need_uscore=unknown
18964 save_LIBS="$LIBS"
18965 LIBS="$LIBS $LIBADD_DLOPEN"
18966 if test "$cross_compiling" = yes; then :
18967 libltdl_cv_need_uscore=cross
18968else
18969 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18970 lt_status=$lt_dlunknown
18971 cat > conftest.$ac_ext <<_LT_EOF
cristy3225a072010-04-17 01:47:28 +000018972#line 18972 "configure"
cristy3ed852e2009-09-05 21:47:34 +000018973#include "confdefs.h"
18974
18975#if HAVE_DLFCN_H
18976#include <dlfcn.h>
18977#endif
18978
18979#include <stdio.h>
18980
18981#ifdef RTLD_GLOBAL
18982# define LT_DLGLOBAL RTLD_GLOBAL
18983#else
18984# ifdef DL_GLOBAL
18985# define LT_DLGLOBAL DL_GLOBAL
18986# else
18987# define LT_DLGLOBAL 0
18988# endif
18989#endif
18990
18991/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18992 find out it does not work in some platform. */
18993#ifndef LT_DLLAZY_OR_NOW
18994# ifdef RTLD_LAZY
18995# define LT_DLLAZY_OR_NOW RTLD_LAZY
18996# else
18997# ifdef DL_LAZY
18998# define LT_DLLAZY_OR_NOW DL_LAZY
18999# else
19000# ifdef RTLD_NOW
19001# define LT_DLLAZY_OR_NOW RTLD_NOW
19002# else
19003# ifdef DL_NOW
19004# define LT_DLLAZY_OR_NOW DL_NOW
19005# else
19006# define LT_DLLAZY_OR_NOW 0
19007# endif
19008# endif
19009# endif
19010# endif
19011#endif
19012
cristy18304f92009-11-22 15:48:26 +000019013void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000019014int main ()
19015{
19016 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19017 int status = $lt_dlunknown;
19018
19019 if (self)
19020 {
19021 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000019022 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000019023 /* dlclose (self); */
19024 }
19025 else
19026 puts (dlerror ());
19027
19028 return status;
19029}
19030_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019032 (eval $ac_link) 2>&5
19033 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19035 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019036 (./conftest; exit; ) >&5 2>/dev/null
19037 lt_status=$?
19038 case x$lt_status in
19039 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19040 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19041 x$lt_dlunknown|x*) ;;
19042 esac
19043 else :
19044 # compilation failed
19045
19046 fi
19047fi
19048rm -fr conftest*
19049
19050 LIBS="$save_LIBS"
19051
19052fi
cristy8b350f62009-11-15 23:12:43 +000019053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019054$as_echo "$libltdl_cv_need_uscore" >&6; }
19055 fi
19056fi
19057
19058if test x"$libltdl_cv_need_uscore" = xyes; then
19059
cristy8b350f62009-11-15 23:12:43 +000019060$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019061
19062fi
19063
cristy8b350f62009-11-15 23:12:43 +000019064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019065$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019066if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019067 $as_echo_n "(cached) " >&6
19068else
19069 # PORTME does your system automatically load deplibs for dlopen?
19070 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19071 # For now, we just catch OSes we know something about -- in the
19072 # future, we'll try test this programmatically.
19073 lt_cv_sys_dlopen_deplibs=unknown
19074 case $host_os in
19075 aix3*|aix4.1.*|aix4.2.*)
19076 # Unknown whether this is true for these versions of AIX, but
19077 # we want this `case' here to explicitly catch those versions.
19078 lt_cv_sys_dlopen_deplibs=unknown
19079 ;;
19080 aix[4-9]*)
19081 lt_cv_sys_dlopen_deplibs=yes
19082 ;;
19083 amigaos*)
19084 case $host_cpu in
19085 powerpc)
19086 lt_cv_sys_dlopen_deplibs=no
19087 ;;
19088 esac
19089 ;;
19090 darwin*)
19091 # Assuming the user has installed a libdl from somewhere, this is true
19092 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19093 lt_cv_sys_dlopen_deplibs=yes
19094 ;;
19095 freebsd* | dragonfly*)
19096 lt_cv_sys_dlopen_deplibs=yes
19097 ;;
cristy18304f92009-11-22 15:48:26 +000019098 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019099 # GNU and its variants, using gnu ld.so (Glibc)
19100 lt_cv_sys_dlopen_deplibs=yes
19101 ;;
19102 hpux10*|hpux11*)
19103 lt_cv_sys_dlopen_deplibs=yes
19104 ;;
19105 interix*)
19106 lt_cv_sys_dlopen_deplibs=yes
19107 ;;
19108 irix[12345]*|irix6.[01]*)
19109 # Catch all versions of IRIX before 6.2, and indicate that we don't
19110 # know how it worked for any of those versions.
19111 lt_cv_sys_dlopen_deplibs=unknown
19112 ;;
19113 irix*)
19114 # The case above catches anything before 6.2, and it's known that
19115 # at 6.2 and later dlopen does load deplibs.
19116 lt_cv_sys_dlopen_deplibs=yes
19117 ;;
19118 netbsd*)
19119 lt_cv_sys_dlopen_deplibs=yes
19120 ;;
19121 openbsd*)
19122 lt_cv_sys_dlopen_deplibs=yes
19123 ;;
19124 osf[1234]*)
19125 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19126 # it did *not* use an RPATH in a shared library to find objects the
19127 # library depends on, so we explicitly say `no'.
19128 lt_cv_sys_dlopen_deplibs=no
19129 ;;
19130 osf5.0|osf5.0a|osf5.1)
19131 # dlopen *does* load deplibs and with the right loader patch applied
19132 # it even uses RPATH in a shared library to search for shared objects
19133 # that the library depends on, but there's no easy way to know if that
19134 # patch is installed. Since this is the case, all we can really
19135 # say is unknown -- it depends on the patch being installed. If
19136 # it is, this changes to `yes'. Without it, it would be `no'.
19137 lt_cv_sys_dlopen_deplibs=unknown
19138 ;;
19139 osf*)
19140 # the two cases above should catch all versions of osf <= 5.1. Read
19141 # the comments above for what we know about them.
19142 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19143 # is used to find them so we can finally say `yes'.
19144 lt_cv_sys_dlopen_deplibs=yes
19145 ;;
19146 qnx*)
19147 lt_cv_sys_dlopen_deplibs=yes
19148 ;;
19149 solaris*)
19150 lt_cv_sys_dlopen_deplibs=yes
19151 ;;
19152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19153 libltdl_cv_sys_dlopen_deplibs=yes
19154 ;;
19155 esac
19156
19157fi
cristy8b350f62009-11-15 23:12:43 +000019158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019159$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19160if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19161
cristy8b350f62009-11-15 23:12:43 +000019162$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019163
19164fi
19165
19166:
19167
cristy3ed852e2009-09-05 21:47:34 +000019168for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019169do :
19170 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19171"
19172if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019173 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019174#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019175_ACEOF
19176
19177fi
19178
19179done
19180
19181
cristy8b350f62009-11-15 23:12:43 +000019182ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019183# include <argz.h>
19184#endif
cristy8b350f62009-11-15 23:12:43 +000019185"
19186if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019187
19188cat >>confdefs.h <<_ACEOF
19189#define HAVE_ERROR_T 1
19190_ACEOF
19191
19192
19193else
19194
cristy8b350f62009-11-15 23:12:43 +000019195$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019196
19197
cristy8b350f62009-11-15 23:12:43 +000019198$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019199
19200fi
19201
19202
19203ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019204for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19205 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019206do :
19207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19208ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19209eval as_val=\$$as_ac_var
19210 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019211 cat >>confdefs.h <<_ACEOF
19212#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19213_ACEOF
19214
19215else
19216 ARGZ_H=argz.h;
19217
19218 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19219
19220fi
19221done
19222
19223
cristy8b350f62009-11-15 23:12:43 +000019224if test -z "$ARGZ_H"; then :
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019226$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019227if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019228 $as_echo_n "(cached) " >&6
19229else
19230 case $host_os in #(
19231 *cygwin*)
19232 lt_cv_sys_argz_works=no
19233 if test "$cross_compiling" != no; then
19234 lt_cv_sys_argz_works="guessing no"
19235 else
19236 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19237 save_IFS=$IFS
19238 IFS=-.
19239 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19240 IFS=$save_IFS
19241 lt_os_major=${2-0}
19242 lt_os_minor=${3-0}
19243 lt_os_micro=${4-0}
19244 if test "$lt_os_major" -gt 1 \
19245 || { test "$lt_os_major" -eq 1 \
19246 && { test "$lt_os_minor" -gt 5 \
19247 || { test "$lt_os_minor" -eq 5 \
19248 && test "$lt_os_micro" -gt 24; }; }; }; then
19249 lt_cv_sys_argz_works=yes
19250 fi
19251 fi
19252 ;; #(
19253 *) lt_cv_sys_argz_works=yes ;;
19254 esac
19255fi
cristy8b350f62009-11-15 23:12:43 +000019256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019257$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019258 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019259
cristy8b350f62009-11-15 23:12:43 +000019260$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019261
19262else
19263 ARGZ_H=argz.h
19264
19265
19266 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19267
19268fi
cristy3ed852e2009-09-05 21:47:34 +000019269fi
19270
19271
19272
cristy8b350f62009-11-15 23:12:43 +000019273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019274$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019275if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019276 $as_echo_n "(cached) " >&6
19277else
19278 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19279 libltdl_cv_preloaded_symbols=yes
19280 else
19281 libltdl_cv_preloaded_symbols=no
19282 fi
19283
19284fi
cristy8b350f62009-11-15 23:12:43 +000019285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019286$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19287if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19288
cristy8b350f62009-11-15 23:12:43 +000019289$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019290
19291fi
19292
19293# Set options
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019306if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019307 withval=$with_included_ltdl;
19308fi
19309
19310
19311if test "x$with_included_ltdl" != xyes; then
19312 # We are not being forced to use the included libltdl sources, so
19313 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019314 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019315
cristy8b350f62009-11-15 23:12:43 +000019316"
19317if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19318 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 +000019319 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019320"
19321if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019323$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019324if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019325 $as_echo_n "(cached) " >&6
19326else
19327 ac_check_lib_save_LIBS=$LIBS
19328LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019330/* end confdefs.h. */
19331
19332/* Override any GCC internal prototype to avoid an error.
19333 Use char because int might match the return type of a GCC
19334 builtin and then its argument prototype would still apply. */
19335#ifdef __cplusplus
19336extern "C"
19337#endif
19338char lt_dladvise_preload ();
19339int
19340main ()
19341{
19342return lt_dladvise_preload ();
19343 ;
19344 return 0;
19345}
19346_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019347if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019348 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19349else
cristy8b350f62009-11-15 23:12:43 +000019350 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019351fi
cristy8b350f62009-11-15 23:12:43 +000019352rm -f core conftest.err conftest.$ac_objext \
19353 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019354LIBS=$ac_check_lib_save_LIBS
19355fi
cristy8b350f62009-11-15 23:12:43 +000019356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019357$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019358if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019359 with_included_ltdl=no
19360else
19361 with_included_ltdl=yes
19362fi
19363
19364else
19365 with_included_ltdl=yes
19366fi
19367
19368else
19369 with_included_ltdl=yes
19370fi
19371
19372
19373fi
19374
19375
19376
19377
19378# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019379if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019380 withval=$with_ltdl_include;
19381fi
19382
19383
19384if test -n "$with_ltdl_include"; then
19385 if test -f "$with_ltdl_include/ltdl.h"; then :
19386 else
cristy8b350f62009-11-15 23:12:43 +000019387 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019388 fi
19389else
19390 with_ltdl_include=no
19391fi
19392
19393
19394# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019395if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019396 withval=$with_ltdl_lib;
19397fi
19398
19399
19400if test -n "$with_ltdl_lib"; then
19401 if test -f "$with_ltdl_lib/libltdl.la"; then :
19402 else
cristy8b350f62009-11-15 23:12:43 +000019403 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019404 fi
19405else
19406 with_ltdl_lib=no
19407fi
19408
19409case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19410 ,yes,no,no,)
19411 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000019412 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019413 "") enable_ltdl_convenience=yes
19414 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19415esac
19416LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19417LTDLDEPS=$LIBLTDL
19418LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19419
19420
19421
19422
19423
19424# For backwards non-gettext consistent compatibility...
19425INCLTDL="$LTDLINCL"
19426
19427
19428 ;;
19429 ,no,no,no,)
19430 # If the included ltdl is not to be used, then use the
19431 # preinstalled libltdl we found.
19432
cristy8b350f62009-11-15 23:12:43 +000019433$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019434
19435 LIBLTDL=-lltdl
19436 LTDLDEPS=
19437 LTDLINCL=
19438 ;;
19439 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000019440 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019441 ;;
19442 *) with_included_ltdl=no
19443 LIBLTDL="-L$with_ltdl_lib -lltdl"
19444 LTDLDEPS=
19445 LTDLINCL="-I$with_ltdl_include"
19446 ;;
19447esac
19448INCLTDL="$LTDLINCL"
19449
19450# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019452$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019454$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019456$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019458$as_echo "$LIBLTDL" >&6; }
19459
19460
19461
19462# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019463if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019464 enableval=$enable_ltdl_install;
19465fi
19466
19467
19468case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19469 *yes*) ;;
19470 *) enable_ltdl_convenience=yes ;;
19471esac
19472
19473 if test x"${enable_ltdl_install-no}" != xno; then
19474 INSTALL_LTDL_TRUE=
19475 INSTALL_LTDL_FALSE='#'
19476else
19477 INSTALL_LTDL_TRUE='#'
19478 INSTALL_LTDL_FALSE=
19479fi
19480
19481 if test x"${enable_ltdl_convenience-no}" != xno; then
19482 CONVENIENCE_LTDL_TRUE=
19483 CONVENIENCE_LTDL_FALSE='#'
19484else
19485 CONVENIENCE_LTDL_TRUE='#'
19486 CONVENIENCE_LTDL_FALSE=
19487fi
19488
19489
19490
19491
19492
19493
cristy18304f92009-11-22 15:48:26 +000019494
cristy3ed852e2009-09-05 21:47:34 +000019495# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19496# the user used. This is so that ltdl.h can pick up the parent projects
19497# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19498# definitions required by ltdl.c.
19499# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19500
19501
19502
cristy3ed852e2009-09-05 21:47:34 +000019503for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019504do :
19505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19506ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19507"
19508eval as_val=\$$as_ac_Header
19509 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019510 cat >>confdefs.h <<_ACEOF
19511#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19512_ACEOF
19513
19514fi
19515
19516done
19517
19518
cristy3ed852e2009-09-05 21:47:34 +000019519for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019520do :
19521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19522ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19523eval as_val=\$$as_ac_var
19524 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019525 cat >>confdefs.h <<_ACEOF
19526#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19527_ACEOF
19528
19529else
19530
19531
19532 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19533
19534fi
19535done
19536
cristy3ed852e2009-09-05 21:47:34 +000019537for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019538do :
19539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19540ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19541eval as_val=\$$as_ac_var
19542 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019543 cat >>confdefs.h <<_ACEOF
19544#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19545_ACEOF
19546
19547else
19548
19549
19550 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19551
19552fi
19553done
19554
19555
19556
19557cat >>confdefs.h <<_ACEOF
19558#define LT_LIBEXT "$libext"
19559_ACEOF
19560
19561
19562name=ltdl
19563LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19564
19565
19566
19567
19568
19569
19570
19571
19572# Only expand once:
19573
19574
19575
19576# Check to see if building shared libraries
19577libtool_build_shared_libs='no'
19578if test "$enable_shared" = 'yes'; then
19579 libtool_build_shared_libs='yes'
19580fi
19581
19582# Check to see if building static libraries
19583libtool_build_static_libs='no'
19584if test "$enable_static" = 'yes'; then
19585 libtool_build_static_libs='yes'
19586fi
19587
cristyfa112112010-01-04 17:48:07 +000019588 if test "${libtool_build_shared_libs}" = 'yes'; then
19589 WITH_SHARED_LIBS_TRUE=
19590 WITH_SHARED_LIBS_FALSE='#'
19591else
19592 WITH_SHARED_LIBS_TRUE='#'
19593 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019594fi
19595
19596#
19597# Enable support for building loadable modules
19598#
19599
19600# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019601if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019602 withval=$with_modules; with_modules=$withval
19603else
cristy5a1cefd2010-01-06 20:42:35 +000019604 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019605fi
19606
19607
19608# Only allow building loadable modules if we are building shared libraries
19609if test "$with_modules" != 'no' ; then
19610 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019611 { $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 +000019612$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19613 with_modules='no'
19614 fi
19615fi
19616if test "$with_modules" != 'no'; then
19617
cristy8b350f62009-11-15 23:12:43 +000019618$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019619
19620fi
19621 if test "$with_modules" != 'no'; then
19622 WITH_MODULES_TRUE=
19623 WITH_MODULES_FALSE='#'
19624else
19625 WITH_MODULES_TRUE='#'
19626 WITH_MODULES_FALSE=
19627fi
19628
19629
19630# Enable building/use of libltdl if we are building shared libraries regardless
19631# of whether modules are built or not.
19632with_ltdl='no'
19633if test "$libtool_build_shared_libs" != 'no'; then
19634 with_ltdl='yes'
19635fi
19636
19637 if test "$with_ltdl" != 'no'; then
19638 WITH_LTDL_TRUE=
19639 WITH_LTDL_FALSE='#'
19640else
19641 WITH_LTDL_TRUE='#'
19642 WITH_LTDL_FALSE=
19643fi
19644
19645if test "$with_ltdl" != 'no'; then
19646
cristy8b350f62009-11-15 23:12:43 +000019647$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019648
19649
19650 # Set DLLDFLAGS
19651 if test X"$enable_shared" = Xyes; then
19652 DLLDFLAGS=-export-dynamic
19653
19654 fi
19655fi
19656
19657# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019658# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019659# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019660if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019661 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19662else
19663 enable_delegate_build='no'
19664fi
19665
19666
19667# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019668if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019669 enableval=$enable_deprecated; enable_deprecated=$enableval
19670else
19671 enable_deprecated='no'
19672fi
19673
19674
19675if test "$enable_deprecated" = 'yes'; then
19676
cristy8b350f62009-11-15 23:12:43 +000019677$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019678
19679else
19680 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
19681fi
19682
19683# Build a version of ImageMagick which operates uninstalled.
19684# Used to build distributions located via MAGICK_HOME / executable path
19685# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000019686if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019687 enableval=$enable_installed; enable_installed=$enableval
19688else
19689 enable_installed='yes'
19690fi
19691
19692
19693if test "$enable_installed" = 'yes'; then
19694
cristy8b350f62009-11-15 23:12:43 +000019695$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019696
19697else
19698 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
19699fi
19700
19701# Permit enciphering and deciphering image pixels.
19702# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000019703if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019704 enableval=$enable_cipher; enable_cipher=$enableval
19705else
19706 enable_cipher='yes'
19707fi
19708
19709
19710if test "$enable_cipher" = 'yes'; then
19711
cristy8b350f62009-11-15 23:12:43 +000019712$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019713
19714fi
19715
19716# Build an embeddable version of ImageMagick.
19717# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000019718if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019719 enableval=$enable_embeddable; enable_embeddable=$enableval
19720else
19721 enable_embeddable='no'
19722fi
19723
19724
19725if test "$enable_embeddable" = 'yes'; then
19726
cristy8b350f62009-11-15 23:12:43 +000019727$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019728
19729fi
19730
19731# Build a high dynamic range version of ImageMagick.
19732# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000019733if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019734 enableval=$enable_hdri; enable_hdri=$enableval
19735else
19736 enable_hdri='no'
19737fi
19738
19739
19740MAGICK_HDRI=""
19741if test "$enable_hdri" = 'yes'; then
19742 MAGICK_HDRI="HDRI"
19743
cristy8b350f62009-11-15 23:12:43 +000019744$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019745
19746fi
19747
cristy3ed852e2009-09-05 21:47:34 +000019748# Build a version of ImageMagick with assert statements.
19749# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000019750if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019751 enableval=$enable_assert; enable_assert=$enableval
19752else
19753 enable_assert='yes'
19754fi
19755
19756
19757if test "$enable_assert" = 'no'; then
19758
cristy8b350f62009-11-15 23:12:43 +000019759$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019760
19761fi
19762
19763# Add configure option --enable-maintainer-mode which enables dependency
19764# checking and generation useful to package maintainers. This is made an
19765# option to avoid confusing end users.
19766
cristy8b350f62009-11-15 23:12:43 +000019767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000019768$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
19769 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000019770if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019771 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19772else
19773 USE_MAINTAINER_MODE=no
19774fi
19775
cristy8b350f62009-11-15 23:12:43 +000019776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000019777$as_echo "$USE_MAINTAINER_MODE" >&6; }
19778 if test $USE_MAINTAINER_MODE = yes; then
19779 MAINTAINER_MODE_TRUE=
19780 MAINTAINER_MODE_FALSE='#'
19781else
19782 MAINTAINER_MODE_TRUE='#'
19783 MAINTAINER_MODE_FALSE=
19784fi
19785
19786 MAINT=$MAINTAINER_MODE_TRUE
19787
19788
19789
19790
19791# Enable ccmalloc memory debugging support
19792# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000019793if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019794 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
19795else
19796 enable_ccmalloc='no'
19797fi
19798
19799
19800# Enable Electric Fence memory debugging support
19801# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000019802if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019803 enableval=$enable_efence; enable_efence=$enableval
19804else
19805 enable_efence='no'
19806fi
19807
19808
19809# Enable prof-based profiling support
19810# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000019811if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019812 enableval=$enable_prof; enable_prof=$enableval
19813else
19814 enable_prof='no'
19815fi
19816
19817
19818# Enable gprof-based profiling support
19819# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000019820if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019821 enableval=$enable_gprof; enable_gprof=$enableval
19822else
19823 enable_gprof='no'
19824fi
19825
19826
19827# Enable gcov-based profiling support
19828# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000019829if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019830 enableval=$enable_gcov; enable_gcov=$enableval
19831else
19832 enable_gcov='no'
19833fi
19834
19835
19836enable_profiling='no'
19837if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
19838 enable_profiling='yes'
19839 if test "$libtool_build_shared_libs" = 'yes'; then
19840 echo "Warning: Can not profile code using shared libraries"
19841 fi
19842fi
19843
19844# Magick API method prefix
19845
19846# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000019847if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019848 withval=$with_method_prefix; with_method_prefix=$enableval
19849else
19850 with_method_prefix=''
19851fi
19852
19853
19854if test "$with_method_prefix" != ''; then
19855
19856cat >>confdefs.h <<_ACEOF
19857#define NAMESPACE_PREFIX $with_method_prefix
19858_ACEOF
19859
19860fi
19861
19862# Number of bits in a Quantum
19863
19864# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000019865if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019866 withval=$with_quantum_depth; with_quantum_depth=$withval
19867else
19868 with_quantum_depth=16
19869fi
19870
19871
19872if test "$with_quantum_depth" != '8'; then
19873 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
19874fi
19875
19876case "${with_quantum_depth}" in
19877 8 ) ;;
19878 16 ) ;;
19879 32 ) ;;
19880 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000019881 * ) { as_fn_set_status 16
19882as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000019883esac
19884QUANTUM_DEPTH="$with_quantum_depth"
19885
19886cat >>confdefs.h <<_ACEOF
19887#define QUANTUM_DEPTH $QUANTUM_DEPTH
19888_ACEOF
19889
19890
19891# Set pixel cache threshold
19892
19893# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000019894if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019895 withval=$with_cache; with_cache=$withval
19896else
19897 with_cache=''
19898fi
19899
19900
19901if test "$with_cache" != ''; then
19902
19903cat >>confdefs.h <<_ACEOF
19904#define PixelCacheThreshold $with_cache
19905_ACEOF
19906
19907 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
19908fi
19909
19910# Disable/Enable support for full delegate paths
19911
19912# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000019913if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019914 withval=$with_frozenpaths; with_frozenpaths=$withval
19915else
19916 with_frozenpaths='no'
19917fi
19918
19919
19920# Enable build/install of Magick++
19921
19922# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000019923if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019924 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
19925else
19926 with_magick_plus_plus='yes'
19927fi
19928
19929
19930# Disable build/install of PerlMagick.
19931
19932# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000019933if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019934 withval=$with_perl; with_perl=$withval
19935else
cristyb5f4e2f2010-04-25 00:49:11 +000019936 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000019937fi
19938
19939
19940# Options to pass when configuring PerlMagick
19941
19942# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000019943if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000019944 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000019945fi
19946
19947
cristy3ed852e2009-09-05 21:47:34 +000019948
19949# Enable umem, object-caching memory allocation library.
19950
19951# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000019952if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019953 withval=$with_umem; with_umem=$withval
19954else
19955 with_umem='no'
19956fi
19957
19958if test "$with_umem" != 'yes' ; then
19959 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19960fi
19961
19962#
19963# Specify path to shared libstdc++ if not in normal location
19964#
19965
19966# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000019967if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019968 withval=$with_libstdc; with_libstdc=$withval
19969else
19970 with_libstdc=''
19971fi
19972
19973
19974if test "$with_libstdc" != ''; then
19975 if test -d "$with_libstdc"; then
19976 LIBSTDCLDFLAGS="-L$with_libstdc"
19977 fi
19978fi
19979
19980
19981# Does gcc required -traditional?
19982if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000019983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019984$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019985if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019986 $as_echo_n "(cached) " >&6
19987else
19988 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000019989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019990/* end confdefs.h. */
19991#include <sgtty.h>
19992Autoconf TIOCGETP
19993_ACEOF
19994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019995 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019996 ac_cv_prog_gcc_traditional=yes
19997else
19998 ac_cv_prog_gcc_traditional=no
19999fi
20000rm -f conftest*
20001
20002
20003 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020005/* end confdefs.h. */
20006#include <termio.h>
20007Autoconf TCGETA
20008_ACEOF
20009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020010 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020011 ac_cv_prog_gcc_traditional=yes
20012fi
20013rm -f conftest*
20014
20015 fi
20016fi
cristy8b350f62009-11-15 23:12:43 +000020017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020018$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20019 if test $ac_cv_prog_gcc_traditional = yes; then
20020 CC="$CC -traditional"
20021 fi
20022fi
20023
20024
20025########
20026#
20027# Set defines required to build DLLs and modules using MinGW
20028#
20029########
20030# These options are set for multi-thread DLL module build
20031# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20032# module: _DLL
20033# executable/Magick++: _DLL _MAGICKMOD_
20034MODULE_EXTRA_CPPFLAGS=''
20035LIBRARY_EXTRA_CPPFLAGS=''
20036if test "${native_win32_build}" = 'yes'; then
20037 if test "${libtool_build_shared_libs}" = 'yes'; then
20038 CPPFLAGS="$CPPFLAGS -D_DLL"
20039 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20040 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20041 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20042 if test "$with_modules" = 'yes'; then
20043 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20044 else
20045 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20046 fi
20047 else
20048 CPPFLAGS="$CPPFLAGS -D_LIB"
20049 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20050 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20051 fi
20052 if test "$with_threads" = 'yes'; then
20053 CPPFLAGS="$CPPFLAGS -D_MT"
20054 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20055 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20056 fi
20057fi
20058
20059
20060
20061# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020063$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020064if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020065 $as_echo_n "(cached) " >&6
20066else
cristy8b350f62009-11-15 23:12:43 +000020067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020068/* end confdefs.h. */
20069#include <stdlib.h>
20070#include <stdarg.h>
20071#include <string.h>
20072#include <float.h>
20073
20074int
20075main ()
20076{
20077
20078 ;
20079 return 0;
20080}
20081_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020082if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020083 ac_cv_header_stdc=yes
20084else
cristy8b350f62009-11-15 23:12:43 +000020085 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020086fi
cristy3ed852e2009-09-05 21:47:34 +000020087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20088
20089if test $ac_cv_header_stdc = yes; then
20090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020092/* end confdefs.h. */
20093#include <string.h>
20094
20095_ACEOF
20096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020097 $EGREP "memchr" >/dev/null 2>&1; then :
20098
cristy3ed852e2009-09-05 21:47:34 +000020099else
20100 ac_cv_header_stdc=no
20101fi
20102rm -f conftest*
20103
20104fi
20105
20106if test $ac_cv_header_stdc = yes; then
20107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020109/* end confdefs.h. */
20110#include <stdlib.h>
20111
20112_ACEOF
20113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020114 $EGREP "free" >/dev/null 2>&1; then :
20115
cristy3ed852e2009-09-05 21:47:34 +000020116else
20117 ac_cv_header_stdc=no
20118fi
20119rm -f conftest*
20120
20121fi
20122
20123if test $ac_cv_header_stdc = yes; then
20124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020125 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020126 :
20127else
cristy8b350f62009-11-15 23:12:43 +000020128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020129/* end confdefs.h. */
20130#include <ctype.h>
20131#include <stdlib.h>
20132#if ((' ' & 0x0FF) == 0x020)
20133# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20134# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20135#else
20136# define ISLOWER(c) \
20137 (('a' <= (c) && (c) <= 'i') \
20138 || ('j' <= (c) && (c) <= 'r') \
20139 || ('s' <= (c) && (c) <= 'z'))
20140# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20141#endif
20142
20143#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20144int
20145main ()
20146{
20147 int i;
20148 for (i = 0; i < 256; i++)
20149 if (XOR (islower (i), ISLOWER (i))
20150 || toupper (i) != TOUPPER (i))
20151 return 2;
20152 return 0;
20153}
20154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020155if ac_fn_c_try_run "$LINENO"; then :
20156
cristy3ed852e2009-09-05 21:47:34 +000020157else
cristy8b350f62009-11-15 23:12:43 +000020158 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020159fi
cristy8b350f62009-11-15 23:12:43 +000020160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20161 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020162fi
20163
cristy3ed852e2009-09-05 21:47:34 +000020164fi
20165fi
cristy8b350f62009-11-15 23:12:43 +000020166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020167$as_echo "$ac_cv_header_stdc" >&6; }
20168if test $ac_cv_header_stdc = yes; then
20169
cristy8b350f62009-11-15 23:12:43 +000020170$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020171
20172fi
20173
20174if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020175 { $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 +000020176 header files. Compilation cannot proceed. Please install the ANSI C
20177 headers and rerun this script." >&5
20178$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20179 header files. Compilation cannot proceed. Please install the ANSI C
20180 headers and rerun this script." >&2;};
20181fi
cristya0b81c32010-01-22 02:54:33 +000020182
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20184$as_echo_n "checking whether to enable assertions... " >&6; }
20185 # Check whether --enable-assert was given.
20186if test "${enable_assert+set}" = set; then :
20187 enableval=$enable_assert; ac_enable_assert=$enableval
20188 if test "x$enableval" = xno; then :
20189
20190$as_echo "#define NDEBUG 1" >>confdefs.h
20191
20192elif test "x$enableval" != xyes; then :
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20194$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20195 ac_enable_assert=yes
20196fi
20197else
20198 ac_enable_assert=yes
20199fi
20200
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20202$as_echo "$ac_enable_assert" >&6; }
20203
cristy3ed852e2009-09-05 21:47:34 +000020204ac_header_dirent=no
20205for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20206 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020208$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020210 $as_echo_n "(cached) " >&6
20211else
cristy8b350f62009-11-15 23:12:43 +000020212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020213/* end confdefs.h. */
20214#include <sys/types.h>
20215#include <$ac_hdr>
20216
20217int
20218main ()
20219{
20220if ((DIR *) 0)
20221return 0;
20222 ;
20223 return 0;
20224}
20225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020226if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020227 eval "$as_ac_Header=yes"
20228else
cristy8b350f62009-11-15 23:12:43 +000020229 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020230fi
cristy3ed852e2009-09-05 21:47:34 +000020231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20232fi
cristy8b350f62009-11-15 23:12:43 +000020233eval ac_res=\$$as_ac_Header
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020235$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020236eval as_val=\$$as_ac_Header
20237 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020238 cat >>confdefs.h <<_ACEOF
20239#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20240_ACEOF
20241
20242ac_header_dirent=$ac_hdr; break
20243fi
20244
20245done
20246# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20247if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020249$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020250if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020251 $as_echo_n "(cached) " >&6
20252else
20253 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020255/* end confdefs.h. */
20256
20257/* Override any GCC internal prototype to avoid an error.
20258 Use char because int might match the return type of a GCC
20259 builtin and then its argument prototype would still apply. */
20260#ifdef __cplusplus
20261extern "C"
20262#endif
20263char opendir ();
20264int
20265main ()
20266{
20267return opendir ();
20268 ;
20269 return 0;
20270}
20271_ACEOF
20272for ac_lib in '' dir; do
20273 if test -z "$ac_lib"; then
20274 ac_res="none required"
20275 else
20276 ac_res=-l$ac_lib
20277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20278 fi
cristy8b350f62009-11-15 23:12:43 +000020279 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020280 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020281fi
cristy8b350f62009-11-15 23:12:43 +000020282rm -f core conftest.err conftest.$ac_objext \
20283 conftest$ac_exeext
20284 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020285 break
20286fi
20287done
cristy8b350f62009-11-15 23:12:43 +000020288if test "${ac_cv_search_opendir+set}" = set; then :
20289
cristy3ed852e2009-09-05 21:47:34 +000020290else
20291 ac_cv_search_opendir=no
20292fi
20293rm conftest.$ac_ext
20294LIBS=$ac_func_search_save_LIBS
20295fi
cristy8b350f62009-11-15 23:12:43 +000020296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020297$as_echo "$ac_cv_search_opendir" >&6; }
20298ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020299if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20301
20302fi
20303
20304else
cristy8b350f62009-11-15 23:12:43 +000020305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020306$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020307if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020308 $as_echo_n "(cached) " >&6
20309else
20310 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020312/* end confdefs.h. */
20313
20314/* Override any GCC internal prototype to avoid an error.
20315 Use char because int might match the return type of a GCC
20316 builtin and then its argument prototype would still apply. */
20317#ifdef __cplusplus
20318extern "C"
20319#endif
20320char opendir ();
20321int
20322main ()
20323{
20324return opendir ();
20325 ;
20326 return 0;
20327}
20328_ACEOF
20329for ac_lib in '' x; do
20330 if test -z "$ac_lib"; then
20331 ac_res="none required"
20332 else
20333 ac_res=-l$ac_lib
20334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20335 fi
cristy8b350f62009-11-15 23:12:43 +000020336 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020337 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020338fi
cristy8b350f62009-11-15 23:12:43 +000020339rm -f core conftest.err conftest.$ac_objext \
20340 conftest$ac_exeext
20341 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020342 break
20343fi
20344done
cristy8b350f62009-11-15 23:12:43 +000020345if test "${ac_cv_search_opendir+set}" = set; then :
20346
cristy3ed852e2009-09-05 21:47:34 +000020347else
20348 ac_cv_search_opendir=no
20349fi
20350rm conftest.$ac_ext
20351LIBS=$ac_func_search_save_LIBS
20352fi
cristy8b350f62009-11-15 23:12:43 +000020353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020354$as_echo "$ac_cv_search_opendir" >&6; }
20355ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020356if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20358
20359fi
20360
20361fi
20362
20363
20364# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020365for 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 +000020366do :
20367 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20368ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20369eval as_val=\$$as_ac_Header
20370 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020371 cat >>confdefs.h <<_ACEOF
20372#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20373_ACEOF
20374
20375fi
20376
20377done
20378
20379
20380########
20381#
20382# Checks for typedefs, structures, and compiler characteristics.
20383#
20384########
20385
cristy8b350f62009-11-15 23:12:43 +000020386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020387$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020388if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020389 $as_echo_n "(cached) " >&6
20390else
cristy8b350f62009-11-15 23:12:43 +000020391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020392/* end confdefs.h. */
20393
20394#include <stdbool.h>
20395#ifndef bool
20396 "error: bool is not defined"
20397#endif
20398#ifndef false
20399 "error: false is not defined"
20400#endif
20401#if false
20402 "error: false is not 0"
20403#endif
20404#ifndef true
20405 "error: true is not defined"
20406#endif
20407#if true != 1
20408 "error: true is not 1"
20409#endif
20410#ifndef __bool_true_false_are_defined
20411 "error: __bool_true_false_are_defined is not defined"
20412#endif
20413
20414 struct s { _Bool s: 1; _Bool t; } s;
20415
20416 char a[true == 1 ? 1 : -1];
20417 char b[false == 0 ? 1 : -1];
20418 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20419 char d[(bool) 0.5 == true ? 1 : -1];
20420 bool e = &s;
20421 char f[(_Bool) 0.0 == false ? 1 : -1];
20422 char g[true];
20423 char h[sizeof (_Bool)];
20424 char i[sizeof s.t];
20425 enum { j = false, k = true, l = false * true, m = true * 256 };
20426 /* The following fails for
20427 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20428 _Bool n[m];
20429 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20430 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20431# if defined __xlc__ || defined __GNUC__
20432 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20433 reported by James Lemley on 2005-10-05; see
20434 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20435 This test is not quite right, since xlc is allowed to
20436 reject this program, as the initializer for xlcbug is
20437 not one of the forms that C requires support for.
20438 However, doing the test right would require a runtime
20439 test, and that would make cross-compilation harder.
20440 Let us hope that IBM fixes the xlc bug, and also adds
20441 support for this kind of constant expression. In the
20442 meantime, this test will reject xlc, which is OK, since
20443 our stdbool.h substitute should suffice. We also test
20444 this with GCC, where it should work, to detect more
20445 quickly whether someone messes up the test in the
20446 future. */
20447 char digs[] = "0123456789";
20448 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20449# endif
20450 /* Catch a bug in an HP-UX C compiler. See
20451 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20452 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20453 */
20454 _Bool q = true;
20455 _Bool *pq = &q;
20456
20457int
20458main ()
20459{
20460
20461 *pq |= q;
20462 *pq |= ! q;
20463 /* Refer to every declared value, to avoid compiler optimizations. */
20464 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20465 + !m + !n + !o + !p + !q + !pq);
20466
20467 ;
20468 return 0;
20469}
20470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020471if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020472 ac_cv_header_stdbool_h=yes
20473else
cristy8b350f62009-11-15 23:12:43 +000020474 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020475fi
cristy3ed852e2009-09-05 21:47:34 +000020476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20477fi
cristy8b350f62009-11-15 23:12:43 +000020478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020479$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020480ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20481if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020482
20483cat >>confdefs.h <<_ACEOF
20484#define HAVE__BOOL 1
20485_ACEOF
20486
20487
20488fi
20489
20490if test $ac_cv_header_stdbool_h = yes; then
20491
cristy8b350f62009-11-15 23:12:43 +000020492$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020493
20494fi
20495
cristy8b350f62009-11-15 23:12:43 +000020496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020497$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020498if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020499 $as_echo_n "(cached) " >&6
20500else
cristy8b350f62009-11-15 23:12:43 +000020501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020502/* end confdefs.h. */
20503
20504int
20505main ()
20506{
20507
20508volatile int x;
20509int * volatile y = (int *) 0;
20510return !x && !y;
20511 ;
20512 return 0;
20513}
20514_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020515if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020516 ac_cv_c_volatile=yes
20517else
cristy8b350f62009-11-15 23:12:43 +000020518 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020519fi
cristy3ed852e2009-09-05 21:47:34 +000020520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20521fi
cristy8b350f62009-11-15 23:12:43 +000020522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020523$as_echo "$ac_cv_c_volatile" >&6; }
20524if test $ac_cv_c_volatile = no; then
20525
cristy8b350f62009-11-15 23:12:43 +000020526$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020527
20528fi
20529
cristy8b350f62009-11-15 23:12:43 +000020530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020531$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020532if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020533 $as_echo_n "(cached) " >&6
20534else
cristy8b350f62009-11-15 23:12:43 +000020535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020536/* end confdefs.h. */
20537#define x(y) #y
20538
20539char *s = x(teststring);
20540_ACEOF
20541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020542 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020543 ac_cv_c_stringize=no
20544else
20545 ac_cv_c_stringize=yes
20546fi
20547rm -f conftest*
20548
20549fi
cristy8b350f62009-11-15 23:12:43 +000020550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020551$as_echo "$ac_cv_c_stringize" >&6; }
20552if test $ac_cv_c_stringize = yes; then
20553
cristy8b350f62009-11-15 23:12:43 +000020554$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020555
20556fi
20557
cristy8b350f62009-11-15 23:12:43 +000020558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020559$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020560if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020561 $as_echo_n "(cached) " >&6
20562else
cristy8b350f62009-11-15 23:12:43 +000020563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020564/* end confdefs.h. */
20565#include <sys/types.h>
20566#include <sys/stat.h>
20567
20568#if defined S_ISBLK && defined S_IFDIR
20569extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20570#endif
20571
20572#if defined S_ISBLK && defined S_IFCHR
20573extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20574#endif
20575
20576#if defined S_ISLNK && defined S_IFREG
20577extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20578#endif
20579
20580#if defined S_ISSOCK && defined S_IFREG
20581extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20582#endif
20583
20584_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020585if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020586 ac_cv_header_stat_broken=no
20587else
cristy8b350f62009-11-15 23:12:43 +000020588 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020589fi
cristy3ed852e2009-09-05 21:47:34 +000020590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20591fi
cristy8b350f62009-11-15 23:12:43 +000020592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020593$as_echo "$ac_cv_header_stat_broken" >&6; }
20594if test $ac_cv_header_stat_broken = yes; then
20595
cristy8b350f62009-11-15 23:12:43 +000020596$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020597
20598fi
20599
cristy8b350f62009-11-15 23:12:43 +000020600{ $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 +000020601$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020602if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020603 $as_echo_n "(cached) " >&6
20604else
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#include <sys/types.h>
20608#include <sys/time.h>
20609#include <time.h>
20610
20611int
20612main ()
20613{
20614if ((struct tm *) 0)
20615return 0;
20616 ;
20617 return 0;
20618}
20619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020620if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020621 ac_cv_header_time=yes
20622else
cristy8b350f62009-11-15 23:12:43 +000020623 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020624fi
cristy3ed852e2009-09-05 21:47:34 +000020625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20626fi
cristy8b350f62009-11-15 23:12:43 +000020627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020628$as_echo "$ac_cv_header_time" >&6; }
20629if test $ac_cv_header_time = yes; then
20630
cristy8b350f62009-11-15 23:12:43 +000020631$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020632
20633fi
20634
cristy8b350f62009-11-15 23:12:43 +000020635{ $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 +000020636$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020637if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020638 $as_echo_n "(cached) " >&6
20639else
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 <time.h>
20644
20645int
20646main ()
20647{
20648struct tm tm;
20649 int *p = &tm.tm_sec;
20650 return !p;
20651 ;
20652 return 0;
20653}
20654_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020655if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020656 ac_cv_struct_tm=time.h
20657else
cristy8b350f62009-11-15 23:12:43 +000020658 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020659fi
cristy3ed852e2009-09-05 21:47:34 +000020660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661fi
cristy8b350f62009-11-15 23:12:43 +000020662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020663$as_echo "$ac_cv_struct_tm" >&6; }
20664if test $ac_cv_struct_tm = sys/time.h; then
20665
cristy8b350f62009-11-15 23:12:43 +000020666$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020667
20668fi
20669
cristy8b350f62009-11-15 23:12:43 +000020670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000020671$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020672if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020673 $as_echo_n "(cached) " >&6
20674else
20675 echo '#! /bin/cat
20676exit 69
20677' >conftest
20678chmod u+x conftest
20679(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
20680if test $? -ne 69; then
20681 ac_cv_sys_interpreter=yes
20682else
20683 ac_cv_sys_interpreter=no
20684fi
20685rm -f conftest
20686fi
cristy8b350f62009-11-15 23:12:43 +000020687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000020688$as_echo "$ac_cv_sys_interpreter" >&6; }
20689interpval=$ac_cv_sys_interpreter
20690
20691
cristy3ed852e2009-09-05 21:47:34 +000020692# If the C compiler supports the keyword inline, do nothing. Otherwise
20693# define inline to __inline__ or __inline if it accepts one of those,
20694# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000020695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000020696$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020697if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020698 $as_echo_n "(cached) " >&6
20699else
20700 ac_cv_c_inline=no
20701for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000020702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020703/* end confdefs.h. */
20704#ifndef __cplusplus
20705typedef int foo_t;
20706static $ac_kw foo_t static_foo () {return 0; }
20707$ac_kw foo_t foo () {return 0; }
20708#endif
20709
20710_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020711if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020712 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000020713fi
cristy3ed852e2009-09-05 21:47:34 +000020714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20715 test "$ac_cv_c_inline" != no && break
20716done
20717
20718fi
cristy8b350f62009-11-15 23:12:43 +000020719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000020720$as_echo "$ac_cv_c_inline" >&6; }
20721
cristy3ed852e2009-09-05 21:47:34 +000020722case $ac_cv_c_inline in
20723 inline | yes) ;;
20724 *)
20725 case $ac_cv_c_inline in
20726 no) ac_val=;;
20727 *) ac_val=$ac_cv_c_inline;;
20728 esac
20729 cat >>confdefs.h <<_ACEOF
20730#ifndef __cplusplus
20731#define inline $ac_val
20732#endif
20733_ACEOF
20734 ;;
20735esac
20736
20737
20738# If the C compiler supports the keyword restrict, do nothing. Otherwise
20739# define restrict to __restrict__ or __restrict if it accepts one of those,
20740# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000020741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000020742$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020743if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020744 $as_echo_n "(cached) " >&6
20745else
20746 ac_cv_c_restrict=no
20747 # The order here caters to the fact that C++ does not require restrict.
20748 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000020749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020750/* end confdefs.h. */
20751typedef int * int_ptr;
20752 int foo (int_ptr $ac_kw ip) {
20753 return ip[0];
20754 }
20755int
20756main ()
20757{
20758int s[1];
20759 int * $ac_kw t = s;
20760 t[0] = 0;
20761 return foo(t)
20762 ;
20763 return 0;
20764}
20765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020766if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020767 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000020768fi
cristy3ed852e2009-09-05 21:47:34 +000020769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20770 test "$ac_cv_c_restrict" != no && break
20771 done
20772
20773fi
cristy8b350f62009-11-15 23:12:43 +000020774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000020775$as_echo "$ac_cv_c_restrict" >&6; }
20776
cristy3ed852e2009-09-05 21:47:34 +000020777 case $ac_cv_c_restrict in
20778 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000020779 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020780 ;;
20781 *) cat >>confdefs.h <<_ACEOF
20782#define restrict $ac_cv_c_restrict
20783_ACEOF
20784 ;;
20785 esac
20786
20787
20788# If words are stored with the most significant byte first (like
20789# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000020790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020791$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020792if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020793 $as_echo_n "(cached) " >&6
20794else
20795 ac_cv_c_bigendian=unknown
20796 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000020797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020798/* end confdefs.h. */
20799#ifndef __APPLE_CC__
20800 not a universal capable compiler
20801 #endif
20802 typedef int dummy;
20803
20804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020805if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020806
20807 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000020808 # there are at least two -arch flags with different values.
20809 ac_arch=
20810 ac_prev=
20811 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20812 if test -n "$ac_prev"; then
20813 case $ac_word in
20814 i?86 | x86_64 | ppc | ppc64)
20815 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20816 ac_arch=$ac_word
20817 else
20818 ac_cv_c_bigendian=universal
20819 break
20820 fi
20821 ;;
20822 esac
20823 ac_prev=
20824 elif test "x$ac_word" = "x-arch"; then
20825 ac_prev=arch
20826 fi
20827 done
cristy3ed852e2009-09-05 21:47:34 +000020828fi
cristy3ed852e2009-09-05 21:47:34 +000020829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20830 if test $ac_cv_c_bigendian = unknown; then
20831 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000020832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020833/* end confdefs.h. */
20834#include <sys/types.h>
20835 #include <sys/param.h>
20836
20837int
20838main ()
20839{
20840#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20841 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20842 && LITTLE_ENDIAN)
20843 bogus endian macros
20844 #endif
20845
20846 ;
20847 return 0;
20848}
20849_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020850if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020851 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020853/* end confdefs.h. */
20854#include <sys/types.h>
20855 #include <sys/param.h>
20856
20857int
20858main ()
20859{
20860#if BYTE_ORDER != BIG_ENDIAN
20861 not big endian
20862 #endif
20863
20864 ;
20865 return 0;
20866}
20867_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020868if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020869 ac_cv_c_bigendian=yes
20870else
cristy8b350f62009-11-15 23:12:43 +000020871 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020872fi
cristy3ed852e2009-09-05 21:47:34 +000020873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020874fi
cristy3ed852e2009-09-05 21:47:34 +000020875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876 fi
20877 if test $ac_cv_c_bigendian = unknown; then
20878 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000020879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020880/* end confdefs.h. */
20881#include <limits.h>
20882
20883int
20884main ()
20885{
20886#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20887 bogus endian macros
20888 #endif
20889
20890 ;
20891 return 0;
20892}
20893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020894if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020895 # It does; now see whether it defined to _BIG_ENDIAN or not.
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 <limits.h>
20899
20900int
20901main ()
20902{
20903#ifndef _BIG_ENDIAN
20904 not big endian
20905 #endif
20906
20907 ;
20908 return 0;
20909}
20910_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020911if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020912 ac_cv_c_bigendian=yes
20913else
cristy8b350f62009-11-15 23:12:43 +000020914 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020915fi
cristy3ed852e2009-09-05 21:47:34 +000020916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020917fi
cristy3ed852e2009-09-05 21:47:34 +000020918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919 fi
20920 if test $ac_cv_c_bigendian = unknown; then
20921 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000020922 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020923 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000020924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020925/* end confdefs.h. */
20926short int ascii_mm[] =
20927 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20928 short int ascii_ii[] =
20929 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20930 int use_ascii (int i) {
20931 return ascii_mm[i] + ascii_ii[i];
20932 }
20933 short int ebcdic_ii[] =
20934 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20935 short int ebcdic_mm[] =
20936 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20937 int use_ebcdic (int i) {
20938 return ebcdic_mm[i] + ebcdic_ii[i];
20939 }
20940 extern int foo;
20941
20942int
20943main ()
20944{
20945return use_ascii (foo) == use_ebcdic (foo);
20946 ;
20947 return 0;
20948}
20949_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020950if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020951 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20952 ac_cv_c_bigendian=yes
20953 fi
20954 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20955 if test "$ac_cv_c_bigendian" = unknown; then
20956 ac_cv_c_bigendian=no
20957 else
20958 # finding both strings is unlikely to happen, but who knows?
20959 ac_cv_c_bigendian=unknown
20960 fi
20961 fi
cristy3ed852e2009-09-05 21:47:34 +000020962fi
cristy3ed852e2009-09-05 21:47:34 +000020963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20964else
cristy8b350f62009-11-15 23:12:43 +000020965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020966/* end confdefs.h. */
20967$ac_includes_default
20968int
20969main ()
20970{
20971
20972 /* Are we little or big endian? From Harbison&Steele. */
20973 union
20974 {
20975 long int l;
20976 char c[sizeof (long int)];
20977 } u;
20978 u.l = 1;
20979 return u.c[sizeof (long int) - 1] == 1;
20980
20981 ;
20982 return 0;
20983}
20984_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020985if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020986 ac_cv_c_bigendian=no
20987else
cristy8b350f62009-11-15 23:12:43 +000020988 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000020989fi
cristy8b350f62009-11-15 23:12:43 +000020990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20991 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020992fi
20993
cristy3ed852e2009-09-05 21:47:34 +000020994 fi
20995fi
cristy8b350f62009-11-15 23:12:43 +000020996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020997$as_echo "$ac_cv_c_bigendian" >&6; }
20998 case $ac_cv_c_bigendian in #(
20999 yes)
cristy8b350f62009-11-15 23:12:43 +000021000 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021001;; #(
21002 no)
21003 ;; #(
21004 universal)
21005
cristy8b350f62009-11-15 23:12:43 +000021006$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021007
21008 ;; #(
21009 *)
cristy8b350f62009-11-15 23:12:43 +000021010 as_fn_error "unknown endianness
21011 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021012 esac
21013
21014
21015# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021016ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21017if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021018
cristy3ed852e2009-09-05 21:47:34 +000021019else
21020
21021cat >>confdefs.h <<_ACEOF
21022#define mode_t int
21023_ACEOF
21024
21025fi
21026
21027
21028# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021029ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21030if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021031
cristy3ed852e2009-09-05 21:47:34 +000021032else
21033
21034cat >>confdefs.h <<_ACEOF
21035#define off_t long int
21036_ACEOF
21037
21038fi
21039
21040
21041# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021042ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21043if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021044
cristy3ed852e2009-09-05 21:47:34 +000021045else
21046
21047cat >>confdefs.h <<_ACEOF
21048#define pid_t int
21049_ACEOF
21050
21051fi
21052
21053
21054# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021055ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21056if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021057
cristy3ed852e2009-09-05 21:47:34 +000021058else
21059
21060cat >>confdefs.h <<_ACEOF
21061#define size_t unsigned int
21062_ACEOF
21063
21064fi
21065
21066
21067# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021068ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21069if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021070
cristy3ed852e2009-09-05 21:47:34 +000021071else
21072
21073cat >>confdefs.h <<_ACEOF
21074#define ssize_t int
21075_ACEOF
21076
21077fi
21078
21079
21080# If the C compiler supports a working long double type with more range
21081# or precision than the double type, define HAVE_LONG_DOUBLE.
21082
cristy8b350f62009-11-15 23:12:43 +000021083 { $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 +000021084$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021085if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021086 $as_echo_n "(cached) " >&6
21087else
cristy8b350f62009-11-15 23:12:43 +000021088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021089/* end confdefs.h. */
21090#include <float.h>
21091 long double const a[] =
21092 {
21093 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21094 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21095 };
21096 long double
21097 f (long double x)
21098 {
21099 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21100 + (x ? f (x) : 'c'));
21101 }
21102
21103int
21104main ()
21105{
21106static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21107 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21108 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21109 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21110 && (int) LDBL_EPSILON == 0
21111 )];
21112test_array [0] = 0
21113
21114 ;
21115 return 0;
21116}
21117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021118if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021119 ac_cv_type_long_double_wider=yes
21120else
cristy8b350f62009-11-15 23:12:43 +000021121 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021122fi
cristy3ed852e2009-09-05 21:47:34 +000021123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124fi
cristy8b350f62009-11-15 23:12:43 +000021125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021126$as_echo "$ac_cv_type_long_double_wider" >&6; }
21127 if test $ac_cv_type_long_double_wider = yes; then
21128
cristy8b350f62009-11-15 23:12:43 +000021129$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021130
21131 fi
21132
21133
21134# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21135# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021137$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021138if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021139 $as_echo_n "(cached) " >&6
21140else
cristy8b350f62009-11-15 23:12:43 +000021141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021142/* end confdefs.h. */
21143$ac_includes_default
21144int
21145main ()
21146{
21147static int test_array [1 - 2 * !(((char) -1) < 0)];
21148test_array [0] = 0
21149
21150 ;
21151 return 0;
21152}
21153_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021154if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021155 ac_cv_c_char_unsigned=no
21156else
cristy8b350f62009-11-15 23:12:43 +000021157 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021158fi
cristy3ed852e2009-09-05 21:47:34 +000021159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160fi
cristy8b350f62009-11-15 23:12:43 +000021161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021162$as_echo "$ac_cv_c_char_unsigned" >&6; }
21163if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021164 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021165
21166fi
21167
21168
21169# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21170# The cast to long int works around a bug in the HP C Compiler
21171# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21172# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21173# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021175$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021176if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021177 $as_echo_n "(cached) " >&6
21178else
cristy8b350f62009-11-15 23:12:43 +000021179 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 +000021180
cristy3ed852e2009-09-05 21:47:34 +000021181else
cristy8b350f62009-11-15 23:12:43 +000021182 if test "$ac_cv_type_signed_short" = yes; then
21183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021185{ as_fn_set_status 77
21186as_fn_error "cannot compute sizeof (signed short)
21187See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021188 else
21189 ac_cv_sizeof_signed_short=0
21190 fi
21191fi
cristy8b350f62009-11-15 23:12:43 +000021192
cristy3ed852e2009-09-05 21:47:34 +000021193fi
cristy8b350f62009-11-15 23:12:43 +000021194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021195$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21196
21197
21198
21199cat >>confdefs.h <<_ACEOF
21200#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21201_ACEOF
21202
21203
21204
21205# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21206# The cast to long int works around a bug in the HP C Compiler
21207# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21208# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21209# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021211$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021212if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021213 $as_echo_n "(cached) " >&6
21214else
cristy8b350f62009-11-15 23:12:43 +000021215 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 +000021216
cristy3ed852e2009-09-05 21:47:34 +000021217else
cristy8b350f62009-11-15 23:12:43 +000021218 if test "$ac_cv_type_unsigned_short" = yes; then
21219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021221{ as_fn_set_status 77
21222as_fn_error "cannot compute sizeof (unsigned short)
21223See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021224 else
21225 ac_cv_sizeof_unsigned_short=0
21226 fi
21227fi
cristy8b350f62009-11-15 23:12:43 +000021228
cristy3ed852e2009-09-05 21:47:34 +000021229fi
cristy8b350f62009-11-15 23:12:43 +000021230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021231$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21232
21233
21234
21235cat >>confdefs.h <<_ACEOF
21236#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21237_ACEOF
21238
21239
21240
21241# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21242# The cast to long int works around a bug in the HP C Compiler
21243# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21244# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21245# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021247$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021248if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021249 $as_echo_n "(cached) " >&6
21250else
cristy8b350f62009-11-15 23:12:43 +000021251 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 +000021252
cristy3ed852e2009-09-05 21:47:34 +000021253else
cristy8b350f62009-11-15 23:12:43 +000021254 if test "$ac_cv_type_signed_int" = yes; then
21255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021257{ as_fn_set_status 77
21258as_fn_error "cannot compute sizeof (signed int)
21259See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021260 else
21261 ac_cv_sizeof_signed_int=0
21262 fi
21263fi
cristy8b350f62009-11-15 23:12:43 +000021264
cristy3ed852e2009-09-05 21:47:34 +000021265fi
cristy8b350f62009-11-15 23:12:43 +000021266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021267$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21268
21269
21270
21271cat >>confdefs.h <<_ACEOF
21272#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21273_ACEOF
21274
21275
21276
21277# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21278# The cast to long int works around a bug in the HP C Compiler
21279# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21280# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21281# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021283$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021284if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021285 $as_echo_n "(cached) " >&6
21286else
cristy8b350f62009-11-15 23:12:43 +000021287 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 +000021288
cristy3ed852e2009-09-05 21:47:34 +000021289else
cristy8b350f62009-11-15 23:12:43 +000021290 if test "$ac_cv_type_unsigned_int" = yes; then
21291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021293{ as_fn_set_status 77
21294as_fn_error "cannot compute sizeof (unsigned int)
21295See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021296 else
21297 ac_cv_sizeof_unsigned_int=0
21298 fi
21299fi
cristy8b350f62009-11-15 23:12:43 +000021300
cristy3ed852e2009-09-05 21:47:34 +000021301fi
cristy8b350f62009-11-15 23:12:43 +000021302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021303$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21304
21305
21306
21307cat >>confdefs.h <<_ACEOF
21308#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21309_ACEOF
21310
21311
21312
21313# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21314# The cast to long int works around a bug in the HP C Compiler
21315# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21316# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21317# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021319$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021320if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021321 $as_echo_n "(cached) " >&6
21322else
cristy8b350f62009-11-15 23:12:43 +000021323 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 +000021324
cristy3ed852e2009-09-05 21:47:34 +000021325else
cristy8b350f62009-11-15 23:12:43 +000021326 if test "$ac_cv_type_signed_long" = yes; then
21327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021329{ as_fn_set_status 77
21330as_fn_error "cannot compute sizeof (signed long)
21331See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021332 else
21333 ac_cv_sizeof_signed_long=0
21334 fi
21335fi
cristy8b350f62009-11-15 23:12:43 +000021336
cristy3ed852e2009-09-05 21:47:34 +000021337fi
cristy8b350f62009-11-15 23:12:43 +000021338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021339$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21340
21341
21342
21343cat >>confdefs.h <<_ACEOF
21344#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21345_ACEOF
21346
21347
21348
21349# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21350# The cast to long int works around a bug in the HP C Compiler
21351# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21352# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21353# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021355$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021356if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021357 $as_echo_n "(cached) " >&6
21358else
cristy8b350f62009-11-15 23:12:43 +000021359 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 +000021360
cristy3ed852e2009-09-05 21:47:34 +000021361else
cristy8b350f62009-11-15 23:12:43 +000021362 if test "$ac_cv_type_unsigned_long" = yes; then
21363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021365{ as_fn_set_status 77
21366as_fn_error "cannot compute sizeof (unsigned long)
21367See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021368 else
21369 ac_cv_sizeof_unsigned_long=0
21370 fi
21371fi
cristy8b350f62009-11-15 23:12:43 +000021372
cristy3ed852e2009-09-05 21:47:34 +000021373fi
cristy8b350f62009-11-15 23:12:43 +000021374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021375$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21376
21377
21378
21379cat >>confdefs.h <<_ACEOF
21380#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21381_ACEOF
21382
21383
21384
21385# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21386# 'signed long long' is not supported then the value defined is zero.
21387# The cast to long int works around a bug in the HP C Compiler
21388# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21389# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21390# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021392$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021393if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021394 $as_echo_n "(cached) " >&6
21395else
cristy8b350f62009-11-15 23:12:43 +000021396 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 +000021397
cristy3ed852e2009-09-05 21:47:34 +000021398else
cristy8b350f62009-11-15 23:12:43 +000021399 if test "$ac_cv_type_signed_long_long" = yes; then
21400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021402{ as_fn_set_status 77
21403as_fn_error "cannot compute sizeof (signed long long)
21404See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021405 else
21406 ac_cv_sizeof_signed_long_long=0
21407 fi
21408fi
cristy8b350f62009-11-15 23:12:43 +000021409
cristy3ed852e2009-09-05 21:47:34 +000021410fi
cristy8b350f62009-11-15 23:12:43 +000021411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021412$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21413
21414
21415
21416cat >>confdefs.h <<_ACEOF
21417#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21418_ACEOF
21419
21420
21421
21422# Obtain size of a 'unsigned long long' and define as
21423# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21424# supported then the value defined is zero.
21425# The cast to long int works around a bug in the HP C Compiler
21426# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21427# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21428# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021430$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021431if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021432 $as_echo_n "(cached) " >&6
21433else
cristy8b350f62009-11-15 23:12:43 +000021434 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 +000021435
cristy3ed852e2009-09-05 21:47:34 +000021436else
cristy8b350f62009-11-15 23:12:43 +000021437 if test "$ac_cv_type_unsigned_long_long" = yes; then
21438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021440{ as_fn_set_status 77
21441as_fn_error "cannot compute sizeof (unsigned long long)
21442See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021443 else
21444 ac_cv_sizeof_unsigned_long_long=0
21445 fi
21446fi
cristy8b350f62009-11-15 23:12:43 +000021447
cristy3ed852e2009-09-05 21:47:34 +000021448fi
cristy8b350f62009-11-15 23:12:43 +000021449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021450$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21451
21452
21453
21454cat >>confdefs.h <<_ACEOF
21455#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21456_ACEOF
21457
21458
21459
21460# Obtain size of off_t and define as SIZEOF_OFF_T
21461# The cast to long int works around a bug in the HP C Compiler
21462# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21463# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21464# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021466$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021467if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021468 $as_echo_n "(cached) " >&6
21469else
cristy8b350f62009-11-15 23:12:43 +000021470 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 +000021471
cristy3ed852e2009-09-05 21:47:34 +000021472else
cristy8b350f62009-11-15 23:12:43 +000021473 if test "$ac_cv_type_off_t" = yes; then
21474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021476{ as_fn_set_status 77
21477as_fn_error "cannot compute sizeof (off_t)
21478See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021479 else
21480 ac_cv_sizeof_off_t=0
21481 fi
21482fi
cristy8b350f62009-11-15 23:12:43 +000021483
cristy3ed852e2009-09-05 21:47:34 +000021484fi
cristy8b350f62009-11-15 23:12:43 +000021485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021486$as_echo "$ac_cv_sizeof_off_t" >&6; }
21487
21488
21489
21490cat >>confdefs.h <<_ACEOF
21491#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21492_ACEOF
21493
21494
21495
21496# Obtain size of size_t and define as SIZEOF_SIZE_T
21497# The cast to long int works around a bug in the HP C Compiler
21498# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21499# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21500# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021502$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021503if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021504 $as_echo_n "(cached) " >&6
21505else
cristy8b350f62009-11-15 23:12:43 +000021506 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 +000021507
cristy3ed852e2009-09-05 21:47:34 +000021508else
cristy8b350f62009-11-15 23:12:43 +000021509 if test "$ac_cv_type_size_t" = yes; then
21510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021512{ as_fn_set_status 77
21513as_fn_error "cannot compute sizeof (size_t)
21514See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021515 else
21516 ac_cv_sizeof_size_t=0
21517 fi
21518fi
cristy8b350f62009-11-15 23:12:43 +000021519
cristy3ed852e2009-09-05 21:47:34 +000021520fi
cristy8b350f62009-11-15 23:12:43 +000021521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021522$as_echo "$ac_cv_sizeof_size_t" >&6; }
21523
21524
21525
21526cat >>confdefs.h <<_ACEOF
21527#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21528_ACEOF
21529
21530
21531
21532# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21533# The cast to long int works around a bug in the HP C Compiler
21534# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21535# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21536# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021538$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021539if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021540 $as_echo_n "(cached) " >&6
21541else
cristy8b350f62009-11-15 23:12:43 +000021542 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 +000021543
cristy3ed852e2009-09-05 21:47:34 +000021544else
cristy8b350f62009-11-15 23:12:43 +000021545 if test "$ac_cv_type_unsigned_intp" = yes; then
21546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021548{ as_fn_set_status 77
21549as_fn_error "cannot compute sizeof (unsigned int*)
21550See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021551 else
21552 ac_cv_sizeof_unsigned_intp=0
21553 fi
21554fi
cristy8b350f62009-11-15 23:12:43 +000021555
cristy3ed852e2009-09-05 21:47:34 +000021556fi
cristy8b350f62009-11-15 23:12:43 +000021557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021558$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21559
21560
21561
21562cat >>confdefs.h <<_ACEOF
21563#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21564_ACEOF
21565
21566
21567
21568#
21569# Compute sized types for current CPU and compiler options.
21570#
21571
cristy8b350f62009-11-15 23:12:43 +000021572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021573$as_echo_n "checking for signed 8-bit type... " >&6; }
21574INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021576$as_echo "$INT8_T" >&6; }
21577
21578
cristy8b350f62009-11-15 23:12:43 +000021579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021580$as_echo_n "checking for unsigned 8-bit type... " >&6; }
21581UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000021582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021583$as_echo "$UINT8_T" >&6; }
21584
21585
cristy8b350f62009-11-15 23:12:43 +000021586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021587$as_echo_n "checking for signed 16-bit type... " >&6; }
21588INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000021589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021590$as_echo "$INT16_T" >&6; }
21591
21592
cristy8b350f62009-11-15 23:12:43 +000021593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021594$as_echo_n "checking for unsigned 16-bit type... " >&6; }
21595UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000021596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021597$as_echo "$UINT16_T" >&6; }
21598
21599
cristy8b350f62009-11-15 23:12:43 +000021600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021601$as_echo_n "checking for signed 32-bit type... " >&6; }
21602INT32_T='none'
21603if test $ac_cv_sizeof_signed_int -eq 4; then
21604 INT32_T='signed int'
21605elif test $ac_cv_sizeof_signed_long -eq 4; then
21606 INT32_T='signed long'
21607fi
cristy8b350f62009-11-15 23:12:43 +000021608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021609$as_echo "$INT32_T" >&6; }
21610
21611
cristy8b350f62009-11-15 23:12:43 +000021612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021613$as_echo_n "checking for unsigned 32-bit type... " >&6; }
21614UINT32_T='none'
21615if test $ac_cv_sizeof_unsigned_int -eq 4; then
21616 UINT32_T='unsigned int'
21617elif test $ac_cv_sizeof_unsigned_long -eq 4; then
21618 UINT32_T='unsigned long'
21619fi
cristy8b350f62009-11-15 23:12:43 +000021620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021621$as_echo "$UINT32_T" >&6; }
21622
21623
cristy8b350f62009-11-15 23:12:43 +000021624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021625$as_echo_n "checking for signed 64-bit type... " >&6; }
21626INT64_T='none'
21627if test $ac_cv_sizeof_signed_long -eq 8; then
21628 INT64_T='signed long'
21629elif test $ac_cv_sizeof_signed_long_long -eq 8; then
21630 INT64_T='signed long long'
21631fi
cristy8b350f62009-11-15 23:12:43 +000021632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021633$as_echo "$INT64_T" >&6; }
21634
21635
cristy8b350f62009-11-15 23:12:43 +000021636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021637$as_echo_n "checking for unsigned 64-bit type... " >&6; }
21638UINT64_T='none'
21639if test $ac_cv_sizeof_unsigned_long -eq 8; then
21640 UINT64_T='unsigned long'
21641elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
21642 UINT64_T='unsigned long long'
21643fi
cristy8b350f62009-11-15 23:12:43 +000021644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021645$as_echo "$UINT64_T" >&6; }
21646
21647
cristy8b350f62009-11-15 23:12:43 +000021648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021649$as_echo_n "checking for unsigned maximum type... " >&6; }
21650UINTMAX_T='none'
21651if test "$UINT64_T" != 'none'; then
21652 UINTMAX_T=$UINT64_T
21653elif test "$UINT32_T" != 'none'; then
21654 UINTMAX_T=$UINT32_T
21655fi
cristy8b350f62009-11-15 23:12:43 +000021656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021657$as_echo "$UINTMAX_T" >&6; }
21658
21659
cristy8b350f62009-11-15 23:12:43 +000021660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021661$as_echo_n "checking for pointer difference type... " >&6; }
21662UINTPTR_T='none'
21663if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
21664 UINTPTR_T='unsigned long'
21665elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
21666 UINTPTR_T='unsigned long long'
21667fi
cristy8b350f62009-11-15 23:12:43 +000021668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021669$as_echo "$UINTPTR_T" >&6; }
21670
21671
cristy8b350f62009-11-15 23:12:43 +000021672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000021673$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021675/* end confdefs.h. */
21676
21677int
21678main ()
21679{
21680{ const char *func = __func__; return(func != 0 ? 0 : 1); }
21681 ;
21682 return 0;
21683}
21684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021685if ac_fn_c_try_compile "$LINENO"; then :
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000021687$as_echo "yes" >&6; }
21688else
cristy8b350f62009-11-15 23:12:43 +000021689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021690$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000021692$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021694/* end confdefs.h. */
21695
21696int
21697main ()
21698{
21699{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
21700 ;
21701 return 0;
21702}
21703_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021704if ac_fn_c_try_compile "$LINENO"; then :
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000021706$as_echo "yes" >&6; }
21707
cristy8b350f62009-11-15 23:12:43 +000021708$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021709
21710else
cristy8b350f62009-11-15 23:12:43 +000021711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021712$as_echo "no" >&6; }
21713
cristy8b350f62009-11-15 23:12:43 +000021714$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021715
21716fi
cristy3ed852e2009-09-05 21:47:34 +000021717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21718fi
cristy3ed852e2009-09-05 21:47:34 +000021719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21720
21721########
21722#
21723# Check for functions
21724#
21725########
cristy3ed852e2009-09-05 21:47:34 +000021726for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000021727do :
21728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21729ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21730eval as_val=\$$as_ac_Header
21731 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021732 cat >>confdefs.h <<_ACEOF
21733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21734_ACEOF
21735
21736fi
21737
21738done
21739
cristy3ed852e2009-09-05 21:47:34 +000021740for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021741do :
21742 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21743if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021744 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021745#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021746_ACEOF
21747
21748fi
21749done
21750
cristy8b350f62009-11-15 23:12:43 +000021751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000021752$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021753if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021754 $as_echo_n "(cached) " >&6
21755else
cristy8b350f62009-11-15 23:12:43 +000021756 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021757 magick_cv_func_mmap_fileio=no
21758else
cristy8b350f62009-11-15 23:12:43 +000021759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021760/* end confdefs.h. */
21761$ac_includes_default
21762/* malloc might have been renamed as rpl_malloc. */
21763#undef malloc
21764
21765/*
21766 This test is derived from GNU Autoconf's similar macro.
21767 The purpose of this test is to verify that files may be memory
21768 mapped, and that memory mapping and file I/O are coherent.
21769
21770 The test creates a test file, memory maps the file, updates
21771 the file using the memory map, and then reads the file using
21772 file I/O to verify that the file contains the updates.
21773*/
21774
21775#include <fcntl.h>
21776#include <sys/mman.h>
21777
21778#if !STDC_HEADERS && !HAVE_STDLIB_H
21779char *malloc ();
21780#endif
21781
21782/* This mess was copied from the GNU getpagesize.h. */
21783#if !HAVE_GETPAGESIZE
21784/* Assume that all systems that can run configure have sys/param.h. */
21785# if !HAVE_SYS_PARAM_H
21786# define HAVE_SYS_PARAM_H 1
21787# endif
21788
21789# ifdef _SC_PAGESIZE
21790# define getpagesize() sysconf(_SC_PAGESIZE)
21791# else /* no _SC_PAGESIZE */
21792# if HAVE_SYS_PARAM_H
21793# include <sys/param.h>
21794# ifdef EXEC_PAGESIZE
21795# define getpagesize() EXEC_PAGESIZE
21796# else /* no EXEC_PAGESIZE */
21797# ifdef NBPG
21798# define getpagesize() NBPG * CLSIZE
21799# ifndef CLSIZE
21800# define CLSIZE 1
21801# endif /* no CLSIZE */
21802# else /* no NBPG */
21803# ifdef NBPC
21804# define getpagesize() NBPC
21805# else /* no NBPC */
21806# ifdef PAGESIZE
21807# define getpagesize() PAGESIZE
21808# endif /* PAGESIZE */
21809# endif /* no NBPC */
21810# endif /* no NBPG */
21811# endif /* no EXEC_PAGESIZE */
21812# else /* no HAVE_SYS_PARAM_H */
21813# define getpagesize() 8192 /* punt totally */
21814# endif /* no HAVE_SYS_PARAM_H */
21815# endif /* no _SC_PAGESIZE */
21816
21817#endif /* no HAVE_GETPAGESIZE */
21818
21819int
21820main ()
21821{
21822 char *data, *data2, *data3;
21823 int i, pagesize;
21824 int fd;
21825
21826 pagesize = getpagesize ();
21827
21828 /* First, make a file with some known garbage in it. */
21829 data = (char *) malloc (pagesize);
21830 if (!data)
21831 exit (1);
21832 for (i = 0; i < pagesize; ++i)
21833 *(data + i) = rand ();
21834 umask (0);
21835 fd = creat ("conftest.mmap", 0600);
21836 if (fd < 0)
21837 exit (1);
21838 if (write (fd, data, pagesize) != pagesize)
21839 exit (1);
21840 close (fd);
21841
21842 /* Mmap the file as read/write/shared and verify that we see the
21843 same garbage. */
21844 fd = open ("conftest.mmap", O_RDWR);
21845 if (fd < 0)
21846 exit (1);
21847 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
21848 if (data2 == 0)
21849 exit (1);
21850 for (i = 0; i < pagesize; ++i)
21851 if (*(data + i) != *(data2 + i))
21852 exit (1);
21853
21854 /* Finally, make sure that changes to the mapped area
21855 percolate back to the file as seen by read(). */
21856 for (i = 0; i < pagesize; ++i)
21857 *(data2 + i) = *(data2 + i) + 1;
21858 data3 = (char *) malloc (pagesize);
21859 if (!data3)
21860 exit (1);
21861 if (read (fd, data3, pagesize) != pagesize)
21862 exit (1);
21863 for (i = 0; i < pagesize; ++i)
21864 if (*(data2 + i) != *(data3 + i))
21865 exit (1);
21866 close (fd);
21867 exit (0);
21868}
21869_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021870if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021871 magick_cv_func_mmap_fileio=yes
21872else
cristy8b350f62009-11-15 23:12:43 +000021873 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000021874fi
cristy8b350f62009-11-15 23:12:43 +000021875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21876 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021877fi
21878
cristy3ed852e2009-09-05 21:47:34 +000021879fi
cristy8b350f62009-11-15 23:12:43 +000021880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000021881$as_echo "$magick_cv_func_mmap_fileio" >&6; }
21882if test $magick_cv_func_mmap_fileio = yes; then
21883
cristy8b350f62009-11-15 23:12:43 +000021884$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021885
21886fi
21887rm -f conftest.mmap
21888
cristy8b350f62009-11-15 23:12:43 +000021889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021890$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021891if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021892 $as_echo_n "(cached) " >&6
21893else
cristy8b350f62009-11-15 23:12:43 +000021894 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021895 ac_cv_func_closedir_void=yes
21896else
cristy8b350f62009-11-15 23:12:43 +000021897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021898/* end confdefs.h. */
21899$ac_includes_default
21900#include <$ac_header_dirent>
21901#ifndef __cplusplus
21902int closedir ();
21903#endif
21904
21905int
21906main ()
21907{
21908return closedir (opendir (".")) != 0;
21909 ;
21910 return 0;
21911}
21912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021913if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021914 ac_cv_func_closedir_void=no
21915else
cristy8b350f62009-11-15 23:12:43 +000021916 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000021917fi
cristy8b350f62009-11-15 23:12:43 +000021918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21919 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021920fi
21921
cristy3ed852e2009-09-05 21:47:34 +000021922fi
cristy8b350f62009-11-15 23:12:43 +000021923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021924$as_echo "$ac_cv_func_closedir_void" >&6; }
21925if test $ac_cv_func_closedir_void = yes; then
21926
cristy8b350f62009-11-15 23:12:43 +000021927$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021928
21929fi
21930
cristycd4c5312009-11-22 01:19:08 +000021931
21932
21933
21934 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000021935do :
21936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000021937ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21938"
cristy8b350f62009-11-15 23:12:43 +000021939eval as_val=\$$as_ac_Header
21940 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021941 cat >>confdefs.h <<_ACEOF
21942#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21943_ACEOF
21944
21945fi
21946
21947done
21948
cristycd4c5312009-11-22 01:19:08 +000021949
21950
21951
21952
21953
21954
21955
cristy3ed852e2009-09-05 21:47:34 +000021956for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021957do :
21958 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21959if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021960 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021961#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021962_ACEOF
21963
21964fi
21965done
21966
cristy8b350f62009-11-15 23:12:43 +000021967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000021968$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021969if test "${ac_cv_func_mmap_fixed_mapped+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_mmap_fixed_mapped=no
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
21978/* malloc might have been renamed as rpl_malloc. */
21979#undef malloc
21980
21981/* Thanks to Mike Haertel and Jim Avera for this test.
21982 Here is a matrix of mmap possibilities:
21983 mmap private not fixed
21984 mmap private fixed at somewhere currently unmapped
21985 mmap private fixed at somewhere already mapped
21986 mmap shared not fixed
21987 mmap shared fixed at somewhere currently unmapped
21988 mmap shared fixed at somewhere already mapped
21989 For private mappings, we should verify that changes cannot be read()
21990 back from the file, nor mmap's back from the file at a different
21991 address. (There have been systems where private was not correctly
21992 implemented like the infamous i386 svr4.0, and systems where the
21993 VM page cache was not coherent with the file system buffer cache
21994 like early versions of FreeBSD and possibly contemporary NetBSD.)
21995 For shared mappings, we should conversely verify that changes get
21996 propagated back to all the places they're supposed to be.
21997
21998 Grep wants private fixed already mapped.
21999 The main things grep needs to know about mmap are:
22000 * does it exist and is it safe to write into the mmap'd area
22001 * how to use it (BSD variants) */
22002
22003#include <fcntl.h>
22004#include <sys/mman.h>
22005
22006#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22007char *malloc ();
22008#endif
22009
22010/* This mess was copied from the GNU getpagesize.h. */
22011#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022012# ifdef _SC_PAGESIZE
22013# define getpagesize() sysconf(_SC_PAGESIZE)
22014# else /* no _SC_PAGESIZE */
22015# ifdef HAVE_SYS_PARAM_H
22016# include <sys/param.h>
22017# ifdef EXEC_PAGESIZE
22018# define getpagesize() EXEC_PAGESIZE
22019# else /* no EXEC_PAGESIZE */
22020# ifdef NBPG
22021# define getpagesize() NBPG * CLSIZE
22022# ifndef CLSIZE
22023# define CLSIZE 1
22024# endif /* no CLSIZE */
22025# else /* no NBPG */
22026# ifdef NBPC
22027# define getpagesize() NBPC
22028# else /* no NBPC */
22029# ifdef PAGESIZE
22030# define getpagesize() PAGESIZE
22031# endif /* PAGESIZE */
22032# endif /* no NBPC */
22033# endif /* no NBPG */
22034# endif /* no EXEC_PAGESIZE */
22035# else /* no HAVE_SYS_PARAM_H */
22036# define getpagesize() 8192 /* punt totally */
22037# endif /* no HAVE_SYS_PARAM_H */
22038# endif /* no _SC_PAGESIZE */
22039
22040#endif /* no HAVE_GETPAGESIZE */
22041
22042int
22043main ()
22044{
22045 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022046 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022047 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022048 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022049
22050 pagesize = getpagesize ();
22051
22052 /* First, make a file with some known garbage in it. */
22053 data = (char *) malloc (pagesize);
22054 if (!data)
22055 return 1;
22056 for (i = 0; i < pagesize; ++i)
22057 *(data + i) = rand ();
22058 umask (0);
22059 fd = creat ("conftest.mmap", 0600);
22060 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022061 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022062 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022063 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022064 close (fd);
22065
cristycd4c5312009-11-22 01:19:08 +000022066 /* Next, check that the tail of a page is zero-filled. File must have
22067 non-zero length, otherwise we risk SIGBUS for entire page. */
22068 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22069 if (fd2 < 0)
22070 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022071 cdata2 = "";
22072 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022073 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022074 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022075 if (data2 == MAP_FAILED)
22076 return 6;
22077 for (i = 0; i < pagesize; ++i)
22078 if (*(data2 + i))
22079 return 7;
22080 close (fd2);
22081 if (munmap (data2, pagesize))
22082 return 8;
22083
cristy3ed852e2009-09-05 21:47:34 +000022084 /* Next, try to mmap the file at a fixed address which already has
22085 something else allocated at it. If we can, also make sure that
22086 we see the same garbage. */
22087 fd = open ("conftest.mmap", O_RDWR);
22088 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022089 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022090 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22091 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022092 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022093 for (i = 0; i < pagesize; ++i)
22094 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022095 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022096
22097 /* Finally, make sure that changes to the mapped area do not
22098 percolate back to the file as seen by read(). (This is a bug on
22099 some variants of i386 svr4.0.) */
22100 for (i = 0; i < pagesize; ++i)
22101 *(data2 + i) = *(data2 + i) + 1;
22102 data3 = (char *) malloc (pagesize);
22103 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022104 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022105 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022106 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022107 for (i = 0; i < pagesize; ++i)
22108 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022109 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022110 close (fd);
22111 return 0;
22112}
22113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022114if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022115 ac_cv_func_mmap_fixed_mapped=yes
22116else
cristy8b350f62009-11-15 23:12:43 +000022117 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022118fi
cristy8b350f62009-11-15 23:12:43 +000022119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22120 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022121fi
22122
cristy3ed852e2009-09-05 21:47:34 +000022123fi
cristy8b350f62009-11-15 23:12:43 +000022124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022125$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22126if test $ac_cv_func_mmap_fixed_mapped = yes; then
22127
cristy8b350f62009-11-15 23:12:43 +000022128$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022129
22130fi
cristycd4c5312009-11-22 01:19:08 +000022131rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022132
cristy3ed852e2009-09-05 21:47:34 +000022133for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022134do :
22135 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22136if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022137 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022138#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022139_ACEOF
22140
22141fi
22142
22143done
22144
cristy3ed852e2009-09-05 21:47:34 +000022145for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022146do :
22147 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22148ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22149eval as_val=\$$as_ac_var
22150 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022151 cat >>confdefs.h <<_ACEOF
22152#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22153_ACEOF
22154
22155fi
22156done
22157
22158if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022160$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022161if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022162 $as_echo_n "(cached) " >&6
22163else
cristy8b350f62009-11-15 23:12:43 +000022164 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022165 ac_cv_func_fork_works=cross
22166else
cristy8b350f62009-11-15 23:12:43 +000022167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022168/* end confdefs.h. */
22169$ac_includes_default
22170int
22171main ()
22172{
22173
22174 /* By Ruediger Kuhlmann. */
22175 return fork () < 0;
22176
22177 ;
22178 return 0;
22179}
22180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022181if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022182 ac_cv_func_fork_works=yes
22183else
cristy8b350f62009-11-15 23:12:43 +000022184 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022185fi
cristy8b350f62009-11-15 23:12:43 +000022186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22187 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022188fi
22189
cristy3ed852e2009-09-05 21:47:34 +000022190fi
cristy8b350f62009-11-15 23:12:43 +000022191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022192$as_echo "$ac_cv_func_fork_works" >&6; }
22193
22194else
22195 ac_cv_func_fork_works=$ac_cv_func_fork
22196fi
22197if test "x$ac_cv_func_fork_works" = xcross; then
22198 case $host in
22199 *-*-amigaos* | *-*-msdosdjgpp*)
22200 # Override, as these systems have only a dummy fork() stub
22201 ac_cv_func_fork_works=no
22202 ;;
22203 *)
22204 ac_cv_func_fork_works=yes
22205 ;;
22206 esac
cristy8b350f62009-11-15 23:12:43 +000022207 { $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 +000022208$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22209fi
22210ac_cv_func_vfork_works=$ac_cv_func_vfork
22211if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022213$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022214if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022215 $as_echo_n "(cached) " >&6
22216else
cristy8b350f62009-11-15 23:12:43 +000022217 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022218 ac_cv_func_vfork_works=cross
22219else
cristy8b350f62009-11-15 23:12:43 +000022220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022221/* end confdefs.h. */
22222/* Thanks to Paul Eggert for this test. */
22223$ac_includes_default
22224#include <sys/wait.h>
22225#ifdef HAVE_VFORK_H
22226# include <vfork.h>
22227#endif
22228/* On some sparc systems, changes by the child to local and incoming
22229 argument registers are propagated back to the parent. The compiler
22230 is told about this with #include <vfork.h>, but some compilers
22231 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22232 static variable whose address is put into a register that is
22233 clobbered by the vfork. */
22234static void
22235#ifdef __cplusplus
22236sparc_address_test (int arg)
22237# else
22238sparc_address_test (arg) int arg;
22239#endif
22240{
22241 static pid_t child;
22242 if (!child) {
22243 child = vfork ();
22244 if (child < 0) {
22245 perror ("vfork");
22246 _exit(2);
22247 }
22248 if (!child) {
22249 arg = getpid();
22250 write(-1, "", 0);
22251 _exit (arg);
22252 }
22253 }
22254}
22255
22256int
22257main ()
22258{
22259 pid_t parent = getpid ();
22260 pid_t child;
22261
22262 sparc_address_test (0);
22263
22264 child = vfork ();
22265
22266 if (child == 0) {
22267 /* Here is another test for sparc vfork register problems. This
22268 test uses lots of local variables, at least as many local
22269 variables as main has allocated so far including compiler
22270 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22271 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22272 reuse the register of parent for one of the local variables,
22273 since it will think that parent can't possibly be used any more
22274 in this routine. Assigning to the local variable will thus
22275 munge parent in the parent process. */
22276 pid_t
22277 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22278 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22279 /* Convince the compiler that p..p7 are live; otherwise, it might
22280 use the same hardware register for all 8 local variables. */
22281 if (p != p1 || p != p2 || p != p3 || p != p4
22282 || p != p5 || p != p6 || p != p7)
22283 _exit(1);
22284
22285 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22286 from child file descriptors. If the child closes a descriptor
22287 before it execs or exits, this munges the parent's descriptor
22288 as well. Test for this by closing stdout in the child. */
22289 _exit(close(fileno(stdout)) != 0);
22290 } else {
22291 int status;
22292 struct stat st;
22293
22294 while (wait(&status) != child)
22295 ;
22296 return (
22297 /* Was there some problem with vforking? */
22298 child < 0
22299
22300 /* Did the child fail? (This shouldn't happen.) */
22301 || status
22302
22303 /* Did the vfork/compiler bug occur? */
22304 || parent != getpid()
22305
22306 /* Did the file descriptor bug occur? */
22307 || fstat(fileno(stdout), &st) != 0
22308 );
22309 }
22310}
22311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022312if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022313 ac_cv_func_vfork_works=yes
22314else
cristy8b350f62009-11-15 23:12:43 +000022315 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022316fi
cristy8b350f62009-11-15 23:12:43 +000022317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22318 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022319fi
22320
cristy3ed852e2009-09-05 21:47:34 +000022321fi
cristy8b350f62009-11-15 23:12:43 +000022322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022323$as_echo "$ac_cv_func_vfork_works" >&6; }
22324
22325fi;
22326if test "x$ac_cv_func_fork_works" = xcross; then
22327 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022328 { $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 +000022329$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22330fi
22331
22332if test "x$ac_cv_func_vfork_works" = xyes; then
22333
cristy8b350f62009-11-15 23:12:43 +000022334$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022335
22336else
22337
cristy8b350f62009-11-15 23:12:43 +000022338$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022339
22340fi
22341if test "x$ac_cv_func_fork_works" = xyes; then
22342
cristy8b350f62009-11-15 23:12:43 +000022343$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022344
22345fi
22346
cristy8b350f62009-11-15 23:12:43 +000022347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022348$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022349if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022350 $as_echo_n "(cached) " >&6
22351else
cristy8b350f62009-11-15 23:12:43 +000022352 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022353 ac_cv_func_memcmp_working=no
22354else
cristy8b350f62009-11-15 23:12:43 +000022355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022356/* end confdefs.h. */
22357$ac_includes_default
22358int
22359main ()
22360{
22361
22362 /* Some versions of memcmp are not 8-bit clean. */
22363 char c0 = '\100', c1 = '\200', c2 = '\201';
22364 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22365 return 1;
22366
22367 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22368 or more and with at least one buffer not starting on a 4-byte boundary.
22369 William Lewis provided this test program. */
22370 {
22371 char foo[21];
22372 char bar[21];
22373 int i;
22374 for (i = 0; i < 4; i++)
22375 {
22376 char *a = foo + i;
22377 char *b = bar + i;
22378 strcpy (a, "--------01111111");
22379 strcpy (b, "--------10000000");
22380 if (memcmp (a, b, 16) >= 0)
22381 return 1;
22382 }
22383 return 0;
22384 }
22385
22386 ;
22387 return 0;
22388}
22389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022390if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022391 ac_cv_func_memcmp_working=yes
22392else
cristy8b350f62009-11-15 23:12:43 +000022393 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022394fi
cristy8b350f62009-11-15 23:12:43 +000022395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22396 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022397fi
22398
cristy3ed852e2009-09-05 21:47:34 +000022399fi
cristy8b350f62009-11-15 23:12:43 +000022400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022401$as_echo "$ac_cv_func_memcmp_working" >&6; }
22402test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22403 *" memcmp.$ac_objext "* ) ;;
22404 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22405 ;;
22406esac
22407
22408
cristy3ed852e2009-09-05 21:47:34 +000022409for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022410do :
22411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22412ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22413eval as_val=\$$as_ac_Header
22414 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022415 cat >>confdefs.h <<_ACEOF
22416#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22417_ACEOF
22418
22419fi
22420
22421done
22422
cristy8b350f62009-11-15 23:12:43 +000022423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022424$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022425if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022426 $as_echo_n "(cached) " >&6
22427else
22428 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22429 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22430 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022432/* end confdefs.h. */
22433$ac_includes_default
22434#ifdef HAVE_SYS_SELECT_H
22435# include <sys/select.h>
22436#endif
22437#ifdef HAVE_SYS_SOCKET_H
22438# include <sys/socket.h>
22439#endif
22440
22441int
22442main ()
22443{
22444extern int select ($ac_arg1,
22445 $ac_arg234, $ac_arg234, $ac_arg234,
22446 $ac_arg5);
22447 ;
22448 return 0;
22449}
22450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022451if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022452 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022453fi
cristy3ed852e2009-09-05 21:47:34 +000022454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22455 done
22456 done
22457done
22458# Provide a safe default value.
22459: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22460
22461fi
cristy8b350f62009-11-15 23:12:43 +000022462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022463$as_echo "$ac_cv_func_select_args" >&6; }
22464ac_save_IFS=$IFS; IFS=','
22465set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22466IFS=$ac_save_IFS
22467shift
22468
22469cat >>confdefs.h <<_ACEOF
22470#define SELECT_TYPE_ARG1 $1
22471_ACEOF
22472
22473
22474cat >>confdefs.h <<_ACEOF
22475#define SELECT_TYPE_ARG234 ($2)
22476_ACEOF
22477
22478
22479cat >>confdefs.h <<_ACEOF
22480#define SELECT_TYPE_ARG5 ($3)
22481_ACEOF
22482
22483rm -f conftest*
22484
cristy8b350f62009-11-15 23:12:43 +000022485if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022486 $as_echo_n "(cached) " >&6
22487else
22488 ac_cv_func_setvbuf_reversed=no
22489fi
22490
22491
cristy8b350f62009-11-15 23:12:43 +000022492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022493$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022494if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022495 $as_echo_n "(cached) " >&6
22496else
cristy8b350f62009-11-15 23:12:43 +000022497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022498/* end confdefs.h. */
22499#include <sys/types.h>
22500#include <signal.h>
22501
22502int
22503main ()
22504{
22505return *(signal (0, 0)) (0) == 1;
22506 ;
22507 return 0;
22508}
22509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022510if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022511 ac_cv_type_signal=int
22512else
cristy8b350f62009-11-15 23:12:43 +000022513 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022514fi
cristy3ed852e2009-09-05 21:47:34 +000022515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22516fi
cristy8b350f62009-11-15 23:12:43 +000022517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022518$as_echo "$ac_cv_type_signal" >&6; }
22519
22520cat >>confdefs.h <<_ACEOF
22521#define RETSIGTYPE $ac_cv_type_signal
22522_ACEOF
22523
22524
cristy8b350f62009-11-15 23:12:43 +000022525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022526$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022527if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022528 $as_echo_n "(cached) " >&6
22529else
cristy8b350f62009-11-15 23:12:43 +000022530 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022531 ac_cv_func_strtod=no
22532else
cristy8b350f62009-11-15 23:12:43 +000022533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022534/* end confdefs.h. */
22535
22536$ac_includes_default
22537#ifndef strtod
22538double strtod ();
22539#endif
22540int
22541main()
22542{
22543 {
22544 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22545 char *string = " +69";
22546 char *term;
22547 double value;
22548 value = strtod (string, &term);
22549 if (value != 69 || term != (string + 4))
22550 return 1;
22551 }
22552
22553 {
22554 /* Under Solaris 2.4, strtod returns the wrong value for the
22555 terminating character under some conditions. */
22556 char *string = "NaN";
22557 char *term;
22558 strtod (string, &term);
22559 if (term != string && *(term - 1) == 0)
22560 return 1;
22561 }
22562 return 0;
22563}
22564
22565_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022566if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022567 ac_cv_func_strtod=yes
22568else
cristy8b350f62009-11-15 23:12:43 +000022569 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022570fi
cristy8b350f62009-11-15 23:12:43 +000022571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22572 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022573fi
22574
cristy3ed852e2009-09-05 21:47:34 +000022575fi
cristy8b350f62009-11-15 23:12:43 +000022576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022577$as_echo "$ac_cv_func_strtod" >&6; }
22578if test $ac_cv_func_strtod = no; then
22579 case " $LIBOBJS " in
22580 *" strtod.$ac_objext "* ) ;;
22581 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22582 ;;
22583esac
22584
cristy8b350f62009-11-15 23:12:43 +000022585ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22586if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022587
cristy3ed852e2009-09-05 21:47:34 +000022588fi
22589
cristy3ed852e2009-09-05 21:47:34 +000022590if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000022591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022592$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022593if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022594 $as_echo_n "(cached) " >&6
22595else
22596 ac_check_lib_save_LIBS=$LIBS
22597LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022599/* end confdefs.h. */
22600
22601/* Override any GCC internal prototype to avoid an error.
22602 Use char because int might match the return type of a GCC
22603 builtin and then its argument prototype would still apply. */
22604#ifdef __cplusplus
22605extern "C"
22606#endif
22607char pow ();
22608int
22609main ()
22610{
22611return pow ();
22612 ;
22613 return 0;
22614}
22615_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022616if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022617 ac_cv_lib_m_pow=yes
22618else
cristy8b350f62009-11-15 23:12:43 +000022619 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000022620fi
cristy8b350f62009-11-15 23:12:43 +000022621rm -f core conftest.err conftest.$ac_objext \
22622 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022623LIBS=$ac_check_lib_save_LIBS
22624fi
cristy8b350f62009-11-15 23:12:43 +000022625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022626$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022627if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022628 POW_LIB=-lm
22629else
cristy8b350f62009-11-15 23:12:43 +000022630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022631$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
22632fi
22633
22634fi
22635
22636fi
22637
cristy3ed852e2009-09-05 21:47:34 +000022638for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000022639do :
22640 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
22641if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022642 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022643#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000022644_ACEOF
22645
cristy8b350f62009-11-15 23:12:43 +000022646ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
22647if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022648
cristy8b350f62009-11-15 23:12:43 +000022649$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022650
22651fi
22652
22653fi
22654done
22655
22656
22657
cristy161b9262010-03-20 19:34:32 +000022658#
22659# Find math library
22660#
22661MATH_LIBS=''
22662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
22663$as_echo_n "checking for sqrt in -lm... " >&6; }
22664if test "${ac_cv_lib_m_sqrt+set}" = set; then :
22665 $as_echo_n "(cached) " >&6
22666else
22667 ac_check_lib_save_LIBS=$LIBS
22668LIBS="-lm $LIBS"
22669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22670/* end confdefs.h. */
22671
22672/* Override any GCC internal prototype to avoid an error.
22673 Use char because int might match the return type of a GCC
22674 builtin and then its argument prototype would still apply. */
22675#ifdef __cplusplus
22676extern "C"
22677#endif
22678char sqrt ();
22679int
22680main ()
22681{
22682return sqrt ();
22683 ;
22684 return 0;
22685}
22686_ACEOF
22687if ac_fn_c_try_link "$LINENO"; then :
22688 ac_cv_lib_m_sqrt=yes
22689else
22690 ac_cv_lib_m_sqrt=no
22691fi
22692rm -f core conftest.err conftest.$ac_objext \
22693 conftest$ac_exeext conftest.$ac_ext
22694LIBS=$ac_check_lib_save_LIBS
22695fi
22696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
22697$as_echo "$ac_cv_lib_m_sqrt" >&6; }
22698if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
22699 MATH_LIBS="-lm"
22700fi
22701
22702LIBS="$MATH_LIBS $LIBS"
22703
22704
cristy56ed31c2010-03-22 00:46:21 +000022705for ac_func in _exit atexit cimag clock directio execvp fchmod floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 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 utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000022706do :
22707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22708ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22709eval as_val=\$$as_ac_var
22710 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022711 cat >>confdefs.h <<_ACEOF
22712#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22713_ACEOF
22714
22715fi
22716done
22717
22718
cristye43a45e2009-09-28 14:49:00 +000022719#
22720# Check for clock_gettime().
22721#
cristy8b350f62009-11-15 23:12:43 +000022722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000022723$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022724if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000022725 $as_echo_n "(cached) " >&6
22726else
22727 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000022729/* end confdefs.h. */
22730
22731/* Override any GCC internal prototype to avoid an error.
22732 Use char because int might match the return type of a GCC
22733 builtin and then its argument prototype would still apply. */
22734#ifdef __cplusplus
22735extern "C"
22736#endif
22737char clock_gettime ();
22738int
22739main ()
22740{
22741return clock_gettime ();
22742 ;
22743 return 0;
22744}
22745_ACEOF
22746for ac_lib in '' rt; do
22747 if test -z "$ac_lib"; then
22748 ac_res="none required"
22749 else
22750 ac_res=-l$ac_lib
22751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22752 fi
cristy8b350f62009-11-15 23:12:43 +000022753 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000022754 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000022755fi
cristy8b350f62009-11-15 23:12:43 +000022756rm -f core conftest.err conftest.$ac_objext \
22757 conftest$ac_exeext
22758 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000022759 break
22760fi
22761done
cristy8b350f62009-11-15 23:12:43 +000022762if test "${ac_cv_search_clock_gettime+set}" = set; then :
22763
cristye43a45e2009-09-28 14:49:00 +000022764else
22765 ac_cv_search_clock_gettime=no
22766fi
22767rm conftest.$ac_ext
22768LIBS=$ac_func_search_save_LIBS
22769fi
cristy8b350f62009-11-15 23:12:43 +000022770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000022771$as_echo "$ac_cv_search_clock_gettime" >&6; }
22772ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000022773if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000022774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22775
22776
cristy8b350f62009-11-15 23:12:43 +000022777$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000022778
cristy8b350f62009-11-15 23:12:43 +000022779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000022780$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000022782/* end confdefs.h. */
22783#include <time.h>
22784int
22785main ()
22786{
22787clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000022788 ;
22789 return 0;
22790}
22791_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022792if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000022793
cristy8b350f62009-11-15 23:12:43 +000022794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000022795$as_echo "yes" >&6; }
22796
cristy8b350f62009-11-15 23:12:43 +000022797$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000022798
22799
22800else
cristy8b350f62009-11-15 23:12:43 +000022801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000022802$as_echo "no" >&6; }
22803
22804fi
cristye43a45e2009-09-28 14:49:00 +000022805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22806
22807else
22808
cristy8b350f62009-11-15 23:12:43 +000022809 for ac_func in gettimeofday ftime
22810do :
22811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22812ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22813eval as_val=\$$as_ac_var
22814 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000022815 cat >>confdefs.h <<_ACEOF
22816#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22817_ACEOF
22818 break
22819fi
22820done
22821
22822
22823
22824fi
22825
22826
cristy3ed852e2009-09-05 21:47:34 +000022827########
22828#
22829# Check for function prototypes
22830#
22831########
22832
cristy8b350f62009-11-15 23:12:43 +000022833ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000022834#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000022835"
22836if test "x$ac_cv_have_decl_pread" = x""yes; then :
22837 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022838else
cristy8b350f62009-11-15 23:12:43 +000022839 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022840fi
22841
cristy3ed852e2009-09-05 21:47:34 +000022842cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022843#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022844_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022845ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000022846#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000022847"
22848if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
22849 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022850else
cristy8b350f62009-11-15 23:12:43 +000022851 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022852fi
22853
cristy3ed852e2009-09-05 21:47:34 +000022854cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022855#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022856_ACEOF
22857
22858
cristy8b350f62009-11-15 23:12:43 +000022859ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000022860#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000022861"
22862if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
22863 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022864else
cristy8b350f62009-11-15 23:12:43 +000022865 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022866fi
22867
cristy3ed852e2009-09-05 21:47:34 +000022868cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022869#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022870_ACEOF
22871
22872
cristy8b350f62009-11-15 23:12:43 +000022873ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000022874#include <stdio.h>
22875#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000022876"
22877if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
22878 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022879else
cristy8b350f62009-11-15 23:12:43 +000022880 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022881fi
22882
cristy3ed852e2009-09-05 21:47:34 +000022883cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022884#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022885_ACEOF
22886
22887
cristy3ed852e2009-09-05 21:47:34 +000022888########
22889#
22890# C++ Support Tests (For Magick++)
22891#
22892########
22893have_magick_plus_plus='no'
22894if test "$with_magick_plus_plus" = 'yes'; then
22895 OLIBS="$LIBS"
22896 LIBS=''
22897 ac_ext=cpp
22898ac_cpp='$CXXCPP $CPPFLAGS'
22899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22902
22903
22904 # Full set of headers used...
22905 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
22906 # functional iomanip iosfwd iostream iterator list string strstream utility
22907 ac_ext=cpp
22908ac_cpp='$CXXCPP $CPPFLAGS'
22909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22912
22913 ac_ext=cpp
22914ac_cpp='$CXXCPP $CPPFLAGS'
22915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22918if test -z "$CXX"; then
22919 if test -n "$CCC"; then
22920 CXX=$CCC
22921 else
22922 if test -n "$ac_tool_prefix"; then
22923 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22924 do
22925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22926set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022928$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022929if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022930 $as_echo_n "(cached) " >&6
22931else
22932 if test -n "$CXX"; then
22933 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22934else
22935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22936for as_dir in $PATH
22937do
22938 IFS=$as_save_IFS
22939 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22942 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022944 break 2
22945 fi
22946done
cristy8b350f62009-11-15 23:12:43 +000022947 done
cristy3ed852e2009-09-05 21:47:34 +000022948IFS=$as_save_IFS
22949
22950fi
22951fi
22952CXX=$ac_cv_prog_CXX
22953if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022955$as_echo "$CXX" >&6; }
22956else
cristy8b350f62009-11-15 23:12:43 +000022957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022958$as_echo "no" >&6; }
22959fi
22960
22961
22962 test -n "$CXX" && break
22963 done
22964fi
22965if test -z "$CXX"; then
22966 ac_ct_CXX=$CXX
22967 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22968do
22969 # Extract the first word of "$ac_prog", so it can be a program name with args.
22970set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022972$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022973if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022974 $as_echo_n "(cached) " >&6
22975else
22976 if test -n "$ac_ct_CXX"; then
22977 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22978else
22979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22980for as_dir in $PATH
22981do
22982 IFS=$as_save_IFS
22983 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022984 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22986 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022988 break 2
22989 fi
22990done
cristy8b350f62009-11-15 23:12:43 +000022991 done
cristy3ed852e2009-09-05 21:47:34 +000022992IFS=$as_save_IFS
22993
22994fi
22995fi
22996ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22997if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022999$as_echo "$ac_ct_CXX" >&6; }
23000else
cristy8b350f62009-11-15 23:12:43 +000023001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023002$as_echo "no" >&6; }
23003fi
23004
23005
23006 test -n "$ac_ct_CXX" && break
23007done
23008
23009 if test "x$ac_ct_CXX" = x; then
23010 CXX="g++"
23011 else
23012 case $cross_compiling:$ac_tool_warned in
23013yes:)
cristy8b350f62009-11-15 23:12:43 +000023014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23016ac_tool_warned=yes ;;
23017esac
23018 CXX=$ac_ct_CXX
23019 fi
23020fi
23021
23022 fi
23023fi
23024# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023025$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023026set X $ac_compile
23027ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023028for ac_option in --version -v -V -qversion; do
23029 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023030case "(($ac_try" in
23031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032 *) ac_try_echo=$ac_try;;
23033esac
cristy8b350f62009-11-15 23:12:43 +000023034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23035$as_echo "$ac_try_echo"; } >&5
23036 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023037 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023038 if test -s conftest.err; then
23039 sed '10a\
23040... rest of stderr output deleted ...
23041 10q' conftest.err >conftest.er1
23042 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023043 fi
cristycd4c5312009-11-22 01:19:08 +000023044 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23046 test $ac_status = 0; }
23047done
cristy3ed852e2009-09-05 21:47:34 +000023048
cristy8b350f62009-11-15 23:12:43 +000023049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023050$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023051if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023052 $as_echo_n "(cached) " >&6
23053else
cristy8b350f62009-11-15 23:12:43 +000023054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023055/* end confdefs.h. */
23056
23057int
23058main ()
23059{
23060#ifndef __GNUC__
23061 choke me
23062#endif
23063
23064 ;
23065 return 0;
23066}
23067_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023068if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023069 ac_compiler_gnu=yes
23070else
cristy8b350f62009-11-15 23:12:43 +000023071 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023072fi
cristy3ed852e2009-09-05 21:47:34 +000023073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23074ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23075
23076fi
cristy8b350f62009-11-15 23:12:43 +000023077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023078$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23079if test $ac_compiler_gnu = yes; then
23080 GXX=yes
23081else
23082 GXX=
23083fi
23084ac_test_CXXFLAGS=${CXXFLAGS+set}
23085ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023087$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023088if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023089 $as_echo_n "(cached) " >&6
23090else
23091 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23092 ac_cxx_werror_flag=yes
23093 ac_cv_prog_cxx_g=no
23094 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023096/* end confdefs.h. */
23097
23098int
23099main ()
23100{
23101
23102 ;
23103 return 0;
23104}
23105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023106if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023107 ac_cv_prog_cxx_g=yes
23108else
cristy8b350f62009-11-15 23:12:43 +000023109 CXXFLAGS=""
23110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023111/* end confdefs.h. */
23112
23113int
23114main ()
23115{
23116
23117 ;
23118 return 0;
23119}
23120_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023121if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023122
cristy8b350f62009-11-15 23:12:43 +000023123else
23124 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023125 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023127/* end confdefs.h. */
23128
23129int
23130main ()
23131{
23132
23133 ;
23134 return 0;
23135}
23136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023137if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023138 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023139fi
cristy3ed852e2009-09-05 21:47:34 +000023140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23141fi
cristy3ed852e2009-09-05 21:47:34 +000023142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23143fi
cristy3ed852e2009-09-05 21:47:34 +000023144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23145 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23146fi
cristy8b350f62009-11-15 23:12:43 +000023147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023148$as_echo "$ac_cv_prog_cxx_g" >&6; }
23149if test "$ac_test_CXXFLAGS" = set; then
23150 CXXFLAGS=$ac_save_CXXFLAGS
23151elif test $ac_cv_prog_cxx_g = yes; then
23152 if test "$GXX" = yes; then
23153 CXXFLAGS="-g -O2"
23154 else
23155 CXXFLAGS="-g"
23156 fi
23157else
23158 if test "$GXX" = yes; then
23159 CXXFLAGS="-O2"
23160 else
23161 CXXFLAGS=
23162 fi
23163fi
23164ac_ext=cpp
23165ac_cpp='$CXXCPP $CPPFLAGS'
23166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23169
23170depcc="$CXX" am_compiler_list=
23171
cristy8b350f62009-11-15 23:12:43 +000023172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023173$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023174if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023175 $as_echo_n "(cached) " >&6
23176else
23177 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23178 # We make a subdir and do the tests there. Otherwise we can end up
23179 # making bogus files that we don't know about and never remove. For
23180 # instance it was reported that on HP-UX the gcc test will end up
23181 # making a dummy file named `D' -- because `-MD' means `put the output
23182 # in D'.
23183 mkdir conftest.dir
23184 # Copy depcomp to subdir because otherwise we won't find it if we're
23185 # using a relative directory.
23186 cp "$am_depcomp" conftest.dir
23187 cd conftest.dir
23188 # We will build objects and dependencies in a subdirectory because
23189 # it helps to detect inapplicable dependency modes. For instance
23190 # both Tru64's cc and ICC support -MD to output dependencies as a
23191 # side effect of compilation, but ICC will put the dependencies in
23192 # the current directory while Tru64 will put them in the object
23193 # directory.
23194 mkdir sub
23195
23196 am_cv_CXX_dependencies_compiler_type=none
23197 if test "$am_compiler_list" = ""; then
23198 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23199 fi
23200 am__universal=false
23201 case " $depcc " in #(
23202 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23203 esac
23204
23205 for depmode in $am_compiler_list; do
23206 # Setup a source with many dependencies, because some compilers
23207 # like to wrap large dependency lists on column 80 (with \), and
23208 # we should not choose a depcomp mode which is confused by this.
23209 #
23210 # We need to recreate these files for each test, as the compiler may
23211 # overwrite some of them when testing with obscure command lines.
23212 # This happens at least with the AIX C compiler.
23213 : > sub/conftest.c
23214 for i in 1 2 3 4 5 6; do
23215 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23216 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23217 # Solaris 8's {/usr,}/bin/sh.
23218 touch sub/conftst$i.h
23219 done
23220 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23221
23222 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23223 # mode. It turns out that the SunPro C++ compiler does not properly
23224 # handle `-M -o', and we need to detect this. Also, some Intel
23225 # versions had trouble with output in subdirs
23226 am__obj=sub/conftest.${OBJEXT-o}
23227 am__minus_obj="-o $am__obj"
23228 case $depmode in
23229 gcc)
23230 # This depmode causes a compiler race in universal mode.
23231 test "$am__universal" = false || continue
23232 ;;
23233 nosideeffect)
23234 # after this tag, mechanisms are not by side-effect, so they'll
23235 # only be used when explicitly requested
23236 if test "x$enable_dependency_tracking" = xyes; then
23237 continue
23238 else
23239 break
23240 fi
23241 ;;
23242 msvisualcpp | msvcmsys)
23243 # This compiler won't grok `-c -o', but also, the minuso test has
23244 # not run yet. These depmodes are late enough in the game, and
23245 # so weak that their functioning should not be impacted.
23246 am__obj=conftest.${OBJEXT-o}
23247 am__minus_obj=
23248 ;;
23249 none) break ;;
23250 esac
23251 if depmode=$depmode \
23252 source=sub/conftest.c object=$am__obj \
23253 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23254 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23255 >/dev/null 2>conftest.err &&
23256 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23257 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23258 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23259 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23260 # icc doesn't choke on unknown options, it will just issue warnings
23261 # or remarks (even with -Werror). So we grep stderr for any message
23262 # that says an option was ignored or not supported.
23263 # When given -MP, icc 7.0 and 7.1 complain thusly:
23264 # icc: Command line warning: ignoring option '-M'; no argument required
23265 # The diagnosis changed in icc 8.0:
23266 # icc: Command line remark: option '-MP' not supported
23267 if (grep 'ignoring option' conftest.err ||
23268 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23269 am_cv_CXX_dependencies_compiler_type=$depmode
23270 break
23271 fi
23272 fi
23273 done
23274
23275 cd ..
23276 rm -rf conftest.dir
23277else
23278 am_cv_CXX_dependencies_compiler_type=none
23279fi
23280
23281fi
cristy8b350f62009-11-15 23:12:43 +000023282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023283$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23284CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23285
23286 if
23287 test "x$enable_dependency_tracking" != xno \
23288 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23289 am__fastdepCXX_TRUE=
23290 am__fastdepCXX_FALSE='#'
23291else
23292 am__fastdepCXX_TRUE='#'
23293 am__fastdepCXX_FALSE=
23294fi
23295
23296
cristy8b350f62009-11-15 23:12:43 +000023297 { $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 +000023298$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023299if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023300 $as_echo_n "(cached) " >&6
23301else
23302
23303 ac_ext=cpp
23304ac_cpp='$CXXCPP $CPPFLAGS'
23305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23308
cristy8b350f62009-11-15 23:12:43 +000023309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023310/* end confdefs.h. */
23311
23312int f(int x){return 1;}
23313int f(char x){return 1;}
23314int f(bool x){return 1;}
23315
23316int
23317main ()
23318{
23319bool b = true; return f(b);
23320 ;
23321 return 0;
23322}
23323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023324if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023325 ac_cv_cxx_have_bool=yes
23326else
cristy8b350f62009-11-15 23:12:43 +000023327 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023328fi
cristy3ed852e2009-09-05 21:47:34 +000023329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23330 ac_ext=cpp
23331ac_cpp='$CXXCPP $CPPFLAGS'
23332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23335
23336
23337fi
cristy8b350f62009-11-15 23:12:43 +000023338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000023339$as_echo "$ac_cv_cxx_have_bool" >&6; }
23340if test "$ac_cv_cxx_have_bool" = yes; then
23341
cristy8b350f62009-11-15 23:12:43 +000023342$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023343
23344fi
23345
cristy8b350f62009-11-15 23:12:43 +000023346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023347$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023348if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023349 $as_echo_n "(cached) " >&6
23350else
23351
23352 ac_ext=cpp
23353ac_cpp='$CXXCPP $CPPFLAGS'
23354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23357
cristy8b350f62009-11-15 23:12:43 +000023358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023359/* end confdefs.h. */
23360namespace Outer { namespace Inner { int i = 0; }}
23361int
23362main ()
23363{
23364using namespace Outer::Inner; return i;
23365 ;
23366 return 0;
23367}
23368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023369if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023370 ac_cv_cxx_have_namespaces=yes
23371else
cristy8b350f62009-11-15 23:12:43 +000023372 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023373fi
cristy3ed852e2009-09-05 21:47:34 +000023374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23375 ac_ext=cpp
23376ac_cpp='$CXXCPP $CPPFLAGS'
23377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23380
23381
23382fi
cristy8b350f62009-11-15 23:12:43 +000023383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023384$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
23385if test "$ac_cv_cxx_have_namespaces" = yes; then
23386
cristy8b350f62009-11-15 23:12:43 +000023387$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023388
23389fi
23390
cristy8b350f62009-11-15 23:12:43 +000023391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000023392$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023393if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023394 $as_echo_n "(cached) " >&6
23395else
23396
23397 ac_ext=cpp
23398ac_cpp='$CXXCPP $CPPFLAGS'
23399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23402
cristy8b350f62009-11-15 23:12:43 +000023403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023404/* end confdefs.h. */
23405#include <iostream>
23406 std::istream& is = std::cin;
23407
23408int
23409main ()
23410{
23411return 0;
23412 ;
23413 return 0;
23414}
23415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023416if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023417 ac_cv_cxx_have_std_namespace=yes
23418else
cristy8b350f62009-11-15 23:12:43 +000023419 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023420fi
cristy3ed852e2009-09-05 21:47:34 +000023421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23422 ac_ext=cpp
23423ac_cpp='$CXXCPP $CPPFLAGS'
23424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23427
23428
23429fi
cristy8b350f62009-11-15 23:12:43 +000023430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000023431$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
23432if test "$ac_cv_cxx_have_std_namespace" = yes; then
23433
cristy8b350f62009-11-15 23:12:43 +000023434$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023435
23436fi
23437
cristy8b350f62009-11-15 23:12:43 +000023438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023439$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023440if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023441 $as_echo_n "(cached) " >&6
23442else
23443
23444
23445 ac_ext=cpp
23446ac_cpp='$CXXCPP $CPPFLAGS'
23447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23450
cristy8b350f62009-11-15 23:12:43 +000023451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023452/* end confdefs.h. */
23453#include <iostream>
23454#include <map>
23455#include <iomanip>
23456#include <cmath>
23457#ifdef HAVE_NAMESPACES
23458using namespace std;
23459#endif
23460int
23461main ()
23462{
23463return 0;
23464 ;
23465 return 0;
23466}
23467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023468if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023469 ac_cv_cxx_have_std_libs=yes
23470else
cristy8b350f62009-11-15 23:12:43 +000023471 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023472fi
cristy3ed852e2009-09-05 21:47:34 +000023473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23474 ac_ext=cpp
23475ac_cpp='$CXXCPP $CPPFLAGS'
23476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23479
23480
23481fi
cristy8b350f62009-11-15 23:12:43 +000023482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023483$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23484if test "$ac_cv_cxx_have_std_libs" = yes; then
23485
cristy8b350f62009-11-15 23:12:43 +000023486$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023487
23488fi
23489
cristy8b350f62009-11-15 23:12:43 +000023490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023491$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023492if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023493 $as_echo_n "(cached) " >&6
23494else
23495
23496 ac_ext=cpp
23497ac_cpp='$CXXCPP $CPPFLAGS'
23498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23501
cristy8b350f62009-11-15 23:12:43 +000023502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023503/* end confdefs.h. */
23504const wchar_t* s=L"wide string";
23505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023506if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023507 ac_cv_cxx_have_lstring=yes
23508else
cristy8b350f62009-11-15 23:12:43 +000023509 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023510fi
cristy3ed852e2009-09-05 21:47:34 +000023511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23512 ac_ext=cpp
23513ac_cpp='$CXXCPP $CPPFLAGS'
23514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23517
23518
23519fi
cristy8b350f62009-11-15 23:12:43 +000023520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023521$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23522if test "$ac_cv_cxx_have_lstring" = yes; then
23523
cristy8b350f62009-11-15 23:12:43 +000023524$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023525
23526fi
23527
23528
23529 OPENMP_CXXFLAGS=
23530 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023531if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023532 enableval=$enable_openmp;
23533fi
23534
23535 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23537$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023538if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023539 $as_echo_n "(cached) " >&6
23540else
cristy8b350f62009-11-15 23:12:43 +000023541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23542/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023543
23544#ifndef _OPENMP
23545 choke me
23546#endif
23547#include <omp.h>
23548int main () { return omp_get_num_threads (); }
23549
23550_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023551if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023552 ac_cv_prog_cxx_openmp='none needed'
23553else
cristy8b350f62009-11-15 23:12:43 +000023554 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023555 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23556 ac_save_CXXFLAGS=$CXXFLAGS
23557 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23559/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023560
23561#ifndef _OPENMP
23562 choke me
23563#endif
23564#include <omp.h>
23565int main () { return omp_get_num_threads (); }
23566
23567_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023568if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023569 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023570fi
cristy8b350f62009-11-15 23:12:43 +000023571rm -f core conftest.err conftest.$ac_objext \
23572 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023573 CXXFLAGS=$ac_save_CXXFLAGS
23574 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23575 break
23576 fi
23577 done
23578fi
cristy8b350f62009-11-15 23:12:43 +000023579rm -f core conftest.err conftest.$ac_objext \
23580 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023581fi
cristy8b350f62009-11-15 23:12:43 +000023582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023583$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23584 case $ac_cv_prog_cxx_openmp in #(
23585 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000023586 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000023587 *)
cristy8b350f62009-11-15 23:12:43 +000023588 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000023589 esac
23590 fi
23591
23592
23593 ac_ext=c
23594ac_cpp='$CPP $CPPFLAGS'
23595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23597ac_compiler_gnu=$ac_cv_c_compiler_gnu
23598
23599
cristy8b350f62009-11-15 23:12:43 +000023600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000023601$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
23602 if \
23603 test $ac_cv_cxx_have_bool = 'yes' && \
23604 test $ac_cv_cxx_have_lstring = 'yes' && \
23605 test $ac_cv_cxx_have_namespaces = 'yes' && \
23606 test $ac_cv_cxx_have_std_libs = 'yes' && \
23607 test $ac_cv_cxx_have_std_namespace = 'yes'; then
23608 have_magick_plus_plus='yes'
23609 else
23610 have_magick_plus_plus='no (failed tests)'
23611 fi
cristy8b350f62009-11-15 23:12:43 +000023612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000023613$as_echo "$have_magick_plus_plus" >&6; }
23614 LIBS="$OLIBS"
23615fi
23616 if test "$have_magick_plus_plus" = 'yes'; then
23617 WITH_MAGICK_PLUS_PLUS_TRUE=
23618 WITH_MAGICK_PLUS_PLUS_FALSE='#'
23619else
23620 WITH_MAGICK_PLUS_PLUS_TRUE='#'
23621 WITH_MAGICK_PLUS_PLUS_FALSE=
23622fi
23623
23624
23625# Only check for delegate libraries in subdirectories if requested.
23626if test "$enable_delegate_build" != 'no'; then
23627 # Check for delegate sub-directories and add -I & -L options as required.
23628 # This presumes that delegates are installed as detailed in the ImageMagick
23629 # README. If delegates are installed in a standard location where the
23630 # compiler will automatically find them then these options should not be
23631 # required.
23632
23633 #
23634 # Most delegates have includes in the same directory as the library, but not all...
23635 #
23636 # Includes
cristy5850e4b2010-01-08 14:28:24 +000023637 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 +000023638 if test -d "$builddir/$dir"; then
23639 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
23640 else
23641 if test -d "$srcdirfull/$dir"; then
23642 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
23643 fi
23644 fi
23645 done
23646
23647 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000023648 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 +000023649 if test -d "$builddir/$dir/.libs"; then
23650 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
23651 else
23652 if test -d "$srcdirfull/$dir/.libs"; then
23653 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
23654 fi
23655 fi
23656 if test -d "$builddir/$dir"; then
23657 LDFLAGS="$LDFLAGS -L$builddir/$dir"
23658 else
23659 if test -d "$srcdirfull/$dir"; then
23660 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
23661 fi
23662 fi
23663 done
23664fi
23665
23666# Assume that delegate headers reside under same directory as ImageMagick
23667# installation prefix.
23668MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
23669
23670#
23671# Find the X11 RGB database
23672#
cristy8b350f62009-11-15 23:12:43 +000023673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000023674$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023675if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023676 $as_echo_n "(cached) " >&6
23677else
23678 # Look for the header file in a standard set of common directories.
23679# Check X11 before X11Rn because it is often a symlink to the current release.
23680 for ac_dir in \
23681 /lib/usr/lib/X11 \
23682 /usr/X11/lib \
23683 /usr/X11R4/lib \
23684 /usr/X11R5/lib \
23685 /usr/X11R6/lib \
23686 /usr/X11R7/lib \
23687 /usr/X386/lib \
23688 /usr/XFree86/lib/X11 \
23689 /usr/athena/lib \
23690 /usr/lib \
23691 /usr/lib/X11 \
23692 /usr/lib/X11R4 \
23693 /usr/lib/X11R5 \
23694 /usr/lib/X11R6 \
23695 /usr/lib/X11R7 \
23696 /usr/local/X11/lib \
23697 /usr/local/X11R4/lib \
23698 /usr/local/X11R5/lib \
23699 /usr/local/X11R6/lib \
23700 /usr/local/lib \
23701 /usr/local/lib/X11 \
23702 /usr/local/lib/X11R4 \
23703 /usr/local/lib/X11R5 \
23704 /usr/local/lib/X11R6 \
23705 /usr/local/lib/X11R7 \
23706 /usr/local/x11r5/lib \
23707 /usr/lpp/Xamples/lib \
23708 /usr/openwin/lib \
23709 /usr/openwin/share/lib \
23710 /usr/unsupported/lib \
23711 /usr/x386/lib \
23712 ; do
23713 if test -f "$ac_dir/X11/rgb.txt"; then
23714 im_cv_x_configure="$ac_dir/X11/"
23715 break
23716 elif test -f "$ac_dir/rgb.txt"; then
23717 im_cv_x_configure="$ac_dir/"
23718 break
23719 fi
23720
23721 done
23722fi
cristy8b350f62009-11-15 23:12:43 +000023723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000023724$as_echo "$im_cv_x_configure" >&6; }
23725X11_CONFIGURE_PATH="$im_cv_x_configure"
23726case "${build_os}" in
23727 mingw* )
23728 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
23729 ;;
23730esac
23731
23732cat >>confdefs.h <<_ACEOF
23733#define X11_CONFIGURE_PATH "$X11ConfigurePath"
23734_ACEOF
23735
23736
23737#
23738# Find OpenMP library
23739#
23740GOMP_LIBS=''
23741if test "$enable_openmp" != 'no'; then
23742 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000023743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023744$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023745if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023746 $as_echo_n "(cached) " >&6
23747else
23748 ac_check_lib_save_LIBS=$LIBS
23749LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023751/* end confdefs.h. */
23752
23753/* Override any GCC internal prototype to avoid an error.
23754 Use char because int might match the return type of a GCC
23755 builtin and then its argument prototype would still apply. */
23756#ifdef __cplusplus
23757extern "C"
23758#endif
23759char GOMP_parallel_start ();
23760int
23761main ()
23762{
23763return GOMP_parallel_start ();
23764 ;
23765 return 0;
23766}
23767_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023768if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023769 ac_cv_lib_gomp_GOMP_parallel_start=yes
23770else
cristy8b350f62009-11-15 23:12:43 +000023771 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000023772fi
cristy8b350f62009-11-15 23:12:43 +000023773rm -f core conftest.err conftest.$ac_objext \
23774 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023775LIBS=$ac_check_lib_save_LIBS
23776fi
cristy8b350f62009-11-15 23:12:43 +000023777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000023778$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023779if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023780 GOMP_LIBS="-lgomp"
23781fi
23782 # gcc
23783 else
cristy8b350f62009-11-15 23:12:43 +000023784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000023785$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023786if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023787 $as_echo_n "(cached) " >&6
23788else
23789 ac_check_lib_save_LIBS=$LIBS
23790LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023792/* end confdefs.h. */
23793
23794/* Override any GCC internal prototype to avoid an error.
23795 Use char because int might match the return type of a GCC
23796 builtin and then its argument prototype would still apply. */
23797#ifdef __cplusplus
23798extern "C"
23799#endif
23800char sunw_mp_register_warn ();
23801int
23802main ()
23803{
23804return sunw_mp_register_warn ();
23805 ;
23806 return 0;
23807}
23808_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023809if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023810 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
23811else
cristy8b350f62009-11-15 23:12:43 +000023812 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000023813fi
cristy8b350f62009-11-15 23:12:43 +000023814rm -f core conftest.err conftest.$ac_objext \
23815 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023816LIBS=$ac_check_lib_save_LIBS
23817fi
cristy8b350f62009-11-15 23:12:43 +000023818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000023819$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023820if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023821 GOMP_LIBS="-lmtsk"
23822fi
23823 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000023824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023825$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023826if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023827 $as_echo_n "(cached) " >&6
23828else
23829 ac_check_lib_save_LIBS=$LIBS
23830LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023832/* end confdefs.h. */
23833
23834/* Override any GCC internal prototype to avoid an error.
23835 Use char because int might match the return type of a GCC
23836 builtin and then its argument prototype would still apply. */
23837#ifdef __cplusplus
23838extern "C"
23839#endif
23840char _xlsmpFlush ();
23841int
23842main ()
23843{
23844return _xlsmpFlush ();
23845 ;
23846 return 0;
23847}
23848_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023849if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023850 ac_cv_lib_xlsmp__xlsmpFlush=yes
23851else
cristy8b350f62009-11-15 23:12:43 +000023852 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000023853fi
cristy8b350f62009-11-15 23:12:43 +000023854rm -f core conftest.err conftest.$ac_objext \
23855 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023856LIBS=$ac_check_lib_save_LIBS
23857fi
cristy8b350f62009-11-15 23:12:43 +000023858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000023859$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023860if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023861 GOMP_LIBS="-lxlsmp"
23862fi
23863 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000023864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023865$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023866if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023867 $as_echo_n "(cached) " >&6
23868else
23869 ac_check_lib_save_LIBS=$LIBS
23870LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023872/* end confdefs.h. */
23873
23874/* Override any GCC internal prototype to avoid an error.
23875 Use char because int might match the return type of a GCC
23876 builtin and then its argument prototype would still apply. */
23877#ifdef __cplusplus
23878extern "C"
23879#endif
23880char mp_destroy ();
23881int
23882main ()
23883{
23884return mp_destroy ();
23885 ;
23886 return 0;
23887}
23888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023889if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023890 ac_cv_lib_mp_mp_destroy=yes
23891else
cristy8b350f62009-11-15 23:12:43 +000023892 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000023893fi
cristy8b350f62009-11-15 23:12:43 +000023894rm -f core conftest.err conftest.$ac_objext \
23895 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023896LIBS=$ac_check_lib_save_LIBS
23897fi
cristy8b350f62009-11-15 23:12:43 +000023898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000023899$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023900if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023901 GOMP_LIBS="-lmp"
23902fi
23903 # SGI IRIX 6.5 MIPSpro C/C++
23904 fi
23905 LIBS="$GOMP_LIBS $LIBS"
23906fi
23907
23908
23909#
23910# Find Posix threads library
23911#
23912THREAD_LIBS=''
23913if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
23914
23915 if test "x$PTHREAD_LIBS" = "x"; then
23916 case "${host_cpu}-${host_os}" in
23917 *-freebsd*)
23918
23919
23920
23921ac_ext=c
23922ac_cpp='$CPP $CPPFLAGS'
23923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23925ac_compiler_gnu=$ac_cv_c_compiler_gnu
23926
23927magick_pthread_lib_ok=no
23928
23929LIB=-lc_r
23930save_LIBS="$LIBS"
23931LIBS="$LIBS $LIB"
23932
cristy8b350f62009-11-15 23:12:43 +000023933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023934$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023936/* end confdefs.h. */
23937#include <pthread.h>
23938int
23939main ()
23940{
23941 pthread_t th;
23942 pthread_join(th, 0);
23943 pthread_attr_init(0);
23944 pthread_cleanup_push(0, 0);
23945 pthread_create(0,0,0,0);
23946 pthread_cleanup_pop(0);
23947 ;
23948 return 0;
23949}
23950_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023951if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023952 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023953fi
cristy8b350f62009-11-15 23:12:43 +000023954rm -f core conftest.err conftest.$ac_objext \
23955 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023956
cristy8b350f62009-11-15 23:12:43 +000023957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023958$as_echo "${magick_pthread_lib_ok}" >&6; }
23959if test "$magick_pthread_lib_ok" = yes
23960then
23961 PTHREAD_LIBS=-lc_r
23962 :
23963else
23964
23965 :
23966fi
23967
23968LIBS="$save_LIBS"
23969
23970ac_ext=c
23971ac_cpp='$CPP $CPPFLAGS'
23972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23974ac_compiler_gnu=$ac_cv_c_compiler_gnu
23975
23976 ;;
23977 esac
23978 fi
23979
23980 for lib in pthread pthreads; do
23981 if test "x$PTHREAD_LIBS" = "x"; then
23982
23983
23984
23985ac_ext=c
23986ac_cpp='$CPP $CPPFLAGS'
23987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23989ac_compiler_gnu=$ac_cv_c_compiler_gnu
23990
23991magick_pthread_lib_ok=no
23992
23993LIB=-l$lib
23994save_LIBS="$LIBS"
23995LIBS="$LIBS $LIB"
23996
cristy8b350f62009-11-15 23:12:43 +000023997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023998$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024000/* end confdefs.h. */
24001#include <pthread.h>
24002int
24003main ()
24004{
24005 pthread_t th;
24006 pthread_join(th, 0);
24007 pthread_attr_init(0);
24008 pthread_cleanup_push(0, 0);
24009 pthread_create(0,0,0,0);
24010 pthread_cleanup_pop(0);
24011 ;
24012 return 0;
24013}
24014_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024015if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024016 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024017fi
cristy8b350f62009-11-15 23:12:43 +000024018rm -f core conftest.err conftest.$ac_objext \
24019 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024020
cristy8b350f62009-11-15 23:12:43 +000024021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024022$as_echo "${magick_pthread_lib_ok}" >&6; }
24023if test "$magick_pthread_lib_ok" = yes
24024then
24025 PTHREAD_LIBS=-l$lib
24026 :
24027else
24028
24029 :
24030fi
24031
24032LIBS="$save_LIBS"
24033
24034ac_ext=c
24035ac_cpp='$CPP $CPPFLAGS'
24036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24038ac_compiler_gnu=$ac_cv_c_compiler_gnu
24039
24040
24041 fi
24042 done
24043
24044 THREAD_LIBS="$PTHREAD_LIBS"
24045 LIBS="$LIBS $THREAD_LIBS"
24046fi
24047
24048
24049#
24050# Check for umem.
24051#
24052have_umem='no'
24053UMEM_LIBS=''
24054if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024056$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024058$as_echo "" >&6; }
24059 failed=0
24060 passed=0
cristy8b350f62009-11-15 23:12:43 +000024061 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24062if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024063 passed=`expr $passed + 1`
24064else
24065 failed=`expr $failed + 1`
24066fi
24067
24068
cristy8b350f62009-11-15 23:12:43 +000024069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024070$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024071if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024072 $as_echo_n "(cached) " >&6
24073else
24074 ac_check_lib_save_LIBS=$LIBS
24075LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024077/* end confdefs.h. */
24078
24079/* Override any GCC internal prototype to avoid an error.
24080 Use char because int might match the return type of a GCC
24081 builtin and then its argument prototype would still apply. */
24082#ifdef __cplusplus
24083extern "C"
24084#endif
24085char umem_alloc ();
24086int
24087main ()
24088{
24089return umem_alloc ();
24090 ;
24091 return 0;
24092}
24093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024094if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024095 ac_cv_lib_umem_umem_alloc=yes
24096else
cristy8b350f62009-11-15 23:12:43 +000024097 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024098fi
cristy8b350f62009-11-15 23:12:43 +000024099rm -f core conftest.err conftest.$ac_objext \
24100 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024101LIBS=$ac_check_lib_save_LIBS
24102fi
cristy8b350f62009-11-15 23:12:43 +000024103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024104$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024105if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024106 passed=`expr $passed + 1`
24107else
24108 failed=`expr $failed + 1`
24109fi
24110
cristy8b350f62009-11-15 23:12:43 +000024111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024112$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024113if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024114 $as_echo_n "(cached) " >&6
24115else
24116 ac_check_lib_save_LIBS=$LIBS
24117LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024119/* end confdefs.h. */
24120
24121/* Override any GCC internal prototype to avoid an error.
24122 Use char because int might match the return type of a GCC
24123 builtin and then its argument prototype would still apply. */
24124#ifdef __cplusplus
24125extern "C"
24126#endif
24127char umem_free ();
24128int
24129main ()
24130{
24131return umem_free ();
24132 ;
24133 return 0;
24134}
24135_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024136if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024137 ac_cv_lib_umem_umem_free=yes
24138else
cristy8b350f62009-11-15 23:12:43 +000024139 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024140fi
cristy8b350f62009-11-15 23:12:43 +000024141rm -f core conftest.err conftest.$ac_objext \
24142 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024143LIBS=$ac_check_lib_save_LIBS
24144fi
cristy8b350f62009-11-15 23:12:43 +000024145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024146$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024147if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024148 passed=`expr $passed + 1`
24149else
24150 failed=`expr $failed + 1`
24151fi
24152
cristy8b350f62009-11-15 23:12:43 +000024153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024154$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24155 if test $passed -gt 0; then
24156 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024158$as_echo "no -- some components failed test" >&6; }
24159 have_umem='no (failed tests)'
24160 else
24161 UMEM_LIBS='-lumem'
24162 LIBS="$UMEM_LIBS $LIBS"
24163
cristy8b350f62009-11-15 23:12:43 +000024164$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024165
cristy8b350f62009-11-15 23:12:43 +000024166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024167$as_echo "yes" >&6; }
24168 have_umem='yes'
24169 fi
24170 else
cristy8b350f62009-11-15 23:12:43 +000024171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024172$as_echo "no" >&6; }
24173 fi
24174fi
24175 if test "$have_umem" = 'yes'; then
24176 HasUMEM_TRUE=
24177 HasUMEM_FALSE='#'
24178else
24179 HasUMEM_TRUE='#'
24180 HasUMEM_FALSE=
24181fi
24182
24183
24184
24185#
24186# Add support for ccmalloc memory debugging library if requested
24187#
24188have_ccmalloc='no'
24189CCMALLOC_LIBS=''
24190if test "$enable_ccmalloc" = 'yes'; then
24191 # Extract the first word of "ccmalloc", so it can be a program name with args.
24192set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024194$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024195if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024196 $as_echo_n "(cached) " >&6
24197else
24198 case $CCMALLOCDelegate in
24199 [\\/]* | ?:[\\/]*)
24200 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24201 ;;
24202 *)
24203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24204for as_dir in $PATH
24205do
24206 IFS=$as_save_IFS
24207 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24210 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024212 break 2
24213 fi
24214done
cristy8b350f62009-11-15 23:12:43 +000024215 done
cristy3ed852e2009-09-05 21:47:34 +000024216IFS=$as_save_IFS
24217
24218 ;;
24219esac
24220fi
24221CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24222if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024224$as_echo "$CCMALLOCDelegate" >&6; }
24225else
cristy8b350f62009-11-15 23:12:43 +000024226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024227$as_echo "no" >&6; }
24228fi
24229
24230
24231 if test -n "$CCMALLOCDelegate"; then
24232 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24233 OLIBS="$LIBS"
24234 # Assume that gcc is used with ccmalloc.
24235 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024237$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024238if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024239 $as_echo_n "(cached) " >&6
24240else
24241 ac_check_lib_save_LIBS=$LIBS
24242LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024244/* end confdefs.h. */
24245
24246/* Override any GCC internal prototype to avoid an error.
24247 Use char because int might match the return type of a GCC
24248 builtin and then its argument prototype would still apply. */
24249#ifdef __cplusplus
24250extern "C"
24251#endif
24252char ccmalloc_malloc ();
24253int
24254main ()
24255{
24256return ccmalloc_malloc ();
24257 ;
24258 return 0;
24259}
24260_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024261if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024262 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24263else
cristy8b350f62009-11-15 23:12:43 +000024264 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024265fi
cristy8b350f62009-11-15 23:12:43 +000024266rm -f core conftest.err conftest.$ac_objext \
24267 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024268LIBS=$ac_check_lib_save_LIBS
24269fi
cristy8b350f62009-11-15 23:12:43 +000024270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024271$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024272if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024273 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24274fi
24275
24276 if test -n "$CCMALLOC_LIBS"; then
24277 LIBS="$OLIBS"
24278 LIBS="$LIBS $CCMALLOC_LIBS"
24279 have_ccmalloc='yes'
24280 else
24281 LIBS="$OLIBS"
24282 fi
24283 fi
24284fi
24285
24286#
24287# Add support for efence memory debugging library if requested
24288#
24289if test "$enable_efence" = 'yes'; then
24290 EFENCE_LIBS='-lefence'
24291 LIBS="$EFENCE_LIBS $LIBS"
24292fi
24293
cristy3ed852e2009-09-05 21:47:34 +000024294
24295#
24296# Check for BZLIB
24297#
24298
24299
24300# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024301if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024302 withval=$with_bzlib; with_bzlib=$withval
24303else
24304 with_bzlib='yes'
24305fi
24306
24307
24308if test "$with_bzlib" != 'yes'; then
24309 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24310fi
24311
24312have_bzlib='no'
24313if test "$with_bzlib" != 'no'; then
24314 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024316$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024318$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024320$as_echo "" >&6; }
24321 failed=0
24322 passed=0
24323 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024324 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24325if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024326 passed=`expr $passed + 1`
24327else
24328 failed=`expr $failed + 1`
24329fi
24330
24331
cristy8b350f62009-11-15 23:12:43 +000024332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024333$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024334if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024335 $as_echo_n "(cached) " >&6
24336else
24337 ac_check_lib_save_LIBS=$LIBS
24338LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024340/* end confdefs.h. */
24341
24342/* Override any GCC internal prototype to avoid an error.
24343 Use char because int might match the return type of a GCC
24344 builtin and then its argument prototype would still apply. */
24345#ifdef __cplusplus
24346extern "C"
24347#endif
24348char BZ2_bzDecompress ();
24349int
24350main ()
24351{
24352return BZ2_bzDecompress ();
24353 ;
24354 return 0;
24355}
24356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024357if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024358 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24359else
cristy8b350f62009-11-15 23:12:43 +000024360 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024361fi
cristy8b350f62009-11-15 23:12:43 +000024362rm -f core conftest.err conftest.$ac_objext \
24363 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024364LIBS=$ac_check_lib_save_LIBS
24365fi
cristy8b350f62009-11-15 23:12:43 +000024366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024367$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024368if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024369 found_libbz=`expr $found_libbz + 1`
24370fi
24371
24372 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024374$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024375if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024376 $as_echo_n "(cached) " >&6
24377else
24378 ac_check_lib_save_LIBS=$LIBS
24379LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024381/* end confdefs.h. */
24382
24383/* Override any GCC internal prototype to avoid an error.
24384 Use char because int might match the return type of a GCC
24385 builtin and then its argument prototype would still apply. */
24386#ifdef __cplusplus
24387extern "C"
24388#endif
24389char _imp__BZ2_decompress ();
24390int
24391main ()
24392{
24393return _imp__BZ2_decompress ();
24394 ;
24395 return 0;
24396}
24397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024398if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024399 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24400else
cristy8b350f62009-11-15 23:12:43 +000024401 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024402fi
cristy8b350f62009-11-15 23:12:43 +000024403rm -f core conftest.err conftest.$ac_objext \
24404 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024405LIBS=$ac_check_lib_save_LIBS
24406fi
cristy8b350f62009-11-15 23:12:43 +000024407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024408$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024409if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024410 found_libbz=`expr $found_libbz + 1`
24411fi
24412
24413 fi
24414 if test $found_libbz -gt 0; then
24415 passed=`expr $passed + 1`
24416 else
24417 failed=`expr $failed + 1`
24418 fi
cristy8b350f62009-11-15 23:12:43 +000024419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024420$as_echo_n "checking if BZLIB package is complete... " >&6; }
24421 if test $passed -gt 0; then
24422 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024424$as_echo "no -- some components failed test" >&6; }
24425 have_bzlib='no (failed tests)'
24426 else
24427 BZLIB_LIBS='-lbz2'
24428 LIBS="$BZLIB_LIBS $LIBS"
24429
cristy8b350f62009-11-15 23:12:43 +000024430$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024431
cristy8b350f62009-11-15 23:12:43 +000024432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024433$as_echo "yes" >&6; }
24434 have_bzlib='yes'
24435 fi
24436 else
cristy8b350f62009-11-15 23:12:43 +000024437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024438$as_echo "no" >&6; }
24439 fi
24440fi
24441 if test "$have_bzlib" = 'yes'; then
24442 BZLIB_DELEGATE_TRUE=
24443 BZLIB_DELEGATE_FALSE='#'
24444else
24445 BZLIB_DELEGATE_TRUE='#'
24446 BZLIB_DELEGATE_FALSE=
24447fi
24448
24449
24450
24451#
24452# Find the X11 include and library directories.
24453#
24454IPC_LIBS=''
24455X11_LIBS=''
24456XEXT_LIBS=''
24457XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024459$as_echo_n "checking for X... " >&6; }
24460
24461
24462# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024463if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024464 withval=$with_x;
24465fi
24466
24467# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24468if test "x$with_x" = xno; then
24469 # The user explicitly disabled X.
24470 have_x=disabled
24471else
24472 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000024473 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24474 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024475 $as_echo_n "(cached) " >&6
24476else
24477 # One or both of the vars are not set, and there is no cached value.
24478ac_x_includes=no ac_x_libraries=no
24479rm -f -r conftest.dir
24480if mkdir conftest.dir; then
24481 cd conftest.dir
24482 cat >Imakefile <<'_ACEOF'
24483incroot:
24484 @echo incroot='${INCROOT}'
24485usrlibdir:
24486 @echo usrlibdir='${USRLIBDIR}'
24487libdir:
24488 @echo libdir='${LIBDIR}'
24489_ACEOF
24490 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24492 for ac_var in incroot usrlibdir libdir; do
24493 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24494 done
24495 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24496 for ac_extension in a so sl dylib la dll; do
24497 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24498 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24499 ac_im_usrlibdir=$ac_im_libdir; break
24500 fi
24501 done
24502 # Screen out bogus values from the imake configuration. They are
24503 # bogus both because they are the default anyway, and because
24504 # using them would break gcc on systems where it needs fixed includes.
24505 case $ac_im_incroot in
24506 /usr/include) ac_x_includes= ;;
24507 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24508 esac
24509 case $ac_im_usrlibdir in
24510 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24511 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24512 esac
24513 fi
24514 cd ..
24515 rm -f -r conftest.dir
24516fi
24517
24518# Standard set of common directories for X headers.
24519# Check X11 before X11Rn because it is often a symlink to the current release.
24520ac_x_header_dirs='
24521/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024522/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024523/usr/X11R6/include
24524/usr/X11R5/include
24525/usr/X11R4/include
24526
24527/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024528/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024529/usr/include/X11R6
24530/usr/include/X11R5
24531/usr/include/X11R4
24532
24533/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024534/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024535/usr/local/X11R6/include
24536/usr/local/X11R5/include
24537/usr/local/X11R4/include
24538
24539/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024540/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024541/usr/local/include/X11R6
24542/usr/local/include/X11R5
24543/usr/local/include/X11R4
24544
24545/usr/X386/include
24546/usr/x386/include
24547/usr/XFree86/include/X11
24548
24549/usr/include
24550/usr/local/include
24551/usr/unsupported/include
24552/usr/athena/include
24553/usr/local/x11r5/include
24554/usr/lpp/Xamples/include
24555
24556/usr/openwin/include
24557/usr/openwin/share/include'
24558
24559if test "$ac_x_includes" = no; then
24560 # Guess where to find include files, by looking for Xlib.h.
24561 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024563/* end confdefs.h. */
24564#include <X11/Xlib.h>
24565_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024566if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024567 # We can compile using X headers with no special include directory.
24568ac_x_includes=
24569else
cristyc7083c12009-10-14 03:16:55 +000024570 for ac_dir in $ac_x_header_dirs; do
24571 if test -r "$ac_dir/X11/Xlib.h"; then
24572 ac_x_includes=$ac_dir
24573 break
24574 fi
24575done
24576fi
cristyc7083c12009-10-14 03:16:55 +000024577rm -f conftest.err conftest.$ac_ext
24578fi # $ac_x_includes = no
24579
24580if test "$ac_x_libraries" = no; then
24581 # Check for the libraries.
24582 # See if we find them without any special options.
24583 # Don't add to $LIBS permanently.
24584 ac_save_LIBS=$LIBS
24585 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024587/* end confdefs.h. */
24588#include <X11/Xlib.h>
24589int
24590main ()
24591{
24592XrmInitialize ()
24593 ;
24594 return 0;
24595}
24596_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024597if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024598 LIBS=$ac_save_LIBS
24599# We can link X programs with no special library path.
24600ac_x_libraries=
24601else
cristy8b350f62009-11-15 23:12:43 +000024602 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000024603for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24604do
24605 # Don't even attempt the hair of trying to link an X program!
24606 for ac_extension in a so sl dylib la dll; do
24607 if test -r "$ac_dir/libX11.$ac_extension"; then
24608 ac_x_libraries=$ac_dir
24609 break 2
24610 fi
24611 done
24612done
24613fi
cristy8b350f62009-11-15 23:12:43 +000024614rm -f core conftest.err conftest.$ac_objext \
24615 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024616fi # $ac_x_libraries = no
24617
24618case $ac_x_includes,$ac_x_libraries in #(
24619 no,* | *,no | *\'*)
24620 # Didn't find X, or a directory has "'" in its name.
24621 ac_cv_have_x="have_x=no";; #(
24622 *)
24623 # Record where we found X for the cache.
24624 ac_cv_have_x="have_x=yes\
24625 ac_x_includes='$ac_x_includes'\
24626 ac_x_libraries='$ac_x_libraries'"
24627esac
24628fi
24629;; #(
24630 *) have_x=yes;;
24631 esac
24632 eval "$ac_cv_have_x"
24633fi # $with_x != no
24634
24635if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000024636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000024637$as_echo "$have_x" >&6; }
24638 no_x=yes
24639else
24640 # If each of the values was on the command line, it overrides each guess.
24641 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24642 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24643 # Update the cache value to reflect the command line values.
24644 ac_cv_have_x="have_x=yes\
24645 ac_x_includes='$x_includes'\
24646 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000024647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000024648$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24649fi
24650
cristy3ed852e2009-09-05 21:47:34 +000024651if test "$no_x" = yes; then
24652 # Not all programs may use this symbol, but it does not hurt to define it.
24653
cristy8b350f62009-11-15 23:12:43 +000024654$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024655
24656 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24657else
24658 if test -n "$x_includes"; then
24659 X_CFLAGS="$X_CFLAGS -I$x_includes"
24660 fi
24661
24662 # It would also be nice to do this for all -L options, not just this one.
24663 if test -n "$x_libraries"; then
24664 X_LIBS="$X_LIBS -L$x_libraries"
24665 # For Solaris; some versions of Sun CC require a space after -R and
24666 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000024667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000024668$as_echo_n "checking whether -R must be followed by a space... " >&6; }
24669 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24670 ac_xsave_c_werror_flag=$ac_c_werror_flag
24671 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000024672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024673/* end confdefs.h. */
24674
24675int
24676main ()
24677{
24678
24679 ;
24680 return 0;
24681}
24682_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024683if ac_fn_c_try_link "$LINENO"; then :
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024685$as_echo "no" >&6; }
24686 X_LIBS="$X_LIBS -R$x_libraries"
24687else
cristy8b350f62009-11-15 23:12:43 +000024688 LIBS="$ac_xsave_LIBS -R $x_libraries"
24689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024690/* end confdefs.h. */
24691
24692int
24693main ()
24694{
24695
24696 ;
24697 return 0;
24698}
24699_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024700if ac_fn_c_try_link "$LINENO"; then :
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024702$as_echo "yes" >&6; }
24703 X_LIBS="$X_LIBS -R $x_libraries"
24704else
cristy8b350f62009-11-15 23:12:43 +000024705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024706$as_echo "neither works" >&6; }
24707fi
cristy8b350f62009-11-15 23:12:43 +000024708rm -f core conftest.err conftest.$ac_objext \
24709 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024710fi
cristy8b350f62009-11-15 23:12:43 +000024711rm -f core conftest.err conftest.$ac_objext \
24712 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024713 ac_c_werror_flag=$ac_xsave_c_werror_flag
24714 LIBS=$ac_xsave_LIBS
24715 fi
24716
24717 # Check for system-dependent libraries X programs must link with.
24718 # Do this before checking for the system-independent R6 libraries
24719 # (-lICE), since we may need -lsocket or whatever for X linking.
24720
24721 if test "$ISC" = yes; then
24722 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24723 else
24724 # Martyn Johnson says this is needed for Ultrix, if the X
24725 # libraries were built with DECnet support. And Karl Berry says
24726 # the Alpha needs dnet_stub (dnet does not exist).
24727 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000024728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024729/* end confdefs.h. */
24730
24731/* Override any GCC internal prototype to avoid an error.
24732 Use char because int might match the return type of a GCC
24733 builtin and then its argument prototype would still apply. */
24734#ifdef __cplusplus
24735extern "C"
24736#endif
24737char XOpenDisplay ();
24738int
24739main ()
24740{
24741return XOpenDisplay ();
24742 ;
24743 return 0;
24744}
24745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024746if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024747
cristy8b350f62009-11-15 23:12:43 +000024748else
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024750$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024751if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024752 $as_echo_n "(cached) " >&6
24753else
24754 ac_check_lib_save_LIBS=$LIBS
24755LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024757/* end confdefs.h. */
24758
24759/* Override any GCC internal prototype to avoid an error.
24760 Use char because int might match the return type of a GCC
24761 builtin and then its argument prototype would still apply. */
24762#ifdef __cplusplus
24763extern "C"
24764#endif
24765char dnet_ntoa ();
24766int
24767main ()
24768{
24769return dnet_ntoa ();
24770 ;
24771 return 0;
24772}
24773_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024774if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024775 ac_cv_lib_dnet_dnet_ntoa=yes
24776else
cristy8b350f62009-11-15 23:12:43 +000024777 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000024778fi
cristy8b350f62009-11-15 23:12:43 +000024779rm -f core conftest.err conftest.$ac_objext \
24780 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024781LIBS=$ac_check_lib_save_LIBS
24782fi
cristy8b350f62009-11-15 23:12:43 +000024783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000024784$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024785if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024786 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24787fi
24788
24789 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000024790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000024791$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024792if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024793 $as_echo_n "(cached) " >&6
24794else
24795 ac_check_lib_save_LIBS=$LIBS
24796LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024798/* end confdefs.h. */
24799
24800/* Override any GCC internal prototype to avoid an error.
24801 Use char because int might match the return type of a GCC
24802 builtin and then its argument prototype would still apply. */
24803#ifdef __cplusplus
24804extern "C"
24805#endif
24806char dnet_ntoa ();
24807int
24808main ()
24809{
24810return dnet_ntoa ();
24811 ;
24812 return 0;
24813}
24814_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024815if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024816 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24817else
cristy8b350f62009-11-15 23:12:43 +000024818 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000024819fi
cristy8b350f62009-11-15 23:12:43 +000024820rm -f core conftest.err conftest.$ac_objext \
24821 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024822LIBS=$ac_check_lib_save_LIBS
24823fi
cristy8b350f62009-11-15 23:12:43 +000024824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000024825$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024826if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024827 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24828fi
24829
24830 fi
24831fi
cristy8b350f62009-11-15 23:12:43 +000024832rm -f core conftest.err conftest.$ac_objext \
24833 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024834 LIBS="$ac_xsave_LIBS"
24835
24836 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24837 # to get the SysV transport functions.
24838 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24839 # needs -lnsl.
24840 # The nsl library prevents programs from opening the X display
24841 # on Irix 5.2, according to T.E. Dickey.
24842 # The functions gethostbyname, getservbyname, and inet_addr are
24843 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000024844 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24845if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024846
cristy3ed852e2009-09-05 21:47:34 +000024847fi
24848
cristy3ed852e2009-09-05 21:47:34 +000024849 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024851$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024852if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024853 $as_echo_n "(cached) " >&6
24854else
24855 ac_check_lib_save_LIBS=$LIBS
24856LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024858/* end confdefs.h. */
24859
24860/* Override any GCC internal prototype to avoid an error.
24861 Use char because int might match the return type of a GCC
24862 builtin and then its argument prototype would still apply. */
24863#ifdef __cplusplus
24864extern "C"
24865#endif
24866char gethostbyname ();
24867int
24868main ()
24869{
24870return gethostbyname ();
24871 ;
24872 return 0;
24873}
24874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024875if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024876 ac_cv_lib_nsl_gethostbyname=yes
24877else
cristy8b350f62009-11-15 23:12:43 +000024878 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024879fi
cristy8b350f62009-11-15 23:12:43 +000024880rm -f core conftest.err conftest.$ac_objext \
24881 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024882LIBS=$ac_check_lib_save_LIBS
24883fi
cristy8b350f62009-11-15 23:12:43 +000024884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024885$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024886if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024887 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24888fi
24889
24890 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000024892$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024893if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024894 $as_echo_n "(cached) " >&6
24895else
24896 ac_check_lib_save_LIBS=$LIBS
24897LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024899/* end confdefs.h. */
24900
24901/* Override any GCC internal prototype to avoid an error.
24902 Use char because int might match the return type of a GCC
24903 builtin and then its argument prototype would still apply. */
24904#ifdef __cplusplus
24905extern "C"
24906#endif
24907char gethostbyname ();
24908int
24909main ()
24910{
24911return gethostbyname ();
24912 ;
24913 return 0;
24914}
24915_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024916if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024917 ac_cv_lib_bsd_gethostbyname=yes
24918else
cristy8b350f62009-11-15 23:12:43 +000024919 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024920fi
cristy8b350f62009-11-15 23:12:43 +000024921rm -f core conftest.err conftest.$ac_objext \
24922 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024923LIBS=$ac_check_lib_save_LIBS
24924fi
cristy8b350f62009-11-15 23:12:43 +000024925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024926$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024927if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024928 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24929fi
24930
24931 fi
24932 fi
24933
24934 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24935 # socket/setsockopt and other routines are undefined under SCO ODT
24936 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24937 # on later versions), says Simon Leinen: it contains gethostby*
24938 # variants that don't use the name server (or something). -lsocket
24939 # must be given before -lnsl if both are needed. We assume that
24940 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000024941 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24942if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024943
cristy3ed852e2009-09-05 21:47:34 +000024944fi
24945
cristy3ed852e2009-09-05 21:47:34 +000024946 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000024947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000024948$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024949if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024950 $as_echo_n "(cached) " >&6
24951else
24952 ac_check_lib_save_LIBS=$LIBS
24953LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024955/* end confdefs.h. */
24956
24957/* Override any GCC internal prototype to avoid an error.
24958 Use char because int might match the return type of a GCC
24959 builtin and then its argument prototype would still apply. */
24960#ifdef __cplusplus
24961extern "C"
24962#endif
24963char connect ();
24964int
24965main ()
24966{
24967return connect ();
24968 ;
24969 return 0;
24970}
24971_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024972if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024973 ac_cv_lib_socket_connect=yes
24974else
cristy8b350f62009-11-15 23:12:43 +000024975 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000024976fi
cristy8b350f62009-11-15 23:12:43 +000024977rm -f core conftest.err conftest.$ac_objext \
24978 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024979LIBS=$ac_check_lib_save_LIBS
24980fi
cristy8b350f62009-11-15 23:12:43 +000024981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000024982$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024983if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024984 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24985fi
24986
24987 fi
24988
24989 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000024990 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24991if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024992
cristy3ed852e2009-09-05 21:47:34 +000024993fi
24994
cristy3ed852e2009-09-05 21:47:34 +000024995 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000024996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000024997$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024998if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024999 $as_echo_n "(cached) " >&6
25000else
25001 ac_check_lib_save_LIBS=$LIBS
25002LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025004/* end confdefs.h. */
25005
25006/* Override any GCC internal prototype to avoid an error.
25007 Use char because int might match the return type of a GCC
25008 builtin and then its argument prototype would still apply. */
25009#ifdef __cplusplus
25010extern "C"
25011#endif
25012char remove ();
25013int
25014main ()
25015{
25016return remove ();
25017 ;
25018 return 0;
25019}
25020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025021if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025022 ac_cv_lib_posix_remove=yes
25023else
cristy8b350f62009-11-15 23:12:43 +000025024 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025025fi
cristy8b350f62009-11-15 23:12:43 +000025026rm -f core conftest.err conftest.$ac_objext \
25027 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025028LIBS=$ac_check_lib_save_LIBS
25029fi
cristy8b350f62009-11-15 23:12:43 +000025030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025031$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025032if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025033 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25034fi
25035
25036 fi
25037
25038 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025039 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25040if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025041
cristy3ed852e2009-09-05 21:47:34 +000025042fi
25043
cristy3ed852e2009-09-05 21:47:34 +000025044 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025046$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025047if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025048 $as_echo_n "(cached) " >&6
25049else
25050 ac_check_lib_save_LIBS=$LIBS
25051LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025053/* end confdefs.h. */
25054
25055/* Override any GCC internal prototype to avoid an error.
25056 Use char because int might match the return type of a GCC
25057 builtin and then its argument prototype would still apply. */
25058#ifdef __cplusplus
25059extern "C"
25060#endif
25061char shmat ();
25062int
25063main ()
25064{
25065return shmat ();
25066 ;
25067 return 0;
25068}
25069_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025070if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025071 ac_cv_lib_ipc_shmat=yes
25072else
cristy8b350f62009-11-15 23:12:43 +000025073 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025074fi
cristy8b350f62009-11-15 23:12:43 +000025075rm -f core conftest.err conftest.$ac_objext \
25076 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025077LIBS=$ac_check_lib_save_LIBS
25078fi
cristy8b350f62009-11-15 23:12:43 +000025079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025080$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025081if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025082 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25083fi
25084
25085 fi
25086 fi
25087
25088 # Check for libraries that X11R6 Xt/Xaw programs need.
25089 ac_save_LDFLAGS=$LDFLAGS
25090 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25091 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25092 # check for ICE first), but we must link in the order -lSM -lICE or
25093 # we get undefined symbols. So assume we have SM if we have ICE.
25094 # These have to be linked with before -lX11, unlike the other
25095 # libraries we check for below, so use a different variable.
25096 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025098$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025099if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025100 $as_echo_n "(cached) " >&6
25101else
25102 ac_check_lib_save_LIBS=$LIBS
25103LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025105/* end confdefs.h. */
25106
25107/* Override any GCC internal prototype to avoid an error.
25108 Use char because int might match the return type of a GCC
25109 builtin and then its argument prototype would still apply. */
25110#ifdef __cplusplus
25111extern "C"
25112#endif
25113char IceConnectionNumber ();
25114int
25115main ()
25116{
25117return IceConnectionNumber ();
25118 ;
25119 return 0;
25120}
25121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025122if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025123 ac_cv_lib_ICE_IceConnectionNumber=yes
25124else
cristy8b350f62009-11-15 23:12:43 +000025125 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025126fi
cristy8b350f62009-11-15 23:12:43 +000025127rm -f core conftest.err conftest.$ac_objext \
25128 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025129LIBS=$ac_check_lib_save_LIBS
25130fi
cristy8b350f62009-11-15 23:12:43 +000025131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025132$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025133if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025134 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25135fi
25136
25137 LDFLAGS=$ac_save_LDFLAGS
25138
25139fi
25140
25141if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025143$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025145$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025147$as_echo "" >&6; }
25148 LDFLAGS="$LDFLAGS $X_LIBS"
25149 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25150 LIBS="$X11_LIBS $LIBS"
25151 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25152
25153
cristy8b350f62009-11-15 23:12:43 +000025154$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025155
25156 #
25157 # Check for X11 shared memory extension
25158 #
25159 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025160 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25161if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025162 have_shmctl='yes'
25163fi
25164
25165 if test "$have_shmctl" != 'yes'; then
25166 PERSIST_LIBS=$LIBS
25167 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025169/* end confdefs.h. */
25170
25171/* Override any GCC internal prototype to avoid an error.
25172 Use char because int might match the return type of a GCC
25173 builtin and then its argument prototype would still apply. */
25174#ifdef __cplusplus
25175extern "C"
25176#endif
25177char shmctl ();
25178int
25179main ()
25180{
25181return shmctl ();
25182 ;
25183 return 0;
25184}
25185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025186if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025187 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025188fi
cristy8b350f62009-11-15 23:12:43 +000025189rm -f core conftest.err conftest.$ac_objext \
25190 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025191 LIBS=$PERSIST_LIBS
25192 fi
25193
25194 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025196$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025197if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025198 $as_echo_n "(cached) " >&6
25199else
25200 ac_check_lib_save_LIBS=$LIBS
25201LIBS="-lXext $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 XShmAttach ();
25212int
25213main ()
25214{
25215return XShmAttach ();
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_Xext_XShmAttach=yes
25222else
cristy8b350f62009-11-15 23:12:43 +000025223 ac_cv_lib_Xext_XShmAttach=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_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025230$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025231if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025232 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025233$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025234
25235fi
25236
25237 fi
25238
25239 #
25240 # Check for X11 shape extension
25241 #
cristy8b350f62009-11-15 23:12:43 +000025242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025243$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025244if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025245 $as_echo_n "(cached) " >&6
25246else
25247 ac_check_lib_save_LIBS=$LIBS
25248LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025250/* end confdefs.h. */
25251
25252/* Override any GCC internal prototype to avoid an error.
25253 Use char because int might match the return type of a GCC
25254 builtin and then its argument prototype would still apply. */
25255#ifdef __cplusplus
25256extern "C"
25257#endif
25258char XShapeCombineMask ();
25259int
25260main ()
25261{
25262return XShapeCombineMask ();
25263 ;
25264 return 0;
25265}
25266_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025267if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025268 ac_cv_lib_Xext_XShapeCombineMask=yes
25269else
cristy8b350f62009-11-15 23:12:43 +000025270 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025271fi
cristy8b350f62009-11-15 23:12:43 +000025272rm -f core conftest.err conftest.$ac_objext \
25273 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025274LIBS=$ac_check_lib_save_LIBS
25275fi
cristy8b350f62009-11-15 23:12:43 +000025276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025277$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025278if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025279 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025280$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025281
25282fi
25283
cristy8b350f62009-11-15 23:12:43 +000025284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025285$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025286if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025287 $as_echo_n "(cached) " >&6
25288else
25289 ac_check_lib_save_LIBS=$LIBS
25290LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025292/* end confdefs.h. */
25293
25294/* Override any GCC internal prototype to avoid an error.
25295 Use char because int might match the return type of a GCC
25296 builtin and then its argument prototype would still apply. */
25297#ifdef __cplusplus
25298extern "C"
25299#endif
25300char XtSetEventDispatcher ();
25301int
25302main ()
25303{
25304return XtSetEventDispatcher ();
25305 ;
25306 return 0;
25307}
25308_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025309if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025310 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25311else
cristy8b350f62009-11-15 23:12:43 +000025312 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025313fi
cristy8b350f62009-11-15 23:12:43 +000025314rm -f core conftest.err conftest.$ac_objext \
25315 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025316LIBS=$ac_check_lib_save_LIBS
25317fi
cristy8b350f62009-11-15 23:12:43 +000025318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025319$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025320if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025321 XT_LIBS='-lXt'
25322fi
25323
25324 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25325fi
25326if test "$no_x" != 'yes'; then
25327 have_x='yes'
25328else
25329 have_x='no'
25330fi
25331 if test "$have_x" = 'yes'; then
25332 X11_DELEGATE_TRUE=
25333 X11_DELEGATE_FALSE='#'
25334else
25335 X11_DELEGATE_TRUE='#'
25336 X11_DELEGATE_FALSE=
25337fi
25338
25339
25340
25341
25342
25343#
25344# Check for ZLIB
25345#
25346
25347# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025348if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025349 withval=$with_zlib; with_zlib=$withval
25350else
25351 with_zlib='yes'
25352fi
25353
25354
25355if test "$with_zlib" != 'yes'; then
25356 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25357fi
25358
25359have_zlib='no'
25360ZLIB_LIBS=''
25361if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025363$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025365$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025367$as_echo "" >&6; }
25368 ZLIB_LIBS=''
25369 failed=0
25370 passed=0
cristy8b350f62009-11-15 23:12:43 +000025371 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25372if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025373 passed=`expr $passed + 1`
25374else
25375 failed=`expr $failed + 1`
25376fi
25377
25378
cristy8b350f62009-11-15 23:12:43 +000025379 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25380if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025381 passed=`expr $passed + 1`
25382else
25383 failed=`expr $failed + 1`
25384fi
25385
25386
cristy8b350f62009-11-15 23:12:43 +000025387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025388$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025389if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025390 $as_echo_n "(cached) " >&6
25391else
25392 ac_check_lib_save_LIBS=$LIBS
25393LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025395/* end confdefs.h. */
25396
25397/* Override any GCC internal prototype to avoid an error.
25398 Use char because int might match the return type of a GCC
25399 builtin and then its argument prototype would still apply. */
25400#ifdef __cplusplus
25401extern "C"
25402#endif
25403char compress ();
25404int
25405main ()
25406{
25407return compress ();
25408 ;
25409 return 0;
25410}
25411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025412if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025413 ac_cv_lib_z_compress=yes
25414else
cristy8b350f62009-11-15 23:12:43 +000025415 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025416fi
cristy8b350f62009-11-15 23:12:43 +000025417rm -f core conftest.err conftest.$ac_objext \
25418 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025419LIBS=$ac_check_lib_save_LIBS
25420fi
cristy8b350f62009-11-15 23:12:43 +000025421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025422$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025423if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025424 passed=`expr $passed + 1`
25425else
25426 failed=`expr $failed + 1`
25427fi
25428
cristy8b350f62009-11-15 23:12:43 +000025429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025430$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025431if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025432 $as_echo_n "(cached) " >&6
25433else
25434 ac_check_lib_save_LIBS=$LIBS
25435LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025437/* end confdefs.h. */
25438
25439/* Override any GCC internal prototype to avoid an error.
25440 Use char because int might match the return type of a GCC
25441 builtin and then its argument prototype would still apply. */
25442#ifdef __cplusplus
25443extern "C"
25444#endif
25445char uncompress ();
25446int
25447main ()
25448{
25449return uncompress ();
25450 ;
25451 return 0;
25452}
25453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025454if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025455 ac_cv_lib_z_uncompress=yes
25456else
cristy8b350f62009-11-15 23:12:43 +000025457 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025458fi
cristy8b350f62009-11-15 23:12:43 +000025459rm -f core conftest.err conftest.$ac_objext \
25460 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025461LIBS=$ac_check_lib_save_LIBS
25462fi
cristy8b350f62009-11-15 23:12:43 +000025463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025464$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025465if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025466 passed=`expr $passed + 1`
25467else
25468 failed=`expr $failed + 1`
25469fi
25470
cristy8b350f62009-11-15 23:12:43 +000025471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025472$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025473if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025474 $as_echo_n "(cached) " >&6
25475else
25476 ac_check_lib_save_LIBS=$LIBS
25477LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025479/* end confdefs.h. */
25480
25481/* Override any GCC internal prototype to avoid an error.
25482 Use char because int might match the return type of a GCC
25483 builtin and then its argument prototype would still apply. */
25484#ifdef __cplusplus
25485extern "C"
25486#endif
25487char deflate ();
25488int
25489main ()
25490{
25491return deflate ();
25492 ;
25493 return 0;
25494}
25495_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025496if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025497 ac_cv_lib_z_deflate=yes
25498else
cristy8b350f62009-11-15 23:12:43 +000025499 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025500fi
cristy8b350f62009-11-15 23:12:43 +000025501rm -f core conftest.err conftest.$ac_objext \
25502 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025503LIBS=$ac_check_lib_save_LIBS
25504fi
cristy8b350f62009-11-15 23:12:43 +000025505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025506$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025507if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025508 passed=`expr $passed + 1`
25509else
25510 failed=`expr $failed + 1`
25511fi
25512
cristy8b350f62009-11-15 23:12:43 +000025513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025514$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025515if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025516 $as_echo_n "(cached) " >&6
25517else
25518 ac_check_lib_save_LIBS=$LIBS
25519LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025521/* end confdefs.h. */
25522
25523/* Override any GCC internal prototype to avoid an error.
25524 Use char because int might match the return type of a GCC
25525 builtin and then its argument prototype would still apply. */
25526#ifdef __cplusplus
25527extern "C"
25528#endif
25529char inflate ();
25530int
25531main ()
25532{
25533return inflate ();
25534 ;
25535 return 0;
25536}
25537_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025538if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025539 ac_cv_lib_z_inflate=yes
25540else
cristy8b350f62009-11-15 23:12:43 +000025541 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025542fi
cristy8b350f62009-11-15 23:12:43 +000025543rm -f core conftest.err conftest.$ac_objext \
25544 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025545LIBS=$ac_check_lib_save_LIBS
25546fi
cristy8b350f62009-11-15 23:12:43 +000025547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025548$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025549if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025550 passed=`expr $passed + 1`
25551else
25552 failed=`expr $failed + 1`
25553fi
25554
cristy8b350f62009-11-15 23:12:43 +000025555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025556$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025557if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025558 $as_echo_n "(cached) " >&6
25559else
25560 ac_check_lib_save_LIBS=$LIBS
25561LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025563/* end confdefs.h. */
25564
25565/* Override any GCC internal prototype to avoid an error.
25566 Use char because int might match the return type of a GCC
25567 builtin and then its argument prototype would still apply. */
25568#ifdef __cplusplus
25569extern "C"
25570#endif
25571char gzseek ();
25572int
25573main ()
25574{
25575return gzseek ();
25576 ;
25577 return 0;
25578}
25579_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025580if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025581 ac_cv_lib_z_gzseek=yes
25582else
cristy8b350f62009-11-15 23:12:43 +000025583 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025584fi
cristy8b350f62009-11-15 23:12:43 +000025585rm -f core conftest.err conftest.$ac_objext \
25586 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025587LIBS=$ac_check_lib_save_LIBS
25588fi
cristy8b350f62009-11-15 23:12:43 +000025589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000025590$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025591if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025592 passed=`expr $passed + 1`
25593else
25594 failed=`expr $failed + 1`
25595fi
25596
cristy8b350f62009-11-15 23:12:43 +000025597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025598$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025599if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025600 $as_echo_n "(cached) " >&6
25601else
25602 ac_check_lib_save_LIBS=$LIBS
25603LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025605/* end confdefs.h. */
25606
25607/* Override any GCC internal prototype to avoid an error.
25608 Use char because int might match the return type of a GCC
25609 builtin and then its argument prototype would still apply. */
25610#ifdef __cplusplus
25611extern "C"
25612#endif
25613char gztell ();
25614int
25615main ()
25616{
25617return gztell ();
25618 ;
25619 return 0;
25620}
25621_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025622if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025623 ac_cv_lib_z_gztell=yes
25624else
cristy8b350f62009-11-15 23:12:43 +000025625 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000025626fi
cristy8b350f62009-11-15 23:12:43 +000025627rm -f core conftest.err conftest.$ac_objext \
25628 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025629LIBS=$ac_check_lib_save_LIBS
25630fi
cristy8b350f62009-11-15 23:12:43 +000025631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000025632$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025633if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025634 passed=`expr $passed + 1`
25635else
25636 failed=`expr $failed + 1`
25637fi
25638
cristy8b350f62009-11-15 23:12:43 +000025639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025640$as_echo_n "checking if ZLIB package is complete... " >&6; }
25641 if test $passed -gt 0; then
25642 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025644$as_echo "no -- some components failed test" >&6; }
25645 have_zlib='no (failed tests)'
25646 else
25647 ZLIB_LIBS='-lz'
25648 LIBS="$ZLIB_LIBS $LIBS"
25649
cristy8b350f62009-11-15 23:12:43 +000025650$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025651
cristy8b350f62009-11-15 23:12:43 +000025652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025653$as_echo "yes" >&6; }
25654 have_zlib='yes'
25655 fi
25656 else
cristy8b350f62009-11-15 23:12:43 +000025657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025658$as_echo "no" >&6; }
25659 fi
25660fi
25661 if test "$have_zlib" = 'yes'; then
25662 ZLIB_DELEGATE_TRUE=
25663 ZLIB_DELEGATE_FALSE='#'
25664else
25665 ZLIB_DELEGATE_TRUE='#'
25666 ZLIB_DELEGATE_FALSE=
25667fi
25668
25669
25670
25671#
25672# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
25673#
25674LIB_DL=''
25675if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025677$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025678if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025679 $as_echo_n "(cached) " >&6
25680else
25681 ac_check_lib_save_LIBS=$LIBS
25682LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025684/* end confdefs.h. */
25685
25686/* Override any GCC internal prototype to avoid an error.
25687 Use char because int might match the return type of a GCC
25688 builtin and then its argument prototype would still apply. */
25689#ifdef __cplusplus
25690extern "C"
25691#endif
25692char dlopen ();
25693int
25694main ()
25695{
25696return dlopen ();
25697 ;
25698 return 0;
25699}
25700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025701if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025702 ac_cv_lib_dl_dlopen=yes
25703else
cristy8b350f62009-11-15 23:12:43 +000025704 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000025705fi
cristy8b350f62009-11-15 23:12:43 +000025706rm -f core conftest.err conftest.$ac_objext \
25707 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025708LIBS=$ac_check_lib_save_LIBS
25709fi
cristy8b350f62009-11-15 23:12:43 +000025710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000025711$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025712if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025713 LIB_DL='-ldl'
25714fi
25715
25716 LIBS="$LIB_DL $LIBS"
25717fi
25718
25719
25720
25721#
25722# Check for Autotrace delegate library.
25723#
25724
25725# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000025726if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025727 withval=$with_autotrace; with_autotrace=$withval
25728else
25729 with_autotrace='no'
25730fi
25731
25732
25733if test "$with_autotrace" != 'yes'; then
25734 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
25735fi
25736
25737have_autotrace='no'
25738AUTOTRACE_CFLAGS=""
25739AUTOTRACE_LIBS=""
25740AUTOTRACE_PKG=""
25741if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025743$as_echo "-------------------------------------------------------------" >&6; }
25744
25745pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025747$as_echo_n "checking for AUTOTRACE... " >&6; }
25748
25749if test -n "$AUTOTRACE_CFLAGS"; then
25750 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
25751 elif test -n "$PKG_CONFIG"; then
25752 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025754 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25755 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25757 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025758 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
25759else
25760 pkg_failed=yes
25761fi
25762 else
25763 pkg_failed=untried
25764fi
25765if test -n "$AUTOTRACE_LIBS"; then
25766 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
25767 elif test -n "$PKG_CONFIG"; then
25768 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025769 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025770 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25771 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25773 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025774 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
25775else
25776 pkg_failed=yes
25777fi
25778 else
25779 pkg_failed=untried
25780fi
25781
25782
25783
25784if test $pkg_failed = yes; then
25785
25786if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25787 _pkg_short_errors_supported=yes
25788else
25789 _pkg_short_errors_supported=no
25790fi
25791 if test $_pkg_short_errors_supported = yes; then
25792 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
25793 else
25794 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
25795 fi
25796 # Put the nasty error message in config.log where it belongs
25797 echo "$AUTOTRACE_PKG_ERRORS" >&5
25798
cristy8b350f62009-11-15 23:12:43 +000025799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025800$as_echo "no" >&6; }
25801 have_autotrace=no
25802elif test $pkg_failed = untried; then
25803 have_autotrace=no
25804else
25805 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
25806 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000025807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025808$as_echo "yes" >&6; }
25809 have_autotrace=yes
25810fi
cristy8b350f62009-11-15 23:12:43 +000025811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025812$as_echo "" >&6; }
25813fi
25814
25815if test "$have_autotrace" = 'yes'; then
25816 failed=0
25817
cristy8b350f62009-11-15 23:12:43 +000025818$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025819
25820 if test "$with_modules" = 'no'; then
25821 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
25822 fi
25823fi
25824
25825 if test "$have_autotrace" = 'yes'; then
25826 AUTOTRACE_DELEGATE_TRUE=
25827 AUTOTRACE_DELEGATE_FALSE='#'
25828else
25829 AUTOTRACE_DELEGATE_TRUE='#'
25830 AUTOTRACE_DELEGATE_FALSE=
25831fi
25832
25833
25834
25835
25836
25837#
25838# Check for Display Postscript delegate library.
25839#
25840
25841# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000025842if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025843 withval=$with_dps; with_dps=$withval
25844else
25845 with_dps='yes'
25846fi
25847
25848
25849if test "$with_dps" != 'yes'; then
25850 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
25851fi
25852
25853have_dps='no'
25854DPS_LIBS=''
25855if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025857$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000025859$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025861$as_echo "" >&6; }
25862 failed=0
25863 passed=0
25864 PERSIST_CPPFLAGS="$CPPFLAGS"
25865 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000025866 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
25867if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025868 passed=`expr $passed + 1`
25869else
25870 failed=`expr $failed + 1`
25871fi
25872
25873
25874 # DPS issues:
25875 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25876 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25877 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25878 # ImageMagick itself doesn't use -lXt.
25879 have_libdps='no'
25880 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000025881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025882$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025883if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025884 $as_echo_n "(cached) " >&6
25885else
25886 ac_check_lib_save_LIBS=$LIBS
25887LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025889/* end confdefs.h. */
25890
25891/* Override any GCC internal prototype to avoid an error.
25892 Use char because int might match the return type of a GCC
25893 builtin and then its argument prototype would still apply. */
25894#ifdef __cplusplus
25895extern "C"
25896#endif
25897char DPSInitialize ();
25898int
25899main ()
25900{
25901return DPSInitialize ();
25902 ;
25903 return 0;
25904}
25905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025906if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025907 ac_cv_lib_dps_DPSInitialize=yes
25908else
cristy8b350f62009-11-15 23:12:43 +000025909 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025910fi
cristy8b350f62009-11-15 23:12:43 +000025911rm -f core conftest.err conftest.$ac_objext \
25912 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025913LIBS=$ac_check_lib_save_LIBS
25914fi
cristy8b350f62009-11-15 23:12:43 +000025915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025916$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025917if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025918 have_libdps='yes'
25919else
25920 have_libdps='no'
25921fi
25922
25923 if test "$have_libdps" != 'yes'; then
25924 # Unset cache variable so we can try again.
25925 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000025926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025927$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025928if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025929 $as_echo_n "(cached) " >&6
25930else
25931 ac_check_lib_save_LIBS=$LIBS
25932LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025934/* end confdefs.h. */
25935
25936/* Override any GCC internal prototype to avoid an error.
25937 Use char because int might match the return type of a GCC
25938 builtin and then its argument prototype would still apply. */
25939#ifdef __cplusplus
25940extern "C"
25941#endif
25942char DPSInitialize ();
25943int
25944main ()
25945{
25946return DPSInitialize ();
25947 ;
25948 return 0;
25949}
25950_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025951if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025952 ac_cv_lib_dps_DPSInitialize=yes
25953else
cristy8b350f62009-11-15 23:12:43 +000025954 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025955fi
cristy8b350f62009-11-15 23:12:43 +000025956rm -f core conftest.err conftest.$ac_objext \
25957 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025958LIBS=$ac_check_lib_save_LIBS
25959fi
cristy8b350f62009-11-15 23:12:43 +000025960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025961$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025962if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025963 have_libdps='yes'
25964else
25965 have_libdps='no'
25966fi
25967
25968 if test "$have_libdps" = 'yes'; then
25969 LIBDPS_XT='-lXt'
25970 fi
25971 fi
25972 if test "$have_libdps" = 'yes'; then
25973 passed=`expr $passed + 1`
25974 else
25975 failed=`expr $failed + 1`
25976 fi
cristy8b350f62009-11-15 23:12:43 +000025977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025978$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025979if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025980 $as_echo_n "(cached) " >&6
25981else
25982 ac_check_lib_save_LIBS=$LIBS
25983LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025985/* end confdefs.h. */
25986
25987/* Override any GCC internal prototype to avoid an error.
25988 Use char because int might match the return type of a GCC
25989 builtin and then its argument prototype would still apply. */
25990#ifdef __cplusplus
25991extern "C"
25992#endif
25993char XDPSPixelsPerPoint ();
25994int
25995main ()
25996{
25997return XDPSPixelsPerPoint ();
25998 ;
25999 return 0;
26000}
26001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026002if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026003 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26004else
cristy8b350f62009-11-15 23:12:43 +000026005 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026006fi
cristy8b350f62009-11-15 23:12:43 +000026007rm -f core conftest.err conftest.$ac_objext \
26008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026009LIBS=$ac_check_lib_save_LIBS
26010fi
cristy8b350f62009-11-15 23:12:43 +000026011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026012$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026013if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026014 passed=`expr $passed + 1`
26015else
26016 failed=`expr $failed + 1`
26017fi
26018
cristy8b350f62009-11-15 23:12:43 +000026019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026020$as_echo_n "checking if DPS package is complete... " >&6; }
26021 if test $passed -gt 0; then
26022 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026024$as_echo "no -- some components failed test" >&6; }
26025 have_dps='no (failed tests)'
26026 CPPFLAGS="$PERSIST_CPPFLAGS"
26027 else
26028 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26029 LIBS="$DPS_LIBS $LIBS"
26030
cristy8b350f62009-11-15 23:12:43 +000026031$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026032
cristy8b350f62009-11-15 23:12:43 +000026033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026034$as_echo "yes" >&6; }
26035 have_dps='yes'
26036 fi
26037 else
cristy8b350f62009-11-15 23:12:43 +000026038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026039$as_echo "no" >&6; }
26040 CPPFLAGS=$PERSIST_CPPFLAGS
26041 fi
26042fi
26043 if test "$have_dps" = 'yes'; then
26044 DPS_DELEGATE_TRUE=
26045 DPS_DELEGATE_FALSE='#'
26046else
26047 DPS_DELEGATE_TRUE='#'
26048 DPS_DELEGATE_FALSE=
26049fi
26050
26051
26052
26053
26054#
26055# Check for DJVU delegate library.
26056#
26057
26058# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026059if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026060 withval=$with_djvu; with_djvu=$withval
26061else
26062 with_djvu='yes'
26063fi
26064
26065
26066if test "$with_djvu" != 'yes'; then
26067 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26068fi
26069
26070have_djvu='no'
26071DJVU_LIBS=''
26072if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026074$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026076$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026078$as_echo "" >&6; }
26079 failed=0
26080 passed=0
cristy8b350f62009-11-15 23:12:43 +000026081 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26082if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026083 passed=`expr $passed + 1`
26084else
26085 failed=`expr $failed + 1`
26086fi
26087
26088
cristy8b350f62009-11-15 23:12:43 +000026089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026090$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026091if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026092 $as_echo_n "(cached) " >&6
26093else
26094 ac_check_lib_save_LIBS=$LIBS
26095LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026097/* end confdefs.h. */
26098
26099/* Override any GCC internal prototype to avoid an error.
26100 Use char because int might match the return type of a GCC
26101 builtin and then its argument prototype would still apply. */
26102#ifdef __cplusplus
26103extern "C"
26104#endif
26105char ddjvu_context_create ();
26106int
26107main ()
26108{
26109return ddjvu_context_create ();
26110 ;
26111 return 0;
26112}
26113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026114if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026115 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26116else
cristy8b350f62009-11-15 23:12:43 +000026117 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026118fi
cristy8b350f62009-11-15 23:12:43 +000026119rm -f core conftest.err conftest.$ac_objext \
26120 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026121LIBS=$ac_check_lib_save_LIBS
26122fi
cristy8b350f62009-11-15 23:12:43 +000026123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026124$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026125if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026126 passed=`expr $passed + 1`
26127else
26128 failed=`expr $failed + 1`
26129fi
26130
cristy8b350f62009-11-15 23:12:43 +000026131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026132$as_echo_n "checking if DJVU package is complete... " >&6; }
26133 if test $passed -gt 0; then
26134 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026136$as_echo "no -- some components failed test" >&6; }
26137 have_djvu='no (failed tests)'
26138 else
26139 DJVU_LIBS='-ldjvulibre'
26140 LIBS="$DJVU_LIBS $LIBS"
26141
cristy8b350f62009-11-15 23:12:43 +000026142$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026143
cristy8b350f62009-11-15 23:12:43 +000026144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026145$as_echo "yes" >&6; }
26146 have_djvu='yes'
26147 fi
26148 else
cristy8b350f62009-11-15 23:12:43 +000026149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026150$as_echo "no" >&6; }
26151 fi
26152fi
26153 if test "$have_djvu" = 'yes'; then
26154 DJVU_DELEGATE_TRUE=
26155 DJVU_DELEGATE_FALSE='#'
26156else
26157 DJVU_DELEGATE_TRUE='#'
26158 DJVU_DELEGATE_FALSE=
26159fi
26160
26161
26162
26163
26164#
cristy430a7312010-01-21 20:44:04 +000026165# Set DejaVu font directory.
26166#
26167
26168# Check whether --with-dejavu-font-dir was given.
26169if test "${with_dejavu_font_dir+set}" = set; then :
26170 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26171else
26172 with_dejavu_font_dir='default'
26173fi
26174
26175
26176if test "$with_dejavu_font_dir" != 'default'; then
26177 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26178fi
26179
26180
26181#
cristy3ed852e2009-09-05 21:47:34 +000026182# Check for FFTW delegate library.
26183#
26184
26185# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026186if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026187 withval=$with_fftw; with_fftw=$withval
26188else
26189 with_fftw='yes'
26190fi
26191
26192
26193if test "$with_fftw" != 'yes'; then
26194 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26195fi
26196
26197have_fftw='no'
26198FFTW_LIBS=''
26199if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026201$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026203$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026205$as_echo "" >&6; }
26206 failed=0
26207 passed=0
cristy8b350f62009-11-15 23:12:43 +000026208 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26209if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026210 passed=`expr $passed + 1`
26211else
26212 failed=`expr $failed + 1`
26213fi
26214
26215
cristy8b350f62009-11-15 23:12:43 +000026216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026217$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026218if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026219 $as_echo_n "(cached) " >&6
26220else
26221 ac_check_lib_save_LIBS=$LIBS
26222LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026224/* end confdefs.h. */
26225
26226/* Override any GCC internal prototype to avoid an error.
26227 Use char because int might match the return type of a GCC
26228 builtin and then its argument prototype would still apply. */
26229#ifdef __cplusplus
26230extern "C"
26231#endif
26232char fftw_execute ();
26233int
26234main ()
26235{
26236return fftw_execute ();
26237 ;
26238 return 0;
26239}
26240_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026241if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026242 ac_cv_lib_fftw3_fftw_execute=yes
26243else
cristy8b350f62009-11-15 23:12:43 +000026244 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026245fi
cristy8b350f62009-11-15 23:12:43 +000026246rm -f core conftest.err conftest.$ac_objext \
26247 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026248LIBS=$ac_check_lib_save_LIBS
26249fi
cristy8b350f62009-11-15 23:12:43 +000026250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026251$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026252if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026253 passed=`expr $passed + 1`
26254else
26255 failed=`expr $failed + 1`
26256fi
26257
cristy8b350f62009-11-15 23:12:43 +000026258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026259$as_echo_n "checking if FFTW package is complete... " >&6; }
26260 if test $passed -gt 0; then
26261 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026263$as_echo "no -- some components failed test" >&6; }
26264 have_fftw='no (failed tests)'
26265 else
26266 FFTW_LIBS='-lfftw3'
26267 LIBS="$FFTW_LIBS $LIBS"
26268
cristy8b350f62009-11-15 23:12:43 +000026269$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026270
cristy8b350f62009-11-15 23:12:43 +000026271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026272$as_echo "yes" >&6; }
26273 have_fftw='yes'
26274 fi
26275 else
cristy8b350f62009-11-15 23:12:43 +000026276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026277$as_echo "no" >&6; }
26278 fi
26279fi
26280 if test "$have_fftw" = 'yes'; then
26281 FFTW_DELEGATE_TRUE=
26282 FFTW_DELEGATE_FALSE='#'
26283else
26284 FFTW_DELEGATE_TRUE='#'
26285 FFTW_DELEGATE_FALSE=
26286fi
26287
26288
26289
26290
26291#
26292# Check for FlashPIX delegate library.
26293#
26294
26295# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026296if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026297 withval=$with_fpx; with_fpx=$withval
26298else
26299 with_fpx='yes'
26300fi
26301
26302
26303if test "$with_fpx" != 'yes'; then
26304 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26305fi
26306
26307have_fpx='no'
26308FPX_LIBS=''
26309if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026311$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026313$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026315$as_echo "" >&6; }
26316 failed=0
26317 passed=0
26318 ac_ext=cpp
26319ac_cpp='$CXXCPP $CPPFLAGS'
26320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26323
26324
cristy8b350f62009-11-15 23:12:43 +000026325ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26326if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026327 passed=`expr $passed + 1`
26328else
26329 failed=`expr $failed + 1`
26330fi
26331
26332
cristy8b350f62009-11-15 23:12:43 +000026333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026334$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026335if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026336 $as_echo_n "(cached) " >&6
26337else
26338 ac_check_lib_save_LIBS=$LIBS
26339LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026341/* end confdefs.h. */
26342
26343/* Override any GCC internal prototype to avoid an error.
26344 Use char because int might match the return type of a GCC
26345 builtin and then its argument prototype would still apply. */
26346#ifdef __cplusplus
26347extern "C"
26348#endif
26349char FPX_OpenImageByFilename ();
26350int
26351main ()
26352{
26353return FPX_OpenImageByFilename ();
26354 ;
26355 return 0;
26356}
26357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026358if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026359 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26360else
cristy8b350f62009-11-15 23:12:43 +000026361 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026362fi
cristy8b350f62009-11-15 23:12:43 +000026363rm -f core conftest.err conftest.$ac_objext \
26364 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026365LIBS=$ac_check_lib_save_LIBS
26366fi
cristy8b350f62009-11-15 23:12:43 +000026367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026368$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026369if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026370 passed=`expr $passed + 1`
26371else
26372 failed=`expr $failed + 1`
26373fi
26374
26375 ac_ext=c
26376ac_cpp='$CPP $CPPFLAGS'
26377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26379ac_compiler_gnu=$ac_cv_c_compiler_gnu
26380
cristy8b350f62009-11-15 23:12:43 +000026381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026382$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26383 if test $passed -gt 0; then
26384 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026386$as_echo "no -- some components failed test" >&6; }
26387 have_fpx='no (failed tests)'
26388 else
26389 FPX_LIBS='-lfpx'
26390
cristy8b350f62009-11-15 23:12:43 +000026391$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026392
cristy8b350f62009-11-15 23:12:43 +000026393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026394$as_echo "yes" >&6; }
26395 have_fpx='yes'
26396 PERLMAINCC="$CXX"
26397 fi
26398 else
cristy8b350f62009-11-15 23:12:43 +000026399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026400$as_echo "no" >&6; }
26401 fi
26402fi
26403 if test "$have_fpx" = 'yes'; then
26404 FPX_DELEGATE_TRUE=
26405 FPX_DELEGATE_FALSE='#'
26406else
26407 FPX_DELEGATE_TRUE='#'
26408 FPX_DELEGATE_FALSE=
26409fi
26410
26411
26412
26413
26414#
26415# Check for fontconfig delegate library.
26416#
26417
26418# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026419if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026420 withval=$with_fontconfig; with_fontconfig=$withval
26421else
26422 with_fontconfig=$have_x
26423fi
26424
26425
26426if test "$with_fontconfig" != 'yes'; then
26427 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26428fi
26429
26430have_fontconfig='no'
26431FONTCONFIG_CFLAGS=""
26432FONTCONFIG_LIBS=""
26433FONTCONFIG_PKG=""
26434if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026436$as_echo "-------------------------------------------------------------" >&6; }
26437
26438pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026440$as_echo_n "checking for FONTCONFIG... " >&6; }
26441
26442if test -n "$FONTCONFIG_CFLAGS"; then
26443 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26444 elif test -n "$PKG_CONFIG"; then
26445 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026446 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026447 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26448 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26450 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026451 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26452else
26453 pkg_failed=yes
26454fi
26455 else
26456 pkg_failed=untried
26457fi
26458if test -n "$FONTCONFIG_LIBS"; then
26459 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26460 elif test -n "$PKG_CONFIG"; then
26461 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026463 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26464 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26466 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026467 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26468else
26469 pkg_failed=yes
26470fi
26471 else
26472 pkg_failed=untried
26473fi
26474
26475
26476
26477if test $pkg_failed = yes; then
26478
26479if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26480 _pkg_short_errors_supported=yes
26481else
26482 _pkg_short_errors_supported=no
26483fi
26484 if test $_pkg_short_errors_supported = yes; then
26485 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26486 else
26487 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26488 fi
26489 # Put the nasty error message in config.log where it belongs
26490 echo "$FONTCONFIG_PKG_ERRORS" >&5
26491
cristy8b350f62009-11-15 23:12:43 +000026492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026493$as_echo "no" >&6; }
26494 have_fontconfig=no
26495elif test $pkg_failed = untried; then
26496 have_fontconfig=no
26497else
26498 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26499 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026501$as_echo "yes" >&6; }
26502 have_fontconfig=yes
26503fi
cristy8b350f62009-11-15 23:12:43 +000026504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026505$as_echo "" >&6; }
26506fi
26507
26508if test "$have_fontconfig" = 'yes'; then
26509
cristy8b350f62009-11-15 23:12:43 +000026510$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026511
cristyd09bcf92010-03-25 03:04:45 +000026512 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026513 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026514 fi
cristy3ed852e2009-09-05 21:47:34 +000026515fi
26516
26517 if test "$have_fontconfig" = 'yes'; then
26518 FONTCONFIG_DELEGATE_TRUE=
26519 FONTCONFIG_DELEGATE_FALSE='#'
26520else
26521 FONTCONFIG_DELEGATE_TRUE='#'
26522 FONTCONFIG_DELEGATE_FALSE=
26523fi
26524
26525
26526
26527
26528
26529#
26530# Check for freetype delegate library.
26531#
26532
26533# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026534if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026535 withval=$with_freetype; with_freetype=$withval
26536else
26537 with_freetype='yes'
26538fi
26539
26540
26541
26542if test "$with_freetype" != 'yes'; then
26543 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26544fi
26545
26546have_freetype='no'
26547FREETYPE_LIBS=''
26548if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026550$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026552$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026554$as_echo "" >&6; }
26555 failed=0
26556 passed=0
cristy66291112009-10-03 22:44:36 +000026557 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026558 PERSIST_CPPFLAGS="$CPPFLAGS"
26559 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26560 :
26561 else
26562 freetype_config=''
26563 for ac_prog in freetype-config
26564do
26565 # Extract the first word of "$ac_prog", so it can be a program name with args.
26566set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026568$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026569if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026570 $as_echo_n "(cached) " >&6
26571else
26572 if test -n "$freetype_config"; then
26573 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26574else
26575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26576for as_dir in $PATH
26577do
26578 IFS=$as_save_IFS
26579 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026580 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26582 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026584 break 2
26585 fi
26586done
cristy8b350f62009-11-15 23:12:43 +000026587 done
cristy3ed852e2009-09-05 21:47:34 +000026588IFS=$as_save_IFS
26589
26590fi
26591fi
26592freetype_config=$ac_cv_prog_freetype_config
26593if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000026594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000026595$as_echo "$freetype_config" >&6; }
26596else
cristy8b350f62009-11-15 23:12:43 +000026597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026598$as_echo "no" >&6; }
26599fi
26600
26601
26602 test -n "$freetype_config" && break
26603done
26604 if test -n "$freetype_config"; then
26605 freetype_cflags=`$freetype_config --cflags`
26606 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000026607 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000026608 CPPFLAGS="$freetype_cflags $CPPFLAGS"
26609 fi
26610 fi
26611
26612 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000026613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000026614$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026615if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026616 $as_echo_n "(cached) " >&6
26617else
26618 ac_check_lib_save_LIBS=$LIBS
26619LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026621/* end confdefs.h. */
26622
26623/* Override any GCC internal prototype to avoid an error.
26624 Use char because int might match the return type of a GCC
26625 builtin and then its argument prototype would still apply. */
26626#ifdef __cplusplus
26627extern "C"
26628#endif
26629char FT_Init_FreeType ();
26630int
26631main ()
26632{
26633return FT_Init_FreeType ();
26634 ;
26635 return 0;
26636}
26637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026638if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026639 ac_cv_lib_freetype_FT_Init_FreeType=yes
26640else
cristy8b350f62009-11-15 23:12:43 +000026641 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000026642fi
cristy8b350f62009-11-15 23:12:43 +000026643rm -f core conftest.err conftest.$ac_objext \
26644 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026645LIBS=$ac_check_lib_save_LIBS
26646fi
cristy8b350f62009-11-15 23:12:43 +000026647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000026648$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026649if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026650 FREETYPE_LIBS='-lfreetype'
26651fi
26652
26653 if test "$FREETYPE_LIBS" != ''; then
26654 passed=`expr $passed + 1`
26655 else
26656 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000026657 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026658 fi
26659 fi
26660
cristy8b350f62009-11-15 23:12:43 +000026661 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
26662if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026663 FT2BUILD_H='#include <ft2build.h>'
26664else
26665 ft2build=''
26666fi
26667
26668
cristy8b350f62009-11-15 23:12:43 +000026669 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
26670"
26671if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026672 have_freetype_h='yes'
26673else
26674 have_freetype_h='no'
26675fi
26676
26677
26678 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
26679 passed=`expr $passed + 1`
26680 else
26681 failed=`expr $failed + 1`
26682 CPPFLAGS="$PERSIST_CPPFLAGS"
26683 fi
26684
cristy8b350f62009-11-15 23:12:43 +000026685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026686$as_echo_n "checking if FreeType package is complete... " >&6; }
26687 if test $passed -gt 0; then
26688 if test $failed -gt 0; then
26689 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026691$as_echo "no -- some components failed test" >&6; }
26692 have_freetype='no (failed tests)'
26693 else
26694 LIBS="$FREETYPE_LIBS $LIBS"
26695
cristy8b350f62009-11-15 23:12:43 +000026696$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026697
26698 if test "$ac_cv_header_ft2build_h" = 'yes'; then
26699
cristy8b350f62009-11-15 23:12:43 +000026700$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026701
26702 fi
cristy8b350f62009-11-15 23:12:43 +000026703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026704$as_echo "yes" >&6; }
26705 have_freetype='yes'
26706 fi
26707 else
cristy8b350f62009-11-15 23:12:43 +000026708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026709$as_echo "no" >&6; }
26710 fi
26711fi
26712 if test "$have_freetype" = 'yes'; then
26713 FREETYPE_DELEGATE_TRUE=
26714 FREETYPE_DELEGATE_FALSE='#'
26715else
26716 FREETYPE_DELEGATE_TRUE='#'
26717 FREETYPE_DELEGATE_FALSE=
26718fi
26719
26720
26721
26722
26723
26724#
26725# Check for Ghostscript library or framework.
26726#
26727# Test for iapi.h & test for gsapi_new_instance in -lgs
26728# or -framework Ghostscript
26729
26730
26731# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000026732if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026733 withval=$with_gslib; with_gslib=$withval
26734else
26735 with_gslib='no'
26736fi
26737
26738
cristyb7931f12009-09-25 10:22:21 +000026739gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000026740if test "$with_gslib" != 'yes'; then
26741 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
26742fi
26743
26744have_gslib='no'
26745GS_LIBS=''
26746if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026748$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000026750$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026752$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000026753 framework=0
cristy3ed852e2009-09-05 21:47:34 +000026754 failed=0
26755 passed=0
cristy8b350f62009-11-15 23:12:43 +000026756 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
26757if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026758 passed=`expr $passed + 1`
26759else
26760 failed=`expr $failed + 1`
26761fi
26762
26763
cristy8b350f62009-11-15 23:12:43 +000026764 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
26765if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026766 passed=`expr $passed + 1`
26767else
26768 failed=`expr $failed + 1`
26769fi
26770
26771
cristy8b350f62009-11-15 23:12:43 +000026772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000026773$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026774if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026775 $as_echo_n "(cached) " >&6
26776else
26777 ac_check_framework_save_LIBS=$LIBS
26778LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026780/* end confdefs.h. */
26781
26782/* Override any GCC internal prototype to avoid an error.
26783 Use char because int might match the return type of a GCC
26784 builtin and then its argument prototype would still apply. */
26785#ifdef __cplusplus
26786extern "C"
26787#endif
26788char gsapi_new_instance ();
26789int
26790main ()
26791{
26792return gsapi_new_instance ();
26793 ;
26794 return 0;
26795}
26796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026797if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026798 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
26799else
cristy8b350f62009-11-15 23:12:43 +000026800 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000026801fi
cristy8b350f62009-11-15 23:12:43 +000026802rm -f core conftest.err conftest.$ac_objext \
26803 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026804LIBS=$ac_check_framework_save_LIBS
26805fi
cristy8b350f62009-11-15 23:12:43 +000026806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000026807$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026808if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026809 framework=`expr $framework + 1`
26810else
cristy8b350f62009-11-15 23:12:43 +000026811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000026812$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026813if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026814 $as_echo_n "(cached) " >&6
26815else
26816 ac_check_lib_save_LIBS=$LIBS
26817LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026819/* end confdefs.h. */
26820
26821/* Override any GCC internal prototype to avoid an error.
26822 Use char because int might match the return type of a GCC
26823 builtin and then its argument prototype would still apply. */
26824#ifdef __cplusplus
26825extern "C"
26826#endif
26827char gsapi_new_instance ();
26828int
26829main ()
26830{
26831return gsapi_new_instance ();
26832 ;
26833 return 0;
26834}
26835_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026836if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026837 ac_cv_lib_gs_gsapi_new_instance=yes
26838else
cristy8b350f62009-11-15 23:12:43 +000026839 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000026840fi
cristy8b350f62009-11-15 23:12:43 +000026841rm -f core conftest.err conftest.$ac_objext \
26842 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026843LIBS=$ac_check_lib_save_LIBS
26844fi
cristy8b350f62009-11-15 23:12:43 +000026845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000026846$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026847if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026848 passed=`expr $passed + 1`
26849else
26850 failed=`expr $failed + 1`
26851fi
26852
26853fi
cristy8b350f62009-11-15 23:12:43 +000026854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026855$as_echo_n "checking if Ghostscript package is complete... " >&6; }
26856 if test $passed -gt 0; then
26857 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026859$as_echo "no -- some components failed test" >&6; }
26860 have_gslib='no (failed tests)'
26861 else
26862 if test $framework -gt 0; then
26863 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000026864 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000026865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000026866$as_echo "yes, using framework." >&6; }
26867 else
cristy8b350f62009-11-15 23:12:43 +000026868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000026869$as_echo "yes, using library." >&6; }
26870 GS_LIBS='-lgs'
26871 fi
26872 LIBS="$GS_LIBS $LIBS"
26873
cristy8b350f62009-11-15 23:12:43 +000026874$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026875
26876 have_gslib='yes'
26877 fi
26878 else
cristy8b350f62009-11-15 23:12:43 +000026879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026880$as_echo "no" >&6; }
26881 fi
26882fi
26883 if test "$have_gslib" = 'yes'; then
26884 GS_DELEGATE_TRUE=
26885 GS_DELEGATE_FALSE='#'
26886else
26887 GS_DELEGATE_TRUE='#'
26888 GS_DELEGATE_FALSE=
26889fi
26890
26891
26892
26893# Set default font search path
26894
26895# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000026896if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026897 withval=$with_fontpath; with_fontpath=$withval
26898else
26899 with_fontpath=''
26900fi
26901
26902
26903if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26904 with_fontpath=''
26905else
26906
26907cat >>confdefs.h <<_ACEOF
26908#define MAGICK_FONT_PATH "$with_fontpath"
26909_ACEOF
26910
26911fi
26912if test "$with_fontpath=" != ''; then
26913 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26914fi
26915
26916# Set Ghostscript font directory
26917
26918# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000026919if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026920 withval=$with_gs_font_dir; with_gs_font_dir=$withval
26921else
26922 with_gs_font_dir='default'
26923fi
26924
26925
26926if test "$with_gs_font_dir" != 'default'; then
26927 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26928fi
26929
26930
26931#
26932# Check for GVC delegate library.
26933#
26934
26935# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000026936if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026937 withval=$with_gvc; with_gvc=$withval
26938else
26939 with_gvc='yes'
26940fi
26941
26942
26943if test "$with_gvc" != 'yes'; then
26944 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26945fi
26946
26947GVC_PKG=""
26948if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026950$as_echo "-------------------------------------------------------------" >&6; }
26951
26952pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000026954$as_echo_n "checking for GVC... " >&6; }
26955
26956if test -n "$GVC_CFLAGS"; then
26957 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26958 elif test -n "$PKG_CONFIG"; then
26959 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026960 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026961 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26962 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26964 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026965 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26966else
26967 pkg_failed=yes
26968fi
26969 else
26970 pkg_failed=untried
26971fi
26972if test -n "$GVC_LIBS"; then
26973 pkg_cv_GVC_LIBS="$GVC_LIBS"
26974 elif test -n "$PKG_CONFIG"; then
26975 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026977 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26978 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26980 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026981 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26982else
26983 pkg_failed=yes
26984fi
26985 else
26986 pkg_failed=untried
26987fi
26988
26989
26990
26991if test $pkg_failed = yes; then
26992
26993if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26994 _pkg_short_errors_supported=yes
26995else
26996 _pkg_short_errors_supported=no
26997fi
26998 if test $_pkg_short_errors_supported = yes; then
26999 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27000 else
27001 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27002 fi
27003 # Put the nasty error message in config.log where it belongs
27004 echo "$GVC_PKG_ERRORS" >&5
27005
cristy8b350f62009-11-15 23:12:43 +000027006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027007$as_echo "no" >&6; }
27008 have_gvc=no
27009elif test $pkg_failed = untried; then
27010 have_gvc=no
27011else
27012 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27013 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027015$as_echo "yes" >&6; }
27016 have_gvc=yes
27017fi
cristy8b350f62009-11-15 23:12:43 +000027018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027019$as_echo "" >&6; }
27020fi
27021
27022if test "$have_gvc" = 'yes'; then
27023
cristy8b350f62009-11-15 23:12:43 +000027024$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027025
27026 if test "$with_modules" = 'no'; then
27027 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27028 fi
27029fi
27030
27031 if test "$have_gvc" = 'yes'; then
27032 GVC_DELEGATE_TRUE=
27033 GVC_DELEGATE_FALSE='#'
27034else
27035 GVC_DELEGATE_TRUE='#'
27036 GVC_DELEGATE_FALSE=
27037fi
27038
27039
27040
27041
27042
27043#
27044# Check for JBIG delegate library.
27045#
27046
27047
27048# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027049if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027050 withval=$with_jbig; with_jbig=$withval
27051else
27052 with_jbig='yes'
27053fi
27054
27055
27056have_jbig='no'
27057JBIG_LIBS=''
27058if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027060$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027062$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027064$as_echo "" >&6; }
27065 failed=0
27066 passed=0
cristy8b350f62009-11-15 23:12:43 +000027067 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27068if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027069 passed=`expr $passed + 1`
27070else
27071 failed=`expr $failed + 1`
27072fi
27073
27074
cristy8b350f62009-11-15 23:12:43 +000027075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027076$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027077if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027078 $as_echo_n "(cached) " >&6
27079else
27080 ac_check_lib_save_LIBS=$LIBS
27081LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027083/* end confdefs.h. */
27084
27085/* Override any GCC internal prototype to avoid an error.
27086 Use char because int might match the return type of a GCC
27087 builtin and then its argument prototype would still apply. */
27088#ifdef __cplusplus
27089extern "C"
27090#endif
27091char jbg_dec_init ();
27092int
27093main ()
27094{
27095return jbg_dec_init ();
27096 ;
27097 return 0;
27098}
27099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027100if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027101 ac_cv_lib_jbig_jbg_dec_init=yes
27102else
cristy8b350f62009-11-15 23:12:43 +000027103 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027104fi
cristy8b350f62009-11-15 23:12:43 +000027105rm -f core conftest.err conftest.$ac_objext \
27106 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027107LIBS=$ac_check_lib_save_LIBS
27108fi
cristy8b350f62009-11-15 23:12:43 +000027109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027110$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027111if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027112 passed=`expr $passed + 1`
27113else
27114 failed=`expr $failed + 1`
27115fi
27116
cristy8b350f62009-11-15 23:12:43 +000027117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027118$as_echo_n "checking if JBIG package is complete... " >&6; }
27119 if test $passed -gt 0; then
27120 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027122$as_echo "no -- some components failed test" >&6; }
27123 have_jbig='no (failed tests)'
27124 else
27125 JBIG_LIBS='-ljbig'
27126 LIBS="$JBIG_LIBS $LIBS"
27127
cristy8b350f62009-11-15 23:12:43 +000027128$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027129
cristy8b350f62009-11-15 23:12:43 +000027130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027131$as_echo "yes" >&6; }
27132 have_jbig='yes'
27133 fi
27134 else
cristy8b350f62009-11-15 23:12:43 +000027135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027136$as_echo "no" >&6; }
27137 fi
27138fi
27139 if test "$have_jbig" = 'yes'; then
27140 JBIG_DELEGATE_TRUE=
27141 JBIG_DELEGATE_FALSE='#'
27142else
27143 JBIG_DELEGATE_TRUE='#'
27144 JBIG_DELEGATE_FALSE=
27145fi
27146
27147
27148
27149
27150#
27151# Check for JPEG delegate library.
27152#
27153
27154# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027155if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027156 withval=$with_jpeg; with_jpeg=$withval
27157else
27158 with_jpeg='yes'
27159fi
27160
27161
27162if test "$with_jpeg" != 'yes'; then
27163 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27164fi
27165
27166have_jpeg='no'
27167JPEG_LIBS=''
27168if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027170$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027172$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027174$as_echo "" >&6; }
27175 failed=0
27176 passed=0
cristy8b350f62009-11-15 23:12:43 +000027177 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27178if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027179 passed=`expr $passed + 1`
27180else
27181 failed=`expr $failed + 1`
27182fi
27183
27184
cristy8b350f62009-11-15 23:12:43 +000027185 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27186if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027187 passed=`expr $passed + 1`
27188else
27189 failed=`expr $failed + 1`
27190fi
27191
27192
cristy8b350f62009-11-15 23:12:43 +000027193 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27194if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027195 passed=`expr $passed + 1`
27196else
27197 failed=`expr $failed + 1`
27198fi
27199
27200
cristy8b350f62009-11-15 23:12:43 +000027201 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27202if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027203 passed=`expr $passed + 1`
27204else
27205 failed=`expr $failed + 1`
27206fi
27207
27208
cristy8b350f62009-11-15 23:12:43 +000027209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027210$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027211if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027212 $as_echo_n "(cached) " >&6
27213else
27214 ac_check_lib_save_LIBS=$LIBS
27215LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027217/* end confdefs.h. */
27218
27219/* Override any GCC internal prototype to avoid an error.
27220 Use char because int might match the return type of a GCC
27221 builtin and then its argument prototype would still apply. */
27222#ifdef __cplusplus
27223extern "C"
27224#endif
27225char jpeg_read_header ();
27226int
27227main ()
27228{
27229return jpeg_read_header ();
27230 ;
27231 return 0;
27232}
27233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027234if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027235 ac_cv_lib_jpeg_jpeg_read_header=yes
27236else
cristy8b350f62009-11-15 23:12:43 +000027237 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027238fi
cristy8b350f62009-11-15 23:12:43 +000027239rm -f core conftest.err conftest.$ac_objext \
27240 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027241LIBS=$ac_check_lib_save_LIBS
27242fi
cristy8b350f62009-11-15 23:12:43 +000027243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027244$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027245if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027246 passed=`expr $passed + 1`
27247else
27248 failed=`expr $failed + 1`
27249fi
27250
27251
27252# Test for compatible JPEG library
27253if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027255$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027256if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027257 $as_echo_n "(cached) " >&6
27258else
cristy8b350f62009-11-15 23:12:43 +000027259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027260/* end confdefs.h. */
27261#include <stdio.h>
27262#include <stdlib.h>
27263#include <jpeglib.h>
27264
27265int
27266main ()
27267{
27268
27269#if JPEG_LIB_VERSION < 62
27270#error IJG JPEG library must be version 6b or newer!
27271#endif
27272return 0;
27273
27274 ;
27275 return 0;
27276}
27277_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027278if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027279 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27280else
cristy8b350f62009-11-15 23:12:43 +000027281 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027282fi
cristy3ed852e2009-09-05 21:47:34 +000027283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27284fi
cristy8b350f62009-11-15 23:12:43 +000027285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027286$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27287fi
cristy8b350f62009-11-15 23:12:43 +000027288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027289$as_echo_n "checking if JPEG package is complete... " >&6; }
27290 if test $passed -gt 0; then
27291 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027293$as_echo "no -- some components failed test" >&6; }
27294 have_jpeg='no (failed tests)'
27295 else
27296 JPEG_LIBS='-ljpeg'
27297 LIBS="$JPEG_LIBS $LIBS"
27298
cristy8b350f62009-11-15 23:12:43 +000027299$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027300
cristy8b350f62009-11-15 23:12:43 +000027301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027302$as_echo "yes" >&6; }
27303 have_jpeg='yes'
27304 fi
27305 else
cristy8b350f62009-11-15 23:12:43 +000027306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027307$as_echo "no" >&6; }
27308 fi
27309fi
27310 if test "$have_jpeg" = 'yes'; then
27311 JPEG_DELEGATE_TRUE=
27312 JPEG_DELEGATE_FALSE='#'
27313else
27314 JPEG_DELEGATE_TRUE='#'
27315 JPEG_DELEGATE_FALSE=
27316fi
27317
27318
27319
27320
27321#
27322# Check for JPEG Version 2 delegate library.
27323#
27324
27325# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027326if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027327 withval=$with_jp2; with_jp2=$withval
27328else
27329 with_jp2='yes'
27330fi
27331
27332
27333if test "$with_jp2" != 'yes'; then
27334 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27335fi
27336
27337have_jp2='no'
27338JP2_LIBS=''
27339if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027341$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027343$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027345$as_echo "" >&6; }
27346 failed=0
27347 passed=0
cristy8b350f62009-11-15 23:12:43 +000027348 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27349if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027350 passed=`expr $passed + 1`
27351else
27352 failed=`expr $failed + 1`
27353fi
27354
27355
cristy8b350f62009-11-15 23:12:43 +000027356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027357$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027358if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027359 $as_echo_n "(cached) " >&6
27360else
27361 ac_check_lib_save_LIBS=$LIBS
27362LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027364/* end confdefs.h. */
27365
27366/* Override any GCC internal prototype to avoid an error.
27367 Use char because int might match the return type of a GCC
27368 builtin and then its argument prototype would still apply. */
27369#ifdef __cplusplus
27370extern "C"
27371#endif
27372char jas_stream_fopen ();
27373int
27374main ()
27375{
27376return jas_stream_fopen ();
27377 ;
27378 return 0;
27379}
27380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027381if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027382 ac_cv_lib_jasper_jas_stream_fopen=yes
27383else
cristy8b350f62009-11-15 23:12:43 +000027384 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027385fi
cristy8b350f62009-11-15 23:12:43 +000027386rm -f core conftest.err conftest.$ac_objext \
27387 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027388LIBS=$ac_check_lib_save_LIBS
27389fi
cristy8b350f62009-11-15 23:12:43 +000027390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027391$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027392if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027393 passed=`expr $passed + 1`
27394else
27395 failed=`expr $failed + 1`
27396fi
27397
cristy8b350f62009-11-15 23:12:43 +000027398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027399$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27400 if test $passed -gt 0; then
27401 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027403$as_echo "no -- some components failed test" >&6; }
27404 have_jp2='no (failed tests)'
27405 else
27406 JP2_LIBS='-ljasper'
27407 LIBS="$JP2_LIBS $LIBS"
27408
cristy8b350f62009-11-15 23:12:43 +000027409$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027410
cristy8b350f62009-11-15 23:12:43 +000027411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027412$as_echo "yes" >&6; }
27413 have_jp2='yes'
27414 fi
27415 else
cristy8b350f62009-11-15 23:12:43 +000027416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027417$as_echo "no" >&6; }
27418 fi
27419fi
27420 if test "$have_jp2" = 'yes'; then
27421 JP2_DELEGATE_TRUE=
27422 JP2_DELEGATE_FALSE='#'
27423else
27424 JP2_DELEGATE_TRUE='#'
27425 JP2_DELEGATE_FALSE=
27426fi
27427
27428
27429
27430
27431#
27432# Check for LCMS delegate library.
27433#
27434
27435# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027436if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027437 withval=$with_lcms; with_lcms=$withval
27438else
27439 with_lcms='yes'
27440fi
27441
27442
27443if test "$with_lcms" != 'yes'; then
27444 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27445fi
27446
27447have_lcms='no'
27448LCMS_LIBS=''
27449if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027451$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027453$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027455$as_echo "" >&6; }
27456 failed=0
27457 passed=0
27458 have_lcms_header='no'
cristyd09bcf92010-03-25 03:04:45 +000027459 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27460if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27461 have_lcms_header='yes'
27462fi
27463
27464
27465 if test "$have_lcms_header" = 'yes'; then
27466 passed=`expr $passed + 1`
27467
27468$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27469
27470 else
27471 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms2.h" "ac_cv_header_lcms_lcms2_h" "$ac_includes_default"
27472if test "x$ac_cv_header_lcms_lcms2_h" = x""yes; then :
27473 have_lcms_header='yes'
27474fi
27475
27476
27477 if test "$have_lcms_header" = 'yes'; then
27478 passed=`expr $passed + 1`
27479
27480$as_echo "#define HAVE_LCMS_LCMS2_H 1" >>confdefs.h
27481
27482 else
27483 failed=`expr $failed + 1`
27484 fi
27485 fi
27486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms2" >&5
27487$as_echo_n "checking for cmsOpenProfileFromMem in -llcms2... " >&6; }
27488if test "${ac_cv_lib_lcms2_cmsOpenProfileFromMem+set}" = set; then :
27489 $as_echo_n "(cached) " >&6
27490else
27491 ac_check_lib_save_LIBS=$LIBS
27492LIBS="-llcms2 $LIBS"
27493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27494/* end confdefs.h. */
27495
27496/* Override any GCC internal prototype to avoid an error.
27497 Use char because int might match the return type of a GCC
27498 builtin and then its argument prototype would still apply. */
27499#ifdef __cplusplus
27500extern "C"
27501#endif
27502char cmsOpenProfileFromMem ();
27503int
27504main ()
27505{
27506return cmsOpenProfileFromMem ();
27507 ;
27508 return 0;
27509}
27510_ACEOF
27511if ac_fn_c_try_link "$LINENO"; then :
27512 ac_cv_lib_lcms2_cmsOpenProfileFromMem=yes
27513else
27514 ac_cv_lib_lcms2_cmsOpenProfileFromMem=no
27515fi
27516rm -f core conftest.err conftest.$ac_objext \
27517 conftest$ac_exeext conftest.$ac_ext
27518LIBS=$ac_check_lib_save_LIBS
27519fi
27520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&5
27521$as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&6; }
27522if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromMem" = x""yes; then :
27523 passed=`expr $passed + 1`
27524else
27525 failed=`expr $failed + 1`
27526fi
27527
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS2 package is complete" >&5
27529$as_echo_n "checking if LCMS2 package is complete... " >&6; }
27530 if test $passed -gt 0; then
27531 if test $failed -gt 0; then
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27533$as_echo "no -- some components failed test" >&6; }
27534 have_lcms='no (failed tests)'
27535 else
27536 LCMS_LIBS='-llcms2'
27537 LIBS="$LCMS_LIBS $LIBS"
27538
27539$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
27540
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27542$as_echo "yes" >&6; }
27543 have_lcms='yes'
27544 fi
27545 else
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27547$as_echo "no" >&6; }
27548 fi
27549fi
27550
27551if test "$with_lcms" != 'no'; then
27552if test "$have_lcms" == 'no'; then
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27554$as_echo "-------------------------------------------------------------" >&6; }
27555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
27556$as_echo_n "checking for LCMS... " >&6; }
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27558$as_echo "" >&6; }
27559 failed=0
27560 passed=0
27561 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000027562 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
27563if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027564 have_lcms_header='yes'
27565fi
27566
27567
27568 if test "$have_lcms_header" = 'yes'; then
27569 passed=`expr $passed + 1`
27570
cristy8b350f62009-11-15 23:12:43 +000027571$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027572
27573 else
cristy8b350f62009-11-15 23:12:43 +000027574 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
27575if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027576 have_lcms_header='yes'
27577fi
27578
27579
27580 if test "$have_lcms_header" = 'yes'; then
27581 passed=`expr $passed + 1`
27582
cristy8b350f62009-11-15 23:12:43 +000027583$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027584
27585 else
27586 failed=`expr $failed + 1`
27587 fi
27588 fi
cristy8b350f62009-11-15 23:12:43 +000027589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000027590$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027591if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027592 $as_echo_n "(cached) " >&6
27593else
27594 ac_check_lib_save_LIBS=$LIBS
27595LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027597/* end confdefs.h. */
27598
27599/* Override any GCC internal prototype to avoid an error.
27600 Use char because int might match the return type of a GCC
27601 builtin and then its argument prototype would still apply. */
27602#ifdef __cplusplus
27603extern "C"
27604#endif
27605char cmsOpenProfileFromMem ();
27606int
27607main ()
27608{
27609return cmsOpenProfileFromMem ();
27610 ;
27611 return 0;
27612}
27613_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027614if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027615 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
27616else
cristy8b350f62009-11-15 23:12:43 +000027617 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000027618fi
cristy8b350f62009-11-15 23:12:43 +000027619rm -f core conftest.err conftest.$ac_objext \
27620 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027621LIBS=$ac_check_lib_save_LIBS
27622fi
cristy8b350f62009-11-15 23:12:43 +000027623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027624$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027625if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027626 passed=`expr $passed + 1`
27627else
27628 failed=`expr $failed + 1`
27629fi
27630
cristy8b350f62009-11-15 23:12:43 +000027631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027632$as_echo_n "checking if LCMS package is complete... " >&6; }
27633 if test $passed -gt 0; then
27634 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027636$as_echo "no -- some components failed test" >&6; }
27637 have_lcms='no (failed tests)'
27638 else
27639 LCMS_LIBS='-llcms'
27640 LIBS="$LCMS_LIBS $LIBS"
27641
cristy8b350f62009-11-15 23:12:43 +000027642$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027643
cristy8b350f62009-11-15 23:12:43 +000027644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027645$as_echo "yes" >&6; }
27646 have_lcms='yes'
27647 fi
27648 else
cristy8b350f62009-11-15 23:12:43 +000027649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027650$as_echo "no" >&6; }
27651 fi
27652fi
cristyd09bcf92010-03-25 03:04:45 +000027653fi
cristy3ed852e2009-09-05 21:47:34 +000027654 if test "$have_lcms" = 'yes'; then
27655 LCMS_DELEGATE_TRUE=
27656 LCMS_DELEGATE_FALSE='#'
27657else
27658 LCMS_DELEGATE_TRUE='#'
27659 LCMS_DELEGATE_FALSE=
27660fi
27661
27662
27663
27664
27665#
27666# Check for the LQR (Liquid Rescale) delegate library.
27667#
27668
27669# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000027670if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027671 withval=$with_lqr; with_lqr=$withval
27672else
27673 with_lqr='yes'
27674fi
27675
27676
27677if test "$with_lqr" != 'yes'; then
27678 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
27679fi
27680
27681have_lqr='no'
27682LQR_CFLAGS=""
27683LQR_LIBS=""
27684LQR_PKG=""
27685if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027687$as_echo "-------------------------------------------------------------" >&6; }
27688
27689pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000027691$as_echo_n "checking for LQR... " >&6; }
27692
27693if test -n "$LQR_CFLAGS"; then
27694 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
27695 elif test -n "$PKG_CONFIG"; then
27696 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027697 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027698 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27699 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27701 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027702 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
27703else
27704 pkg_failed=yes
27705fi
27706 else
27707 pkg_failed=untried
27708fi
27709if test -n "$LQR_LIBS"; then
27710 pkg_cv_LQR_LIBS="$LQR_LIBS"
27711 elif test -n "$PKG_CONFIG"; then
27712 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027713 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027714 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27715 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27717 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027718 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
27719else
27720 pkg_failed=yes
27721fi
27722 else
27723 pkg_failed=untried
27724fi
27725
27726
27727
27728if test $pkg_failed = yes; then
27729
27730if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27731 _pkg_short_errors_supported=yes
27732else
27733 _pkg_short_errors_supported=no
27734fi
27735 if test $_pkg_short_errors_supported = yes; then
27736 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
27737 else
27738 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
27739 fi
27740 # Put the nasty error message in config.log where it belongs
27741 echo "$LQR_PKG_ERRORS" >&5
27742
cristy8b350f62009-11-15 23:12:43 +000027743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027744$as_echo "no" >&6; }
27745 have_lqr=no
27746elif test $pkg_failed = untried; then
27747 have_lqr=no
27748else
27749 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
27750 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000027751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027752$as_echo "yes" >&6; }
27753 have_lqr=yes
27754fi
cristy8b350f62009-11-15 23:12:43 +000027755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027756$as_echo "" >&6; }
27757fi
27758
27759if test "$have_lqr" = 'yes'; then
27760
cristy8b350f62009-11-15 23:12:43 +000027761$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027762
27763 CFLAGS="$LQR_CFLAGS $CFLAGS"
27764fi
27765
27766 if test "$have_lqr" = 'yes'; then
27767 LQR_DELEGATE_TRUE=
27768 LQR_DELEGATE_FALSE='#'
27769else
27770 LQR_DELEGATE_TRUE='#'
27771 LQR_DELEGATE_FALSE=
27772fi
27773
27774
27775
27776
27777
27778#
27779# Check for the OpenEXR delegate library.
27780#
27781
27782# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000027783if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027784 withval=$with_openexr; with_openexr=$withval
27785else
27786 with_openexr='yes'
27787fi
27788
27789
27790if test "$with_openexr" != 'yes'; then
27791 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
27792fi
27793
27794have_openexr='no'
27795OPENEXR_CFLAGS=""
27796OPENEXR_LIBS=""
27797OPENEXR_PKG=""
27798if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027800$as_echo "-------------------------------------------------------------" >&6; }
27801
27802pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000027804$as_echo_n "checking for OPENEXR... " >&6; }
27805
27806if test -n "$OPENEXR_CFLAGS"; then
27807 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
27808 elif test -n "$PKG_CONFIG"; then
27809 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027811 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27812 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27814 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027815 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
27816else
27817 pkg_failed=yes
27818fi
27819 else
27820 pkg_failed=untried
27821fi
27822if test -n "$OPENEXR_LIBS"; then
27823 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
27824 elif test -n "$PKG_CONFIG"; then
27825 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027826 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027827 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27828 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27830 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027831 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
27832else
27833 pkg_failed=yes
27834fi
27835 else
27836 pkg_failed=untried
27837fi
27838
27839
27840
27841if test $pkg_failed = yes; then
27842
27843if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27844 _pkg_short_errors_supported=yes
27845else
27846 _pkg_short_errors_supported=no
27847fi
27848 if test $_pkg_short_errors_supported = yes; then
27849 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
27850 else
27851 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
27852 fi
27853 # Put the nasty error message in config.log where it belongs
27854 echo "$OPENEXR_PKG_ERRORS" >&5
27855
cristy8b350f62009-11-15 23:12:43 +000027856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027857$as_echo "no" >&6; }
27858 have_openexr=no
27859elif test $pkg_failed = untried; then
27860 have_openexr=no
27861else
27862 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
27863 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000027864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027865$as_echo "yes" >&6; }
27866 have_openexr=yes
27867fi
cristy8b350f62009-11-15 23:12:43 +000027868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027869$as_echo "" >&6; }
27870fi
27871
27872if test "$have_openexr" = 'yes'; then
27873
cristy8b350f62009-11-15 23:12:43 +000027874$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027875
27876 if test "$with_modules" = 'no'; then
27877 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
27878 fi
27879fi
27880
27881 if test "$have_openexr" = 'yes'; then
27882 OPENEXR_DELEGATE_TRUE=
27883 OPENEXR_DELEGATE_FALSE='#'
27884else
27885 OPENEXR_DELEGATE_TRUE='#'
27886 OPENEXR_DELEGATE_FALSE=
27887fi
27888
27889
27890
27891
27892
27893#
27894# Check for PNG delegate library.
27895#
27896
27897# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000027898if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027899 withval=$with_png; with_png=$withval
27900else
27901 with_png='yes'
27902fi
27903
27904
27905if test "$with_png" != 'yes'; then
27906 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
27907fi
27908
27909have_png='no'
27910PNG_LIBS=''
27911if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027913$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027915$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027917$as_echo "" >&6; }
27918 failed=0
27919 passed=0
cristy8b350f62009-11-15 23:12:43 +000027920 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
27921if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027922 passed=`expr $passed + 1`
27923else
27924 failed=`expr $failed + 1`
27925fi
27926
27927
cristy8b350f62009-11-15 23:12:43 +000027928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000027929$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027930if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027931 $as_echo_n "(cached) " >&6
27932else
27933 ac_check_lib_save_LIBS=$LIBS
27934LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027936/* end confdefs.h. */
27937
27938/* Override any GCC internal prototype to avoid an error.
27939 Use char because int might match the return type of a GCC
27940 builtin and then its argument prototype would still apply. */
27941#ifdef __cplusplus
27942extern "C"
27943#endif
27944char png_get_io_ptr ();
27945int
27946main ()
27947{
27948return png_get_io_ptr ();
27949 ;
27950 return 0;
27951}
27952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027953if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027954 ac_cv_lib_png_png_get_io_ptr=yes
27955else
cristy8b350f62009-11-15 23:12:43 +000027956 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000027957fi
cristy8b350f62009-11-15 23:12:43 +000027958rm -f core conftest.err conftest.$ac_objext \
27959 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027960LIBS=$ac_check_lib_save_LIBS
27961fi
cristy8b350f62009-11-15 23:12:43 +000027962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000027963$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027964if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027965 passed=`expr $passed + 1`
27966else
27967 failed=`expr $failed + 1`
27968fi
27969
cristy8b350f62009-11-15 23:12:43 +000027970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027971$as_echo_n "checking if PNG package is complete... " >&6; }
27972 if test $passed -gt 0; then
27973 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027975$as_echo "no -- some components failed test" >&6; }
27976 have_png='no (failed tests)'
27977 else
27978 PNG_LIBS='-lpng'
27979 LIBS="$PNG_LIBS $LIBS"
27980
cristy8b350f62009-11-15 23:12:43 +000027981$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027982
cristy8b350f62009-11-15 23:12:43 +000027983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027984$as_echo "yes" >&6; }
27985 have_png='yes'
27986 fi
27987 else
cristy8b350f62009-11-15 23:12:43 +000027988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027989$as_echo "no" >&6; }
27990 fi
27991fi
27992 if test "$have_png" = 'yes'; then
27993 PNG_DELEGATE_TRUE=
27994 PNG_DELEGATE_FALSE='#'
27995else
27996 PNG_DELEGATE_TRUE='#'
27997 PNG_DELEGATE_FALSE=
27998fi
27999
28000
28001
28002
28003#
28004# Check for RSVG delegate library.
28005#
28006
28007# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028008if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028009 withval=$with_rsvg; with_rsvg=$withval
28010else
28011 with_rsvg=$have_x
28012fi
28013
28014
28015if test "$with_rsvg" != 'yes'; then
28016 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28017fi
28018
28019have_rsvg='no'
28020have_cairo='no'
28021RSVG_CFLAGS=""
28022RSVG_LIBS=""
28023RSVG_PKG=""
28024if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028026$as_echo "-------------------------------------------------------------" >&6; }
28027
28028pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028030$as_echo_n "checking for RSVG... " >&6; }
28031
28032if test -n "$RSVG_CFLAGS"; then
28033 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28034 elif test -n "$PKG_CONFIG"; then
28035 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028036 { { $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 +000028037 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28038 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28040 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028041 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28042else
28043 pkg_failed=yes
28044fi
28045 else
28046 pkg_failed=untried
28047fi
28048if test -n "$RSVG_LIBS"; then
28049 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28050 elif test -n "$PKG_CONFIG"; then
28051 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028052 { { $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 +000028053 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28054 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28056 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028057 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28058else
28059 pkg_failed=yes
28060fi
28061 else
28062 pkg_failed=untried
28063fi
28064
28065
28066
28067if test $pkg_failed = yes; then
28068
28069if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28070 _pkg_short_errors_supported=yes
28071else
28072 _pkg_short_errors_supported=no
28073fi
28074 if test $_pkg_short_errors_supported = yes; then
28075 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28076 else
28077 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28078 fi
28079 # Put the nasty error message in config.log where it belongs
28080 echo "$RSVG_PKG_ERRORS" >&5
28081
cristy8b350f62009-11-15 23:12:43 +000028082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028083$as_echo "no" >&6; }
28084 have_rsvg=no
28085elif test $pkg_failed = untried; then
28086 have_rsvg=no
28087else
28088 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28089 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028091$as_echo "yes" >&6; }
28092 have_rsvg=yes
28093fi
cristy8b350f62009-11-15 23:12:43 +000028094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028095$as_echo "" >&6; }
28096
28097pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028099$as_echo_n "checking for CAIRO_SVG... " >&6; }
28100
28101if test -n "$CAIRO_SVG_CFLAGS"; then
28102 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28103 elif test -n "$PKG_CONFIG"; then
28104 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028105 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028106 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28107 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28109 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028110 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28111else
28112 pkg_failed=yes
28113fi
28114 else
28115 pkg_failed=untried
28116fi
28117if test -n "$CAIRO_SVG_LIBS"; then
28118 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28119 elif test -n "$PKG_CONFIG"; then
28120 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028121 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028122 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28123 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28125 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028126 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28127else
28128 pkg_failed=yes
28129fi
28130 else
28131 pkg_failed=untried
28132fi
28133
28134
28135
28136if test $pkg_failed = yes; then
28137
28138if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28139 _pkg_short_errors_supported=yes
28140else
28141 _pkg_short_errors_supported=no
28142fi
28143 if test $_pkg_short_errors_supported = yes; then
28144 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28145 else
28146 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28147 fi
28148 # Put the nasty error message in config.log where it belongs
28149 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28150
cristy8b350f62009-11-15 23:12:43 +000028151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028152$as_echo "no" >&6; }
28153 have_cairo=no
28154elif test $pkg_failed = untried; then
28155 have_cairo=no
28156else
28157 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28158 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028160$as_echo "yes" >&6; }
28161 have_cairo=yes
28162fi
cristy8b350f62009-11-15 23:12:43 +000028163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028164$as_echo "" >&6; }
28165fi
28166
28167if test "$have_rsvg" = 'yes'; then
28168
cristy8b350f62009-11-15 23:12:43 +000028169$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028170
28171 if test "$with_modules" = 'no'; then
28172 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28173 fi
28174fi
28175
28176if test "$have_cairo" = 'yes'; then
28177
cristy8b350f62009-11-15 23:12:43 +000028178$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028179
28180 if test "$with_modules" = 'no'; then
28181 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28182 fi
28183fi
28184
28185 if test "$have_rsvg" = 'yes'; then
28186 RSVG_DELEGATE_TRUE=
28187 RSVG_DELEGATE_FALSE='#'
28188else
28189 RSVG_DELEGATE_TRUE='#'
28190 RSVG_DELEGATE_FALSE=
28191fi
28192
28193 if test "$have_cairo" = 'yes'; then
28194 CAIRO_DELEGATE_TRUE=
28195 CAIRO_DELEGATE_FALSE='#'
28196else
28197 CAIRO_DELEGATE_TRUE='#'
28198 CAIRO_DELEGATE_FALSE=
28199fi
28200
28201
28202
28203
28204
28205#
28206# Check for TIFF delegate library.
28207#
28208
28209# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028210if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028211 withval=$with_tiff; with_tiff=$withval
28212else
28213 with_tiff='yes'
28214fi
28215
28216
28217if test "$with_tiff" != 'yes'; then
28218 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28219fi
28220
28221have_tiff='no'
28222TIFF_LIBS=''
28223if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028225$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028227$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028229$as_echo "" >&6; }
28230 failed=0
28231 passed=0
cristy8b350f62009-11-15 23:12:43 +000028232 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28233if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028234 passed=`expr $passed + 1`
28235else
28236 failed=`expr $failed + 1`
28237fi
28238
28239
cristy8b350f62009-11-15 23:12:43 +000028240 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28241if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028242 passed=`expr $passed + 1`
28243else
28244 failed=`expr $failed + 1`
28245fi
28246
28247
cristy8b350f62009-11-15 23:12:43 +000028248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028249$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028250if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028251 $as_echo_n "(cached) " >&6
28252else
28253 ac_check_lib_save_LIBS=$LIBS
28254LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028256/* end confdefs.h. */
28257
28258/* Override any GCC internal prototype to avoid an error.
28259 Use char because int might match the return type of a GCC
28260 builtin and then its argument prototype would still apply. */
28261#ifdef __cplusplus
28262extern "C"
28263#endif
28264char TIFFOpen ();
28265int
28266main ()
28267{
28268return TIFFOpen ();
28269 ;
28270 return 0;
28271}
28272_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028273if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028274 ac_cv_lib_tiff_TIFFOpen=yes
28275else
cristy8b350f62009-11-15 23:12:43 +000028276 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028277fi
cristy8b350f62009-11-15 23:12:43 +000028278rm -f core conftest.err conftest.$ac_objext \
28279 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028280LIBS=$ac_check_lib_save_LIBS
28281fi
cristy8b350f62009-11-15 23:12:43 +000028282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028283$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028284if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028285 passed=`expr $passed + 1`
28286else
28287 failed=`expr $failed + 1`
28288fi
28289
cristy8b350f62009-11-15 23:12:43 +000028290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028291$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028292if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028293 $as_echo_n "(cached) " >&6
28294else
28295 ac_check_lib_save_LIBS=$LIBS
28296LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028298/* end confdefs.h. */
28299
28300/* Override any GCC internal prototype to avoid an error.
28301 Use char because int might match the return type of a GCC
28302 builtin and then its argument prototype would still apply. */
28303#ifdef __cplusplus
28304extern "C"
28305#endif
28306char TIFFClientOpen ();
28307int
28308main ()
28309{
28310return TIFFClientOpen ();
28311 ;
28312 return 0;
28313}
28314_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028315if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028316 ac_cv_lib_tiff_TIFFClientOpen=yes
28317else
cristy8b350f62009-11-15 23:12:43 +000028318 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028319fi
cristy8b350f62009-11-15 23:12:43 +000028320rm -f core conftest.err conftest.$ac_objext \
28321 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028322LIBS=$ac_check_lib_save_LIBS
28323fi
cristy8b350f62009-11-15 23:12:43 +000028324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028325$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028326if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028327 passed=`expr $passed + 1`
28328else
28329 failed=`expr $failed + 1`
28330fi
28331
cristy8b350f62009-11-15 23:12:43 +000028332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028333$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028334if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028335 $as_echo_n "(cached) " >&6
28336else
28337 ac_check_lib_save_LIBS=$LIBS
28338LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028340/* end confdefs.h. */
28341
28342/* Override any GCC internal prototype to avoid an error.
28343 Use char because int might match the return type of a GCC
28344 builtin and then its argument prototype would still apply. */
28345#ifdef __cplusplus
28346extern "C"
28347#endif
28348char TIFFIsByteSwapped ();
28349int
28350main ()
28351{
28352return TIFFIsByteSwapped ();
28353 ;
28354 return 0;
28355}
28356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028357if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028358 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28359else
cristy8b350f62009-11-15 23:12:43 +000028360 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028361fi
cristy8b350f62009-11-15 23:12:43 +000028362rm -f core conftest.err conftest.$ac_objext \
28363 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028364LIBS=$ac_check_lib_save_LIBS
28365fi
cristy8b350f62009-11-15 23:12:43 +000028366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028367$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028368if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028369 passed=`expr $passed + 1`
28370else
28371 failed=`expr $failed + 1`
28372fi
28373
cristy8b350f62009-11-15 23:12:43 +000028374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028375$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028376if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028377 $as_echo_n "(cached) " >&6
28378else
28379 ac_check_lib_save_LIBS=$LIBS
28380LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028382/* end confdefs.h. */
28383
28384/* Override any GCC internal prototype to avoid an error.
28385 Use char because int might match the return type of a GCC
28386 builtin and then its argument prototype would still apply. */
28387#ifdef __cplusplus
28388extern "C"
28389#endif
28390char TIFFReadRGBATile ();
28391int
28392main ()
28393{
28394return TIFFReadRGBATile ();
28395 ;
28396 return 0;
28397}
28398_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028399if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028400 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28401else
cristy8b350f62009-11-15 23:12:43 +000028402 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028403fi
cristy8b350f62009-11-15 23:12:43 +000028404rm -f core conftest.err conftest.$ac_objext \
28405 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028406LIBS=$ac_check_lib_save_LIBS
28407fi
cristy8b350f62009-11-15 23:12:43 +000028408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028409$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028410if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028411 passed=`expr $passed + 1`
28412else
28413 failed=`expr $failed + 1`
28414fi
28415
cristy8b350f62009-11-15 23:12:43 +000028416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028417$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028418if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028419 $as_echo_n "(cached) " >&6
28420else
28421 ac_check_lib_save_LIBS=$LIBS
28422LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028424/* end confdefs.h. */
28425
28426/* Override any GCC internal prototype to avoid an error.
28427 Use char because int might match the return type of a GCC
28428 builtin and then its argument prototype would still apply. */
28429#ifdef __cplusplus
28430extern "C"
28431#endif
28432char TIFFReadRGBAStrip ();
28433int
28434main ()
28435{
28436return TIFFReadRGBAStrip ();
28437 ;
28438 return 0;
28439}
28440_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028441if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028442 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28443else
cristy8b350f62009-11-15 23:12:43 +000028444 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028445fi
cristy8b350f62009-11-15 23:12:43 +000028446rm -f core conftest.err conftest.$ac_objext \
28447 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028448LIBS=$ac_check_lib_save_LIBS
28449fi
cristy8b350f62009-11-15 23:12:43 +000028450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028451$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028452if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028453 passed=`expr $passed + 1`
28454else
28455 failed=`expr $failed + 1`
28456fi
28457
cristy8b350f62009-11-15 23:12:43 +000028458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028459$as_echo_n "checking if TIFF package is complete... " >&6; }
28460 if test $passed -gt 0; then
28461 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028463$as_echo "no -- some components failed test" >&6; }
28464 have_tiff='no (failed tests)'
28465 else
28466 TIFF_LIBS='-ltiff'
28467 LIBS="$TIFF_LIBS $LIBS"
28468
cristy8b350f62009-11-15 23:12:43 +000028469$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028470
cristy8b350f62009-11-15 23:12:43 +000028471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028472$as_echo "yes" >&6; }
28473 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028474 for ac_header in tiffconf.h
28475do :
28476 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28477if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028478 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028479#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028480_ACEOF
28481
28482fi
28483
28484done
28485
cristy8b350f62009-11-15 23:12:43 +000028486 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028487 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28488 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028489do :
28490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28491ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28492eval as_val=\$$as_ac_var
28493 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028494 cat >>confdefs.h <<_ACEOF
28495#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28496_ACEOF
28497
28498fi
28499done
28500
28501 fi
28502 else
cristy8b350f62009-11-15 23:12:43 +000028503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028504$as_echo "no" >&6; }
28505 fi
28506fi
28507 if test "$have_tiff" = 'yes'; then
28508 TIFF_DELEGATE_TRUE=
28509 TIFF_DELEGATE_FALSE='#'
28510else
28511 TIFF_DELEGATE_TRUE='#'
28512 TIFF_DELEGATE_FALSE=
28513fi
28514
28515
28516
28517
28518#
28519# Set Windows font directory.
28520#
28521
28522# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028523if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028524 withval=$with_windows_font_dir; with_windows_font_dir=$withval
28525else
28526 with_windows_font_dir=''
28527fi
28528
28529if test "$with_windows_font_dir" != '' ; then
28530 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
28531fi
28532
28533
28534#
28535# Check for WMF delegate library.
28536#
28537
28538# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000028539if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028540 withval=$with_wmf; with_wmf=$withval
28541else
cristy8d63d1d2010-01-06 20:38:37 +000028542 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000028543fi
28544
28545
28546if test "$with_wmf" != 'yes'; then
28547 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
28548fi
28549
28550have_wmf='no'
28551WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000028552if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028554$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028556$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028558$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000028559 failed=0
28560 passed=0
28561 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
28562if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
28563 passed=`expr $passed + 1`
28564else
28565 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028566fi
28567
28568
cristy735e8942010-04-02 20:32:57 +000028569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
28570$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
28571if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028572 $as_echo_n "(cached) " >&6
28573else
28574 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000028575LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028577/* end confdefs.h. */
28578
28579/* Override any GCC internal prototype to avoid an error.
28580 Use char because int might match the return type of a GCC
28581 builtin and then its argument prototype would still apply. */
28582#ifdef __cplusplus
28583extern "C"
28584#endif
cristy735e8942010-04-02 20:32:57 +000028585char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000028586int
28587main ()
28588{
cristy735e8942010-04-02 20:32:57 +000028589return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000028590 ;
28591 return 0;
28592}
28593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028594if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000028595 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000028596else
cristy735e8942010-04-02 20:32:57 +000028597 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000028598fi
cristy8b350f62009-11-15 23:12:43 +000028599rm -f core conftest.err conftest.$ac_objext \
28600 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028601LIBS=$ac_check_lib_save_LIBS
28602fi
cristy735e8942010-04-02 20:32:57 +000028603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
28604$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
28605if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
28606 passed=`expr $passed + 1`
28607else
28608 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028609fi
28610
cristy735e8942010-04-02 20:32:57 +000028611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
28612$as_echo_n "checking if WMF package is complete... " >&6; }
28613 if test $passed -gt 0; then
28614 if test $failed -gt 0; then
28615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28616$as_echo "no -- some components failed test" >&6; }
28617 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000028618 else
cristy735e8942010-04-02 20:32:57 +000028619 WMF_LIBS='-lwmf -lwmflite'
28620 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028621
cristy8b350f62009-11-15 23:12:43 +000028622$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028623
cristy735e8942010-04-02 20:32:57 +000028624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028625$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000028626 have_wmf='yes'
28627 fi
cristy3ed852e2009-09-05 21:47:34 +000028628 else
cristy8b350f62009-11-15 23:12:43 +000028629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028630$as_echo "no" >&6; }
28631 fi
28632fi
28633 if test "$have_wmf" = 'yes'; then
28634 WMF_DELEGATE_TRUE=
28635 WMF_DELEGATE_FALSE='#'
28636else
28637 WMF_DELEGATE_TRUE='#'
28638 WMF_DELEGATE_FALSE=
28639fi
28640
28641
28642
28643
28644
cristy735e8942010-04-02 20:32:57 +000028645
cristy3ed852e2009-09-05 21:47:34 +000028646#
28647# Check for XML delegate library.
28648#
28649
28650# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000028651if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028652 withval=$with_xml; with_xml=$withval
28653else
28654 with_xml=$have_x
28655fi
28656
28657
28658if test "$with_xml" != 'yes' ; then
28659 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
28660fi
28661
28662have_xml='no'
28663XML_LIBS=''
28664if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028666$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000028668$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028670$as_echo "" >&6; }
28671 PERSIST_LDFLAGS=$LDFLAGS
28672 PERSIST_CPPFLAGS=$CPPFLAGS
28673 xml2_config=''
28674 for ac_prog in xml2-config
28675do
28676 # Extract the first word of "$ac_prog", so it can be a program name with args.
28677set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028679$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028680if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028681 $as_echo_n "(cached) " >&6
28682else
28683 if test -n "$xml2_config"; then
28684 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
28685else
28686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28687for as_dir in $PATH
28688do
28689 IFS=$as_save_IFS
28690 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28693 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000028694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028695 break 2
28696 fi
28697done
cristy8b350f62009-11-15 23:12:43 +000028698 done
cristy3ed852e2009-09-05 21:47:34 +000028699IFS=$as_save_IFS
28700
28701fi
28702fi
28703xml2_config=$ac_cv_prog_xml2_config
28704if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000028705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000028706$as_echo "$xml2_config" >&6; }
28707else
cristy8b350f62009-11-15 23:12:43 +000028708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028709$as_echo "no" >&6; }
28710fi
28711
28712
28713 test -n "$xml2_config" && break
28714done
28715 if test -n "$xml2_config"; then
28716 # Debian installs libxml headers under /usr/include/libxml2/libxml with
28717 # the shared library installed under /usr/lib, whereas the package
28718 # installs itself under $prefix/libxml and $prefix/lib.
28719 xml2_prefix=`xml2-config --prefix`
28720 if test -d "${xml2_prefix}/include/libxml2"; then
28721 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
28722 fi
28723 if test "${xml2_prefix}" != '/usr'; then
28724 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
28725 fi
28726 fi
28727 failed=0
28728 passed=0
cristy8b350f62009-11-15 23:12:43 +000028729 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
28730if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028731 passed=`expr $passed + 1`
28732else
28733 failed=`expr $failed + 1`
28734fi
28735
28736
cristy8b350f62009-11-15 23:12:43 +000028737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028738$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028739if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028740 $as_echo_n "(cached) " >&6
28741else
28742 ac_check_lib_save_LIBS=$LIBS
28743LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028745/* end confdefs.h. */
28746
28747/* Override any GCC internal prototype to avoid an error.
28748 Use char because int might match the return type of a GCC
28749 builtin and then its argument prototype would still apply. */
28750#ifdef __cplusplus
28751extern "C"
28752#endif
28753char xmlParseExternalEntity ();
28754int
28755main ()
28756{
28757return xmlParseExternalEntity ();
28758 ;
28759 return 0;
28760}
28761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028762if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028763 ac_cv_lib_xml2_xmlParseExternalEntity=yes
28764else
cristy8b350f62009-11-15 23:12:43 +000028765 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000028766fi
cristy8b350f62009-11-15 23:12:43 +000028767rm -f core conftest.err conftest.$ac_objext \
28768 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028769LIBS=$ac_check_lib_save_LIBS
28770fi
cristy8b350f62009-11-15 23:12:43 +000028771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000028772$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028773if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028774 passed=`expr $passed + 1`
28775else
28776 failed=`expr $failed + 1`
28777fi
28778
cristy8b350f62009-11-15 23:12:43 +000028779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028780$as_echo_n "checking if XML package is complete... " >&6; }
28781 if test $passed -gt 0; then
28782 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028784$as_echo "no -- some components failed test" >&6; }
28785 have_xml='no (failed tests)'
28786 LDFLAGS="$PERSIST_LDFLAGS"
28787 CPPFLAGS="$PERSIST_CPPFLAGS"
28788 else
28789 XML_LIBS='-lxml2'
28790 LIBS="$XML_LIBS $LIBS"
28791
cristy8b350f62009-11-15 23:12:43 +000028792$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028793
cristy8b350f62009-11-15 23:12:43 +000028794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028795$as_echo "yes" >&6; }
28796 have_xml='yes'
28797 fi
28798 else
cristy8b350f62009-11-15 23:12:43 +000028799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028800$as_echo "no" >&6; }
28801 fi
28802fi
28803 if test "$have_xml" = 'yes'; then
28804 XML_DELEGATE_TRUE=
28805 XML_DELEGATE_FALSE='#'
28806else
28807 XML_DELEGATE_TRUE='#'
28808 XML_DELEGATE_FALSE=
28809fi
28810
28811
28812
28813
28814# Substitute compiler name to build/link PerlMagick
28815#
28816
28817
28818#
28819# Configure install Paths
28820#
28821
28822# Subdirectory under lib to place ImageMagick lib files
28823LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28824
28825cat >>confdefs.h <<_ACEOF
28826#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
28827_ACEOF
28828
28829
28830# Path to ImageMagick bin directory
28831EXECUTABLE_PATH="${BIN_DIR}"
28832DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
28833case "${build_os}" in
28834 mingw* )
28835 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
28836 ;;
28837esac
28838
28839cat >>confdefs.h <<_ACEOF
28840#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
28841_ACEOF
28842
28843
28844
28845# Path to ImageMagick lib
28846LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
28847DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
28848case "${build_os}" in
28849 mingw* )
28850 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
28851 ;;
28852esac
28853
28854cat >>confdefs.h <<_ACEOF
28855#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
28856_ACEOF
28857
28858
28859
28860# Subdirectory under lib to place ImageMagick configuration files
28861CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28862
28863cat >>confdefs.h <<_ACEOF
28864#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
28865_ACEOF
28866
28867CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28868DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28869case "${build_os}" in
28870 mingw* )
28871 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
28872 ;;
28873esac
28874
28875cat >>confdefs.h <<_ACEOF
28876#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
28877_ACEOF
28878
28879
28880
28881#
28882# Subdirectory under lib to place ImageMagick coder module files
28883CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
28884
28885cat >>confdefs.h <<_ACEOF
28886#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
28887_ACEOF
28888
28889CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
28890DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
28891case "${build_os}" in
28892 mingw* )
28893 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
28894 ;;
28895esac
28896
28897cat >>confdefs.h <<_ACEOF
28898#define CODER_PATH "$DEFINE_CODER_PATH"
28899_ACEOF
28900
28901
28902
28903#
28904# Subdirectory under lib to place ImageMagick filter module files
28905FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
28906
28907cat >>confdefs.h <<_ACEOF
28908#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
28909_ACEOF
28910
28911FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
28912DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
28913case "${build_os}" in
28914 mingw* )
28915 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
28916 ;;
28917esac
28918
28919cat >>confdefs.h <<_ACEOF
28920#define FILTER_PATH "$DEFINE_FILTER_PATH"
28921_ACEOF
28922
28923
28924
28925#
28926# Path to ImageMagick documentation files
28927DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28928DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
28929DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
28930case "${build_os}" in
28931 mingw* )
28932 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
28933 ;;
28934esac
28935
28936cat >>confdefs.h <<_ACEOF
28937#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28938_ACEOF
28939
28940
28941
28942#
28943# Path to ImageMagick share files
28944SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28945SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28946DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28947case "${build_os}" in
28948 mingw* )
28949 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28950 ;;
28951esac
28952
28953cat >>confdefs.h <<_ACEOF
28954#define SHARE_PATH "$DEFINE_SHARE_PATH"
28955_ACEOF
28956
28957
28958
28959# Subdirectory under share to place ImageMagick configuration files
28960SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28961
28962cat >>confdefs.h <<_ACEOF
28963#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28964_ACEOF
28965
28966SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28967DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28968case "${build_os}" in
28969 mingw* )
28970 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28971 ;;
28972esac
28973
28974cat >>confdefs.h <<_ACEOF
28975#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28976_ACEOF
28977
28978
28979
28980#
28981# program_transform_name is formed for use in a Makefile, so create a
28982# modified version for use in a shell script.
28983configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28984
28985# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000028986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028987$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028989$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028991$as_echo "" >&6; }
28992AutotraceDecodeDelegateDefault='autotrace'
28993AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000028994BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000028995BZIPDelegateDefault='bzip2'
28996BrowseDelegateDefault='xdg-open'
28997CGMDecodeDelegateDefault='ralcgm'
28998CatDelegateDefault='cat'
28999DNGDecodeDelegateDefault='ufraw-batch'
29000GVCDecodeDelegateDefault='dot'
29001DVIDecodeDelegateDefault='dvips'
29002EchoDelegateDefault='echo'
29003EditorDelegateDefault='xterm'
29004FIGDecodeDelegateDefault='fig2dev'
29005ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29006DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29007MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29008GnuplotDecodeDelegateDefault='gnuplot'
29009HDRDecodeDelegateDefault='ra_pfm'
29010HPGLDecodeDelegateDefault='hp2xx'
29011HTMLDecodeDelegateDefault='html2ps'
29012ILBMDecodeDelegateDefault='ilbmtoppm'
29013ILBMEncodeDelegateDefault='ppmtoilbm'
29014LPDelegateDefault='lp'
29015LPRDelegateDefault='lpr'
29016LZWDecodeDelegateDefault='uncompress'
29017LZWEncodeDelegateDefault='compress'
29018LaunchDelegateDefault='gimp'
29019MANDelegateDefault='groff'
29020MPEGDecodeDelegateDefault='ffmpeg'
29021MPEGEncodeDelegateDefault='ffmpeg'
29022MVDelegateDefault='mv'
29023PCLDelegateDefault='pcl6'
29024PGPDecodeDelegateDefault='pgpv'
29025POVDelegateDefault='povray'
29026if test "$native_win32_build" = 'yes'; then
29027 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029028elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029029 PSDelegateDefault='gsc'
29030else
29031 PSDelegateDefault='gs'
29032fi
29033RLEEncodeDelegateDefault='rawtorle'
29034RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029035RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029036SCANDecodeDelegateDefault='scanimage'
29037TXTDelegateDefault='enscript'
29038WMFDecodeDelegateDefault='wmf2eps'
29039WWWDecodeDelegateDefault='curl'
29040XPSDelegateDefault='gxps'
29041ZipDelegateDefault='gzip'
29042
29043# Search for delegates
29044# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29045set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029047$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029048if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029049 $as_echo_n "(cached) " >&6
29050else
29051 case $AutotraceDecodeDelegate in
29052 [\\/]* | ?:[\\/]*)
29053 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29054 ;;
29055 *)
29056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29057for as_dir in $PATH
29058do
29059 IFS=$as_save_IFS
29060 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029061 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29063 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029065 break 2
29066 fi
29067done
cristy8b350f62009-11-15 23:12:43 +000029068 done
cristy3ed852e2009-09-05 21:47:34 +000029069IFS=$as_save_IFS
29070
29071 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29072 ;;
29073esac
29074fi
29075AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29076if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029078$as_echo "$AutotraceDecodeDelegate" >&6; }
29079else
cristy8b350f62009-11-15 23:12:43 +000029080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029081$as_echo "no" >&6; }
29082fi
29083
29084
29085# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29086set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029088$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029089if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029090 $as_echo_n "(cached) " >&6
29091else
29092 case $AVIDecodeDelegate in
29093 [\\/]* | ?:[\\/]*)
29094 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29095 ;;
29096 *)
29097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29098for as_dir in $PATH
29099do
29100 IFS=$as_save_IFS
29101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029102 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29104 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029106 break 2
29107 fi
29108done
cristy8b350f62009-11-15 23:12:43 +000029109 done
cristy3ed852e2009-09-05 21:47:34 +000029110IFS=$as_save_IFS
29111
29112 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29113 ;;
29114esac
29115fi
29116AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29117if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029119$as_echo "$AVIDecodeDelegate" >&6; }
29120else
cristy8b350f62009-11-15 23:12:43 +000029121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029122$as_echo "no" >&6; }
29123fi
29124
29125
29126# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29127set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029129$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029130if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029131 $as_echo_n "(cached) " >&6
29132else
29133 case $BlenderDecodeDelegate in
29134 [\\/]* | ?:[\\/]*)
29135 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29136 ;;
29137 *)
29138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29139for as_dir in $PATH
29140do
29141 IFS=$as_save_IFS
29142 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029143 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29145 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029147 break 2
29148 fi
29149done
cristy8b350f62009-11-15 23:12:43 +000029150 done
cristy3ed852e2009-09-05 21:47:34 +000029151IFS=$as_save_IFS
29152
29153 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29154 ;;
29155esac
29156fi
29157BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29158if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029160$as_echo "$BlenderDecodeDelegate" >&6; }
29161else
cristy8b350f62009-11-15 23:12:43 +000029162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029163$as_echo "no" >&6; }
29164fi
29165
29166
29167# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29168set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029170$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029171if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029172 $as_echo_n "(cached) " >&6
29173else
29174 case $BZIPDelegate in
29175 [\\/]* | ?:[\\/]*)
29176 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29177 ;;
29178 *)
29179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29180for as_dir in $PATH
29181do
29182 IFS=$as_save_IFS
29183 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029184 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29186 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029188 break 2
29189 fi
29190done
cristy8b350f62009-11-15 23:12:43 +000029191 done
cristy3ed852e2009-09-05 21:47:34 +000029192IFS=$as_save_IFS
29193
29194 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29195 ;;
29196esac
29197fi
29198BZIPDelegate=$ac_cv_path_BZIPDelegate
29199if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029201$as_echo "$BZIPDelegate" >&6; }
29202else
cristy8b350f62009-11-15 23:12:43 +000029203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029204$as_echo "no" >&6; }
29205fi
29206
29207
29208# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29209set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029211$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029212if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029213 $as_echo_n "(cached) " >&6
29214else
29215 case $BrowseDelegate in
29216 [\\/]* | ?:[\\/]*)
29217 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29218 ;;
29219 *)
29220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29221for as_dir in $PATH
29222do
29223 IFS=$as_save_IFS
29224 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29227 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029229 break 2
29230 fi
29231done
cristy8b350f62009-11-15 23:12:43 +000029232 done
cristy3ed852e2009-09-05 21:47:34 +000029233IFS=$as_save_IFS
29234
29235 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29236 ;;
29237esac
29238fi
29239BrowseDelegate=$ac_cv_path_BrowseDelegate
29240if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029242$as_echo "$BrowseDelegate" >&6; }
29243else
cristy8b350f62009-11-15 23:12:43 +000029244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029245$as_echo "no" >&6; }
29246fi
29247
29248
29249# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29250set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029252$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029253if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029254 $as_echo_n "(cached) " >&6
29255else
29256 case $CGMDecodeDelegate in
29257 [\\/]* | ?:[\\/]*)
29258 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29259 ;;
29260 *)
29261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29262for as_dir in $PATH
29263do
29264 IFS=$as_save_IFS
29265 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029266 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29268 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029270 break 2
29271 fi
29272done
cristy8b350f62009-11-15 23:12:43 +000029273 done
cristy3ed852e2009-09-05 21:47:34 +000029274IFS=$as_save_IFS
29275
29276 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29277 ;;
29278esac
29279fi
29280CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29281if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029283$as_echo "$CGMDecodeDelegate" >&6; }
29284else
cristy8b350f62009-11-15 23:12:43 +000029285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029286$as_echo "no" >&6; }
29287fi
29288
29289
29290# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29291set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029293$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029294if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029295 $as_echo_n "(cached) " >&6
29296else
29297 case $CatDelegate in
29298 [\\/]* | ?:[\\/]*)
29299 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29300 ;;
29301 *)
29302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29303for as_dir in $PATH
29304do
29305 IFS=$as_save_IFS
29306 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029307 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29309 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029311 break 2
29312 fi
29313done
cristy8b350f62009-11-15 23:12:43 +000029314 done
cristy3ed852e2009-09-05 21:47:34 +000029315IFS=$as_save_IFS
29316
29317 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29318 ;;
29319esac
29320fi
29321CatDelegate=$ac_cv_path_CatDelegate
29322if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029324$as_echo "$CatDelegate" >&6; }
29325else
cristy8b350f62009-11-15 23:12:43 +000029326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029327$as_echo "no" >&6; }
29328fi
29329
29330
29331# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29332set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029334$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029335if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029336 $as_echo_n "(cached) " >&6
29337else
29338 case $DNGDecodeDelegate in
29339 [\\/]* | ?:[\\/]*)
29340 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29341 ;;
29342 *)
29343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29344for as_dir in $PATH
29345do
29346 IFS=$as_save_IFS
29347 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29350 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029352 break 2
29353 fi
29354done
cristy8b350f62009-11-15 23:12:43 +000029355 done
cristy3ed852e2009-09-05 21:47:34 +000029356IFS=$as_save_IFS
29357
29358 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29359 ;;
29360esac
29361fi
29362DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29363if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029365$as_echo "$DNGDecodeDelegate" >&6; }
29366else
cristy8b350f62009-11-15 23:12:43 +000029367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029368$as_echo "no" >&6; }
29369fi
29370
29371
29372# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29373set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029375$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029376if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029377 $as_echo_n "(cached) " >&6
29378else
29379 case $GVCDecodeDelegate in
29380 [\\/]* | ?:[\\/]*)
29381 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29382 ;;
29383 *)
29384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29385for as_dir in $PATH
29386do
29387 IFS=$as_save_IFS
29388 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29391 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029393 break 2
29394 fi
29395done
cristy8b350f62009-11-15 23:12:43 +000029396 done
cristy3ed852e2009-09-05 21:47:34 +000029397IFS=$as_save_IFS
29398
29399 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29400 ;;
29401esac
29402fi
29403GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29404if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029406$as_echo "$GVCDecodeDelegate" >&6; }
29407else
cristy8b350f62009-11-15 23:12:43 +000029408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029409$as_echo "no" >&6; }
29410fi
29411
29412
29413# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29414set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029416$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029417if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029418 $as_echo_n "(cached) " >&6
29419else
29420 case $DVIDecodeDelegate in
29421 [\\/]* | ?:[\\/]*)
29422 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29423 ;;
29424 *)
29425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29426for as_dir in $PATH
29427do
29428 IFS=$as_save_IFS
29429 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029430 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29432 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029434 break 2
29435 fi
29436done
cristy8b350f62009-11-15 23:12:43 +000029437 done
cristy3ed852e2009-09-05 21:47:34 +000029438IFS=$as_save_IFS
29439
29440 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29441 ;;
29442esac
29443fi
29444DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29445if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029447$as_echo "$DVIDecodeDelegate" >&6; }
29448else
cristy8b350f62009-11-15 23:12:43 +000029449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029450$as_echo "no" >&6; }
29451fi
29452
29453
29454# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29455set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029457$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029458if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029459 $as_echo_n "(cached) " >&6
29460else
29461 case $EchoDelegate in
29462 [\\/]* | ?:[\\/]*)
29463 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29464 ;;
29465 *)
29466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29467for as_dir in $PATH
29468do
29469 IFS=$as_save_IFS
29470 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029471 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29473 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029475 break 2
29476 fi
29477done
cristy8b350f62009-11-15 23:12:43 +000029478 done
cristy3ed852e2009-09-05 21:47:34 +000029479IFS=$as_save_IFS
29480
29481 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29482 ;;
29483esac
29484fi
29485EchoDelegate=$ac_cv_path_EchoDelegate
29486if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029488$as_echo "$EchoDelegate" >&6; }
29489else
cristy8b350f62009-11-15 23:12:43 +000029490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029491$as_echo "no" >&6; }
29492fi
29493
29494
29495# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29496set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029498$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029499if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029500 $as_echo_n "(cached) " >&6
29501else
29502 case $EditorDelegate in
29503 [\\/]* | ?:[\\/]*)
29504 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29505 ;;
29506 *)
29507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29508for as_dir in $PATH
29509do
29510 IFS=$as_save_IFS
29511 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029512 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29514 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029516 break 2
29517 fi
29518done
cristy8b350f62009-11-15 23:12:43 +000029519 done
cristy3ed852e2009-09-05 21:47:34 +000029520IFS=$as_save_IFS
29521
29522 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
29523 ;;
29524esac
29525fi
29526EditorDelegate=$ac_cv_path_EditorDelegate
29527if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029529$as_echo "$EditorDelegate" >&6; }
29530else
cristy8b350f62009-11-15 23:12:43 +000029531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029532$as_echo "no" >&6; }
29533fi
29534
29535
29536# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
29537set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029539$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029540if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029541 $as_echo_n "(cached) " >&6
29542else
29543 case $FIGDecodeDelegate in
29544 [\\/]* | ?:[\\/]*)
29545 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
29546 ;;
29547 *)
29548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29549for as_dir in $PATH
29550do
29551 IFS=$as_save_IFS
29552 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029553 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29555 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029557 break 2
29558 fi
29559done
cristy8b350f62009-11-15 23:12:43 +000029560 done
cristy3ed852e2009-09-05 21:47:34 +000029561IFS=$as_save_IFS
29562
29563 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
29564 ;;
29565esac
29566fi
29567FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
29568if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029570$as_echo "$FIGDecodeDelegate" >&6; }
29571else
cristy8b350f62009-11-15 23:12:43 +000029572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029573$as_echo "no" >&6; }
29574fi
29575
29576
29577# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
29578set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029580$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029581if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029582 $as_echo_n "(cached) " >&6
29583else
29584 case $ConvertDelegate in
29585 [\\/]* | ?:[\\/]*)
29586 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
29587 ;;
29588 *)
29589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29590for as_dir in $PATH
29591do
29592 IFS=$as_save_IFS
29593 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029594 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29596 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029598 break 2
29599 fi
29600done
cristy8b350f62009-11-15 23:12:43 +000029601 done
cristy3ed852e2009-09-05 21:47:34 +000029602IFS=$as_save_IFS
29603
29604 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
29605 ;;
29606esac
29607fi
29608ConvertDelegate=$ac_cv_path_ConvertDelegate
29609if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029611$as_echo "$ConvertDelegate" >&6; }
29612else
cristy8b350f62009-11-15 23:12:43 +000029613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029614$as_echo "no" >&6; }
29615fi
29616
29617
29618# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
29619set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029621$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029622if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029623 $as_echo_n "(cached) " >&6
29624else
29625 case $DisplayDelegate in
29626 [\\/]* | ?:[\\/]*)
29627 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
29628 ;;
29629 *)
29630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29631for as_dir in $PATH
29632do
29633 IFS=$as_save_IFS
29634 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029635 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29637 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029639 break 2
29640 fi
29641done
cristy8b350f62009-11-15 23:12:43 +000029642 done
cristy3ed852e2009-09-05 21:47:34 +000029643IFS=$as_save_IFS
29644
29645 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
29646 ;;
29647esac
29648fi
29649DisplayDelegate=$ac_cv_path_DisplayDelegate
29650if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029652$as_echo "$DisplayDelegate" >&6; }
29653else
cristy8b350f62009-11-15 23:12:43 +000029654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029655$as_echo "no" >&6; }
29656fi
29657
29658
29659# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
29660set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029662$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029663if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029664 $as_echo_n "(cached) " >&6
29665else
29666 case $MogrifyDelegate in
29667 [\\/]* | ?:[\\/]*)
29668 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
29669 ;;
29670 *)
29671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29672for as_dir in $PATH
29673do
29674 IFS=$as_save_IFS
29675 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029676 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29678 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029680 break 2
29681 fi
29682done
cristy8b350f62009-11-15 23:12:43 +000029683 done
cristy3ed852e2009-09-05 21:47:34 +000029684IFS=$as_save_IFS
29685
29686 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
29687 ;;
29688esac
29689fi
29690MogrifyDelegate=$ac_cv_path_MogrifyDelegate
29691if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029693$as_echo "$MogrifyDelegate" >&6; }
29694else
cristy8b350f62009-11-15 23:12:43 +000029695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029696$as_echo "no" >&6; }
29697fi
29698
29699
29700# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
29701set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029703$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029704if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029705 $as_echo_n "(cached) " >&6
29706else
29707 case $GnuplotDecodeDelegate in
29708 [\\/]* | ?:[\\/]*)
29709 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
29710 ;;
29711 *)
29712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29713for as_dir in $PATH
29714do
29715 IFS=$as_save_IFS
29716 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029717 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29719 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029721 break 2
29722 fi
29723done
cristy8b350f62009-11-15 23:12:43 +000029724 done
cristy3ed852e2009-09-05 21:47:34 +000029725IFS=$as_save_IFS
29726
29727 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
29728 ;;
29729esac
29730fi
29731GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
29732if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029734$as_echo "$GnuplotDecodeDelegate" >&6; }
29735else
cristy8b350f62009-11-15 23:12:43 +000029736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029737$as_echo "no" >&6; }
29738fi
29739
29740
29741# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
29742set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029744$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029745if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029746 $as_echo_n "(cached) " >&6
29747else
29748 case $HDRDecodeDelegate in
29749 [\\/]* | ?:[\\/]*)
29750 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
29751 ;;
29752 *)
29753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29754for as_dir in $PATH
29755do
29756 IFS=$as_save_IFS
29757 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029758 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29760 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029762 break 2
29763 fi
29764done
cristy8b350f62009-11-15 23:12:43 +000029765 done
cristy3ed852e2009-09-05 21:47:34 +000029766IFS=$as_save_IFS
29767
29768 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
29769 ;;
29770esac
29771fi
29772HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
29773if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029775$as_echo "$HDRDecodeDelegate" >&6; }
29776else
cristy8b350f62009-11-15 23:12:43 +000029777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029778$as_echo "no" >&6; }
29779fi
29780
29781
29782# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
29783set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029785$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029786if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029787 $as_echo_n "(cached) " >&6
29788else
29789 case $HPGLDecodeDelegate in
29790 [\\/]* | ?:[\\/]*)
29791 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
29792 ;;
29793 *)
29794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29795for as_dir in $PATH
29796do
29797 IFS=$as_save_IFS
29798 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29801 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029803 break 2
29804 fi
29805done
cristy8b350f62009-11-15 23:12:43 +000029806 done
cristy3ed852e2009-09-05 21:47:34 +000029807IFS=$as_save_IFS
29808
29809 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
29810 ;;
29811esac
29812fi
29813HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
29814if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029816$as_echo "$HPGLDecodeDelegate" >&6; }
29817else
cristy8b350f62009-11-15 23:12:43 +000029818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029819$as_echo "no" >&6; }
29820fi
29821
29822
29823# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
29824set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029826$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029827if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029828 $as_echo_n "(cached) " >&6
29829else
29830 case $HTMLDecodeDelegate in
29831 [\\/]* | ?:[\\/]*)
29832 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
29833 ;;
29834 *)
29835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29836for as_dir in $PATH
29837do
29838 IFS=$as_save_IFS
29839 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029840 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29842 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029844 break 2
29845 fi
29846done
cristy8b350f62009-11-15 23:12:43 +000029847 done
cristy3ed852e2009-09-05 21:47:34 +000029848IFS=$as_save_IFS
29849
29850 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
29851 ;;
29852esac
29853fi
29854HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
29855if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029857$as_echo "$HTMLDecodeDelegate" >&6; }
29858else
cristy8b350f62009-11-15 23:12:43 +000029859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029860$as_echo "no" >&6; }
29861fi
29862
29863
29864# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
29865set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029867$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029868if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029869 $as_echo_n "(cached) " >&6
29870else
29871 case $ILBMDecodeDelegate in
29872 [\\/]* | ?:[\\/]*)
29873 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
29874 ;;
29875 *)
29876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29877for as_dir in $PATH
29878do
29879 IFS=$as_save_IFS
29880 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29883 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029885 break 2
29886 fi
29887done
cristy8b350f62009-11-15 23:12:43 +000029888 done
cristy3ed852e2009-09-05 21:47:34 +000029889IFS=$as_save_IFS
29890
29891 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
29892 ;;
29893esac
29894fi
29895ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
29896if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029898$as_echo "$ILBMDecodeDelegate" >&6; }
29899else
cristy8b350f62009-11-15 23:12:43 +000029900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029901$as_echo "no" >&6; }
29902fi
29903
29904
29905# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
29906set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029908$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029909if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029910 $as_echo_n "(cached) " >&6
29911else
29912 case $ILBMEncodeDelegate in
29913 [\\/]* | ?:[\\/]*)
29914 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
29915 ;;
29916 *)
29917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29918for as_dir in $PATH
29919do
29920 IFS=$as_save_IFS
29921 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029922 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29924 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029926 break 2
29927 fi
29928done
cristy8b350f62009-11-15 23:12:43 +000029929 done
cristy3ed852e2009-09-05 21:47:34 +000029930IFS=$as_save_IFS
29931
29932 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
29933 ;;
29934esac
29935fi
29936ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29937if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029939$as_echo "$ILBMEncodeDelegate" >&6; }
29940else
cristy8b350f62009-11-15 23:12:43 +000029941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029942$as_echo "no" >&6; }
29943fi
29944
29945
29946# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29947set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029949$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029950if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029951 $as_echo_n "(cached) " >&6
29952else
29953 case $LPDelegate in
29954 [\\/]* | ?:[\\/]*)
29955 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
29956 ;;
29957 *)
29958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29959for as_dir in $PATH
29960do
29961 IFS=$as_save_IFS
29962 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029963 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29965 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029967 break 2
29968 fi
29969done
cristy8b350f62009-11-15 23:12:43 +000029970 done
cristy3ed852e2009-09-05 21:47:34 +000029971IFS=$as_save_IFS
29972
29973 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
29974 ;;
29975esac
29976fi
29977LPDelegate=$ac_cv_path_LPDelegate
29978if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029980$as_echo "$LPDelegate" >&6; }
29981else
cristy8b350f62009-11-15 23:12:43 +000029982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029983$as_echo "no" >&6; }
29984fi
29985
29986
29987# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29988set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029990$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029991if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029992 $as_echo_n "(cached) " >&6
29993else
29994 case $LPRDelegate in
29995 [\\/]* | ?:[\\/]*)
29996 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
29997 ;;
29998 *)
29999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30000for as_dir in $PATH
30001do
30002 IFS=$as_save_IFS
30003 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030004 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30006 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030008 break 2
30009 fi
30010done
cristy8b350f62009-11-15 23:12:43 +000030011 done
cristy3ed852e2009-09-05 21:47:34 +000030012IFS=$as_save_IFS
30013
30014 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30015 ;;
30016esac
30017fi
30018LPRDelegate=$ac_cv_path_LPRDelegate
30019if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030021$as_echo "$LPRDelegate" >&6; }
30022else
cristy8b350f62009-11-15 23:12:43 +000030023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030024$as_echo "no" >&6; }
30025fi
30026
30027
30028# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30029set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030031$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030032if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030033 $as_echo_n "(cached) " >&6
30034else
30035 case $LZWDecodeDelegate in
30036 [\\/]* | ?:[\\/]*)
30037 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30038 ;;
30039 *)
30040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30041for as_dir in $PATH
30042do
30043 IFS=$as_save_IFS
30044 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030045 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30047 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030049 break 2
30050 fi
30051done
cristy8b350f62009-11-15 23:12:43 +000030052 done
cristy3ed852e2009-09-05 21:47:34 +000030053IFS=$as_save_IFS
30054
30055 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30056 ;;
30057esac
30058fi
30059LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30060if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030062$as_echo "$LZWDecodeDelegate" >&6; }
30063else
cristy8b350f62009-11-15 23:12:43 +000030064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030065$as_echo "no" >&6; }
30066fi
30067
30068
30069# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30070set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030072$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030073if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030074 $as_echo_n "(cached) " >&6
30075else
30076 case $LZWEncodeDelegate in
30077 [\\/]* | ?:[\\/]*)
30078 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30079 ;;
30080 *)
30081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30082for as_dir in $PATH
30083do
30084 IFS=$as_save_IFS
30085 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030086 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30088 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030090 break 2
30091 fi
30092done
cristy8b350f62009-11-15 23:12:43 +000030093 done
cristy3ed852e2009-09-05 21:47:34 +000030094IFS=$as_save_IFS
30095
30096 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30097 ;;
30098esac
30099fi
30100LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30101if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030103$as_echo "$LZWEncodeDelegate" >&6; }
30104else
cristy8b350f62009-11-15 23:12:43 +000030105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030106$as_echo "no" >&6; }
30107fi
30108
30109
30110# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30111set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030113$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030114if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030115 $as_echo_n "(cached) " >&6
30116else
30117 case $LaunchDelegate in
30118 [\\/]* | ?:[\\/]*)
30119 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30120 ;;
30121 *)
30122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30123for as_dir in $PATH
30124do
30125 IFS=$as_save_IFS
30126 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030127 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30129 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030131 break 2
30132 fi
30133done
cristy8b350f62009-11-15 23:12:43 +000030134 done
cristy3ed852e2009-09-05 21:47:34 +000030135IFS=$as_save_IFS
30136
30137 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30138 ;;
30139esac
30140fi
30141LaunchDelegate=$ac_cv_path_LaunchDelegate
30142if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030144$as_echo "$LaunchDelegate" >&6; }
30145else
cristy8b350f62009-11-15 23:12:43 +000030146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030147$as_echo "no" >&6; }
30148fi
30149
30150
30151# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30152set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030154$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030155if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030156 $as_echo_n "(cached) " >&6
30157else
30158 case $MANDelegate in
30159 [\\/]* | ?:[\\/]*)
30160 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30161 ;;
30162 *)
30163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30164for as_dir in $PATH
30165do
30166 IFS=$as_save_IFS
30167 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030168 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30170 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030172 break 2
30173 fi
30174done
cristy8b350f62009-11-15 23:12:43 +000030175 done
cristy3ed852e2009-09-05 21:47:34 +000030176IFS=$as_save_IFS
30177
30178 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30179 ;;
30180esac
30181fi
30182MANDelegate=$ac_cv_path_MANDelegate
30183if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030185$as_echo "$MANDelegate" >&6; }
30186else
cristy8b350f62009-11-15 23:12:43 +000030187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030188$as_echo "no" >&6; }
30189fi
30190
30191
30192# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30193set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030195$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030196if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030197 $as_echo_n "(cached) " >&6
30198else
30199 case $MPEGDecodeDelegate in
30200 [\\/]* | ?:[\\/]*)
30201 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30202 ;;
30203 *)
30204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30205for as_dir in $PATH
30206do
30207 IFS=$as_save_IFS
30208 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030209 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30211 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030213 break 2
30214 fi
30215done
cristy8b350f62009-11-15 23:12:43 +000030216 done
cristy3ed852e2009-09-05 21:47:34 +000030217IFS=$as_save_IFS
30218
30219 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30220 ;;
30221esac
30222fi
30223MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30224if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030226$as_echo "$MPEGDecodeDelegate" >&6; }
30227else
cristy8b350f62009-11-15 23:12:43 +000030228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030229$as_echo "no" >&6; }
30230fi
30231
30232
30233# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30234set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030236$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030237if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030238 $as_echo_n "(cached) " >&6
30239else
30240 case $MPEGEncodeDelegate in
30241 [\\/]* | ?:[\\/]*)
30242 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30243 ;;
30244 *)
30245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30246for as_dir in $PATH
30247do
30248 IFS=$as_save_IFS
30249 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030250 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30252 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030254 break 2
30255 fi
30256done
cristy8b350f62009-11-15 23:12:43 +000030257 done
cristy3ed852e2009-09-05 21:47:34 +000030258IFS=$as_save_IFS
30259
30260 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30261 ;;
30262esac
30263fi
30264MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30265if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030267$as_echo "$MPEGEncodeDelegate" >&6; }
30268else
cristy8b350f62009-11-15 23:12:43 +000030269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030270$as_echo "no" >&6; }
30271fi
30272
30273
30274# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30275set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030277$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030278if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030279 $as_echo_n "(cached) " >&6
30280else
30281 case $MVDelegate in
30282 [\\/]* | ?:[\\/]*)
30283 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30284 ;;
30285 *)
30286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30287for as_dir in $PATH
30288do
30289 IFS=$as_save_IFS
30290 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030291 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30293 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030295 break 2
30296 fi
30297done
cristy8b350f62009-11-15 23:12:43 +000030298 done
cristy3ed852e2009-09-05 21:47:34 +000030299IFS=$as_save_IFS
30300
30301 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30302 ;;
30303esac
30304fi
30305MVDelegate=$ac_cv_path_MVDelegate
30306if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030308$as_echo "$MVDelegate" >&6; }
30309else
cristy8b350f62009-11-15 23:12:43 +000030310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030311$as_echo "no" >&6; }
30312fi
30313
30314
30315# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30316set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030318$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030319if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030320 $as_echo_n "(cached) " >&6
30321else
30322 case $PCLDelegate in
30323 [\\/]* | ?:[\\/]*)
30324 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30325 ;;
30326 *)
30327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30328for as_dir in $PATH
30329do
30330 IFS=$as_save_IFS
30331 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030332 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30334 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030336 break 2
30337 fi
30338done
cristy8b350f62009-11-15 23:12:43 +000030339 done
cristy3ed852e2009-09-05 21:47:34 +000030340IFS=$as_save_IFS
30341
30342 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30343 ;;
30344esac
30345fi
30346PCLDelegate=$ac_cv_path_PCLDelegate
30347if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030349$as_echo "$PCLDelegate" >&6; }
30350else
cristy8b350f62009-11-15 23:12:43 +000030351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030352$as_echo "no" >&6; }
30353fi
30354
30355
30356# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30357set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030359$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030360if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030361 $as_echo_n "(cached) " >&6
30362else
30363 case $PGPDecodeDelegate in
30364 [\\/]* | ?:[\\/]*)
30365 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30366 ;;
30367 *)
30368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30369for as_dir in $PATH
30370do
30371 IFS=$as_save_IFS
30372 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030373 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30375 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030377 break 2
30378 fi
30379done
cristy8b350f62009-11-15 23:12:43 +000030380 done
cristy3ed852e2009-09-05 21:47:34 +000030381IFS=$as_save_IFS
30382
30383 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30384 ;;
30385esac
30386fi
30387PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30388if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030390$as_echo "$PGPDecodeDelegate" >&6; }
30391else
cristy8b350f62009-11-15 23:12:43 +000030392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030393$as_echo "no" >&6; }
30394fi
30395
30396
30397# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30398set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030400$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030401if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030402 $as_echo_n "(cached) " >&6
30403else
30404 case $POVDelegate in
30405 [\\/]* | ?:[\\/]*)
30406 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30407 ;;
30408 *)
30409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30410for as_dir in $PATH
30411do
30412 IFS=$as_save_IFS
30413 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030414 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30416 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030418 break 2
30419 fi
30420done
cristy8b350f62009-11-15 23:12:43 +000030421 done
cristy3ed852e2009-09-05 21:47:34 +000030422IFS=$as_save_IFS
30423
30424 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30425 ;;
30426esac
30427fi
30428POVDelegate=$ac_cv_path_POVDelegate
30429if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030431$as_echo "$POVDelegate" >&6; }
30432else
cristy8b350f62009-11-15 23:12:43 +000030433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030434$as_echo "no" >&6; }
30435fi
30436
30437
30438for ac_prog in gsx gsc "$PSDelegateDefault"
30439do
30440 # Extract the first word of "$ac_prog", so it can be a program name with args.
30441set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030443$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030444if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030445 $as_echo_n "(cached) " >&6
30446else
30447 case $PSDelegate in
30448 [\\/]* | ?:[\\/]*)
30449 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30450 ;;
30451 *)
30452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30453for as_dir in $PATH
30454do
30455 IFS=$as_save_IFS
30456 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030457 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30459 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030461 break 2
30462 fi
30463done
cristy8b350f62009-11-15 23:12:43 +000030464 done
cristy3ed852e2009-09-05 21:47:34 +000030465IFS=$as_save_IFS
30466
30467 ;;
30468esac
30469fi
30470PSDelegate=$ac_cv_path_PSDelegate
30471if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030473$as_echo "$PSDelegate" >&6; }
30474else
cristy8b350f62009-11-15 23:12:43 +000030475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030476$as_echo "no" >&6; }
30477fi
30478
30479
30480 test -n "$PSDelegate" && break
30481done
30482test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
30483
30484# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
30485set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030487$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030488if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030489 $as_echo_n "(cached) " >&6
30490else
30491 case $RLEEncodeDelegate in
30492 [\\/]* | ?:[\\/]*)
30493 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
30494 ;;
30495 *)
30496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30497for as_dir in $PATH
30498do
30499 IFS=$as_save_IFS
30500 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30503 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030505 break 2
30506 fi
30507done
cristy8b350f62009-11-15 23:12:43 +000030508 done
cristy3ed852e2009-09-05 21:47:34 +000030509IFS=$as_save_IFS
30510
30511 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
30512 ;;
30513esac
30514fi
30515RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
30516if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030518$as_echo "$RLEEncodeDelegate" >&6; }
30519else
cristy8b350f62009-11-15 23:12:43 +000030520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030521$as_echo "no" >&6; }
30522fi
30523
30524
30525# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
30526set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030528$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030529if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030530 $as_echo_n "(cached) " >&6
30531else
30532 case $RMDelegate in
30533 [\\/]* | ?:[\\/]*)
30534 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
30535 ;;
30536 *)
30537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30538for as_dir in $PATH
30539do
30540 IFS=$as_save_IFS
30541 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30544 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030546 break 2
30547 fi
30548done
cristy8b350f62009-11-15 23:12:43 +000030549 done
cristy3ed852e2009-09-05 21:47:34 +000030550IFS=$as_save_IFS
30551
30552 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
30553 ;;
30554esac
30555fi
30556RMDelegate=$ac_cv_path_RMDelegate
30557if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030559$as_echo "$RMDelegate" >&6; }
30560else
cristy8b350f62009-11-15 23:12:43 +000030561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030562$as_echo "no" >&6; }
30563fi
30564
30565
cristy4689cf02010-02-17 21:15:45 +000030566# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
30567set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
30568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30569$as_echo_n "checking for $ac_word... " >&6; }
30570if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
30571 $as_echo_n "(cached) " >&6
30572else
30573 case $RSVGDecodeDelegate in
30574 [\\/]* | ?:[\\/]*)
30575 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
30576 ;;
30577 *)
30578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30579for as_dir in $PATH
30580do
30581 IFS=$as_save_IFS
30582 test -z "$as_dir" && as_dir=.
30583 for ac_exec_ext in '' $ac_executable_extensions; do
30584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30585 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30587 break 2
30588 fi
30589done
30590 done
30591IFS=$as_save_IFS
30592
30593 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
30594 ;;
30595esac
30596fi
30597RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
30598if test -n "$RSVGDecodeDelegate"; then
30599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
30600$as_echo "$RSVGDecodeDelegate" >&6; }
30601else
30602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30603$as_echo "no" >&6; }
30604fi
30605
30606
cristy3ed852e2009-09-05 21:47:34 +000030607# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
30608set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030610$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030611if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030612 $as_echo_n "(cached) " >&6
30613else
30614 case $SCANDecodeDelegate in
30615 [\\/]* | ?:[\\/]*)
30616 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
30617 ;;
30618 *)
30619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30620for as_dir in $PATH
30621do
30622 IFS=$as_save_IFS
30623 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30626 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030628 break 2
30629 fi
30630done
cristy8b350f62009-11-15 23:12:43 +000030631 done
cristy3ed852e2009-09-05 21:47:34 +000030632IFS=$as_save_IFS
30633
30634 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
30635 ;;
30636esac
30637fi
30638SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
30639if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030641$as_echo "$SCANDecodeDelegate" >&6; }
30642else
cristy8b350f62009-11-15 23:12:43 +000030643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030644$as_echo "no" >&6; }
30645fi
30646
30647
30648# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
30649set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030651$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030652if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030653 $as_echo_n "(cached) " >&6
30654else
30655 case $TXTDelegate in
30656 [\\/]* | ?:[\\/]*)
30657 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
30658 ;;
30659 *)
30660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30661for as_dir in $PATH
30662do
30663 IFS=$as_save_IFS
30664 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030665 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30667 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030669 break 2
30670 fi
30671done
cristy8b350f62009-11-15 23:12:43 +000030672 done
cristy3ed852e2009-09-05 21:47:34 +000030673IFS=$as_save_IFS
30674
30675 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
30676 ;;
30677esac
30678fi
30679TXTDelegate=$ac_cv_path_TXTDelegate
30680if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030682$as_echo "$TXTDelegate" >&6; }
30683else
cristy8b350f62009-11-15 23:12:43 +000030684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030685$as_echo "no" >&6; }
30686fi
30687
30688
30689# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
30690set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030692$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030693if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030694 $as_echo_n "(cached) " >&6
30695else
30696 case $WMFDecodeDelegate in
30697 [\\/]* | ?:[\\/]*)
30698 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
30699 ;;
30700 *)
30701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30702for as_dir in $PATH
30703do
30704 IFS=$as_save_IFS
30705 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030706 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30708 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030710 break 2
30711 fi
30712done
cristy8b350f62009-11-15 23:12:43 +000030713 done
cristy3ed852e2009-09-05 21:47:34 +000030714IFS=$as_save_IFS
30715
30716 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
30717 ;;
30718esac
30719fi
30720WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
30721if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030723$as_echo "$WMFDecodeDelegate" >&6; }
30724else
cristy8b350f62009-11-15 23:12:43 +000030725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030726$as_echo "no" >&6; }
30727fi
30728
30729
30730# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
30731set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030733$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030734if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030735 $as_echo_n "(cached) " >&6
30736else
30737 case $WWWDecodeDelegate in
30738 [\\/]* | ?:[\\/]*)
30739 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
30740 ;;
30741 *)
30742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30743for as_dir in $PATH
30744do
30745 IFS=$as_save_IFS
30746 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030747 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30749 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030751 break 2
30752 fi
30753done
cristy8b350f62009-11-15 23:12:43 +000030754 done
cristy3ed852e2009-09-05 21:47:34 +000030755IFS=$as_save_IFS
30756
30757 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
30758 ;;
30759esac
30760fi
30761WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
30762if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030764$as_echo "$WWWDecodeDelegate" >&6; }
30765else
cristy8b350f62009-11-15 23:12:43 +000030766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030767$as_echo "no" >&6; }
30768fi
30769
30770
30771# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
30772set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030774$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030775if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030776 $as_echo_n "(cached) " >&6
30777else
30778 case $XPSDelegate in
30779 [\\/]* | ?:[\\/]*)
30780 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
30781 ;;
30782 *)
30783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30784for as_dir in $PATH
30785do
30786 IFS=$as_save_IFS
30787 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030788 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30790 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030792 break 2
30793 fi
30794done
cristy8b350f62009-11-15 23:12:43 +000030795 done
cristy3ed852e2009-09-05 21:47:34 +000030796IFS=$as_save_IFS
30797
30798 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
30799 ;;
30800esac
30801fi
30802XPSDelegate=$ac_cv_path_XPSDelegate
30803if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030805$as_echo "$XPSDelegate" >&6; }
30806else
cristy8b350f62009-11-15 23:12:43 +000030807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030808$as_echo "no" >&6; }
30809fi
30810
30811
30812# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
30813set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030815$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030816if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030817 $as_echo_n "(cached) " >&6
30818else
30819 case $ZipDelegate in
30820 [\\/]* | ?:[\\/]*)
30821 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
30822 ;;
30823 *)
30824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30825for as_dir in $PATH
30826do
30827 IFS=$as_save_IFS
30828 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030829 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30831 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030833 break 2
30834 fi
30835done
cristy8b350f62009-11-15 23:12:43 +000030836 done
cristy3ed852e2009-09-05 21:47:34 +000030837IFS=$as_save_IFS
30838
30839 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
30840 ;;
30841esac
30842fi
30843ZipDelegate=$ac_cv_path_ZipDelegate
30844if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030846$as_echo "$ZipDelegate" >&6; }
30847else
cristy8b350f62009-11-15 23:12:43 +000030848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030849$as_echo "no" >&6; }
30850fi
30851
30852
30853
30854# Prefer lpr to lp; lp needs options tacked on.
30855if test "$LPRDelegate" != no; then
30856 PrintDelegate="$LPRDelegate"
30857else
30858 PrintDelegate="$LPDelegate -c -s"
30859fi
30860
30861
30862# Installed ImageMagick utiltity paths
30863ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
30864DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
30865MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
30866
30867# Set delegate booleans
30868have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
30869have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
30870have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
30871have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
30872have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
30873have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
30874have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
30875have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
30876have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
30877have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
30878have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
30879
30880#
30881# Test for font directories
30882#
30883type_include_files=''
30884
cristy430a7312010-01-21 20:44:04 +000030885# Dejavu fonts.
30886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
30887$as_echo_n "checking for Dejavu fonts directory... " >&6; }
30888dejavu_font_dir=''
30889if test "${with_dejavu_font_dir}" != 'default'; then
30890 dejavu_font_dir="${with_dejavu_font_dir}/"
30891else
30892 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
30893 if test -f "${font_dir}DejaVuSerif.ttf"; then
30894 dejavu_font_dir="${font_dir}"
30895 break 1
30896 fi
30897 done
30898fi
30899if test "${dejavu_font_dir}x" != 'x'; then
30900 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
30901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
30902$as_echo "$dejavu_font_dir" >&6; }
30903else
30904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
30905$as_echo "not found!" >&6; };
30906fi
30907
30908
cristy3ed852e2009-09-05 21:47:34 +000030909# Windows
30910windows_font_dir=''
30911if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
30912 windows_font_dir="${with_windows_font_dir}/"
30913fi
cristy430a7312010-01-21 20:44:04 +000030914if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000030915 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
30916 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
30917 fi
30918 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
30919 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
30920 fi
30921 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
30922 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
30923 fi
30924fi
cristy430a7312010-01-21 20:44:04 +000030925if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000030926 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
30927fi
30928
30929
30930# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000030931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000030932$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
30933ghostscript_font_dir=''
30934if test "${with_gs_font_dir}" != 'default'; then
30935 ghostscript_font_dir="${with_gs_font_dir}/"
30936else
30937 if test "${native_win32_build}" = 'yes'; then
30938 # Native Windows Build
30939 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
30940 if test -f "${font_dir}a010013l.pfb"; then
30941 ghostscript_font_dir="$font_dir"
30942 break 1
30943 fi
30944 done
30945 if test "${PSDelegate}" != 'gswin32c'; then
30946 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
30947 fi
30948 else
30949 # Linux / Mac OS X / Unix Build
30950 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
30951 if test -f "${font_dir}a010013l.pfb"; then
30952 ghostscript_font_dir="${font_dir}"
30953 break 1
30954 fi
30955 done
30956 if test "${ghostscript_font_dir}x" = 'x'; then
30957 if test "$PSDelegate" != 'gs'; then
30958 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
30959 fi
30960 fi
30961 fi
30962fi
30963if test "${ghostscript_font_dir}x" != 'x'; then
30964 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000030965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000030966$as_echo "$ghostscript_font_dir" >&6; }
30967else
cristy8b350f62009-11-15 23:12:43 +000030968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000030969$as_echo "not found!" >&6; };
30970fi
30971
30972case "${build_os}" in
30973 mingw* )
30974 PSDelegate=`$WinPathScript "$PSDelegate" 1`
30975 ;;
30976esac
30977
30978
30979
30980#
30981# Handle case where user doesn't want frozen paths
30982#
30983if test "$with_frozenpaths" != 'yes'; then
30984 # Re-set delegate definitions to default (no paths)
30985 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
30986 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
30987 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
30988 BZIPDelegate="$BZIPDelegateDefault"
30989 BrowseDelegate="$BrowseDelegateDefault"
30990 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
30991 CatDelegate="$CatDelegateDefault"
30992 ConvertDelegate="$ConvertDelegateDefault"
30993 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
30994 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
30995 EchoDelegate="$EchoDelegateDefault"
30996 EditorDelegate="$EditorDelegateDefault"
30997 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
30998 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
30999 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31000 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31001 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31002 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31003 LPDelegate="$LPDelegateDefault"
31004 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31005 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31006 LaunchDelegate="$LaunchDelegateDefault"
31007 MANDelegate="$MANDelegateDefault"
31008 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31009 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31010 MVDelegate="$MVDelegateDefault"
31011 MogrifyDelegate="$MogrifyDelegateDefault"
31012 PCLDelegate="$PCLDelegateDefault"
31013 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31014 POVDelegate="$POVDelegateDefault"
31015 PSDelegate="$PSDelegateDefault"
31016 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31017 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31018 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031019 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031020 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31021 ShowImageDelegate="$ShowImageDelegateDefault"
31022 TXTDelegate="$TXTDelegateDefault"
31023 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31024 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31025 XPSDelegate="$XPSDelegateDefault"
31026 ZipDelegate="$ZipDelegateDefault"
31027fi
31028
31029# Delegate substitutions
31030
31031
31032
31033
31034
31035
31036
31037
31038
31039
31040
31041
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053
31054
31055
31056
31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067
31068
31069
31070
31071
31072#
31073# RPM support.
31074#
31075RPM=''
31076for ac_prog in gnutar gtar tar
31077do
31078 # Extract the first word of "$ac_prog", so it can be a program name with args.
31079set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031081$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031082if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031083 $as_echo_n "(cached) " >&6
31084else
31085 if test -n "$TAR"; then
31086 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31087else
31088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31089for as_dir in $PATH
31090do
31091 IFS=$as_save_IFS
31092 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031093 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31095 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031097 break 2
31098 fi
31099done
cristy8b350f62009-11-15 23:12:43 +000031100 done
cristy3ed852e2009-09-05 21:47:34 +000031101IFS=$as_save_IFS
31102
31103fi
31104fi
31105TAR=$ac_cv_prog_TAR
31106if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031108$as_echo "$TAR" >&6; }
31109else
cristy8b350f62009-11-15 23:12:43 +000031110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031111$as_echo "no" >&6; }
31112fi
31113
31114
31115 test -n "$TAR" && break
31116done
31117
31118for ac_prog in perl
31119do
31120 # Extract the first word of "$ac_prog", so it can be a program name with args.
31121set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031123$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031124if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031125 $as_echo_n "(cached) " >&6
31126else
31127 if test -n "$PERL"; then
31128 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31129else
31130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31131for as_dir in $PATH
31132do
31133 IFS=$as_save_IFS
31134 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031135 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31137 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031139 break 2
31140 fi
31141done
cristy8b350f62009-11-15 23:12:43 +000031142 done
cristy3ed852e2009-09-05 21:47:34 +000031143IFS=$as_save_IFS
31144
31145fi
31146fi
31147PERL=$ac_cv_prog_PERL
31148if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031150$as_echo "$PERL" >&6; }
31151else
cristy8b350f62009-11-15 23:12:43 +000031152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031153$as_echo "no" >&6; }
31154fi
31155
31156
31157 test -n "$PERL" && break
31158done
31159
31160for ac_prog in rpmbuild rpm
31161do
31162 # Extract the first word of "$ac_prog", so it can be a program name with args.
31163set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031165$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031166if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031167 $as_echo_n "(cached) " >&6
31168else
31169 if test -n "$RPM"; then
31170 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31171else
31172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31173for as_dir in $PATH
31174do
31175 IFS=$as_save_IFS
31176 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031177 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31179 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031181 break 2
31182 fi
31183done
cristy8b350f62009-11-15 23:12:43 +000031184 done
cristy3ed852e2009-09-05 21:47:34 +000031185IFS=$as_save_IFS
31186
31187fi
31188fi
31189RPM=$ac_cv_prog_RPM
31190if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031192$as_echo "$RPM" >&6; }
31193else
cristy8b350f62009-11-15 23:12:43 +000031194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031195$as_echo "no" >&6; }
31196fi
31197
31198
31199 test -n "$RPM" && break
31200done
31201
31202
31203ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31204
31205
31206AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31207
31208
31209AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31210
31211
31212AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31213
31214
31215 if test "x$RPM" != "x" ; then
31216 RPM_DELEGATE_TRUE=
31217 RPM_DELEGATE_FALSE='#'
31218else
31219 RPM_DELEGATE_TRUE='#'
31220 RPM_DELEGATE_FALSE=
31221fi
31222
31223
31224#
31225# 7ZIP support (http://p7zip.sourceforge.net/)
31226#
31227P7ZIP=''
31228for ac_prog in 7za
31229do
31230 # Extract the first word of "$ac_prog", so it can be a program name with args.
31231set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031233$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031234if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031235 $as_echo_n "(cached) " >&6
31236else
31237 if test -n "$P7ZIP"; then
31238 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31239else
31240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31241for as_dir in $PATH
31242do
31243 IFS=$as_save_IFS
31244 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031245 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31247 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031249 break 2
31250 fi
31251done
cristy8b350f62009-11-15 23:12:43 +000031252 done
cristy3ed852e2009-09-05 21:47:34 +000031253IFS=$as_save_IFS
31254
31255fi
31256fi
31257P7ZIP=$ac_cv_prog_P7ZIP
31258if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031260$as_echo "$P7ZIP" >&6; }
31261else
cristy8b350f62009-11-15 23:12:43 +000031262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031263$as_echo "no" >&6; }
31264fi
31265
31266
31267 test -n "$P7ZIP" && break
31268done
31269
31270
31271 if test "x$P7ZIP" != "x" ; then
31272 P7ZIP_DELEGATE_TRUE=
31273 P7ZIP_DELEGATE_FALSE='#'
31274else
31275 P7ZIP_DELEGATE_TRUE='#'
31276 P7ZIP_DELEGATE_FALSE=
31277fi
31278
31279
31280#
31281# ZIP support (http://www.info-zip.org/Zip.html)
31282#
31283ZIP=''
31284for ac_prog in zip
31285do
31286 # Extract the first word of "$ac_prog", so it can be a program name with args.
31287set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031289$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031290if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031291 $as_echo_n "(cached) " >&6
31292else
31293 if test -n "$ZIP"; then
31294 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31295else
31296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31297for as_dir in $PATH
31298do
31299 IFS=$as_save_IFS
31300 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031301 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31303 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031305 break 2
31306 fi
31307done
cristy8b350f62009-11-15 23:12:43 +000031308 done
cristy3ed852e2009-09-05 21:47:34 +000031309IFS=$as_save_IFS
31310
31311fi
31312fi
31313ZIP=$ac_cv_prog_ZIP
31314if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031316$as_echo "$ZIP" >&6; }
31317else
cristy8b350f62009-11-15 23:12:43 +000031318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031319$as_echo "no" >&6; }
31320fi
31321
31322
31323 test -n "$ZIP" && break
31324done
31325
31326
31327 if test "x$ZIP" != "x" ; then
31328 ZIP_DELEGATE_TRUE=
31329 ZIP_DELEGATE_FALSE='#'
31330else
31331 ZIP_DELEGATE_TRUE='#'
31332 ZIP_DELEGATE_FALSE=
31333fi
31334
31335
31336#
31337# GhostPCL related configuration.
31338#
31339PCLColorDevice=ppmraw
31340PCLCMYKDevice=bmpsep8
31341PCLMonoDevice=pbmraw
31342if test -z "$PCLVersion"; then
31343 PCLVersion='unknown'
31344fi
31345if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031347$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031349$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031351$as_echo "" >&6; }
31352 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031354$as_echo_n "checking for pcl color device... " >&6; }
31355 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31356 :
31357 else
31358 PCLColorDevice=ppmraw
31359 fi
cristy8b350f62009-11-15 23:12:43 +000031360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031361$as_echo "$PCLColorDevice" >&6; }
31362
31363 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031365$as_echo_n "checking for pcl CMYK device... " >&6; }
31366 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31367 :
31368 else
31369 PCLCMYKDevice=$PCLColorDevice
31370 fi
cristy8b350f62009-11-15 23:12:43 +000031371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031372$as_echo "$PCLCMYKDevice" >&6; }
31373
31374 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031376$as_echo_n "checking for pcl mono device... " >&6; }
31377 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31378 :
31379 else
31380 PCLMonoDevice=$PCLColorDevice
31381 fi
cristy8b350f62009-11-15 23:12:43 +000031382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031383$as_echo "$PCLMonoDevice" >&6; }
31384fi
31385
31386
31387
31388
31389
31390
31391#
31392# GhostXPS related configuration.
31393#
31394XPSColorDevice=ppmraw
31395XPSCMYKDevice=bmpsep8
31396XPSMonoDevice=pbmraw
31397if test -z "$XPSVersion"; then
31398 XPSVersion='unknown'
31399fi
31400if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031402$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031404$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031406$as_echo "" >&6; }
31407 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031409$as_echo_n "checking for xps color device... " >&6; }
31410 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31411 :
31412 else
31413 XPSColorDevice=ppmraw
31414 fi
cristy8b350f62009-11-15 23:12:43 +000031415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031416$as_echo "$XPSColorDevice" >&6; }
31417
31418 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031420$as_echo_n "checking for xps CMYK device... " >&6; }
31421 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31422 :
31423 else
31424 XPSCMYKDevice=$XPSColorDevice
31425 fi
cristy8b350f62009-11-15 23:12:43 +000031426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031427$as_echo "$XPSCMYKDevice" >&6; }
31428
31429 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031431$as_echo_n "checking for xps mono device... " >&6; }
31432 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31433 :
31434 else
31435 XPSMonoDevice=$XPSColorDevice
31436 fi
cristy8b350f62009-11-15 23:12:43 +000031437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031438$as_echo "$XPSMonoDevice" >&6; }
31439fi
31440
31441
31442
31443
31444
31445
31446#
31447# Ghostscript related configuration.
31448#
31449if test "$have_png" = 'yes'; then
31450 GSAlphaDevice=pngalpha
31451else
31452 GSAlphaDevice=pnmraw
31453fi
31454GSColorDevice=pnmraw
31455GSCMYKDevice=pam
31456GSMonoDevice=pbmraw
31457GSPDFDevice=pdfwrite
31458GSPSDevice=pswrite
31459GSEPSDevice=epswrite
31460GSVersion='unknown'
31461if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031463$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000031465$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031467$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000031469$as_echo_n "checking for Ghostscript version... " >&6; }
31470 if GSVersion=`$PSDelegate --version`; then
31471 :
31472 else
31473 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
31474 fi
cristy8b350f62009-11-15 23:12:43 +000031475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000031476$as_echo "$GSVersion" >&6; }
31477
31478 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000031479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031480$as_echo_n "checking for gs alpha device... " >&6; }
31481 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31482 :
31483 else
31484 GSAlphaDevice=pnmraw
31485 fi
cristy8b350f62009-11-15 23:12:43 +000031486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031487$as_echo "$GSAlphaDevice" >&6; }
31488
31489 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031491$as_echo_n "checking for gs color device... " >&6; }
31492 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31493 :
31494 else
31495 GSColorDevice=pnmraw
31496 fi
cristy8b350f62009-11-15 23:12:43 +000031497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031498$as_echo "$GSColorDevice" >&6; }
31499
31500 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031502$as_echo_n "checking for gs CMYK device... " >&6; }
31503 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31504 :
31505 else
31506 GSCMYKDevice=bmpsep8
31507 fi
cristy8b350f62009-11-15 23:12:43 +000031508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031509$as_echo "$GSCMYKDevice" >&6; }
31510
31511 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031513$as_echo_n "checking for gs mono device... " >&6; }
31514 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31515 :
31516 else
31517 GSMonoDevice=$GSColorDevice
31518 fi
cristy8b350f62009-11-15 23:12:43 +000031519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031520$as_echo "$GSMonoDevice" >&6; }
31521
31522 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000031523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031524$as_echo_n "checking for gs PDF writing device... " >&6; }
31525 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31526 :
31527 else
31528 GSPDFDevice=nodevice
31529 fi
cristy8b350f62009-11-15 23:12:43 +000031530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031531$as_echo "$GSPDFDevice" >&6; }
31532
31533 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000031534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031535$as_echo_n "checking for gs PS writing device... " >&6; }
31536 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31537 :
31538 else
31539 GSPSDevice=nodevice
31540 fi
cristy8b350f62009-11-15 23:12:43 +000031541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031542$as_echo "$GSPSDevice" >&6; }
31543
31544 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000031545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031546$as_echo_n "checking for gs EPS writing device... " >&6; }
31547 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31548 :
31549 else
31550 GSEPSDevice=nodevice
31551 fi
cristy8b350f62009-11-15 23:12:43 +000031552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031553$as_echo "$GSEPSDevice" >&6; }
31554fi
31555
31556
31557
31558
31559
31560
31561
31562
31563
31564
31565#
31566# PerlMagick-related configuration
31567#
31568
31569# Look for PERL if PerlMagick requested
31570# If name/path of desired PERL interpreter is specified, look for that one first
31571have_perl='no'
31572if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000031573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031574$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031576$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031578$as_echo "" >&6; }
31579 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031581$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031582if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031583 $as_echo_n "(cached) " >&6
31584else
31585 ac_cv_path_PERL="$with_perl"
31586fi
cristy8b350f62009-11-15 23:12:43 +000031587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031588$as_echo "$ac_cv_path_PERL" >&6; };
31589 PERL=$ac_cv_path_PERL
31590 have_perl="$ac_cv_path_PERL"
31591 else
31592 for ac_prog in perl perl5
31593do
31594 # Extract the first word of "$ac_prog", so it can be a program name with args.
31595set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031597$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031598if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031599 $as_echo_n "(cached) " >&6
31600else
31601 case $PERL in
31602 [\\/]* | ?:[\\/]*)
31603 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31604 ;;
31605 *)
31606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31607for as_dir in $PATH
31608do
31609 IFS=$as_save_IFS
31610 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031611 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31613 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031615 break 2
31616 fi
31617done
cristy8b350f62009-11-15 23:12:43 +000031618 done
cristy3ed852e2009-09-05 21:47:34 +000031619IFS=$as_save_IFS
31620
31621 ;;
31622esac
31623fi
31624PERL=$ac_cv_path_PERL
31625if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031627$as_echo "$PERL" >&6; }
31628else
cristy8b350f62009-11-15 23:12:43 +000031629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031630$as_echo "no" >&6; }
31631fi
31632
31633
31634 test -n "$PERL" && break
31635done
31636 if test "$ac_cv_path_PERL"; then
31637 have_perl="$ac_cv_path_PERL"
31638 fi
31639 fi
31640fi
31641
cristy949301e2010-01-06 01:38:40 +000031642if test "$with_perl" != 'yes' ; then
31643 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
31644fi
31645
31646PERL_SUPPORTS_DESTDIR='no'
31647
cristy3ed852e2009-09-05 21:47:34 +000031648with_perl_static='no'
31649with_perl_dynamic='no'
31650if test "$have_perl" != 'no'; then
31651 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
31652 with_perl_static='yes'
31653 fi
31654 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
31655 with_perl_dynamic='yes'
31656 fi
31657 # Is PERL's MakeMaker new enough to support DESTDIR?
31658 # Make sure we have perl
31659if test -z "$PERL"; then
31660# Extract the first word of "perl", so it can be a program name with args.
31661set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031663$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031664if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031665 $as_echo_n "(cached) " >&6
31666else
31667 if test -n "$PERL"; then
31668 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31669else
31670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31671for as_dir in $PATH
31672do
31673 IFS=$as_save_IFS
31674 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031675 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31677 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000031678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031679 break 2
31680 fi
31681done
cristy8b350f62009-11-15 23:12:43 +000031682 done
cristy3ed852e2009-09-05 21:47:34 +000031683IFS=$as_save_IFS
31684
31685fi
31686fi
31687PERL=$ac_cv_prog_PERL
31688if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031690$as_echo "$PERL" >&6; }
31691else
cristy8b350f62009-11-15 23:12:43 +000031692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031693$as_echo "no" >&6; }
31694fi
31695
31696
31697fi
31698
31699# Check if version of Perl is sufficient
31700ac_perl_version="5.8.1"
31701
31702if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000031703 { $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 +000031704$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
31705 # NB: It would be nice to log the error if there is one, but we cannot rely
31706 # on autoconf internals
31707 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
31708 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000031709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031710$as_echo "no" >&6; };
31711 PERL_SUPPORTS_DESTDIR='no'
31712 else
cristy8b350f62009-11-15 23:12:43 +000031713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000031714$as_echo "ok" >&6; };
31715 PERL_SUPPORTS_DESTDIR='yes'
31716 fi
31717else
cristy8b350f62009-11-15 23:12:43 +000031718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031719$as_echo "$as_me: WARNING: could not find perl" >&2;}
31720fi
31721
31722fi
31723 if test "$have_perl" != 'no'; then
31724 WITH_PERL_TRUE=
31725 WITH_PERL_FALSE='#'
31726else
31727 WITH_PERL_TRUE='#'
31728 WITH_PERL_FALSE=
31729fi
31730
31731 if test $with_perl_static = 'yes'; then
31732 WITH_PERL_STATIC_TRUE=
31733 WITH_PERL_STATIC_FALSE='#'
31734else
31735 WITH_PERL_STATIC_TRUE='#'
31736 WITH_PERL_STATIC_FALSE=
31737fi
31738
31739 if test $with_perl_dynamic = 'yes'; then
31740 WITH_PERL_DYNAMIC_TRUE=
31741 WITH_PERL_DYNAMIC_FALSE='#'
31742else
31743 WITH_PERL_DYNAMIC_TRUE='#'
31744 WITH_PERL_DYNAMIC_FALSE=
31745fi
31746
31747
31748
31749# Determine path to pick up MagickCore library from for use with building PerlMagick
31750MAGICKCORE_PATH="${LIB_DIR}"
31751if test $with_perl_static = 'yes'; then
31752 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
31753 libtool_objdir=$objdir
31754
31755 # Linker search path to library, followed by -lMagickCore
31756 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
31757fi
31758
31759
31760# Create a simple string containing format names for all delegate libraries
31761DELEGATES=''
31762if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
31763if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
31764if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
31765if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
31766if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
31767if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
31768if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
31769if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
31770if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
31771if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
31772if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
31773if test "$have_jpeg" = 'yes'; then
31774 DELEGATES="$DELEGATES jpeg";
31775 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
31776fi
31777if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
31778if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
31779if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
31780if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
31781if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
31782if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
31783if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
31784if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
31785if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
31786if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
31787if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
31788if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
31789
31790
31791
31792#
31793# Handle special compiler flags
31794#
31795
31796# Add '-p' if prof source profiling support enabled
31797if test "$enable_prof" = 'yes'; then
31798 CFLAGS="-p $CFLAGS"
31799 CXXFLAGS="-p $CXXFLAGS"
31800 LDFLAGS="-p $LDFLAGS"
31801fi
31802
31803# Add '-pg' if gprof source profiling support enabled
31804if test "$enable_gprof" = 'yes'; then
31805 CFLAGS="-pg $CFLAGS"
31806 CXXFLAGS="-pg $CXXFLAGS"
31807 LDFLAGS="-pg $LDFLAGS"
31808fi
31809
31810# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
31811# This is a gcc-specific feature
31812if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000031814$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031815if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031816 $as_echo_n "(cached) " >&6
31817else
31818 ac_check_lib_save_LIBS=$LIBS
31819LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031821/* end confdefs.h. */
31822
31823/* Override any GCC internal prototype to avoid an error.
31824 Use char because int might match the return type of a GCC
31825 builtin and then its argument prototype would still apply. */
31826#ifdef __cplusplus
31827extern "C"
31828#endif
31829char _gcov_init ();
31830int
31831main ()
31832{
31833return _gcov_init ();
31834 ;
31835 return 0;
31836}
31837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031838if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031839 ac_cv_lib_gcov__gcov_init=yes
31840else
cristy8b350f62009-11-15 23:12:43 +000031841 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000031842fi
cristy8b350f62009-11-15 23:12:43 +000031843rm -f core conftest.err conftest.$ac_objext \
31844 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031845LIBS=$ac_check_lib_save_LIBS
31846fi
cristy8b350f62009-11-15 23:12:43 +000031847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000031848$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031849if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000031850 cat >>confdefs.h <<_ACEOF
31851#define HAVE_LIBGCOV 1
31852_ACEOF
31853
31854 LIBS="-lgcov $LIBS"
31855
31856fi
31857
cristy8b350f62009-11-15 23:12:43 +000031858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000031859$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031860if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031861 $as_echo_n "(cached) " >&6
31862else
31863 ac_check_lib_save_LIBS=$LIBS
31864LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031866/* end confdefs.h. */
31867
31868/* Override any GCC internal prototype to avoid an error.
31869 Use char because int might match the return type of a GCC
31870 builtin and then its argument prototype would still apply. */
31871#ifdef __cplusplus
31872extern "C"
31873#endif
31874char __gcov_init ();
31875int
31876main ()
31877{
31878return __gcov_init ();
31879 ;
31880 return 0;
31881}
31882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031883if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031884 ac_cv_lib_gcov___gcov_init=yes
31885else
cristy8b350f62009-11-15 23:12:43 +000031886 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000031887fi
cristy8b350f62009-11-15 23:12:43 +000031888rm -f core conftest.err conftest.$ac_objext \
31889 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031890LIBS=$ac_check_lib_save_LIBS
31891fi
cristy8b350f62009-11-15 23:12:43 +000031892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000031893$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031894if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000031895 cat >>confdefs.h <<_ACEOF
31896#define HAVE_LIBGCOV 1
31897_ACEOF
31898
31899 LIBS="-lgcov $LIBS"
31900
31901fi
31902
31903 case "$target_os" in
31904 darwin*)
31905 OSX_GCOV_LDFLAG="-Wl,-single_module"
31906 ;;
31907 *)
31908 OSX_GCOV_LDFLAG=""
31909 ;;
31910 esac
31911
31912 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
31913 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
31914 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
31915fi
31916
31917#
31918# Build library dependency list for libMagickCore
31919#
31920
31921MAGICK_LIBLTDL='' # Libltdl for build
31922MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
31923MAGICK_LTDLDEPS='' # extra libltdl dependencies
31924if test "$with_ltdl" != 'no'
31925then
31926 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
31927 MAGICK_API_LIBLTDL='-lltdl'
31928 fi
31929 MAGICK_LIBLTDL=${LIBLTDL}
31930 MAGICK_LTDLDEPS=${LTDLDEPS}
31931fi
31932
31933
31934
31935if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000031936 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 +000031937else
cristy2e8b51d2009-10-17 18:26:15 +000031938 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 +000031939fi
31940
31941
31942#
31943# Remove extraneous spaces from output variables (asthetic)
31944#
31945X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
31946X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
31947X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
31948X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
31949
31950CC=`echo $CC | sed -e 's/ */ /g'`
31951CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
31952CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
31953CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
31954DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
31955DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
31956LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
31957TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
31958MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
31959#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
31960
31961# Pass only user-provided LIBS as "global" libraries
31962LIBS=$USER_LIBS
31963
31964#AC_SUBST(CPPFLAGS)
31965
31966#AC_SUBST(LDFLAGS)
31967#AC_SUBST(X_PRE_LIBS)
31968#AC_SUBST(X_LIBS)
31969#AC_SUBST(X_EXTRA_LIBS)
31970
31971MAGICK_CFLAGS=$CFLAGS
31972MAGICK_CXXFLAGS="$CXXFLAGS"
31973MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
31974MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
31975MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
31976MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
31977
31978
31979
31980
31981
31982
31983
31984
31985# Set configured scripts to executable.
31986ac_config_commands="$ac_config_commands default"
31987
31988ac_config_commands="$ac_config_commands MagickCore-config.in"
31989
31990ac_config_commands="$ac_config_commands Magick-config.in"
31991
31992ac_config_commands="$ac_config_commands MagickWand-config.in"
31993
31994ac_config_commands="$ac_config_commands Wand-config.in"
31995
31996ac_config_commands="$ac_config_commands Magick++-config.in"
31997
31998ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
31999
32000
cristy8b350f62009-11-15 23:12:43 +000032001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032002$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032004$as_echo "Update ImageMagick configuration" >&6; }
32005cat >confcache <<\_ACEOF
32006# This file is a shell script that caches the results of configure
32007# tests run on this system so they can be shared between configure
32008# scripts and configure runs, see configure's option --config-cache.
32009# It is not useful on other systems. If it contains results you don't
32010# want to keep, you may remove or edit it.
32011#
32012# config.status only pays attention to the cache file if you give it
32013# the --recheck option to rerun configure.
32014#
32015# `ac_cv_env_foo' variables (set or unset) will be overridden when
32016# loading this file, other *unset* `ac_cv_foo' will be assigned the
32017# following values.
32018
32019_ACEOF
32020
32021# The following way of writing the cache mishandles newlines in values,
32022# but we know of no workaround that is simple, portable, and efficient.
32023# So, we kill variables containing newlines.
32024# Ultrix sh set writes to stderr and can't be redirected directly,
32025# and sets the high bit in the cache file unless we assign to the vars.
32026(
32027 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32028 eval ac_val=\$$ac_var
32029 case $ac_val in #(
32030 *${as_nl}*)
32031 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032033$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32034 esac
32035 case $ac_var in #(
32036 _ | IFS | as_nl) ;; #(
32037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032038 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032039 esac ;;
32040 esac
32041 done
32042
32043 (set) 2>&1 |
32044 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32045 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032046 # `set' does not quote correctly, so add quotes: double-quote
32047 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032048 sed -n \
32049 "s/'/'\\\\''/g;
32050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32051 ;; #(
32052 *)
32053 # `set' quotes correctly as required by POSIX, so do not add quotes.
32054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32055 ;;
32056 esac |
32057 sort
32058) |
32059 sed '
32060 /^ac_cv_env_/b end
32061 t clear
32062 :clear
32063 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32064 t end
32065 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32066 :end' >>confcache
32067if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32068 if test -w "$cache_file"; then
32069 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032070 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032071$as_echo "$as_me: updating cache $cache_file" >&6;}
32072 cat confcache >$cache_file
32073 else
cristy8b350f62009-11-15 23:12:43 +000032074 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032075$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32076 fi
32077fi
32078rm -f confcache
32079
32080test "x$prefix" = xNONE && prefix=$ac_default_prefix
32081# Let make expand exec_prefix.
32082test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32083
32084DEFS=-DHAVE_CONFIG_H
32085
32086ac_libobjs=
32087ac_ltlibobjs=
32088for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32089 # 1. Remove the extension, and $U if already installed.
32090 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32091 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32092 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32093 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032094 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32095 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032096done
32097LIBOBJS=$ac_libobjs
32098
32099LTLIBOBJS=$ac_ltlibobjs
32100
32101
32102 if test -n "$EXEEXT"; then
32103 am__EXEEXT_TRUE=
32104 am__EXEEXT_FALSE='#'
32105else
32106 am__EXEEXT_TRUE='#'
32107 am__EXEEXT_FALSE=
32108fi
32109
32110if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032111 as_fn_error "conditional \"AMDEP\" was never defined.
32112Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032113fi
32114if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032115 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32116Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032117fi
cristya0b81c32010-01-22 02:54:33 +000032118if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32119 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32120Usually this means the macro was only invoked conditionally." "$LINENO" 5
32121fi
cristy3ed852e2009-09-05 21:47:34 +000032122if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032123 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32124Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032125fi
32126if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032127 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32128Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032129fi
32130if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032131 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32132Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032133fi
32134if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032135 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32136Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032137fi
32138if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032139 as_fn_error "conditional \"USING_CL\" was never defined.
32140Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032141fi
cristy18304f92009-11-22 15:48:26 +000032142if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32143 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32144Usually this means the macro was only invoked conditionally." "$LINENO" 5
32145fi
cristy3ed852e2009-09-05 21:47:34 +000032146if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032147 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32148Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032149fi
32150if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032151 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
32152Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032153fi
32154LT_CONFIG_H=config/config.h
32155
32156 _ltdl_libobjs=
32157 _ltdl_ltlibobjs=
32158 if test -n "$_LT_LIBOBJS"; then
32159 # Remove the extension.
32160 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32161 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32162 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32163 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32164 done
32165 fi
32166 ltdl_LIBOBJS=$_ltdl_libobjs
32167
32168 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32169
32170
cristyfa112112010-01-04 17:48:07 +000032171if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32172 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
32173Usually this means the macro was only invoked conditionally." "$LINENO" 5
32174fi
cristy3ed852e2009-09-05 21:47:34 +000032175if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032176 as_fn_error "conditional \"WITH_MODULES\" was never defined.
32177Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032178fi
32179if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032180 as_fn_error "conditional \"WITH_LTDL\" was never defined.
32181Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032182fi
32183if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032184 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
32185Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032186fi
32187
32188if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032189 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32190Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032191fi
32192if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032193 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32194Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032195fi
32196if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032197 as_fn_error "conditional \"HasUMEM\" was never defined.
32198Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032199fi
32200if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032201 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
32202Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032203fi
32204if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032205 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
32206Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032207fi
32208if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032209 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
32210Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032211fi
32212if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032213 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32214Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032215fi
32216if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032217 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
32218Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032219fi
32220if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032221 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
32222Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032223fi
32224if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032225 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
32226Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032227fi
32228if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032229 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
32230Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032231fi
32232if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032233 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32234Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032235fi
32236if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032237 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32238Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032239fi
32240if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032241 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32242Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032243fi
32244if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032245 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32246Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032247fi
32248if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032249 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32250Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032251fi
32252if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032253 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32254Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032255fi
32256if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032257 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32258Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032259fi
32260if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032261 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32262Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032263fi
32264if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032265 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32266Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032267fi
32268if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032269 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32270Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032271fi
32272if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032273 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32274Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032275fi
32276if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032277 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32278Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032279fi
32280if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032281 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32282Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032283fi
32284if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032285 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32286Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032287fi
32288if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032289 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32290Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032291fi
32292if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032293 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32294Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032295fi
32296if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032297 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32298Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032299fi
32300if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032301 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
32302Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032303fi
32304if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032305 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
32306Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032307fi
32308if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032309 as_fn_error "conditional \"WITH_PERL\" was never defined.
32310Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032311fi
32312if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032313 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
32314Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032315fi
32316if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032317 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32318Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032319fi
32320
32321: ${CONFIG_STATUS=./config.status}
32322ac_write_fail=0
32323ac_clean_files_save=$ac_clean_files
32324ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032325{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032326$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032327as_write_fail=0
32328cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032329#! $SHELL
32330# Generated by $as_me.
32331# Run this file to recreate the current configuration.
32332# Compiler output produced by configure, useful for debugging
32333# configure, is in config.log if it exists.
32334
32335debug=false
32336ac_cs_recheck=false
32337ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032338
cristy8b350f62009-11-15 23:12:43 +000032339SHELL=\${CONFIG_SHELL-$SHELL}
32340export SHELL
32341_ASEOF
32342cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32343## -------------------- ##
32344## M4sh Initialization. ##
32345## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032346
32347# Be more Bourne compatible
32348DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032349if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032350 emulate sh
32351 NULLCMD=:
32352 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32353 # is contrary to our usage. Disable this feature.
32354 alias -g '${1+"$@"}'='"$@"'
32355 setopt NO_GLOB_SUBST
32356else
cristy8b350f62009-11-15 23:12:43 +000032357 case `(set -o) 2>/dev/null` in #(
32358 *posix*) :
32359 set -o posix ;; #(
32360 *) :
32361 ;;
cristy3ed852e2009-09-05 21:47:34 +000032362esac
cristy3ed852e2009-09-05 21:47:34 +000032363fi
32364
32365
cristy3ed852e2009-09-05 21:47:34 +000032366as_nl='
32367'
32368export as_nl
32369# Printing a long string crashes Solaris 7 /usr/bin/printf.
32370as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32371as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32372as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032373# Prefer a ksh shell builtin over an external printf program on Solaris,
32374# but without wasting forks for bash or zsh.
32375if test -z "$BASH_VERSION$ZSH_VERSION" \
32376 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32377 as_echo='print -r --'
32378 as_echo_n='print -rn --'
32379elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032380 as_echo='printf %s\n'
32381 as_echo_n='printf %s'
32382else
32383 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32384 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32385 as_echo_n='/usr/ucb/echo -n'
32386 else
32387 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32388 as_echo_n_body='eval
32389 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032390 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032391 *"$as_nl"*)
32392 expr "X$arg" : "X\\(.*\\)$as_nl";
32393 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32394 esac;
32395 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32396 '
32397 export as_echo_n_body
32398 as_echo_n='sh -c $as_echo_n_body as_echo'
32399 fi
32400 export as_echo_body
32401 as_echo='sh -c $as_echo_body as_echo'
32402fi
32403
32404# The user is always right.
32405if test "${PATH_SEPARATOR+set}" != set; then
32406 PATH_SEPARATOR=:
32407 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32408 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32409 PATH_SEPARATOR=';'
32410 }
32411fi
32412
cristy3ed852e2009-09-05 21:47:34 +000032413
32414# IFS
32415# We need space, tab and new line, in precisely that order. Quoting is
32416# there to prevent editors from complaining about space-tab.
32417# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32418# splitting by setting IFS to empty value.)
32419IFS=" "" $as_nl"
32420
32421# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000032422case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000032423 *[\\/]* ) as_myself=$0 ;;
32424 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32425for as_dir in $PATH
32426do
32427 IFS=$as_save_IFS
32428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032429 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32430 done
cristy3ed852e2009-09-05 21:47:34 +000032431IFS=$as_save_IFS
32432
32433 ;;
32434esac
32435# We did not find ourselves, most probably we were run as `sh COMMAND'
32436# in which case we are not to be found in the path.
32437if test "x$as_myself" = x; then
32438 as_myself=$0
32439fi
32440if test ! -f "$as_myself"; then
32441 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000032442 exit 1
cristy3ed852e2009-09-05 21:47:34 +000032443fi
32444
cristy8b350f62009-11-15 23:12:43 +000032445# Unset variables that we do not need and which cause bugs (e.g. in
32446# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32447# suppresses any "Segmentation fault" message there. '((' could
32448# trigger a bug in pdksh 5.2.14.
32449for as_var in BASH_ENV ENV MAIL MAILPATH
32450do eval test x\${$as_var+set} = xset \
32451 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000032452done
32453PS1='$ '
32454PS2='> '
32455PS4='+ '
32456
32457# NLS nuisances.
32458LC_ALL=C
32459export LC_ALL
32460LANGUAGE=C
32461export LANGUAGE
32462
cristy8b350f62009-11-15 23:12:43 +000032463# CDPATH.
32464(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32465
32466
32467# as_fn_error ERROR [LINENO LOG_FD]
32468# ---------------------------------
32469# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32470# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32471# script with status $?, using 1 if that was 0.
32472as_fn_error ()
32473{
32474 as_status=$?; test $as_status -eq 0 && as_status=1
32475 if test "$3"; then
32476 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32477 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
32478 fi
32479 $as_echo "$as_me: error: $1" >&2
32480 as_fn_exit $as_status
32481} # as_fn_error
32482
32483
32484# as_fn_set_status STATUS
32485# -----------------------
32486# Set $? to STATUS, without forking.
32487as_fn_set_status ()
32488{
32489 return $1
32490} # as_fn_set_status
32491
32492# as_fn_exit STATUS
32493# -----------------
32494# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32495as_fn_exit ()
32496{
32497 set +e
32498 as_fn_set_status $1
32499 exit $1
32500} # as_fn_exit
32501
32502# as_fn_unset VAR
32503# ---------------
32504# Portably unset VAR.
32505as_fn_unset ()
32506{
32507 { eval $1=; unset $1;}
32508}
32509as_unset=as_fn_unset
32510# as_fn_append VAR VALUE
32511# ----------------------
32512# Append the text in VALUE to the end of the definition contained in VAR. Take
32513# advantage of any shell optimizations that allow amortized linear growth over
32514# repeated appends, instead of the typical quadratic growth present in naive
32515# implementations.
32516if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32517 eval 'as_fn_append ()
32518 {
32519 eval $1+=\$2
32520 }'
32521else
32522 as_fn_append ()
32523 {
32524 eval $1=\$$1\$2
32525 }
32526fi # as_fn_append
32527
32528# as_fn_arith ARG...
32529# ------------------
32530# Perform arithmetic evaluation on the ARGs, and store the result in the
32531# global $as_val. Take advantage of shells that can avoid forks. The arguments
32532# must be portable across $(()) and expr.
32533if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32534 eval 'as_fn_arith ()
32535 {
32536 as_val=$(( $* ))
32537 }'
32538else
32539 as_fn_arith ()
32540 {
32541 as_val=`expr "$@" || test $? -eq 1`
32542 }
32543fi # as_fn_arith
32544
32545
cristy3ed852e2009-09-05 21:47:34 +000032546if expr a : '\(a\)' >/dev/null 2>&1 &&
32547 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32548 as_expr=expr
32549else
32550 as_expr=false
32551fi
32552
32553if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32554 as_basename=basename
32555else
32556 as_basename=false
32557fi
32558
cristy8b350f62009-11-15 23:12:43 +000032559if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32560 as_dirname=dirname
32561else
32562 as_dirname=false
32563fi
cristy3ed852e2009-09-05 21:47:34 +000032564
cristy3ed852e2009-09-05 21:47:34 +000032565as_me=`$as_basename -- "$0" ||
32566$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32567 X"$0" : 'X\(//\)$' \| \
32568 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32569$as_echo X/"$0" |
32570 sed '/^.*\/\([^/][^/]*\)\/*$/{
32571 s//\1/
32572 q
32573 }
32574 /^X\/\(\/\/\)$/{
32575 s//\1/
32576 q
32577 }
32578 /^X\/\(\/\).*/{
32579 s//\1/
32580 q
32581 }
32582 s/.*/./; q'`
32583
cristy8b350f62009-11-15 23:12:43 +000032584# Avoid depending upon Character Ranges.
32585as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32586as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32587as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32588as_cr_digits='0123456789'
32589as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000032590
32591ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000032592case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000032593-n*)
cristy8b350f62009-11-15 23:12:43 +000032594 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000032595 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000032596 xy) ECHO_C='\c';;
32597 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32598 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000032599 esac;;
32600*)
32601 ECHO_N='-n';;
32602esac
cristy3ed852e2009-09-05 21:47:34 +000032603
32604rm -f conf$$ conf$$.exe conf$$.file
32605if test -d conf$$.dir; then
32606 rm -f conf$$.dir/conf$$.file
32607else
32608 rm -f conf$$.dir
32609 mkdir conf$$.dir 2>/dev/null
32610fi
32611if (echo >conf$$.file) 2>/dev/null; then
32612 if ln -s conf$$.file conf$$ 2>/dev/null; then
32613 as_ln_s='ln -s'
32614 # ... but there are two gotchas:
32615 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32616 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32617 # In both cases, we have to default to `cp -p'.
32618 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32619 as_ln_s='cp -p'
32620 elif ln conf$$.file conf$$ 2>/dev/null; then
32621 as_ln_s=ln
32622 else
32623 as_ln_s='cp -p'
32624 fi
32625else
32626 as_ln_s='cp -p'
32627fi
32628rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32629rmdir conf$$.dir 2>/dev/null
32630
cristy8b350f62009-11-15 23:12:43 +000032631
32632# as_fn_mkdir_p
32633# -------------
32634# Create "$as_dir" as a directory, including parents if necessary.
32635as_fn_mkdir_p ()
32636{
32637
32638 case $as_dir in #(
32639 -*) as_dir=./$as_dir;;
32640 esac
32641 test -d "$as_dir" || eval $as_mkdir_p || {
32642 as_dirs=
32643 while :; do
32644 case $as_dir in #(
32645 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32646 *) as_qdir=$as_dir;;
32647 esac
32648 as_dirs="'$as_qdir' $as_dirs"
32649 as_dir=`$as_dirname -- "$as_dir" ||
32650$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32651 X"$as_dir" : 'X\(//\)[^/]' \| \
32652 X"$as_dir" : 'X\(//\)$' \| \
32653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32654$as_echo X"$as_dir" |
32655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32656 s//\1/
32657 q
32658 }
32659 /^X\(\/\/\)[^/].*/{
32660 s//\1/
32661 q
32662 }
32663 /^X\(\/\/\)$/{
32664 s//\1/
32665 q
32666 }
32667 /^X\(\/\).*/{
32668 s//\1/
32669 q
32670 }
32671 s/.*/./; q'`
32672 test -d "$as_dir" && break
32673 done
32674 test -z "$as_dirs" || eval "mkdir $as_dirs"
32675 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
32676
32677
32678} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032679if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032680 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000032681else
32682 test -d ./-p && rmdir ./-p
32683 as_mkdir_p=false
32684fi
32685
32686if test -x / >/dev/null 2>&1; then
32687 as_test_x='test -x'
32688else
32689 if ls -dL / >/dev/null 2>&1; then
32690 as_ls_L_option=L
32691 else
32692 as_ls_L_option=
32693 fi
32694 as_test_x='
32695 eval sh -c '\''
32696 if test -d "$1"; then
32697 test -d "$1/.";
32698 else
cristy8b350f62009-11-15 23:12:43 +000032699 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000032700 -*)set "./$1";;
32701 esac;
cristy8b350f62009-11-15 23:12:43 +000032702 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000032703 ???[sx]*):;;*)false;;esac;fi
32704 '\'' sh
32705 '
32706fi
32707as_executable_p=$as_test_x
32708
32709# Sed expression to map a string onto a valid CPP name.
32710as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32711
32712# Sed expression to map a string onto a valid variable name.
32713as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32714
32715
32716exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000032717## ----------------------------------- ##
32718## Main body of $CONFIG_STATUS script. ##
32719## ----------------------------------- ##
32720_ASEOF
32721test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032722
cristy8b350f62009-11-15 23:12:43 +000032723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32724# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000032725# report actual input values of CONFIG_FILES etc. instead of their
32726# values after options handling.
32727ac_log="
cristyb36feb22010-03-26 16:54:37 +000032728This file was extended by ImageMagick $as_me 6.6.1, which was
cristycd4c5312009-11-22 01:19:08 +000032729generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000032730
32731 CONFIG_FILES = $CONFIG_FILES
32732 CONFIG_HEADERS = $CONFIG_HEADERS
32733 CONFIG_LINKS = $CONFIG_LINKS
32734 CONFIG_COMMANDS = $CONFIG_COMMANDS
32735 $ $0 $@
32736
32737on `(hostname || uname -n) 2>/dev/null | sed 1q`
32738"
32739
32740_ACEOF
32741
32742case $ac_config_files in *"
32743"*) set x $ac_config_files; shift; ac_config_files=$*;;
32744esac
32745
32746case $ac_config_headers in *"
32747"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32748esac
32749
32750
32751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32752# Files that config.status was made for.
32753config_files="$ac_config_files"
32754config_headers="$ac_config_headers"
32755config_commands="$ac_config_commands"
32756
32757_ACEOF
32758
32759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32760ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000032761\`$as_me' instantiates files and other configuration actions
32762from templates according to the current configuration. Unless the files
32763and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000032764
cristy8b350f62009-11-15 23:12:43 +000032765Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000032766
32767 -h, --help print this help, then exit
32768 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000032769 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000032770 -q, --quiet, --silent
32771 do not print progress messages
32772 -d, --debug don't remove temporary files
32773 --recheck update $as_me by reconfiguring in the same conditions
32774 --file=FILE[:TEMPLATE]
32775 instantiate the configuration file FILE
32776 --header=FILE[:TEMPLATE]
32777 instantiate the configuration header FILE
32778
32779Configuration files:
32780$config_files
32781
32782Configuration headers:
32783$config_headers
32784
32785Configuration commands:
32786$config_commands
32787
cristy8b350f62009-11-15 23:12:43 +000032788Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000032789
32790_ACEOF
32791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000032792ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000032793ac_cs_version="\\
cristyb36feb22010-03-26 16:54:37 +000032794ImageMagick config.status 6.6.1
cristycd4c5312009-11-22 01:19:08 +000032795configured by $0, generated by GNU Autoconf 2.65,
32796 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000032797
cristy8b350f62009-11-15 23:12:43 +000032798Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000032799This config.status script is free software; the Free Software Foundation
32800gives unlimited permission to copy, distribute and modify it."
32801
32802ac_pwd='$ac_pwd'
32803srcdir='$srcdir'
32804INSTALL='$INSTALL'
32805MKDIR_P='$MKDIR_P'
32806AWK='$AWK'
32807test -n "\$AWK" || AWK=awk
32808_ACEOF
32809
32810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32811# The default lists apply if the user does not specify any file.
32812ac_need_defaults=:
32813while test $# != 0
32814do
32815 case $1 in
32816 --*=*)
32817 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32818 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32819 ac_shift=:
32820 ;;
32821 *)
32822 ac_option=$1
32823 ac_optarg=$2
32824 ac_shift=shift
32825 ;;
32826 esac
32827
32828 case $ac_option in
32829 # Handling of the options.
32830 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32831 ac_cs_recheck=: ;;
32832 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32833 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000032834 --config | --confi | --conf | --con | --co | --c )
32835 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000032836 --debug | --debu | --deb | --de | --d | -d )
32837 debug=: ;;
32838 --file | --fil | --fi | --f )
32839 $ac_shift
32840 case $ac_optarg in
32841 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32842 esac
cristy8b350f62009-11-15 23:12:43 +000032843 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000032844 ac_need_defaults=false;;
32845 --header | --heade | --head | --hea )
32846 $ac_shift
32847 case $ac_optarg in
32848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32849 esac
cristy8b350f62009-11-15 23:12:43 +000032850 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000032851 ac_need_defaults=false;;
32852 --he | --h)
32853 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000032854 as_fn_error "ambiguous option: \`$1'
32855Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000032856 --help | --hel | -h )
32857 $as_echo "$ac_cs_usage"; exit ;;
32858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32859 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32860 ac_cs_silent=: ;;
32861
32862 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000032863 -*) as_fn_error "unrecognized option: \`$1'
32864Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000032865
cristy8b350f62009-11-15 23:12:43 +000032866 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000032867 ac_need_defaults=false ;;
32868
32869 esac
32870 shift
32871done
32872
32873ac_configure_extra_args=
32874
32875if $ac_cs_silent; then
32876 exec 6>/dev/null
32877 ac_configure_extra_args="$ac_configure_extra_args --silent"
32878fi
32879
32880_ACEOF
32881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32882if \$ac_cs_recheck; then
32883 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32884 shift
32885 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32886 CONFIG_SHELL='$SHELL'
32887 export CONFIG_SHELL
32888 exec "\$@"
32889fi
32890
32891_ACEOF
32892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32893exec 5>>config.log
32894{
32895 echo
32896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32897## Running $as_me. ##
32898_ASBOX
32899 $as_echo "$ac_log"
32900} >&5
32901
32902_ACEOF
32903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32904#
32905# INIT-COMMANDS
32906#
32907PACKAGE="$PACKAGE"
32908AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32909
32910
32911# The HP-UX ksh and POSIX shell print the target directory to stdout
32912# if CDPATH is set.
32913(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32914
32915sed_quote_subst='$sed_quote_subst'
32916double_quote_subst='$double_quote_subst'
32917delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000032918SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
32919Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
32920GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
32921EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
32922FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
32923LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
32924macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
32925macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
32926AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
32927DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32928OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
32929enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
32930enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
32931pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
32932enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
32933host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
32934host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
32935host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
32936build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
32937build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
32938build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
32939NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
32940LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
32941max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
32942ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
32943exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
32944lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
32945lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
32946lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
32947reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
32948reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32949deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
32950file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
32951AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
32952AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32953STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
32954RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
32955old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32956old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32957old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32958CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
32959CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32960compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
32961GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
32962lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
32963lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
32964lt_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"`'
32965lt_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"`'
32966objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
32967SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
32968ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
32969MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
32970lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
32971lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
32972lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
32973lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
32974lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
32975need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
32976DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
32977NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
32978LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
32979OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32980OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
32981libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
32982shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32983extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32984archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
32985enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
32986export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32987whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32988compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
32989old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32990old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32991archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32992archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32993module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32994module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32995with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
32996allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32997no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32998hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32999hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33000hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33001hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33002hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33003hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33004hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33005hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33006inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33007link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33008fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33009always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33010export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33011exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33012include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33013prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33014file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33015variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33016need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33017need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33018version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33019runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33020shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33021shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33022libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33023library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33024soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33025postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33026postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33027finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33028finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33029hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33030sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33031sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33032hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33033enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33034enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33035enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33036old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33037striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33038compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33039predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33040postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33041predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33042postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33043compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33044LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33045old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33046compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33047GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33048lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33049lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33050lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33051lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33052lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33053archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33054enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33055export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33056whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33057compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33058old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33059old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33060archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33061archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33062module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33063module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33064with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33065allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33066no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33067hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33068hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33069hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33070hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33071hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33072hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33073hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33074hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33075inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33076link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33077fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33078always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33079export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33080exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33081include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33082prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33083file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33084hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33085compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33086predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33087postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33088predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33089postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33090compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033091
33092LTCC='$LTCC'
33093LTCFLAGS='$LTCFLAGS'
33094compiler='$compiler_DEFAULT'
33095
33096# Quote evaled strings.
33097for var in SED \
33098GREP \
33099EGREP \
33100FGREP \
33101LD \
33102NM \
33103LN_S \
33104lt_SP2NL \
33105lt_NL2SP \
33106reload_flag \
33107deplibs_check_method \
33108file_magic_cmd \
33109AR \
33110AR_FLAGS \
33111STRIP \
33112RANLIB \
33113CC \
33114CFLAGS \
33115compiler \
33116lt_cv_sys_global_symbol_pipe \
33117lt_cv_sys_global_symbol_to_cdecl \
33118lt_cv_sys_global_symbol_to_c_name_address \
33119lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000033120SHELL \
33121ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033122lt_prog_compiler_no_builtin_flag \
33123lt_prog_compiler_wl \
33124lt_prog_compiler_pic \
33125lt_prog_compiler_static \
33126lt_cv_prog_compiler_c_o \
33127need_locks \
33128DSYMUTIL \
33129NMEDIT \
33130LIPO \
33131OTOOL \
33132OTOOL64 \
33133shrext_cmds \
33134export_dynamic_flag_spec \
33135whole_archive_flag_spec \
33136compiler_needs_object \
33137with_gnu_ld \
33138allow_undefined_flag \
33139no_undefined_flag \
33140hardcode_libdir_flag_spec \
33141hardcode_libdir_flag_spec_ld \
33142hardcode_libdir_separator \
33143fix_srcfile_path \
33144exclude_expsyms \
33145include_expsyms \
33146file_list_spec \
33147variables_saved_for_relink \
33148libname_spec \
33149library_names_spec \
33150soname_spec \
33151finish_eval \
33152old_striplib \
33153striplib \
33154compiler_lib_search_dirs \
33155predep_objects \
33156postdep_objects \
33157predeps \
33158postdeps \
33159compiler_lib_search_path \
33160LD_CXX \
33161compiler_CXX \
33162lt_prog_compiler_no_builtin_flag_CXX \
33163lt_prog_compiler_wl_CXX \
33164lt_prog_compiler_pic_CXX \
33165lt_prog_compiler_static_CXX \
33166lt_cv_prog_compiler_c_o_CXX \
33167export_dynamic_flag_spec_CXX \
33168whole_archive_flag_spec_CXX \
33169compiler_needs_object_CXX \
33170with_gnu_ld_CXX \
33171allow_undefined_flag_CXX \
33172no_undefined_flag_CXX \
33173hardcode_libdir_flag_spec_CXX \
33174hardcode_libdir_flag_spec_ld_CXX \
33175hardcode_libdir_separator_CXX \
33176fix_srcfile_path_CXX \
33177exclude_expsyms_CXX \
33178include_expsyms_CXX \
33179file_list_spec_CXX \
33180compiler_lib_search_dirs_CXX \
33181predep_objects_CXX \
33182postdep_objects_CXX \
33183predeps_CXX \
33184postdeps_CXX \
33185compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000033186 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033187 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033188 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033189 ;;
33190 *)
33191 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33192 ;;
33193 esac
33194done
33195
33196# Double-quote double-evaled strings.
33197for var in reload_cmds \
33198old_postinstall_cmds \
33199old_postuninstall_cmds \
33200old_archive_cmds \
33201extract_expsyms_cmds \
33202old_archive_from_new_cmds \
33203old_archive_from_expsyms_cmds \
33204archive_cmds \
33205archive_expsym_cmds \
33206module_cmds \
33207module_expsym_cmds \
33208export_symbols_cmds \
33209prelink_cmds \
33210postinstall_cmds \
33211postuninstall_cmds \
33212finish_cmds \
33213sys_lib_search_path_spec \
33214sys_lib_dlsearch_path_spec \
33215old_archive_cmds_CXX \
33216old_archive_from_new_cmds_CXX \
33217old_archive_from_expsyms_cmds_CXX \
33218archive_cmds_CXX \
33219archive_expsym_cmds_CXX \
33220module_cmds_CXX \
33221module_expsym_cmds_CXX \
33222export_symbols_cmds_CXX \
33223prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000033224 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033225 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033226 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 +000033227 ;;
33228 *)
33229 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33230 ;;
33231 esac
33232done
33233
cristy18304f92009-11-22 15:48:26 +000033234# Fix-up fallback echo if it was mangled by the above quoting rules.
33235case \$lt_ECHO in
33236*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33237 ;;
33238esac
33239
cristy3ed852e2009-09-05 21:47:34 +000033240ac_aux_dir='$ac_aux_dir'
33241xsi_shell='$xsi_shell'
33242lt_shell_append='$lt_shell_append'
33243
33244# See if we are running on zsh, and set the options which allow our
33245# commands through without removal of \ escapes INIT.
33246if test -n "\${ZSH_VERSION+set}" ; then
33247 setopt NO_GLOB_SUBST
33248fi
33249
33250
33251 PACKAGE='$PACKAGE'
33252 VERSION='$VERSION'
33253 TIMESTAMP='$TIMESTAMP'
33254 RM='$RM'
33255 ofile='$ofile'
33256
33257
33258
33259
33260
33261
33262_ACEOF
33263
33264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33265
33266# Handling of arguments.
33267for ac_config_target in $ac_config_targets
33268do
33269 case $ac_config_target in
33270 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33271 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33272 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33273 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33274 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33275 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33276 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033277 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033278 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33279 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33280 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33281 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33282 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33283 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33284 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33285 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33286 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33287 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33288 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33289 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33290 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33291 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33292 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33293 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33294 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33295 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33296 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33297 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33298 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33299 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33300 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33301 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33302 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33303 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33304 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33305 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33306 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33307 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33308 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33309 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33310 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33311 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33312 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33313 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33314 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33315 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33316 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33317 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33318 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33319 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33320
cristy8b350f62009-11-15 23:12:43 +000033321 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033322 esac
33323done
33324
33325
33326# If the user did not use the arguments to specify the items to instantiate,
33327# then the envvar interface is used. Set only those that are not.
33328# We use the long form for the default assignment because of an extremely
33329# bizarre bug on SunOS 4.1.3.
33330if $ac_need_defaults; then
33331 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33332 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33333 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33334fi
33335
33336# Have a temporary directory for convenience. Make it in the build tree
33337# simply because there is no reason against having it here, and in addition,
33338# creating and moving files from /tmp can sometimes cause problems.
33339# Hook for its removal unless debugging.
33340# Note that there is a small window in which the directory will not be cleaned:
33341# after its creation but before its name has been assigned to `$tmp'.
33342$debug ||
33343{
33344 tmp=
33345 trap 'exit_status=$?
33346 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33347' 0
cristy8b350f62009-11-15 23:12:43 +000033348 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033349}
33350# Create a (secure) tmp directory for tmp files.
33351
33352{
33353 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33354 test -n "$tmp" && test -d "$tmp"
33355} ||
33356{
33357 tmp=./conf$$-$RANDOM
33358 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000033359} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033360
33361# Set up the scripts for CONFIG_FILES section.
33362# No need to generate them if there are no CONFIG_FILES.
33363# This happens for instance with `./config.status config.h'.
33364if test -n "$CONFIG_FILES"; then
33365
33366
cristy8b350f62009-11-15 23:12:43 +000033367ac_cr=`echo X | tr X '\015'`
33368# On cygwin, bash can eat \r inside `` if the user requested igncr.
33369# But we know of no other shell where ac_cr would be empty at this
33370# point, so we can use a bashism as a fallback.
33371if test "x$ac_cr" = x; then
33372 eval ac_cr=\$\'\\r\'
33373fi
cristy3ed852e2009-09-05 21:47:34 +000033374ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33375if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000033376 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000033377else
33378 ac_cs_awk_cr=$ac_cr
33379fi
33380
33381echo 'BEGIN {' >"$tmp/subs1.awk" &&
33382_ACEOF
33383
33384
33385{
33386 echo "cat >conf$$subs.awk <<_ACEOF" &&
33387 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33388 echo "_ACEOF"
33389} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033390 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033391ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33392ac_delim='%!_!# '
33393for ac_last_try in false false false false false :; do
33394 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033395 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033396
33397 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33398 if test $ac_delim_n = $ac_delim_num; then
33399 break
33400 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033401 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033402 else
33403 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33404 fi
33405done
33406rm -f conf$$subs.sh
33407
33408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33409cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33410_ACEOF
33411sed -n '
33412h
33413s/^/S["/; s/!.*/"]=/
33414p
33415g
33416s/^[^!]*!//
33417:repl
33418t repl
33419s/'"$ac_delim"'$//
33420t delim
33421:nl
33422h
cristycd4c5312009-11-22 01:19:08 +000033423s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033424t more1
33425s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33426p
33427n
33428b repl
33429:more1
33430s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33431p
33432g
33433s/.\{148\}//
33434t nl
33435:delim
33436h
cristycd4c5312009-11-22 01:19:08 +000033437s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033438t more2
33439s/["\\]/\\&/g; s/^/"/; s/$/"/
33440p
33441b
33442:more2
33443s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33444p
33445g
33446s/.\{148\}//
33447t delim
33448' <conf$$subs.awk | sed '
33449/^[^""]/{
33450 N
33451 s/\n//
33452}
33453' >>$CONFIG_STATUS || ac_write_fail=1
33454rm -f conf$$subs.awk
33455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33456_ACAWK
33457cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33458 for (key in S) S_is_set[key] = 1
33459 FS = ""
33460
33461}
33462{
33463 line = $ 0
33464 nfields = split(line, field, "@")
33465 substed = 0
33466 len = length(field[1])
33467 for (i = 2; i < nfields; i++) {
33468 key = field[i]
33469 keylen = length(key)
33470 if (S_is_set[key]) {
33471 value = S[key]
33472 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33473 len += length(value) + length(field[++i])
33474 substed = 1
33475 } else
33476 len += 1 + keylen
33477 }
33478
33479 print line
33480}
33481
33482_ACAWK
33483_ACEOF
33484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33485if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33486 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33487else
33488 cat
33489fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000033490 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033491_ACEOF
33492
33493# VPATH may cause trouble with some makes, so we remove $(srcdir),
33494# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33495# trailing colons and then remove the whole line if VPATH becomes empty
33496# (actually we leave an empty line to preserve line numbers).
33497if test "x$srcdir" = x.; then
33498 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33499s/:*\$(srcdir):*/:/
33500s/:*\${srcdir}:*/:/
33501s/:*@srcdir@:*/:/
33502s/^\([^=]*=[ ]*\):*/\1/
33503s/:*$//
33504s/^[^=]*=[ ]*$//
33505}'
33506fi
33507
33508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33509fi # test -n "$CONFIG_FILES"
33510
33511# Set up the scripts for CONFIG_HEADERS section.
33512# No need to generate them if there are no CONFIG_HEADERS.
33513# This happens for instance with `./config.status Makefile'.
33514if test -n "$CONFIG_HEADERS"; then
33515cat >"$tmp/defines.awk" <<\_ACAWK ||
33516BEGIN {
33517_ACEOF
33518
33519# Transform confdefs.h into an awk script `defines.awk', embedded as
33520# here-document in config.status, that substitutes the proper values into
33521# config.h.in to produce config.h.
33522
33523# Create a delimiter string that does not exist in confdefs.h, to ease
33524# handling of long lines.
33525ac_delim='%!_!# '
33526for ac_last_try in false false :; do
33527 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33528 if test -z "$ac_t"; then
33529 break
33530 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033531 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033532 else
33533 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33534 fi
33535done
33536
33537# For the awk script, D is an array of macro values keyed by name,
33538# likewise P contains macro parameters if any. Preserve backslash
33539# newline sequences.
33540
33541ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33542sed -n '
33543s/.\{148\}/&'"$ac_delim"'/g
33544t rset
33545:rset
33546s/^[ ]*#[ ]*define[ ][ ]*/ /
33547t def
33548d
33549:def
33550s/\\$//
33551t bsnl
33552s/["\\]/\\&/g
33553s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33554D["\1"]=" \3"/p
33555s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33556d
33557:bsnl
33558s/["\\]/\\&/g
33559s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33560D["\1"]=" \3\\\\\\n"\\/p
33561t cont
33562s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33563t cont
33564d
33565:cont
33566n
33567s/.\{148\}/&'"$ac_delim"'/g
33568t clear
33569:clear
33570s/\\$//
33571t bsnlc
33572s/["\\]/\\&/g; s/^/"/; s/$/"/p
33573d
33574:bsnlc
33575s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33576b cont
33577' <confdefs.h | sed '
33578s/'"$ac_delim"'/"\\\
33579"/g' >>$CONFIG_STATUS || ac_write_fail=1
33580
33581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33582 for (key in D) D_is_set[key] = 1
33583 FS = ""
33584}
33585/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33586 line = \$ 0
33587 split(line, arg, " ")
33588 if (arg[1] == "#") {
33589 defundef = arg[2]
33590 mac1 = arg[3]
33591 } else {
33592 defundef = substr(arg[1], 2)
33593 mac1 = arg[2]
33594 }
33595 split(mac1, mac2, "(") #)
33596 macro = mac2[1]
33597 prefix = substr(line, 1, index(line, defundef) - 1)
33598 if (D_is_set[macro]) {
33599 # Preserve the white space surrounding the "#".
33600 print prefix "define", macro P[macro] D[macro]
33601 next
33602 } else {
33603 # Replace #undef with comments. This is necessary, for example,
33604 # in the case of _POSIX_SOURCE, which is predefined and required
33605 # on some systems where configure will not decide to define it.
33606 if (defundef == "undef") {
33607 print "/*", prefix defundef, macro, "*/"
33608 next
33609 }
33610 }
33611}
33612{ print }
33613_ACAWK
33614_ACEOF
33615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000033616 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033617fi # test -n "$CONFIG_HEADERS"
33618
33619
33620eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33621shift
33622for ac_tag
33623do
33624 case $ac_tag in
33625 :[FHLC]) ac_mode=$ac_tag; continue;;
33626 esac
33627 case $ac_mode$ac_tag in
33628 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000033629 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033630 :[FH]-) ac_tag=-:-;;
33631 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33632 esac
33633 ac_save_IFS=$IFS
33634 IFS=:
33635 set x $ac_tag
33636 IFS=$ac_save_IFS
33637 shift
33638 ac_file=$1
33639 shift
33640
33641 case $ac_mode in
33642 :L) ac_source=$1;;
33643 :[FH])
33644 ac_file_inputs=
33645 for ac_f
33646 do
33647 case $ac_f in
33648 -) ac_f="$tmp/stdin";;
33649 *) # Look for the file first in the build tree, then in the source tree
33650 # (if the path is not absolute). The absolute path cannot be DOS-style,
33651 # because $ac_f cannot contain `:'.
33652 test -f "$ac_f" ||
33653 case $ac_f in
33654 [\\/$]*) false;;
33655 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33656 esac ||
cristy8b350f62009-11-15 23:12:43 +000033657 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033658 esac
33659 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000033660 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000033661 done
33662
33663 # Let's still pretend it is `configure' which instantiates (i.e., don't
33664 # use $as_me), people would be surprised to read:
33665 # /* config.h. Generated by config.status. */
33666 configure_input='Generated from '`
33667 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33668 `' by configure.'
33669 if test x"$ac_file" != x-; then
33670 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000033671 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033672$as_echo "$as_me: creating $ac_file" >&6;}
33673 fi
33674 # Neutralize special characters interpreted by sed in replacement strings.
33675 case $configure_input in #(
33676 *\&* | *\|* | *\\* )
33677 ac_sed_conf_input=`$as_echo "$configure_input" |
33678 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33679 *) ac_sed_conf_input=$configure_input;;
33680 esac
33681
33682 case $ac_tag in
33683 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000033684 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000033685 esac
33686 ;;
33687 esac
33688
33689 ac_dir=`$as_dirname -- "$ac_file" ||
33690$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33691 X"$ac_file" : 'X\(//\)[^/]' \| \
33692 X"$ac_file" : 'X\(//\)$' \| \
33693 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33694$as_echo X"$ac_file" |
33695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33696 s//\1/
33697 q
33698 }
33699 /^X\(\/\/\)[^/].*/{
33700 s//\1/
33701 q
33702 }
33703 /^X\(\/\/\)$/{
33704 s//\1/
33705 q
33706 }
33707 /^X\(\/\).*/{
33708 s//\1/
33709 q
33710 }
33711 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033712 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033713 ac_builddir=.
33714
33715case "$ac_dir" in
33716.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33717*)
33718 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33719 # A ".." for each directory in $ac_dir_suffix.
33720 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33721 case $ac_top_builddir_sub in
33722 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33723 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33724 esac ;;
33725esac
33726ac_abs_top_builddir=$ac_pwd
33727ac_abs_builddir=$ac_pwd$ac_dir_suffix
33728# for backward compatibility:
33729ac_top_builddir=$ac_top_build_prefix
33730
33731case $srcdir in
33732 .) # We are building in place.
33733 ac_srcdir=.
33734 ac_top_srcdir=$ac_top_builddir_sub
33735 ac_abs_top_srcdir=$ac_pwd ;;
33736 [\\/]* | ?:[\\/]* ) # Absolute name.
33737 ac_srcdir=$srcdir$ac_dir_suffix;
33738 ac_top_srcdir=$srcdir
33739 ac_abs_top_srcdir=$srcdir ;;
33740 *) # Relative name.
33741 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33742 ac_top_srcdir=$ac_top_build_prefix$srcdir
33743 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33744esac
33745ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33746
33747
33748 case $ac_mode in
33749 :F)
33750 #
33751 # CONFIG_FILE
33752 #
33753
33754 case $INSTALL in
33755 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33756 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33757 esac
33758 ac_MKDIR_P=$MKDIR_P
33759 case $MKDIR_P in
33760 [\\/$]* | ?:[\\/]* ) ;;
33761 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33762 esac
33763_ACEOF
33764
33765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33766# If the template does not know about datarootdir, expand it.
33767# FIXME: This hack should be removed a few years after 2.60.
33768ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000033769ac_sed_dataroot='
33770/datarootdir/ {
33771 p
33772 q
33773}
33774/@datadir@/p
33775/@docdir@/p
33776/@infodir@/p
33777/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000033778/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000033779case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33780*datarootdir*) ac_datarootdir_seen=yes;;
33781*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000033782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000033783$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33784_ACEOF
33785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33786 ac_datarootdir_hack='
33787 s&@datadir@&$datadir&g
33788 s&@docdir@&$docdir&g
33789 s&@infodir@&$infodir&g
33790 s&@localedir@&$localedir&g
33791 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000033792 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000033793esac
33794_ACEOF
33795
33796# Neutralize VPATH when `$srcdir' = `.'.
33797# Shell code in configure.ac might set extrasub.
33798# FIXME: do we really want to maintain this feature?
33799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33800ac_sed_extra="$ac_vpsub
33801$extrasub
33802_ACEOF
33803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33804:t
33805/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33806s|@configure_input@|$ac_sed_conf_input|;t t
33807s&@top_builddir@&$ac_top_builddir_sub&;t t
33808s&@top_build_prefix@&$ac_top_build_prefix&;t t
33809s&@srcdir@&$ac_srcdir&;t t
33810s&@abs_srcdir@&$ac_abs_srcdir&;t t
33811s&@top_srcdir@&$ac_top_srcdir&;t t
33812s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33813s&@builddir@&$ac_builddir&;t t
33814s&@abs_builddir@&$ac_abs_builddir&;t t
33815s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33816s&@INSTALL@&$ac_INSTALL&;t t
33817s&@MKDIR_P@&$ac_MKDIR_P&;t t
33818$ac_datarootdir_hack
33819"
33820eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000033821 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033822
33823test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33824 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33825 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000033826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000033827which seems to be undefined. Please make sure it is defined." >&5
33828$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33829which seems to be undefined. Please make sure it is defined." >&2;}
33830
33831 rm -f "$tmp/stdin"
33832 case $ac_file in
33833 -) cat "$tmp/out" && rm -f "$tmp/out";;
33834 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
33835 esac \
cristy8b350f62009-11-15 23:12:43 +000033836 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033837 ;;
33838 :H)
33839 #
33840 # CONFIG_HEADER
33841 #
33842 if test x"$ac_file" != x-; then
33843 {
33844 $as_echo "/* $configure_input */" \
33845 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
33846 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000033847 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033848 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000033849 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000033850$as_echo "$as_me: $ac_file is unchanged" >&6;}
33851 else
33852 rm -f "$ac_file"
33853 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000033854 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033855 fi
33856 else
33857 $as_echo "/* $configure_input */" \
33858 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000033859 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033860 fi
33861# Compute "$ac_file"'s index in $config_headers.
33862_am_arg="$ac_file"
33863_am_stamp_count=1
33864for _am_header in $config_headers :; do
33865 case $_am_header in
33866 $_am_arg | $_am_arg:* )
33867 break ;;
33868 * )
33869 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33870 esac
33871done
33872echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33873$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33874 X"$_am_arg" : 'X\(//\)[^/]' \| \
33875 X"$_am_arg" : 'X\(//\)$' \| \
33876 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33877$as_echo X"$_am_arg" |
33878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33879 s//\1/
33880 q
33881 }
33882 /^X\(\/\/\)[^/].*/{
33883 s//\1/
33884 q
33885 }
33886 /^X\(\/\/\)$/{
33887 s//\1/
33888 q
33889 }
33890 /^X\(\/\).*/{
33891 s//\1/
33892 q
33893 }
33894 s/.*/./; q'`/stamp-h$_am_stamp_count
33895 ;;
33896
cristy8b350f62009-11-15 23:12:43 +000033897 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000033898$as_echo "$as_me: executing $ac_file commands" >&6;}
33899 ;;
33900 esac
33901
33902
33903 case $ac_file$ac_mode in
33904 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
33905ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
33906ac_prefix_conf_PKG=`echo MagickCore`
33907ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
33908ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
33909ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
33910if test ".$ac_prefix_conf_INP" = "."; then
33911 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
33912 case "$ac_file" in
33913 *.h) ac_prefix_conf_INP=$ac_file ;;
33914 *)
33915 esac
33916 test ".$ac_prefix_conf_INP" != "." && break
33917 done
33918fi
33919if test ".$ac_prefix_conf_INP" = "."; then
33920 case "$ac_prefix_conf_OUT" in
33921 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
33922 ;;
33923 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
33924 ;;
33925 *) ac_prefix_conf_INP=config.h
33926 ;;
33927 esac
33928fi
33929if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000033930 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033931else
33932 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
33933 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
33934 fi fi
cristy8b350f62009-11-15 23:12:43 +000033935 { $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 +000033936$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
33937 if test -f $ac_prefix_conf_INP ; then
33938 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
33939 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
33940 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
33941 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
33942 echo "#endif/" >>conftest.prefix
33943 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
33944 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
33945 echo "#endif/" >> conftest.prefix
33946 # now executing _script on _DEF input to create _OUT output file
33947 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
33948 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
33949 echo ' ' >>$tmp/pconfig.h
33950 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
33951
33952 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
33953 echo ' ' >>$tmp/pconfig.h
33954 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
33955 echo "#endif" >>$tmp/pconfig.h
33956 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033957 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000033958$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
33959 else
33960 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
33961$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33962 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
33963 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
33964 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
33965$as_echo X"$ac_prefix_conf_OUT" |
33966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33967 s//\1/
33968 q
33969 }
33970 /^X\(\/\/\)[^/].*/{
33971 s//\1/
33972 q
33973 }
33974 /^X\(\/\/\)$/{
33975 s//\1/
33976 q
33977 }
33978 /^X\(\/\).*/{
33979 s//\1/
33980 q
33981 }
33982 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033983 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033984 rm -f "$ac_prefix_conf_OUT"
33985 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
33986 fi
33987 cp conftest.prefix _configs.sed
33988 else
cristy8b350f62009-11-15 23:12:43 +000033989 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 +000033990 fi
33991 rm -f conftest.*
33992fi
33993 ;;
33994 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33995 # Autoconf 2.62 quotes --file arguments for eval, but not when files
33996 # are listed without --file. Let's play safe and only enable the eval
33997 # if we detect the quoting.
33998 case $CONFIG_FILES in
33999 *\'*) eval set x "$CONFIG_FILES" ;;
34000 *) set x $CONFIG_FILES ;;
34001 esac
34002 shift
34003 for mf
34004 do
34005 # Strip MF so we end up with the name of the file.
34006 mf=`echo "$mf" | sed -e 's/:.*$//'`
34007 # Check whether this is an Automake generated Makefile or not.
34008 # We used to match only the files named `Makefile.in', but
34009 # some people rename them; so instead we look at the file content.
34010 # Grep'ing the first line is not enough: some people post-process
34011 # each Makefile.in and add a new line on top of each file to say so.
34012 # Grep'ing the whole file is not good either: AIX grep has a line
34013 # limit of 2048, but all sed's we know have understand at least 4000.
34014 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34015 dirpart=`$as_dirname -- "$mf" ||
34016$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34017 X"$mf" : 'X\(//\)[^/]' \| \
34018 X"$mf" : 'X\(//\)$' \| \
34019 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34020$as_echo X"$mf" |
34021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34022 s//\1/
34023 q
34024 }
34025 /^X\(\/\/\)[^/].*/{
34026 s//\1/
34027 q
34028 }
34029 /^X\(\/\/\)$/{
34030 s//\1/
34031 q
34032 }
34033 /^X\(\/\).*/{
34034 s//\1/
34035 q
34036 }
34037 s/.*/./; q'`
34038 else
34039 continue
34040 fi
34041 # Extract the definition of DEPDIR, am__include, and am__quote
34042 # from the Makefile without running `make'.
34043 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34044 test -z "$DEPDIR" && continue
34045 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34046 test -z "am__include" && continue
34047 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34048 # When using ansi2knr, U may be empty or an underscore; expand it
34049 U=`sed -n 's/^U = //p' < "$mf"`
34050 # Find all dependency output files, they are included files with
34051 # $(DEPDIR) in their names. We invoke sed twice because it is the
34052 # simplest approach to changing $(DEPDIR) to its actual value in the
34053 # expansion.
34054 for file in `sed -n "
34055 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34056 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34057 # Make sure the directory exists.
34058 test -f "$dirpart/$file" && continue
34059 fdir=`$as_dirname -- "$file" ||
34060$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34061 X"$file" : 'X\(//\)[^/]' \| \
34062 X"$file" : 'X\(//\)$' \| \
34063 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34064$as_echo X"$file" |
34065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34066 s//\1/
34067 q
34068 }
34069 /^X\(\/\/\)[^/].*/{
34070 s//\1/
34071 q
34072 }
34073 /^X\(\/\/\)$/{
34074 s//\1/
34075 q
34076 }
34077 /^X\(\/\).*/{
34078 s//\1/
34079 q
34080 }
34081 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034082 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034083 # echo "creating $dirpart/$file"
34084 echo '# dummy' > "$dirpart/$file"
34085 done
34086 done
34087}
34088 ;;
34089 "libtool":C)
34090
34091 # See if we are running on zsh, and set the options which allow our
34092 # commands through without removal of \ escapes.
34093 if test -n "${ZSH_VERSION+set}" ; then
34094 setopt NO_GLOB_SUBST
34095 fi
34096
34097 cfgfile="${ofile}T"
34098 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34099 $RM "$cfgfile"
34100
34101 cat <<_LT_EOF >> "$cfgfile"
34102#! $SHELL
34103
34104# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34105# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34106# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34107# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34108#
34109# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000034110# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034111# Written by Gordon Matzigkeit, 1996
34112#
34113# This file is part of GNU Libtool.
34114#
34115# GNU Libtool is free software; you can redistribute it and/or
34116# modify it under the terms of the GNU General Public License as
34117# published by the Free Software Foundation; either version 2 of
34118# the License, or (at your option) any later version.
34119#
34120# As a special exception to the GNU General Public License,
34121# if you distribute this file as part of a program or library that
34122# is built using GNU Libtool, you may include this file under the
34123# same distribution terms that you use for the rest of that program.
34124#
34125# GNU Libtool is distributed in the hope that it will be useful,
34126# but WITHOUT ANY WARRANTY; without even the implied warranty of
34127# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34128# GNU General Public License for more details.
34129#
34130# You should have received a copy of the GNU General Public License
34131# along with GNU Libtool; see the file COPYING. If not, a copy
34132# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34133# obtained by writing to the Free Software Foundation, Inc.,
34134# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34135
34136
34137# The names of the tagged configurations supported by this script.
34138available_tags="CXX "
34139
34140# ### BEGIN LIBTOOL CONFIG
34141
34142# A sed program that does not truncate output.
34143SED=$lt_SED
34144
34145# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34146Xsed="\$SED -e 1s/^X//"
34147
34148# A grep program that handles long lines.
34149GREP=$lt_GREP
34150
34151# An ERE matcher.
34152EGREP=$lt_EGREP
34153
34154# A literal string matcher.
34155FGREP=$lt_FGREP
34156
34157# Which release of libtool.m4 was used?
34158macro_version=$macro_version
34159macro_revision=$macro_revision
34160
34161# Assembler program.
cristy18304f92009-11-22 15:48:26 +000034162AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000034163
34164# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000034165DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034166
34167# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000034168OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034169
34170# Whether or not to build shared libraries.
34171build_libtool_libs=$enable_shared
34172
34173# Whether or not to build static libraries.
34174build_old_libs=$enable_static
34175
34176# What type of objects to build.
34177pic_mode=$pic_mode
34178
34179# Whether or not to optimize for fast installation.
34180fast_install=$enable_fast_install
34181
34182# The host system.
34183host_alias=$host_alias
34184host=$host
34185host_os=$host_os
34186
34187# The build system.
34188build_alias=$build_alias
34189build=$build
34190build_os=$build_os
34191
34192# A BSD- or MS-compatible name lister.
34193NM=$lt_NM
34194
34195# Whether we need soft or hard links.
34196LN_S=$lt_LN_S
34197
34198# What is the maximum length of a command?
34199max_cmd_len=$max_cmd_len
34200
34201# Object file suffix (normally "o").
34202objext=$ac_objext
34203
34204# Executable file suffix (normally "").
34205exeext=$exeext
34206
34207# whether the shell understands "unset".
34208lt_unset=$lt_unset
34209
34210# turn spaces into newlines.
34211SP2NL=$lt_lt_SP2NL
34212
34213# turn newlines into spaces.
34214NL2SP=$lt_lt_NL2SP
34215
cristy18304f92009-11-22 15:48:26 +000034216# How to create reloadable object files.
34217reload_flag=$lt_reload_flag
34218reload_cmds=$lt_reload_cmds
34219
cristy3ed852e2009-09-05 21:47:34 +000034220# Method to check whether dependent libraries are shared objects.
34221deplibs_check_method=$lt_deplibs_check_method
34222
34223# Command to use when deplibs_check_method == "file_magic".
34224file_magic_cmd=$lt_file_magic_cmd
34225
34226# The archiver.
34227AR=$lt_AR
34228AR_FLAGS=$lt_AR_FLAGS
34229
34230# A symbol stripping program.
34231STRIP=$lt_STRIP
34232
34233# Commands used to install an old-style archive.
34234RANLIB=$lt_RANLIB
34235old_postinstall_cmds=$lt_old_postinstall_cmds
34236old_postuninstall_cmds=$lt_old_postuninstall_cmds
34237
34238# A C compiler.
34239LTCC=$lt_CC
34240
34241# LTCC compiler flags.
34242LTCFLAGS=$lt_CFLAGS
34243
34244# Take the output of nm and produce a listing of raw symbols and C names.
34245global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34246
34247# Transform the output of nm in a proper C declaration.
34248global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34249
34250# Transform the output of nm in a C name address pair.
34251global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34252
34253# Transform the output of nm in a C name address pair when lib prefix is needed.
34254global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34255
34256# The name of the directory that contains temporary libtool files.
34257objdir=$objdir
34258
cristy18304f92009-11-22 15:48:26 +000034259# Shell to use when invoking shell scripts.
34260SHELL=$lt_SHELL
34261
34262# An echo program that does not interpret backslashes.
34263ECHO=$lt_ECHO
34264
cristy3ed852e2009-09-05 21:47:34 +000034265# Used to examine libraries when file_magic_cmd begins with "file".
34266MAGIC_CMD=$MAGIC_CMD
34267
34268# Must we lock files when doing compilation?
34269need_locks=$lt_need_locks
34270
34271# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34272DSYMUTIL=$lt_DSYMUTIL
34273
34274# Tool to change global to local symbols on Mac OS X.
34275NMEDIT=$lt_NMEDIT
34276
34277# Tool to manipulate fat objects and archives on Mac OS X.
34278LIPO=$lt_LIPO
34279
34280# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34281OTOOL=$lt_OTOOL
34282
34283# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34284OTOOL64=$lt_OTOOL64
34285
34286# Old archive suffix (normally "a").
34287libext=$libext
34288
34289# Shared library suffix (normally ".so").
34290shrext_cmds=$lt_shrext_cmds
34291
34292# The commands to extract the exported symbol list from a shared archive.
34293extract_expsyms_cmds=$lt_extract_expsyms_cmds
34294
34295# Variables whose values should be saved in libtool wrapper scripts and
34296# restored at link time.
34297variables_saved_for_relink=$lt_variables_saved_for_relink
34298
34299# Do we need the "lib" prefix for modules?
34300need_lib_prefix=$need_lib_prefix
34301
34302# Do we need a version for libraries?
34303need_version=$need_version
34304
34305# Library versioning type.
34306version_type=$version_type
34307
34308# Shared library runtime path variable.
34309runpath_var=$runpath_var
34310
34311# Shared library path variable.
34312shlibpath_var=$shlibpath_var
34313
34314# Is shlibpath searched before the hard-coded library search path?
34315shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34316
34317# Format of library name prefix.
34318libname_spec=$lt_libname_spec
34319
34320# List of archive names. First name is the real one, the rest are links.
34321# The last name is the one that the linker finds with -lNAME
34322library_names_spec=$lt_library_names_spec
34323
34324# The coded name of the library, if different from the real name.
34325soname_spec=$lt_soname_spec
34326
34327# Command to use after installation of a shared archive.
34328postinstall_cmds=$lt_postinstall_cmds
34329
34330# Command to use after uninstallation of a shared archive.
34331postuninstall_cmds=$lt_postuninstall_cmds
34332
34333# Commands used to finish a libtool library installation in a directory.
34334finish_cmds=$lt_finish_cmds
34335
34336# As "finish_cmds", except a single script fragment to be evaled but
34337# not shown.
34338finish_eval=$lt_finish_eval
34339
34340# Whether we should hardcode library paths into libraries.
34341hardcode_into_libs=$hardcode_into_libs
34342
34343# Compile-time system search path for libraries.
34344sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34345
34346# Run-time system search path for libraries.
34347sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34348
34349# Whether dlopen is supported.
34350dlopen_support=$enable_dlopen
34351
34352# Whether dlopen of programs is supported.
34353dlopen_self=$enable_dlopen_self
34354
34355# Whether dlopen of statically linked programs is supported.
34356dlopen_self_static=$enable_dlopen_self_static
34357
34358# Commands to strip libraries.
34359old_striplib=$lt_old_striplib
34360striplib=$lt_striplib
34361
34362
34363# The linker used to build libraries.
34364LD=$lt_LD
34365
34366# Commands used to build an old-style archive.
34367old_archive_cmds=$lt_old_archive_cmds
34368
34369# A language specific compiler.
34370CC=$lt_compiler
34371
34372# Is the compiler the GNU compiler?
34373with_gcc=$GCC
34374
34375# Compiler flag to turn off builtin functions.
34376no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34377
34378# How to pass a linker flag through the compiler.
34379wl=$lt_lt_prog_compiler_wl
34380
34381# Additional compiler flags for building library objects.
34382pic_flag=$lt_lt_prog_compiler_pic
34383
34384# Compiler flag to prevent dynamic linking.
34385link_static_flag=$lt_lt_prog_compiler_static
34386
34387# Does compiler simultaneously support -c and -o options?
34388compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34389
34390# Whether or not to add -lc for building shared libraries.
34391build_libtool_need_lc=$archive_cmds_need_lc
34392
34393# Whether or not to disallow shared libs when runtime libs are static.
34394allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34395
34396# Compiler flag to allow reflexive dlopens.
34397export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34398
34399# Compiler flag to generate shared objects directly from archives.
34400whole_archive_flag_spec=$lt_whole_archive_flag_spec
34401
34402# Whether the compiler copes with passing no objects directly.
34403compiler_needs_object=$lt_compiler_needs_object
34404
34405# Create an old-style archive from a shared archive.
34406old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34407
34408# Create a temporary old-style archive to link instead of a shared archive.
34409old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34410
34411# Commands used to build a shared archive.
34412archive_cmds=$lt_archive_cmds
34413archive_expsym_cmds=$lt_archive_expsym_cmds
34414
34415# Commands used to build a loadable module if different from building
34416# a shared archive.
34417module_cmds=$lt_module_cmds
34418module_expsym_cmds=$lt_module_expsym_cmds
34419
34420# Whether we are building with GNU ld or not.
34421with_gnu_ld=$lt_with_gnu_ld
34422
34423# Flag that allows shared libraries with undefined symbols to be built.
34424allow_undefined_flag=$lt_allow_undefined_flag
34425
34426# Flag that enforces no undefined symbols.
34427no_undefined_flag=$lt_no_undefined_flag
34428
34429# Flag to hardcode \$libdir into a binary during linking.
34430# This must work even if \$libdir does not exist
34431hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34432
34433# If ld is used when linking, flag to hardcode \$libdir into a binary
34434# during linking. This must work even if \$libdir does not exist.
34435hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34436
34437# Whether we need a single "-rpath" flag with a separated argument.
34438hardcode_libdir_separator=$lt_hardcode_libdir_separator
34439
34440# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34441# DIR into the resulting binary.
34442hardcode_direct=$hardcode_direct
34443
34444# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34445# DIR into the resulting binary and the resulting library dependency is
34446# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34447# library is relocated.
34448hardcode_direct_absolute=$hardcode_direct_absolute
34449
34450# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34451# into the resulting binary.
34452hardcode_minus_L=$hardcode_minus_L
34453
34454# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34455# into the resulting binary.
34456hardcode_shlibpath_var=$hardcode_shlibpath_var
34457
34458# Set to "yes" if building a shared library automatically hardcodes DIR
34459# into the library and all subsequent libraries and executables linked
34460# against it.
34461hardcode_automatic=$hardcode_automatic
34462
34463# Set to yes if linker adds runtime paths of dependent libraries
34464# to runtime path list.
34465inherit_rpath=$inherit_rpath
34466
34467# Whether libtool must link a program against all its dependency libraries.
34468link_all_deplibs=$link_all_deplibs
34469
34470# Fix the shell variable \$srcfile for the compiler.
34471fix_srcfile_path=$lt_fix_srcfile_path
34472
34473# Set to "yes" if exported symbols are required.
34474always_export_symbols=$always_export_symbols
34475
34476# The commands to list exported symbols.
34477export_symbols_cmds=$lt_export_symbols_cmds
34478
34479# Symbols that should not be listed in the preloaded symbols.
34480exclude_expsyms=$lt_exclude_expsyms
34481
34482# Symbols that must always be exported.
34483include_expsyms=$lt_include_expsyms
34484
34485# Commands necessary for linking programs (against libraries) with templates.
34486prelink_cmds=$lt_prelink_cmds
34487
34488# Specify filename containing input files.
34489file_list_spec=$lt_file_list_spec
34490
34491# How to hardcode a shared library path into an executable.
34492hardcode_action=$hardcode_action
34493
34494# The directories searched by this compiler when creating a shared library.
34495compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34496
34497# Dependencies to place before and after the objects being linked to
34498# create a shared library.
34499predep_objects=$lt_predep_objects
34500postdep_objects=$lt_postdep_objects
34501predeps=$lt_predeps
34502postdeps=$lt_postdeps
34503
34504# The library search path used internally by the compiler when linking
34505# a shared library.
34506compiler_lib_search_path=$lt_compiler_lib_search_path
34507
34508# ### END LIBTOOL CONFIG
34509
34510_LT_EOF
34511
34512 case $host_os in
34513 aix3*)
34514 cat <<\_LT_EOF >> "$cfgfile"
34515# AIX sometimes has problems with the GCC collect2 program. For some
34516# reason, if we set the COLLECT_NAMES environment variable, the problems
34517# vanish in a puff of smoke.
34518if test "X${COLLECT_NAMES+set}" != Xset; then
34519 COLLECT_NAMES=
34520 export COLLECT_NAMES
34521fi
34522_LT_EOF
34523 ;;
34524 esac
34525
34526
34527ltmain="$ac_aux_dir/ltmain.sh"
34528
34529
34530 # We use sed instead of cat because bash on DJGPP gets confused if
34531 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34532 # text mode, it properly converts lines to CR/LF. This bash problem
34533 # is reportedly fixed, but why not run on old versions too?
34534 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34535 || (rm -f "$cfgfile"; exit 1)
34536
34537 case $xsi_shell in
34538 yes)
34539 cat << \_LT_EOF >> "$cfgfile"
34540
34541# func_dirname file append nondir_replacement
34542# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34543# otherwise set result to NONDIR_REPLACEMENT.
34544func_dirname ()
34545{
34546 case ${1} in
34547 */*) func_dirname_result="${1%/*}${2}" ;;
34548 * ) func_dirname_result="${3}" ;;
34549 esac
34550}
34551
34552# func_basename file
34553func_basename ()
34554{
34555 func_basename_result="${1##*/}"
34556}
34557
34558# func_dirname_and_basename file append nondir_replacement
34559# perform func_basename and func_dirname in a single function
34560# call:
34561# dirname: Compute the dirname of FILE. If nonempty,
34562# add APPEND to the result, otherwise set result
34563# to NONDIR_REPLACEMENT.
34564# value returned in "$func_dirname_result"
34565# basename: Compute filename of FILE.
34566# value retuned in "$func_basename_result"
34567# Implementation must be kept synchronized with func_dirname
34568# and func_basename. For efficiency, we do not delegate to
34569# those functions but instead duplicate the functionality here.
34570func_dirname_and_basename ()
34571{
34572 case ${1} in
34573 */*) func_dirname_result="${1%/*}${2}" ;;
34574 * ) func_dirname_result="${3}" ;;
34575 esac
34576 func_basename_result="${1##*/}"
34577}
34578
34579# func_stripname prefix suffix name
34580# strip PREFIX and SUFFIX off of NAME.
34581# PREFIX and SUFFIX must not contain globbing or regex special
34582# characters, hashes, percent signs, but SUFFIX may contain a leading
34583# dot (in which case that matches only a dot).
34584func_stripname ()
34585{
34586 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34587 # positional parameters, so assign one to ordinary parameter first.
34588 func_stripname_result=${3}
34589 func_stripname_result=${func_stripname_result#"${1}"}
34590 func_stripname_result=${func_stripname_result%"${2}"}
34591}
34592
34593# func_opt_split
34594func_opt_split ()
34595{
34596 func_opt_split_opt=${1%%=*}
34597 func_opt_split_arg=${1#*=}
34598}
34599
34600# func_lo2o object
34601func_lo2o ()
34602{
34603 case ${1} in
34604 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
34605 *) func_lo2o_result=${1} ;;
34606 esac
34607}
34608
34609# func_xform libobj-or-source
34610func_xform ()
34611{
34612 func_xform_result=${1%.*}.lo
34613}
34614
34615# func_arith arithmetic-term...
34616func_arith ()
34617{
34618 func_arith_result=$(( $* ))
34619}
34620
34621# func_len string
34622# STRING may not start with a hyphen.
34623func_len ()
34624{
34625 func_len_result=${#1}
34626}
34627
34628_LT_EOF
34629 ;;
34630 *) # Bourne compatible functions.
34631 cat << \_LT_EOF >> "$cfgfile"
34632
34633# func_dirname file append nondir_replacement
34634# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34635# otherwise set result to NONDIR_REPLACEMENT.
34636func_dirname ()
34637{
34638 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000034639 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000034640 if test "X$func_dirname_result" = "X${1}"; then
34641 func_dirname_result="${3}"
34642 else
34643 func_dirname_result="$func_dirname_result${2}"
34644 fi
34645}
34646
34647# func_basename file
34648func_basename ()
34649{
cristy18304f92009-11-22 15:48:26 +000034650 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000034651}
34652
34653
34654# func_stripname prefix suffix name
34655# strip PREFIX and SUFFIX off of NAME.
34656# PREFIX and SUFFIX must not contain globbing or regex special
34657# characters, hashes, percent signs, but SUFFIX may contain a leading
34658# dot (in which case that matches only a dot).
34659# func_strip_suffix prefix name
34660func_stripname ()
34661{
34662 case ${2} in
cristy18304f92009-11-22 15:48:26 +000034663 .*) func_stripname_result=`$ECHO "X${3}" \
34664 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
34665 *) func_stripname_result=`$ECHO "X${3}" \
34666 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000034667 esac
34668}
34669
34670# sed scripts:
34671my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
34672my_sed_long_arg='1s/^-[^=]*=//'
34673
34674# func_opt_split
34675func_opt_split ()
34676{
cristy18304f92009-11-22 15:48:26 +000034677 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
34678 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000034679}
34680
34681# func_lo2o object
34682func_lo2o ()
34683{
cristy18304f92009-11-22 15:48:26 +000034684 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000034685}
34686
34687# func_xform libobj-or-source
34688func_xform ()
34689{
cristy18304f92009-11-22 15:48:26 +000034690 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000034691}
34692
34693# func_arith arithmetic-term...
34694func_arith ()
34695{
34696 func_arith_result=`expr "$@"`
34697}
34698
34699# func_len string
34700# STRING may not start with a hyphen.
34701func_len ()
34702{
34703 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
34704}
34705
34706_LT_EOF
34707esac
34708
34709case $lt_shell_append in
34710 yes)
34711 cat << \_LT_EOF >> "$cfgfile"
34712
34713# func_append var value
34714# Append VALUE to the end of shell variable VAR.
34715func_append ()
34716{
34717 eval "$1+=\$2"
34718}
34719_LT_EOF
34720 ;;
34721 *)
34722 cat << \_LT_EOF >> "$cfgfile"
34723
34724# func_append var value
34725# Append VALUE to the end of shell variable VAR.
34726func_append ()
34727{
34728 eval "$1=\$$1\$2"
34729}
34730
34731_LT_EOF
34732 ;;
34733 esac
34734
34735
34736 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
34737 || (rm -f "$cfgfile"; exit 1)
34738
34739 mv -f "$cfgfile" "$ofile" ||
34740 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34741 chmod +x "$ofile"
34742
34743
34744 cat <<_LT_EOF >> "$ofile"
34745
34746# ### BEGIN LIBTOOL TAG CONFIG: CXX
34747
34748# The linker used to build libraries.
34749LD=$lt_LD_CXX
34750
34751# Commands used to build an old-style archive.
34752old_archive_cmds=$lt_old_archive_cmds_CXX
34753
34754# A language specific compiler.
34755CC=$lt_compiler_CXX
34756
34757# Is the compiler the GNU compiler?
34758with_gcc=$GCC_CXX
34759
34760# Compiler flag to turn off builtin functions.
34761no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34762
34763# How to pass a linker flag through the compiler.
34764wl=$lt_lt_prog_compiler_wl_CXX
34765
34766# Additional compiler flags for building library objects.
34767pic_flag=$lt_lt_prog_compiler_pic_CXX
34768
34769# Compiler flag to prevent dynamic linking.
34770link_static_flag=$lt_lt_prog_compiler_static_CXX
34771
34772# Does compiler simultaneously support -c and -o options?
34773compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34774
34775# Whether or not to add -lc for building shared libraries.
34776build_libtool_need_lc=$archive_cmds_need_lc_CXX
34777
34778# Whether or not to disallow shared libs when runtime libs are static.
34779allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34780
34781# Compiler flag to allow reflexive dlopens.
34782export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34783
34784# Compiler flag to generate shared objects directly from archives.
34785whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34786
34787# Whether the compiler copes with passing no objects directly.
34788compiler_needs_object=$lt_compiler_needs_object_CXX
34789
34790# Create an old-style archive from a shared archive.
34791old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34792
34793# Create a temporary old-style archive to link instead of a shared archive.
34794old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34795
34796# Commands used to build a shared archive.
34797archive_cmds=$lt_archive_cmds_CXX
34798archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34799
34800# Commands used to build a loadable module if different from building
34801# a shared archive.
34802module_cmds=$lt_module_cmds_CXX
34803module_expsym_cmds=$lt_module_expsym_cmds_CXX
34804
34805# Whether we are building with GNU ld or not.
34806with_gnu_ld=$lt_with_gnu_ld_CXX
34807
34808# Flag that allows shared libraries with undefined symbols to be built.
34809allow_undefined_flag=$lt_allow_undefined_flag_CXX
34810
34811# Flag that enforces no undefined symbols.
34812no_undefined_flag=$lt_no_undefined_flag_CXX
34813
34814# Flag to hardcode \$libdir into a binary during linking.
34815# This must work even if \$libdir does not exist
34816hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34817
34818# If ld is used when linking, flag to hardcode \$libdir into a binary
34819# during linking. This must work even if \$libdir does not exist.
34820hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
34821
34822# Whether we need a single "-rpath" flag with a separated argument.
34823hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34824
34825# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34826# DIR into the resulting binary.
34827hardcode_direct=$hardcode_direct_CXX
34828
34829# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34830# DIR into the resulting binary and the resulting library dependency is
34831# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34832# library is relocated.
34833hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34834
34835# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34836# into the resulting binary.
34837hardcode_minus_L=$hardcode_minus_L_CXX
34838
34839# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34840# into the resulting binary.
34841hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34842
34843# Set to "yes" if building a shared library automatically hardcodes DIR
34844# into the library and all subsequent libraries and executables linked
34845# against it.
34846hardcode_automatic=$hardcode_automatic_CXX
34847
34848# Set to yes if linker adds runtime paths of dependent libraries
34849# to runtime path list.
34850inherit_rpath=$inherit_rpath_CXX
34851
34852# Whether libtool must link a program against all its dependency libraries.
34853link_all_deplibs=$link_all_deplibs_CXX
34854
34855# Fix the shell variable \$srcfile for the compiler.
34856fix_srcfile_path=$lt_fix_srcfile_path_CXX
34857
34858# Set to "yes" if exported symbols are required.
34859always_export_symbols=$always_export_symbols_CXX
34860
34861# The commands to list exported symbols.
34862export_symbols_cmds=$lt_export_symbols_cmds_CXX
34863
34864# Symbols that should not be listed in the preloaded symbols.
34865exclude_expsyms=$lt_exclude_expsyms_CXX
34866
34867# Symbols that must always be exported.
34868include_expsyms=$lt_include_expsyms_CXX
34869
34870# Commands necessary for linking programs (against libraries) with templates.
34871prelink_cmds=$lt_prelink_cmds_CXX
34872
34873# Specify filename containing input files.
34874file_list_spec=$lt_file_list_spec_CXX
34875
34876# How to hardcode a shared library path into an executable.
34877hardcode_action=$hardcode_action_CXX
34878
34879# The directories searched by this compiler when creating a shared library.
34880compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34881
34882# Dependencies to place before and after the objects being linked to
34883# create a shared library.
34884predep_objects=$lt_predep_objects_CXX
34885postdep_objects=$lt_postdep_objects_CXX
34886predeps=$lt_predeps_CXX
34887postdeps=$lt_postdeps_CXX
34888
34889# The library search path used internally by the compiler when linking
34890# a shared library.
34891compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34892
34893# ### END LIBTOOL TAG CONFIG: CXX
34894_LT_EOF
34895
34896 ;;
34897 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
34898 "Magick-config.in":C) chmod +x magick/Magick-config ;;
34899 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
34900 "Wand-config.in":C) chmod +x wand/Wand-config ;;
34901 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
34902 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
34903
34904 esac
34905done # for ac_tag
34906
34907
cristy8b350f62009-11-15 23:12:43 +000034908as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000034909_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000034910ac_clean_files=$ac_clean_files_save
34911
34912test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000034913 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034914
34915
34916# configure is writing to config.log, and then calls config.status.
34917# config.status does its own redirection, appending to config.log.
34918# Unfortunately, on DOS this fails, as config.log is still kept open
34919# by configure, so config.status won't be able to write to it; its
34920# output is simply discarded. So we exec the FD to /dev/null,
34921# effectively closing config.log, so it can be properly (re)opened and
34922# appended to by config.status. When coming back to configure, we
34923# need to make the FD available again.
34924if test "$no_create" != yes; then
34925 ac_cs_success=:
34926 ac_config_status_args=
34927 test "$silent" = yes &&
34928 ac_config_status_args="$ac_config_status_args --quiet"
34929 exec 5>/dev/null
34930 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34931 exec 5>>config.log
34932 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34933 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000034934 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000034935fi
34936if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000034937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000034938$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34939fi
34940
34941
34942rm -f magick-version
34943
cristy430a7312010-01-21 20:44:04 +000034944result_dejavu_font_dir='none'
34945if test "${dejavu_font_dir}x" != 'x'; then
34946 result_dejavu_font_dir=$dejavu_font_dir
34947fi
34948
cristy3ed852e2009-09-05 21:47:34 +000034949result_ghostscript_font_dir='none'
34950if test "${ghostscript_font_dir}x" != 'x'; then
34951 result_ghostscript_font_dir=$ghostscript_font_dir
34952fi
34953
34954result_windows_font_dir='none'
34955if test "${windows_font_dir}x" != 'x'; then
34956 result_windows_font_dir=${windows_font_dir}
34957fi
34958
cristy8b350f62009-11-15 23:12:43 +000034959{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000034960ImageMagick is configured as follows. Please verify that this configuration
34961matches your expectations.
34962
34963Host system type: $host
34964Build system type: $build
34965
34966 Option Value
34967-------------------------------------------------------------------------------
34968Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34969Static libraries --enable-static=$enable_static $libtool_build_static_libs
34970Module support --with-modules=$with_modules $with_modules
34971GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34972Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34973High Dynamic Range Imagery
34974 --enable-hdri=$enable_hdri $enable_hdri
34975
34976Delegate Configuration:
34977BZLIB --with-bzlib=$with_bzlib $have_bzlib
34978Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000034979Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000034980DJVU --with-djvu=$with_djvu $have_djvu
34981DPS --with-dps=$with_dps $have_dps
34982FFTW --with-fftw=$with_fftw $have_fftw
34983FlashPIX --with-fpx=$with_fpx $have_fpx
34984FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34985FreeType --with-freetype=$with_freetype $have_freetype
34986GhostPCL None $PCLDelegate ($PCLVersion)
34987GhostXPS None $XPSDelegate ($XPSVersion)
34988Ghostscript None $PSDelegate ($GSVersion)
34989Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34990Ghostscript lib --with-gslib=$with_gslib $have_gslib
34991Graphviz --with-gvc=$with_gvc $have_gvc
34992JBIG --with-jbig=$with_jbig $have_jbig
34993JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34994JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34995LCMS --with-lcms=$with_lcms $have_lcms
34996LQR --with-lqr=$with_lqr $have_lqr
34997Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34998OpenEXR --with-openexr=$with_openexr $have_openexr
34999PERL --with-perl=$with_perl $have_perl
35000PNG --with-png=$with_png $have_png
35001RSVG --with-rsvg=$with_rsvg $have_rsvg
35002TIFF --with-tiff=$with_tiff $have_tiff
35003Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35004WMF --with-wmf=$with_wmf $have_wmf
35005X11 --with-x=$with_x $have_x
35006XML --with-xml=$with_xml $have_xml
35007ZLIB --with-zlib=$with_zlib $have_zlib
35008
35009X11 Configuration:
35010 X_CFLAGS = $X_CFLAGS
35011 X_PRE_LIBS = $X_PRE_LIBS
35012 X_LIBS = $X_LIBS
35013 X_EXTRA_LIBS = $X_EXTRA_LIBS
35014
35015Options used to compile and link:
35016 PREFIX = $PREFIX_DIR
35017 EXEC-PREFIX = $EXEC_PREFIX_DIR
35018 VERSION = $PACKAGE_VERSION
35019 CC = $CC
35020 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035021 CPPFLAGS = $MAGICK_CPPFLAGS
35022 PCFLAGS = $MAGICK_PCFLAGS
35023 DEFS = $DEFS
35024 LDFLAGS = $LDFLAGS
35025 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35026 LIBS = $MAGICK_LIBS
35027 CXX = $CXX
35028 CXXFLAGS = $CXXFLAGS
35029" >&5
35030$as_echo "
35031ImageMagick is configured as follows. Please verify that this configuration
35032matches your expectations.
35033
35034Host system type: $host
35035Build system type: $build
35036
35037 Option Value
35038-------------------------------------------------------------------------------
35039Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35040Static libraries --enable-static=$enable_static $libtool_build_static_libs
35041Module support --with-modules=$with_modules $with_modules
35042GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35043Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35044High Dynamic Range Imagery
35045 --enable-hdri=$enable_hdri $enable_hdri
35046
35047Delegate Configuration:
35048BZLIB --with-bzlib=$with_bzlib $have_bzlib
35049Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035050Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035051DJVU --with-djvu=$with_djvu $have_djvu
35052DPS --with-dps=$with_dps $have_dps
35053FFTW --with-fftw=$with_fftw $have_fftw
35054FlashPIX --with-fpx=$with_fpx $have_fpx
35055FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35056FreeType --with-freetype=$with_freetype $have_freetype
35057GhostPCL None $PCLDelegate ($PCLVersion)
35058GhostXPS None $XPSDelegate ($XPSVersion)
35059Ghostscript None $PSDelegate ($GSVersion)
35060Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35061Ghostscript lib --with-gslib=$with_gslib $have_gslib
35062Graphviz --with-gvc=$with_gvc $have_gvc
35063JBIG --with-jbig=$with_jbig $have_jbig
35064JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35065JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35066LCMS --with-lcms=$with_lcms $have_lcms
35067LQR --with-lqr=$with_lqr $have_lqr
35068Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35069OpenEXR --with-openexr=$with_openexr $have_openexr
35070PERL --with-perl=$with_perl $have_perl
35071PNG --with-png=$with_png $have_png
35072RSVG --with-rsvg=$with_rsvg $have_rsvg
35073TIFF --with-tiff=$with_tiff $have_tiff
35074Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35075WMF --with-wmf=$with_wmf $have_wmf
35076X11 --with-x=$with_x $have_x
35077XML --with-xml=$with_xml $have_xml
35078ZLIB --with-zlib=$with_zlib $have_zlib
35079
35080X11 Configuration:
35081 X_CFLAGS = $X_CFLAGS
35082 X_PRE_LIBS = $X_PRE_LIBS
35083 X_LIBS = $X_LIBS
35084 X_EXTRA_LIBS = $X_EXTRA_LIBS
35085
35086Options used to compile and link:
35087 PREFIX = $PREFIX_DIR
35088 EXEC-PREFIX = $EXEC_PREFIX_DIR
35089 VERSION = $PACKAGE_VERSION
35090 CC = $CC
35091 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035092 CPPFLAGS = $MAGICK_CPPFLAGS
35093 PCFLAGS = $MAGICK_PCFLAGS
35094 DEFS = $DEFS
35095 LDFLAGS = $LDFLAGS
35096 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35097 LIBS = $MAGICK_LIBS
35098 CXX = $CXX
35099 CXXFLAGS = $CXXFLAGS
35100" >&6; }