blob: c979d93f8f050ed265e54f2b2190dd7cb0697209 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy664b8d72010-05-17 13:53:36 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.6.2.
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'
cristy664b8d72010-05-17 13:53:36 +0000708PACKAGE_VERSION='6.6.2'
709PACKAGE_STRING='ImageMagick 6.6.2'
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
cristy964cb7f2010-04-25 23:18:00 +0000776PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000777GSVersion
778GSPSDevice
779GSPDFDevice
780GSMonoDevice
781GSEPSDevice
782GSColorDevice
783GSCMYKDevice
784GSAlphaDevice
785XPSVersion
786XPSCMYKDevice
787XPSColorDevice
788XPSMonoDevice
789PCLVersion
790PCLCMYKDevice
791PCLColorDevice
792PCLMonoDevice
793ZIP_DELEGATE_FALSE
794ZIP_DELEGATE_TRUE
795ZIP
796P7ZIP_DELEGATE_FALSE
797P7ZIP_DELEGATE_TRUE
798P7ZIP
799RPM_DELEGATE_FALSE
800RPM_DELEGATE_TRUE
801RPM
802PERL
803TAR
804ShowImageDelegate
805type_include_files
806ghostscript_font_dir
807windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000808dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000809PrintDelegate
810ZipDelegate
811XPSDelegate
812WWWDecodeDelegate
813WMFDecodeDelegate
814TXTDelegate
815SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000816RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000817RMDelegate
818RLEEncodeDelegate
819PSDelegate
820POVDelegate
821PGPDecodeDelegate
822PCLDelegate
823MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000824MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000825MPEGEncodeDelegate
826MPEGDecodeDelegate
827MANDelegate
828LaunchDelegate
829LZWEncodeDelegate
830LZWDecodeDelegate
831LPRDelegate
832LPDelegate
833ILBMEncodeDelegate
834ILBMDecodeDelegate
835HTMLDecodeDelegate
836HPGLDecodeDelegate
837HDRDecodeDelegate
838GnuplotDecodeDelegate
839MogrifyDelegate
840DisplayDelegate
841ConvertDelegate
842FIGDecodeDelegate
843EditorDelegate
844EchoDelegate
845DVIDecodeDelegate
846GVCDecodeDelegate
847DNGDecodeDelegate
848CatDelegate
849CGMDecodeDelegate
850BrowseDelegate
851BZIPDelegate
852BlenderDecodeDelegate
853AVIDecodeDelegate
854AutotraceDecodeDelegate
855SHARE_CONFIGURE_PATH
856SHARE_PATH
857DOCUMENTATION_PATH
858FILTER_PATH
859CODER_PATH
860CONFIGURE_PATH
861LIBRARY_PATH
862EXECUTABLE_PATH
863PERLMAINCC
864XML_LIBS
865XML_DELEGATE_FALSE
866XML_DELEGATE_TRUE
867xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000868WMF_LIBS
869WMF_DELEGATE_FALSE
870WMF_DELEGATE_TRUE
871TIFF_LIBS
872TIFF_DELEGATE_FALSE
873TIFF_DELEGATE_TRUE
874CAIRO_DELEGATE_FALSE
875CAIRO_DELEGATE_TRUE
876RSVG_DELEGATE_FALSE
877RSVG_DELEGATE_TRUE
878CAIRO_SVG_LIBS
879CAIRO_SVG_CFLAGS
880RSVG_LIBS
881RSVG_CFLAGS
882PNG_LIBS
883PNG_DELEGATE_FALSE
884PNG_DELEGATE_TRUE
885OPENEXR_DELEGATE_FALSE
886OPENEXR_DELEGATE_TRUE
887OPENEXR_LIBS
888OPENEXR_CFLAGS
889LQR_DELEGATE_FALSE
890LQR_DELEGATE_TRUE
891LQR_LIBS
892LQR_CFLAGS
893LCMS_LIBS
894LCMS_DELEGATE_FALSE
895LCMS_DELEGATE_TRUE
896JP2_LIBS
897JP2_DELEGATE_FALSE
898JP2_DELEGATE_TRUE
899JPEG_LIBS
900JPEG_DELEGATE_FALSE
901JPEG_DELEGATE_TRUE
902JBIG_LIBS
903JBIG_DELEGATE_FALSE
904JBIG_DELEGATE_TRUE
905GVC_DELEGATE_FALSE
906GVC_DELEGATE_TRUE
907GVC_LIBS
908GVC_CFLAGS
909GS_LIBS
910GS_DELEGATE_FALSE
911GS_DELEGATE_TRUE
912FREETYPE_LIBS
913FREETYPE_DELEGATE_FALSE
914FREETYPE_DELEGATE_TRUE
915freetype_config
916FONTCONFIG_DELEGATE_FALSE
917FONTCONFIG_DELEGATE_TRUE
918FONTCONFIG_LIBS
919FONTCONFIG_CFLAGS
920FPX_LIBS
921FPX_DELEGATE_FALSE
922FPX_DELEGATE_TRUE
923FFTW_LIBS
924FFTW_DELEGATE_FALSE
925FFTW_DELEGATE_TRUE
926DJVU_LIBS
927DJVU_DELEGATE_FALSE
928DJVU_DELEGATE_TRUE
929DPS_LIBS
930DPS_DELEGATE_FALSE
931DPS_DELEGATE_TRUE
932AUTOTRACE_DELEGATE_FALSE
933AUTOTRACE_DELEGATE_TRUE
934AUTOTRACE_LIBS
935AUTOTRACE_CFLAGS
936LIB_DL
937ZLIB_LIBS
938ZLIB_DELEGATE_FALSE
939ZLIB_DELEGATE_TRUE
940XEXT_LIBS
941X11_LIBS
942X11_DELEGATE_FALSE
943X11_DELEGATE_TRUE
944X_EXTRA_LIBS
945X_LIBS
946X_PRE_LIBS
947X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000948XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000949BZLIB_LIBS
950BZLIB_DELEGATE_FALSE
951BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000952CCMALLOCDelegate
953UMEM_LIBS
954HasUMEM_FALSE
955HasUMEM_TRUE
956THREAD_LIBS
957GOMP_LIBS
958WITH_MAGICK_PLUS_PLUS_FALSE
959WITH_MAGICK_PLUS_PLUS_TRUE
960OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000961MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000962POW_LIB
963LIBOBJS
964UINTPTR_T
965UINTMAX_T
966UINT64_T
967INT64_T
968UINT32_T
969INT32_T
970UINT16_T
971INT16_T
972UINT8_T
973INT8_T
974LIBRARY_EXTRA_CPPFLAGS
975MODULE_EXTRA_CPPFLAGS
976LIBSTDCLDFLAGS
977PERL_MAKE_OPTIONS
978QUANTUM_DEPTH
979MAINT
980MAINTAINER_MODE_FALSE
981MAINTAINER_MODE_TRUE
982MAGICK_HDRI
983DLLDFLAGS
984WITH_LTDL_FALSE
985WITH_LTDL_TRUE
986WITH_MODULES_FALSE
987WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000988WITH_SHARED_LIBS_FALSE
989WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000990LTDLOPEN
991LT_CONFIG_H
992CONVENIENCE_LTDL_FALSE
993CONVENIENCE_LTDL_TRUE
994INSTALL_LTDL_FALSE
995INSTALL_LTDL_TRUE
996ARGZ_H
997sys_symbol_underscore
998LIBADD_DL
999LT_DLPREOPEN
1000LIBADD_DLD_LINK
1001LIBADD_SHL_LOAD
1002LIBADD_DLOPEN
1003LT_DLLOADERS
1004INCLTDL
1005LTDLINCL
1006LTDLDEPS
1007LIBLTDL
1008LIBTOOL_DEPS
1009CXXCPP
1010OTOOL64
1011OTOOL
1012LIPO
1013NMEDIT
1014DSYMUTIL
cristy18304f92009-11-22 15:48:26 +00001015lt_ECHO
cristy4dc44432009-12-30 23:30:06 +00001016RANLIB
cristy3ed852e2009-09-05 21:47:34 +00001017AR
1018NM
1019ac_ct_DUMPBIN
1020DUMPBIN
1021LIBTOOL
1022OBJDUMP
1023DLLTOOL
1024AS
1025LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001026CL_LIBS
1027CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001028OPENMP_CFLAGS
1029PTHREAD_CFLAGS
1030PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001031PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +00001032ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +00001033WinPathScript
1034USING_CL_FALSE
1035USING_CL_TRUE
1036CYGWIN_BUILD_FALSE
1037CYGWIN_BUILD_TRUE
1038WIN32_NATIVE_BUILD_FALSE
1039WIN32_NATIVE_BUILD_TRUE
1040WINGDI32_DELEGATE_FALSE
1041WINGDI32_DELEGATE_TRUE
1042GDI32_LIBS
1043PKG_CONFIG
1044LN_S
cristy3ed852e2009-09-05 21:47:34 +00001045LD
1046FGREP
cristy3ed852e2009-09-05 21:47:34 +00001047SED
cristy95646052009-11-28 23:05:30 +00001048am__fastdepCXX_FALSE
1049am__fastdepCXX_TRUE
1050CXXDEPMODE
1051ac_ct_CXX
1052CXXFLAGS
1053CXX
cristya0b81c32010-01-22 02:54:33 +00001054EGREP
1055GREP
1056CPP
cristy3ed852e2009-09-05 21:47:34 +00001057am__fastdepCC_FALSE
1058am__fastdepCC_TRUE
1059CCDEPMODE
1060AMDEPBACKSLASH
1061AMDEP_FALSE
1062AMDEP_TRUE
1063am__quote
1064am__include
1065DEPDIR
1066OBJEXT
1067EXEEXT
1068ac_ct_CC
1069CPPFLAGS
1070LDFLAGS
1071CFLAGS
1072CC
1073DIRSEP
1074MAGICK_FILTER_MODULE_PATH
1075MAGICK_CONFIGURE_BUILD_PATH
1076MAGICK_CONFIGURE_SRC_PATH
1077MAGICK_CODER_MODULE_PATH
1078MAN_DIR
1079INFO_DIR
1080PERSISTINCLUDE_DIR
1081INCLUDE_DIR
1082LIB_DIR
1083LOCALSTATE_DIR
1084SHAREDSTATE_DIR
1085SYSCONF_DIR
1086DATA_DIR
1087LIBEXEC_DIR
1088SBIN_DIR
1089BIN_DIR
1090EXEC_PREFIX_DIR
1091PREFIX_DIR
1092CONFIG_STATUS_DEPENDENCIES
1093MAGICK_LIB_VERSION_NUMBER
1094MAGICK_LIB_VERSION_TEXT
1095MAGICK_LIB_VERSION
1096AM_BACKSLASH
1097AM_DEFAULT_VERBOSITY
1098am__untar
1099am__tar
1100AMTAR
1101am__leading_dot
1102SET_MAKE
1103AWK
1104mkdir_p
1105MKDIR_P
1106INSTALL_STRIP_PROGRAM
1107STRIP
1108install_sh
1109MAKEINFO
1110AUTOHEADER
1111AUTOMAKE
1112AUTOCONF
1113ACLOCAL
1114VERSION
1115PACKAGE
1116CYGPATH_W
1117am__isrc
1118INSTALL_DATA
1119INSTALL_SCRIPT
1120INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001121PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001122PACKAGE_RELEASE_DATE
1123PACKAGE_LIB_VERSION_NUMBER
1124PACKAGE_LIB_VERSION
1125PACKAGE_CHANGE_DATE
1126PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001127MAGICK_LIBRARY_VERSION_INFO
1128MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001129MAGICK_LIBRARY_AGE
1130MAGICK_LIBRARY_REVISION
1131MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001132MAGICK_TARGET_OS
1133MAGICK_TARGET_VENDOR
1134MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001135target_os
1136target_vendor
1137target_cpu
1138target
1139host_os
1140host_vendor
1141host_cpu
1142host
1143build_os
1144build_vendor
1145build_cpu
1146build
1147CONFIGURE_ARGS
1148DISTCHECK_CONFIG_FLAGS
1149target_alias
1150host_alias
1151build_alias
1152LIBS
1153ECHO_T
1154ECHO_N
1155ECHO_C
1156DEFS
1157mandir
1158localedir
1159libdir
1160psdir
1161pdfdir
1162dvidir
1163htmldir
1164infodir
1165docdir
1166oldincludedir
1167includedir
1168localstatedir
1169sharedstatedir
1170sysconfdir
1171datadir
1172datarootdir
1173libexecdir
1174sbindir
1175bindir
1176program_transform_name
1177prefix
1178exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001179PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001180PACKAGE_BUGREPORT
1181PACKAGE_STRING
1182PACKAGE_VERSION
1183PACKAGE_TARNAME
1184PACKAGE_NAME
1185PATH_SEPARATOR
1186SHELL'
1187ac_subst_files=''
1188ac_user_opts='
1189enable_option_checking
1190enable_silent_rules
1191enable_dependency_tracking
1192with_gnu_ld
cristy3ed852e2009-09-05 21:47:34 +00001193with_dmalloc
1194enable_bounds_checking
1195enable_osx_universal_binary
1196with_threads
1197enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001198enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001199enable_largefile
1200enable_shared
1201enable_static
1202with_pic
1203enable_fast_install
1204enable_libtool_lock
1205with_included_ltdl
1206with_ltdl_include
1207with_ltdl_lib
1208enable_ltdl_install
1209with_modules
1210enable_delegate_build
1211enable_deprecated
1212enable_installed
1213enable_cipher
1214enable_embeddable
1215enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001216enable_assert
1217enable_maintainer_mode
1218enable_ccmalloc
1219enable_efence
1220enable_prof
1221enable_gprof
1222enable_gcov
1223with_method_prefix
1224with_quantum_depth
1225with_cache
1226with_frozenpaths
1227with_magick_plus_plus
1228with_perl
1229with_perl_options
1230with_umem
1231with_libstdc
1232with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001233with_x
cristy3ed852e2009-09-05 21:47:34 +00001234with_zlib
1235with_autotrace
1236with_dps
1237with_djvu
cristy430a7312010-01-21 20:44:04 +00001238with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001239with_fftw
1240with_fpx
1241with_fontconfig
1242with_freetype
1243with_gslib
1244with_fontpath
1245with_gs_font_dir
1246with_gvc
1247with_jbig
1248with_jpeg
1249with_jp2
1250with_lcms
1251with_lqr
1252with_openexr
1253with_png
1254with_rsvg
1255with_tiff
1256with_windows_font_dir
1257with_wmf
1258with_xml
1259'
1260 ac_precious_vars='build_alias
1261host_alias
1262target_alias
1263CC
1264CFLAGS
1265LDFLAGS
1266LIBS
1267CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001268CPP
cristy3ed852e2009-09-05 21:47:34 +00001269CXX
1270CXXFLAGS
1271CCC
1272PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001273CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001274XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001275AUTOTRACE_CFLAGS
1276AUTOTRACE_LIBS
1277FONTCONFIG_CFLAGS
1278FONTCONFIG_LIBS
1279GVC_CFLAGS
1280GVC_LIBS
1281LQR_CFLAGS
1282LQR_LIBS
1283OPENEXR_CFLAGS
1284OPENEXR_LIBS
1285RSVG_CFLAGS
1286RSVG_LIBS
1287CAIRO_SVG_CFLAGS
1288CAIRO_SVG_LIBS'
1289
1290
1291# Initialize some variables set by options.
1292ac_init_help=
1293ac_init_version=false
1294ac_unrecognized_opts=
1295ac_unrecognized_sep=
1296# The variables have the same names as the options, with
1297# dashes changed to underlines.
1298cache_file=/dev/null
1299exec_prefix=NONE
1300no_create=
1301no_recursion=
1302prefix=NONE
1303program_prefix=NONE
1304program_suffix=NONE
1305program_transform_name=s,x,x,
1306silent=
1307site=
1308srcdir=
1309verbose=
1310x_includes=NONE
1311x_libraries=NONE
1312
1313# Installation directory options.
1314# These are left unexpanded so users can "make install exec_prefix=/foo"
1315# and all the variables that are supposed to be based on exec_prefix
1316# by default will actually change.
1317# Use braces instead of parens because sh, perl, etc. also accept them.
1318# (The list follows the same order as the GNU Coding Standards.)
1319bindir='${exec_prefix}/bin'
1320sbindir='${exec_prefix}/sbin'
1321libexecdir='${exec_prefix}/libexec'
1322datarootdir='${prefix}/share'
1323datadir='${datarootdir}'
1324sysconfdir='${prefix}/etc'
1325sharedstatedir='${prefix}/com'
1326localstatedir='${prefix}/var'
1327includedir='${prefix}/include'
1328oldincludedir='/usr/include'
1329docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1330infodir='${datarootdir}/info'
1331htmldir='${docdir}'
1332dvidir='${docdir}'
1333pdfdir='${docdir}'
1334psdir='${docdir}'
1335libdir='${exec_prefix}/lib'
1336localedir='${datarootdir}/locale'
1337mandir='${datarootdir}/man'
1338
1339ac_prev=
1340ac_dashdash=
1341for ac_option
1342do
1343 # If the previous option needs an argument, assign it.
1344 if test -n "$ac_prev"; then
1345 eval $ac_prev=\$ac_option
1346 ac_prev=
1347 continue
1348 fi
1349
1350 case $ac_option in
1351 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1352 *) ac_optarg=yes ;;
1353 esac
1354
1355 # Accept the important Cygnus configure options, so we can diagnose typos.
1356
1357 case $ac_dashdash$ac_option in
1358 --)
1359 ac_dashdash=yes ;;
1360
1361 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1362 ac_prev=bindir ;;
1363 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1364 bindir=$ac_optarg ;;
1365
1366 -build | --build | --buil | --bui | --bu)
1367 ac_prev=build_alias ;;
1368 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1369 build_alias=$ac_optarg ;;
1370
1371 -cache-file | --cache-file | --cache-fil | --cache-fi \
1372 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1373 ac_prev=cache_file ;;
1374 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1375 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1376 cache_file=$ac_optarg ;;
1377
1378 --config-cache | -C)
1379 cache_file=config.cache ;;
1380
1381 -datadir | --datadir | --datadi | --datad)
1382 ac_prev=datadir ;;
1383 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1384 datadir=$ac_optarg ;;
1385
1386 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1387 | --dataroo | --dataro | --datar)
1388 ac_prev=datarootdir ;;
1389 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1390 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1391 datarootdir=$ac_optarg ;;
1392
1393 -disable-* | --disable-*)
1394 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1395 # Reject names that are not valid shell variable names.
1396 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001397 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001398 ac_useropt_orig=$ac_useropt
1399 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1400 case $ac_user_opts in
1401 *"
1402"enable_$ac_useropt"
1403"*) ;;
1404 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1405 ac_unrecognized_sep=', ';;
1406 esac
1407 eval enable_$ac_useropt=no ;;
1408
1409 -docdir | --docdir | --docdi | --doc | --do)
1410 ac_prev=docdir ;;
1411 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1412 docdir=$ac_optarg ;;
1413
1414 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1415 ac_prev=dvidir ;;
1416 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1417 dvidir=$ac_optarg ;;
1418
1419 -enable-* | --enable-*)
1420 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1421 # Reject names that are not valid shell variable names.
1422 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001423 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001424 ac_useropt_orig=$ac_useropt
1425 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1426 case $ac_user_opts in
1427 *"
1428"enable_$ac_useropt"
1429"*) ;;
1430 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1431 ac_unrecognized_sep=', ';;
1432 esac
1433 eval enable_$ac_useropt=\$ac_optarg ;;
1434
1435 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1436 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1437 | --exec | --exe | --ex)
1438 ac_prev=exec_prefix ;;
1439 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1440 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1441 | --exec=* | --exe=* | --ex=*)
1442 exec_prefix=$ac_optarg ;;
1443
1444 -gas | --gas | --ga | --g)
1445 # Obsolete; use --with-gas.
1446 with_gas=yes ;;
1447
1448 -help | --help | --hel | --he | -h)
1449 ac_init_help=long ;;
1450 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1451 ac_init_help=recursive ;;
1452 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1453 ac_init_help=short ;;
1454
1455 -host | --host | --hos | --ho)
1456 ac_prev=host_alias ;;
1457 -host=* | --host=* | --hos=* | --ho=*)
1458 host_alias=$ac_optarg ;;
1459
1460 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1461 ac_prev=htmldir ;;
1462 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1463 | --ht=*)
1464 htmldir=$ac_optarg ;;
1465
1466 -includedir | --includedir | --includedi | --included | --include \
1467 | --includ | --inclu | --incl | --inc)
1468 ac_prev=includedir ;;
1469 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1470 | --includ=* | --inclu=* | --incl=* | --inc=*)
1471 includedir=$ac_optarg ;;
1472
1473 -infodir | --infodir | --infodi | --infod | --info | --inf)
1474 ac_prev=infodir ;;
1475 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1476 infodir=$ac_optarg ;;
1477
1478 -libdir | --libdir | --libdi | --libd)
1479 ac_prev=libdir ;;
1480 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1481 libdir=$ac_optarg ;;
1482
1483 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1484 | --libexe | --libex | --libe)
1485 ac_prev=libexecdir ;;
1486 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1487 | --libexe=* | --libex=* | --libe=*)
1488 libexecdir=$ac_optarg ;;
1489
1490 -localedir | --localedir | --localedi | --localed | --locale)
1491 ac_prev=localedir ;;
1492 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1493 localedir=$ac_optarg ;;
1494
1495 -localstatedir | --localstatedir | --localstatedi | --localstated \
1496 | --localstate | --localstat | --localsta | --localst | --locals)
1497 ac_prev=localstatedir ;;
1498 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1499 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1500 localstatedir=$ac_optarg ;;
1501
1502 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1503 ac_prev=mandir ;;
1504 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1505 mandir=$ac_optarg ;;
1506
1507 -nfp | --nfp | --nf)
1508 # Obsolete; use --without-fp.
1509 with_fp=no ;;
1510
1511 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1512 | --no-cr | --no-c | -n)
1513 no_create=yes ;;
1514
1515 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1516 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1517 no_recursion=yes ;;
1518
1519 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1520 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1521 | --oldin | --oldi | --old | --ol | --o)
1522 ac_prev=oldincludedir ;;
1523 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1524 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1525 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1526 oldincludedir=$ac_optarg ;;
1527
1528 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1529 ac_prev=prefix ;;
1530 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1531 prefix=$ac_optarg ;;
1532
1533 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1534 | --program-pre | --program-pr | --program-p)
1535 ac_prev=program_prefix ;;
1536 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1537 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1538 program_prefix=$ac_optarg ;;
1539
1540 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1541 | --program-suf | --program-su | --program-s)
1542 ac_prev=program_suffix ;;
1543 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1544 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1545 program_suffix=$ac_optarg ;;
1546
1547 -program-transform-name | --program-transform-name \
1548 | --program-transform-nam | --program-transform-na \
1549 | --program-transform-n | --program-transform- \
1550 | --program-transform | --program-transfor \
1551 | --program-transfo | --program-transf \
1552 | --program-trans | --program-tran \
1553 | --progr-tra | --program-tr | --program-t)
1554 ac_prev=program_transform_name ;;
1555 -program-transform-name=* | --program-transform-name=* \
1556 | --program-transform-nam=* | --program-transform-na=* \
1557 | --program-transform-n=* | --program-transform-=* \
1558 | --program-transform=* | --program-transfor=* \
1559 | --program-transfo=* | --program-transf=* \
1560 | --program-trans=* | --program-tran=* \
1561 | --progr-tra=* | --program-tr=* | --program-t=*)
1562 program_transform_name=$ac_optarg ;;
1563
1564 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1565 ac_prev=pdfdir ;;
1566 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1567 pdfdir=$ac_optarg ;;
1568
1569 -psdir | --psdir | --psdi | --psd | --ps)
1570 ac_prev=psdir ;;
1571 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1572 psdir=$ac_optarg ;;
1573
1574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1575 | -silent | --silent | --silen | --sile | --sil)
1576 silent=yes ;;
1577
1578 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1579 ac_prev=sbindir ;;
1580 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1581 | --sbi=* | --sb=*)
1582 sbindir=$ac_optarg ;;
1583
1584 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1585 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1586 | --sharedst | --shareds | --shared | --share | --shar \
1587 | --sha | --sh)
1588 ac_prev=sharedstatedir ;;
1589 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1590 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1591 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1592 | --sha=* | --sh=*)
1593 sharedstatedir=$ac_optarg ;;
1594
1595 -site | --site | --sit)
1596 ac_prev=site ;;
1597 -site=* | --site=* | --sit=*)
1598 site=$ac_optarg ;;
1599
1600 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1601 ac_prev=srcdir ;;
1602 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1603 srcdir=$ac_optarg ;;
1604
1605 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1606 | --syscon | --sysco | --sysc | --sys | --sy)
1607 ac_prev=sysconfdir ;;
1608 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1609 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1610 sysconfdir=$ac_optarg ;;
1611
1612 -target | --target | --targe | --targ | --tar | --ta | --t)
1613 ac_prev=target_alias ;;
1614 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1615 target_alias=$ac_optarg ;;
1616
1617 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1618 verbose=yes ;;
1619
1620 -version | --version | --versio | --versi | --vers | -V)
1621 ac_init_version=: ;;
1622
1623 -with-* | --with-*)
1624 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1625 # Reject names that are not valid shell variable names.
1626 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001627 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001628 ac_useropt_orig=$ac_useropt
1629 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1630 case $ac_user_opts in
1631 *"
1632"with_$ac_useropt"
1633"*) ;;
1634 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1635 ac_unrecognized_sep=', ';;
1636 esac
1637 eval with_$ac_useropt=\$ac_optarg ;;
1638
1639 -without-* | --without-*)
1640 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1641 # Reject names that are not valid shell variable names.
1642 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001643 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001644 ac_useropt_orig=$ac_useropt
1645 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1646 case $ac_user_opts in
1647 *"
1648"with_$ac_useropt"
1649"*) ;;
1650 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1651 ac_unrecognized_sep=', ';;
1652 esac
1653 eval with_$ac_useropt=no ;;
1654
1655 --x)
1656 # Obsolete; use --with-x.
1657 with_x=yes ;;
1658
1659 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1660 | --x-incl | --x-inc | --x-in | --x-i)
1661 ac_prev=x_includes ;;
1662 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1663 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1664 x_includes=$ac_optarg ;;
1665
1666 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1667 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1668 ac_prev=x_libraries ;;
1669 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1670 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1671 x_libraries=$ac_optarg ;;
1672
cristy8b350f62009-11-15 23:12:43 +00001673 -*) as_fn_error "unrecognized option: \`$ac_option'
1674Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001675 ;;
1676
1677 *=*)
1678 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1679 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001680 case $ac_envvar in #(
1681 '' | [0-9]* | *[!_$as_cr_alnum]* )
1682 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1683 esac
cristy3ed852e2009-09-05 21:47:34 +00001684 eval $ac_envvar=\$ac_optarg
1685 export $ac_envvar ;;
1686
1687 *)
1688 # FIXME: should be removed in autoconf 3.0.
1689 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1690 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1691 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1692 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1693 ;;
1694
1695 esac
1696done
1697
1698if test -n "$ac_prev"; then
1699 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001700 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001701fi
1702
1703if test -n "$ac_unrecognized_opts"; then
1704 case $enable_option_checking in
1705 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001706 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001707 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1708 esac
1709fi
1710
1711# Check all directory arguments for consistency.
1712for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1713 datadir sysconfdir sharedstatedir localstatedir includedir \
1714 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1715 libdir localedir mandir
1716do
1717 eval ac_val=\$$ac_var
1718 # Remove trailing slashes.
1719 case $ac_val in
1720 */ )
1721 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1722 eval $ac_var=\$ac_val;;
1723 esac
1724 # Be sure to have absolute directory names.
1725 case $ac_val in
1726 [\\/$]* | ?:[\\/]* ) continue;;
1727 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1728 esac
cristy8b350f62009-11-15 23:12:43 +00001729 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001730done
1731
1732# There might be people who depend on the old broken behavior: `$host'
1733# used to hold the argument of --host etc.
1734# FIXME: To remove some day.
1735build=$build_alias
1736host=$host_alias
1737target=$target_alias
1738
1739# FIXME: To remove some day.
1740if test "x$host_alias" != x; then
1741 if test "x$build_alias" = x; then
1742 cross_compiling=maybe
1743 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1744 If a cross compiler is detected then cross compile mode will be used." >&2
1745 elif test "x$build_alias" != "x$host_alias"; then
1746 cross_compiling=yes
1747 fi
1748fi
1749
1750ac_tool_prefix=
1751test -n "$host_alias" && ac_tool_prefix=$host_alias-
1752
1753test "$silent" = yes && exec 6>/dev/null
1754
1755
1756ac_pwd=`pwd` && test -n "$ac_pwd" &&
1757ac_ls_di=`ls -di .` &&
1758ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001759 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001760test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001761 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001762
1763
1764# Find the source files, if location was not specified.
1765if test -z "$srcdir"; then
1766 ac_srcdir_defaulted=yes
1767 # Try the directory containing this script, then the parent directory.
1768 ac_confdir=`$as_dirname -- "$as_myself" ||
1769$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1770 X"$as_myself" : 'X\(//\)[^/]' \| \
1771 X"$as_myself" : 'X\(//\)$' \| \
1772 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1773$as_echo X"$as_myself" |
1774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1775 s//\1/
1776 q
1777 }
1778 /^X\(\/\/\)[^/].*/{
1779 s//\1/
1780 q
1781 }
1782 /^X\(\/\/\)$/{
1783 s//\1/
1784 q
1785 }
1786 /^X\(\/\).*/{
1787 s//\1/
1788 q
1789 }
1790 s/.*/./; q'`
1791 srcdir=$ac_confdir
1792 if test ! -r "$srcdir/$ac_unique_file"; then
1793 srcdir=..
1794 fi
1795else
1796 ac_srcdir_defaulted=no
1797fi
1798if test ! -r "$srcdir/$ac_unique_file"; then
1799 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001800 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001801fi
1802ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1803ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001804 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001805 pwd)`
1806# When building in place, set srcdir=.
1807if test "$ac_abs_confdir" = "$ac_pwd"; then
1808 srcdir=.
1809fi
1810# Remove unnecessary trailing slashes from srcdir.
1811# Double slashes in file names in object file debugging info
1812# mess up M-x gdb in Emacs.
1813case $srcdir in
1814*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1815esac
1816for ac_var in $ac_precious_vars; do
1817 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1818 eval ac_env_${ac_var}_value=\$${ac_var}
1819 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1820 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1821done
1822
1823#
1824# Report the --help message.
1825#
1826if test "$ac_init_help" = "long"; then
1827 # Omit some internal or obsolete options to make the list less imposing.
1828 # This message is too long to be a string in the A/UX 3.1 sh.
1829 cat <<_ACEOF
cristy664b8d72010-05-17 13:53:36 +00001830\`configure' configures ImageMagick 6.6.2 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001831
1832Usage: $0 [OPTION]... [VAR=VALUE]...
1833
1834To assign environment variables (e.g., CC, CFLAGS...), specify them as
1835VAR=VALUE. See below for descriptions of some of the useful variables.
1836
1837Defaults for the options are specified in brackets.
1838
1839Configuration:
1840 -h, --help display this help and exit
1841 --help=short display options specific to this package
1842 --help=recursive display the short help of all the included packages
1843 -V, --version display version information and exit
1844 -q, --quiet, --silent do not print \`checking...' messages
1845 --cache-file=FILE cache test results in FILE [disabled]
1846 -C, --config-cache alias for \`--cache-file=config.cache'
1847 -n, --no-create do not create output files
1848 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1849
1850Installation directories:
1851 --prefix=PREFIX install architecture-independent files in PREFIX
1852 [$ac_default_prefix]
1853 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1854 [PREFIX]
1855
1856By default, \`make install' will install all the files in
1857\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1858an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1859for instance \`--prefix=\$HOME'.
1860
1861For better control, use the options below.
1862
1863Fine tuning of the installation directories:
1864 --bindir=DIR user executables [EPREFIX/bin]
1865 --sbindir=DIR system admin executables [EPREFIX/sbin]
1866 --libexecdir=DIR program executables [EPREFIX/libexec]
1867 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1868 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1869 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1870 --libdir=DIR object code libraries [EPREFIX/lib]
1871 --includedir=DIR C header files [PREFIX/include]
1872 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1873 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1874 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1875 --infodir=DIR info documentation [DATAROOTDIR/info]
1876 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1877 --mandir=DIR man documentation [DATAROOTDIR/man]
1878 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1879 --htmldir=DIR html documentation [DOCDIR]
1880 --dvidir=DIR dvi documentation [DOCDIR]
1881 --pdfdir=DIR pdf documentation [DOCDIR]
1882 --psdir=DIR ps documentation [DOCDIR]
1883_ACEOF
1884
1885 cat <<\_ACEOF
1886
1887Program names:
1888 --program-prefix=PREFIX prepend PREFIX to installed program names
1889 --program-suffix=SUFFIX append SUFFIX to installed program names
1890 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1891
1892X features:
1893 --x-includes=DIR X include files are in DIR
1894 --x-libraries=DIR X library files are in DIR
1895
1896System types:
1897 --build=BUILD configure for building on BUILD [guessed]
1898 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1899 --target=TARGET configure for building compilers for TARGET [HOST]
1900_ACEOF
1901fi
1902
1903if test -n "$ac_init_help"; then
1904 case $ac_init_help in
cristy664b8d72010-05-17 13:53:36 +00001905 short | recursive ) echo "Configuration of ImageMagick 6.6.2:";;
cristy3ed852e2009-09-05 21:47:34 +00001906 esac
1907 cat <<\_ACEOF
1908
1909Optional Features:
1910 --disable-option-checking ignore unrecognized --enable/--with options
1911 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1912 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1913 --enable-silent-rules less verbose build output (undo: `make V=1')
1914 --disable-silent-rules verbose build output (undo: `make V=0')
1915 --disable-dependency-tracking speeds up one-time build
1916 --enable-dependency-tracking do not reject slow dependency extractors
1917 --bounds-checking enable run-time bounds-checking
1918 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001919 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001920 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001921 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001922 --disable-largefile omit support for large files
1923 --enable-shared[=PKGS] build shared libraries [default=yes]
1924 --enable-static[=PKGS] build static libraries [default=yes]
1925 --enable-fast-install[=PKGS]
1926 optimize for fast installation [default=yes]
1927 --disable-libtool-lock avoid locking (might break parallel builds)
1928 --enable-ltdl-install install libltdl
1929 --enable-delegate-build look for delegate libraries in build directory
1930 --disable-deprecated exclude deprecated methods in MagickCore and
1931 MagickWand API's
1932 --disable-installed Formally install ImageMagick under PREFIX
1933 --disable-cipher disable enciphering and deciphering image pixels
1934 --enable-embeddable enable self-contained, embeddable,
1935 zero-configuration ImageMagick
1936 --enable-hdri accurately represent the wide range of intensity
1937 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001938 --disable-assert disable assert() statements in build
1939 --enable-maintainer-mode enable make rules and dependencies not useful
1940 (and sometimes confusing) to the casual installer
1941 --enable-ccmalloc enable 'ccmalloc' memory debug support
1942 --enable-efence enable 'efence' memory debug support
1943 --enable-prof enable 'prof' profiling support
1944 --enable-gprof enable 'gprof' profiling support
1945 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001946 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001947
1948Optional Packages:
1949 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1950 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1951 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy3ed852e2009-09-05 21:47:34 +00001952 --with-dmalloc use dmalloc, as in
1953 http://www.dmalloc.com/dmalloc.tar.gz
1954 --without-threads disable threads support
1955 --with-pic try to use only PIC/non-PIC objects [default=use
1956 both]
1957 --with-included-ltdl use the GNU ltdl sources included here
1958 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1959 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1960 --with-modules enable building dynamically loadable modules
1961 --with-method-prefix=PREFIX
1962 prefix MagickCore API methods
1963 --with-quantum-depth=DEPTH
1964 number of bits in a pixel quantum (default 16)
1965 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1966 memory)
1967 --with-frozenpaths freeze delegate paths
1968 --without-magick-plus-plus
1969 disable build/install of Magick++
1970 --with-perl enable build/install of PerlMagick
1971 --with-perl-options=OPTIONS
1972 options to pass on command-line when generating
1973 PerlMagick's build file
1974 --with-umem enable umem memory allocation library support
1975 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1976 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001977 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001978 --without-zlib disable ZLIB support
1979 --with-autotrace enable autotrace support
1980 --without-dps disable Display Postscript support
1981 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001982 --with-dejavu-font-dir=DIR
1983 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001984 --without-fftw disable FFTW support
1985 --without-fpx disable FlashPIX support
1986 --without-fontconfig disable fontconfig support
1987 --without-freetype disable Freetype support
1988 --without-gslib enable Ghostscript library support
1989 --with-fontpath=DIR prepend to default font search path
1990 --with-gs-font-dir=DIR Ghostscript font directory
1991 --without-gvc disable GVC support
1992 --without-jbig disable JBIG support
1993 --without-jpeg disable JPEG support
1994 --without-jp2 disable JPEG-2000 support
1995 --without-lcms disable LCMS support
cristyf0c78232010-03-15 12:53:40 +00001996 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001997 --without-openexr disable OpenEXR support
1998 --without-png disable PNG support
1999 --without-rsvg disable RSVG support
2000 --without-tiff disable TIFF support
2001 --with-windows-font-dir=DIR
2002 directory containing MS-Windows fonts
2003 --without-wmf disable WMF support
2004 --without-xml disable XML support
2005
2006Some influential environment variables:
2007 CC C compiler command
2008 CFLAGS C compiler flags
2009 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2010 nonstandard directory <lib dir>
2011 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002012 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002013 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002014 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002015 CXX C++ compiler command
2016 CXXFLAGS C++ compiler flags
2017 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002018 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002019 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002020 AUTOTRACE_CFLAGS
2021 C compiler flags for AUTOTRACE, overriding pkg-config
2022 AUTOTRACE_LIBS
2023 linker flags for AUTOTRACE, overriding pkg-config
2024 FONTCONFIG_CFLAGS
2025 C compiler flags for FONTCONFIG, overriding pkg-config
2026 FONTCONFIG_LIBS
2027 linker flags for FONTCONFIG, overriding pkg-config
2028 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2029 GVC_LIBS linker flags for GVC, overriding pkg-config
2030 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2031 LQR_LIBS linker flags for LQR, overriding pkg-config
2032 OPENEXR_CFLAGS
2033 C compiler flags for OPENEXR, overriding pkg-config
2034 OPENEXR_LIBS
2035 linker flags for OPENEXR, overriding pkg-config
2036 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2037 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2038 CAIRO_SVG_CFLAGS
2039 C compiler flags for CAIRO_SVG, overriding pkg-config
2040 CAIRO_SVG_LIBS
2041 linker flags for CAIRO_SVG, overriding pkg-config
2042
2043Use these variables to override the choices made by `configure' or to help
2044it to find libraries and programs with nonstandard names/locations.
2045
2046Report bugs to <http://www.imagemagick.org>.
2047_ACEOF
2048ac_status=$?
2049fi
2050
2051if test "$ac_init_help" = "recursive"; then
2052 # If there are subdirs, report their specific --help.
2053 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2054 test -d "$ac_dir" ||
2055 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2056 continue
2057 ac_builddir=.
2058
2059case "$ac_dir" in
2060.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2061*)
2062 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2063 # A ".." for each directory in $ac_dir_suffix.
2064 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2065 case $ac_top_builddir_sub in
2066 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2067 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2068 esac ;;
2069esac
2070ac_abs_top_builddir=$ac_pwd
2071ac_abs_builddir=$ac_pwd$ac_dir_suffix
2072# for backward compatibility:
2073ac_top_builddir=$ac_top_build_prefix
2074
2075case $srcdir in
2076 .) # We are building in place.
2077 ac_srcdir=.
2078 ac_top_srcdir=$ac_top_builddir_sub
2079 ac_abs_top_srcdir=$ac_pwd ;;
2080 [\\/]* | ?:[\\/]* ) # Absolute name.
2081 ac_srcdir=$srcdir$ac_dir_suffix;
2082 ac_top_srcdir=$srcdir
2083 ac_abs_top_srcdir=$srcdir ;;
2084 *) # Relative name.
2085 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2086 ac_top_srcdir=$ac_top_build_prefix$srcdir
2087 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2088esac
2089ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2090
2091 cd "$ac_dir" || { ac_status=$?; continue; }
2092 # Check for guested configure.
2093 if test -f "$ac_srcdir/configure.gnu"; then
2094 echo &&
2095 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2096 elif test -f "$ac_srcdir/configure"; then
2097 echo &&
2098 $SHELL "$ac_srcdir/configure" --help=recursive
2099 else
2100 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2101 fi || ac_status=$?
2102 cd "$ac_pwd" || { ac_status=$?; break; }
2103 done
2104fi
2105
2106test -n "$ac_init_help" && exit $ac_status
2107if $ac_init_version; then
2108 cat <<\_ACEOF
cristy664b8d72010-05-17 13:53:36 +00002109ImageMagick configure 6.6.2
cristycd4c5312009-11-22 01:19:08 +00002110generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002111
cristy8b350f62009-11-15 23:12:43 +00002112Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002113This configure script is free software; the Free Software Foundation
2114gives unlimited permission to copy, distribute and modify it.
2115_ACEOF
2116 exit
2117fi
cristy8b350f62009-11-15 23:12:43 +00002118
2119## ------------------------ ##
2120## Autoconf initialization. ##
2121## ------------------------ ##
2122
2123# ac_fn_c_try_compile LINENO
2124# --------------------------
2125# Try to compile conftest.$ac_ext, and return whether this succeeded.
2126ac_fn_c_try_compile ()
2127{
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 rm -f conftest.$ac_objext
2130 if { { ac_try="$ac_compile"
2131case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134esac
2135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136$as_echo "$ac_try_echo"; } >&5
2137 (eval "$ac_compile") 2>conftest.err
2138 ac_status=$?
2139 if test -s conftest.err; then
2140 grep -v '^ *+' conftest.err >conftest.er1
2141 cat conftest.er1 >&5
2142 mv -f conftest.er1 conftest.err
2143 fi
2144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145 test $ac_status = 0; } && {
2146 test -z "$ac_c_werror_flag" ||
2147 test ! -s conftest.err
2148 } && test -s conftest.$ac_objext; then :
2149 ac_retval=0
2150else
2151 $as_echo "$as_me: failed program was:" >&5
2152sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 ac_retval=1
2155fi
2156 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002157 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002158
2159} # ac_fn_c_try_compile
2160
cristy95646052009-11-28 23:05:30 +00002161# ac_fn_c_try_cpp LINENO
2162# ----------------------
2163# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2164ac_fn_c_try_cpp ()
2165{
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 if { { ac_try="$ac_cpp conftest.$ac_ext"
2168case "(($ac_try" in
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2171esac
2172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173$as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2175 ac_status=$?
2176 if test -s conftest.err; then
2177 grep -v '^ *+' conftest.err >conftest.er1
2178 cat conftest.er1 >&5
2179 mv -f conftest.er1 conftest.err
2180 fi
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; } >/dev/null && {
2183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2184 test ! -s conftest.err
2185 }; then :
2186 ac_retval=0
2187else
2188 $as_echo "$as_me: failed program was:" >&5
2189sed 's/^/| /' conftest.$ac_ext >&5
2190
2191 ac_retval=1
2192fi
2193 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2194 as_fn_set_status $ac_retval
2195
2196} # ac_fn_c_try_cpp
2197
cristy8b350f62009-11-15 23:12:43 +00002198# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2199# -------------------------------------------------------
2200# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2201# the include files in INCLUDES and setting the cache variable VAR
2202# accordingly.
2203ac_fn_c_check_header_mongrel ()
2204{
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208$as_echo_n "checking for $2... " >&6; }
2209if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2210 $as_echo_n "(cached) " >&6
2211fi
2212eval ac_res=\$$3
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214$as_echo "$ac_res" >&6; }
2215else
2216 # Is the header compilable?
2217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2218$as_echo_n "checking $2 usability... " >&6; }
2219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220/* end confdefs.h. */
2221$4
2222#include <$2>
2223_ACEOF
2224if ac_fn_c_try_compile "$LINENO"; then :
2225 ac_header_compiler=yes
2226else
2227 ac_header_compiler=no
2228fi
2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2231$as_echo "$ac_header_compiler" >&6; }
2232
2233# Is the header present?
2234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2235$as_echo_n "checking $2 presence... " >&6; }
2236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237/* end confdefs.h. */
2238#include <$2>
2239_ACEOF
2240if ac_fn_c_try_cpp "$LINENO"; then :
2241 ac_header_preproc=yes
2242else
2243 ac_header_preproc=no
2244fi
2245rm -f conftest.err conftest.$ac_ext
2246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2247$as_echo "$ac_header_preproc" >&6; }
2248
2249# So? What about this header?
2250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2251 yes:no: )
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2253$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2255$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2256 ;;
2257 no:yes:* )
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2259$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2261$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2263$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2265$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2267$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2268( cat <<\_ASBOX
2269## ----------------------------------------- ##
2270## Report this to http://www.imagemagick.org ##
2271## ----------------------------------------- ##
2272_ASBOX
2273 ) | sed "s/^/$as_me: WARNING: /" >&2
2274 ;;
2275esac
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277$as_echo_n "checking for $2... " >&6; }
2278if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2279 $as_echo_n "(cached) " >&6
2280else
2281 eval "$3=\$ac_header_compiler"
2282fi
2283eval ac_res=\$$3
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285$as_echo "$ac_res" >&6; }
2286fi
2287 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2288
2289} # ac_fn_c_check_header_mongrel
2290
2291# ac_fn_c_try_run LINENO
2292# ----------------------
2293# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2294# that executables *can* be run.
2295ac_fn_c_try_run ()
2296{
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 if { { ac_try="$ac_link"
2299case "(($ac_try" in
2300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301 *) ac_try_echo=$ac_try;;
2302esac
2303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2304$as_echo "$ac_try_echo"; } >&5
2305 (eval "$ac_link") 2>&5
2306 ac_status=$?
2307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2308 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2309 { { case "(($ac_try" in
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2312esac
2313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2314$as_echo "$ac_try_echo"; } >&5
2315 (eval "$ac_try") 2>&5
2316 ac_status=$?
2317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2318 test $ac_status = 0; }; }; then :
2319 ac_retval=0
2320else
2321 $as_echo "$as_me: program exited with status $ac_status" >&5
2322 $as_echo "$as_me: failed program was:" >&5
2323sed 's/^/| /' conftest.$ac_ext >&5
2324
2325 ac_retval=$ac_status
2326fi
2327 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2328 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002329 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002330
2331} # ac_fn_c_try_run
2332
2333# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2334# -------------------------------------------------------
2335# Tests whether HEADER exists and can be compiled using the include files in
2336# INCLUDES, setting the cache variable VAR accordingly.
2337ac_fn_c_check_header_compile ()
2338{
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2341$as_echo_n "checking for $2... " >&6; }
2342if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2343 $as_echo_n "(cached) " >&6
2344else
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346/* end confdefs.h. */
2347$4
2348#include <$2>
2349_ACEOF
2350if ac_fn_c_try_compile "$LINENO"; then :
2351 eval "$3=yes"
2352else
2353 eval "$3=no"
2354fi
2355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356fi
2357eval ac_res=\$$3
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359$as_echo "$ac_res" >&6; }
2360 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2361
2362} # ac_fn_c_check_header_compile
2363
cristya0b81c32010-01-22 02:54:33 +00002364# ac_fn_cxx_try_compile LINENO
2365# ----------------------------
2366# Try to compile conftest.$ac_ext, and return whether this succeeded.
2367ac_fn_cxx_try_compile ()
2368{
2369 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370 rm -f conftest.$ac_objext
2371 if { { ac_try="$ac_compile"
2372case "(($ac_try" in
2373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2374 *) ac_try_echo=$ac_try;;
2375esac
2376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2377$as_echo "$ac_try_echo"; } >&5
2378 (eval "$ac_compile") 2>conftest.err
2379 ac_status=$?
2380 if test -s conftest.err; then
2381 grep -v '^ *+' conftest.err >conftest.er1
2382 cat conftest.er1 >&5
2383 mv -f conftest.er1 conftest.err
2384 fi
2385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2386 test $ac_status = 0; } && {
2387 test -z "$ac_cxx_werror_flag" ||
2388 test ! -s conftest.err
2389 } && test -s conftest.$ac_objext; then :
2390 ac_retval=0
2391else
2392 $as_echo "$as_me: failed program was:" >&5
2393sed 's/^/| /' conftest.$ac_ext >&5
2394
2395 ac_retval=1
2396fi
2397 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398 as_fn_set_status $ac_retval
2399
2400} # ac_fn_cxx_try_compile
2401
cristy8b350f62009-11-15 23:12:43 +00002402# ac_fn_c_try_link LINENO
2403# -----------------------
2404# Try to link conftest.$ac_ext, and return whether this succeeded.
2405ac_fn_c_try_link ()
2406{
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 rm -f conftest.$ac_objext conftest$ac_exeext
2409 if { { ac_try="$ac_link"
2410case "(($ac_try" in
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2413esac
2414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2415$as_echo "$ac_try_echo"; } >&5
2416 (eval "$ac_link") 2>conftest.err
2417 ac_status=$?
2418 if test -s conftest.err; then
2419 grep -v '^ *+' conftest.err >conftest.er1
2420 cat conftest.er1 >&5
2421 mv -f conftest.er1 conftest.err
2422 fi
2423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2424 test $ac_status = 0; } && {
2425 test -z "$ac_c_werror_flag" ||
2426 test ! -s conftest.err
2427 } && test -s conftest$ac_exeext && {
2428 test "$cross_compiling" = yes ||
2429 $as_test_x conftest$ac_exeext
2430 }; then :
2431 ac_retval=0
2432else
2433 $as_echo "$as_me: failed program was:" >&5
2434sed 's/^/| /' conftest.$ac_ext >&5
2435
2436 ac_retval=1
2437fi
2438 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2439 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2440 # interfere with the next link command; also delete a directory that is
2441 # left behind by Apple's compiler. We do this before executing the actions.
2442 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002444 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002445
2446} # ac_fn_c_try_link
2447
2448# ac_fn_c_check_func LINENO FUNC VAR
2449# ----------------------------------
2450# Tests whether FUNC exists, setting the cache variable VAR accordingly
2451ac_fn_c_check_func ()
2452{
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2455$as_echo_n "checking for $2... " >&6; }
2456if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2457 $as_echo_n "(cached) " >&6
2458else
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460/* end confdefs.h. */
2461/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2463#define $2 innocuous_$2
2464
2465/* System header to define __stub macros and hopefully few prototypes,
2466 which can conflict with char $2 (); below.
2467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2468 <limits.h> exists even on freestanding compilers. */
2469
2470#ifdef __STDC__
2471# include <limits.h>
2472#else
2473# include <assert.h>
2474#endif
2475
2476#undef $2
2477
2478/* Override any GCC internal prototype to avoid an error.
2479 Use char because int might match the return type of a GCC
2480 builtin and then its argument prototype would still apply. */
2481#ifdef __cplusplus
2482extern "C"
2483#endif
2484char $2 ();
2485/* The GNU C library defines this for functions which it implements
2486 to always fail with ENOSYS. Some functions are actually named
2487 something starting with __ and the normal name is an alias. */
2488#if defined __stub_$2 || defined __stub___$2
2489choke me
2490#endif
2491
2492int
2493main ()
2494{
2495return $2 ();
2496 ;
2497 return 0;
2498}
2499_ACEOF
2500if ac_fn_c_try_link "$LINENO"; then :
2501 eval "$3=yes"
2502else
2503 eval "$3=no"
2504fi
2505rm -f core conftest.err conftest.$ac_objext \
2506 conftest$ac_exeext conftest.$ac_ext
2507fi
2508eval ac_res=\$$3
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2510$as_echo "$ac_res" >&6; }
2511 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2512
2513} # ac_fn_c_check_func
2514
2515# ac_fn_cxx_try_cpp LINENO
2516# ------------------------
2517# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2518ac_fn_cxx_try_cpp ()
2519{
2520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521 if { { ac_try="$ac_cpp conftest.$ac_ext"
2522case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525esac
2526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2527$as_echo "$ac_try_echo"; } >&5
2528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2529 ac_status=$?
2530 if test -s conftest.err; then
2531 grep -v '^ *+' conftest.err >conftest.er1
2532 cat conftest.er1 >&5
2533 mv -f conftest.er1 conftest.err
2534 fi
2535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2536 test $ac_status = 0; } >/dev/null && {
2537 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2538 test ! -s conftest.err
2539 }; then :
2540 ac_retval=0
2541else
2542 $as_echo "$as_me: failed program was:" >&5
2543sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 ac_retval=1
2546fi
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002548 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002549
2550} # ac_fn_cxx_try_cpp
2551
2552# ac_fn_cxx_try_link LINENO
2553# -------------------------
2554# Try to link conftest.$ac_ext, and return whether this succeeded.
2555ac_fn_cxx_try_link ()
2556{
2557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2558 rm -f conftest.$ac_objext conftest$ac_exeext
2559 if { { ac_try="$ac_link"
2560case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2563esac
2564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2565$as_echo "$ac_try_echo"; } >&5
2566 (eval "$ac_link") 2>conftest.err
2567 ac_status=$?
2568 if test -s conftest.err; then
2569 grep -v '^ *+' conftest.err >conftest.er1
2570 cat conftest.er1 >&5
2571 mv -f conftest.er1 conftest.err
2572 fi
2573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2574 test $ac_status = 0; } && {
2575 test -z "$ac_cxx_werror_flag" ||
2576 test ! -s conftest.err
2577 } && test -s conftest$ac_exeext && {
2578 test "$cross_compiling" = yes ||
2579 $as_test_x conftest$ac_exeext
2580 }; then :
2581 ac_retval=0
2582else
2583 $as_echo "$as_me: failed program was:" >&5
2584sed 's/^/| /' conftest.$ac_ext >&5
2585
2586 ac_retval=1
2587fi
2588 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2589 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2590 # interfere with the next link command; also delete a directory that is
2591 # left behind by Apple's compiler. We do this before executing the actions.
2592 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002594 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002595
2596} # ac_fn_cxx_try_link
2597
2598# ac_fn_c_check_decl LINENO SYMBOL VAR
2599# ------------------------------------
2600# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2601ac_fn_c_check_decl ()
2602{
2603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2605$as_echo_n "checking whether $2 is declared... " >&6; }
2606if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2607 $as_echo_n "(cached) " >&6
2608else
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610/* end confdefs.h. */
2611$4
2612int
2613main ()
2614{
2615#ifndef $2
2616 (void) $2;
2617#endif
2618
2619 ;
2620 return 0;
2621}
2622_ACEOF
2623if ac_fn_c_try_compile "$LINENO"; then :
2624 eval "$3=yes"
2625else
2626 eval "$3=no"
2627fi
2628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629fi
2630eval ac_res=\$$3
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2632$as_echo "$ac_res" >&6; }
2633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2634
2635} # ac_fn_c_check_decl
2636
2637# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2638# -------------------------------------------
2639# Tests whether TYPE exists after having included INCLUDES, setting cache
2640# variable VAR accordingly.
2641ac_fn_c_check_type ()
2642{
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2645$as_echo_n "checking for $2... " >&6; }
2646if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2647 $as_echo_n "(cached) " >&6
2648else
2649 eval "$3=no"
2650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651/* end confdefs.h. */
2652$4
2653int
2654main ()
2655{
2656if (sizeof ($2))
2657 return 0;
2658 ;
2659 return 0;
2660}
2661_ACEOF
2662if ac_fn_c_try_compile "$LINENO"; then :
2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664/* end confdefs.h. */
2665$4
2666int
2667main ()
2668{
2669if (sizeof (($2)))
2670 return 0;
2671 ;
2672 return 0;
2673}
2674_ACEOF
2675if ac_fn_c_try_compile "$LINENO"; then :
2676
2677else
2678 eval "$3=yes"
2679fi
2680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681fi
2682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683fi
2684eval ac_res=\$$3
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2686$as_echo "$ac_res" >&6; }
2687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2688
2689} # ac_fn_c_check_type
2690
cristy92703d82010-04-26 00:18:18 +00002691# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2692# ----------------------------------------------------
2693# Tries to find if the field MEMBER exists in type AGGR, after including
2694# INCLUDES, setting cache variable VAR accordingly.
2695ac_fn_c_check_member ()
2696{
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2699$as_echo_n "checking for $2.$3... " >&6; }
2700if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2701 $as_echo_n "(cached) " >&6
2702else
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704/* end confdefs.h. */
2705$5
2706int
2707main ()
2708{
2709static $2 ac_aggr;
2710if (ac_aggr.$3)
2711return 0;
2712 ;
2713 return 0;
2714}
2715_ACEOF
2716if ac_fn_c_try_compile "$LINENO"; then :
2717 eval "$4=yes"
2718else
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720/* end confdefs.h. */
2721$5
2722int
2723main ()
2724{
2725static $2 ac_aggr;
2726if (sizeof ac_aggr.$3)
2727return 0;
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732if ac_fn_c_try_compile "$LINENO"; then :
2733 eval "$4=yes"
2734else
2735 eval "$4=no"
2736fi
2737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738fi
2739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740fi
2741eval ac_res=\$$4
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2743$as_echo "$ac_res" >&6; }
2744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2745
2746} # ac_fn_c_check_member
2747
cristy8b350f62009-11-15 23:12:43 +00002748# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2749# --------------------------------------------
2750# Tries to find the compile-time value of EXPR in a program that includes
2751# INCLUDES, setting VAR accordingly. Returns whether the value could be
2752# computed
2753ac_fn_c_compute_int ()
2754{
2755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2756 if test "$cross_compiling" = yes; then
2757 # Depending upon the size, compute the lo and hi bounds.
2758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759/* end confdefs.h. */
2760$4
2761int
2762main ()
2763{
2764static int test_array [1 - 2 * !(($2) >= 0)];
2765test_array [0] = 0
2766
2767 ;
2768 return 0;
2769}
2770_ACEOF
2771if ac_fn_c_try_compile "$LINENO"; then :
2772 ac_lo=0 ac_mid=0
2773 while :; do
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775/* end confdefs.h. */
2776$4
2777int
2778main ()
2779{
2780static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2781test_array [0] = 0
2782
2783 ;
2784 return 0;
2785}
2786_ACEOF
2787if ac_fn_c_try_compile "$LINENO"; then :
2788 ac_hi=$ac_mid; break
2789else
2790 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2791 if test $ac_lo -le $ac_mid; then
2792 ac_lo= ac_hi=
2793 break
2794 fi
2795 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2796fi
2797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2798 done
2799else
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801/* end confdefs.h. */
2802$4
2803int
2804main ()
2805{
2806static int test_array [1 - 2 * !(($2) < 0)];
2807test_array [0] = 0
2808
2809 ;
2810 return 0;
2811}
2812_ACEOF
2813if ac_fn_c_try_compile "$LINENO"; then :
2814 ac_hi=-1 ac_mid=-1
2815 while :; do
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817/* end confdefs.h. */
2818$4
2819int
2820main ()
2821{
2822static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2823test_array [0] = 0
2824
2825 ;
2826 return 0;
2827}
2828_ACEOF
2829if ac_fn_c_try_compile "$LINENO"; then :
2830 ac_lo=$ac_mid; break
2831else
2832 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2833 if test $ac_mid -le $ac_hi; then
2834 ac_lo= ac_hi=
2835 break
2836 fi
2837 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2838fi
2839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 done
2841else
2842 ac_lo= ac_hi=
2843fi
2844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845fi
2846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847# Binary search between lo and hi bounds.
2848while test "x$ac_lo" != "x$ac_hi"; do
2849 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851/* end confdefs.h. */
2852$4
2853int
2854main ()
2855{
2856static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2857test_array [0] = 0
2858
2859 ;
2860 return 0;
2861}
2862_ACEOF
2863if ac_fn_c_try_compile "$LINENO"; then :
2864 ac_hi=$ac_mid
2865else
2866 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2867fi
2868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869done
2870case $ac_lo in #((
2871?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2872'') ac_retval=1 ;;
2873esac
2874 else
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876/* end confdefs.h. */
2877$4
2878static long int longval () { return $2; }
2879static unsigned long int ulongval () { return $2; }
2880#include <stdio.h>
2881#include <stdlib.h>
2882int
2883main ()
2884{
2885
2886 FILE *f = fopen ("conftest.val", "w");
2887 if (! f)
2888 return 1;
2889 if (($2) < 0)
2890 {
2891 long int i = longval ();
2892 if (i != ($2))
2893 return 1;
2894 fprintf (f, "%ld", i);
2895 }
2896 else
2897 {
2898 unsigned long int i = ulongval ();
2899 if (i != ($2))
2900 return 1;
2901 fprintf (f, "%lu", i);
2902 }
2903 /* Do not output a trailing newline, as this causes \r\n confusion
2904 on some platforms. */
2905 return ferror (f) || fclose (f) != 0;
2906
2907 ;
2908 return 0;
2909}
2910_ACEOF
2911if ac_fn_c_try_run "$LINENO"; then :
2912 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2913else
2914 ac_retval=1
2915fi
2916rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2917 conftest.$ac_objext conftest.beam conftest.$ac_ext
2918rm -f conftest.val
2919
2920 fi
2921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002922 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002923
2924} # ac_fn_c_compute_int
2925
2926# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2927# ---------------------------------------------------------
2928# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2929# the include files in INCLUDES and setting the cache variable VAR
2930# accordingly.
2931ac_fn_cxx_check_header_mongrel ()
2932{
2933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2934 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2936$as_echo_n "checking for $2... " >&6; }
2937if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2938 $as_echo_n "(cached) " >&6
2939fi
2940eval ac_res=\$$3
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2942$as_echo "$ac_res" >&6; }
2943else
2944 # Is the header compilable?
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2946$as_echo_n "checking $2 usability... " >&6; }
2947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948/* end confdefs.h. */
2949$4
2950#include <$2>
2951_ACEOF
2952if ac_fn_cxx_try_compile "$LINENO"; then :
2953 ac_header_compiler=yes
2954else
2955 ac_header_compiler=no
2956fi
2957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2959$as_echo "$ac_header_compiler" >&6; }
2960
2961# Is the header present?
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2963$as_echo_n "checking $2 presence... " >&6; }
2964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965/* end confdefs.h. */
2966#include <$2>
2967_ACEOF
2968if ac_fn_cxx_try_cpp "$LINENO"; then :
2969 ac_header_preproc=yes
2970else
2971 ac_header_preproc=no
2972fi
2973rm -f conftest.err conftest.$ac_ext
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2975$as_echo "$ac_header_preproc" >&6; }
2976
2977# So? What about this header?
2978case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2979 yes:no: )
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2981$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2983$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2984 ;;
2985 no:yes:* )
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2987$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2989$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2991$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2993$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2995$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2996( cat <<\_ASBOX
2997## ----------------------------------------- ##
2998## Report this to http://www.imagemagick.org ##
2999## ----------------------------------------- ##
3000_ASBOX
3001 ) | sed "s/^/$as_me: WARNING: /" >&2
3002 ;;
3003esac
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3005$as_echo_n "checking for $2... " >&6; }
3006if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3007 $as_echo_n "(cached) " >&6
3008else
3009 eval "$3=\$ac_header_compiler"
3010fi
3011eval ac_res=\$$3
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3013$as_echo "$ac_res" >&6; }
3014fi
3015 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3016
3017} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003018cat >config.log <<_ACEOF
3019This file contains any messages produced by compilers while
3020running configure, to aid debugging if configure makes a mistake.
3021
cristy664b8d72010-05-17 13:53:36 +00003022It was created by ImageMagick $as_me 6.6.2, which was
cristycd4c5312009-11-22 01:19:08 +00003023generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003024
3025 $ $0 $@
3026
3027_ACEOF
3028exec 5>>config.log
3029{
3030cat <<_ASUNAME
3031## --------- ##
3032## Platform. ##
3033## --------- ##
3034
3035hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3036uname -m = `(uname -m) 2>/dev/null || echo unknown`
3037uname -r = `(uname -r) 2>/dev/null || echo unknown`
3038uname -s = `(uname -s) 2>/dev/null || echo unknown`
3039uname -v = `(uname -v) 2>/dev/null || echo unknown`
3040
3041/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3042/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3043
3044/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3045/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3046/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3047/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3048/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3049/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3050/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3051
3052_ASUNAME
3053
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003059 $as_echo "PATH: $as_dir"
3060 done
cristy3ed852e2009-09-05 21:47:34 +00003061IFS=$as_save_IFS
3062
3063} >&5
3064
3065cat >&5 <<_ACEOF
3066
3067
3068## ----------- ##
3069## Core tests. ##
3070## ----------- ##
3071
3072_ACEOF
3073
3074
3075# Keep a trace of the command line.
3076# Strip out --no-create and --no-recursion so they do not pile up.
3077# Strip out --silent because we don't want to record it for future runs.
3078# Also quote any args containing shell meta-characters.
3079# Make two passes to allow for proper duplicate-argument suppression.
3080ac_configure_args=
3081ac_configure_args0=
3082ac_configure_args1=
3083ac_must_keep_next=false
3084for ac_pass in 1 2
3085do
3086 for ac_arg
3087 do
3088 case $ac_arg in
3089 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3091 | -silent | --silent | --silen | --sile | --sil)
3092 continue ;;
3093 *\'*)
3094 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3095 esac
3096 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003097 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003098 2)
cristy8b350f62009-11-15 23:12:43 +00003099 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003100 if test $ac_must_keep_next = true; then
3101 ac_must_keep_next=false # Got value, back to normal.
3102 else
3103 case $ac_arg in
3104 *=* | --config-cache | -C | -disable-* | --disable-* \
3105 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3106 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3107 | -with-* | --with-* | -without-* | --without-* | --x)
3108 case "$ac_configure_args0 " in
3109 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3110 esac
3111 ;;
3112 -* ) ac_must_keep_next=true ;;
3113 esac
3114 fi
cristy8b350f62009-11-15 23:12:43 +00003115 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003116 ;;
3117 esac
3118 done
3119done
cristy8b350f62009-11-15 23:12:43 +00003120{ ac_configure_args0=; unset ac_configure_args0;}
3121{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003122
3123# When interrupted or exit'd, cleanup temporary files, and complete
3124# config.log. We remove comments because anyway the quotes in there
3125# would cause problems or look ugly.
3126# WARNING: Use '\'' to represent an apostrophe within the trap.
3127# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3128trap 'exit_status=$?
3129 # Save into config.log some information that might help in debugging.
3130 {
3131 echo
3132
3133 cat <<\_ASBOX
3134## ---------------- ##
3135## Cache variables. ##
3136## ---------------- ##
3137_ASBOX
3138 echo
3139 # The following way of writing the cache mishandles newlines in values,
3140(
3141 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3142 eval ac_val=\$$ac_var
3143 case $ac_val in #(
3144 *${as_nl}*)
3145 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003146 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003147$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3148 esac
3149 case $ac_var in #(
3150 _ | IFS | as_nl) ;; #(
3151 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003152 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003153 esac ;;
3154 esac
3155 done
3156 (set) 2>&1 |
3157 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3158 *${as_nl}ac_space=\ *)
3159 sed -n \
3160 "s/'\''/'\''\\\\'\'''\''/g;
3161 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3162 ;; #(
3163 *)
3164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3165 ;;
3166 esac |
3167 sort
3168)
3169 echo
3170
3171 cat <<\_ASBOX
3172## ----------------- ##
3173## Output variables. ##
3174## ----------------- ##
3175_ASBOX
3176 echo
3177 for ac_var in $ac_subst_vars
3178 do
3179 eval ac_val=\$$ac_var
3180 case $ac_val in
3181 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3182 esac
3183 $as_echo "$ac_var='\''$ac_val'\''"
3184 done | sort
3185 echo
3186
3187 if test -n "$ac_subst_files"; then
3188 cat <<\_ASBOX
3189## ------------------- ##
3190## File substitutions. ##
3191## ------------------- ##
3192_ASBOX
3193 echo
3194 for ac_var in $ac_subst_files
3195 do
3196 eval ac_val=\$$ac_var
3197 case $ac_val in
3198 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3199 esac
3200 $as_echo "$ac_var='\''$ac_val'\''"
3201 done | sort
3202 echo
3203 fi
3204
3205 if test -s confdefs.h; then
3206 cat <<\_ASBOX
3207## ----------- ##
3208## confdefs.h. ##
3209## ----------- ##
3210_ASBOX
3211 echo
3212 cat confdefs.h
3213 echo
3214 fi
3215 test "$ac_signal" != 0 &&
3216 $as_echo "$as_me: caught signal $ac_signal"
3217 $as_echo "$as_me: exit $exit_status"
3218 } >&5
3219 rm -f core *.core core.conftest.* &&
3220 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3221 exit $exit_status
3222' 0
3223for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003224 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003225done
3226ac_signal=0
3227
3228# confdefs.h avoids OS command line length limits that DEFS can exceed.
3229rm -f -r conftest* confdefs.h
3230
cristy8b350f62009-11-15 23:12:43 +00003231$as_echo "/* confdefs.h */" > confdefs.h
3232
cristy3ed852e2009-09-05 21:47:34 +00003233# Predefined preprocessor variables.
3234
3235cat >>confdefs.h <<_ACEOF
3236#define PACKAGE_NAME "$PACKAGE_NAME"
3237_ACEOF
3238
cristy3ed852e2009-09-05 21:47:34 +00003239cat >>confdefs.h <<_ACEOF
3240#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3241_ACEOF
3242
cristy3ed852e2009-09-05 21:47:34 +00003243cat >>confdefs.h <<_ACEOF
3244#define PACKAGE_VERSION "$PACKAGE_VERSION"
3245_ACEOF
3246
cristy3ed852e2009-09-05 21:47:34 +00003247cat >>confdefs.h <<_ACEOF
3248#define PACKAGE_STRING "$PACKAGE_STRING"
3249_ACEOF
3250
cristy3ed852e2009-09-05 21:47:34 +00003251cat >>confdefs.h <<_ACEOF
3252#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3253_ACEOF
3254
cristy8b350f62009-11-15 23:12:43 +00003255cat >>confdefs.h <<_ACEOF
3256#define PACKAGE_URL "$PACKAGE_URL"
3257_ACEOF
3258
cristy3ed852e2009-09-05 21:47:34 +00003259
3260# Let the site file select an alternate cache file if it wants to.
3261# Prefer an explicitly selected file to automatically selected ones.
3262ac_site_file1=NONE
3263ac_site_file2=NONE
3264if test -n "$CONFIG_SITE"; then
3265 ac_site_file1=$CONFIG_SITE
3266elif test "x$prefix" != xNONE; then
3267 ac_site_file1=$prefix/share/config.site
3268 ac_site_file2=$prefix/etc/config.site
3269else
3270 ac_site_file1=$ac_default_prefix/share/config.site
3271 ac_site_file2=$ac_default_prefix/etc/config.site
3272fi
3273for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3274do
3275 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003276 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003277 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003278$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3279 sed 's/^/| /' "$ac_site_file" >&5
3280 . "$ac_site_file"
3281 fi
3282done
3283
3284if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003285 # Some versions of bash will fail to source /dev/null (special files
3286 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3287 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003289$as_echo "$as_me: loading cache $cache_file" >&6;}
3290 case $cache_file in
3291 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3292 *) . "./$cache_file";;
3293 esac
3294 fi
3295else
cristy8b350f62009-11-15 23:12:43 +00003296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003297$as_echo "$as_me: creating cache $cache_file" >&6;}
3298 >$cache_file
3299fi
3300
cristycd4c5312009-11-22 01:19:08 +00003301as_fn_append ac_header_list " stdlib.h"
3302as_fn_append ac_header_list " unistd.h"
3303as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003304# Check that the precious variables saved in the cache have kept the same
3305# value.
3306ac_cache_corrupted=false
3307for ac_var in $ac_precious_vars; do
3308 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3309 eval ac_new_set=\$ac_env_${ac_var}_set
3310 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3311 eval ac_new_val=\$ac_env_${ac_var}_value
3312 case $ac_old_set,$ac_new_set in
3313 set,)
cristy8b350f62009-11-15 23:12:43 +00003314 { $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 +00003315$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3316 ac_cache_corrupted=: ;;
3317 ,set)
cristy8b350f62009-11-15 23:12:43 +00003318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003319$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3320 ac_cache_corrupted=: ;;
3321 ,);;
3322 *)
3323 if test "x$ac_old_val" != "x$ac_new_val"; then
3324 # differences in whitespace do not lead to failure.
3325 ac_old_val_w=`echo x $ac_old_val`
3326 ac_new_val_w=`echo x $ac_new_val`
3327 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003329$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3330 ac_cache_corrupted=:
3331 else
cristy8b350f62009-11-15 23:12:43 +00003332 { $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 +00003333$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3334 eval $ac_var=\$ac_old_val
3335 fi
cristy8b350f62009-11-15 23:12:43 +00003336 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003337$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003338 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003339$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3340 fi;;
3341 esac
3342 # Pass precious variables to config.status.
3343 if test "$ac_new_set" = set; then
3344 case $ac_new_val in
3345 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3346 *) ac_arg=$ac_var=$ac_new_val ;;
3347 esac
3348 case " $ac_configure_args " in
3349 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003350 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003351 esac
3352 fi
3353done
3354if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003358$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003359 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003360fi
cristy8b350f62009-11-15 23:12:43 +00003361## -------------------- ##
3362## Main body of script. ##
3363## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003364
3365ac_ext=c
3366ac_cpp='$CPP $CPPFLAGS'
3367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370
3371
3372
3373ac_aux_dir=
3374for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003375 for ac_t in install-sh install.sh shtool; do
3376 if test -f "$ac_dir/$ac_t"; then
3377 ac_aux_dir=$ac_dir
3378 ac_install_sh="$ac_aux_dir/$ac_t -c"
3379 break 2
3380 fi
3381 done
cristy3ed852e2009-09-05 21:47:34 +00003382done
3383if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003384 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003385fi
3386
3387# These three variables are undocumented and unsupported,
3388# and are intended to be withdrawn in a future Autoconf release.
3389# They can cause serious problems if a builder's source tree is in a directory
3390# whose full name contains unusual characters.
3391ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3392ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3393ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3394
3395
3396
3397
3398ac_config_headers="$ac_config_headers config/config.h"
3399
3400ac_config_commands="$ac_config_commands magick/magick-config.h"
3401
cristy430a7312010-01-21 20:44:04 +00003402ac_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 +00003403
3404
3405#
3406# Save initial user-tunable values
3407#
3408USER_LIBS=$LIBS
3409for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3410 eval isset=\${$var+set}
3411 if test "$isset" = 'set'; then
3412 eval val=$`echo $var`
3413 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3414 fi
3415done
3416
3417
3418CONFIGURE_ARGS="$0 ${ac_configure_args}"
3419
3420
3421# Source file containing package/library versioning information.
3422. ${srcdir}/version.sh
3423
cristy15a88782010-01-31 23:24:49 +00003424echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003425# Make sure we can run config.sub.
3426$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003427 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003428
cristy8b350f62009-11-15 23:12:43 +00003429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003430$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003431if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003432 $as_echo_n "(cached) " >&6
3433else
3434 ac_build_alias=$build_alias
3435test "x$ac_build_alias" = x &&
3436 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3437test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003438 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003439ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003440 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003441
3442fi
cristy8b350f62009-11-15 23:12:43 +00003443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003444$as_echo "$ac_cv_build" >&6; }
3445case $ac_cv_build in
3446*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003447*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003448esac
3449build=$ac_cv_build
3450ac_save_IFS=$IFS; IFS='-'
3451set x $ac_cv_build
3452shift
3453build_cpu=$1
3454build_vendor=$2
3455shift; shift
3456# Remember, the first character of IFS is used to create $*,
3457# except with old shells:
3458build_os=$*
3459IFS=$ac_save_IFS
3460case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3461
3462
cristy8b350f62009-11-15 23:12:43 +00003463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003464$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003465if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003466 $as_echo_n "(cached) " >&6
3467else
3468 if test "x$host_alias" = x; then
3469 ac_cv_host=$ac_cv_build
3470else
3471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003472 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003473fi
3474
3475fi
cristy8b350f62009-11-15 23:12:43 +00003476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003477$as_echo "$ac_cv_host" >&6; }
3478case $ac_cv_host in
3479*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003480*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003481esac
3482host=$ac_cv_host
3483ac_save_IFS=$IFS; IFS='-'
3484set x $ac_cv_host
3485shift
3486host_cpu=$1
3487host_vendor=$2
3488shift; shift
3489# Remember, the first character of IFS is used to create $*,
3490# except with old shells:
3491host_os=$*
3492IFS=$ac_save_IFS
3493case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3494
3495
cristy8b350f62009-11-15 23:12:43 +00003496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003497$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003498if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003499 $as_echo_n "(cached) " >&6
3500else
3501 if test "x$target_alias" = x; then
3502 ac_cv_target=$ac_cv_host
3503else
3504 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003505 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003506fi
3507
3508fi
cristy8b350f62009-11-15 23:12:43 +00003509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003510$as_echo "$ac_cv_target" >&6; }
3511case $ac_cv_target in
3512*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003513*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003514esac
3515target=$ac_cv_target
3516ac_save_IFS=$IFS; IFS='-'
3517set x $ac_cv_target
3518shift
3519target_cpu=$1
3520target_vendor=$2
3521shift; shift
3522# Remember, the first character of IFS is used to create $*,
3523# except with old shells:
3524target_os=$*
3525IFS=$ac_save_IFS
3526case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3527
3528
3529# The aliases save the names the user supplied, while $host etc.
3530# will get canonicalized.
3531test -n "$target_alias" &&
3532 test "$program_prefix$program_suffix$program_transform_name" = \
3533 NONENONEs,x,x, &&
3534 program_prefix=${target_alias}-
3535
cristy837d6dc2010-02-27 01:16:57 +00003536
3537
3538
3539
cristy3225a072010-04-17 01:47:28 +00003540MAGICK_TARGET_CPU=$target_cpu
3541
3542
3543MAGICK_TARGET_VENDOR=$target_vendor
3544
3545
3546MAGICK_TARGET_OS=$target_os
3547
3548
cristy3ed852e2009-09-05 21:47:34 +00003549# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003550MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3551
3552MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3553
cristy3ed852e2009-09-05 21:47:34 +00003554
3555
3556# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003558$as_echo_n "checking whether build environment is sane... " >&6; }
3559# Just in case
3560sleep 1
3561echo timestamp > conftest.file
3562# Reject unsafe characters in $srcdir or the absolute working directory
3563# name. Accept space and tab only in the latter.
3564am_lf='
3565'
3566case `pwd` in
3567 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003568 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003569esac
3570case $srcdir in
3571 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003572 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003573esac
3574
3575# Do `set' in a subshell so we don't clobber the current shell's
3576# arguments. Must try -L first in case configure is actually a
3577# symlink; some systems play weird games with the mod time of symlinks
3578# (eg FreeBSD returns the mod time of the symlink's containing
3579# directory).
3580if (
3581 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3582 if test "$*" = "X"; then
3583 # -L didn't work.
3584 set X `ls -t "$srcdir/configure" conftest.file`
3585 fi
3586 rm -f conftest.file
3587 if test "$*" != "X $srcdir/configure conftest.file" \
3588 && test "$*" != "X conftest.file $srcdir/configure"; then
3589
3590 # If neither matched, then we have a broken ls. This can happen
3591 # if, for instance, CONFIG_SHELL is bash and it inherits a
3592 # broken ls alias from the environment. This has actually
3593 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003594 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3595alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003596 fi
3597
3598 test "$2" = conftest.file
3599 )
3600then
3601 # Ok.
3602 :
3603else
cristy8b350f62009-11-15 23:12:43 +00003604 as_fn_error "newly created file is older than distributed files!
3605Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003606fi
cristy8b350f62009-11-15 23:12:43 +00003607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003608$as_echo "yes" >&6; }
3609
3610am__api_version='1.11'
3611
3612# Find a good install program. We prefer a C program (faster),
3613# so one script is as good as another. But avoid the broken or
3614# incompatible versions:
3615# SysV /etc/install, /usr/sbin/install
3616# SunOS /usr/etc/install
3617# IRIX /sbin/install
3618# AIX /bin/install
3619# AmigaOS /C/install, which installs bootblocks on floppy discs
3620# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3621# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3622# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3623# OS/2's system install, which has a completely different semantic
3624# ./install, which can be erroneously created by make from ./install.sh.
3625# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003627$as_echo_n "checking for a BSD-compatible install... " >&6; }
3628if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003629if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003630 $as_echo_n "(cached) " >&6
3631else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH
3634do
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003637 # Account for people who put trailing slashes in PATH elements.
3638case $as_dir/ in #((
3639 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003640 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003641 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003642 /usr/ucb/* ) ;;
3643 *)
3644 # OSF1 and SCO ODT 3.0 have their own names for install.
3645 # Don't use installbsd from OSF since it installs stuff as root
3646 # by default.
3647 for ac_prog in ginstall scoinst install; do
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3650 if test $ac_prog = install &&
3651 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3652 # AIX install. It has an incompatible calling convention.
3653 :
3654 elif test $ac_prog = install &&
3655 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3656 # program-specific install script used by HP pwplus--don't use.
3657 :
3658 else
3659 rm -rf conftest.one conftest.two conftest.dir
3660 echo one > conftest.one
3661 echo two > conftest.two
3662 mkdir conftest.dir
3663 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3664 test -s conftest.one && test -s conftest.two &&
3665 test -s conftest.dir/conftest.one &&
3666 test -s conftest.dir/conftest.two
3667 then
3668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3669 break 3
3670 fi
3671 fi
3672 fi
3673 done
3674 done
3675 ;;
3676esac
3677
cristy8b350f62009-11-15 23:12:43 +00003678 done
cristy3ed852e2009-09-05 21:47:34 +00003679IFS=$as_save_IFS
3680
3681rm -rf conftest.one conftest.two conftest.dir
3682
3683fi
3684 if test "${ac_cv_path_install+set}" = set; then
3685 INSTALL=$ac_cv_path_install
3686 else
3687 # As a last resort, use the slow shell script. Don't cache a
3688 # value for INSTALL within a source directory, because that will
3689 # break other packages using the cache if that directory is
3690 # removed, or if the value is a relative name.
3691 INSTALL=$ac_install_sh
3692 fi
3693fi
cristy8b350f62009-11-15 23:12:43 +00003694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003695$as_echo "$INSTALL" >&6; }
3696
3697# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3698# It thinks the first close brace ends the variable substitution.
3699test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3700
3701test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3702
3703test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3704
3705test "$program_prefix" != NONE &&
3706 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3707# Use a double $ so make ignores it.
3708test "$program_suffix" != NONE &&
3709 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3710# Double any \ or $.
3711# By default was `s,x,x', remove it if useless.
3712ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3713program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3714
3715# expand $ac_aux_dir to an absolute path
3716am_aux_dir=`cd $ac_aux_dir && pwd`
3717
3718if test x"${MISSING+set}" != xset; then
3719 case $am_aux_dir in
3720 *\ * | *\ *)
3721 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3722 *)
3723 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3724 esac
3725fi
3726# Use eval to expand $SHELL
3727if eval "$MISSING --run true"; then
3728 am_missing_run="$MISSING --run "
3729else
3730 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003732$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3733fi
3734
3735if test x"${install_sh}" != xset; then
3736 case $am_aux_dir in
3737 *\ * | *\ *)
3738 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3739 *)
3740 install_sh="\${SHELL} $am_aux_dir/install-sh"
3741 esac
3742fi
3743
3744# Installed binaries are usually stripped using `strip' when the user
3745# run `make install-strip'. However `strip' might not be the right
3746# tool to use in cross-compilation environments, therefore Automake
3747# will honor the `STRIP' environment variable to overrule this program.
3748if test "$cross_compiling" != no; then
3749 if test -n "$ac_tool_prefix"; then
3750 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3751set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003753$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003754if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003755 $as_echo_n "(cached) " >&6
3756else
3757 if test -n "$STRIP"; then
3758 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3759else
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH
3762do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003765 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003769 break 2
3770 fi
3771done
cristy8b350f62009-11-15 23:12:43 +00003772 done
cristy3ed852e2009-09-05 21:47:34 +00003773IFS=$as_save_IFS
3774
3775fi
3776fi
3777STRIP=$ac_cv_prog_STRIP
3778if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003780$as_echo "$STRIP" >&6; }
3781else
cristy8b350f62009-11-15 23:12:43 +00003782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003783$as_echo "no" >&6; }
3784fi
3785
3786
3787fi
3788if test -z "$ac_cv_prog_STRIP"; then
3789 ac_ct_STRIP=$STRIP
3790 # Extract the first word of "strip", so it can be a program name with args.
3791set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003793$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003794if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003795 $as_echo_n "(cached) " >&6
3796else
3797 if test -n "$ac_ct_STRIP"; then
3798 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3799else
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003809 break 2
3810 fi
3811done
cristy8b350f62009-11-15 23:12:43 +00003812 done
cristy3ed852e2009-09-05 21:47:34 +00003813IFS=$as_save_IFS
3814
3815fi
3816fi
3817ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3818if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003820$as_echo "$ac_ct_STRIP" >&6; }
3821else
cristy8b350f62009-11-15 23:12:43 +00003822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003823$as_echo "no" >&6; }
3824fi
3825
3826 if test "x$ac_ct_STRIP" = x; then
3827 STRIP=":"
3828 else
3829 case $cross_compiling:$ac_tool_warned in
3830yes:)
cristy8b350f62009-11-15 23:12:43 +00003831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3833ac_tool_warned=yes ;;
3834esac
3835 STRIP=$ac_ct_STRIP
3836 fi
3837else
3838 STRIP="$ac_cv_prog_STRIP"
3839fi
3840
3841fi
3842INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3843
cristy8b350f62009-11-15 23:12:43 +00003844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003845$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3846if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003847 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003848 $as_echo_n "(cached) " >&6
3849else
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3852do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003855 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3858 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3859 'mkdir (GNU coreutils) '* | \
3860 'mkdir (coreutils) '* | \
3861 'mkdir (fileutils) '4.1*)
3862 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3863 break 3;;
3864 esac
3865 done
3866 done
cristy8b350f62009-11-15 23:12:43 +00003867 done
cristy3ed852e2009-09-05 21:47:34 +00003868IFS=$as_save_IFS
3869
3870fi
3871
cristycd4c5312009-11-22 01:19:08 +00003872 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003873 if test "${ac_cv_path_mkdir+set}" = set; then
3874 MKDIR_P="$ac_cv_path_mkdir -p"
3875 else
3876 # As a last resort, use the slow shell script. Don't cache a
3877 # value for MKDIR_P within a source directory, because that will
3878 # break other packages using the cache if that directory is
3879 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003880 MKDIR_P="$ac_install_sh -d"
3881 fi
3882fi
cristy8b350f62009-11-15 23:12:43 +00003883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003884$as_echo "$MKDIR_P" >&6; }
3885
3886mkdir_p="$MKDIR_P"
3887case $mkdir_p in
3888 [\\/$]* | ?:[\\/]*) ;;
3889 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3890esac
3891
3892for ac_prog in gawk mawk nawk awk
3893do
3894 # Extract the first word of "$ac_prog", so it can be a program name with args.
3895set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003897$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003898if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003899 $as_echo_n "(cached) " >&6
3900else
3901 if test -n "$AWK"; then
3902 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3903else
3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH
3906do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003909 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003913 break 2
3914 fi
3915done
cristy8b350f62009-11-15 23:12:43 +00003916 done
cristy3ed852e2009-09-05 21:47:34 +00003917IFS=$as_save_IFS
3918
3919fi
3920fi
3921AWK=$ac_cv_prog_AWK
3922if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003924$as_echo "$AWK" >&6; }
3925else
cristy8b350f62009-11-15 23:12:43 +00003926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003927$as_echo "no" >&6; }
3928fi
3929
3930
3931 test -n "$AWK" && break
3932done
3933
cristy8b350f62009-11-15 23:12:43 +00003934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003935$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3936set x ${MAKE-make}
3937ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003938if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003939 $as_echo_n "(cached) " >&6
3940else
3941 cat >conftest.make <<\_ACEOF
3942SHELL = /bin/sh
3943all:
3944 @echo '@@@%%%=$(MAKE)=@@@%%%'
3945_ACEOF
3946# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3947case `${MAKE-make} -f conftest.make 2>/dev/null` in
3948 *@@@%%%=?*=@@@%%%*)
3949 eval ac_cv_prog_make_${ac_make}_set=yes;;
3950 *)
3951 eval ac_cv_prog_make_${ac_make}_set=no;;
3952esac
3953rm -f conftest.make
3954fi
3955if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003957$as_echo "yes" >&6; }
3958 SET_MAKE=
3959else
cristy8b350f62009-11-15 23:12:43 +00003960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003961$as_echo "no" >&6; }
3962 SET_MAKE="MAKE=${MAKE-make}"
3963fi
3964
3965rm -rf .tst 2>/dev/null
3966mkdir .tst 2>/dev/null
3967if test -d .tst; then
3968 am__leading_dot=.
3969else
3970 am__leading_dot=_
3971fi
3972rmdir .tst 2>/dev/null
3973
3974if test "`cd $srcdir && pwd`" != "`pwd`"; then
3975 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3976 # is not polluted with repeated "-I."
3977 am__isrc=' -I$(srcdir)'
3978 # test to see if srcdir already configured
3979 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003980 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003981 fi
3982fi
3983
3984# test whether we have cygpath
3985if test -z "$CYGPATH_W"; then
3986 if (cygpath --version) >/dev/null 2>/dev/null; then
3987 CYGPATH_W='cygpath -w'
3988 else
3989 CYGPATH_W=echo
3990 fi
3991fi
3992
3993
3994# Define the identity of the package.
3995 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003996 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003997
3998
3999# Some tools Automake needs.
4000
4001ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4002
4003
4004AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4005
4006
4007AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4008
4009
4010AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4011
4012
4013MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4014
4015# We need awk for the "check" target. The system "awk" is bad on
4016# some platforms.
4017# Always define AMTAR for backward compatibility.
4018
4019AMTAR=${AMTAR-"${am_missing_run}tar"}
4020
4021am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4022
4023
4024
4025
4026
4027
4028# Enable support for silent build rules
4029# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00004030if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004031 enableval=$enable_silent_rules;
4032fi
4033
4034case $enable_silent_rules in
4035yes) AM_DEFAULT_VERBOSITY=0;;
4036no) AM_DEFAULT_VERBOSITY=1;;
4037*) AM_DEFAULT_VERBOSITY=0;;
4038esac
4039AM_BACKSLASH='\'
4040
4041
4042MAGICK_LIB_VERSION="0x"
4043if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4044 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4045fi
4046MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4047if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4048 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4049fi
4050MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4051if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4052 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4053fi
4054MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4055
4056
4057# Definition used to define MagickLibVersionText in version.h
4058MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4059
4060
4061# Definition used to define MagickLibVersionNumber in version.h
4062MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4063
4064
4065# Regenerate config.status if ChangeLog or version.sh is updated.
4066CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4067
4068
4069PERLMAINCC=$CC
4070
4071MAGICK_CFLAGS=''
4072MAGICK_CPPFLAGS=$CPPFLAGS_USER
4073MAGICK_PCFLAGS=$CPPFLAGS_USER
4074MAGICK_LDFLAGS=''
4075MAGICK_LIBS=''
4076
4077#
4078# Evaluate shell variable equivalents to Makefile directory variables
4079#
4080if test "x$prefix" = xNONE; then
4081 prefix=$ac_default_prefix
4082fi
4083# Let make expand exec_prefix.
4084if test "x$exec_prefix" = xNONE; then
4085 exec_prefix='${prefix}'
4086fi
4087
4088#
4089eval "eval PREFIX_DIR=${prefix}"
4090
4091eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4092
4093eval "eval BIN_DIR=$bindir"
4094
4095eval "eval SBIN_DIR=$sbindir"
4096
4097eval "eval LIBEXEC_DIR=$libexecdir"
4098
4099eval "eval DATA_DIR=$datadir"
4100
4101eval "eval SYSCONF_DIR=$sysconfdir"
4102
4103eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4104
4105eval "eval LOCALSTATE_DIR=$localstatedir"
4106
4107eval "eval LIB_DIR=$libdir"
4108
4109eval "eval INCLUDE_DIR=$includedir"
4110
4111eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4112
4113eval "eval INFO_DIR=$infodir"
4114
4115eval "eval MAN_DIR=$mandir"
4116
4117
4118# Get full paths to source and build directories
4119srcdirfull="`cd $srcdir && pwd`"
4120builddir="`pwd`"
4121
4122#
4123# Compute variables useful for running uninstalled software.
4124#
4125MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4126MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4127MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4128MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4129DIRSEP=':'
4130case "${build_os}" in
4131 mingw* )
4132 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4133 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4134 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4135 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4136 DIRSEP=';'
4137 ;;
4138esac
4139case "${host_os}" in
4140 mingw* )
4141 DIRSEP=';'
4142 ;;
4143esac
4144
4145
4146
4147
4148
4149
cristya0b81c32010-01-22 02:54:33 +00004150
4151#
4152# Enable OS features.
4153#
4154DEPDIR="${am__leading_dot}deps"
4155
4156ac_config_commands="$ac_config_commands depfiles"
4157
4158
4159am_make=${MAKE-make}
4160cat > confinc << 'END'
4161am__doit:
4162 @echo this is the am__doit target
4163.PHONY: am__doit
4164END
4165# If we don't find an include directive, just comment out the code.
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4167$as_echo_n "checking for style of include used by $am_make... " >&6; }
4168am__include="#"
4169am__quote=
4170_am_result=none
4171# First try GNU make style include.
4172echo "include confinc" > confmf
4173# Ignore all kinds of additional output from `make'.
4174case `$am_make -s -f confmf 2> /dev/null` in #(
4175*the\ am__doit\ target*)
4176 am__include=include
4177 am__quote=
4178 _am_result=GNU
4179 ;;
4180esac
4181# Now try BSD make style include.
4182if test "$am__include" = "#"; then
4183 echo '.include "confinc"' > confmf
4184 case `$am_make -s -f confmf 2> /dev/null` in #(
4185 *the\ am__doit\ target*)
4186 am__include=.include
4187 am__quote="\""
4188 _am_result=BSD
4189 ;;
4190 esac
4191fi
4192
4193
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4195$as_echo "$_am_result" >&6; }
4196rm -f confinc confmf
4197
4198# Check whether --enable-dependency-tracking was given.
4199if test "${enable_dependency_tracking+set}" = set; then :
4200 enableval=$enable_dependency_tracking;
4201fi
4202
4203if test "x$enable_dependency_tracking" != xno; then
4204 am_depcomp="$ac_aux_dir/depcomp"
4205 AMDEPBACKSLASH='\'
4206fi
4207 if test "x$enable_dependency_tracking" != xno; then
4208 AMDEP_TRUE=
4209 AMDEP_FALSE='#'
4210else
4211 AMDEP_TRUE='#'
4212 AMDEP_FALSE=
4213fi
4214
4215
cristy3ed852e2009-09-05 21:47:34 +00004216ac_ext=c
4217ac_cpp='$CPP $CPPFLAGS'
4218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221if test -n "$ac_tool_prefix"; then
4222 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4223set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004225$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004226if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004227 $as_echo_n "(cached) " >&6
4228else
4229 if test -n "$CC"; then
4230 ac_cv_prog_CC="$CC" # Let the user override the test.
4231else
4232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233for as_dir in $PATH
4234do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4239 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004241 break 2
4242 fi
4243done
cristy8b350f62009-11-15 23:12:43 +00004244 done
cristy3ed852e2009-09-05 21:47:34 +00004245IFS=$as_save_IFS
4246
4247fi
4248fi
4249CC=$ac_cv_prog_CC
4250if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004252$as_echo "$CC" >&6; }
4253else
cristy8b350f62009-11-15 23:12:43 +00004254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004255$as_echo "no" >&6; }
4256fi
4257
4258
4259fi
4260if test -z "$ac_cv_prog_CC"; then
4261 ac_ct_CC=$CC
4262 # Extract the first word of "gcc", so it can be a program name with args.
4263set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004265$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004266if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004267 $as_echo_n "(cached) " >&6
4268else
4269 if test -n "$ac_ct_CC"; then
4270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4271else
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004281 break 2
4282 fi
4283done
cristy8b350f62009-11-15 23:12:43 +00004284 done
cristy3ed852e2009-09-05 21:47:34 +00004285IFS=$as_save_IFS
4286
4287fi
4288fi
4289ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004292$as_echo "$ac_ct_CC" >&6; }
4293else
cristy8b350f62009-11-15 23:12:43 +00004294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004295$as_echo "no" >&6; }
4296fi
4297
4298 if test "x$ac_ct_CC" = x; then
4299 CC=""
4300 else
4301 case $cross_compiling:$ac_tool_warned in
4302yes:)
cristy8b350f62009-11-15 23:12:43 +00004303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305ac_tool_warned=yes ;;
4306esac
4307 CC=$ac_ct_CC
4308 fi
4309else
4310 CC="$ac_cv_prog_CC"
4311fi
4312
4313if test -z "$CC"; then
4314 if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4316set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004318$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004319if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004320 $as_echo_n "(cached) " >&6
4321else
4322 if test -n "$CC"; then
4323 ac_cv_prog_CC="$CC" # Let the user override the test.
4324else
4325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH
4327do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004334 break 2
4335 fi
4336done
cristy8b350f62009-11-15 23:12:43 +00004337 done
cristy3ed852e2009-09-05 21:47:34 +00004338IFS=$as_save_IFS
4339
4340fi
4341fi
4342CC=$ac_cv_prog_CC
4343if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004345$as_echo "$CC" >&6; }
4346else
cristy8b350f62009-11-15 23:12:43 +00004347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004348$as_echo "no" >&6; }
4349fi
4350
4351
4352 fi
4353fi
4354if test -z "$CC"; then
4355 # Extract the first word of "cc", so it can be a program name with args.
4356set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004358$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004359if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004360 $as_echo_n "(cached) " >&6
4361else
4362 if test -n "$CC"; then
4363 ac_cv_prog_CC="$CC" # Let the user override the test.
4364else
4365 ac_prog_rejected=no
4366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH
4368do
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004371 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4374 ac_prog_rejected=yes
4375 continue
4376 fi
4377 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004379 break 2
4380 fi
4381done
cristy8b350f62009-11-15 23:12:43 +00004382 done
cristy3ed852e2009-09-05 21:47:34 +00004383IFS=$as_save_IFS
4384
4385if test $ac_prog_rejected = yes; then
4386 # We found a bogon in the path, so make sure we never use it.
4387 set dummy $ac_cv_prog_CC
4388 shift
4389 if test $# != 0; then
4390 # We chose a different compiler from the bogus one.
4391 # However, it has the same basename, so the bogon will be chosen
4392 # first if we set CC to just the basename; use the full file name.
4393 shift
4394 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4395 fi
4396fi
4397fi
4398fi
4399CC=$ac_cv_prog_CC
4400if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004402$as_echo "$CC" >&6; }
4403else
cristy8b350f62009-11-15 23:12:43 +00004404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004405$as_echo "no" >&6; }
4406fi
4407
4408
4409fi
4410if test -z "$CC"; then
4411 if test -n "$ac_tool_prefix"; then
4412 for ac_prog in cl.exe
4413 do
4414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4415set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004417$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004418if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004419 $as_echo_n "(cached) " >&6
4420else
4421 if test -n "$CC"; then
4422 ac_cv_prog_CC="$CC" # Let the user override the test.
4423else
4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH
4426do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004433 break 2
4434 fi
4435done
cristy8b350f62009-11-15 23:12:43 +00004436 done
cristy3ed852e2009-09-05 21:47:34 +00004437IFS=$as_save_IFS
4438
4439fi
4440fi
4441CC=$ac_cv_prog_CC
4442if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004444$as_echo "$CC" >&6; }
4445else
cristy8b350f62009-11-15 23:12:43 +00004446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004447$as_echo "no" >&6; }
4448fi
4449
4450
4451 test -n "$CC" && break
4452 done
4453fi
4454if test -z "$CC"; then
4455 ac_ct_CC=$CC
4456 for ac_prog in cl.exe
4457do
4458 # Extract the first word of "$ac_prog", so it can be a program name with args.
4459set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004461$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004462if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004463 $as_echo_n "(cached) " >&6
4464else
4465 if test -n "$ac_ct_CC"; then
4466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4467else
4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469for as_dir in $PATH
4470do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004473 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004477 break 2
4478 fi
4479done
cristy8b350f62009-11-15 23:12:43 +00004480 done
cristy3ed852e2009-09-05 21:47:34 +00004481IFS=$as_save_IFS
4482
4483fi
4484fi
4485ac_ct_CC=$ac_cv_prog_ac_ct_CC
4486if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004488$as_echo "$ac_ct_CC" >&6; }
4489else
cristy8b350f62009-11-15 23:12:43 +00004490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004491$as_echo "no" >&6; }
4492fi
4493
4494
4495 test -n "$ac_ct_CC" && break
4496done
4497
4498 if test "x$ac_ct_CC" = x; then
4499 CC=""
4500 else
4501 case $cross_compiling:$ac_tool_warned in
4502yes:)
cristy8b350f62009-11-15 23:12:43 +00004503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4505ac_tool_warned=yes ;;
4506esac
4507 CC=$ac_ct_CC
4508 fi
4509fi
4510
4511fi
4512
4513
cristy8b350f62009-11-15 23:12:43 +00004514test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004516as_fn_error "no acceptable C compiler found in \$PATH
4517See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004518
4519# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004520$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521set X $ac_compile
4522ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004523for ac_option in --version -v -V -qversion; do
4524 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004525case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4528esac
cristy8b350f62009-11-15 23:12:43 +00004529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530$as_echo "$ac_try_echo"; } >&5
4531 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004532 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004533 if test -s conftest.err; then
4534 sed '10a\
4535... rest of stderr output deleted ...
4536 10q' conftest.err >conftest.er1
4537 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004538 fi
cristycd4c5312009-11-22 01:19:08 +00004539 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4541 test $ac_status = 0; }
4542done
cristy3ed852e2009-09-05 21:47:34 +00004543
cristy8b350f62009-11-15 23:12:43 +00004544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004545/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004546
cristy3ed852e2009-09-05 21:47:34 +00004547int
4548main ()
4549{
4550
4551 ;
4552 return 0;
4553}
4554_ACEOF
4555ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004556ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004557# Try to create an executable without -o first, disregard a.out.
4558# It will help us diagnose broken compilers, and finding out an intuition
4559# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4561$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004562ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4563
4564# The possible output files:
4565ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4566
4567ac_rmfiles=
4568for ac_file in $ac_files
4569do
4570 case $ac_file in
4571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4572 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4573 esac
4574done
4575rm -f $ac_rmfiles
4576
cristy8b350f62009-11-15 23:12:43 +00004577if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004578case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581esac
cristy8b350f62009-11-15 23:12:43 +00004582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4583$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004584 (eval "$ac_link_default") 2>&5
4585 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4587 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004588 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4589# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4590# in a Makefile. We should not override ac_cv_exeext if it was cached,
4591# so that the user can short-circuit this test for compilers unknown to
4592# Autoconf.
4593for ac_file in $ac_files ''
4594do
4595 test -f "$ac_file" || continue
4596 case $ac_file in
4597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4598 ;;
4599 [ab].out )
4600 # We found the default executable, but exeext='' is most
4601 # certainly right.
4602 break;;
4603 *.* )
cristy8b350f62009-11-15 23:12:43 +00004604 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004605 then :; else
4606 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4607 fi
4608 # We set ac_cv_exeext here because the later test for it is not
4609 # safe: cross compilers may not add the suffix if given an `-o'
4610 # argument, so we may need to know it at that point already.
4611 # Even if this section looks crufty: it has the advantage of
4612 # actually working.
4613 break;;
4614 * )
4615 break;;
4616 esac
4617done
4618test "$ac_cv_exeext" = no && ac_cv_exeext=
4619
4620else
4621 ac_file=''
4622fi
cristy8b350f62009-11-15 23:12:43 +00004623if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625$as_echo "no" >&6; }
4626$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004627sed 's/^/| /' conftest.$ac_ext >&5
4628
cristy8b350f62009-11-15 23:12:43 +00004629{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004631{ as_fn_set_status 77
4632as_fn_error "C compiler cannot create executables
4633See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004634else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4636$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004637fi
cristycd4c5312009-11-22 01:19:08 +00004638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4639$as_echo_n "checking for C compiler default output file name... " >&6; }
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4641$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004642ac_exeext=$ac_cv_exeext
4643
cristycd4c5312009-11-22 01:19:08 +00004644rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004645ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004647$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004648if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004649case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652esac
cristy8b350f62009-11-15 23:12:43 +00004653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4654$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004655 (eval "$ac_link") 2>&5
4656 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004659 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4660# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4661# work properly (i.e., refer to `conftest.exe'), while it won't with
4662# `rm'.
4663for ac_file in conftest.exe conftest conftest.*; do
4664 test -f "$ac_file" || continue
4665 case $ac_file in
4666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4667 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4668 break;;
4669 * ) break;;
4670 esac
4671done
4672else
cristy8b350f62009-11-15 23:12:43 +00004673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004675as_fn_error "cannot compute suffix of executables: cannot compile and link
4676See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004677fi
cristycd4c5312009-11-22 01:19:08 +00004678rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004680$as_echo "$ac_cv_exeext" >&6; }
4681
4682rm -f conftest.$ac_ext
4683EXEEXT=$ac_cv_exeext
4684ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686/* end confdefs.h. */
4687#include <stdio.h>
4688int
4689main ()
4690{
4691FILE *f = fopen ("conftest.out", "w");
4692 return ferror (f) || fclose (f) != 0;
4693
4694 ;
4695 return 0;
4696}
4697_ACEOF
4698ac_clean_files="$ac_clean_files conftest.out"
4699# Check that the compiler produces executables we can run. If not, either
4700# the compiler is broken, or we cross compile.
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4702$as_echo_n "checking whether we are cross compiling... " >&6; }
4703if test "$cross_compiling" != yes; then
4704 { { ac_try="$ac_link"
4705case "(($ac_try" in
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4708esac
4709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4710$as_echo "$ac_try_echo"; } >&5
4711 (eval "$ac_link") 2>&5
4712 ac_status=$?
4713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4714 test $ac_status = 0; }
4715 if { ac_try='./conftest$ac_cv_exeext'
4716 { { case "(($ac_try" in
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4719esac
4720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4721$as_echo "$ac_try_echo"; } >&5
4722 (eval "$ac_try") 2>&5
4723 ac_status=$?
4724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4725 test $ac_status = 0; }; }; then
4726 cross_compiling=no
4727 else
4728 if test "$cross_compiling" = maybe; then
4729 cross_compiling=yes
4730 else
4731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4733as_fn_error "cannot run C compiled programs.
4734If you meant to cross compile, use \`--host'.
4735See \`config.log' for more details." "$LINENO" 5; }
4736 fi
4737 fi
4738fi
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4740$as_echo "$cross_compiling" >&6; }
4741
4742rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4743ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004745$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004746if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004747 $as_echo_n "(cached) " >&6
4748else
cristy8b350f62009-11-15 23:12:43 +00004749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004750/* end confdefs.h. */
4751
4752int
4753main ()
4754{
4755
4756 ;
4757 return 0;
4758}
4759_ACEOF
4760rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004761if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004762case "(($ac_try" in
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4765esac
cristy8b350f62009-11-15 23:12:43 +00004766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4767$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004768 (eval "$ac_compile") 2>&5
4769 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4771 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004772 for ac_file in conftest.o conftest.obj conftest.*; do
4773 test -f "$ac_file" || continue;
4774 case $ac_file in
4775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4776 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4777 break;;
4778 esac
4779done
4780else
4781 $as_echo "$as_me: failed program was:" >&5
4782sed 's/^/| /' conftest.$ac_ext >&5
4783
cristy8b350f62009-11-15 23:12:43 +00004784{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004786as_fn_error "cannot compute suffix of object files: cannot compile
4787See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004788fi
cristy3ed852e2009-09-05 21:47:34 +00004789rm -f conftest.$ac_cv_objext conftest.$ac_ext
4790fi
cristy8b350f62009-11-15 23:12:43 +00004791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004792$as_echo "$ac_cv_objext" >&6; }
4793OBJEXT=$ac_cv_objext
4794ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004796$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004797if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004798 $as_echo_n "(cached) " >&6
4799else
cristy8b350f62009-11-15 23:12:43 +00004800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004801/* end confdefs.h. */
4802
4803int
4804main ()
4805{
4806#ifndef __GNUC__
4807 choke me
4808#endif
4809
4810 ;
4811 return 0;
4812}
4813_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004814if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004815 ac_compiler_gnu=yes
4816else
cristy8b350f62009-11-15 23:12:43 +00004817 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004818fi
cristy3ed852e2009-09-05 21:47:34 +00004819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820ac_cv_c_compiler_gnu=$ac_compiler_gnu
4821
4822fi
cristy8b350f62009-11-15 23:12:43 +00004823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004824$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4825if test $ac_compiler_gnu = yes; then
4826 GCC=yes
4827else
4828 GCC=
4829fi
4830ac_test_CFLAGS=${CFLAGS+set}
4831ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004833$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004834if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004835 $as_echo_n "(cached) " >&6
4836else
4837 ac_save_c_werror_flag=$ac_c_werror_flag
4838 ac_c_werror_flag=yes
4839 ac_cv_prog_cc_g=no
4840 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004842/* end confdefs.h. */
4843
4844int
4845main ()
4846{
4847
4848 ;
4849 return 0;
4850}
4851_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004852if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004853 ac_cv_prog_cc_g=yes
4854else
cristy8b350f62009-11-15 23:12:43 +00004855 CFLAGS=""
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004857/* end confdefs.h. */
4858
4859int
4860main ()
4861{
4862
4863 ;
4864 return 0;
4865}
4866_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004867if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004868
cristy8b350f62009-11-15 23:12:43 +00004869else
4870 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004871 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004873/* end confdefs.h. */
4874
4875int
4876main ()
4877{
4878
4879 ;
4880 return 0;
4881}
4882_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004883if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004884 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004885fi
cristy3ed852e2009-09-05 21:47:34 +00004886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887fi
cristy3ed852e2009-09-05 21:47:34 +00004888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889fi
cristy3ed852e2009-09-05 21:47:34 +00004890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 ac_c_werror_flag=$ac_save_c_werror_flag
4892fi
cristy8b350f62009-11-15 23:12:43 +00004893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004894$as_echo "$ac_cv_prog_cc_g" >&6; }
4895if test "$ac_test_CFLAGS" = set; then
4896 CFLAGS=$ac_save_CFLAGS
4897elif test $ac_cv_prog_cc_g = yes; then
4898 if test "$GCC" = yes; then
4899 CFLAGS="-g -O2"
4900 else
4901 CFLAGS="-g"
4902 fi
4903else
4904 if test "$GCC" = yes; then
4905 CFLAGS="-O2"
4906 else
4907 CFLAGS=
4908 fi
4909fi
cristy8b350f62009-11-15 23:12:43 +00004910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004911$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004912if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004913 $as_echo_n "(cached) " >&6
4914else
4915 ac_cv_prog_cc_c89=no
4916ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004918/* end confdefs.h. */
4919#include <stdarg.h>
4920#include <stdio.h>
4921#include <sys/types.h>
4922#include <sys/stat.h>
4923/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4924struct buf { int x; };
4925FILE * (*rcsopen) (struct buf *, struct stat *, int);
4926static char *e (p, i)
4927 char **p;
4928 int i;
4929{
4930 return p[i];
4931}
4932static char *f (char * (*g) (char **, int), char **p, ...)
4933{
4934 char *s;
4935 va_list v;
4936 va_start (v,p);
4937 s = g (p, va_arg (v,int));
4938 va_end (v);
4939 return s;
4940}
4941
4942/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4943 function prototypes and stuff, but not '\xHH' hex character constants.
4944 These don't provoke an error unfortunately, instead are silently treated
4945 as 'x'. The following induces an error, until -std is added to get
4946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4947 array size at least. It's necessary to write '\x00'==0 to get something
4948 that's true only with -std. */
4949int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4950
4951/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4952 inside strings and character constants. */
4953#define FOO(x) 'x'
4954int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4955
4956int test (int i, double x);
4957struct s1 {int (*f) (int a);};
4958struct s2 {int (*f) (double a);};
4959int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4960int argc;
4961char **argv;
4962int
4963main ()
4964{
4965return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4966 ;
4967 return 0;
4968}
4969_ACEOF
4970for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4972do
4973 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004974 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004975 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004976fi
cristy3ed852e2009-09-05 21:47:34 +00004977rm -f core conftest.err conftest.$ac_objext
4978 test "x$ac_cv_prog_cc_c89" != "xno" && break
4979done
4980rm -f conftest.$ac_ext
4981CC=$ac_save_CC
4982
4983fi
4984# AC_CACHE_VAL
4985case "x$ac_cv_prog_cc_c89" in
4986 x)
cristy8b350f62009-11-15 23:12:43 +00004987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004988$as_echo "none needed" >&6; } ;;
4989 xno)
cristy8b350f62009-11-15 23:12:43 +00004990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004991$as_echo "unsupported" >&6; } ;;
4992 *)
4993 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004995$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4996esac
cristy8b350f62009-11-15 23:12:43 +00004997if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004998
cristy8b350f62009-11-15 23:12:43 +00004999fi
cristy3ed852e2009-09-05 21:47:34 +00005000
5001ac_ext=c
5002ac_cpp='$CPP $CPPFLAGS'
5003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005006
cristya0b81c32010-01-22 02:54:33 +00005007depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00005008
cristya0b81c32010-01-22 02:54:33 +00005009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5010$as_echo_n "checking dependency style of $depcc... " >&6; }
5011if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5012 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00005013else
cristya0b81c32010-01-22 02:54:33 +00005014 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5015 # We make a subdir and do the tests there. Otherwise we can end up
5016 # making bogus files that we don't know about and never remove. For
5017 # instance it was reported that on HP-UX the gcc test will end up
5018 # making a dummy file named `D' -- because `-MD' means `put the output
5019 # in D'.
5020 mkdir conftest.dir
5021 # Copy depcomp to subdir because otherwise we won't find it if we're
5022 # using a relative directory.
5023 cp "$am_depcomp" conftest.dir
5024 cd conftest.dir
5025 # We will build objects and dependencies in a subdirectory because
5026 # it helps to detect inapplicable dependency modes. For instance
5027 # both Tru64's cc and ICC support -MD to output dependencies as a
5028 # side effect of compilation, but ICC will put the dependencies in
5029 # the current directory while Tru64 will put them in the object
5030 # directory.
5031 mkdir sub
5032
5033 am_cv_CC_dependencies_compiler_type=none
5034 if test "$am_compiler_list" = ""; then
5035 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5036 fi
5037 am__universal=false
5038 case " $depcc " in #(
5039 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5040 esac
5041
5042 for depmode in $am_compiler_list; do
5043 # Setup a source with many dependencies, because some compilers
5044 # like to wrap large dependency lists on column 80 (with \), and
5045 # we should not choose a depcomp mode which is confused by this.
5046 #
5047 # We need to recreate these files for each test, as the compiler may
5048 # overwrite some of them when testing with obscure command lines.
5049 # This happens at least with the AIX C compiler.
5050 : > sub/conftest.c
5051 for i in 1 2 3 4 5 6; do
5052 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5053 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5054 # Solaris 8's {/usr,}/bin/sh.
5055 touch sub/conftst$i.h
5056 done
5057 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5058
5059 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5060 # mode. It turns out that the SunPro C++ compiler does not properly
5061 # handle `-M -o', and we need to detect this. Also, some Intel
5062 # versions had trouble with output in subdirs
5063 am__obj=sub/conftest.${OBJEXT-o}
5064 am__minus_obj="-o $am__obj"
5065 case $depmode in
5066 gcc)
5067 # This depmode causes a compiler race in universal mode.
5068 test "$am__universal" = false || continue
5069 ;;
5070 nosideeffect)
5071 # after this tag, mechanisms are not by side-effect, so they'll
5072 # only be used when explicitly requested
5073 if test "x$enable_dependency_tracking" = xyes; then
5074 continue
5075 else
5076 break
5077 fi
5078 ;;
5079 msvisualcpp | msvcmsys)
5080 # This compiler won't grok `-c -o', but also, the minuso test has
5081 # not run yet. These depmodes are late enough in the game, and
5082 # so weak that their functioning should not be impacted.
5083 am__obj=conftest.${OBJEXT-o}
5084 am__minus_obj=
5085 ;;
5086 none) break ;;
5087 esac
5088 if depmode=$depmode \
5089 source=sub/conftest.c object=$am__obj \
5090 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5091 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5092 >/dev/null 2>conftest.err &&
5093 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5094 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5095 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5096 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5097 # icc doesn't choke on unknown options, it will just issue warnings
5098 # or remarks (even with -Werror). So we grep stderr for any message
5099 # that says an option was ignored or not supported.
5100 # When given -MP, icc 7.0 and 7.1 complain thusly:
5101 # icc: Command line warning: ignoring option '-M'; no argument required
5102 # The diagnosis changed in icc 8.0:
5103 # icc: Command line remark: option '-MP' not supported
5104 if (grep 'ignoring option' conftest.err ||
5105 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5106 am_cv_CC_dependencies_compiler_type=$depmode
5107 break
5108 fi
5109 fi
5110 done
5111
5112 cd ..
5113 rm -rf conftest.dir
5114else
5115 am_cv_CC_dependencies_compiler_type=none
5116fi
5117
5118fi
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5120$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5121CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5122
5123 if
5124 test "x$enable_dependency_tracking" != xno \
5125 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5126 am__fastdepCC_TRUE=
5127 am__fastdepCC_FALSE='#'
5128else
5129 am__fastdepCC_TRUE='#'
5130 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005131fi
5132
5133
5134
cristya0b81c32010-01-22 02:54:33 +00005135ac_ext=c
5136ac_cpp='$CPP $CPPFLAGS'
5137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139ac_compiler_gnu=$ac_cv_c_compiler_gnu
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5141$as_echo_n "checking how to run the C preprocessor... " >&6; }
5142# On Suns, sometimes $CPP names a directory.
5143if test -n "$CPP" && test -d "$CPP"; then
5144 CPP=
5145fi
5146if test -z "$CPP"; then
5147 if test "${ac_cv_prog_CPP+set}" = set; then :
5148 $as_echo_n "(cached) " >&6
5149else
5150 # Double quotes because CPP needs to be expanded
5151 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5152 do
5153 ac_preproc_ok=false
5154for ac_c_preproc_warn_flag in '' yes
5155do
5156 # Use a header file that comes with gcc, so configuring glibc
5157 # with a fresh cross-compiler works.
5158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5159 # <limits.h> exists even on freestanding compilers.
5160 # On the NeXT, cc -E runs the code through the compiler's parser,
5161 # not just through cpp. "Syntax error" is here to catch this case.
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163/* end confdefs.h. */
5164#ifdef __STDC__
5165# include <limits.h>
5166#else
5167# include <assert.h>
5168#endif
5169 Syntax error
5170_ACEOF
5171if ac_fn_c_try_cpp "$LINENO"; then :
5172
5173else
5174 # Broken: fails on valid input.
5175continue
5176fi
5177rm -f conftest.err conftest.$ac_ext
5178
5179 # OK, works on sane cases. Now check whether nonexistent headers
5180 # can be detected and how.
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182/* end confdefs.h. */
5183#include <ac_nonexistent.h>
5184_ACEOF
5185if ac_fn_c_try_cpp "$LINENO"; then :
5186 # Broken: success on invalid input.
5187continue
5188else
5189 # Passes both tests.
5190ac_preproc_ok=:
5191break
5192fi
5193rm -f conftest.err conftest.$ac_ext
5194
5195done
5196# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5197rm -f conftest.err conftest.$ac_ext
5198if $ac_preproc_ok; then :
5199 break
5200fi
5201
5202 done
5203 ac_cv_prog_CPP=$CPP
5204
5205fi
5206 CPP=$ac_cv_prog_CPP
5207else
5208 ac_cv_prog_CPP=$CPP
5209fi
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5211$as_echo "$CPP" >&6; }
5212ac_preproc_ok=false
5213for ac_c_preproc_warn_flag in '' yes
5214do
5215 # Use a header file that comes with gcc, so configuring glibc
5216 # with a fresh cross-compiler works.
5217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5218 # <limits.h> exists even on freestanding compilers.
5219 # On the NeXT, cc -E runs the code through the compiler's parser,
5220 # not just through cpp. "Syntax error" is here to catch this case.
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h. */
5223#ifdef __STDC__
5224# include <limits.h>
5225#else
5226# include <assert.h>
5227#endif
5228 Syntax error
5229_ACEOF
5230if ac_fn_c_try_cpp "$LINENO"; then :
5231
5232else
5233 # Broken: fails on valid input.
5234continue
5235fi
5236rm -f conftest.err conftest.$ac_ext
5237
5238 # OK, works on sane cases. Now check whether nonexistent headers
5239 # can be detected and how.
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241/* end confdefs.h. */
5242#include <ac_nonexistent.h>
5243_ACEOF
5244if ac_fn_c_try_cpp "$LINENO"; then :
5245 # Broken: success on invalid input.
5246continue
5247else
5248 # Passes both tests.
5249ac_preproc_ok=:
5250break
5251fi
5252rm -f conftest.err conftest.$ac_ext
5253
5254done
5255# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5256rm -f conftest.err conftest.$ac_ext
5257if $ac_preproc_ok; then :
5258
5259else
5260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5262as_fn_error "C preprocessor \"$CPP\" fails sanity check
5263See \`config.log' for more details." "$LINENO" 5; }
5264fi
5265
5266ac_ext=c
5267ac_cpp='$CPP $CPPFLAGS'
5268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5270ac_compiler_gnu=$ac_cv_c_compiler_gnu
5271
5272
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5274$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5275if test "${ac_cv_path_GREP+set}" = set; then :
5276 $as_echo_n "(cached) " >&6
5277else
5278 if test -z "$GREP"; then
5279 ac_path_GREP_found=false
5280 # Loop through the user's path and test for each of PROGNAME-LIST
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5283do
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_prog in grep ggrep; do
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5289 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5290# Check for GNU ac_path_GREP and select it if it is found.
5291 # Check for GNU $ac_path_GREP
5292case `"$ac_path_GREP" --version 2>&1` in
5293*GNU*)
5294 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5295*)
5296 ac_count=0
5297 $as_echo_n 0123456789 >"conftest.in"
5298 while :
5299 do
5300 cat "conftest.in" "conftest.in" >"conftest.tmp"
5301 mv "conftest.tmp" "conftest.in"
5302 cp "conftest.in" "conftest.nl"
5303 $as_echo 'GREP' >> "conftest.nl"
5304 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5306 as_fn_arith $ac_count + 1 && ac_count=$as_val
5307 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5308 # Best one so far, save it but keep looking for a better one
5309 ac_cv_path_GREP="$ac_path_GREP"
5310 ac_path_GREP_max=$ac_count
5311 fi
5312 # 10*(2^10) chars as input seems more than enough
5313 test $ac_count -gt 10 && break
5314 done
5315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5316esac
5317
5318 $ac_path_GREP_found && break 3
5319 done
5320 done
5321 done
5322IFS=$as_save_IFS
5323 if test -z "$ac_cv_path_GREP"; then
5324 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5325 fi
5326else
5327 ac_cv_path_GREP=$GREP
5328fi
5329
5330fi
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5332$as_echo "$ac_cv_path_GREP" >&6; }
5333 GREP="$ac_cv_path_GREP"
5334
5335
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5337$as_echo_n "checking for egrep... " >&6; }
5338if test "${ac_cv_path_EGREP+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5340else
5341 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5342 then ac_cv_path_EGREP="$GREP -E"
5343 else
5344 if test -z "$EGREP"; then
5345 ac_path_EGREP_found=false
5346 # Loop through the user's path and test for each of PROGNAME-LIST
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5349do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_prog in egrep; do
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5355 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5356# Check for GNU ac_path_EGREP and select it if it is found.
5357 # Check for GNU $ac_path_EGREP
5358case `"$ac_path_EGREP" --version 2>&1` in
5359*GNU*)
5360 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5361*)
5362 ac_count=0
5363 $as_echo_n 0123456789 >"conftest.in"
5364 while :
5365 do
5366 cat "conftest.in" "conftest.in" >"conftest.tmp"
5367 mv "conftest.tmp" "conftest.in"
5368 cp "conftest.in" "conftest.nl"
5369 $as_echo 'EGREP' >> "conftest.nl"
5370 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5372 as_fn_arith $ac_count + 1 && ac_count=$as_val
5373 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5374 # Best one so far, save it but keep looking for a better one
5375 ac_cv_path_EGREP="$ac_path_EGREP"
5376 ac_path_EGREP_max=$ac_count
5377 fi
5378 # 10*(2^10) chars as input seems more than enough
5379 test $ac_count -gt 10 && break
5380 done
5381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5382esac
5383
5384 $ac_path_EGREP_found && break 3
5385 done
5386 done
5387 done
5388IFS=$as_save_IFS
5389 if test -z "$ac_cv_path_EGREP"; then
5390 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5391 fi
5392else
5393 ac_cv_path_EGREP=$EGREP
5394fi
5395
5396 fi
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5399$as_echo "$ac_cv_path_EGREP" >&6; }
5400 EGREP="$ac_cv_path_EGREP"
5401
5402
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5404$as_echo_n "checking for ANSI C header files... " >&6; }
5405if test "${ac_cv_header_stdc+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5407else
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409/* end confdefs.h. */
5410#include <stdlib.h>
5411#include <stdarg.h>
5412#include <string.h>
5413#include <float.h>
5414
5415int
5416main ()
5417{
5418
5419 ;
5420 return 0;
5421}
5422_ACEOF
5423if ac_fn_c_try_compile "$LINENO"; then :
5424 ac_cv_header_stdc=yes
5425else
5426 ac_cv_header_stdc=no
5427fi
5428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429
5430if test $ac_cv_header_stdc = yes; then
5431 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h. */
5434#include <string.h>
5435
5436_ACEOF
5437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5438 $EGREP "memchr" >/dev/null 2>&1; then :
5439
5440else
5441 ac_cv_header_stdc=no
5442fi
5443rm -f conftest*
5444
5445fi
5446
5447if test $ac_cv_header_stdc = yes; then
5448 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450/* end confdefs.h. */
5451#include <stdlib.h>
5452
5453_ACEOF
5454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5455 $EGREP "free" >/dev/null 2>&1; then :
5456
5457else
5458 ac_cv_header_stdc=no
5459fi
5460rm -f conftest*
5461
5462fi
5463
5464if test $ac_cv_header_stdc = yes; then
5465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5466 if test "$cross_compiling" = yes; then :
5467 :
5468else
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h. */
5471#include <ctype.h>
5472#include <stdlib.h>
5473#if ((' ' & 0x0FF) == 0x020)
5474# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5475# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5476#else
5477# define ISLOWER(c) \
5478 (('a' <= (c) && (c) <= 'i') \
5479 || ('j' <= (c) && (c) <= 'r') \
5480 || ('s' <= (c) && (c) <= 'z'))
5481# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5482#endif
5483
5484#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5485int
5486main ()
5487{
5488 int i;
5489 for (i = 0; i < 256; i++)
5490 if (XOR (islower (i), ISLOWER (i))
5491 || toupper (i) != TOUPPER (i))
5492 return 2;
5493 return 0;
5494}
5495_ACEOF
5496if ac_fn_c_try_run "$LINENO"; then :
5497
5498else
5499 ac_cv_header_stdc=no
5500fi
5501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5502 conftest.$ac_objext conftest.beam conftest.$ac_ext
5503fi
5504
5505fi
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5508$as_echo "$ac_cv_header_stdc" >&6; }
5509if test $ac_cv_header_stdc = yes; then
5510
5511$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5512
5513fi
5514
5515# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5516for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5517 inttypes.h stdint.h unistd.h
5518do :
5519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5520ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5521"
5522eval as_val=\$$as_ac_Header
5523 if test "x$as_val" = x""yes; then :
5524 cat >>confdefs.h <<_ACEOF
5525#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5526_ACEOF
5527
5528fi
5529
5530done
5531
5532
5533
5534 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5535if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5536 MINIX=yes
5537else
5538 MINIX=
5539fi
5540
5541
5542 if test "$MINIX" = yes; then
5543
5544$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5545
5546
5547$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5548
5549
5550$as_echo "#define _MINIX 1" >>confdefs.h
5551
5552 fi
5553
5554
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5556$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5557if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559else
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561/* end confdefs.h. */
5562
5563# define __EXTENSIONS__ 1
5564 $ac_includes_default
5565int
5566main ()
5567{
5568
5569 ;
5570 return 0;
5571}
5572_ACEOF
5573if ac_fn_c_try_compile "$LINENO"; then :
5574 ac_cv_safe_to_define___extensions__=yes
5575else
5576 ac_cv_safe_to_define___extensions__=no
5577fi
5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579fi
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5581$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5582 test $ac_cv_safe_to_define___extensions__ = yes &&
5583 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5584
5585 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5586
5587 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5588
5589 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5590
5591 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5592
5593
5594
5595# Check for programs
5596ac_ext=c
5597ac_cpp='$CPP $CPPFLAGS'
5598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600ac_compiler_gnu=$ac_cv_c_compiler_gnu
5601if test -n "$ac_tool_prefix"; then
5602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5603set dummy ${ac_tool_prefix}gcc; ac_word=$2
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605$as_echo_n "checking for $ac_word... " >&6; }
5606if test "${ac_cv_prog_CC+set}" = set; then :
5607 $as_echo_n "(cached) " >&6
5608else
5609 if test -n "$CC"; then
5610 ac_cv_prog_CC="$CC" # Let the user override the test.
5611else
5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623done
5624 done
5625IFS=$as_save_IFS
5626
5627fi
5628fi
5629CC=$ac_cv_prog_CC
5630if test -n "$CC"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5632$as_echo "$CC" >&6; }
5633else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635$as_echo "no" >&6; }
5636fi
5637
5638
5639fi
5640if test -z "$ac_cv_prog_CC"; then
5641 ac_ct_CC=$CC
5642 # Extract the first word of "gcc", so it can be a program name with args.
5643set dummy gcc; ac_word=$2
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645$as_echo_n "checking for $ac_word... " >&6; }
5646if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5647 $as_echo_n "(cached) " >&6
5648else
5649 if test -n "$ac_ct_CC"; then
5650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5651else
5652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH
5654do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5659 ac_cv_prog_ac_ct_CC="gcc"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5662 fi
5663done
5664 done
5665IFS=$as_save_IFS
5666
5667fi
5668fi
5669ac_ct_CC=$ac_cv_prog_ac_ct_CC
5670if test -n "$ac_ct_CC"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5672$as_echo "$ac_ct_CC" >&6; }
5673else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675$as_echo "no" >&6; }
5676fi
5677
5678 if test "x$ac_ct_CC" = x; then
5679 CC=""
5680 else
5681 case $cross_compiling:$ac_tool_warned in
5682yes:)
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5685ac_tool_warned=yes ;;
5686esac
5687 CC=$ac_ct_CC
5688 fi
5689else
5690 CC="$ac_cv_prog_CC"
5691fi
5692
5693if test -z "$CC"; then
5694 if test -n "$ac_tool_prefix"; then
5695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5696set dummy ${ac_tool_prefix}cc; ac_word=$2
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698$as_echo_n "checking for $ac_word... " >&6; }
5699if test "${ac_cv_prog_CC+set}" = set; then :
5700 $as_echo_n "(cached) " >&6
5701else
5702 if test -n "$CC"; then
5703 ac_cv_prog_CC="$CC" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5712 ac_cv_prog_CC="${ac_tool_prefix}cc"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716done
5717 done
5718IFS=$as_save_IFS
5719
5720fi
5721fi
5722CC=$ac_cv_prog_CC
5723if test -n "$CC"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5725$as_echo "$CC" >&6; }
5726else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728$as_echo "no" >&6; }
5729fi
5730
5731
5732 fi
5733fi
5734if test -z "$CC"; then
5735 # Extract the first word of "cc", so it can be a program name with args.
5736set dummy cc; ac_word=$2
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738$as_echo_n "checking for $ac_word... " >&6; }
5739if test "${ac_cv_prog_CC+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741else
5742 if test -n "$CC"; then
5743 ac_cv_prog_CC="$CC" # Let the user override the test.
5744else
5745 ac_prog_rejected=no
5746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747for as_dir in $PATH
5748do
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5754 ac_prog_rejected=yes
5755 continue
5756 fi
5757 ac_cv_prog_CC="cc"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761done
5762 done
5763IFS=$as_save_IFS
5764
5765if test $ac_prog_rejected = yes; then
5766 # We found a bogon in the path, so make sure we never use it.
5767 set dummy $ac_cv_prog_CC
5768 shift
5769 if test $# != 0; then
5770 # We chose a different compiler from the bogus one.
5771 # However, it has the same basename, so the bogon will be chosen
5772 # first if we set CC to just the basename; use the full file name.
5773 shift
5774 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5775 fi
5776fi
5777fi
5778fi
5779CC=$ac_cv_prog_CC
5780if test -n "$CC"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5782$as_echo "$CC" >&6; }
5783else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; }
5786fi
5787
5788
5789fi
5790if test -z "$CC"; then
5791 if test -n "$ac_tool_prefix"; then
5792 for ac_prog in cl.exe
5793 do
5794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5795set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797$as_echo_n "checking for $ac_word... " >&6; }
5798if test "${ac_cv_prog_CC+set}" = set; then :
5799 $as_echo_n "(cached) " >&6
5800else
5801 if test -n "$CC"; then
5802 ac_cv_prog_CC="$CC" # Let the user override the test.
5803else
5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815done
5816 done
5817IFS=$as_save_IFS
5818
5819fi
5820fi
5821CC=$ac_cv_prog_CC
5822if test -n "$CC"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5824$as_echo "$CC" >&6; }
5825else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827$as_echo "no" >&6; }
5828fi
5829
5830
5831 test -n "$CC" && break
5832 done
5833fi
5834if test -z "$CC"; then
5835 ac_ct_CC=$CC
5836 for ac_prog in cl.exe
5837do
5838 # Extract the first word of "$ac_prog", so it can be a program name with args.
5839set dummy $ac_prog; ac_word=$2
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841$as_echo_n "checking for $ac_word... " >&6; }
5842if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5844else
5845 if test -n "$ac_ct_CC"; then
5846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5847else
5848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849for as_dir in $PATH
5850do
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5855 ac_cv_prog_ac_ct_CC="$ac_prog"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 break 2
5858 fi
5859done
5860 done
5861IFS=$as_save_IFS
5862
5863fi
5864fi
5865ac_ct_CC=$ac_cv_prog_ac_ct_CC
5866if test -n "$ac_ct_CC"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5868$as_echo "$ac_ct_CC" >&6; }
5869else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871$as_echo "no" >&6; }
5872fi
5873
5874
5875 test -n "$ac_ct_CC" && break
5876done
5877
5878 if test "x$ac_ct_CC" = x; then
5879 CC=""
5880 else
5881 case $cross_compiling:$ac_tool_warned in
5882yes:)
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5885ac_tool_warned=yes ;;
5886esac
5887 CC=$ac_ct_CC
5888 fi
5889fi
5890
5891fi
5892
5893
5894test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5896as_fn_error "no acceptable C compiler found in \$PATH
5897See \`config.log' for more details." "$LINENO" 5; }
5898
5899# Provide some information about the compiler.
5900$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5901set X $ac_compile
5902ac_compiler=$2
5903for ac_option in --version -v -V -qversion; do
5904 { { ac_try="$ac_compiler $ac_option >&5"
5905case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908esac
5909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5910$as_echo "$ac_try_echo"; } >&5
5911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5912 ac_status=$?
5913 if test -s conftest.err; then
5914 sed '10a\
5915... rest of stderr output deleted ...
5916 10q' conftest.err >conftest.er1
5917 cat conftest.er1 >&5
5918 fi
5919 rm -f conftest.er1 conftest.err
5920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921 test $ac_status = 0; }
5922done
5923
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5925$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5926if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5927 $as_echo_n "(cached) " >&6
5928else
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h. */
5931
5932int
5933main ()
5934{
5935#ifndef __GNUC__
5936 choke me
5937#endif
5938
5939 ;
5940 return 0;
5941}
5942_ACEOF
5943if ac_fn_c_try_compile "$LINENO"; then :
5944 ac_compiler_gnu=yes
5945else
5946 ac_compiler_gnu=no
5947fi
5948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949ac_cv_c_compiler_gnu=$ac_compiler_gnu
5950
5951fi
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5953$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5954if test $ac_compiler_gnu = yes; then
5955 GCC=yes
5956else
5957 GCC=
5958fi
5959ac_test_CFLAGS=${CFLAGS+set}
5960ac_save_CFLAGS=$CFLAGS
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5962$as_echo_n "checking whether $CC accepts -g... " >&6; }
5963if test "${ac_cv_prog_cc_g+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965else
5966 ac_save_c_werror_flag=$ac_c_werror_flag
5967 ac_c_werror_flag=yes
5968 ac_cv_prog_cc_g=no
5969 CFLAGS="-g"
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h. */
5972
5973int
5974main ()
5975{
5976
5977 ;
5978 return 0;
5979}
5980_ACEOF
5981if ac_fn_c_try_compile "$LINENO"; then :
5982 ac_cv_prog_cc_g=yes
5983else
5984 CFLAGS=""
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986/* end confdefs.h. */
5987
5988int
5989main ()
5990{
5991
5992 ;
5993 return 0;
5994}
5995_ACEOF
5996if ac_fn_c_try_compile "$LINENO"; then :
5997
5998else
5999 ac_c_werror_flag=$ac_save_c_werror_flag
6000 CFLAGS="-g"
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002/* end confdefs.h. */
6003
6004int
6005main ()
6006{
6007
6008 ;
6009 return 0;
6010}
6011_ACEOF
6012if ac_fn_c_try_compile "$LINENO"; then :
6013 ac_cv_prog_cc_g=yes
6014fi
6015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016fi
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018fi
6019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 ac_c_werror_flag=$ac_save_c_werror_flag
6021fi
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6023$as_echo "$ac_cv_prog_cc_g" >&6; }
6024if test "$ac_test_CFLAGS" = set; then
6025 CFLAGS=$ac_save_CFLAGS
6026elif test $ac_cv_prog_cc_g = yes; then
6027 if test "$GCC" = yes; then
6028 CFLAGS="-g -O2"
6029 else
6030 CFLAGS="-g"
6031 fi
6032else
6033 if test "$GCC" = yes; then
6034 CFLAGS="-O2"
6035 else
6036 CFLAGS=
6037 fi
6038fi
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6040$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6041if test "${ac_cv_prog_cc_c89+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6043else
6044 ac_cv_prog_cc_c89=no
6045ac_save_CC=$CC
6046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047/* end confdefs.h. */
6048#include <stdarg.h>
6049#include <stdio.h>
6050#include <sys/types.h>
6051#include <sys/stat.h>
6052/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6053struct buf { int x; };
6054FILE * (*rcsopen) (struct buf *, struct stat *, int);
6055static char *e (p, i)
6056 char **p;
6057 int i;
6058{
6059 return p[i];
6060}
6061static char *f (char * (*g) (char **, int), char **p, ...)
6062{
6063 char *s;
6064 va_list v;
6065 va_start (v,p);
6066 s = g (p, va_arg (v,int));
6067 va_end (v);
6068 return s;
6069}
6070
6071/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6072 function prototypes and stuff, but not '\xHH' hex character constants.
6073 These don't provoke an error unfortunately, instead are silently treated
6074 as 'x'. The following induces an error, until -std is added to get
6075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6076 array size at least. It's necessary to write '\x00'==0 to get something
6077 that's true only with -std. */
6078int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6079
6080/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6081 inside strings and character constants. */
6082#define FOO(x) 'x'
6083int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6084
6085int test (int i, double x);
6086struct s1 {int (*f) (int a);};
6087struct s2 {int (*f) (double a);};
6088int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6089int argc;
6090char **argv;
6091int
6092main ()
6093{
6094return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6095 ;
6096 return 0;
6097}
6098_ACEOF
6099for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6100 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6101do
6102 CC="$ac_save_CC $ac_arg"
6103 if ac_fn_c_try_compile "$LINENO"; then :
6104 ac_cv_prog_cc_c89=$ac_arg
6105fi
6106rm -f core conftest.err conftest.$ac_objext
6107 test "x$ac_cv_prog_cc_c89" != "xno" && break
6108done
6109rm -f conftest.$ac_ext
6110CC=$ac_save_CC
6111
6112fi
6113# AC_CACHE_VAL
6114case "x$ac_cv_prog_cc_c89" in
6115 x)
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6117$as_echo "none needed" >&6; } ;;
6118 xno)
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6120$as_echo "unsupported" >&6; } ;;
6121 *)
6122 CC="$CC $ac_cv_prog_cc_c89"
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6124$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6125esac
6126if test "x$ac_cv_prog_cc_c89" != xno; then :
6127
6128fi
6129
6130ac_ext=c
6131ac_cpp='$CPP $CPPFLAGS'
6132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6134ac_compiler_gnu=$ac_cv_c_compiler_gnu
6135
cristy3ed852e2009-09-05 21:47:34 +00006136depcc="$CC" am_compiler_list=
6137
cristy8b350f62009-11-15 23:12:43 +00006138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006139$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006140if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006141 $as_echo_n "(cached) " >&6
6142else
6143 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6144 # We make a subdir and do the tests there. Otherwise we can end up
6145 # making bogus files that we don't know about and never remove. For
6146 # instance it was reported that on HP-UX the gcc test will end up
6147 # making a dummy file named `D' -- because `-MD' means `put the output
6148 # in D'.
6149 mkdir conftest.dir
6150 # Copy depcomp to subdir because otherwise we won't find it if we're
6151 # using a relative directory.
6152 cp "$am_depcomp" conftest.dir
6153 cd conftest.dir
6154 # We will build objects and dependencies in a subdirectory because
6155 # it helps to detect inapplicable dependency modes. For instance
6156 # both Tru64's cc and ICC support -MD to output dependencies as a
6157 # side effect of compilation, but ICC will put the dependencies in
6158 # the current directory while Tru64 will put them in the object
6159 # directory.
6160 mkdir sub
6161
6162 am_cv_CC_dependencies_compiler_type=none
6163 if test "$am_compiler_list" = ""; then
6164 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6165 fi
6166 am__universal=false
6167 case " $depcc " in #(
6168 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6169 esac
6170
6171 for depmode in $am_compiler_list; do
6172 # Setup a source with many dependencies, because some compilers
6173 # like to wrap large dependency lists on column 80 (with \), and
6174 # we should not choose a depcomp mode which is confused by this.
6175 #
6176 # We need to recreate these files for each test, as the compiler may
6177 # overwrite some of them when testing with obscure command lines.
6178 # This happens at least with the AIX C compiler.
6179 : > sub/conftest.c
6180 for i in 1 2 3 4 5 6; do
6181 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6182 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6183 # Solaris 8's {/usr,}/bin/sh.
6184 touch sub/conftst$i.h
6185 done
6186 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6187
6188 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6189 # mode. It turns out that the SunPro C++ compiler does not properly
6190 # handle `-M -o', and we need to detect this. Also, some Intel
6191 # versions had trouble with output in subdirs
6192 am__obj=sub/conftest.${OBJEXT-o}
6193 am__minus_obj="-o $am__obj"
6194 case $depmode in
6195 gcc)
6196 # This depmode causes a compiler race in universal mode.
6197 test "$am__universal" = false || continue
6198 ;;
6199 nosideeffect)
6200 # after this tag, mechanisms are not by side-effect, so they'll
6201 # only be used when explicitly requested
6202 if test "x$enable_dependency_tracking" = xyes; then
6203 continue
6204 else
6205 break
6206 fi
6207 ;;
6208 msvisualcpp | msvcmsys)
6209 # This compiler won't grok `-c -o', but also, the minuso test has
6210 # not run yet. These depmodes are late enough in the game, and
6211 # so weak that their functioning should not be impacted.
6212 am__obj=conftest.${OBJEXT-o}
6213 am__minus_obj=
6214 ;;
6215 none) break ;;
6216 esac
6217 if depmode=$depmode \
6218 source=sub/conftest.c object=$am__obj \
6219 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6220 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6221 >/dev/null 2>conftest.err &&
6222 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6223 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6224 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6225 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6226 # icc doesn't choke on unknown options, it will just issue warnings
6227 # or remarks (even with -Werror). So we grep stderr for any message
6228 # that says an option was ignored or not supported.
6229 # When given -MP, icc 7.0 and 7.1 complain thusly:
6230 # icc: Command line warning: ignoring option '-M'; no argument required
6231 # The diagnosis changed in icc 8.0:
6232 # icc: Command line remark: option '-MP' not supported
6233 if (grep 'ignoring option' conftest.err ||
6234 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6235 am_cv_CC_dependencies_compiler_type=$depmode
6236 break
6237 fi
6238 fi
6239 done
6240
6241 cd ..
6242 rm -rf conftest.dir
6243else
6244 am_cv_CC_dependencies_compiler_type=none
6245fi
6246
6247fi
cristy8b350f62009-11-15 23:12:43 +00006248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006249$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6250CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6251
6252 if
6253 test "x$enable_dependency_tracking" != xno \
6254 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6255 am__fastdepCC_TRUE=
6256 am__fastdepCC_FALSE='#'
6257else
6258 am__fastdepCC_TRUE='#'
6259 am__fastdepCC_FALSE=
6260fi
6261
6262
cristy95646052009-11-28 23:05:30 +00006263ac_ext=cpp
6264ac_cpp='$CXXCPP $CPPFLAGS'
6265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6268if test -z "$CXX"; then
6269 if test -n "$CCC"; then
6270 CXX=$CCC
6271 else
6272 if test -n "$ac_tool_prefix"; then
6273 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6274 do
6275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6276set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278$as_echo_n "checking for $ac_word... " >&6; }
6279if test "${ac_cv_prog_CXX+set}" = set; then :
6280 $as_echo_n "(cached) " >&6
6281else
6282 if test -n "$CXX"; then
6283 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6284else
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296done
6297 done
6298IFS=$as_save_IFS
6299
6300fi
6301fi
6302CXX=$ac_cv_prog_CXX
6303if test -n "$CXX"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6305$as_echo "$CXX" >&6; }
6306else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308$as_echo "no" >&6; }
6309fi
6310
6311
6312 test -n "$CXX" && break
6313 done
6314fi
6315if test -z "$CXX"; then
6316 ac_ct_CXX=$CXX
6317 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6318do
6319 # Extract the first word of "$ac_prog", so it can be a program name with args.
6320set dummy $ac_prog; ac_word=$2
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322$as_echo_n "checking for $ac_word... " >&6; }
6323if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6324 $as_echo_n "(cached) " >&6
6325else
6326 if test -n "$ac_ct_CXX"; then
6327 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6328else
6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330for as_dir in $PATH
6331do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_prog_ac_ct_CXX="$ac_prog"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340done
6341 done
6342IFS=$as_save_IFS
6343
6344fi
6345fi
6346ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6347if test -n "$ac_ct_CXX"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6349$as_echo "$ac_ct_CXX" >&6; }
6350else
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352$as_echo "no" >&6; }
6353fi
6354
6355
6356 test -n "$ac_ct_CXX" && break
6357done
6358
6359 if test "x$ac_ct_CXX" = x; then
6360 CXX="g++"
6361 else
6362 case $cross_compiling:$ac_tool_warned in
6363yes:)
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366ac_tool_warned=yes ;;
6367esac
6368 CXX=$ac_ct_CXX
6369 fi
6370fi
6371
6372 fi
6373fi
6374# Provide some information about the compiler.
6375$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6376set X $ac_compile
6377ac_compiler=$2
6378for ac_option in --version -v -V -qversion; do
6379 { { ac_try="$ac_compiler $ac_option >&5"
6380case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383esac
6384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6385$as_echo "$ac_try_echo"; } >&5
6386 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6387 ac_status=$?
6388 if test -s conftest.err; then
6389 sed '10a\
6390... rest of stderr output deleted ...
6391 10q' conftest.err >conftest.er1
6392 cat conftest.er1 >&5
6393 fi
6394 rm -f conftest.er1 conftest.err
6395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396 test $ac_status = 0; }
6397done
6398
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6400$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6401if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6402 $as_echo_n "(cached) " >&6
6403else
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405/* end confdefs.h. */
6406
6407int
6408main ()
6409{
6410#ifndef __GNUC__
6411 choke me
6412#endif
6413
6414 ;
6415 return 0;
6416}
6417_ACEOF
6418if ac_fn_cxx_try_compile "$LINENO"; then :
6419 ac_compiler_gnu=yes
6420else
6421 ac_compiler_gnu=no
6422fi
6423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6425
6426fi
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6428$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6429if test $ac_compiler_gnu = yes; then
6430 GXX=yes
6431else
6432 GXX=
6433fi
6434ac_test_CXXFLAGS=${CXXFLAGS+set}
6435ac_save_CXXFLAGS=$CXXFLAGS
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6437$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6438if test "${ac_cv_prog_cxx_g+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
6440else
6441 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6442 ac_cxx_werror_flag=yes
6443 ac_cv_prog_cxx_g=no
6444 CXXFLAGS="-g"
6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446/* end confdefs.h. */
6447
6448int
6449main ()
6450{
6451
6452 ;
6453 return 0;
6454}
6455_ACEOF
6456if ac_fn_cxx_try_compile "$LINENO"; then :
6457 ac_cv_prog_cxx_g=yes
6458else
6459 CXXFLAGS=""
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461/* end confdefs.h. */
6462
6463int
6464main ()
6465{
6466
6467 ;
6468 return 0;
6469}
6470_ACEOF
6471if ac_fn_cxx_try_compile "$LINENO"; then :
6472
6473else
6474 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6475 CXXFLAGS="-g"
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h. */
6478
6479int
6480main ()
6481{
6482
6483 ;
6484 return 0;
6485}
6486_ACEOF
6487if ac_fn_cxx_try_compile "$LINENO"; then :
6488 ac_cv_prog_cxx_g=yes
6489fi
6490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491fi
6492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493fi
6494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6496fi
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6498$as_echo "$ac_cv_prog_cxx_g" >&6; }
6499if test "$ac_test_CXXFLAGS" = set; then
6500 CXXFLAGS=$ac_save_CXXFLAGS
6501elif test $ac_cv_prog_cxx_g = yes; then
6502 if test "$GXX" = yes; then
6503 CXXFLAGS="-g -O2"
6504 else
6505 CXXFLAGS="-g"
6506 fi
6507else
6508 if test "$GXX" = yes; then
6509 CXXFLAGS="-O2"
6510 else
6511 CXXFLAGS=
6512 fi
6513fi
6514ac_ext=c
6515ac_cpp='$CPP $CPPFLAGS'
6516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6518ac_compiler_gnu=$ac_cv_c_compiler_gnu
6519
6520depcc="$CXX" am_compiler_list=
6521
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6523$as_echo_n "checking dependency style of $depcc... " >&6; }
6524if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6525 $as_echo_n "(cached) " >&6
6526else
6527 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6528 # We make a subdir and do the tests there. Otherwise we can end up
6529 # making bogus files that we don't know about and never remove. For
6530 # instance it was reported that on HP-UX the gcc test will end up
6531 # making a dummy file named `D' -- because `-MD' means `put the output
6532 # in D'.
6533 mkdir conftest.dir
6534 # Copy depcomp to subdir because otherwise we won't find it if we're
6535 # using a relative directory.
6536 cp "$am_depcomp" conftest.dir
6537 cd conftest.dir
6538 # We will build objects and dependencies in a subdirectory because
6539 # it helps to detect inapplicable dependency modes. For instance
6540 # both Tru64's cc and ICC support -MD to output dependencies as a
6541 # side effect of compilation, but ICC will put the dependencies in
6542 # the current directory while Tru64 will put them in the object
6543 # directory.
6544 mkdir sub
6545
6546 am_cv_CXX_dependencies_compiler_type=none
6547 if test "$am_compiler_list" = ""; then
6548 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6549 fi
6550 am__universal=false
6551 case " $depcc " in #(
6552 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6553 esac
6554
6555 for depmode in $am_compiler_list; do
6556 # Setup a source with many dependencies, because some compilers
6557 # like to wrap large dependency lists on column 80 (with \), and
6558 # we should not choose a depcomp mode which is confused by this.
6559 #
6560 # We need to recreate these files for each test, as the compiler may
6561 # overwrite some of them when testing with obscure command lines.
6562 # This happens at least with the AIX C compiler.
6563 : > sub/conftest.c
6564 for i in 1 2 3 4 5 6; do
6565 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6566 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6567 # Solaris 8's {/usr,}/bin/sh.
6568 touch sub/conftst$i.h
6569 done
6570 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6571
6572 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6573 # mode. It turns out that the SunPro C++ compiler does not properly
6574 # handle `-M -o', and we need to detect this. Also, some Intel
6575 # versions had trouble with output in subdirs
6576 am__obj=sub/conftest.${OBJEXT-o}
6577 am__minus_obj="-o $am__obj"
6578 case $depmode in
6579 gcc)
6580 # This depmode causes a compiler race in universal mode.
6581 test "$am__universal" = false || continue
6582 ;;
6583 nosideeffect)
6584 # after this tag, mechanisms are not by side-effect, so they'll
6585 # only be used when explicitly requested
6586 if test "x$enable_dependency_tracking" = xyes; then
6587 continue
6588 else
6589 break
6590 fi
6591 ;;
6592 msvisualcpp | msvcmsys)
6593 # This compiler won't grok `-c -o', but also, the minuso test has
6594 # not run yet. These depmodes are late enough in the game, and
6595 # so weak that their functioning should not be impacted.
6596 am__obj=conftest.${OBJEXT-o}
6597 am__minus_obj=
6598 ;;
6599 none) break ;;
6600 esac
6601 if depmode=$depmode \
6602 source=sub/conftest.c object=$am__obj \
6603 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6604 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6605 >/dev/null 2>conftest.err &&
6606 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6607 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6608 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6609 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6610 # icc doesn't choke on unknown options, it will just issue warnings
6611 # or remarks (even with -Werror). So we grep stderr for any message
6612 # that says an option was ignored or not supported.
6613 # When given -MP, icc 7.0 and 7.1 complain thusly:
6614 # icc: Command line warning: ignoring option '-M'; no argument required
6615 # The diagnosis changed in icc 8.0:
6616 # icc: Command line remark: option '-MP' not supported
6617 if (grep 'ignoring option' conftest.err ||
6618 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6619 am_cv_CXX_dependencies_compiler_type=$depmode
6620 break
6621 fi
6622 fi
6623 done
6624
6625 cd ..
6626 rm -rf conftest.dir
6627else
6628 am_cv_CXX_dependencies_compiler_type=none
6629fi
6630
6631fi
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6633$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6634CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6635
6636 if
6637 test "x$enable_dependency_tracking" != xno \
6638 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6639 am__fastdepCXX_TRUE=
6640 am__fastdepCXX_FALSE='#'
6641else
6642 am__fastdepCXX_TRUE='#'
6643 am__fastdepCXX_FALSE=
6644fi
6645
6646
cristy8b350f62009-11-15 23:12:43 +00006647 case $ac_cv_prog_cc_stdc in #(
6648 no) :
6649 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6650 *) :
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006652$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006653if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006654 $as_echo_n "(cached) " >&6
6655else
6656 ac_cv_prog_cc_c99=no
6657ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006659/* end confdefs.h. */
6660#include <stdarg.h>
6661#include <stdbool.h>
6662#include <stdlib.h>
6663#include <wchar.h>
6664#include <stdio.h>
6665
6666// Check varargs macros. These examples are taken from C99 6.10.3.5.
6667#define debug(...) fprintf (stderr, __VA_ARGS__)
6668#define showlist(...) puts (#__VA_ARGS__)
6669#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6670static void
6671test_varargs_macros (void)
6672{
6673 int x = 1234;
6674 int y = 5678;
6675 debug ("Flag");
6676 debug ("X = %d\n", x);
6677 showlist (The first, second, and third items.);
6678 report (x>y, "x is %d but y is %d", x, y);
6679}
6680
6681// Check long long types.
6682#define BIG64 18446744073709551615ull
6683#define BIG32 4294967295ul
6684#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6685#if !BIG_OK
6686 your preprocessor is broken;
6687#endif
6688#if BIG_OK
6689#else
6690 your preprocessor is broken;
6691#endif
6692static long long int bignum = -9223372036854775807LL;
6693static unsigned long long int ubignum = BIG64;
6694
6695struct incomplete_array
6696{
6697 int datasize;
6698 double data[];
6699};
6700
6701struct named_init {
6702 int number;
6703 const wchar_t *name;
6704 double average;
6705};
6706
6707typedef const char *ccp;
6708
6709static inline int
6710test_restrict (ccp restrict text)
6711{
6712 // See if C++-style comments work.
6713 // Iterate through items via the restricted pointer.
6714 // Also check for declarations in for loops.
6715 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6716 continue;
6717 return 0;
6718}
6719
6720// Check varargs and va_copy.
6721static void
6722test_varargs (const char *format, ...)
6723{
6724 va_list args;
6725 va_start (args, format);
6726 va_list args_copy;
6727 va_copy (args_copy, args);
6728
6729 const char *str;
6730 int number;
6731 float fnumber;
6732
6733 while (*format)
6734 {
6735 switch (*format++)
6736 {
6737 case 's': // string
6738 str = va_arg (args_copy, const char *);
6739 break;
6740 case 'd': // int
6741 number = va_arg (args_copy, int);
6742 break;
6743 case 'f': // float
6744 fnumber = va_arg (args_copy, double);
6745 break;
6746 default:
6747 break;
6748 }
6749 }
6750 va_end (args_copy);
6751 va_end (args);
6752}
6753
6754int
6755main ()
6756{
6757
6758 // Check bool.
6759 _Bool success = false;
6760
6761 // Check restrict.
6762 if (test_restrict ("String literal") == 0)
6763 success = true;
6764 char *restrict newvar = "Another string";
6765
6766 // Check varargs.
6767 test_varargs ("s, d' f .", "string", 65, 34.234);
6768 test_varargs_macros ();
6769
6770 // Check flexible array members.
6771 struct incomplete_array *ia =
6772 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6773 ia->datasize = 10;
6774 for (int i = 0; i < ia->datasize; ++i)
6775 ia->data[i] = i * 1.234;
6776
6777 // Check named initializers.
6778 struct named_init ni = {
6779 .number = 34,
6780 .name = L"Test wide string",
6781 .average = 543.34343,
6782 };
6783
6784 ni.number = 58;
6785
6786 int dynamic_array[ni.number];
6787 dynamic_array[ni.number - 1] = 543;
6788
6789 // work around unused variable warnings
6790 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6791 || dynamic_array[ni.number - 1] != 543);
6792
6793 ;
6794 return 0;
6795}
6796_ACEOF
6797for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6798do
6799 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006800 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006801 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006802fi
cristy3ed852e2009-09-05 21:47:34 +00006803rm -f core conftest.err conftest.$ac_objext
6804 test "x$ac_cv_prog_cc_c99" != "xno" && break
6805done
6806rm -f conftest.$ac_ext
6807CC=$ac_save_CC
6808
6809fi
6810# AC_CACHE_VAL
6811case "x$ac_cv_prog_cc_c99" in
6812 x)
cristy8b350f62009-11-15 23:12:43 +00006813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006814$as_echo "none needed" >&6; } ;;
6815 xno)
cristy8b350f62009-11-15 23:12:43 +00006816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006817$as_echo "unsupported" >&6; } ;;
6818 *)
6819 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006821$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6822esac
cristy8b350f62009-11-15 23:12:43 +00006823if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006824 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6825else
cristy8b350f62009-11-15 23:12:43 +00006826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006827$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006828if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006829 $as_echo_n "(cached) " >&6
6830else
6831 ac_cv_prog_cc_c89=no
6832ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006834/* end confdefs.h. */
6835#include <stdarg.h>
6836#include <stdio.h>
6837#include <sys/types.h>
6838#include <sys/stat.h>
6839/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6840struct buf { int x; };
6841FILE * (*rcsopen) (struct buf *, struct stat *, int);
6842static char *e (p, i)
6843 char **p;
6844 int i;
6845{
6846 return p[i];
6847}
6848static char *f (char * (*g) (char **, int), char **p, ...)
6849{
6850 char *s;
6851 va_list v;
6852 va_start (v,p);
6853 s = g (p, va_arg (v,int));
6854 va_end (v);
6855 return s;
6856}
6857
6858/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6859 function prototypes and stuff, but not '\xHH' hex character constants.
6860 These don't provoke an error unfortunately, instead are silently treated
6861 as 'x'. The following induces an error, until -std is added to get
6862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6863 array size at least. It's necessary to write '\x00'==0 to get something
6864 that's true only with -std. */
6865int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6866
6867/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6868 inside strings and character constants. */
6869#define FOO(x) 'x'
6870int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6871
6872int test (int i, double x);
6873struct s1 {int (*f) (int a);};
6874struct s2 {int (*f) (double a);};
6875int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6876int argc;
6877char **argv;
6878int
6879main ()
6880{
6881return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6882 ;
6883 return 0;
6884}
6885_ACEOF
6886for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6888do
6889 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006890 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006891 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006892fi
cristy3ed852e2009-09-05 21:47:34 +00006893rm -f core conftest.err conftest.$ac_objext
6894 test "x$ac_cv_prog_cc_c89" != "xno" && break
6895done
6896rm -f conftest.$ac_ext
6897CC=$ac_save_CC
6898
6899fi
6900# AC_CACHE_VAL
6901case "x$ac_cv_prog_cc_c89" in
6902 x)
cristy8b350f62009-11-15 23:12:43 +00006903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006904$as_echo "none needed" >&6; } ;;
6905 xno)
cristy8b350f62009-11-15 23:12:43 +00006906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006907$as_echo "unsupported" >&6; } ;;
6908 *)
6909 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006911$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6912esac
cristy8b350f62009-11-15 23:12:43 +00006913if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006914 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6915else
6916 ac_cv_prog_cc_stdc=no
6917fi
6918
cristy3ed852e2009-09-05 21:47:34 +00006919fi
cristy3ed852e2009-09-05 21:47:34 +00006920 ;;
6921esac
cristy8b350f62009-11-15 23:12:43 +00006922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006923$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006924 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006925 $as_echo_n "(cached) " >&6
6926fi
6927
cristy8b350f62009-11-15 23:12:43 +00006928 case $ac_cv_prog_cc_stdc in #(
6929 no) :
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6931$as_echo "unsupported" >&6; } ;; #(
6932 '') :
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6934$as_echo "none needed" >&6; } ;; #(
6935 *) :
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006937$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6938esac
6939
cristy3ed852e2009-09-05 21:47:34 +00006940ac_ext=c
6941ac_cpp='$CPP $CPPFLAGS'
6942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6944ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006946$as_echo_n "checking how to run the C preprocessor... " >&6; }
6947# On Suns, sometimes $CPP names a directory.
6948if test -n "$CPP" && test -d "$CPP"; then
6949 CPP=
6950fi
6951if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006952 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006953 $as_echo_n "(cached) " >&6
6954else
6955 # Double quotes because CPP needs to be expanded
6956 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6957 do
6958 ac_preproc_ok=false
6959for ac_c_preproc_warn_flag in '' yes
6960do
6961 # Use a header file that comes with gcc, so configuring glibc
6962 # with a fresh cross-compiler works.
6963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6964 # <limits.h> exists even on freestanding compilers.
6965 # On the NeXT, cc -E runs the code through the compiler's parser,
6966 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006968/* end confdefs.h. */
6969#ifdef __STDC__
6970# include <limits.h>
6971#else
6972# include <assert.h>
6973#endif
6974 Syntax error
6975_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006976if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006977
cristy8b350f62009-11-15 23:12:43 +00006978else
cristy3ed852e2009-09-05 21:47:34 +00006979 # Broken: fails on valid input.
6980continue
6981fi
cristy3ed852e2009-09-05 21:47:34 +00006982rm -f conftest.err conftest.$ac_ext
6983
6984 # OK, works on sane cases. Now check whether nonexistent headers
6985 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006987/* end confdefs.h. */
6988#include <ac_nonexistent.h>
6989_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006990if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006991 # Broken: success on invalid input.
6992continue
6993else
cristy3ed852e2009-09-05 21:47:34 +00006994 # Passes both tests.
6995ac_preproc_ok=:
6996break
6997fi
cristy3ed852e2009-09-05 21:47:34 +00006998rm -f conftest.err conftest.$ac_ext
6999
7000done
7001# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7002rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007003if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007004 break
7005fi
7006
7007 done
7008 ac_cv_prog_CPP=$CPP
7009
7010fi
7011 CPP=$ac_cv_prog_CPP
7012else
7013 ac_cv_prog_CPP=$CPP
7014fi
cristy8b350f62009-11-15 23:12:43 +00007015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007016$as_echo "$CPP" >&6; }
7017ac_preproc_ok=false
7018for ac_c_preproc_warn_flag in '' yes
7019do
7020 # Use a header file that comes with gcc, so configuring glibc
7021 # with a fresh cross-compiler works.
7022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7023 # <limits.h> exists even on freestanding compilers.
7024 # On the NeXT, cc -E runs the code through the compiler's parser,
7025 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007027/* end confdefs.h. */
7028#ifdef __STDC__
7029# include <limits.h>
7030#else
7031# include <assert.h>
7032#endif
7033 Syntax error
7034_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007035if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007036
cristy8b350f62009-11-15 23:12:43 +00007037else
cristy3ed852e2009-09-05 21:47:34 +00007038 # Broken: fails on valid input.
7039continue
7040fi
cristy3ed852e2009-09-05 21:47:34 +00007041rm -f conftest.err conftest.$ac_ext
7042
7043 # OK, works on sane cases. Now check whether nonexistent headers
7044 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007046/* end confdefs.h. */
7047#include <ac_nonexistent.h>
7048_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007049if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007050 # Broken: success on invalid input.
7051continue
7052else
cristy3ed852e2009-09-05 21:47:34 +00007053 # Passes both tests.
7054ac_preproc_ok=:
7055break
7056fi
cristy3ed852e2009-09-05 21:47:34 +00007057rm -f conftest.err conftest.$ac_ext
7058
7059done
7060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7061rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007062if $ac_preproc_ok; then :
7063
cristy3ed852e2009-09-05 21:47:34 +00007064else
cristy8b350f62009-11-15 23:12:43 +00007065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00007067as_fn_error "C preprocessor \"$CPP\" fails sanity check
7068See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007069fi
7070
7071ac_ext=c
7072ac_cpp='$CPP $CPPFLAGS'
7073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7075ac_compiler_gnu=$ac_cv_c_compiler_gnu
7076
cristy8b350f62009-11-15 23:12:43 +00007077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00007078$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007079if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007080 $as_echo_n "(cached) " >&6
7081else
7082 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7083 for ac_i in 1 2 3 4 5 6 7; do
7084 ac_script="$ac_script$as_nl$ac_script"
7085 done
7086 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00007087 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00007088 if test -z "$SED"; then
7089 ac_path_SED_found=false
7090 # Loop through the user's path and test for each of PROGNAME-LIST
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092for as_dir in $PATH
7093do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007096 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00007097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7099 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7100# Check for GNU ac_path_SED and select it if it is found.
7101 # Check for GNU $ac_path_SED
7102case `"$ac_path_SED" --version 2>&1` in
7103*GNU*)
7104 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7105*)
7106 ac_count=0
7107 $as_echo_n 0123456789 >"conftest.in"
7108 while :
7109 do
7110 cat "conftest.in" "conftest.in" >"conftest.tmp"
7111 mv "conftest.tmp" "conftest.in"
7112 cp "conftest.in" "conftest.nl"
7113 $as_echo '' >> "conftest.nl"
7114 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007116 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007117 if test $ac_count -gt ${ac_path_SED_max-0}; then
7118 # Best one so far, save it but keep looking for a better one
7119 ac_cv_path_SED="$ac_path_SED"
7120 ac_path_SED_max=$ac_count
7121 fi
7122 # 10*(2^10) chars as input seems more than enough
7123 test $ac_count -gt 10 && break
7124 done
7125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7126esac
7127
7128 $ac_path_SED_found && break 3
7129 done
7130 done
cristy8b350f62009-11-15 23:12:43 +00007131 done
cristy3ed852e2009-09-05 21:47:34 +00007132IFS=$as_save_IFS
7133 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00007134 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007135 fi
7136else
7137 ac_cv_path_SED=$SED
7138fi
7139
7140fi
cristy8b350f62009-11-15 23:12:43 +00007141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007142$as_echo "$ac_cv_path_SED" >&6; }
7143 SED="$ac_cv_path_SED"
7144 rm -f conftest.sed
7145
7146test -z "$SED" && SED=sed
7147Xsed="$SED -e 1s/^X//"
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
cristy8b350f62009-11-15 23:12:43 +00007159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007160$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007161if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007162 $as_echo_n "(cached) " >&6
7163else
7164 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7165 then ac_cv_path_FGREP="$GREP -F"
7166 else
7167 if test -z "$FGREP"; then
7168 ac_path_FGREP_found=false
7169 # Loop through the user's path and test for each of PROGNAME-LIST
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007175 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7178 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7179# Check for GNU ac_path_FGREP and select it if it is found.
7180 # Check for GNU $ac_path_FGREP
7181case `"$ac_path_FGREP" --version 2>&1` in
7182*GNU*)
7183 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7184*)
7185 ac_count=0
7186 $as_echo_n 0123456789 >"conftest.in"
7187 while :
7188 do
7189 cat "conftest.in" "conftest.in" >"conftest.tmp"
7190 mv "conftest.tmp" "conftest.in"
7191 cp "conftest.in" "conftest.nl"
7192 $as_echo 'FGREP' >> "conftest.nl"
7193 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007195 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007196 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7197 # Best one so far, save it but keep looking for a better one
7198 ac_cv_path_FGREP="$ac_path_FGREP"
7199 ac_path_FGREP_max=$ac_count
7200 fi
7201 # 10*(2^10) chars as input seems more than enough
7202 test $ac_count -gt 10 && break
7203 done
7204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7205esac
7206
7207 $ac_path_FGREP_found && break 3
7208 done
7209 done
cristy8b350f62009-11-15 23:12:43 +00007210 done
cristy3ed852e2009-09-05 21:47:34 +00007211IFS=$as_save_IFS
7212 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00007213 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007214 fi
7215else
7216 ac_cv_path_FGREP=$FGREP
7217fi
7218
7219 fi
7220fi
cristy8b350f62009-11-15 23:12:43 +00007221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007222$as_echo "$ac_cv_path_FGREP" >&6; }
7223 FGREP="$ac_cv_path_FGREP"
7224
7225
7226test -z "$GREP" && GREP=grep
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007247if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007248 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7249else
7250 with_gnu_ld=no
7251fi
7252
7253ac_prog=ld
7254if test "$GCC" = yes; then
7255 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007257$as_echo_n "checking for ld used by $CC... " >&6; }
7258 case $host in
7259 *-*-mingw*)
7260 # gcc leaves a trailing carriage return which upsets mingw
7261 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7262 *)
7263 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7264 esac
7265 case $ac_prog in
7266 # Accept absolute paths.
7267 [\\/]* | ?:[\\/]*)
7268 re_direlt='/[^/][^/]*/\.\./'
7269 # Canonicalize the pathname of ld
7270 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7271 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7272 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7273 done
7274 test -z "$LD" && LD="$ac_prog"
7275 ;;
7276 "")
7277 # If it fails, then pretend we aren't using GCC.
7278 ac_prog=ld
7279 ;;
7280 *)
7281 # If it is relative, then search for the first ld in PATH.
7282 with_gnu_ld=unknown
7283 ;;
7284 esac
7285elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007287$as_echo_n "checking for GNU ld... " >&6; }
7288else
cristy8b350f62009-11-15 23:12:43 +00007289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007290$as_echo_n "checking for non-GNU ld... " >&6; }
7291fi
cristy8b350f62009-11-15 23:12:43 +00007292if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007293 $as_echo_n "(cached) " >&6
7294else
7295 if test -z "$LD"; then
7296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7297 for ac_dir in $PATH; do
7298 IFS="$lt_save_ifs"
7299 test -z "$ac_dir" && ac_dir=.
7300 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7301 lt_cv_path_LD="$ac_dir/$ac_prog"
7302 # Check to see if the program is GNU ld. I'd rather use --version,
7303 # but apparently some variants of GNU ld only accept -v.
7304 # Break only if it was the GNU/non-GNU ld that we prefer.
7305 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7306 *GNU* | *'with BFD'*)
7307 test "$with_gnu_ld" != no && break
7308 ;;
7309 *)
7310 test "$with_gnu_ld" != yes && break
7311 ;;
7312 esac
7313 fi
7314 done
7315 IFS="$lt_save_ifs"
7316else
7317 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7318fi
7319fi
7320
7321LD="$lt_cv_path_LD"
7322if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007324$as_echo "$LD" >&6; }
7325else
cristy8b350f62009-11-15 23:12:43 +00007326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007327$as_echo "no" >&6; }
7328fi
cristy8b350f62009-11-15 23:12:43 +00007329test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007331$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007332if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007333 $as_echo_n "(cached) " >&6
7334else
7335 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7336case `$LD -v 2>&1 </dev/null` in
7337*GNU* | *'with BFD'*)
7338 lt_cv_prog_gnu_ld=yes
7339 ;;
7340*)
7341 lt_cv_prog_gnu_ld=no
7342 ;;
7343esac
7344fi
cristy8b350f62009-11-15 23:12:43 +00007345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007346$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7347with_gnu_ld=$lt_cv_prog_gnu_ld
7348
7349
7350
7351
7352
7353
7354
7355
7356
cristy3ed852e2009-09-05 21:47:34 +00007357
cristy837d6dc2010-02-27 01:16:57 +00007358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7359$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7360if test "${ac_cv_prog_cc_c99+set}" = set; then :
7361 $as_echo_n "(cached) " >&6
7362else
7363 ac_cv_prog_cc_c99=no
7364ac_save_CC=$CC
7365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366/* end confdefs.h. */
7367#include <stdarg.h>
7368#include <stdbool.h>
7369#include <stdlib.h>
7370#include <wchar.h>
7371#include <stdio.h>
7372
7373// Check varargs macros. These examples are taken from C99 6.10.3.5.
7374#define debug(...) fprintf (stderr, __VA_ARGS__)
7375#define showlist(...) puts (#__VA_ARGS__)
7376#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7377static void
7378test_varargs_macros (void)
7379{
7380 int x = 1234;
7381 int y = 5678;
7382 debug ("Flag");
7383 debug ("X = %d\n", x);
7384 showlist (The first, second, and third items.);
7385 report (x>y, "x is %d but y is %d", x, y);
7386}
7387
7388// Check long long types.
7389#define BIG64 18446744073709551615ull
7390#define BIG32 4294967295ul
7391#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7392#if !BIG_OK
7393 your preprocessor is broken;
7394#endif
7395#if BIG_OK
7396#else
7397 your preprocessor is broken;
7398#endif
7399static long long int bignum = -9223372036854775807LL;
7400static unsigned long long int ubignum = BIG64;
7401
7402struct incomplete_array
7403{
7404 int datasize;
7405 double data[];
7406};
7407
7408struct named_init {
7409 int number;
7410 const wchar_t *name;
7411 double average;
7412};
7413
7414typedef const char *ccp;
7415
7416static inline int
7417test_restrict (ccp restrict text)
7418{
7419 // See if C++-style comments work.
7420 // Iterate through items via the restricted pointer.
7421 // Also check for declarations in for loops.
7422 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7423 continue;
7424 return 0;
7425}
7426
7427// Check varargs and va_copy.
7428static void
7429test_varargs (const char *format, ...)
7430{
7431 va_list args;
7432 va_start (args, format);
7433 va_list args_copy;
7434 va_copy (args_copy, args);
7435
7436 const char *str;
7437 int number;
7438 float fnumber;
7439
7440 while (*format)
7441 {
7442 switch (*format++)
7443 {
7444 case 's': // string
7445 str = va_arg (args_copy, const char *);
7446 break;
7447 case 'd': // int
7448 number = va_arg (args_copy, int);
7449 break;
7450 case 'f': // float
7451 fnumber = va_arg (args_copy, double);
7452 break;
7453 default:
7454 break;
7455 }
7456 }
7457 va_end (args_copy);
7458 va_end (args);
7459}
7460
7461int
7462main ()
7463{
7464
7465 // Check bool.
7466 _Bool success = false;
7467
7468 // Check restrict.
7469 if (test_restrict ("String literal") == 0)
7470 success = true;
7471 char *restrict newvar = "Another string";
7472
7473 // Check varargs.
7474 test_varargs ("s, d' f .", "string", 65, 34.234);
7475 test_varargs_macros ();
7476
7477 // Check flexible array members.
7478 struct incomplete_array *ia =
7479 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7480 ia->datasize = 10;
7481 for (int i = 0; i < ia->datasize; ++i)
7482 ia->data[i] = i * 1.234;
7483
7484 // Check named initializers.
7485 struct named_init ni = {
7486 .number = 34,
7487 .name = L"Test wide string",
7488 .average = 543.34343,
7489 };
7490
7491 ni.number = 58;
7492
7493 int dynamic_array[ni.number];
7494 dynamic_array[ni.number - 1] = 543;
7495
7496 // work around unused variable warnings
7497 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7498 || dynamic_array[ni.number - 1] != 543);
7499
7500 ;
7501 return 0;
7502}
7503_ACEOF
7504for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7505do
7506 CC="$ac_save_CC $ac_arg"
7507 if ac_fn_c_try_compile "$LINENO"; then :
7508 ac_cv_prog_cc_c99=$ac_arg
7509fi
7510rm -f core conftest.err conftest.$ac_objext
7511 test "x$ac_cv_prog_cc_c99" != "xno" && break
7512done
7513rm -f conftest.$ac_ext
7514CC=$ac_save_CC
7515
7516fi
7517# AC_CACHE_VAL
7518case "x$ac_cv_prog_cc_c99" in
7519 x)
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7521$as_echo "none needed" >&6; } ;;
7522 xno)
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7524$as_echo "unsupported" >&6; } ;;
7525 *)
7526 CC="$CC $ac_cv_prog_cc_c99"
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7528$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7529esac
7530if test "x$ac_cv_prog_cc_c99" != xno; then :
7531
7532fi
7533
7534
cristy3ed852e2009-09-05 21:47:34 +00007535if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007537$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7538else
cristy8b350f62009-11-15 23:12:43 +00007539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007540$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7541fi
7542set dummy $CC; ac_cc=`$as_echo "$2" |
7543 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00007544if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007545 $as_echo_n "(cached) " >&6
7546else
cristy8b350f62009-11-15 23:12:43 +00007547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007548/* end confdefs.h. */
7549
7550int
7551main ()
7552{
7553
7554 ;
7555 return 0;
7556}
7557_ACEOF
7558# Make sure it works both with $CC and with simple cc.
7559# We do the test twice because some compilers refuse to overwrite an
7560# existing .o file with -o, though they will create one.
7561ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7562rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007563if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7566esac
cristy8b350f62009-11-15 23:12:43 +00007567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7568$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007569 (eval "$ac_try") 2>&5
7570 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7572 test $ac_status = 0; } &&
7573 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7576esac
cristy8b350f62009-11-15 23:12:43 +00007577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7578$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007579 (eval "$ac_try") 2>&5
7580 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7582 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007583then
7584 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7585 if test "x$CC" != xcc; then
7586 # Test first that cc exists at all.
7587 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007588 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590 *) ac_try_echo=$ac_try;;
7591esac
cristy8b350f62009-11-15 23:12:43 +00007592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7593$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007594 (eval "$ac_try") 2>&5
7595 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7597 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007598 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7599 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007600 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7603esac
cristy8b350f62009-11-15 23:12:43 +00007604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7605$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007606 (eval "$ac_try") 2>&5
7607 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7609 test $ac_status = 0; } &&
7610 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7612 *) ac_try_echo=$ac_try;;
7613esac
cristy8b350f62009-11-15 23:12:43 +00007614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7615$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007616 (eval "$ac_try") 2>&5
7617 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7619 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007620 then
7621 # cc works too.
7622 :
7623 else
7624 # cc exists but doesn't like -o.
7625 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7626 fi
7627 fi
7628 fi
7629else
7630 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7631fi
7632rm -f core conftest*
7633
7634fi
7635if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007637$as_echo "yes" >&6; }
7638else
cristy8b350f62009-11-15 23:12:43 +00007639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007640$as_echo "no" >&6; }
7641
cristy8b350f62009-11-15 23:12:43 +00007642$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007643
7644fi
7645
7646# FIXME: we rely on the cache variable name because
7647# there is no other way.
7648set dummy $CC
7649am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7650eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7651if test "$am_t" != yes; then
7652 # Losing compiler, so override with the script.
7653 # FIXME: It is wrong to rewrite CC.
7654 # But if we don't then we get into trouble of one sort or another.
7655 # A longer-term fix would be to have automake use am__CC in this case,
7656 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7657 CC="$am_aux_dir/compile $CC"
7658fi
7659
7660
cristy92703d82010-04-26 00:18:18 +00007661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7662$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7663if test "${ac_cv_cflags_warn_all+set}" = set; then :
7664 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00007665else
cristy92703d82010-04-26 00:18:18 +00007666 ac_cv_cflags_warn_all="no, unknown"
7667
7668 ac_ext=c
7669ac_cpp='$CPP $CPPFLAGS'
7670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7672ac_compiler_gnu=$ac_cv_c_compiler_gnu
7673
7674 ac_save_CFLAGS="$CFLAGS"
7675for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7676do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678/* end confdefs.h. */
7679
7680int
7681main ()
7682{
7683return 0;
7684 ;
7685 return 0;
7686}
7687_ACEOF
7688if ac_fn_c_try_compile "$LINENO"; then :
7689 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
cristy3ed852e2009-09-05 21:47:34 +00007690fi
cristy92703d82010-04-26 00:18:18 +00007691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692done
7693 CFLAGS="$ac_save_CFLAGS"
7694 ac_ext=c
7695ac_cpp='$CPP $CPPFLAGS'
7696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7698ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00007699
7700
cristy92703d82010-04-26 00:18:18 +00007701fi
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7703$as_echo "$ac_cv_cflags_warn_all" >&6; }
7704case ".$ac_cv_cflags_warn_all" in
7705 .ok|.ok,*) ;;
7706 .|.no|.no,*)
7707 ;;
7708 *)
7709 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7710 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7711 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7712 ac_status=$?
7713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7714 test $ac_status = 0; }
7715 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7716 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7717 ac_status=$?
7718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7719 test $ac_status = 0; }
7720 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7721 fi
7722 ;;
7723esac
cristy3ed852e2009-09-05 21:47:34 +00007724
cristya0b81c32010-01-22 02:54:33 +00007725$ac_includes_default
7726
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7728$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7729set x ${MAKE-make}
7730ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7731if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7732 $as_echo_n "(cached) " >&6
7733else
7734 cat >conftest.make <<\_ACEOF
7735SHELL = /bin/sh
7736all:
7737 @echo '@@@%%%=$(MAKE)=@@@%%%'
7738_ACEOF
7739# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7740case `${MAKE-make} -f conftest.make 2>/dev/null` in
7741 *@@@%%%=?*=@@@%%%*)
7742 eval ac_cv_prog_make_${ac_make}_set=yes;;
7743 *)
7744 eval ac_cv_prog_make_${ac_make}_set=no;;
7745esac
7746rm -f conftest.make
7747fi
7748if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7750$as_echo "yes" >&6; }
7751 SET_MAKE=
7752else
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754$as_echo "no" >&6; }
7755 SET_MAKE="MAKE=${MAKE-make}"
7756fi
7757
cristy8b350f62009-11-15 23:12:43 +00007758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007759$as_echo_n "checking whether ln -s works... " >&6; }
7760LN_S=$as_ln_s
7761if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007763$as_echo "yes" >&6; }
7764else
cristy8b350f62009-11-15 23:12:43 +00007765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007766$as_echo "no, using $LN_S" >&6; }
7767fi
7768
cristy8b350f62009-11-15 23:12:43 +00007769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007770$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7771
7772# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007773if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007774 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007776$as_echo "yes" >&6; }
7777
cristy8b350f62009-11-15 23:12:43 +00007778$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007779
7780 LIBS="$LIBS -ldmalloc"
7781 LDFLAGS="$LDFLAGS -g"
7782else
cristy8b350f62009-11-15 23:12:43 +00007783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007784$as_echo "no" >&6; }
7785fi
7786else
cristy8b350f62009-11-15 23:12:43 +00007787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007788$as_echo "no" >&6; }
7789fi
7790
7791
7792
cristy0d3a6382010-04-26 00:45:55 +00007793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7794$as_echo_n "checking for __attribute__... " >&6; }
7795if test "${ax_cv___attribute__+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7797else
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799/* end confdefs.h. */
7800#include <stdlib.h>
7801 static void foo(void) __attribute__ ((unused));
7802 static void
7803 foo(void) {
7804 exit(1);
7805 }
7806
7807int
7808main ()
7809{
7810
7811 ;
7812 return 0;
7813}
7814_ACEOF
7815if ac_fn_c_try_compile "$LINENO"; then :
7816 ax_cv___attribute__=yes
7817else
7818 ax_cv___attribute__=no
7819
7820fi
7821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822
7823fi
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7825$as_echo "$ax_cv___attribute__" >&6; }
7826 if test "$ax_cv___attribute__" = "yes"; then
7827
7828$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7829
7830 fi
7831
7832
cristy3ed852e2009-09-05 21:47:34 +00007833
7834if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7835 if test -n "$ac_tool_prefix"; then
7836 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7837set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007839$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007840if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007841 $as_echo_n "(cached) " >&6
7842else
7843 case $PKG_CONFIG in
7844 [\\/]* | ?:[\\/]*)
7845 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7846 ;;
7847 *)
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007853 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007857 break 2
7858 fi
7859done
cristy8b350f62009-11-15 23:12:43 +00007860 done
cristy3ed852e2009-09-05 21:47:34 +00007861IFS=$as_save_IFS
7862
7863 ;;
7864esac
7865fi
7866PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7867if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007869$as_echo "$PKG_CONFIG" >&6; }
7870else
cristy8b350f62009-11-15 23:12:43 +00007871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007872$as_echo "no" >&6; }
7873fi
7874
7875
7876fi
7877if test -z "$ac_cv_path_PKG_CONFIG"; then
7878 ac_pt_PKG_CONFIG=$PKG_CONFIG
7879 # Extract the first word of "pkg-config", so it can be a program name with args.
7880set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007882$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007883if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007884 $as_echo_n "(cached) " >&6
7885else
7886 case $ac_pt_PKG_CONFIG in
7887 [\\/]* | ?:[\\/]*)
7888 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7889 ;;
7890 *)
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007896 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7898 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007900 break 2
7901 fi
7902done
cristy8b350f62009-11-15 23:12:43 +00007903 done
cristy3ed852e2009-09-05 21:47:34 +00007904IFS=$as_save_IFS
7905
7906 ;;
7907esac
7908fi
7909ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7910if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007912$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7913else
cristy8b350f62009-11-15 23:12:43 +00007914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007915$as_echo "no" >&6; }
7916fi
7917
7918 if test "x$ac_pt_PKG_CONFIG" = x; then
7919 PKG_CONFIG=""
7920 else
7921 case $cross_compiling:$ac_tool_warned in
7922yes:)
cristy8b350f62009-11-15 23:12:43 +00007923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7925ac_tool_warned=yes ;;
7926esac
7927 PKG_CONFIG=$ac_pt_PKG_CONFIG
7928 fi
7929else
7930 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7931fi
7932
7933fi
7934if test -n "$PKG_CONFIG"; then
7935 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007937$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7938 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007940$as_echo "yes" >&6; }
7941 else
cristy8b350f62009-11-15 23:12:43 +00007942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007943$as_echo "no" >&6; }
7944 PKG_CONFIG=""
7945 fi
7946
7947fi
7948
7949#
cristy3ed852e2009-09-05 21:47:34 +00007950# Enable run-time checking.
7951#
7952# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007953if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007954 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7955else
7956 enable_bounds_checking='no'
7957fi
7958
7959
7960if test "$enable_bounds_checking" = yes; then
7961
cristy8b350f62009-11-15 23:12:43 +00007962$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007963
7964fi
7965
7966#
7967# Tests for Windows
7968#
7969
7970
cristy0d3a6382010-04-26 00:45:55 +00007971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7972$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7973if test "${ax_cv_c_compiler_ms+set}" = set; then :
7974 $as_echo_n "(cached) " >&6
7975else
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977/* end confdefs.h. */
7978
7979int
7980main ()
7981{
7982#ifndef _MSC_VER
7983 choke me
7984#endif
7985
7986 ;
7987 return 0;
7988}
7989_ACEOF
7990if ac_fn_c_try_compile "$LINENO"; then :
7991 ax_compiler_ms=yes
7992else
7993 ax_compiler_ms=no
7994fi
7995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996ax_cv_c_compiler_ms=$ax_compiler_ms
7997
7998fi
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8000$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008001
8002GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008003native_win32_build='no'
8004cygwin_build='no'
8005case "${host_os}" in
8006 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008007 cygwin_build='yes'
8008 GDI32_LIBS='-lgdi32'
8009 ;;
8010 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008011 native_win32_build='yes'
8012 GDI32_LIBS='-lgdi32'
8013 ;;
8014esac
8015if test "${GDI32_LIBS}x" != 'x'; then
8016
cristy8b350f62009-11-15 23:12:43 +00008017$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008018
8019fi
8020
8021 if test "${GDI32_LIBS}x" != 'x' ; then
8022 WINGDI32_DELEGATE_TRUE=
8023 WINGDI32_DELEGATE_FALSE='#'
8024else
8025 WINGDI32_DELEGATE_TRUE='#'
8026 WINGDI32_DELEGATE_FALSE=
8027fi
8028
8029 if test "${native_win32_build}" = 'yes' ; then
8030 WIN32_NATIVE_BUILD_TRUE=
8031 WIN32_NATIVE_BUILD_FALSE='#'
8032else
8033 WIN32_NATIVE_BUILD_TRUE='#'
8034 WIN32_NATIVE_BUILD_FALSE=
8035fi
8036
8037 if test "${cygwin_build}" = 'yes' ; then
8038 CYGWIN_BUILD_TRUE=
8039 CYGWIN_BUILD_FALSE='#'
8040else
8041 CYGWIN_BUILD_TRUE='#'
8042 CYGWIN_BUILD_FALSE=
8043fi
8044
8045 if test "x${CC}" = 'xcl.exe' ; then
8046 USING_CL_TRUE=
8047 USING_CL_FALSE='#'
8048else
8049 USING_CL_TRUE='#'
8050 USING_CL_FALSE=
8051fi
8052
8053
8054WinPathScript="${srcdirfull}/winpath.sh"
8055
8056
8057#
8058# Compiler flags tweaks
8059#
8060if test "${GCC}" != "yes"; then
8061 case "${host}" in
8062 *-*-hpux* )
8063 # aCC: HP ANSI C++ B3910B A.03.34
8064 CFLAGS="${CFLAGS} -Wp,-H30000"
8065 if test -n "${CXXFLAGS}"; then
8066 CXXFLAGS='-AA'
8067 else
8068 CXXFLAGS="${CXXFLAGS} -AA"
8069 fi
8070 ;;
8071 *-dec-osf5.* )
8072 # Compaq alphaev68-dec-osf5.1 compiler
8073 if test -n "${CXXFLAGS}"; then
8074 CXXFLAGS='-std strict_ansi -noimplicit_include'
8075 else
8076 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8077 fi
8078 esac
8079fi
8080
8081# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008083$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008084if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008085 $as_echo_n "(cached) " >&6
8086else
8087
8088im_cv_ld_lazyload='none'
8089case "${host}" in
8090 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8091 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8092 im_cv_ld_lazyload='-Wl,-zlazyload'
8093 fi
8094 ;;
8095esac
8096
8097fi
cristy8b350f62009-11-15 23:12:43 +00008098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008099$as_echo "$im_cv_ld_lazyload" >&6; }
8100if test "${im_cv_ld_lazyload}" != 'none' ; then
8101 if test -z "${LDFLAGS}" ; then
8102 LDFLAGS="${im_cv_ld_lazyload}"
8103 else
8104 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8105 fi
8106fi
8107
8108case "$host" in
8109*darwin* | *-macos10*)
8110 if test -d /opt/local ; then
8111 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
8112 LDFLAGS="$LDFLAGS -L/opt/local/lib"
8113 elif test -d /sw ; then
8114 CPPFLAGS="$CPPFLAGS -I/sw/include"
8115 LDFLAGS="$LDFLAGS -L/sw/lib"
8116 fi
8117 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008118if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008119 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8120else
8121 build_osxuniversal=no
8122fi
8123
8124
8125 if test "${build_osxuniversal}" != no ; then
8126 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00008127 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008128Please re-run configure with these options:
8129 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008130 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008131 fi
8132 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8133 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8134 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8135 fi
8136 ;;
8137esac
8138
8139# Enable support for threads
8140
8141# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008142if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008143 withval=$with_threads; with_threads=$withval
8144else
8145 with_threads='yes'
8146fi
8147
8148
8149have_threads=no
8150if test "$with_threads" != 'no'; then
8151
8152
8153
8154ac_ext=c
8155ac_cpp='$CPP $CPPFLAGS'
8156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8158ac_compiler_gnu=$ac_cv_c_compiler_gnu
8159
cristy964cb7f2010-04-25 23:18:00 +00008160ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008161
8162# We used to check for pthread.h first, but this fails if pthread.h
8163# requires special compiler flags (e.g. on True64 or Sequent).
8164# It gets checked for in the link test anyway.
8165
8166# First of all, check if the user has set any of the PTHREAD_LIBS,
8167# etcetera environment variables, and if threads linking works using
8168# them:
8169if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8170 save_CFLAGS="$CFLAGS"
8171 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8172 save_LIBS="$LIBS"
8173 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008174 { $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 +00008175$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008177/* end confdefs.h. */
8178
8179/* Override any GCC internal prototype to avoid an error.
8180 Use char because int might match the return type of a GCC
8181 builtin and then its argument prototype would still apply. */
8182#ifdef __cplusplus
8183extern "C"
8184#endif
8185char pthread_join ();
8186int
8187main ()
8188{
8189return pthread_join ();
8190 ;
8191 return 0;
8192}
8193_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008194if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008195 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008196fi
cristy8b350f62009-11-15 23:12:43 +00008197rm -f core conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8200$as_echo "$ax_pthread_ok" >&6; }
8201 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008202 PTHREAD_LIBS=""
8203 PTHREAD_CFLAGS=""
8204 fi
8205 LIBS="$save_LIBS"
8206 CFLAGS="$save_CFLAGS"
8207fi
8208
8209# We must check for the threads library under a number of different
8210# names; the ordering is very important because some systems
8211# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8212# libraries is broken (non-POSIX).
8213
8214# Create a list of thread flags to try. Items starting with a "-" are
8215# C compiler flags, and other items are library names, except for "none"
8216# which indicates that we try without any flags at all, and "pthread-config"
8217# which is a program returning the flags for the Pth emulation library.
8218
cristy964cb7f2010-04-25 23:18:00 +00008219ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008220
8221# The ordering *is* (sometimes) important. Some notes on the
8222# individual items follow:
8223
8224# pthreads: AIX (must check this before -lpthread)
8225# none: in case threads are in libc; should be tried before -Kthread and
8226# other compiler flags to prevent continual compiler warnings
8227# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8228# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8229# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8230# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8231# -pthreads: Solaris/gcc
8232# -mthreads: Mingw32/gcc, Lynx/gcc
8233# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8234# doesn't hurt to check since this sometimes defines pthreads too;
8235# also defines -D_REENTRANT)
8236# ... -mt is also the pthreads flag for HP/aCC
8237# pthread: Linux, etcetera
8238# --thread-safe: KAI C++
8239# pthread-config: use pthread-config program (for GNU Pth library)
8240
8241case "${host_cpu}-${host_os}" in
8242 *solaris*)
8243
8244 # On Solaris (at least, for some versions), libc contains stubbed
8245 # (non-functional) versions of the pthreads routines, so link-based
8246 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8247 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8248 # a function called by this macro, so we could check for that, but
8249 # who knows whether they'll stub that too in a future libc.) So,
8250 # we'll just look for -pthreads and -lpthread first:
8251
cristy964cb7f2010-04-25 23:18:00 +00008252 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008253 ;;
cristy964cb7f2010-04-25 23:18:00 +00008254
8255 *-darwin*)
8256 acx_pthread_flags="-pthread $acx_pthread_flags"
8257 ;;
cristy3ed852e2009-09-05 21:47:34 +00008258esac
8259
cristy964cb7f2010-04-25 23:18:00 +00008260if test x"$ax_pthread_ok" = xno; then
8261for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008262
8263 case $flag in
8264 none)
cristy8b350f62009-11-15 23:12:43 +00008265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008266$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8267 ;;
8268
8269 -*)
cristy8b350f62009-11-15 23:12:43 +00008270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008271$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8272 PTHREAD_CFLAGS="$flag"
8273 ;;
8274
8275 pthread-config)
8276 # Extract the first word of "pthread-config", so it can be a program name with args.
8277set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008279$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008280if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008281 $as_echo_n "(cached) " >&6
8282else
cristy964cb7f2010-04-25 23:18:00 +00008283 if test -n "$ax_pthread_config"; then
8284 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008285else
8286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287for as_dir in $PATH
8288do
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008291 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy964cb7f2010-04-25 23:18:00 +00008293 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008295 break 2
8296 fi
8297done
cristy8b350f62009-11-15 23:12:43 +00008298 done
cristy3ed852e2009-09-05 21:47:34 +00008299IFS=$as_save_IFS
8300
cristy964cb7f2010-04-25 23:18:00 +00008301 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008302fi
8303fi
cristy964cb7f2010-04-25 23:18:00 +00008304ax_pthread_config=$ac_cv_prog_ax_pthread_config
8305if test -n "$ax_pthread_config"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8307$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008308else
cristy8b350f62009-11-15 23:12:43 +00008309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008310$as_echo "no" >&6; }
8311fi
8312
8313
cristy964cb7f2010-04-25 23:18:00 +00008314 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008315 PTHREAD_CFLAGS="`pthread-config --cflags`"
8316 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8317 ;;
8318
8319 *)
cristy8b350f62009-11-15 23:12:43 +00008320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008321$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8322 PTHREAD_LIBS="-l$flag"
8323 ;;
8324 esac
8325
8326 save_LIBS="$LIBS"
8327 save_CFLAGS="$CFLAGS"
8328 LIBS="$PTHREAD_LIBS $LIBS"
8329 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8330
8331 # Check for various functions. We must include pthread.h,
8332 # since some functions may be macros. (On the Sequent, we
8333 # need a special flag -Kthread to make this header compile.)
8334 # We check for pthread_join because it is in -lpthread on IRIX
8335 # while pthread_create is in libc. We check for pthread_attr_init
8336 # due to DEC craziness with -lpthreads. We check for
8337 # pthread_cleanup_push because it is one of the few pthread
8338 # functions on Solaris that doesn't have a non-functional libc stub.
8339 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008341/* end confdefs.h. */
8342#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008343 static void routine(void* a) {a=0;}
8344 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008345int
8346main ()
8347{
cristy964cb7f2010-04-25 23:18:00 +00008348pthread_t th; pthread_attr_t attr;
8349 pthread_join(th, 0);
8350 pthread_attr_init(&attr);
8351 pthread_cleanup_push(routine, 0);
8352 pthread_create(&th,0,start_routine,0);
8353 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008354 ;
8355 return 0;
8356}
8357_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008358if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008359 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008360fi
cristy8b350f62009-11-15 23:12:43 +00008361rm -f core conftest.err conftest.$ac_objext \
8362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008363
8364 LIBS="$save_LIBS"
8365 CFLAGS="$save_CFLAGS"
8366
cristy964cb7f2010-04-25 23:18:00 +00008367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8368$as_echo "$ax_pthread_ok" >&6; }
8369 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008370 break;
8371 fi
8372
8373 PTHREAD_LIBS=""
8374 PTHREAD_CFLAGS=""
8375done
8376fi
8377
8378# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008379if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008380 save_LIBS="$LIBS"
8381 LIBS="$PTHREAD_LIBS $LIBS"
8382 save_CFLAGS="$CFLAGS"
8383 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8384
8385 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008387$as_echo_n "checking for joinable pthread attribute... " >&6; }
8388 attr_name=unknown
8389 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008391/* end confdefs.h. */
8392#include <pthread.h>
8393int
8394main ()
8395{
8396int attr=$attr; return attr;
8397 ;
8398 return 0;
8399}
8400_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008401if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008402 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008403fi
cristy8b350f62009-11-15 23:12:43 +00008404rm -f core conftest.err conftest.$ac_objext \
8405 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008406 done
cristy8b350f62009-11-15 23:12:43 +00008407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008408$as_echo "$attr_name" >&6; }
8409 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8410
8411cat >>confdefs.h <<_ACEOF
8412#define PTHREAD_CREATE_JOINABLE $attr_name
8413_ACEOF
8414
8415 fi
8416
cristy8b350f62009-11-15 23:12:43 +00008417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008418$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8419 flag=no
8420 case "${host_cpu}-${host_os}" in
8421 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8422 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8423 esac
cristy8b350f62009-11-15 23:12:43 +00008424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008425$as_echo "${flag}" >&6; }
8426 if test "x$flag" != xno; then
8427 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8428 fi
8429
8430 LIBS="$save_LIBS"
8431 CFLAGS="$save_CFLAGS"
8432
8433 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008434 if test x"$GCC" != xyes; then
8435 for ac_prog in xlc_r cc_r
8436do
8437 # Extract the first word of "$ac_prog", so it can be a program name with args.
8438set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008440$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008441if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008442 $as_echo_n "(cached) " >&6
8443else
8444 if test -n "$PTHREAD_CC"; then
8445 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8446else
8447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448for as_dir in $PATH
8449do
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008452 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008453 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 +00008454 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008456 break 2
8457 fi
8458done
cristy8b350f62009-11-15 23:12:43 +00008459 done
cristy3ed852e2009-09-05 21:47:34 +00008460IFS=$as_save_IFS
8461
cristy3ed852e2009-09-05 21:47:34 +00008462fi
8463fi
8464PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8465if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008467$as_echo "$PTHREAD_CC" >&6; }
8468else
cristy8b350f62009-11-15 23:12:43 +00008469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008470$as_echo "no" >&6; }
8471fi
8472
cristy736173a2009-09-20 21:18:22 +00008473
8474 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008475done
cristy736173a2009-09-20 21:18:22 +00008476test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008477
cristy736173a2009-09-20 21:18:22 +00008478 else
8479 PTHREAD_CC=$CC
8480 fi
cristy3ed852e2009-09-05 21:47:34 +00008481else
cristy736173a2009-09-20 21:18:22 +00008482 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008483fi
8484
cristy3ed852e2009-09-05 21:47:34 +00008485
8486
8487
8488
8489# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008490if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008491
cristy8b350f62009-11-15 23:12:43 +00008492$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008493
8494 :
8495else
cristy964cb7f2010-04-25 23:18:00 +00008496 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008497
8498fi
8499ac_ext=c
8500ac_cpp='$CPP $CPPFLAGS'
8501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8503ac_compiler_gnu=$ac_cv_c_compiler_gnu
8504
8505
cristy964cb7f2010-04-25 23:18:00 +00008506 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008507 have_threads=yes
8508 DEF_THREAD="$PTHREAD_CFLAGS"
8509 CFLAGS="$CFLAGS $DEF_THREAD"
8510 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8511 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008512 { $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 +00008513$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8514 CC="$PTHREAD_CC"
8515 fi
8516 fi
8517fi
8518
8519# Enable support for OpenMP
8520if test "$have_threads" != 'yes'; then
8521 ac_cv_prog_c_openmp=unsupported
8522fi
8523
8524 OPENMP_CFLAGS=
8525 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008526if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008527 enableval=$enable_openmp;
8528fi
8529
8530 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008532$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008533if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008534 $as_echo_n "(cached) " >&6
8535else
cristy8b350f62009-11-15 23:12:43 +00008536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008538
8539#ifndef _OPENMP
8540 choke me
8541#endif
8542#include <omp.h>
8543int main () { return omp_get_num_threads (); }
8544
8545_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008546if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008547 ac_cv_prog_c_openmp='none needed'
8548else
cristy8b350f62009-11-15 23:12:43 +00008549 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008550 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8551 ac_save_CFLAGS=$CFLAGS
8552 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008555
8556#ifndef _OPENMP
8557 choke me
8558#endif
8559#include <omp.h>
8560int main () { return omp_get_num_threads (); }
8561
8562_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008563if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008564 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008565fi
cristy8b350f62009-11-15 23:12:43 +00008566rm -f core conftest.err conftest.$ac_objext \
8567 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008568 CFLAGS=$ac_save_CFLAGS
8569 if test "$ac_cv_prog_c_openmp" != unsupported; then
8570 break
8571 fi
8572 done
8573fi
cristy8b350f62009-11-15 23:12:43 +00008574rm -f core conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008576fi
cristy8b350f62009-11-15 23:12:43 +00008577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008578$as_echo "$ac_cv_prog_c_openmp" >&6; }
8579 case $ac_cv_prog_c_openmp in #(
8580 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008581 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008582 *)
cristy8b350f62009-11-15 23:12:43 +00008583 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008584 esac
8585 fi
8586
8587
8588CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8589MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8590
8591
cristy736173a2009-09-20 21:18:22 +00008592# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008593
cristy964cb7f2010-04-25 23:18:00 +00008594
8595
8596ac_ext=c
8597ac_cpp='$CPP $CPPFLAGS'
8598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8600ac_compiler_gnu=$ac_cv_c_compiler_gnu
8601
8602ax_pthread_ok=no
8603
8604# We used to check for pthread.h first, but this fails if pthread.h
8605# requires special compiler flags (e.g. on True64 or Sequent).
8606# It gets checked for in the link test anyway.
8607
8608# First of all, check if the user has set any of the PTHREAD_LIBS,
8609# etcetera environment variables, and if threads linking works using
8610# them:
8611if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8612 save_CFLAGS="$CFLAGS"
8613 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8614 save_LIBS="$LIBS"
8615 LIBS="$PTHREAD_LIBS $LIBS"
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8617$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619/* end confdefs.h. */
8620
8621/* Override any GCC internal prototype to avoid an error.
8622 Use char because int might match the return type of a GCC
8623 builtin and then its argument prototype would still apply. */
8624#ifdef __cplusplus
8625extern "C"
8626#endif
8627char pthread_join ();
8628int
8629main ()
8630{
8631return pthread_join ();
8632 ;
8633 return 0;
8634}
8635_ACEOF
8636if ac_fn_c_try_link "$LINENO"; then :
8637 ax_pthread_ok=yes
8638fi
8639rm -f core conftest.err conftest.$ac_objext \
8640 conftest$ac_exeext conftest.$ac_ext
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8642$as_echo "$ax_pthread_ok" >&6; }
8643 if test x"$ax_pthread_ok" = xno; then
8644 PTHREAD_LIBS=""
8645 PTHREAD_CFLAGS=""
8646 fi
8647 LIBS="$save_LIBS"
8648 CFLAGS="$save_CFLAGS"
8649fi
8650
8651# We must check for the threads library under a number of different
8652# names; the ordering is very important because some systems
8653# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8654# libraries is broken (non-POSIX).
8655
8656# Create a list of thread flags to try. Items starting with a "-" are
8657# C compiler flags, and other items are library names, except for "none"
8658# which indicates that we try without any flags at all, and "pthread-config"
8659# which is a program returning the flags for the Pth emulation library.
8660
8661ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8662
8663# The ordering *is* (sometimes) important. Some notes on the
8664# individual items follow:
8665
8666# pthreads: AIX (must check this before -lpthread)
8667# none: in case threads are in libc; should be tried before -Kthread and
8668# other compiler flags to prevent continual compiler warnings
8669# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8670# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8671# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8672# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8673# -pthreads: Solaris/gcc
8674# -mthreads: Mingw32/gcc, Lynx/gcc
8675# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8676# doesn't hurt to check since this sometimes defines pthreads too;
8677# also defines -D_REENTRANT)
8678# ... -mt is also the pthreads flag for HP/aCC
8679# pthread: Linux, etcetera
8680# --thread-safe: KAI C++
8681# pthread-config: use pthread-config program (for GNU Pth library)
8682
8683case "${host_cpu}-${host_os}" in
8684 *solaris*)
8685
8686 # On Solaris (at least, for some versions), libc contains stubbed
8687 # (non-functional) versions of the pthreads routines, so link-based
8688 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8689 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8690 # a function called by this macro, so we could check for that, but
8691 # who knows whether they'll stub that too in a future libc.) So,
8692 # we'll just look for -pthreads and -lpthread first:
8693
8694 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8695 ;;
8696
8697 *-darwin*)
8698 acx_pthread_flags="-pthread $acx_pthread_flags"
8699 ;;
8700esac
8701
8702if test x"$ax_pthread_ok" = xno; then
8703for flag in $ax_pthread_flags; do
8704
8705 case $flag in
8706 none)
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8708$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8709 ;;
8710
8711 -*)
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8713$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8714 PTHREAD_CFLAGS="$flag"
8715 ;;
8716
8717 pthread-config)
8718 # Extract the first word of "pthread-config", so it can be a program name with args.
8719set dummy pthread-config; ac_word=$2
8720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8721$as_echo_n "checking for $ac_word... " >&6; }
8722if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8723 $as_echo_n "(cached) " >&6
8724else
8725 if test -n "$ax_pthread_config"; then
8726 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8727else
8728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729for as_dir in $PATH
8730do
8731 IFS=$as_save_IFS
8732 test -z "$as_dir" && as_dir=.
8733 for ac_exec_ext in '' $ac_executable_extensions; do
8734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8735 ac_cv_prog_ax_pthread_config="yes"
8736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737 break 2
8738 fi
8739done
8740 done
8741IFS=$as_save_IFS
8742
8743 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8744fi
8745fi
8746ax_pthread_config=$ac_cv_prog_ax_pthread_config
8747if test -n "$ax_pthread_config"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8749$as_echo "$ax_pthread_config" >&6; }
8750else
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752$as_echo "no" >&6; }
8753fi
8754
8755
8756 if test x"$ax_pthread_config" = xno; then continue; fi
8757 PTHREAD_CFLAGS="`pthread-config --cflags`"
8758 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8759 ;;
8760
8761 *)
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8763$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8764 PTHREAD_LIBS="-l$flag"
8765 ;;
8766 esac
8767
8768 save_LIBS="$LIBS"
8769 save_CFLAGS="$CFLAGS"
8770 LIBS="$PTHREAD_LIBS $LIBS"
8771 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8772
8773 # Check for various functions. We must include pthread.h,
8774 # since some functions may be macros. (On the Sequent, we
8775 # need a special flag -Kthread to make this header compile.)
8776 # We check for pthread_join because it is in -lpthread on IRIX
8777 # while pthread_create is in libc. We check for pthread_attr_init
8778 # due to DEC craziness with -lpthreads. We check for
8779 # pthread_cleanup_push because it is one of the few pthread
8780 # functions on Solaris that doesn't have a non-functional libc stub.
8781 # We try pthread_create on general principles.
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783/* end confdefs.h. */
8784#include <pthread.h>
8785 static void routine(void* a) {a=0;}
8786 static void* start_routine(void* a) {return a;}
8787int
8788main ()
8789{
8790pthread_t th; pthread_attr_t attr;
8791 pthread_join(th, 0);
8792 pthread_attr_init(&attr);
8793 pthread_cleanup_push(routine, 0);
8794 pthread_create(&th,0,start_routine,0);
8795 pthread_cleanup_pop(0);
8796 ;
8797 return 0;
8798}
8799_ACEOF
8800if ac_fn_c_try_link "$LINENO"; then :
8801 ax_pthread_ok=yes
8802fi
8803rm -f core conftest.err conftest.$ac_objext \
8804 conftest$ac_exeext conftest.$ac_ext
8805
8806 LIBS="$save_LIBS"
8807 CFLAGS="$save_CFLAGS"
8808
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8810$as_echo "$ax_pthread_ok" >&6; }
8811 if test "x$ax_pthread_ok" = xyes; then
8812 break;
8813 fi
8814
8815 PTHREAD_LIBS=""
8816 PTHREAD_CFLAGS=""
8817done
8818fi
8819
8820# Various other checks:
8821if test "x$ax_pthread_ok" = xyes; then
8822 save_LIBS="$LIBS"
8823 LIBS="$PTHREAD_LIBS $LIBS"
8824 save_CFLAGS="$CFLAGS"
8825 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8826
8827 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8829$as_echo_n "checking for joinable pthread attribute... " >&6; }
8830 attr_name=unknown
8831 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833/* end confdefs.h. */
8834#include <pthread.h>
8835int
8836main ()
8837{
8838int attr=$attr; return attr;
8839 ;
8840 return 0;
8841}
8842_ACEOF
8843if ac_fn_c_try_link "$LINENO"; then :
8844 attr_name=$attr; break
8845fi
8846rm -f core conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
8848 done
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8850$as_echo "$attr_name" >&6; }
8851 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8852
8853cat >>confdefs.h <<_ACEOF
8854#define PTHREAD_CREATE_JOINABLE $attr_name
8855_ACEOF
8856
8857 fi
8858
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8860$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8861 flag=no
8862 case "${host_cpu}-${host_os}" in
8863 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8864 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8865 esac
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8867$as_echo "${flag}" >&6; }
8868 if test "x$flag" != xno; then
8869 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8870 fi
8871
8872 LIBS="$save_LIBS"
8873 CFLAGS="$save_CFLAGS"
8874
8875 # More AIX lossage: must compile with xlc_r or cc_r
8876 if test x"$GCC" != xyes; then
8877 for ac_prog in xlc_r cc_r
8878do
8879 # Extract the first word of "$ac_prog", so it can be a program name with args.
8880set dummy $ac_prog; ac_word=$2
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882$as_echo_n "checking for $ac_word... " >&6; }
8883if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8884 $as_echo_n "(cached) " >&6
8885else
8886 if test -n "$PTHREAD_CC"; then
8887 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8888else
8889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890for as_dir in $PATH
8891do
8892 IFS=$as_save_IFS
8893 test -z "$as_dir" && as_dir=.
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8896 ac_cv_prog_PTHREAD_CC="$ac_prog"
8897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898 break 2
8899 fi
8900done
8901 done
8902IFS=$as_save_IFS
8903
8904fi
8905fi
8906PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8907if test -n "$PTHREAD_CC"; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8909$as_echo "$PTHREAD_CC" >&6; }
8910else
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912$as_echo "no" >&6; }
8913fi
8914
8915
8916 test -n "$PTHREAD_CC" && break
8917done
8918test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8919
8920 else
8921 PTHREAD_CC=$CC
8922 fi
8923else
8924 PTHREAD_CC="$CC"
8925fi
8926
8927
8928
8929
8930
8931# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8932if test x"$ax_pthread_ok" = xyes; then
8933
8934$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8935
8936 :
8937else
8938 ax_pthread_ok=no
8939
8940fi
8941ac_ext=c
8942ac_cpp='$CPP $CPPFLAGS'
8943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8945ac_compiler_gnu=$ac_cv_c_compiler_gnu
8946
8947
8948
cristy43596fe2010-01-21 16:46:08 +00008949# Check whether --enable-opencl was given.
8950if test "${enable_opencl+set}" = set; then :
8951 enableval=$enable_opencl; disable_opencl=$enableval
8952else
8953 disable_opencl='yes'
8954fi
8955
8956
8957if test "$disable_opencl" = 'yes'; then
8958 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008959ac_cpp='$CPP $CPPFLAGS'
8960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8962ac_compiler_gnu=$ac_cv_c_compiler_gnu
8963
cristy43596fe2010-01-21 16:46:08 +00008964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008965$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008966if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008967 $as_echo_n "(cached) " >&6
8968else
cristy8b350f62009-11-15 23:12:43 +00008969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008970/* end confdefs.h. */
8971
8972int
8973main ()
8974{
8975#ifndef _MSC_VER
8976 choke me
8977#endif
8978
8979 ;
8980 return 0;
8981}
8982_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008983if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008984 ax_compiler_ms=yes
8985else
cristy8b350f62009-11-15 23:12:43 +00008986 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008987fi
cristy736173a2009-09-20 21:18:22 +00008988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989ax_cv_c_compiler_ms=$ax_compiler_ms
8990
8991fi
cristy8b350f62009-11-15 23:12:43 +00008992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008993$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008994 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008995 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8996fi
8997
cristy43596fe2010-01-21 16:46:08 +00008998 ax_save_CPPFLAGS=$CPPFLAGS
8999 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9000 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00009001do :
9002 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9003ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9004eval as_val=\$$as_ac_Header
9005 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00009006 cat >>confdefs.h <<_ACEOF
9007#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9008_ACEOF
9009
9010fi
9011
9012done
9013
cristy43596fe2010-01-21 16:46:08 +00009014 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009015
cristy43596fe2010-01-21 16:46:08 +00009016 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00009017do :
9018 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9019if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00009020 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009021#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00009022_ACEOF
9023
9024fi
9025
9026done
9027
9028
9029
9030
cristy43596fe2010-01-21 16:46:08 +00009031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00009032$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009033if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00009034 $as_echo_n "(cached) " >&6
9035else
9036 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00009037 case $host_cpu in
9038 x86_64) ax_check_cl_libdir=lib64 ;;
9039 *) ax_check_cl_libdir=lib ;;
9040 esac
9041 ax_save_CPPFLAGS=$CPPFLAGS
9042 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9043 ax_save_LIBS=$LIBS
9044 LIBS=""
9045 ax_check_libs="-lOpenCL -lCL -lclparser"
9046 for ax_lib in $ax_check_libs; do
9047 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009048 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9049else
9050 ax_try_lib=$ax_lib
9051fi
cristy43596fe2010-01-21 16:46:08 +00009052 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009054/* end confdefs.h. */
9055
cristy43596fe2010-01-21 16:46:08 +00009056 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9057 # include <windows.h>
9058 # endif
9059 # ifdef HAVE_CL_CL_H
9060 # include <CL/cl.h>
9061 # elif defined(HAVE_OPENCL_CL_H)
9062 # include <OpenCL/cl.h>
9063 # else
9064 # error no CL.h
9065 # endif
cristy736173a2009-09-20 21:18:22 +00009066int
9067main ()
9068{
cristyc7083c12009-10-14 03:16:55 +00009069clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009070 ;
9071 return 0;
9072}
9073_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009074if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009075 ax_cv_check_cl_libcl=$ax_try_lib; break
9076else
cristy8b350f62009-11-15 23:12:43 +00009077 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 +00009078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009079/* end confdefs.h. */
9080
cristy43596fe2010-01-21 16:46:08 +00009081 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9082 # include <windows.h>
9083 # endif
9084 # ifdef HAVE_CL_CL_H
9085 # include <CL/cl.h>
9086 # elif defined(HAVE_OPENCL_CL_H)
9087 # include <OpenCL/cl.h>
9088 # else
9089 # error no CL.h
9090 # endif
cristy736173a2009-09-20 21:18:22 +00009091int
9092main ()
9093{
cristyc7083c12009-10-14 03:16:55 +00009094clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009095 ;
9096 return 0;
9097}
9098_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009099if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009100 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9101else
cristy4dc44432009-12-30 23:30:06 +00009102 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 +00009103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009104/* end confdefs.h. */
9105
cristy43596fe2010-01-21 16:46:08 +00009106 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9107 # include <windows.h>
9108 # endif
9109 # ifdef HAVE_CL_CL_H
9110 # include <CL/cl.h>
9111 # elif defined(HAVE_OPENCL_CL_H)
9112 # include <OpenCL/cl.h>
9113 # else
9114 # error no CL.h
9115 # endif
cristy736173a2009-09-20 21:18:22 +00009116int
9117main ()
9118{
cristyc7083c12009-10-14 03:16:55 +00009119clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009120 ;
9121 return 0;
9122}
9123_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009124if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009125 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009126fi
cristy8b350f62009-11-15 23:12:43 +00009127rm -f core conftest.err conftest.$ac_objext \
9128 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009129fi
cristy8b350f62009-11-15 23:12:43 +00009130rm -f core conftest.err conftest.$ac_objext \
9131 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009132fi
cristy8b350f62009-11-15 23:12:43 +00009133rm -f core conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009135 done
cristy736173a2009-09-20 21:18:22 +00009136
cristy43596fe2010-01-21 16:46:08 +00009137 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009138 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009140/* end confdefs.h. */
9141
cristy43596fe2010-01-21 16:46:08 +00009142 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9143 # include <windows.h>
9144 # endif
9145 # ifdef HAVE_CL_CL_H
9146 # include <CL/cl.h>
9147 # elif defined(HAVE_OPENCL_CL_H)
9148 # include <OpenCL/cl.h>
9149 # else
9150 # error no CL.h
9151 # endif
cristy736173a2009-09-20 21:18:22 +00009152int
9153main ()
9154{
cristyc7083c12009-10-14 03:16:55 +00009155clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009156 ;
9157 return 0;
9158}
9159_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009160if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009161 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009162fi
cristy8b350f62009-11-15 23:12:43 +00009163rm -f core conftest.err conftest.$ac_objext \
9164 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009165fi
9166
cristy43596fe2010-01-21 16:46:08 +00009167 LIBS=$ax_save_LIBS
9168 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009169fi
cristy8b350f62009-11-15 23:12:43 +00009170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009171$as_echo "$ax_cv_check_cl_libcl" >&6; }
9172
cristy43596fe2010-01-21 16:46:08 +00009173 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009174 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9175else
cristy99cc3002010-01-21 14:50:11 +00009176 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9177$as_echo "#define _OPENCL 1" >>confdefs.h
9178
cristy736173a2009-09-20 21:18:22 +00009179fi
cristy43596fe2010-01-21 16:46:08 +00009180 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009181ac_cpp='$CPP $CPPFLAGS'
9182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9184ac_compiler_gnu=$ac_cv_c_compiler_gnu
9185
cristy43596fe2010-01-21 16:46:08 +00009186fi
cristy736173a2009-09-20 21:18:22 +00009187
9188
9189
9190
cristyc7083c12009-10-14 03:16:55 +00009191CFLAGS="$CL_CFLAGS $CFLAGS"
9192LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009193
cristy2e8b51d2009-10-17 18:26:15 +00009194
cristy3ed852e2009-09-05 21:47:34 +00009195########
9196#
9197# Check for large file support
9198#
9199########
9200# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009201if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009202 enableval=$enable_largefile;
9203fi
9204
9205if test "$enable_largefile" != no; then
9206
cristy8b350f62009-11-15 23:12:43 +00009207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009208$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009209if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009210 $as_echo_n "(cached) " >&6
9211else
9212 ac_cv_sys_largefile_CC=no
9213 if test "$GCC" != yes; then
9214 ac_save_CC=$CC
9215 while :; do
9216 # IRIX 6.2 and later do not support large files by default,
9217 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009219/* end confdefs.h. */
9220#include <sys/types.h>
9221 /* Check that off_t can represent 2**63 - 1 correctly.
9222 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9223 since some C++ compilers masquerading as C compilers
9224 incorrectly reject 9223372036854775807. */
9225#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9226 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9227 && LARGE_OFF_T % 2147483647 == 1)
9228 ? 1 : -1];
9229int
9230main ()
9231{
9232
9233 ;
9234 return 0;
9235}
9236_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009237 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009238 break
cristy3ed852e2009-09-05 21:47:34 +00009239fi
cristy3ed852e2009-09-05 21:47:34 +00009240rm -f core conftest.err conftest.$ac_objext
9241 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009242 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009243 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009244fi
cristy3ed852e2009-09-05 21:47:34 +00009245rm -f core conftest.err conftest.$ac_objext
9246 break
9247 done
9248 CC=$ac_save_CC
9249 rm -f conftest.$ac_ext
9250 fi
9251fi
cristy8b350f62009-11-15 23:12:43 +00009252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009253$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9254 if test "$ac_cv_sys_largefile_CC" != no; then
9255 CC=$CC$ac_cv_sys_largefile_CC
9256 fi
9257
cristy8b350f62009-11-15 23:12:43 +00009258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009259$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009260if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009261 $as_echo_n "(cached) " >&6
9262else
9263 while :; do
cristy8b350f62009-11-15 23:12:43 +00009264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009265/* end confdefs.h. */
9266#include <sys/types.h>
9267 /* Check that off_t can represent 2**63 - 1 correctly.
9268 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9269 since some C++ compilers masquerading as C compilers
9270 incorrectly reject 9223372036854775807. */
9271#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9273 && LARGE_OFF_T % 2147483647 == 1)
9274 ? 1 : -1];
9275int
9276main ()
9277{
9278
9279 ;
9280 return 0;
9281}
9282_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009283if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009284 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009285fi
cristy3ed852e2009-09-05 21:47:34 +00009286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009288/* end confdefs.h. */
9289#define _FILE_OFFSET_BITS 64
9290#include <sys/types.h>
9291 /* Check that off_t can represent 2**63 - 1 correctly.
9292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9293 since some C++ compilers masquerading as C compilers
9294 incorrectly reject 9223372036854775807. */
9295#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9297 && LARGE_OFF_T % 2147483647 == 1)
9298 ? 1 : -1];
9299int
9300main ()
9301{
9302
9303 ;
9304 return 0;
9305}
9306_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009307if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009308 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009309fi
cristy3ed852e2009-09-05 21:47:34 +00009310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9311 ac_cv_sys_file_offset_bits=unknown
9312 break
9313done
9314fi
cristy8b350f62009-11-15 23:12:43 +00009315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009316$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9317case $ac_cv_sys_file_offset_bits in #(
9318 no | unknown) ;;
9319 *)
9320cat >>confdefs.h <<_ACEOF
9321#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9322_ACEOF
9323;;
9324esac
9325rm -rf conftest*
9326 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009328$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009329if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009330 $as_echo_n "(cached) " >&6
9331else
9332 while :; do
cristy8b350f62009-11-15 23:12:43 +00009333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009334/* end confdefs.h. */
9335#include <sys/types.h>
9336 /* Check that off_t can represent 2**63 - 1 correctly.
9337 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9338 since some C++ compilers masquerading as C compilers
9339 incorrectly reject 9223372036854775807. */
9340#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9341 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9342 && LARGE_OFF_T % 2147483647 == 1)
9343 ? 1 : -1];
9344int
9345main ()
9346{
9347
9348 ;
9349 return 0;
9350}
9351_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009352if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009353 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009354fi
cristy3ed852e2009-09-05 21:47:34 +00009355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009357/* end confdefs.h. */
9358#define _LARGE_FILES 1
9359#include <sys/types.h>
9360 /* Check that off_t can represent 2**63 - 1 correctly.
9361 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9362 since some C++ compilers masquerading as C compilers
9363 incorrectly reject 9223372036854775807. */
9364#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9366 && LARGE_OFF_T % 2147483647 == 1)
9367 ? 1 : -1];
9368int
9369main ()
9370{
9371
9372 ;
9373 return 0;
9374}
9375_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009376if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009377 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009378fi
cristy3ed852e2009-09-05 21:47:34 +00009379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9380 ac_cv_sys_large_files=unknown
9381 break
9382done
9383fi
cristy8b350f62009-11-15 23:12:43 +00009384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009385$as_echo "$ac_cv_sys_large_files" >&6; }
9386case $ac_cv_sys_large_files in #(
9387 no | unknown) ;;
9388 *)
9389cat >>confdefs.h <<_ACEOF
9390#define _LARGE_FILES $ac_cv_sys_large_files
9391_ACEOF
9392;;
9393esac
9394rm -rf conftest*
9395 fi
9396fi
9397
cristy8b350f62009-11-15 23:12:43 +00009398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009399$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009400if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009401 $as_echo_n "(cached) " >&6
9402else
9403 while :; do
cristy8b350f62009-11-15 23:12:43 +00009404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009405/* end confdefs.h. */
9406#include <sys/types.h> /* for off_t */
9407 #include <stdio.h>
9408int
9409main ()
9410{
9411int (*fp) (FILE *, off_t, int) = fseeko;
9412 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9413 ;
9414 return 0;
9415}
9416_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009417if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009418 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009419fi
cristy8b350f62009-11-15 23:12:43 +00009420rm -f core conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext conftest.$ac_ext
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009423/* end confdefs.h. */
9424#define _LARGEFILE_SOURCE 1
9425#include <sys/types.h> /* for off_t */
9426 #include <stdio.h>
9427int
9428main ()
9429{
9430int (*fp) (FILE *, off_t, int) = fseeko;
9431 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9432 ;
9433 return 0;
9434}
9435_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009436if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009437 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009438fi
cristy8b350f62009-11-15 23:12:43 +00009439rm -f core conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009441 ac_cv_sys_largefile_source=unknown
9442 break
9443done
9444fi
cristy8b350f62009-11-15 23:12:43 +00009445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009446$as_echo "$ac_cv_sys_largefile_source" >&6; }
9447case $ac_cv_sys_largefile_source in #(
9448 no | unknown) ;;
9449 *)
9450cat >>confdefs.h <<_ACEOF
9451#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9452_ACEOF
9453;;
9454esac
9455rm -rf conftest*
9456
9457# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9458# in glibc 2.1.3, but that breaks too many other things.
9459# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9460if test $ac_cv_sys_largefile_source != unknown; then
9461
cristy8b350f62009-11-15 23:12:43 +00009462$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009463
9464fi
9465
9466LFS_CPPFLAGS=''
9467if test "$enable_largefile" != no; then
9468 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9469 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9470 else
cristy8b350f62009-11-15 23:12:43 +00009471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009472$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009473 if test "$cross_compiling" = yes; then :
9474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00009476as_fn_error "cannot run test program while cross compiling
9477See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009478else
cristy8b350f62009-11-15 23:12:43 +00009479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009481#include <unistd.h>
9482 main () {
9483 exit(!(sizeof(off_t) == 8));
9484 }
9485_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009486if ac_fn_c_try_run "$LINENO"; then :
9487 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009488
cristy8b350f62009-11-15 23:12:43 +00009489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009490$as_echo "yes" >&6; }
9491else
cristy8b350f62009-11-15 23:12:43 +00009492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009493$as_echo "no" >&6; }
9494fi
cristy8b350f62009-11-15 23:12:43 +00009495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9496 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009497fi
9498
cristy3ed852e2009-09-05 21:47:34 +00009499 fi
9500 if test "$ac_cv_sys_large_files" != 'no'; then
9501 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9502 fi
9503 if test "$ac_cv_sys_largefile_source" != 'no'; then
9504 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9505 fi
9506fi
9507
9508
9509#
9510# Configure libtool & libltdl
9511#
9512# Configure libtool
9513enable_dlopen=yes
9514
9515
9516
9517case `pwd` in
9518 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009520$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9521esac
9522
9523
9524
cristy18304f92009-11-22 15:48:26 +00009525macro_version='2.2.6b'
9526macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00009527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540ltmain="$ac_aux_dir/ltmain.sh"
9541
cristy8b350f62009-11-15 23:12:43 +00009542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009543$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009544if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009545 $as_echo_n "(cached) " >&6
9546else
9547 if test -n "$NM"; then
9548 # Let the user override the test.
9549 lt_cv_path_NM="$NM"
9550else
9551 lt_nm_to_check="${ac_tool_prefix}nm"
9552 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9553 lt_nm_to_check="$lt_nm_to_check nm"
9554 fi
9555 for lt_tmp_nm in $lt_nm_to_check; do
9556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9557 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9558 IFS="$lt_save_ifs"
9559 test -z "$ac_dir" && ac_dir=.
9560 tmp_nm="$ac_dir/$lt_tmp_nm"
9561 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9562 # Check to see if the nm accepts a BSD-compat flag.
9563 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9564 # nm: unknown option "B" ignored
9565 # Tru64's nm complains that /dev/null is an invalid object file
9566 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9567 */dev/null* | *'Invalid file or object type'*)
9568 lt_cv_path_NM="$tmp_nm -B"
9569 break
9570 ;;
9571 *)
9572 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9573 */dev/null*)
9574 lt_cv_path_NM="$tmp_nm -p"
9575 break
9576 ;;
9577 *)
9578 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9579 continue # so that we can try to find one that supports BSD flags
9580 ;;
9581 esac
9582 ;;
9583 esac
9584 fi
9585 done
9586 IFS="$lt_save_ifs"
9587 done
9588 : ${lt_cv_path_NM=no}
9589fi
9590fi
cristy8b350f62009-11-15 23:12:43 +00009591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009592$as_echo "$lt_cv_path_NM" >&6; }
9593if test "$lt_cv_path_NM" != "no"; then
9594 NM="$lt_cv_path_NM"
9595else
9596 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00009597 if test -n "$ac_tool_prefix"; then
9598 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009599 do
9600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9601set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009603$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009604if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009605 $as_echo_n "(cached) " >&6
9606else
9607 if test -n "$DUMPBIN"; then
9608 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9609else
9610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611for as_dir in $PATH
9612do
9613 IFS=$as_save_IFS
9614 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009615 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9617 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009619 break 2
9620 fi
9621done
cristy8b350f62009-11-15 23:12:43 +00009622 done
cristy3ed852e2009-09-05 21:47:34 +00009623IFS=$as_save_IFS
9624
9625fi
9626fi
9627DUMPBIN=$ac_cv_prog_DUMPBIN
9628if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009630$as_echo "$DUMPBIN" >&6; }
9631else
cristy8b350f62009-11-15 23:12:43 +00009632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009633$as_echo "no" >&6; }
9634fi
9635
9636
9637 test -n "$DUMPBIN" && break
9638 done
9639fi
9640if test -z "$DUMPBIN"; then
9641 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00009642 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009643do
9644 # Extract the first word of "$ac_prog", so it can be a program name with args.
9645set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009647$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009648if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009649 $as_echo_n "(cached) " >&6
9650else
9651 if test -n "$ac_ct_DUMPBIN"; then
9652 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9653else
9654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655for as_dir in $PATH
9656do
9657 IFS=$as_save_IFS
9658 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9661 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009663 break 2
9664 fi
9665done
cristy8b350f62009-11-15 23:12:43 +00009666 done
cristy3ed852e2009-09-05 21:47:34 +00009667IFS=$as_save_IFS
9668
9669fi
9670fi
9671ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9672if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009674$as_echo "$ac_ct_DUMPBIN" >&6; }
9675else
cristy8b350f62009-11-15 23:12:43 +00009676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009677$as_echo "no" >&6; }
9678fi
9679
9680
9681 test -n "$ac_ct_DUMPBIN" && break
9682done
9683
9684 if test "x$ac_ct_DUMPBIN" = x; then
9685 DUMPBIN=":"
9686 else
9687 case $cross_compiling:$ac_tool_warned in
9688yes:)
cristy8b350f62009-11-15 23:12:43 +00009689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9691ac_tool_warned=yes ;;
9692esac
9693 DUMPBIN=$ac_ct_DUMPBIN
9694 fi
9695fi
9696
9697
9698 if test "$DUMPBIN" != ":"; then
9699 NM="$DUMPBIN"
9700 fi
9701fi
9702test -z "$NM" && NM=nm
9703
9704
9705
9706
9707
9708
cristy8b350f62009-11-15 23:12:43 +00009709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009710$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009711if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009712 $as_echo_n "(cached) " >&6
9713else
9714 lt_cv_nm_interface="BSD nm"
9715 echo "int some_variable = 0;" > conftest.$ac_ext
cristy935c86e2010-06-05 23:50:07 +00009716 (eval echo "\"\$as_me:9716: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009717 (eval "$ac_compile" 2>conftest.err)
9718 cat conftest.err >&5
cristy935c86e2010-06-05 23:50:07 +00009719 (eval echo "\"\$as_me:9719: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009720 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9721 cat conftest.err >&5
cristy935c86e2010-06-05 23:50:07 +00009722 (eval echo "\"\$as_me:9722: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009723 cat conftest.out >&5
9724 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9725 lt_cv_nm_interface="MS dumpbin"
9726 fi
9727 rm -f conftest*
9728fi
cristy8b350f62009-11-15 23:12:43 +00009729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009730$as_echo "$lt_cv_nm_interface" >&6; }
9731
9732# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009734$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009735if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009736 $as_echo_n "(cached) " >&6
9737else
9738 i=0
9739 teststring="ABCD"
9740
9741 case $build_os in
9742 msdosdjgpp*)
9743 # On DJGPP, this test can blow up pretty badly due to problems in libc
9744 # (any single argument exceeding 2000 bytes causes a buffer overrun
9745 # during glob expansion). Even if it were fixed, the result of this
9746 # check would be larger than it should be.
9747 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9748 ;;
9749
9750 gnu*)
9751 # Under GNU Hurd, this test is not required because there is
9752 # no limit to the length of command line arguments.
9753 # Libtool will interpret -1 as no limit whatsoever
9754 lt_cv_sys_max_cmd_len=-1;
9755 ;;
9756
9757 cygwin* | mingw* | cegcc*)
9758 # On Win9x/ME, this test blows up -- it succeeds, but takes
9759 # about 5 minutes as the teststring grows exponentially.
9760 # Worse, since 9x/ME are not pre-emptively multitasking,
9761 # you end up with a "frozen" computer, even though with patience
9762 # the test eventually succeeds (with a max line length of 256k).
9763 # Instead, let's just punt: use the minimum linelength reported by
9764 # all of the supported platforms: 8192 (on NT/2K/XP).
9765 lt_cv_sys_max_cmd_len=8192;
9766 ;;
9767
9768 amigaos*)
9769 # On AmigaOS with pdksh, this test takes hours, literally.
9770 # So we just punt and use a minimum line length of 8192.
9771 lt_cv_sys_max_cmd_len=8192;
9772 ;;
9773
9774 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9775 # This has been around since 386BSD, at least. Likely further.
9776 if test -x /sbin/sysctl; then
9777 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9778 elif test -x /usr/sbin/sysctl; then
9779 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9780 else
9781 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9782 fi
9783 # And add a safety zone
9784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9786 ;;
9787
9788 interix*)
9789 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9790 lt_cv_sys_max_cmd_len=196608
9791 ;;
9792
9793 osf*)
9794 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9795 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9796 # nice to cause kernel panics so lets avoid the loop below.
9797 # First set a reasonable default.
9798 lt_cv_sys_max_cmd_len=16384
9799 #
9800 if test -x /sbin/sysconfig; then
9801 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9802 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9803 esac
9804 fi
9805 ;;
9806 sco3.2v5*)
9807 lt_cv_sys_max_cmd_len=102400
9808 ;;
9809 sysv5* | sco5v6* | sysv4.2uw2*)
9810 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9811 if test -n "$kargmax"; then
9812 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9813 else
9814 lt_cv_sys_max_cmd_len=32768
9815 fi
9816 ;;
9817 *)
9818 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9819 if test -n "$lt_cv_sys_max_cmd_len"; then
9820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9822 else
9823 # Make teststring a little bigger before we do anything with it.
9824 # a 1K string should be a reasonable start.
9825 for i in 1 2 3 4 5 6 7 8 ; do
9826 teststring=$teststring$teststring
9827 done
9828 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9829 # If test is not a shell built-in, we'll probably end up computing a
9830 # maximum length that is only half of the actual maximum length, but
9831 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00009832 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9833 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009834 test $i != 17 # 1/2 MB should be enough
9835 do
9836 i=`expr $i + 1`
9837 teststring=$teststring$teststring
9838 done
9839 # Only check the string length outside the loop.
9840 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9841 teststring=
9842 # Add a significant safety factor because C++ compilers can tack on
9843 # massive amounts of additional arguments before passing them to the
9844 # linker. It appears as though 1/2 is a usable value.
9845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9846 fi
9847 ;;
9848 esac
9849
9850fi
9851
9852if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009854$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9855else
cristy8b350f62009-11-15 23:12:43 +00009856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009857$as_echo "none" >&6; }
9858fi
9859max_cmd_len=$lt_cv_sys_max_cmd_len
9860
9861
9862
9863
9864
9865
9866: ${CP="cp -f"}
9867: ${MV="mv -f"}
9868: ${RM="rm -f"}
9869
cristy8b350f62009-11-15 23:12:43 +00009870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009871$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9872# Try some XSI features
9873xsi_shell=no
9874( _lt_dummy="a/b/c"
9875 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9876 = c,a/b,, \
9877 && eval 'test $(( 1 + 1 )) -eq 2 \
9878 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9879 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009881$as_echo "$xsi_shell" >&6; }
9882
9883
cristy8b350f62009-11-15 23:12:43 +00009884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009885$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9886lt_shell_append=no
9887( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9888 >/dev/null 2>&1 \
9889 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009891$as_echo "$lt_shell_append" >&6; }
9892
9893
9894if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9895 lt_unset=unset
9896else
9897 lt_unset=false
9898fi
9899
9900
9901
9902
9903
9904# test EBCDIC or ASCII
9905case `echo X|tr X '\101'` in
9906 A) # ASCII based system
9907 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9908 lt_SP2NL='tr \040 \012'
9909 lt_NL2SP='tr \015\012 \040\040'
9910 ;;
9911 *) # EBCDIC based system
9912 lt_SP2NL='tr \100 \n'
9913 lt_NL2SP='tr \r\n \100\100'
9914 ;;
9915esac
9916
9917
9918
9919
9920
9921
9922
9923
9924
cristy8b350f62009-11-15 23:12:43 +00009925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009926$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009927if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009928 $as_echo_n "(cached) " >&6
9929else
9930 lt_cv_ld_reload_flag='-r'
9931fi
cristy8b350f62009-11-15 23:12:43 +00009932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009933$as_echo "$lt_cv_ld_reload_flag" >&6; }
9934reload_flag=$lt_cv_ld_reload_flag
9935case $reload_flag in
9936"" | " "*) ;;
9937*) reload_flag=" $reload_flag" ;;
9938esac
9939reload_cmds='$LD$reload_flag -o $output$reload_objs'
9940case $host_os in
9941 darwin*)
9942 if test "$GCC" = yes; then
9943 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9944 else
9945 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9946 fi
9947 ;;
9948esac
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958if test -n "$ac_tool_prefix"; then
9959 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9960set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009962$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009963if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009964 $as_echo_n "(cached) " >&6
9965else
9966 if test -n "$OBJDUMP"; then
9967 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9968else
9969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970for as_dir in $PATH
9971do
9972 IFS=$as_save_IFS
9973 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009974 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9976 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009978 break 2
9979 fi
9980done
cristy8b350f62009-11-15 23:12:43 +00009981 done
cristy3ed852e2009-09-05 21:47:34 +00009982IFS=$as_save_IFS
9983
9984fi
9985fi
9986OBJDUMP=$ac_cv_prog_OBJDUMP
9987if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009989$as_echo "$OBJDUMP" >&6; }
9990else
cristy8b350f62009-11-15 23:12:43 +00009991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009992$as_echo "no" >&6; }
9993fi
9994
9995
9996fi
9997if test -z "$ac_cv_prog_OBJDUMP"; then
9998 ac_ct_OBJDUMP=$OBJDUMP
9999 # Extract the first word of "objdump", so it can be a program name with args.
10000set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010002$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010003if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010004 $as_echo_n "(cached) " >&6
10005else
10006 if test -n "$ac_ct_OBJDUMP"; then
10007 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10008else
10009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010for as_dir in $PATH
10011do
10012 IFS=$as_save_IFS
10013 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010014 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10016 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000010017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010018 break 2
10019 fi
10020done
cristy8b350f62009-11-15 23:12:43 +000010021 done
cristy3ed852e2009-09-05 21:47:34 +000010022IFS=$as_save_IFS
10023
10024fi
10025fi
10026ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10027if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010029$as_echo "$ac_ct_OBJDUMP" >&6; }
10030else
cristy8b350f62009-11-15 23:12:43 +000010031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010032$as_echo "no" >&6; }
10033fi
10034
10035 if test "x$ac_ct_OBJDUMP" = x; then
10036 OBJDUMP="false"
10037 else
10038 case $cross_compiling:$ac_tool_warned in
10039yes:)
cristy8b350f62009-11-15 23:12:43 +000010040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10042ac_tool_warned=yes ;;
10043esac
10044 OBJDUMP=$ac_ct_OBJDUMP
10045 fi
10046else
10047 OBJDUMP="$ac_cv_prog_OBJDUMP"
10048fi
10049
10050test -z "$OBJDUMP" && OBJDUMP=objdump
10051
10052
10053
10054
10055
10056
cristy8b350f62009-11-15 23:12:43 +000010057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010058$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010059if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010060 $as_echo_n "(cached) " >&6
10061else
10062 lt_cv_file_magic_cmd='$MAGIC_CMD'
10063lt_cv_file_magic_test_file=
10064lt_cv_deplibs_check_method='unknown'
10065# Need to set the preceding variable on all platforms that support
10066# interlibrary dependencies.
10067# 'none' -- dependencies not supported.
10068# `unknown' -- same as none, but documents that we really don't know.
10069# 'pass_all' -- all dependencies passed with no checks.
10070# 'test_compile' -- check by making test program.
10071# 'file_magic [[regex]]' -- check by looking for files in library path
10072# which responds to the $file_magic_cmd with a given extended regex.
10073# If you have `file' or equivalent on your system and you're not sure
10074# whether `pass_all' will *always* work, you probably want this one.
10075
10076case $host_os in
10077aix[4-9]*)
10078 lt_cv_deplibs_check_method=pass_all
10079 ;;
10080
10081beos*)
10082 lt_cv_deplibs_check_method=pass_all
10083 ;;
10084
10085bsdi[45]*)
10086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10087 lt_cv_file_magic_cmd='/usr/bin/file -L'
10088 lt_cv_file_magic_test_file=/shlib/libc.so
10089 ;;
10090
10091cygwin*)
10092 # func_win32_libid is a shell function defined in ltmain.sh
10093 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10094 lt_cv_file_magic_cmd='func_win32_libid'
10095 ;;
10096
10097mingw* | pw32*)
10098 # Base MSYS/MinGW do not provide the 'file' command needed by
10099 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10100 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +000010101 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10103 lt_cv_file_magic_cmd='func_win32_libid'
10104 else
10105 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10106 lt_cv_file_magic_cmd='$OBJDUMP -f'
10107 fi
10108 ;;
10109
cristy18304f92009-11-22 15:48:26 +000010110cegcc)
cristy3ed852e2009-09-05 21:47:34 +000010111 # use the weaker test based on 'objdump'. See mingw*.
10112 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10113 lt_cv_file_magic_cmd='$OBJDUMP -f'
10114 ;;
10115
10116darwin* | rhapsody*)
10117 lt_cv_deplibs_check_method=pass_all
10118 ;;
10119
10120freebsd* | dragonfly*)
10121 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10122 case $host_cpu in
10123 i*86 )
10124 # Not sure whether the presence of OpenBSD here was a mistake.
10125 # Let's accept both of them until this is cleared up.
10126 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10127 lt_cv_file_magic_cmd=/usr/bin/file
10128 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10129 ;;
10130 esac
10131 else
10132 lt_cv_deplibs_check_method=pass_all
10133 fi
10134 ;;
10135
10136gnu*)
10137 lt_cv_deplibs_check_method=pass_all
10138 ;;
10139
10140hpux10.20* | hpux11*)
10141 lt_cv_file_magic_cmd=/usr/bin/file
10142 case $host_cpu in
10143 ia64*)
10144 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10145 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10146 ;;
10147 hppa*64*)
cristy18304f92009-11-22 15:48:26 +000010148 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 +000010149 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10150 ;;
10151 *)
cristy18304f92009-11-22 15:48:26 +000010152 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 +000010153 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10154 ;;
10155 esac
10156 ;;
10157
10158interix[3-9]*)
10159 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10161 ;;
10162
10163irix5* | irix6* | nonstopux*)
10164 case $LD in
10165 *-32|*"-32 ") libmagic=32-bit;;
10166 *-n32|*"-n32 ") libmagic=N32;;
10167 *-64|*"-64 ") libmagic=64-bit;;
10168 *) libmagic=never-match;;
10169 esac
10170 lt_cv_deplibs_check_method=pass_all
10171 ;;
10172
10173# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000010174linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010175 lt_cv_deplibs_check_method=pass_all
10176 ;;
10177
10178netbsd*)
10179 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10181 else
10182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10183 fi
10184 ;;
10185
10186newos6*)
10187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10188 lt_cv_file_magic_cmd=/usr/bin/file
10189 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10190 ;;
10191
10192*nto* | *qnx*)
10193 lt_cv_deplibs_check_method=pass_all
10194 ;;
10195
10196openbsd*)
10197 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10199 else
10200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10201 fi
10202 ;;
10203
10204osf3* | osf4* | osf5*)
10205 lt_cv_deplibs_check_method=pass_all
10206 ;;
10207
10208rdos*)
10209 lt_cv_deplibs_check_method=pass_all
10210 ;;
10211
10212solaris*)
10213 lt_cv_deplibs_check_method=pass_all
10214 ;;
10215
10216sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10217 lt_cv_deplibs_check_method=pass_all
10218 ;;
10219
10220sysv4 | sysv4.3*)
10221 case $host_vendor in
10222 motorola)
10223 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]'
10224 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10225 ;;
10226 ncr)
10227 lt_cv_deplibs_check_method=pass_all
10228 ;;
10229 sequent)
10230 lt_cv_file_magic_cmd='/bin/file'
10231 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10232 ;;
10233 sni)
10234 lt_cv_file_magic_cmd='/bin/file'
10235 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10236 lt_cv_file_magic_test_file=/lib/libc.so
10237 ;;
10238 siemens)
10239 lt_cv_deplibs_check_method=pass_all
10240 ;;
10241 pc)
10242 lt_cv_deplibs_check_method=pass_all
10243 ;;
10244 esac
10245 ;;
10246
10247tpf*)
10248 lt_cv_deplibs_check_method=pass_all
10249 ;;
10250esac
10251
10252fi
cristy8b350f62009-11-15 23:12:43 +000010253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010254$as_echo "$lt_cv_deplibs_check_method" >&6; }
10255file_magic_cmd=$lt_cv_file_magic_cmd
10256deplibs_check_method=$lt_cv_deplibs_check_method
10257test -z "$deplibs_check_method" && deplibs_check_method=unknown
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270if test -n "$ac_tool_prefix"; then
10271 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10272set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010274$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010275if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010276 $as_echo_n "(cached) " >&6
10277else
10278 if test -n "$AR"; then
10279 ac_cv_prog_AR="$AR" # Let the user override the test.
10280else
10281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282for as_dir in $PATH
10283do
10284 IFS=$as_save_IFS
10285 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010286 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10288 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010290 break 2
10291 fi
10292done
cristy8b350f62009-11-15 23:12:43 +000010293 done
cristy3ed852e2009-09-05 21:47:34 +000010294IFS=$as_save_IFS
10295
10296fi
10297fi
10298AR=$ac_cv_prog_AR
10299if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010301$as_echo "$AR" >&6; }
10302else
cristy8b350f62009-11-15 23:12:43 +000010303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010304$as_echo "no" >&6; }
10305fi
10306
10307
10308fi
10309if test -z "$ac_cv_prog_AR"; then
10310 ac_ct_AR=$AR
10311 # Extract the first word of "ar", so it can be a program name with args.
10312set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010314$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010315if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010316 $as_echo_n "(cached) " >&6
10317else
10318 if test -n "$ac_ct_AR"; then
10319 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10320else
10321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322for as_dir in $PATH
10323do
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010326 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10328 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010330 break 2
10331 fi
10332done
cristy8b350f62009-11-15 23:12:43 +000010333 done
cristy3ed852e2009-09-05 21:47:34 +000010334IFS=$as_save_IFS
10335
10336fi
10337fi
10338ac_ct_AR=$ac_cv_prog_ac_ct_AR
10339if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010341$as_echo "$ac_ct_AR" >&6; }
10342else
cristy8b350f62009-11-15 23:12:43 +000010343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010344$as_echo "no" >&6; }
10345fi
10346
10347 if test "x$ac_ct_AR" = x; then
10348 AR="false"
10349 else
10350 case $cross_compiling:$ac_tool_warned in
10351yes:)
cristy8b350f62009-11-15 23:12:43 +000010352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10354ac_tool_warned=yes ;;
10355esac
10356 AR=$ac_ct_AR
10357 fi
10358else
10359 AR="$ac_cv_prog_AR"
10360fi
10361
10362test -z "$AR" && AR=ar
10363test -z "$AR_FLAGS" && AR_FLAGS=cru
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375if test -n "$ac_tool_prefix"; then
10376 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10377set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010379$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010380if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010381 $as_echo_n "(cached) " >&6
10382else
10383 if test -n "$STRIP"; then
10384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10385else
10386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387for as_dir in $PATH
10388do
10389 IFS=$as_save_IFS
10390 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010391 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10393 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010395 break 2
10396 fi
10397done
cristy8b350f62009-11-15 23:12:43 +000010398 done
cristy3ed852e2009-09-05 21:47:34 +000010399IFS=$as_save_IFS
10400
10401fi
10402fi
10403STRIP=$ac_cv_prog_STRIP
10404if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010406$as_echo "$STRIP" >&6; }
10407else
cristy8b350f62009-11-15 23:12:43 +000010408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010409$as_echo "no" >&6; }
10410fi
10411
10412
10413fi
10414if test -z "$ac_cv_prog_STRIP"; then
10415 ac_ct_STRIP=$STRIP
10416 # Extract the first word of "strip", so it can be a program name with args.
10417set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010419$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010420if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010421 $as_echo_n "(cached) " >&6
10422else
10423 if test -n "$ac_ct_STRIP"; then
10424 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10425else
10426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10427for as_dir in $PATH
10428do
10429 IFS=$as_save_IFS
10430 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10433 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010435 break 2
10436 fi
10437done
cristy8b350f62009-11-15 23:12:43 +000010438 done
cristy3ed852e2009-09-05 21:47:34 +000010439IFS=$as_save_IFS
10440
10441fi
10442fi
10443ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10444if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010446$as_echo "$ac_ct_STRIP" >&6; }
10447else
cristy8b350f62009-11-15 23:12:43 +000010448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010449$as_echo "no" >&6; }
10450fi
10451
10452 if test "x$ac_ct_STRIP" = x; then
10453 STRIP=":"
10454 else
10455 case $cross_compiling:$ac_tool_warned in
10456yes:)
cristy8b350f62009-11-15 23:12:43 +000010457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10459ac_tool_warned=yes ;;
10460esac
10461 STRIP=$ac_ct_STRIP
10462 fi
10463else
10464 STRIP="$ac_cv_prog_STRIP"
10465fi
10466
10467test -z "$STRIP" && STRIP=:
10468
10469
10470
10471
10472
10473
10474if test -n "$ac_tool_prefix"; then
10475 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10476set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010478$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010479if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010480 $as_echo_n "(cached) " >&6
10481else
10482 if test -n "$RANLIB"; then
10483 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10484else
10485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486for as_dir in $PATH
10487do
10488 IFS=$as_save_IFS
10489 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10492 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010494 break 2
10495 fi
10496done
cristy8b350f62009-11-15 23:12:43 +000010497 done
cristy3ed852e2009-09-05 21:47:34 +000010498IFS=$as_save_IFS
10499
10500fi
10501fi
10502RANLIB=$ac_cv_prog_RANLIB
10503if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010505$as_echo "$RANLIB" >&6; }
10506else
cristy8b350f62009-11-15 23:12:43 +000010507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010508$as_echo "no" >&6; }
10509fi
10510
10511
10512fi
10513if test -z "$ac_cv_prog_RANLIB"; then
10514 ac_ct_RANLIB=$RANLIB
10515 # Extract the first word of "ranlib", so it can be a program name with args.
10516set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010518$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010519if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010520 $as_echo_n "(cached) " >&6
10521else
10522 if test -n "$ac_ct_RANLIB"; then
10523 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10524else
10525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526for as_dir in $PATH
10527do
10528 IFS=$as_save_IFS
10529 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010530 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10532 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010534 break 2
10535 fi
10536done
cristy8b350f62009-11-15 23:12:43 +000010537 done
cristy3ed852e2009-09-05 21:47:34 +000010538IFS=$as_save_IFS
10539
10540fi
10541fi
10542ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10543if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010545$as_echo "$ac_ct_RANLIB" >&6; }
10546else
cristy8b350f62009-11-15 23:12:43 +000010547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010548$as_echo "no" >&6; }
10549fi
10550
10551 if test "x$ac_ct_RANLIB" = x; then
10552 RANLIB=":"
10553 else
10554 case $cross_compiling:$ac_tool_warned in
10555yes:)
cristy8b350f62009-11-15 23:12:43 +000010556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10558ac_tool_warned=yes ;;
10559esac
10560 RANLIB=$ac_ct_RANLIB
10561 fi
10562else
10563 RANLIB="$ac_cv_prog_RANLIB"
10564fi
10565
10566test -z "$RANLIB" && RANLIB=:
10567
10568
10569
10570
10571
10572
10573# Determine commands to create old-style static archives.
10574old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10575old_postinstall_cmds='chmod 644 $oldlib'
10576old_postuninstall_cmds=
10577
10578if test -n "$RANLIB"; then
10579 case $host_os in
10580 openbsd*)
10581 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10582 ;;
10583 *)
10584 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10585 ;;
10586 esac
10587 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10588fi
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623# If no C compiler was specified, use CC.
10624LTCC=${LTCC-"$CC"}
10625
10626# If no C compiler flags were specified, use CFLAGS.
10627LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10628
10629# Allow CC to be a program name with arguments.
10630compiler=$CC
10631
10632
10633# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010635$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010636if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010637 $as_echo_n "(cached) " >&6
10638else
10639
10640# These are sane defaults that work on at least a few old systems.
10641# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10642
10643# Character class describing NM global symbol codes.
10644symcode='[BCDEGRST]'
10645
10646# Regexp to match symbols that can be accessed directly from C.
10647sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10648
10649# Define system-specific variables.
10650case $host_os in
10651aix*)
10652 symcode='[BCDT]'
10653 ;;
10654cygwin* | mingw* | pw32* | cegcc*)
10655 symcode='[ABCDGISTW]'
10656 ;;
10657hpux*)
10658 if test "$host_cpu" = ia64; then
10659 symcode='[ABCDEGRST]'
10660 fi
10661 ;;
10662irix* | nonstopux*)
10663 symcode='[BCDEGRST]'
10664 ;;
10665osf*)
10666 symcode='[BCDEGQRST]'
10667 ;;
10668solaris*)
10669 symcode='[BDRT]'
10670 ;;
10671sco3.2v5*)
10672 symcode='[DT]'
10673 ;;
10674sysv4.2uw2*)
10675 symcode='[DT]'
10676 ;;
10677sysv5* | sco5v6* | unixware* | OpenUNIX*)
10678 symcode='[ABDT]'
10679 ;;
10680sysv4)
10681 symcode='[DFNSTU]'
10682 ;;
10683esac
10684
10685# If we're using GNU nm, then use its standard symbol codes.
10686case `$NM -V 2>&1` in
10687*GNU* | *'with BFD'*)
10688 symcode='[ABCDGIRSTW]' ;;
10689esac
10690
10691# Transform an extracted symbol line into a proper C declaration.
10692# Some systems (esp. on ia64) link data and code symbols differently,
10693# so use this general approach.
10694lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10695
10696# Transform an extracted symbol line into symbol name and symbol address
10697lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10698lt_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'"
10699
10700# Handle CRLF in mingw tool chain
10701opt_cr=
10702case $build_os in
10703mingw*)
10704 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10705 ;;
10706esac
10707
10708# Try without a prefix underscore, then with it.
10709for ac_symprfx in "" "_"; do
10710
10711 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10712 symxfrm="\\1 $ac_symprfx\\2 \\2"
10713
10714 # Write the raw and C identifiers.
10715 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10716 # Fake it for dumpbin and say T for any non-static function
10717 # and D for any global variable.
10718 # Also find C++ and __fastcall symbols from MSVC++,
10719 # which start with @ or ?.
10720 lt_cv_sys_global_symbol_pipe="$AWK '"\
10721" {last_section=section; section=\$ 3};"\
10722" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10723" \$ 0!~/External *\|/{next};"\
10724" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10725" {if(hide[section]) next};"\
10726" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10727" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10728" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10729" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10730" ' prfx=^$ac_symprfx"
10731 else
10732 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10733 fi
10734
10735 # Check to see that the pipe works correctly.
10736 pipe_works=no
10737
10738 rm -f conftest*
10739 cat > conftest.$ac_ext <<_LT_EOF
10740#ifdef __cplusplus
10741extern "C" {
10742#endif
10743char nm_test_var;
10744void nm_test_func(void);
10745void nm_test_func(void){}
10746#ifdef __cplusplus
10747}
10748#endif
10749int main(){nm_test_var='a';nm_test_func();return(0);}
10750_LT_EOF
10751
cristy8b350f62009-11-15 23:12:43 +000010752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010753 (eval $ac_compile) 2>&5
10754 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10756 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010757 # Now try to grab the symbols.
10758 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +000010759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10760 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010761 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10763 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010764 # Try sorting and uniquifying the output.
10765 if sort "$nlist" | uniq > "$nlist"T; then
10766 mv -f "$nlist"T "$nlist"
10767 else
10768 rm -f "$nlist"T
10769 fi
10770
10771 # Make sure that we snagged all the symbols we need.
10772 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10773 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10774 cat <<_LT_EOF > conftest.$ac_ext
10775#ifdef __cplusplus
10776extern "C" {
10777#endif
10778
10779_LT_EOF
10780 # Now generate the symbol file.
10781 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10782
10783 cat <<_LT_EOF >> conftest.$ac_ext
10784
10785/* The mapping between symbol names and symbols. */
10786const struct {
10787 const char *name;
10788 void *address;
10789}
10790lt__PROGRAM__LTX_preloaded_symbols[] =
10791{
10792 { "@PROGRAM@", (void *) 0 },
10793_LT_EOF
10794 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10795 cat <<\_LT_EOF >> conftest.$ac_ext
10796 {0, (void *) 0}
10797};
10798
10799/* This works around a problem in FreeBSD linker */
10800#ifdef FREEBSD_WORKAROUND
10801static const void *lt_preloaded_setup() {
10802 return lt__PROGRAM__LTX_preloaded_symbols;
10803}
10804#endif
10805
10806#ifdef __cplusplus
10807}
10808#endif
10809_LT_EOF
10810 # Now try linking the two files.
10811 mv conftest.$ac_objext conftstm.$ac_objext
10812 lt_save_LIBS="$LIBS"
10813 lt_save_CFLAGS="$CFLAGS"
10814 LIBS="conftstm.$ac_objext"
10815 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010817 (eval $ac_link) 2>&5
10818 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10820 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010821 pipe_works=yes
10822 fi
10823 LIBS="$lt_save_LIBS"
10824 CFLAGS="$lt_save_CFLAGS"
10825 else
10826 echo "cannot find nm_test_func in $nlist" >&5
10827 fi
10828 else
10829 echo "cannot find nm_test_var in $nlist" >&5
10830 fi
10831 else
10832 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10833 fi
10834 else
10835 echo "$progname: failed program was:" >&5
10836 cat conftest.$ac_ext >&5
10837 fi
10838 rm -rf conftest* conftst*
10839
10840 # Do not use the global_symbol_pipe unless it works.
10841 if test "$pipe_works" = yes; then
10842 break
10843 else
10844 lt_cv_sys_global_symbol_pipe=
10845 fi
10846done
10847
10848fi
10849
10850if test -z "$lt_cv_sys_global_symbol_pipe"; then
10851 lt_cv_sys_global_symbol_to_cdecl=
10852fi
10853if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010855$as_echo "failed" >&6; }
10856else
cristy8b350f62009-11-15 23:12:43 +000010857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010858$as_echo "ok" >&6; }
10859fi
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010883if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010884 enableval=$enable_libtool_lock;
10885fi
10886
10887test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10888
10889# Some flags need to be propagated to the compiler or linker for good
10890# libtool support.
10891case $host in
10892ia64-*-hpux*)
10893 # Find out which ABI we are using.
10894 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010896 (eval $ac_compile) 2>&5
10897 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10899 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010900 case `/usr/bin/file conftest.$ac_objext` in
10901 *ELF-32*)
10902 HPUX_IA64_MODE="32"
10903 ;;
10904 *ELF-64*)
10905 HPUX_IA64_MODE="64"
10906 ;;
10907 esac
10908 fi
10909 rm -rf conftest*
10910 ;;
10911*-*-irix6*)
10912 # Find out which ABI we are using.
cristy935c86e2010-06-05 23:50:07 +000010913 echo '#line 10913 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010915 (eval $ac_compile) 2>&5
10916 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10918 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010919 if test "$lt_cv_prog_gnu_ld" = yes; then
10920 case `/usr/bin/file conftest.$ac_objext` in
10921 *32-bit*)
10922 LD="${LD-ld} -melf32bsmip"
10923 ;;
10924 *N32*)
10925 LD="${LD-ld} -melf32bmipn32"
10926 ;;
10927 *64-bit*)
10928 LD="${LD-ld} -melf64bmip"
10929 ;;
10930 esac
10931 else
10932 case `/usr/bin/file conftest.$ac_objext` in
10933 *32-bit*)
10934 LD="${LD-ld} -32"
10935 ;;
10936 *N32*)
10937 LD="${LD-ld} -n32"
10938 ;;
10939 *64-bit*)
10940 LD="${LD-ld} -64"
10941 ;;
10942 esac
10943 fi
10944 fi
10945 rm -rf conftest*
10946 ;;
10947
10948x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10949s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10950 # Find out which ABI we are using.
10951 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010953 (eval $ac_compile) 2>&5
10954 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10956 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010957 case `/usr/bin/file conftest.o` in
10958 *32-bit*)
10959 case $host in
10960 x86_64-*kfreebsd*-gnu)
10961 LD="${LD-ld} -m elf_i386_fbsd"
10962 ;;
10963 x86_64-*linux*)
10964 LD="${LD-ld} -m elf_i386"
10965 ;;
10966 ppc64-*linux*|powerpc64-*linux*)
10967 LD="${LD-ld} -m elf32ppclinux"
10968 ;;
10969 s390x-*linux*)
10970 LD="${LD-ld} -m elf_s390"
10971 ;;
10972 sparc64-*linux*)
10973 LD="${LD-ld} -m elf32_sparc"
10974 ;;
10975 esac
10976 ;;
10977 *64-bit*)
10978 case $host in
10979 x86_64-*kfreebsd*-gnu)
10980 LD="${LD-ld} -m elf_x86_64_fbsd"
10981 ;;
10982 x86_64-*linux*)
10983 LD="${LD-ld} -m elf_x86_64"
10984 ;;
10985 ppc*-*linux*|powerpc*-*linux*)
10986 LD="${LD-ld} -m elf64ppc"
10987 ;;
10988 s390*-*linux*|s390*-*tpf*)
10989 LD="${LD-ld} -m elf64_s390"
10990 ;;
10991 sparc*-*linux*)
10992 LD="${LD-ld} -m elf64_sparc"
10993 ;;
10994 esac
10995 ;;
10996 esac
10997 fi
10998 rm -rf conftest*
10999 ;;
11000
11001*-*-sco3.2v5*)
11002 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11003 SAVE_CFLAGS="$CFLAGS"
11004 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000011005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011006$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011007if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011008 $as_echo_n "(cached) " >&6
11009else
11010 ac_ext=c
11011ac_cpp='$CPP $CPPFLAGS'
11012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11014ac_compiler_gnu=$ac_cv_c_compiler_gnu
11015
cristy8b350f62009-11-15 23:12:43 +000011016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011017/* end confdefs.h. */
11018
11019int
11020main ()
11021{
11022
11023 ;
11024 return 0;
11025}
11026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011027if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011028 lt_cv_cc_needs_belf=yes
11029else
cristy8b350f62009-11-15 23:12:43 +000011030 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000011031fi
cristy8b350f62009-11-15 23:12:43 +000011032rm -f core conftest.err conftest.$ac_objext \
11033 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011034 ac_ext=c
11035ac_cpp='$CPP $CPPFLAGS'
11036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11038ac_compiler_gnu=$ac_cv_c_compiler_gnu
11039
11040fi
cristy8b350f62009-11-15 23:12:43 +000011041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011042$as_echo "$lt_cv_cc_needs_belf" >&6; }
11043 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11044 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11045 CFLAGS="$SAVE_CFLAGS"
11046 fi
11047 ;;
11048sparc*-*solaris*)
11049 # Find out which ABI we are using.
11050 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011052 (eval $ac_compile) 2>&5
11053 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11055 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011056 case `/usr/bin/file conftest.o` in
11057 *64-bit*)
11058 case $lt_cv_prog_gnu_ld in
11059 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11060 *)
11061 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11062 LD="${LD-ld} -64"
11063 fi
11064 ;;
11065 esac
11066 ;;
11067 esac
11068 fi
11069 rm -rf conftest*
11070 ;;
11071esac
11072
11073need_locks="$enable_libtool_lock"
11074
11075
11076 case $host_os in
11077 rhapsody* | darwin*)
11078 if test -n "$ac_tool_prefix"; then
11079 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11080set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011082$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011083if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011084 $as_echo_n "(cached) " >&6
11085else
11086 if test -n "$DSYMUTIL"; then
11087 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11088else
11089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11090for as_dir in $PATH
11091do
11092 IFS=$as_save_IFS
11093 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11096 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011098 break 2
11099 fi
11100done
cristy8b350f62009-11-15 23:12:43 +000011101 done
cristy3ed852e2009-09-05 21:47:34 +000011102IFS=$as_save_IFS
11103
11104fi
11105fi
11106DSYMUTIL=$ac_cv_prog_DSYMUTIL
11107if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011109$as_echo "$DSYMUTIL" >&6; }
11110else
cristy8b350f62009-11-15 23:12:43 +000011111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011112$as_echo "no" >&6; }
11113fi
11114
11115
11116fi
11117if test -z "$ac_cv_prog_DSYMUTIL"; then
11118 ac_ct_DSYMUTIL=$DSYMUTIL
11119 # Extract the first word of "dsymutil", so it can be a program name with args.
11120set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011122$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011123if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011124 $as_echo_n "(cached) " >&6
11125else
11126 if test -n "$ac_ct_DSYMUTIL"; then
11127 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11128else
11129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130for as_dir in $PATH
11131do
11132 IFS=$as_save_IFS
11133 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11136 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011138 break 2
11139 fi
11140done
cristy8b350f62009-11-15 23:12:43 +000011141 done
cristy3ed852e2009-09-05 21:47:34 +000011142IFS=$as_save_IFS
11143
11144fi
11145fi
11146ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11147if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011149$as_echo "$ac_ct_DSYMUTIL" >&6; }
11150else
cristy8b350f62009-11-15 23:12:43 +000011151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011152$as_echo "no" >&6; }
11153fi
11154
11155 if test "x$ac_ct_DSYMUTIL" = x; then
11156 DSYMUTIL=":"
11157 else
11158 case $cross_compiling:$ac_tool_warned in
11159yes:)
cristy8b350f62009-11-15 23:12:43 +000011160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11162ac_tool_warned=yes ;;
11163esac
11164 DSYMUTIL=$ac_ct_DSYMUTIL
11165 fi
11166else
11167 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11168fi
11169
11170 if test -n "$ac_tool_prefix"; then
11171 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11172set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011174$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011175if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011176 $as_echo_n "(cached) " >&6
11177else
11178 if test -n "$NMEDIT"; then
11179 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11180else
11181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182for as_dir in $PATH
11183do
11184 IFS=$as_save_IFS
11185 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11188 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011190 break 2
11191 fi
11192done
cristy8b350f62009-11-15 23:12:43 +000011193 done
cristy3ed852e2009-09-05 21:47:34 +000011194IFS=$as_save_IFS
11195
11196fi
11197fi
11198NMEDIT=$ac_cv_prog_NMEDIT
11199if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011201$as_echo "$NMEDIT" >&6; }
11202else
cristy8b350f62009-11-15 23:12:43 +000011203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011204$as_echo "no" >&6; }
11205fi
11206
11207
11208fi
11209if test -z "$ac_cv_prog_NMEDIT"; then
11210 ac_ct_NMEDIT=$NMEDIT
11211 # Extract the first word of "nmedit", so it can be a program name with args.
11212set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011214$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011215if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011216 $as_echo_n "(cached) " >&6
11217else
11218 if test -n "$ac_ct_NMEDIT"; then
11219 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11220else
11221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222for as_dir in $PATH
11223do
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011226 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11228 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011230 break 2
11231 fi
11232done
cristy8b350f62009-11-15 23:12:43 +000011233 done
cristy3ed852e2009-09-05 21:47:34 +000011234IFS=$as_save_IFS
11235
11236fi
11237fi
11238ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11239if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011241$as_echo "$ac_ct_NMEDIT" >&6; }
11242else
cristy8b350f62009-11-15 23:12:43 +000011243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011244$as_echo "no" >&6; }
11245fi
11246
11247 if test "x$ac_ct_NMEDIT" = x; then
11248 NMEDIT=":"
11249 else
11250 case $cross_compiling:$ac_tool_warned in
11251yes:)
cristy8b350f62009-11-15 23:12:43 +000011252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11254ac_tool_warned=yes ;;
11255esac
11256 NMEDIT=$ac_ct_NMEDIT
11257 fi
11258else
11259 NMEDIT="$ac_cv_prog_NMEDIT"
11260fi
11261
11262 if test -n "$ac_tool_prefix"; then
11263 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11264set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011266$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011267if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011268 $as_echo_n "(cached) " >&6
11269else
11270 if test -n "$LIPO"; then
11271 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11272else
11273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11274for as_dir in $PATH
11275do
11276 IFS=$as_save_IFS
11277 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11280 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011282 break 2
11283 fi
11284done
cristy8b350f62009-11-15 23:12:43 +000011285 done
cristy3ed852e2009-09-05 21:47:34 +000011286IFS=$as_save_IFS
11287
11288fi
11289fi
11290LIPO=$ac_cv_prog_LIPO
11291if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011293$as_echo "$LIPO" >&6; }
11294else
cristy8b350f62009-11-15 23:12:43 +000011295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011296$as_echo "no" >&6; }
11297fi
11298
11299
11300fi
11301if test -z "$ac_cv_prog_LIPO"; then
11302 ac_ct_LIPO=$LIPO
11303 # Extract the first word of "lipo", so it can be a program name with args.
11304set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011306$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011307if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011308 $as_echo_n "(cached) " >&6
11309else
11310 if test -n "$ac_ct_LIPO"; then
11311 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11312else
11313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314for as_dir in $PATH
11315do
11316 IFS=$as_save_IFS
11317 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011318 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11320 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011322 break 2
11323 fi
11324done
cristy8b350f62009-11-15 23:12:43 +000011325 done
cristy3ed852e2009-09-05 21:47:34 +000011326IFS=$as_save_IFS
11327
11328fi
11329fi
11330ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11331if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011333$as_echo "$ac_ct_LIPO" >&6; }
11334else
cristy8b350f62009-11-15 23:12:43 +000011335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011336$as_echo "no" >&6; }
11337fi
11338
11339 if test "x$ac_ct_LIPO" = x; then
11340 LIPO=":"
11341 else
11342 case $cross_compiling:$ac_tool_warned in
11343yes:)
cristy8b350f62009-11-15 23:12:43 +000011344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11346ac_tool_warned=yes ;;
11347esac
11348 LIPO=$ac_ct_LIPO
11349 fi
11350else
11351 LIPO="$ac_cv_prog_LIPO"
11352fi
11353
11354 if test -n "$ac_tool_prefix"; then
11355 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11356set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011358$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011359if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011360 $as_echo_n "(cached) " >&6
11361else
11362 if test -n "$OTOOL"; then
11363 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11364else
11365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11366for as_dir in $PATH
11367do
11368 IFS=$as_save_IFS
11369 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11372 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011374 break 2
11375 fi
11376done
cristy8b350f62009-11-15 23:12:43 +000011377 done
cristy3ed852e2009-09-05 21:47:34 +000011378IFS=$as_save_IFS
11379
11380fi
11381fi
11382OTOOL=$ac_cv_prog_OTOOL
11383if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011385$as_echo "$OTOOL" >&6; }
11386else
cristy8b350f62009-11-15 23:12:43 +000011387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011388$as_echo "no" >&6; }
11389fi
11390
11391
11392fi
11393if test -z "$ac_cv_prog_OTOOL"; then
11394 ac_ct_OTOOL=$OTOOL
11395 # Extract the first word of "otool", so it can be a program name with args.
11396set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011398$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011399if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011400 $as_echo_n "(cached) " >&6
11401else
11402 if test -n "$ac_ct_OTOOL"; then
11403 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11404else
11405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406for as_dir in $PATH
11407do
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011410 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11412 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011414 break 2
11415 fi
11416done
cristy8b350f62009-11-15 23:12:43 +000011417 done
cristy3ed852e2009-09-05 21:47:34 +000011418IFS=$as_save_IFS
11419
11420fi
11421fi
11422ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11423if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011425$as_echo "$ac_ct_OTOOL" >&6; }
11426else
cristy8b350f62009-11-15 23:12:43 +000011427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011428$as_echo "no" >&6; }
11429fi
11430
11431 if test "x$ac_ct_OTOOL" = x; then
11432 OTOOL=":"
11433 else
11434 case $cross_compiling:$ac_tool_warned in
11435yes:)
cristy8b350f62009-11-15 23:12:43 +000011436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11438ac_tool_warned=yes ;;
11439esac
11440 OTOOL=$ac_ct_OTOOL
11441 fi
11442else
11443 OTOOL="$ac_cv_prog_OTOOL"
11444fi
11445
11446 if test -n "$ac_tool_prefix"; then
11447 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11448set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011450$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011451if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011452 $as_echo_n "(cached) " >&6
11453else
11454 if test -n "$OTOOL64"; then
11455 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11456else
11457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458for as_dir in $PATH
11459do
11460 IFS=$as_save_IFS
11461 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011462 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11464 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011466 break 2
11467 fi
11468done
cristy8b350f62009-11-15 23:12:43 +000011469 done
cristy3ed852e2009-09-05 21:47:34 +000011470IFS=$as_save_IFS
11471
11472fi
11473fi
11474OTOOL64=$ac_cv_prog_OTOOL64
11475if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011477$as_echo "$OTOOL64" >&6; }
11478else
cristy8b350f62009-11-15 23:12:43 +000011479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011480$as_echo "no" >&6; }
11481fi
11482
11483
11484fi
11485if test -z "$ac_cv_prog_OTOOL64"; then
11486 ac_ct_OTOOL64=$OTOOL64
11487 # Extract the first word of "otool64", so it can be a program name with args.
11488set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011490$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011491if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011492 $as_echo_n "(cached) " >&6
11493else
11494 if test -n "$ac_ct_OTOOL64"; then
11495 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11496else
11497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11498for as_dir in $PATH
11499do
11500 IFS=$as_save_IFS
11501 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011502 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11504 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011506 break 2
11507 fi
11508done
cristy8b350f62009-11-15 23:12:43 +000011509 done
cristy3ed852e2009-09-05 21:47:34 +000011510IFS=$as_save_IFS
11511
11512fi
11513fi
11514ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11515if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011517$as_echo "$ac_ct_OTOOL64" >&6; }
11518else
cristy8b350f62009-11-15 23:12:43 +000011519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011520$as_echo "no" >&6; }
11521fi
11522
11523 if test "x$ac_ct_OTOOL64" = x; then
11524 OTOOL64=":"
11525 else
11526 case $cross_compiling:$ac_tool_warned in
11527yes:)
cristy8b350f62009-11-15 23:12:43 +000011528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11530ac_tool_warned=yes ;;
11531esac
11532 OTOOL64=$ac_ct_OTOOL64
11533 fi
11534else
11535 OTOOL64="$ac_cv_prog_OTOOL64"
11536fi
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
cristy8b350f62009-11-15 23:12:43 +000011564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011565$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011566if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011567 $as_echo_n "(cached) " >&6
11568else
11569 lt_cv_apple_cc_single_mod=no
11570 if test -z "${LT_MULTI_MODULE}"; then
11571 # By default we will add the -single_module flag. You can override
11572 # by either setting the environment variable LT_MULTI_MODULE
11573 # non-empty at configure time, or by adding -multi_module to the
11574 # link flags.
11575 rm -rf libconftest.dylib*
11576 echo "int foo(void){return 1;}" > conftest.c
11577 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11578-dynamiclib -Wl,-single_module conftest.c" >&5
11579 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11580 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11581 _lt_result=$?
11582 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11583 lt_cv_apple_cc_single_mod=yes
11584 else
11585 cat conftest.err >&5
11586 fi
11587 rm -rf libconftest.dylib*
11588 rm -f conftest.*
11589 fi
11590fi
cristy8b350f62009-11-15 23:12:43 +000011591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011592$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011594$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011595if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011596 $as_echo_n "(cached) " >&6
11597else
11598 lt_cv_ld_exported_symbols_list=no
11599 save_LDFLAGS=$LDFLAGS
11600 echo "_main" > conftest.sym
11601 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011603/* end confdefs.h. */
11604
11605int
11606main ()
11607{
11608
11609 ;
11610 return 0;
11611}
11612_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011613if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011614 lt_cv_ld_exported_symbols_list=yes
11615else
cristy8b350f62009-11-15 23:12:43 +000011616 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011617fi
cristy8b350f62009-11-15 23:12:43 +000011618rm -f core conftest.err conftest.$ac_objext \
11619 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011620 LDFLAGS="$save_LDFLAGS"
11621
11622fi
cristy8b350f62009-11-15 23:12:43 +000011623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011624$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11625 case $host_os in
11626 rhapsody* | darwin1.[012])
11627 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11628 darwin1.*)
11629 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11630 darwin*) # darwin 5.x on
11631 # if running on 10.5 or later, the deployment target defaults
11632 # to the OS version, if on x86, and 10.4, the deployment
11633 # target defaults to 10.4. Don't you love it?
11634 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11635 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11636 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11637 10.[012]*)
11638 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11639 10.*)
11640 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11641 esac
11642 ;;
11643 esac
11644 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11645 _lt_dar_single_mod='$single_module'
11646 fi
11647 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11648 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11649 else
11650 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11651 fi
cristy18304f92009-11-22 15:48:26 +000011652 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000011653 _lt_dsymutil='~$DSYMUTIL $lib || :'
11654 else
11655 _lt_dsymutil=
11656 fi
11657 ;;
11658 esac
11659
cristy3ed852e2009-09-05 21:47:34 +000011660for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011661do :
11662 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11663"
11664if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011665 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011666#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011667_ACEOF
11668
11669fi
11670
11671done
11672
11673
11674
cristy18304f92009-11-22 15:48:26 +000011675ac_ext=cpp
11676ac_cpp='$CXXCPP $CPPFLAGS'
11677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11680if test -z "$CXX"; then
11681 if test -n "$CCC"; then
11682 CXX=$CCC
11683 else
11684 if test -n "$ac_tool_prefix"; then
11685 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11686 do
11687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11690$as_echo_n "checking for $ac_word... " >&6; }
11691if test "${ac_cv_prog_CXX+set}" = set; then :
11692 $as_echo_n "(cached) " >&6
11693else
11694 if test -n "$CXX"; then
11695 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11696else
11697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698for as_dir in $PATH
11699do
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
11703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11704 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 break 2
11707 fi
11708done
11709 done
11710IFS=$as_save_IFS
11711
11712fi
11713fi
11714CXX=$ac_cv_prog_CXX
11715if test -n "$CXX"; then
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11717$as_echo "$CXX" >&6; }
11718else
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11720$as_echo "no" >&6; }
11721fi
11722
11723
11724 test -n "$CXX" && break
11725 done
11726fi
11727if test -z "$CXX"; then
11728 ac_ct_CXX=$CXX
11729 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11730do
11731 # Extract the first word of "$ac_prog", so it can be a program name with args.
11732set dummy $ac_prog; ac_word=$2
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11734$as_echo_n "checking for $ac_word... " >&6; }
11735if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11736 $as_echo_n "(cached) " >&6
11737else
11738 if test -n "$ac_ct_CXX"; then
11739 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11740else
11741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742for as_dir in $PATH
11743do
11744 IFS=$as_save_IFS
11745 test -z "$as_dir" && as_dir=.
11746 for ac_exec_ext in '' $ac_executable_extensions; do
11747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11748 ac_cv_prog_ac_ct_CXX="$ac_prog"
11749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11750 break 2
11751 fi
11752done
11753 done
11754IFS=$as_save_IFS
11755
11756fi
11757fi
11758ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11759if test -n "$ac_ct_CXX"; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11761$as_echo "$ac_ct_CXX" >&6; }
11762else
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764$as_echo "no" >&6; }
11765fi
11766
11767
11768 test -n "$ac_ct_CXX" && break
11769done
11770
11771 if test "x$ac_ct_CXX" = x; then
11772 CXX="g++"
11773 else
11774 case $cross_compiling:$ac_tool_warned in
11775yes:)
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11778ac_tool_warned=yes ;;
11779esac
11780 CXX=$ac_ct_CXX
11781 fi
11782fi
11783
11784 fi
11785fi
11786# Provide some information about the compiler.
11787$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11788set X $ac_compile
11789ac_compiler=$2
11790for ac_option in --version -v -V -qversion; do
11791 { { ac_try="$ac_compiler $ac_option >&5"
11792case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795esac
11796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11797$as_echo "$ac_try_echo"; } >&5
11798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11799 ac_status=$?
11800 if test -s conftest.err; then
11801 sed '10a\
11802... rest of stderr output deleted ...
11803 10q' conftest.err >conftest.er1
11804 cat conftest.er1 >&5
11805 fi
11806 rm -f conftest.er1 conftest.err
11807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11808 test $ac_status = 0; }
11809done
11810
11811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11812$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11813if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11814 $as_echo_n "(cached) " >&6
11815else
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817/* end confdefs.h. */
11818
11819int
11820main ()
11821{
11822#ifndef __GNUC__
11823 choke me
11824#endif
11825
11826 ;
11827 return 0;
11828}
11829_ACEOF
11830if ac_fn_cxx_try_compile "$LINENO"; then :
11831 ac_compiler_gnu=yes
11832else
11833 ac_compiler_gnu=no
11834fi
11835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11837
11838fi
11839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11840$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11841if test $ac_compiler_gnu = yes; then
11842 GXX=yes
11843else
11844 GXX=
11845fi
11846ac_test_CXXFLAGS=${CXXFLAGS+set}
11847ac_save_CXXFLAGS=$CXXFLAGS
11848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11849$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11850if test "${ac_cv_prog_cxx_g+set}" = set; then :
11851 $as_echo_n "(cached) " >&6
11852else
11853 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11854 ac_cxx_werror_flag=yes
11855 ac_cv_prog_cxx_g=no
11856 CXXFLAGS="-g"
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858/* end confdefs.h. */
11859
11860int
11861main ()
11862{
11863
11864 ;
11865 return 0;
11866}
11867_ACEOF
11868if ac_fn_cxx_try_compile "$LINENO"; then :
11869 ac_cv_prog_cxx_g=yes
11870else
11871 CXXFLAGS=""
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873/* end confdefs.h. */
11874
11875int
11876main ()
11877{
11878
11879 ;
11880 return 0;
11881}
11882_ACEOF
11883if ac_fn_cxx_try_compile "$LINENO"; then :
11884
11885else
11886 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11887 CXXFLAGS="-g"
11888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11889/* end confdefs.h. */
11890
11891int
11892main ()
11893{
11894
11895 ;
11896 return 0;
11897}
11898_ACEOF
11899if ac_fn_cxx_try_compile "$LINENO"; then :
11900 ac_cv_prog_cxx_g=yes
11901fi
11902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903fi
11904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11905fi
11906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11907 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11908fi
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11910$as_echo "$ac_cv_prog_cxx_g" >&6; }
11911if test "$ac_test_CXXFLAGS" = set; then
11912 CXXFLAGS=$ac_save_CXXFLAGS
11913elif test $ac_cv_prog_cxx_g = yes; then
11914 if test "$GXX" = yes; then
11915 CXXFLAGS="-g -O2"
11916 else
11917 CXXFLAGS="-g"
11918 fi
11919else
11920 if test "$GXX" = yes; then
11921 CXXFLAGS="-O2"
11922 else
11923 CXXFLAGS=
11924 fi
11925fi
11926ac_ext=c
11927ac_cpp='$CPP $CPPFLAGS'
11928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11930ac_compiler_gnu=$ac_cv_c_compiler_gnu
11931
11932depcc="$CXX" am_compiler_list=
11933
11934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11935$as_echo_n "checking dependency style of $depcc... " >&6; }
11936if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11937 $as_echo_n "(cached) " >&6
11938else
11939 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11940 # We make a subdir and do the tests there. Otherwise we can end up
11941 # making bogus files that we don't know about and never remove. For
11942 # instance it was reported that on HP-UX the gcc test will end up
11943 # making a dummy file named `D' -- because `-MD' means `put the output
11944 # in D'.
11945 mkdir conftest.dir
11946 # Copy depcomp to subdir because otherwise we won't find it if we're
11947 # using a relative directory.
11948 cp "$am_depcomp" conftest.dir
11949 cd conftest.dir
11950 # We will build objects and dependencies in a subdirectory because
11951 # it helps to detect inapplicable dependency modes. For instance
11952 # both Tru64's cc and ICC support -MD to output dependencies as a
11953 # side effect of compilation, but ICC will put the dependencies in
11954 # the current directory while Tru64 will put them in the object
11955 # directory.
11956 mkdir sub
11957
11958 am_cv_CXX_dependencies_compiler_type=none
11959 if test "$am_compiler_list" = ""; then
11960 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11961 fi
11962 am__universal=false
11963 case " $depcc " in #(
11964 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11965 esac
11966
11967 for depmode in $am_compiler_list; do
11968 # Setup a source with many dependencies, because some compilers
11969 # like to wrap large dependency lists on column 80 (with \), and
11970 # we should not choose a depcomp mode which is confused by this.
11971 #
11972 # We need to recreate these files for each test, as the compiler may
11973 # overwrite some of them when testing with obscure command lines.
11974 # This happens at least with the AIX C compiler.
11975 : > sub/conftest.c
11976 for i in 1 2 3 4 5 6; do
11977 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11978 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11979 # Solaris 8's {/usr,}/bin/sh.
11980 touch sub/conftst$i.h
11981 done
11982 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11983
11984 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11985 # mode. It turns out that the SunPro C++ compiler does not properly
11986 # handle `-M -o', and we need to detect this. Also, some Intel
11987 # versions had trouble with output in subdirs
11988 am__obj=sub/conftest.${OBJEXT-o}
11989 am__minus_obj="-o $am__obj"
11990 case $depmode in
11991 gcc)
11992 # This depmode causes a compiler race in universal mode.
11993 test "$am__universal" = false || continue
11994 ;;
11995 nosideeffect)
11996 # after this tag, mechanisms are not by side-effect, so they'll
11997 # only be used when explicitly requested
11998 if test "x$enable_dependency_tracking" = xyes; then
11999 continue
12000 else
12001 break
12002 fi
12003 ;;
12004 msvisualcpp | msvcmsys)
12005 # This compiler won't grok `-c -o', but also, the minuso test has
12006 # not run yet. These depmodes are late enough in the game, and
12007 # so weak that their functioning should not be impacted.
12008 am__obj=conftest.${OBJEXT-o}
12009 am__minus_obj=
12010 ;;
12011 none) break ;;
12012 esac
12013 if depmode=$depmode \
12014 source=sub/conftest.c object=$am__obj \
12015 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12016 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12017 >/dev/null 2>conftest.err &&
12018 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12019 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12020 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12021 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12022 # icc doesn't choke on unknown options, it will just issue warnings
12023 # or remarks (even with -Werror). So we grep stderr for any message
12024 # that says an option was ignored or not supported.
12025 # When given -MP, icc 7.0 and 7.1 complain thusly:
12026 # icc: Command line warning: ignoring option '-M'; no argument required
12027 # The diagnosis changed in icc 8.0:
12028 # icc: Command line remark: option '-MP' not supported
12029 if (grep 'ignoring option' conftest.err ||
12030 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12031 am_cv_CXX_dependencies_compiler_type=$depmode
12032 break
12033 fi
12034 fi
12035 done
12036
12037 cd ..
12038 rm -rf conftest.dir
12039else
12040 am_cv_CXX_dependencies_compiler_type=none
12041fi
12042
12043fi
12044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12045$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12046CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12047
12048 if
12049 test "x$enable_dependency_tracking" != xno \
12050 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12051 am__fastdepCXX_TRUE=
12052 am__fastdepCXX_FALSE='#'
12053else
12054 am__fastdepCXX_TRUE='#'
12055 am__fastdepCXX_FALSE=
12056fi
12057
12058
12059if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12060 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12061 (test "X$CXX" != "Xg++"))) ; then
12062 ac_ext=cpp
12063ac_cpp='$CXXCPP $CPPFLAGS'
12064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12068$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12069if test -z "$CXXCPP"; then
12070 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12071 $as_echo_n "(cached) " >&6
12072else
12073 # Double quotes because CXXCPP needs to be expanded
12074 for CXXCPP in "$CXX -E" "/lib/cpp"
12075 do
12076 ac_preproc_ok=false
12077for ac_cxx_preproc_warn_flag in '' yes
12078do
12079 # Use a header file that comes with gcc, so configuring glibc
12080 # with a fresh cross-compiler works.
12081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12082 # <limits.h> exists even on freestanding compilers.
12083 # On the NeXT, cc -E runs the code through the compiler's parser,
12084 # not just through cpp. "Syntax error" is here to catch this case.
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086/* end confdefs.h. */
12087#ifdef __STDC__
12088# include <limits.h>
12089#else
12090# include <assert.h>
12091#endif
12092 Syntax error
12093_ACEOF
12094if ac_fn_cxx_try_cpp "$LINENO"; then :
12095
12096else
12097 # Broken: fails on valid input.
12098continue
12099fi
12100rm -f conftest.err conftest.$ac_ext
12101
12102 # OK, works on sane cases. Now check whether nonexistent headers
12103 # can be detected and how.
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105/* end confdefs.h. */
12106#include <ac_nonexistent.h>
12107_ACEOF
12108if ac_fn_cxx_try_cpp "$LINENO"; then :
12109 # Broken: success on invalid input.
12110continue
12111else
12112 # Passes both tests.
12113ac_preproc_ok=:
12114break
12115fi
12116rm -f conftest.err conftest.$ac_ext
12117
12118done
12119# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12120rm -f conftest.err conftest.$ac_ext
12121if $ac_preproc_ok; then :
12122 break
12123fi
12124
12125 done
12126 ac_cv_prog_CXXCPP=$CXXCPP
12127
12128fi
12129 CXXCPP=$ac_cv_prog_CXXCPP
12130else
12131 ac_cv_prog_CXXCPP=$CXXCPP
12132fi
12133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12134$as_echo "$CXXCPP" >&6; }
12135ac_preproc_ok=false
12136for ac_cxx_preproc_warn_flag in '' yes
12137do
12138 # Use a header file that comes with gcc, so configuring glibc
12139 # with a fresh cross-compiler works.
12140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12141 # <limits.h> exists even on freestanding compilers.
12142 # On the NeXT, cc -E runs the code through the compiler's parser,
12143 # not just through cpp. "Syntax error" is here to catch this case.
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145/* end confdefs.h. */
12146#ifdef __STDC__
12147# include <limits.h>
12148#else
12149# include <assert.h>
12150#endif
12151 Syntax error
12152_ACEOF
12153if ac_fn_cxx_try_cpp "$LINENO"; then :
12154
12155else
12156 # Broken: fails on valid input.
12157continue
12158fi
12159rm -f conftest.err conftest.$ac_ext
12160
12161 # OK, works on sane cases. Now check whether nonexistent headers
12162 # can be detected and how.
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164/* end confdefs.h. */
12165#include <ac_nonexistent.h>
12166_ACEOF
12167if ac_fn_cxx_try_cpp "$LINENO"; then :
12168 # Broken: success on invalid input.
12169continue
12170else
12171 # Passes both tests.
12172ac_preproc_ok=:
12173break
12174fi
12175rm -f conftest.err conftest.$ac_ext
12176
12177done
12178# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12179rm -f conftest.err conftest.$ac_ext
12180if $ac_preproc_ok; then :
12181
12182else
12183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12185_lt_caught_CXX_error=yes; }
12186fi
12187
12188ac_ext=c
12189ac_cpp='$CPP $CPPFLAGS'
12190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12192ac_compiler_gnu=$ac_cv_c_compiler_gnu
12193
12194else
12195 _lt_caught_CXX_error=yes
12196fi
12197
12198
cristy3ed852e2009-09-05 21:47:34 +000012199
12200
12201
12202# Set options
12203enable_win32_dll=yes
12204
12205case $host in
cristy18304f92009-11-22 15:48:26 +000012206*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000012207 if test -n "$ac_tool_prefix"; then
12208 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12209set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012211$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012212if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012213 $as_echo_n "(cached) " >&6
12214else
12215 if test -n "$AS"; then
12216 ac_cv_prog_AS="$AS" # Let the user override the test.
12217else
12218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219for as_dir in $PATH
12220do
12221 IFS=$as_save_IFS
12222 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012223 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12225 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000012226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012227 break 2
12228 fi
12229done
cristy8b350f62009-11-15 23:12:43 +000012230 done
cristy3ed852e2009-09-05 21:47:34 +000012231IFS=$as_save_IFS
12232
12233fi
12234fi
12235AS=$ac_cv_prog_AS
12236if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000012237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012238$as_echo "$AS" >&6; }
12239else
cristy8b350f62009-11-15 23:12:43 +000012240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012241$as_echo "no" >&6; }
12242fi
12243
12244
12245fi
12246if test -z "$ac_cv_prog_AS"; then
12247 ac_ct_AS=$AS
12248 # Extract the first word of "as", so it can be a program name with args.
12249set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012251$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012252if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012253 $as_echo_n "(cached) " >&6
12254else
12255 if test -n "$ac_ct_AS"; then
12256 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12257else
12258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259for as_dir in $PATH
12260do
12261 IFS=$as_save_IFS
12262 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012263 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12265 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000012266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012267 break 2
12268 fi
12269done
cristy8b350f62009-11-15 23:12:43 +000012270 done
cristy3ed852e2009-09-05 21:47:34 +000012271IFS=$as_save_IFS
12272
12273fi
12274fi
12275ac_ct_AS=$ac_cv_prog_ac_ct_AS
12276if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000012277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012278$as_echo "$ac_ct_AS" >&6; }
12279else
cristy8b350f62009-11-15 23:12:43 +000012280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012281$as_echo "no" >&6; }
12282fi
12283
12284 if test "x$ac_ct_AS" = x; then
12285 AS="false"
12286 else
12287 case $cross_compiling:$ac_tool_warned in
12288yes:)
cristy8b350f62009-11-15 23:12:43 +000012289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12291ac_tool_warned=yes ;;
12292esac
12293 AS=$ac_ct_AS
12294 fi
12295else
12296 AS="$ac_cv_prog_AS"
12297fi
12298
12299 if test -n "$ac_tool_prefix"; then
12300 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12301set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012303$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012304if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012305 $as_echo_n "(cached) " >&6
12306else
12307 if test -n "$DLLTOOL"; then
12308 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12309else
12310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311for as_dir in $PATH
12312do
12313 IFS=$as_save_IFS
12314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12317 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000012318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012319 break 2
12320 fi
12321done
cristy8b350f62009-11-15 23:12:43 +000012322 done
cristy3ed852e2009-09-05 21:47:34 +000012323IFS=$as_save_IFS
12324
12325fi
12326fi
12327DLLTOOL=$ac_cv_prog_DLLTOOL
12328if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012330$as_echo "$DLLTOOL" >&6; }
12331else
cristy8b350f62009-11-15 23:12:43 +000012332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012333$as_echo "no" >&6; }
12334fi
12335
12336
12337fi
12338if test -z "$ac_cv_prog_DLLTOOL"; then
12339 ac_ct_DLLTOOL=$DLLTOOL
12340 # Extract the first word of "dlltool", so it can be a program name with args.
12341set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012343$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012344if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012345 $as_echo_n "(cached) " >&6
12346else
12347 if test -n "$ac_ct_DLLTOOL"; then
12348 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12349else
12350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351for as_dir in $PATH
12352do
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012355 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12357 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000012358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012359 break 2
12360 fi
12361done
cristy8b350f62009-11-15 23:12:43 +000012362 done
cristy3ed852e2009-09-05 21:47:34 +000012363IFS=$as_save_IFS
12364
12365fi
12366fi
12367ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12368if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012370$as_echo "$ac_ct_DLLTOOL" >&6; }
12371else
cristy8b350f62009-11-15 23:12:43 +000012372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012373$as_echo "no" >&6; }
12374fi
12375
12376 if test "x$ac_ct_DLLTOOL" = x; then
12377 DLLTOOL="false"
12378 else
12379 case $cross_compiling:$ac_tool_warned in
12380yes:)
cristy8b350f62009-11-15 23:12:43 +000012381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12383ac_tool_warned=yes ;;
12384esac
12385 DLLTOOL=$ac_ct_DLLTOOL
12386 fi
12387else
12388 DLLTOOL="$ac_cv_prog_DLLTOOL"
12389fi
12390
12391 if test -n "$ac_tool_prefix"; then
12392 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12393set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012395$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012396if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012397 $as_echo_n "(cached) " >&6
12398else
12399 if test -n "$OBJDUMP"; then
12400 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12401else
12402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12403for as_dir in $PATH
12404do
12405 IFS=$as_save_IFS
12406 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012407 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12409 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000012410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012411 break 2
12412 fi
12413done
cristy8b350f62009-11-15 23:12:43 +000012414 done
cristy3ed852e2009-09-05 21:47:34 +000012415IFS=$as_save_IFS
12416
12417fi
12418fi
12419OBJDUMP=$ac_cv_prog_OBJDUMP
12420if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012422$as_echo "$OBJDUMP" >&6; }
12423else
cristy8b350f62009-11-15 23:12:43 +000012424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012425$as_echo "no" >&6; }
12426fi
12427
12428
12429fi
12430if test -z "$ac_cv_prog_OBJDUMP"; then
12431 ac_ct_OBJDUMP=$OBJDUMP
12432 # Extract the first word of "objdump", so it can be a program name with args.
12433set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012435$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012436if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012437 $as_echo_n "(cached) " >&6
12438else
12439 if test -n "$ac_ct_OBJDUMP"; then
12440 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12441else
12442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443for as_dir in $PATH
12444do
12445 IFS=$as_save_IFS
12446 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012447 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12449 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000012450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012451 break 2
12452 fi
12453done
cristy8b350f62009-11-15 23:12:43 +000012454 done
cristy3ed852e2009-09-05 21:47:34 +000012455IFS=$as_save_IFS
12456
12457fi
12458fi
12459ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12460if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012462$as_echo "$ac_ct_OBJDUMP" >&6; }
12463else
cristy8b350f62009-11-15 23:12:43 +000012464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012465$as_echo "no" >&6; }
12466fi
12467
12468 if test "x$ac_ct_OBJDUMP" = x; then
12469 OBJDUMP="false"
12470 else
12471 case $cross_compiling:$ac_tool_warned in
12472yes:)
cristy8b350f62009-11-15 23:12:43 +000012473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12475ac_tool_warned=yes ;;
12476esac
12477 OBJDUMP=$ac_ct_OBJDUMP
12478 fi
12479else
12480 OBJDUMP="$ac_cv_prog_OBJDUMP"
12481fi
12482
12483 ;;
12484esac
12485
12486test -z "$AS" && AS=as
12487
12488
12489
12490
12491
12492test -z "$DLLTOOL" && DLLTOOL=dlltool
12493
12494
12495
12496
12497
12498test -z "$OBJDUMP" && OBJDUMP=objdump
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000012509if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012510 enableval=$enable_shared; p=${PACKAGE-default}
12511 case $enableval in
12512 yes) enable_shared=yes ;;
12513 no) enable_shared=no ;;
12514 *)
12515 enable_shared=no
12516 # Look at the argument we got. We use all the common list separators.
12517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12518 for pkg in $enableval; do
12519 IFS="$lt_save_ifs"
12520 if test "X$pkg" = "X$p"; then
12521 enable_shared=yes
12522 fi
12523 done
12524 IFS="$lt_save_ifs"
12525 ;;
12526 esac
12527else
12528 enable_shared=yes
12529fi
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012540if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012541 enableval=$enable_static; p=${PACKAGE-default}
12542 case $enableval in
12543 yes) enable_static=yes ;;
12544 no) enable_static=no ;;
12545 *)
12546 enable_static=no
12547 # Look at the argument we got. We use all the common list separators.
12548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12549 for pkg in $enableval; do
12550 IFS="$lt_save_ifs"
12551 if test "X$pkg" = "X$p"; then
12552 enable_static=yes
12553 fi
12554 done
12555 IFS="$lt_save_ifs"
12556 ;;
12557 esac
12558else
12559 enable_static=yes
12560fi
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012572if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012573 withval=$with_pic; pic_mode="$withval"
12574else
12575 pic_mode=default
12576fi
12577
12578
12579test -z "$pic_mode" && pic_mode=default
12580
12581
12582
12583
12584
12585
12586
12587 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012588if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012589 enableval=$enable_fast_install; p=${PACKAGE-default}
12590 case $enableval in
12591 yes) enable_fast_install=yes ;;
12592 no) enable_fast_install=no ;;
12593 *)
12594 enable_fast_install=no
12595 # Look at the argument we got. We use all the common list separators.
12596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12597 for pkg in $enableval; do
12598 IFS="$lt_save_ifs"
12599 if test "X$pkg" = "X$p"; then
12600 enable_fast_install=yes
12601 fi
12602 done
12603 IFS="$lt_save_ifs"
12604 ;;
12605 esac
12606else
12607 enable_fast_install=yes
12608fi
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620# This can be used to rebuild libtool when needed
12621LIBTOOL_DEPS="$ltmain"
12622
12623# Always use our own libtool.
12624LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650test -z "$LN_S" && LN_S="ln -s"
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665if test -n "${ZSH_VERSION+set}" ; then
12666 setopt NO_GLOB_SUBST
12667fi
12668
cristy8b350f62009-11-15 23:12:43 +000012669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012670$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012671if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012672 $as_echo_n "(cached) " >&6
12673else
12674 rm -f .libs 2>/dev/null
12675mkdir .libs 2>/dev/null
12676if test -d .libs; then
12677 lt_cv_objdir=.libs
12678else
12679 # MS-DOS does not allow filenames that begin with a dot.
12680 lt_cv_objdir=_libs
12681fi
12682rmdir .libs 2>/dev/null
12683fi
cristy8b350f62009-11-15 23:12:43 +000012684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012685$as_echo "$lt_cv_objdir" >&6; }
12686objdir=$lt_cv_objdir
12687
12688
12689
12690
12691
12692cat >>confdefs.h <<_ACEOF
12693#define LT_OBJDIR "$lt_cv_objdir/"
12694_ACEOF
12695
12696
12697
12698
cristy18304f92009-11-22 15:48:26 +000012699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
cristy3ed852e2009-09-05 21:47:34 +000012712case $host_os in
12713aix3*)
12714 # AIX sometimes has problems with the GCC collect2 program. For some
12715 # reason, if we set the COLLECT_NAMES environment variable, the problems
12716 # vanish in a puff of smoke.
12717 if test "X${COLLECT_NAMES+set}" != Xset; then
12718 COLLECT_NAMES=
12719 export COLLECT_NAMES
12720 fi
12721 ;;
12722esac
12723
cristy18304f92009-11-22 15:48:26 +000012724# Sed substitution that helps us do robust quoting. It backslashifies
12725# metacharacters that are still active within double-quoted strings.
12726sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12727
12728# Same as above, but do not quote variable references.
12729double_quote_subst='s/\(["`\\]\)/\\\1/g'
12730
12731# Sed substitution to delay expansion of an escaped shell variable in a
12732# double_quote_subst'ed string.
12733delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12734
12735# Sed substitution to delay expansion of an escaped single quote.
12736delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12737
12738# Sed substitution to avoid accidental globbing in evaled expressions
12739no_glob_subst='s/\*/\\\*/g'
12740
cristy3ed852e2009-09-05 21:47:34 +000012741# Global variables:
12742ofile=libtool
12743can_build_shared=yes
12744
12745# All known linkers require a `.a' archive for static linking (except MSVC,
12746# which needs '.lib').
12747libext=a
12748
12749with_gnu_ld="$lt_cv_prog_gnu_ld"
12750
12751old_CC="$CC"
12752old_CFLAGS="$CFLAGS"
12753
12754# Set sane defaults for various variables
12755test -z "$CC" && CC=cc
12756test -z "$LTCC" && LTCC=$CC
12757test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12758test -z "$LD" && LD=ld
12759test -z "$ac_objext" && ac_objext=o
12760
12761for cc_temp in $compiler""; do
12762 case $cc_temp in
12763 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12764 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12765 \-*) ;;
12766 *) break;;
12767 esac
12768done
cristy18304f92009-11-22 15:48:26 +000012769cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012770
12771
12772# Only perform the check for file, if the check method requires it
12773test -z "$MAGIC_CMD" && MAGIC_CMD=file
12774case $deplibs_check_method in
12775file_magic*)
12776 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012778$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012779if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012780 $as_echo_n "(cached) " >&6
12781else
12782 case $MAGIC_CMD in
12783[\\/*] | ?:[\\/]*)
12784 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12785 ;;
12786*)
12787 lt_save_MAGIC_CMD="$MAGIC_CMD"
12788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12789 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12790 for ac_dir in $ac_dummy; do
12791 IFS="$lt_save_ifs"
12792 test -z "$ac_dir" && ac_dir=.
12793 if test -f $ac_dir/${ac_tool_prefix}file; then
12794 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12795 if test -n "$file_magic_test_file"; then
12796 case $deplibs_check_method in
12797 "file_magic "*)
12798 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12799 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12800 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12801 $EGREP "$file_magic_regex" > /dev/null; then
12802 :
12803 else
12804 cat <<_LT_EOF 1>&2
12805
12806*** Warning: the command libtool uses to detect shared libraries,
12807*** $file_magic_cmd, produces output that libtool cannot recognize.
12808*** The result is that libtool may fail to recognize shared libraries
12809*** as such. This will affect the creation of libtool libraries that
12810*** depend on shared libraries, but programs linked with such libtool
12811*** libraries will work regardless of this problem. Nevertheless, you
12812*** may want to report the problem to your system manager and/or to
12813*** bug-libtool@gnu.org
12814
12815_LT_EOF
12816 fi ;;
12817 esac
12818 fi
12819 break
12820 fi
12821 done
12822 IFS="$lt_save_ifs"
12823 MAGIC_CMD="$lt_save_MAGIC_CMD"
12824 ;;
12825esac
12826fi
12827
12828MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12829if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012831$as_echo "$MAGIC_CMD" >&6; }
12832else
cristy8b350f62009-11-15 23:12:43 +000012833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012834$as_echo "no" >&6; }
12835fi
12836
12837
12838
12839
12840
12841if test -z "$lt_cv_path_MAGIC_CMD"; then
12842 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012844$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012845if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012846 $as_echo_n "(cached) " >&6
12847else
12848 case $MAGIC_CMD in
12849[\\/*] | ?:[\\/]*)
12850 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12851 ;;
12852*)
12853 lt_save_MAGIC_CMD="$MAGIC_CMD"
12854 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12855 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12856 for ac_dir in $ac_dummy; do
12857 IFS="$lt_save_ifs"
12858 test -z "$ac_dir" && ac_dir=.
12859 if test -f $ac_dir/file; then
12860 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12861 if test -n "$file_magic_test_file"; then
12862 case $deplibs_check_method in
12863 "file_magic "*)
12864 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12865 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12866 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12867 $EGREP "$file_magic_regex" > /dev/null; then
12868 :
12869 else
12870 cat <<_LT_EOF 1>&2
12871
12872*** Warning: the command libtool uses to detect shared libraries,
12873*** $file_magic_cmd, produces output that libtool cannot recognize.
12874*** The result is that libtool may fail to recognize shared libraries
12875*** as such. This will affect the creation of libtool libraries that
12876*** depend on shared libraries, but programs linked with such libtool
12877*** libraries will work regardless of this problem. Nevertheless, you
12878*** may want to report the problem to your system manager and/or to
12879*** bug-libtool@gnu.org
12880
12881_LT_EOF
12882 fi ;;
12883 esac
12884 fi
12885 break
12886 fi
12887 done
12888 IFS="$lt_save_ifs"
12889 MAGIC_CMD="$lt_save_MAGIC_CMD"
12890 ;;
12891esac
12892fi
12893
12894MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12895if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012897$as_echo "$MAGIC_CMD" >&6; }
12898else
cristy8b350f62009-11-15 23:12:43 +000012899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012900$as_echo "no" >&6; }
12901fi
12902
12903
12904 else
12905 MAGIC_CMD=:
12906 fi
12907fi
12908
12909 fi
12910 ;;
12911esac
12912
12913# Use C for the default configuration in the libtool script
12914
12915lt_save_CC="$CC"
12916ac_ext=c
12917ac_cpp='$CPP $CPPFLAGS'
12918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12920ac_compiler_gnu=$ac_cv_c_compiler_gnu
12921
12922
12923# Source file extension for C test sources.
12924ac_ext=c
12925
12926# Object file extension for compiled C test sources.
12927objext=o
12928objext=$objext
12929
12930# Code to be used in simple compile tests
12931lt_simple_compile_test_code="int some_variable = 0;"
12932
12933# Code to be used in simple link tests
12934lt_simple_link_test_code='int main(){return(0);}'
12935
12936
12937
12938
12939
12940
12941
12942# If no C compiler was specified, use CC.
12943LTCC=${LTCC-"$CC"}
12944
12945# If no C compiler flags were specified, use CFLAGS.
12946LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12947
12948# Allow CC to be a program name with arguments.
12949compiler=$CC
12950
12951# Save the default compiler, since it gets overwritten when the other
12952# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12953compiler_DEFAULT=$CC
12954
12955# save warnings/boilerplate of simple test code
12956ac_outfile=conftest.$ac_objext
12957echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12958eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12959_lt_compiler_boilerplate=`cat conftest.err`
12960$RM conftest*
12961
12962ac_outfile=conftest.$ac_objext
12963echo "$lt_simple_link_test_code" >conftest.$ac_ext
12964eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12965_lt_linker_boilerplate=`cat conftest.err`
12966$RM -r conftest*
12967
12968
12969## CAVEAT EMPTOR:
12970## There is no encapsulation within the following macros, do not change
12971## the running order or otherwise move them around unless you know exactly
12972## what you are doing...
12973if test -n "$compiler"; then
12974
12975lt_prog_compiler_no_builtin_flag=
12976
12977if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012978 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000012979
cristy8b350f62009-11-15 23:12:43 +000012980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012981$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012982if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012983 $as_echo_n "(cached) " >&6
12984else
12985 lt_cv_prog_compiler_rtti_exceptions=no
12986 ac_outfile=conftest.$ac_objext
12987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12988 lt_compiler_flag="-fno-rtti -fno-exceptions"
12989 # Insert the option either (1) after the last *FLAGS variable, or
12990 # (2) before a word containing "conftest.", or (3) at the end.
12991 # Note that $ac_compile itself does not contain backslashes and begins
12992 # with a dollar sign (not a hyphen), so the echo should work correctly.
12993 # The option is referenced via a variable to avoid confusing sed.
12994 lt_compile=`echo "$ac_compile" | $SED \
12995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12997 -e 's:$: $lt_compiler_flag:'`
cristy935c86e2010-06-05 23:50:07 +000012998 (eval echo "\"\$as_me:12998: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012999 (eval "$lt_compile" 2>conftest.err)
13000 ac_status=$?
13001 cat conftest.err >&5
cristy935c86e2010-06-05 23:50:07 +000013002 echo "$as_me:13002: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013003 if (exit $ac_status) && test -s "$ac_outfile"; then
13004 # The compiler can only warn and ignore the option if not recognized
13005 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000013006 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13008 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13009 lt_cv_prog_compiler_rtti_exceptions=yes
13010 fi
13011 fi
13012 $RM conftest*
13013
13014fi
cristy8b350f62009-11-15 23:12:43 +000013015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000013016$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13017
13018if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13019 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13020else
13021 :
13022fi
13023
13024fi
13025
13026
13027
13028
13029
13030
13031 lt_prog_compiler_wl=
13032lt_prog_compiler_pic=
13033lt_prog_compiler_static=
13034
cristy8b350f62009-11-15 23:12:43 +000013035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000013036$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13037
13038 if test "$GCC" = yes; then
13039 lt_prog_compiler_wl='-Wl,'
13040 lt_prog_compiler_static='-static'
13041
13042 case $host_os in
13043 aix*)
13044 # All AIX code is PIC.
13045 if test "$host_cpu" = ia64; then
13046 # AIX 5 now supports IA64 processor
13047 lt_prog_compiler_static='-Bstatic'
13048 fi
13049 ;;
13050
13051 amigaos*)
13052 case $host_cpu in
13053 powerpc)
13054 # see comment about AmigaOS4 .so support
13055 lt_prog_compiler_pic='-fPIC'
13056 ;;
13057 m68k)
13058 # FIXME: we need at least 68020 code to build shared libraries, but
13059 # adding the `-m68020' flag to GCC prevents building anything better,
13060 # like `-m68040'.
13061 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13062 ;;
13063 esac
13064 ;;
13065
13066 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13067 # PIC is the default for these OSes.
13068 ;;
13069
13070 mingw* | cygwin* | pw32* | os2* | cegcc*)
13071 # This hack is so that the source file can tell whether it is being
13072 # built for inclusion in a dll (and should export symbols for example).
13073 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13074 # (--disable-auto-import) libraries
13075 lt_prog_compiler_pic='-DDLL_EXPORT'
13076 ;;
13077
13078 darwin* | rhapsody*)
13079 # PIC is the default on this platform
13080 # Common symbols not allowed in MH_DYLIB files
13081 lt_prog_compiler_pic='-fno-common'
13082 ;;
13083
13084 hpux*)
13085 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13086 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13087 # sets the default TLS model and affects inlining.
13088 case $host_cpu in
13089 hppa*64*)
13090 # +Z the default
13091 ;;
13092 *)
13093 lt_prog_compiler_pic='-fPIC'
13094 ;;
13095 esac
13096 ;;
13097
13098 interix[3-9]*)
13099 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13100 # Instead, we relocate shared libraries at runtime.
13101 ;;
13102
13103 msdosdjgpp*)
13104 # Just because we use GCC doesn't mean we suddenly get shared libraries
13105 # on systems that don't support them.
13106 lt_prog_compiler_can_build_shared=no
13107 enable_shared=no
13108 ;;
13109
13110 *nto* | *qnx*)
13111 # QNX uses GNU C++, but need to define -shared option too, otherwise
13112 # it will coredump.
13113 lt_prog_compiler_pic='-fPIC -shared'
13114 ;;
13115
13116 sysv4*MP*)
13117 if test -d /usr/nec; then
13118 lt_prog_compiler_pic=-Kconform_pic
13119 fi
13120 ;;
13121
13122 *)
13123 lt_prog_compiler_pic='-fPIC'
13124 ;;
13125 esac
13126 else
13127 # PORTME Check for flag to pass linker flags through the system compiler.
13128 case $host_os in
13129 aix*)
13130 lt_prog_compiler_wl='-Wl,'
13131 if test "$host_cpu" = ia64; then
13132 # AIX 5 now supports IA64 processor
13133 lt_prog_compiler_static='-Bstatic'
13134 else
13135 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13136 fi
13137 ;;
13138
13139 mingw* | cygwin* | pw32* | os2* | cegcc*)
13140 # This hack is so that the source file can tell whether it is being
13141 # built for inclusion in a dll (and should export symbols for example).
13142 lt_prog_compiler_pic='-DDLL_EXPORT'
13143 ;;
13144
13145 hpux9* | hpux10* | hpux11*)
13146 lt_prog_compiler_wl='-Wl,'
13147 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13148 # not for PA HP-UX.
13149 case $host_cpu in
13150 hppa*64*|ia64*)
13151 # +Z the default
13152 ;;
13153 *)
13154 lt_prog_compiler_pic='+Z'
13155 ;;
13156 esac
13157 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13158 lt_prog_compiler_static='${wl}-a ${wl}archive'
13159 ;;
13160
13161 irix5* | irix6* | nonstopux*)
13162 lt_prog_compiler_wl='-Wl,'
13163 # PIC (with -KPIC) is the default.
13164 lt_prog_compiler_static='-non_shared'
13165 ;;
13166
cristy18304f92009-11-22 15:48:26 +000013167 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013168 case $cc_basename in
13169 # old Intel for x86_64 which still supported -KPIC.
13170 ecc*)
13171 lt_prog_compiler_wl='-Wl,'
13172 lt_prog_compiler_pic='-KPIC'
13173 lt_prog_compiler_static='-static'
13174 ;;
13175 # icc used to be incompatible with GCC.
13176 # ICC 10 doesn't accept -KPIC any more.
13177 icc* | ifort*)
13178 lt_prog_compiler_wl='-Wl,'
13179 lt_prog_compiler_pic='-fPIC'
13180 lt_prog_compiler_static='-static'
13181 ;;
13182 # Lahey Fortran 8.1.
13183 lf95*)
13184 lt_prog_compiler_wl='-Wl,'
13185 lt_prog_compiler_pic='--shared'
13186 lt_prog_compiler_static='--static'
13187 ;;
cristy18304f92009-11-22 15:48:26 +000013188 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000013189 # Portland Group compilers (*not* the Pentium gcc compiler,
13190 # which looks to be a dead project)
13191 lt_prog_compiler_wl='-Wl,'
13192 lt_prog_compiler_pic='-fpic'
13193 lt_prog_compiler_static='-Bstatic'
13194 ;;
13195 ccc*)
13196 lt_prog_compiler_wl='-Wl,'
13197 # All Alpha code is PIC.
13198 lt_prog_compiler_static='-non_shared'
13199 ;;
cristy18304f92009-11-22 15:48:26 +000013200 xl*)
13201 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000013202 lt_prog_compiler_wl='-Wl,'
13203 lt_prog_compiler_pic='-qpic'
13204 lt_prog_compiler_static='-qstaticlink'
13205 ;;
13206 *)
13207 case `$CC -V 2>&1 | sed 5q` in
13208 *Sun\ C*)
13209 # Sun C 5.9
13210 lt_prog_compiler_pic='-KPIC'
13211 lt_prog_compiler_static='-Bstatic'
13212 lt_prog_compiler_wl='-Wl,'
13213 ;;
cristy18304f92009-11-22 15:48:26 +000013214 *Sun\ F*)
13215 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13216 lt_prog_compiler_pic='-KPIC'
13217 lt_prog_compiler_static='-Bstatic'
13218 lt_prog_compiler_wl=''
13219 ;;
cristy3ed852e2009-09-05 21:47:34 +000013220 esac
13221 ;;
13222 esac
13223 ;;
13224
13225 newsos6)
13226 lt_prog_compiler_pic='-KPIC'
13227 lt_prog_compiler_static='-Bstatic'
13228 ;;
13229
13230 *nto* | *qnx*)
13231 # QNX uses GNU C++, but need to define -shared option too, otherwise
13232 # it will coredump.
13233 lt_prog_compiler_pic='-fPIC -shared'
13234 ;;
13235
13236 osf3* | osf4* | osf5*)
13237 lt_prog_compiler_wl='-Wl,'
13238 # All OSF/1 code is PIC.
13239 lt_prog_compiler_static='-non_shared'
13240 ;;
13241
13242 rdos*)
13243 lt_prog_compiler_static='-non_shared'
13244 ;;
13245
13246 solaris*)
13247 lt_prog_compiler_pic='-KPIC'
13248 lt_prog_compiler_static='-Bstatic'
13249 case $cc_basename in
13250 f77* | f90* | f95*)
13251 lt_prog_compiler_wl='-Qoption ld ';;
13252 *)
13253 lt_prog_compiler_wl='-Wl,';;
13254 esac
13255 ;;
13256
13257 sunos4*)
13258 lt_prog_compiler_wl='-Qoption ld '
13259 lt_prog_compiler_pic='-PIC'
13260 lt_prog_compiler_static='-Bstatic'
13261 ;;
13262
13263 sysv4 | sysv4.2uw2* | sysv4.3*)
13264 lt_prog_compiler_wl='-Wl,'
13265 lt_prog_compiler_pic='-KPIC'
13266 lt_prog_compiler_static='-Bstatic'
13267 ;;
13268
13269 sysv4*MP*)
13270 if test -d /usr/nec ;then
13271 lt_prog_compiler_pic='-Kconform_pic'
13272 lt_prog_compiler_static='-Bstatic'
13273 fi
13274 ;;
13275
13276 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13277 lt_prog_compiler_wl='-Wl,'
13278 lt_prog_compiler_pic='-KPIC'
13279 lt_prog_compiler_static='-Bstatic'
13280 ;;
13281
13282 unicos*)
13283 lt_prog_compiler_wl='-Wl,'
13284 lt_prog_compiler_can_build_shared=no
13285 ;;
13286
13287 uts4*)
13288 lt_prog_compiler_pic='-pic'
13289 lt_prog_compiler_static='-Bstatic'
13290 ;;
13291
13292 *)
13293 lt_prog_compiler_can_build_shared=no
13294 ;;
13295 esac
13296 fi
13297
13298case $host_os in
13299 # For platforms which do not support PIC, -DPIC is meaningless:
13300 *djgpp*)
13301 lt_prog_compiler_pic=
13302 ;;
13303 *)
13304 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13305 ;;
13306esac
cristy8b350f62009-11-15 23:12:43 +000013307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000013308$as_echo "$lt_prog_compiler_pic" >&6; }
13309
13310
13311
13312
13313
13314
13315#
13316# Check to make sure the PIC flag actually works.
13317#
13318if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000013319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013320$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013321if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013322 $as_echo_n "(cached) " >&6
13323else
13324 lt_cv_prog_compiler_pic_works=no
13325 ac_outfile=conftest.$ac_objext
13326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13327 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13328 # Insert the option either (1) after the last *FLAGS variable, or
13329 # (2) before a word containing "conftest.", or (3) at the end.
13330 # Note that $ac_compile itself does not contain backslashes and begins
13331 # with a dollar sign (not a hyphen), so the echo should work correctly.
13332 # The option is referenced via a variable to avoid confusing sed.
13333 lt_compile=`echo "$ac_compile" | $SED \
13334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13336 -e 's:$: $lt_compiler_flag:'`
cristy935c86e2010-06-05 23:50:07 +000013337 (eval echo "\"\$as_me:13337: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013338 (eval "$lt_compile" 2>conftest.err)
13339 ac_status=$?
13340 cat conftest.err >&5
cristy935c86e2010-06-05 23:50:07 +000013341 echo "$as_me:13341: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013342 if (exit $ac_status) && test -s "$ac_outfile"; then
13343 # The compiler can only warn and ignore the option if not recognized
13344 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000013345 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13347 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13348 lt_cv_prog_compiler_pic_works=yes
13349 fi
13350 fi
13351 $RM conftest*
13352
13353fi
cristy8b350f62009-11-15 23:12:43 +000013354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013355$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13356
13357if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13358 case $lt_prog_compiler_pic in
13359 "" | " "*) ;;
13360 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13361 esac
13362else
13363 lt_prog_compiler_pic=
13364 lt_prog_compiler_can_build_shared=no
13365fi
13366
13367fi
13368
13369
13370
13371
13372
13373
13374#
13375# Check to make sure the static flag actually works.
13376#
13377wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000013378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013379$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013380if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013381 $as_echo_n "(cached) " >&6
13382else
13383 lt_cv_prog_compiler_static_works=no
13384 save_LDFLAGS="$LDFLAGS"
13385 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13386 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13387 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13388 # The linker can only warn and ignore the option if not recognized
13389 # So say no if there are warnings
13390 if test -s conftest.err; then
13391 # Append any errors to the config.log.
13392 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000013393 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13395 if diff conftest.exp conftest.er2 >/dev/null; then
13396 lt_cv_prog_compiler_static_works=yes
13397 fi
13398 else
13399 lt_cv_prog_compiler_static_works=yes
13400 fi
13401 fi
13402 $RM -r conftest*
13403 LDFLAGS="$save_LDFLAGS"
13404
13405fi
cristy8b350f62009-11-15 23:12:43 +000013406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013407$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13408
13409if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13410 :
13411else
13412 lt_prog_compiler_static=
13413fi
13414
13415
13416
13417
13418
13419
13420
cristy8b350f62009-11-15 23:12:43 +000013421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013422$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013423if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013424 $as_echo_n "(cached) " >&6
13425else
13426 lt_cv_prog_compiler_c_o=no
13427 $RM -r conftest 2>/dev/null
13428 mkdir conftest
13429 cd conftest
13430 mkdir out
13431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13432
13433 lt_compiler_flag="-o out/conftest2.$ac_objext"
13434 # Insert the option either (1) after the last *FLAGS variable, or
13435 # (2) before a word containing "conftest.", or (3) at the end.
13436 # Note that $ac_compile itself does not contain backslashes and begins
13437 # with a dollar sign (not a hyphen), so the echo should work correctly.
13438 lt_compile=`echo "$ac_compile" | $SED \
13439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13441 -e 's:$: $lt_compiler_flag:'`
cristy935c86e2010-06-05 23:50:07 +000013442 (eval echo "\"\$as_me:13442: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013443 (eval "$lt_compile" 2>out/conftest.err)
13444 ac_status=$?
13445 cat out/conftest.err >&5
cristy935c86e2010-06-05 23:50:07 +000013446 echo "$as_me:13446: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013447 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13448 then
13449 # The compiler can only warn and ignore the option if not recognized
13450 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000013451 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013452 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13453 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13454 lt_cv_prog_compiler_c_o=yes
13455 fi
13456 fi
13457 chmod u+w . 2>&5
13458 $RM conftest*
13459 # SGI C++ compiler will create directory out/ii_files/ for
13460 # template instantiation
13461 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13462 $RM out/* && rmdir out
13463 cd ..
13464 $RM -r conftest
13465 $RM conftest*
13466
13467fi
cristy8b350f62009-11-15 23:12:43 +000013468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013469$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13470
13471
13472
13473
13474
13475
cristy8b350f62009-11-15 23:12:43 +000013476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013477$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013478if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013479 $as_echo_n "(cached) " >&6
13480else
13481 lt_cv_prog_compiler_c_o=no
13482 $RM -r conftest 2>/dev/null
13483 mkdir conftest
13484 cd conftest
13485 mkdir out
13486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13487
13488 lt_compiler_flag="-o out/conftest2.$ac_objext"
13489 # Insert the option either (1) after the last *FLAGS variable, or
13490 # (2) before a word containing "conftest.", or (3) at the end.
13491 # Note that $ac_compile itself does not contain backslashes and begins
13492 # with a dollar sign (not a hyphen), so the echo should work correctly.
13493 lt_compile=`echo "$ac_compile" | $SED \
13494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13496 -e 's:$: $lt_compiler_flag:'`
cristy935c86e2010-06-05 23:50:07 +000013497 (eval echo "\"\$as_me:13497: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013498 (eval "$lt_compile" 2>out/conftest.err)
13499 ac_status=$?
13500 cat out/conftest.err >&5
cristy935c86e2010-06-05 23:50:07 +000013501 echo "$as_me:13501: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013502 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13503 then
13504 # The compiler can only warn and ignore the option if not recognized
13505 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000013506 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013507 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13508 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13509 lt_cv_prog_compiler_c_o=yes
13510 fi
13511 fi
13512 chmod u+w . 2>&5
13513 $RM conftest*
13514 # SGI C++ compiler will create directory out/ii_files/ for
13515 # template instantiation
13516 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13517 $RM out/* && rmdir out
13518 cd ..
13519 $RM -r conftest
13520 $RM conftest*
13521
13522fi
cristy8b350f62009-11-15 23:12:43 +000013523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013524$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13525
13526
13527
13528
13529hard_links="nottested"
13530if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13531 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013533$as_echo_n "checking if we can lock with hard links... " >&6; }
13534 hard_links=yes
13535 $RM conftest*
13536 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13537 touch conftest.a
13538 ln conftest.a conftest.b 2>&5 || hard_links=no
13539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013541$as_echo "$hard_links" >&6; }
13542 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013543 { $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 +000013544$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13545 need_locks=warn
13546 fi
13547else
13548 need_locks=no
13549fi
13550
13551
13552
13553
13554
13555
cristy8b350f62009-11-15 23:12:43 +000013556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013557$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13558
13559 runpath_var=
13560 allow_undefined_flag=
13561 always_export_symbols=no
13562 archive_cmds=
13563 archive_expsym_cmds=
13564 compiler_needs_object=no
13565 enable_shared_with_static_runtimes=no
13566 export_dynamic_flag_spec=
13567 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13568 hardcode_automatic=no
13569 hardcode_direct=no
13570 hardcode_direct_absolute=no
13571 hardcode_libdir_flag_spec=
13572 hardcode_libdir_flag_spec_ld=
13573 hardcode_libdir_separator=
13574 hardcode_minus_L=no
13575 hardcode_shlibpath_var=unsupported
13576 inherit_rpath=no
13577 link_all_deplibs=unknown
13578 module_cmds=
13579 module_expsym_cmds=
13580 old_archive_from_new_cmds=
13581 old_archive_from_expsyms_cmds=
13582 thread_safe_flag_spec=
13583 whole_archive_flag_spec=
13584 # include_expsyms should be a list of space-separated symbols to be *always*
13585 # included in the symbol list
13586 include_expsyms=
13587 # exclude_expsyms can be an extended regexp of symbols to exclude
13588 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13589 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13590 # as well as any symbol that contains `d'.
13591 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13592 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13593 # platforms (ab)use it in PIC code, but their linkers get confused if
13594 # the symbol is explicitly referenced. Since portable code cannot
13595 # rely on this symbol name, it's probably fine to never include it in
13596 # preloaded symbol tables.
13597 # Exclude shared library initialization/finalization symbols.
13598 extract_expsyms_cmds=
13599
13600 case $host_os in
13601 cygwin* | mingw* | pw32* | cegcc*)
13602 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13603 # When not using gcc, we currently assume that we are using
13604 # Microsoft Visual C++.
13605 if test "$GCC" != yes; then
13606 with_gnu_ld=no
13607 fi
13608 ;;
13609 interix*)
13610 # we just hope/assume this is gcc and not c89 (= MSVC++)
13611 with_gnu_ld=yes
13612 ;;
13613 openbsd*)
13614 with_gnu_ld=no
13615 ;;
13616 esac
13617
13618 ld_shlibs=yes
13619 if test "$with_gnu_ld" = yes; then
13620 # If archive_cmds runs LD, not CC, wlarc should be empty
13621 wlarc='${wl}'
13622
13623 # Set some defaults for GNU ld with shared library support. These
13624 # are reset later if shared libraries are not supported. Putting them
13625 # here allows them to be overridden if necessary.
13626 runpath_var=LD_RUN_PATH
13627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13628 export_dynamic_flag_spec='${wl}--export-dynamic'
13629 # ancient GNU ld didn't support --whole-archive et. al.
13630 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13631 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13632 else
13633 whole_archive_flag_spec=
13634 fi
13635 supports_anon_versioning=no
13636 case `$LD -v 2>&1` in
13637 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13638 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13639 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13640 *\ 2.11.*) ;; # other 2.11 versions
13641 *) supports_anon_versioning=yes ;;
13642 esac
13643
13644 # See if GNU ld supports shared libraries.
13645 case $host_os in
13646 aix[3-9]*)
13647 # On AIX/PPC, the GNU linker is very broken
13648 if test "$host_cpu" != ia64; then
13649 ld_shlibs=no
13650 cat <<_LT_EOF 1>&2
13651
cristy18304f92009-11-22 15:48:26 +000013652*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000013653*** to be unable to reliably create shared libraries on AIX.
13654*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000013655*** really care for shared libraries, you may want to modify your PATH
13656*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000013657
13658_LT_EOF
13659 fi
13660 ;;
13661
13662 amigaos*)
13663 case $host_cpu in
13664 powerpc)
13665 # see comment about AmigaOS4 .so support
13666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13667 archive_expsym_cmds=''
13668 ;;
13669 m68k)
13670 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)'
13671 hardcode_libdir_flag_spec='-L$libdir'
13672 hardcode_minus_L=yes
13673 ;;
13674 esac
13675 ;;
13676
13677 beos*)
13678 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13679 allow_undefined_flag=unsupported
13680 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13681 # support --undefined. This deserves some investigation. FIXME
13682 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13683 else
13684 ld_shlibs=no
13685 fi
13686 ;;
13687
13688 cygwin* | mingw* | pw32* | cegcc*)
13689 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13690 # as there is no search path for DLLs.
13691 hardcode_libdir_flag_spec='-L$libdir'
13692 allow_undefined_flag=unsupported
13693 always_export_symbols=no
13694 enable_shared_with_static_runtimes=yes
13695 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13696
13697 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13699 # If the export-symbols file already is a .def file (1st line
13700 # is EXPORTS), use it as is; otherwise, prepend...
13701 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13702 cp $export_symbols $output_objdir/$soname.def;
13703 else
13704 echo EXPORTS > $output_objdir/$soname.def;
13705 cat $export_symbols >> $output_objdir/$soname.def;
13706 fi~
13707 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13708 else
13709 ld_shlibs=no
13710 fi
13711 ;;
13712
13713 interix[3-9]*)
13714 hardcode_direct=no
13715 hardcode_shlibpath_var=no
13716 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13717 export_dynamic_flag_spec='${wl}-E'
13718 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13719 # Instead, shared libraries are loaded at an image base (0x10000000 by
13720 # default) and relocated if they conflict, which is a slow very memory
13721 # consuming and fragmenting process. To avoid this, we pick a random,
13722 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13723 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13725 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'
13726 ;;
13727
cristy18304f92009-11-22 15:48:26 +000013728 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013729 tmp_diet=no
13730 if test "$host_os" = linux-dietlibc; then
13731 case $cc_basename in
13732 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13733 esac
13734 fi
13735 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13736 && test "$tmp_diet" = no
13737 then
13738 tmp_addflag=
13739 tmp_sharedflag='-shared'
13740 case $cc_basename,$host_cpu in
13741 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000013742 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 +000013743 tmp_addflag=' $pic_flag'
13744 ;;
cristy18304f92009-11-22 15:48:26 +000013745 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13746 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 +000013747 tmp_addflag=' $pic_flag -Mnomain' ;;
13748 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13749 tmp_addflag=' -i_dynamic' ;;
13750 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13751 tmp_addflag=' -i_dynamic -nofor_main' ;;
13752 ifc* | ifort*) # Intel Fortran compiler
13753 tmp_addflag=' -nofor_main' ;;
13754 lf95*) # Lahey Fortran 8.1
13755 whole_archive_flag_spec=
13756 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000013757 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013758 tmp_sharedflag='-qmkshrobj'
13759 tmp_addflag= ;;
13760 esac
13761 case `$CC -V 2>&1 | sed 5q` in
13762 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000013763 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 +000013764 compiler_needs_object=yes
13765 tmp_sharedflag='-G' ;;
13766 *Sun\ F*) # Sun Fortran 8.3
13767 tmp_sharedflag='-G' ;;
13768 esac
13769 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13770
13771 if test "x$supports_anon_versioning" = xyes; then
13772 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13773 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13774 echo "local: *; };" >> $output_objdir/$libname.ver~
13775 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13776 fi
13777
13778 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000013779 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000013780 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13781 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13782 hardcode_libdir_flag_spec=
13783 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13784 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13785 if test "x$supports_anon_versioning" = xyes; then
13786 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13787 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13788 echo "local: *; };" >> $output_objdir/$libname.ver~
13789 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13790 fi
13791 ;;
13792 esac
13793 else
13794 ld_shlibs=no
13795 fi
13796 ;;
13797
13798 netbsd*)
13799 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13800 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13801 wlarc=
13802 else
13803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13804 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13805 fi
13806 ;;
13807
13808 solaris*)
13809 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13810 ld_shlibs=no
13811 cat <<_LT_EOF 1>&2
13812
13813*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13814*** create shared libraries on Solaris systems. Therefore, libtool
13815*** is disabling shared libraries support. We urge you to upgrade GNU
13816*** binutils to release 2.9.1 or newer. Another option is to modify
13817*** your PATH or compiler configuration so that the native linker is
13818*** used, and then restart.
13819
13820_LT_EOF
13821 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13823 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13824 else
13825 ld_shlibs=no
13826 fi
13827 ;;
13828
13829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13830 case `$LD -v 2>&1` in
13831 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13832 ld_shlibs=no
13833 cat <<_LT_EOF 1>&2
13834
13835*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13836*** reliably create shared libraries on SCO systems. Therefore, libtool
13837*** is disabling shared libraries support. We urge you to upgrade GNU
13838*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13839*** your PATH or compiler configuration so that the native linker is
13840*** used, and then restart.
13841
13842_LT_EOF
13843 ;;
13844 *)
13845 # For security reasons, it is highly recommended that you always
13846 # use absolute paths for naming shared libraries, and exclude the
13847 # DT_RUNPATH tag from executables and libraries. But doing so
13848 # requires that you compile everything twice, which is a pain.
13849 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13853 else
13854 ld_shlibs=no
13855 fi
13856 ;;
13857 esac
13858 ;;
13859
13860 sunos4*)
13861 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13862 wlarc=
13863 hardcode_direct=yes
13864 hardcode_shlibpath_var=no
13865 ;;
13866
13867 *)
13868 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13870 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13871 else
13872 ld_shlibs=no
13873 fi
13874 ;;
13875 esac
13876
13877 if test "$ld_shlibs" = no; then
13878 runpath_var=
13879 hardcode_libdir_flag_spec=
13880 export_dynamic_flag_spec=
13881 whole_archive_flag_spec=
13882 fi
13883 else
13884 # PORTME fill in a description of your system's linker (not GNU ld)
13885 case $host_os in
13886 aix3*)
13887 allow_undefined_flag=unsupported
13888 always_export_symbols=yes
13889 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'
13890 # Note: this linker hardcodes the directories in LIBPATH if there
13891 # are no directories specified by -L.
13892 hardcode_minus_L=yes
13893 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13894 # Neither direct hardcoding nor static linking is supported with a
13895 # broken collect2.
13896 hardcode_direct=unsupported
13897 fi
13898 ;;
13899
13900 aix[4-9]*)
13901 if test "$host_cpu" = ia64; then
13902 # On IA64, the linker does run time linking by default, so we don't
13903 # have to do anything special.
13904 aix_use_runtimelinking=no
13905 exp_sym_flag='-Bexport'
13906 no_entry_flag=""
13907 else
13908 # If we're using GNU nm, then we don't want the "-C" option.
13909 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13910 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000013911 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 +000013912 else
13913 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'
13914 fi
13915 aix_use_runtimelinking=no
13916
13917 # Test if we are trying to use run time linking or normal
13918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13919 # need to do runtime linking.
13920 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13921 for ld_flag in $LDFLAGS; do
13922 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13923 aix_use_runtimelinking=yes
13924 break
13925 fi
13926 done
13927 ;;
13928 esac
13929
13930 exp_sym_flag='-bexport'
13931 no_entry_flag='-bnoentry'
13932 fi
13933
13934 # When large executables or shared objects are built, AIX ld can
13935 # have problems creating the table of contents. If linking a library
13936 # or program results in "error TOC overflow" add -mminimal-toc to
13937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13939
13940 archive_cmds=''
13941 hardcode_direct=yes
13942 hardcode_direct_absolute=yes
13943 hardcode_libdir_separator=':'
13944 link_all_deplibs=yes
13945 file_list_spec='${wl}-f,'
13946
13947 if test "$GCC" = yes; then
13948 case $host_os in aix4.[012]|aix4.[012].*)
13949 # We only want to do this on AIX 4.2 and lower, the check
13950 # below for broken collect2 doesn't work under 4.3+
13951 collect2name=`${CC} -print-prog-name=collect2`
13952 if test -f "$collect2name" &&
13953 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13954 then
13955 # We have reworked collect2
13956 :
13957 else
13958 # We have old collect2
13959 hardcode_direct=unsupported
13960 # It fails to find uninstalled libraries when the uninstalled
13961 # path is not listed in the libpath. Setting hardcode_minus_L
13962 # to unsupported forces relinking
13963 hardcode_minus_L=yes
13964 hardcode_libdir_flag_spec='-L$libdir'
13965 hardcode_libdir_separator=
13966 fi
13967 ;;
13968 esac
13969 shared_flag='-shared'
13970 if test "$aix_use_runtimelinking" = yes; then
13971 shared_flag="$shared_flag "'${wl}-G'
13972 fi
13973 else
13974 # not using gcc
13975 if test "$host_cpu" = ia64; then
13976 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13977 # chokes on -Wl,-G. The following line is correct:
13978 shared_flag='-G'
13979 else
13980 if test "$aix_use_runtimelinking" = yes; then
13981 shared_flag='${wl}-G'
13982 else
13983 shared_flag='${wl}-bM:SRE'
13984 fi
13985 fi
13986 fi
13987
13988 export_dynamic_flag_spec='${wl}-bexpall'
13989 # It seems that -bexpall does not export symbols beginning with
13990 # underscore (_), so it is better to generate a list of symbols to export.
13991 always_export_symbols=yes
13992 if test "$aix_use_runtimelinking" = yes; then
13993 # Warning - without using the other runtime loading flags (-brtl),
13994 # -berok will link without error, but may produce a broken library.
13995 allow_undefined_flag='-berok'
13996 # Determine the default libpath from the value encoded in an
13997 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013999/* end confdefs.h. */
14000
14001int
14002main ()
14003{
14004
14005 ;
14006 return 0;
14007}
14008_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014009if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014010
14011lt_aix_libpath_sed='
14012 /Import File Strings/,/^$/ {
14013 /^0/ {
14014 s/^0 *\(.*\)$/\1/
14015 p
14016 }
14017 }'
14018aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14019# Check for a 64-bit object if we didn't find anything.
14020if test -z "$aix_libpath"; then
14021 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14022fi
cristy3ed852e2009-09-05 21:47:34 +000014023fi
cristy8b350f62009-11-15 23:12:43 +000014024rm -f core conftest.err conftest.$ac_objext \
14025 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014026if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14027
14028 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000014029 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 +000014030 else
14031 if test "$host_cpu" = ia64; then
14032 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14033 allow_undefined_flag="-z nodefs"
14034 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"
14035 else
14036 # Determine the default libpath from the value encoded in an
14037 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000014038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014039/* end confdefs.h. */
14040
14041int
14042main ()
14043{
14044
14045 ;
14046 return 0;
14047}
14048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014049if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014050
14051lt_aix_libpath_sed='
14052 /Import File Strings/,/^$/ {
14053 /^0/ {
14054 s/^0 *\(.*\)$/\1/
14055 p
14056 }
14057 }'
14058aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14059# Check for a 64-bit object if we didn't find anything.
14060if test -z "$aix_libpath"; then
14061 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14062fi
cristy3ed852e2009-09-05 21:47:34 +000014063fi
cristy8b350f62009-11-15 23:12:43 +000014064rm -f core conftest.err conftest.$ac_objext \
14065 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014066if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14067
14068 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14069 # Warning - without using the other run time loading flags,
14070 # -berok will link without error, but may produce a broken library.
14071 no_undefined_flag=' ${wl}-bernotok'
14072 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000014073 # Exported symbols can be pulled into shared objects from archives
14074 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000014075 archive_cmds_need_lc=yes
14076 # This is similar to how AIX traditionally builds its shared libraries.
14077 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'
14078 fi
14079 fi
14080 ;;
14081
14082 amigaos*)
14083 case $host_cpu in
14084 powerpc)
14085 # see comment about AmigaOS4 .so support
14086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14087 archive_expsym_cmds=''
14088 ;;
14089 m68k)
14090 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)'
14091 hardcode_libdir_flag_spec='-L$libdir'
14092 hardcode_minus_L=yes
14093 ;;
14094 esac
14095 ;;
14096
14097 bsdi[45]*)
14098 export_dynamic_flag_spec=-rdynamic
14099 ;;
14100
14101 cygwin* | mingw* | pw32* | cegcc*)
14102 # When not using gcc, we currently assume that we are using
14103 # Microsoft Visual C++.
14104 # hardcode_libdir_flag_spec is actually meaningless, as there is
14105 # no search path for DLLs.
14106 hardcode_libdir_flag_spec=' '
14107 allow_undefined_flag=unsupported
14108 # Tell ltmain to make .lib files, not .a files.
14109 libext=lib
14110 # Tell ltmain to make .dll files, not .so files.
14111 shrext_cmds=".dll"
14112 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000014113 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000014114 # The linker will automatically build a .lib file if we build a DLL.
14115 old_archive_from_new_cmds='true'
14116 # FIXME: Should let the user specify the lib program.
14117 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14118 fix_srcfile_path='`cygpath -w "$srcfile"`'
14119 enable_shared_with_static_runtimes=yes
14120 ;;
14121
14122 darwin* | rhapsody*)
14123
14124
14125 archive_cmds_need_lc=no
14126 hardcode_direct=no
14127 hardcode_automatic=yes
14128 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000014129 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000014130 link_all_deplibs=yes
14131 allow_undefined_flag="$_lt_dar_allow_undefined"
14132 case $cc_basename in
14133 ifort*) _lt_dar_can_shared=yes ;;
14134 *) _lt_dar_can_shared=$GCC ;;
14135 esac
14136 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000014137 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000014138 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14139 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14140 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}"
14141 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}"
14142
14143 else
14144 ld_shlibs=no
14145 fi
14146
14147 ;;
14148
14149 dgux*)
14150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14151 hardcode_libdir_flag_spec='-L$libdir'
14152 hardcode_shlibpath_var=no
14153 ;;
14154
14155 freebsd1*)
14156 ld_shlibs=no
14157 ;;
14158
14159 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14160 # support. Future versions do this automatically, but an explicit c++rt0.o
14161 # does not break anything, and helps significantly (at the cost of a little
14162 # extra space).
14163 freebsd2.2*)
14164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14165 hardcode_libdir_flag_spec='-R$libdir'
14166 hardcode_direct=yes
14167 hardcode_shlibpath_var=no
14168 ;;
14169
14170 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14171 freebsd2*)
14172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14173 hardcode_direct=yes
14174 hardcode_minus_L=yes
14175 hardcode_shlibpath_var=no
14176 ;;
14177
14178 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14179 freebsd* | dragonfly*)
14180 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14181 hardcode_libdir_flag_spec='-R$libdir'
14182 hardcode_direct=yes
14183 hardcode_shlibpath_var=no
14184 ;;
14185
14186 hpux9*)
14187 if test "$GCC" = yes; then
14188 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'
14189 else
14190 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'
14191 fi
14192 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14193 hardcode_libdir_separator=:
14194 hardcode_direct=yes
14195
14196 # hardcode_minus_L: Not really in the search PATH,
14197 # but as the default location of the library.
14198 hardcode_minus_L=yes
14199 export_dynamic_flag_spec='${wl}-E'
14200 ;;
14201
14202 hpux10*)
cristy18304f92009-11-22 15:48:26 +000014203 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014204 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14205 else
14206 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14207 fi
14208 if test "$with_gnu_ld" = no; then
14209 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14210 hardcode_libdir_flag_spec_ld='+b $libdir'
14211 hardcode_libdir_separator=:
14212 hardcode_direct=yes
14213 hardcode_direct_absolute=yes
14214 export_dynamic_flag_spec='${wl}-E'
14215 # hardcode_minus_L: Not really in the search PATH,
14216 # but as the default location of the library.
14217 hardcode_minus_L=yes
14218 fi
14219 ;;
14220
14221 hpux11*)
cristy18304f92009-11-22 15:48:26 +000014222 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014223 case $host_cpu in
14224 hppa*64*)
14225 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14226 ;;
14227 ia64*)
14228 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14229 ;;
14230 *)
14231 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14232 ;;
14233 esac
14234 else
14235 case $host_cpu in
14236 hppa*64*)
14237 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14238 ;;
14239 ia64*)
14240 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14241 ;;
14242 *)
cristy18304f92009-11-22 15:48:26 +000014243 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 +000014244 ;;
14245 esac
14246 fi
14247 if test "$with_gnu_ld" = no; then
14248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14249 hardcode_libdir_separator=:
14250
14251 case $host_cpu in
14252 hppa*64*|ia64*)
14253 hardcode_direct=no
14254 hardcode_shlibpath_var=no
14255 ;;
14256 *)
14257 hardcode_direct=yes
14258 hardcode_direct_absolute=yes
14259 export_dynamic_flag_spec='${wl}-E'
14260
14261 # hardcode_minus_L: Not really in the search PATH,
14262 # but as the default location of the library.
14263 hardcode_minus_L=yes
14264 ;;
14265 esac
14266 fi
14267 ;;
14268
14269 irix5* | irix6* | nonstopux*)
14270 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000014271 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 +000014272 # Try to use the -exported_symbol ld option, if it does not
14273 # work, assume that -exports_file does not work either and
14274 # implicitly export all symbols.
14275 save_LDFLAGS="$LDFLAGS"
14276 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000014277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000014279int foo(void) {}
14280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014281if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000014282 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 +000014283
cristy3ed852e2009-09-05 21:47:34 +000014284fi
cristy8b350f62009-11-15 23:12:43 +000014285rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014287 LDFLAGS="$save_LDFLAGS"
14288 else
cristy18304f92009-11-22 15:48:26 +000014289 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'
14290 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 +000014291 fi
14292 archive_cmds_need_lc='no'
14293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14294 hardcode_libdir_separator=:
14295 inherit_rpath=yes
14296 link_all_deplibs=yes
14297 ;;
14298
14299 netbsd*)
14300 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14302 else
14303 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14304 fi
14305 hardcode_libdir_flag_spec='-R$libdir'
14306 hardcode_direct=yes
14307 hardcode_shlibpath_var=no
14308 ;;
14309
14310 newsos6)
14311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14312 hardcode_direct=yes
14313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14314 hardcode_libdir_separator=:
14315 hardcode_shlibpath_var=no
14316 ;;
14317
14318 *nto* | *qnx*)
14319 ;;
14320
14321 openbsd*)
14322 if test -f /usr/libexec/ld.so; then
14323 hardcode_direct=yes
14324 hardcode_shlibpath_var=no
14325 hardcode_direct_absolute=yes
14326 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14327 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14328 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14329 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14330 export_dynamic_flag_spec='${wl}-E'
14331 else
14332 case $host_os in
14333 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14335 hardcode_libdir_flag_spec='-R$libdir'
14336 ;;
14337 *)
14338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14339 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14340 ;;
14341 esac
14342 fi
14343 else
14344 ld_shlibs=no
14345 fi
14346 ;;
14347
14348 os2*)
14349 hardcode_libdir_flag_spec='-L$libdir'
14350 hardcode_minus_L=yes
14351 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000014352 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 +000014353 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14354 ;;
14355
14356 osf3*)
14357 if test "$GCC" = yes; then
14358 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000014359 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 +000014360 else
14361 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000014362 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 +000014363 fi
14364 archive_cmds_need_lc='no'
14365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14366 hardcode_libdir_separator=:
14367 ;;
14368
14369 osf4* | osf5*) # as osf3* with the addition of -msym flag
14370 if test "$GCC" = yes; then
14371 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000014372 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 +000014373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14374 else
14375 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000014376 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 +000014377 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 +000014378 $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 +000014379
14380 # Both c and cxx compiler support -rpath directly
14381 hardcode_libdir_flag_spec='-rpath $libdir'
14382 fi
14383 archive_cmds_need_lc='no'
14384 hardcode_libdir_separator=:
14385 ;;
14386
14387 solaris*)
14388 no_undefined_flag=' -z defs'
14389 if test "$GCC" = yes; then
14390 wlarc='${wl}'
14391 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14393 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14394 else
14395 case `$CC -V 2>&1` in
14396 *"Compilers 5.0"*)
14397 wlarc=''
14398 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14399 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14400 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14401 ;;
14402 *)
14403 wlarc='${wl}'
14404 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14405 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14406 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14407 ;;
14408 esac
14409 fi
14410 hardcode_libdir_flag_spec='-R$libdir'
14411 hardcode_shlibpath_var=no
14412 case $host_os in
14413 solaris2.[0-5] | solaris2.[0-5].*) ;;
14414 *)
14415 # The compiler driver will combine and reorder linker options,
14416 # but understands `-z linker_flag'. GCC discards it without `$wl',
14417 # but is careful enough not to reorder.
14418 # Supported since Solaris 2.6 (maybe 2.5.1?)
14419 if test "$GCC" = yes; then
14420 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14421 else
14422 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14423 fi
14424 ;;
14425 esac
14426 link_all_deplibs=yes
14427 ;;
14428
14429 sunos4*)
14430 if test "x$host_vendor" = xsequent; then
14431 # Use $CC to link under sequent, because it throws in some extra .o
14432 # files that make .init and .fini sections work.
14433 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14434 else
14435 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14436 fi
14437 hardcode_libdir_flag_spec='-L$libdir'
14438 hardcode_direct=yes
14439 hardcode_minus_L=yes
14440 hardcode_shlibpath_var=no
14441 ;;
14442
14443 sysv4)
14444 case $host_vendor in
14445 sni)
14446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14447 hardcode_direct=yes # is this really true???
14448 ;;
14449 siemens)
14450 ## LD is ld it makes a PLAMLIB
14451 ## CC just makes a GrossModule.
14452 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14453 reload_cmds='$CC -r -o $output$reload_objs'
14454 hardcode_direct=no
14455 ;;
14456 motorola)
14457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14458 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14459 ;;
14460 esac
14461 runpath_var='LD_RUN_PATH'
14462 hardcode_shlibpath_var=no
14463 ;;
14464
14465 sysv4.3*)
14466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14467 hardcode_shlibpath_var=no
14468 export_dynamic_flag_spec='-Bexport'
14469 ;;
14470
14471 sysv4*MP*)
14472 if test -d /usr/nec; then
14473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14474 hardcode_shlibpath_var=no
14475 runpath_var=LD_RUN_PATH
14476 hardcode_runpath_var=yes
14477 ld_shlibs=yes
14478 fi
14479 ;;
14480
14481 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14482 no_undefined_flag='${wl}-z,text'
14483 archive_cmds_need_lc=no
14484 hardcode_shlibpath_var=no
14485 runpath_var='LD_RUN_PATH'
14486
14487 if test "$GCC" = yes; then
14488 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14489 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14490 else
14491 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14492 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14493 fi
14494 ;;
14495
14496 sysv5* | sco3.2v5* | sco5v6*)
14497 # Note: We can NOT use -z defs as we might desire, because we do not
14498 # link with -lc, and that would cause any symbols used from libc to
14499 # always be unresolved, which means just about no library would
14500 # ever link correctly. If we're not using GNU ld we use -z text
14501 # though, which does catch some bad symbols but isn't as heavy-handed
14502 # as -z defs.
14503 no_undefined_flag='${wl}-z,text'
14504 allow_undefined_flag='${wl}-z,nodefs'
14505 archive_cmds_need_lc=no
14506 hardcode_shlibpath_var=no
14507 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14508 hardcode_libdir_separator=':'
14509 link_all_deplibs=yes
14510 export_dynamic_flag_spec='${wl}-Bexport'
14511 runpath_var='LD_RUN_PATH'
14512
14513 if test "$GCC" = yes; then
14514 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14515 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14516 else
14517 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14518 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14519 fi
14520 ;;
14521
14522 uts4*)
14523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14524 hardcode_libdir_flag_spec='-L$libdir'
14525 hardcode_shlibpath_var=no
14526 ;;
14527
14528 *)
14529 ld_shlibs=no
14530 ;;
14531 esac
14532
14533 if test x$host_vendor = xsni; then
14534 case $host in
14535 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14536 export_dynamic_flag_spec='${wl}-Blargedynsym'
14537 ;;
14538 esac
14539 fi
14540 fi
14541
cristy8b350f62009-11-15 23:12:43 +000014542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014543$as_echo "$ld_shlibs" >&6; }
14544test "$ld_shlibs" = no && can_build_shared=no
14545
14546with_gnu_ld=$with_gnu_ld
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562#
14563# Do we need to explicitly link libc?
14564#
14565case "x$archive_cmds_need_lc" in
14566x|xyes)
14567 # Assume -lc should be added
14568 archive_cmds_need_lc=yes
14569
14570 if test "$enable_shared" = yes && test "$GCC" = yes; then
14571 case $archive_cmds in
14572 *'~'*)
14573 # FIXME: we may have to deal with multi-command sequences.
14574 ;;
14575 '$CC '*)
14576 # Test whether the compiler implicitly links with -lc since on some
14577 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14578 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014580$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000014581 $RM conftest*
14582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014583
cristy18304f92009-11-22 15:48:26 +000014584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014585 (eval $ac_compile) 2>&5
14586 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14588 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000014589 soname=conftest
14590 lib=conftest
14591 libobjs=conftest.$ac_objext
14592 deplibs=
14593 wl=$lt_prog_compiler_wl
14594 pic_flag=$lt_prog_compiler_pic
14595 compiler_flags=-v
14596 linker_flags=-v
14597 verstring=
14598 output_objdir=.
14599 libname=conftest
14600 lt_save_allow_undefined_flag=$allow_undefined_flag
14601 allow_undefined_flag=
14602 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 +000014603 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14604 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14606 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000014607 then
14608 archive_cmds_need_lc=no
14609 else
14610 archive_cmds_need_lc=yes
14611 fi
14612 allow_undefined_flag=$lt_save_allow_undefined_flag
14613 else
14614 cat conftest.err 1>&5
14615 fi
14616 $RM conftest*
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14618$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000014619 ;;
14620 esac
14621 fi
14622 ;;
14623esac
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
cristy8b350f62009-11-15 23:12:43 +000014781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014782$as_echo_n "checking dynamic linker characteristics... " >&6; }
14783
14784if test "$GCC" = yes; then
14785 case $host_os in
14786 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14787 *) lt_awk_arg="/^libraries:/" ;;
14788 esac
cristy18304f92009-11-22 15:48:26 +000014789 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14790 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000014791 # if the path contains ";" then we assume it to be the separator
14792 # otherwise default to the standard path separator (i.e. ":") - it is
14793 # assumed that no part of a normal pathname contains ";" but that should
14794 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000014795 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14796 else
14797 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14798 fi
cristy3ed852e2009-09-05 21:47:34 +000014799 # Ok, now we have the path, separated by spaces, we can step through it
14800 # and add multilib dir if necessary.
14801 lt_tmp_lt_search_path_spec=
14802 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14803 for lt_sys_path in $lt_search_path_spec; do
14804 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14805 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14806 else
14807 test -d "$lt_sys_path" && \
14808 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14809 fi
14810 done
cristy18304f92009-11-22 15:48:26 +000014811 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000014812BEGIN {RS=" "; FS="/|\n";} {
14813 lt_foo="";
14814 lt_count=0;
14815 for (lt_i = NF; lt_i > 0; lt_i--) {
14816 if ($lt_i != "" && $lt_i != ".") {
14817 if ($lt_i == "..") {
14818 lt_count++;
14819 } else {
14820 if (lt_count == 0) {
14821 lt_foo="/" $lt_i lt_foo;
14822 } else {
14823 lt_count--;
14824 }
14825 }
14826 }
14827 }
14828 if (lt_foo != "") { lt_freq[lt_foo]++; }
14829 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14830}'`
cristy18304f92009-11-22 15:48:26 +000014831 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000014832else
14833 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14834fi
14835library_names_spec=
14836libname_spec='lib$name'
14837soname_spec=
14838shrext_cmds=".so"
14839postinstall_cmds=
14840postuninstall_cmds=
14841finish_cmds=
14842finish_eval=
14843shlibpath_var=
14844shlibpath_overrides_runpath=unknown
14845version_type=none
14846dynamic_linker="$host_os ld.so"
14847sys_lib_dlsearch_path_spec="/lib /usr/lib"
14848need_lib_prefix=unknown
14849hardcode_into_libs=no
14850
14851# when you set need_version to no, make sure it does not cause -set_version
14852# flags to be left without arguments
14853need_version=unknown
14854
14855case $host_os in
14856aix3*)
14857 version_type=linux
14858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14859 shlibpath_var=LIBPATH
14860
14861 # AIX 3 has no versioning support, so we append a major version to the name.
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 ;;
14864
14865aix[4-9]*)
14866 version_type=linux
14867 need_lib_prefix=no
14868 need_version=no
14869 hardcode_into_libs=yes
14870 if test "$host_cpu" = ia64; then
14871 # AIX 5 supports IA64
14872 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 else
14875 # With GCC up to 2.95.x, collect2 would create an import file
14876 # for dependence libraries. The import file would start with
14877 # the line `#! .'. This would cause the generated library to
14878 # depend on `.', always an invalid library. This was fixed in
14879 # development snapshots of GCC prior to 3.0.
14880 case $host_os in
14881 aix4 | aix4.[01] | aix4.[01].*)
14882 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14883 echo ' yes '
14884 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14885 :
14886 else
14887 can_build_shared=no
14888 fi
14889 ;;
14890 esac
14891 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14892 # soname into executable. Probably we can add versioning support to
14893 # collect2, so additional links can be useful in future.
14894 if test "$aix_use_runtimelinking" = yes; then
14895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14896 # instead of lib<name>.a to let people know that these are not
14897 # typical AIX shared libraries.
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899 else
14900 # We preserve .a as extension for shared libraries through AIX4.2
14901 # and later when we are not doing run time linking.
14902 library_names_spec='${libname}${release}.a $libname.a'
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 fi
14905 shlibpath_var=LIBPATH
14906 fi
14907 ;;
14908
14909amigaos*)
14910 case $host_cpu in
14911 powerpc)
14912 # Since July 2007 AmigaOS4 officially supports .so libraries.
14913 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915 ;;
14916 m68k)
14917 library_names_spec='$libname.ixlibrary $libname.a'
14918 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000014919 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 +000014920 ;;
14921 esac
14922 ;;
14923
14924beos*)
14925 library_names_spec='${libname}${shared_ext}'
14926 dynamic_linker="$host_os ld.so"
14927 shlibpath_var=LIBRARY_PATH
14928 ;;
14929
14930bsdi[45]*)
14931 version_type=linux
14932 need_version=no
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14934 soname_spec='${libname}${release}${shared_ext}$major'
14935 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14936 shlibpath_var=LD_LIBRARY_PATH
14937 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14938 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14939 # the default ld.so.conf also contains /usr/contrib/lib and
14940 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14941 # libtool to hard-code these into programs
14942 ;;
14943
14944cygwin* | mingw* | pw32* | cegcc*)
14945 version_type=windows
14946 shrext_cmds=".dll"
14947 need_version=no
14948 need_lib_prefix=no
14949
14950 case $GCC,$host_os in
14951 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14952 library_names_spec='$libname.dll.a'
14953 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14954 postinstall_cmds='base_file=`basename \${file}`~
14955 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14956 dldir=$destdir/`dirname \$dlpath`~
14957 test -d \$dldir || mkdir -p \$dldir~
14958 $install_prog $dir/$dlname \$dldir/$dlname~
14959 chmod a+x \$dldir/$dlname~
14960 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14961 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14962 fi'
14963 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14964 dlpath=$dir/\$dldll~
14965 $RM \$dlpath'
14966 shlibpath_overrides_runpath=yes
14967
14968 case $host_os in
14969 cygwin*)
14970 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14971 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014972 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000014973 ;;
14974 mingw* | cegcc*)
14975 # MinGW DLLs use traditional 'lib' prefix
14976 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014977 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14978 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14979 # It is most probably a Windows format PATH printed by
14980 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14981 # path with ; separators, and with drive letters. We can handle the
14982 # drive letters (cygwin fileutils understands them), so leave them,
14983 # especially as we might pass files found there to a mingw objdump,
14984 # which wouldn't understand a cygwinified path. Ahh.
14985 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14986 else
14987 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14988 fi
cristy3ed852e2009-09-05 21:47:34 +000014989 ;;
14990 pw32*)
14991 # pw32 DLLs use 'pw' prefix rather than 'lib'
14992 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14993 ;;
14994 esac
14995 ;;
14996
14997 *)
14998 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14999 ;;
15000 esac
15001 dynamic_linker='Win32 ld.exe'
15002 # FIXME: first we should search . and the directory the executable is in
15003 shlibpath_var=PATH
15004 ;;
15005
15006darwin* | rhapsody*)
15007 dynamic_linker="$host_os dyld"
15008 version_type=darwin
15009 need_lib_prefix=no
15010 need_version=no
15011 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15012 soname_spec='${libname}${release}${major}$shared_ext'
15013 shlibpath_overrides_runpath=yes
15014 shlibpath_var=DYLD_LIBRARY_PATH
15015 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15016
15017 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15018 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15019 ;;
15020
15021dgux*)
15022 version_type=linux
15023 need_lib_prefix=no
15024 need_version=no
15025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15026 soname_spec='${libname}${release}${shared_ext}$major'
15027 shlibpath_var=LD_LIBRARY_PATH
15028 ;;
15029
15030freebsd1*)
15031 dynamic_linker=no
15032 ;;
15033
15034freebsd* | dragonfly*)
15035 # DragonFly does not have aout. When/if they implement a new
15036 # versioning mechanism, adjust this.
15037 if test -x /usr/bin/objformat; then
15038 objformat=`/usr/bin/objformat`
15039 else
15040 case $host_os in
15041 freebsd[123]*) objformat=aout ;;
15042 *) objformat=elf ;;
15043 esac
15044 fi
15045 version_type=freebsd-$objformat
15046 case $version_type in
15047 freebsd-elf*)
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15049 need_version=no
15050 need_lib_prefix=no
15051 ;;
15052 freebsd-*)
15053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15054 need_version=yes
15055 ;;
15056 esac
15057 shlibpath_var=LD_LIBRARY_PATH
15058 case $host_os in
15059 freebsd2*)
15060 shlibpath_overrides_runpath=yes
15061 ;;
15062 freebsd3.[01]* | freebsdelf3.[01]*)
15063 shlibpath_overrides_runpath=yes
15064 hardcode_into_libs=yes
15065 ;;
15066 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15067 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15068 shlibpath_overrides_runpath=no
15069 hardcode_into_libs=yes
15070 ;;
15071 *) # from 4.6 on, and DragonFly
15072 shlibpath_overrides_runpath=yes
15073 hardcode_into_libs=yes
15074 ;;
15075 esac
15076 ;;
15077
15078gnu*)
15079 version_type=linux
15080 need_lib_prefix=no
15081 need_version=no
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15083 soname_spec='${libname}${release}${shared_ext}$major'
15084 shlibpath_var=LD_LIBRARY_PATH
15085 hardcode_into_libs=yes
15086 ;;
15087
15088hpux9* | hpux10* | hpux11*)
15089 # Give a soname corresponding to the major version so that dld.sl refuses to
15090 # link against other versions.
15091 version_type=sunos
15092 need_lib_prefix=no
15093 need_version=no
15094 case $host_cpu in
15095 ia64*)
15096 shrext_cmds='.so'
15097 hardcode_into_libs=yes
15098 dynamic_linker="$host_os dld.so"
15099 shlibpath_var=LD_LIBRARY_PATH
15100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 if test "X$HPUX_IA64_MODE" = X32; then
15104 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15105 else
15106 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15107 fi
15108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15109 ;;
15110 hppa*64*)
15111 shrext_cmds='.sl'
15112 hardcode_into_libs=yes
15113 dynamic_linker="$host_os dld.sl"
15114 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15117 soname_spec='${libname}${release}${shared_ext}$major'
15118 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15120 ;;
15121 *)
15122 shrext_cmds='.sl'
15123 dynamic_linker="$host_os dld.sl"
15124 shlibpath_var=SHLIB_PATH
15125 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15127 soname_spec='${libname}${release}${shared_ext}$major'
15128 ;;
15129 esac
cristy18304f92009-11-22 15:48:26 +000015130 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000015131 postinstall_cmds='chmod 555 $lib'
15132 ;;
15133
15134interix[3-9]*)
15135 version_type=linux
15136 need_lib_prefix=no
15137 need_version=no
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15139 soname_spec='${libname}${release}${shared_ext}$major'
15140 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15141 shlibpath_var=LD_LIBRARY_PATH
15142 shlibpath_overrides_runpath=no
15143 hardcode_into_libs=yes
15144 ;;
15145
15146irix5* | irix6* | nonstopux*)
15147 case $host_os in
15148 nonstopux*) version_type=nonstopux ;;
15149 *)
15150 if test "$lt_cv_prog_gnu_ld" = yes; then
15151 version_type=linux
15152 else
15153 version_type=irix
15154 fi ;;
15155 esac
15156 need_lib_prefix=no
15157 need_version=no
15158 soname_spec='${libname}${release}${shared_ext}$major'
15159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15160 case $host_os in
15161 irix5* | nonstopux*)
15162 libsuff= shlibsuff=
15163 ;;
15164 *)
15165 case $LD in # libtool.m4 will add one of these switches to LD
15166 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15167 libsuff= shlibsuff= libmagic=32-bit;;
15168 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15169 libsuff=32 shlibsuff=N32 libmagic=N32;;
15170 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15171 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15172 *) libsuff= shlibsuff= libmagic=never-match;;
15173 esac
15174 ;;
15175 esac
15176 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15177 shlibpath_overrides_runpath=no
15178 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15179 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15180 hardcode_into_libs=yes
15181 ;;
15182
15183# No shared lib support for Linux oldld, aout, or coff.
15184linux*oldld* | linux*aout* | linux*coff*)
15185 dynamic_linker=no
15186 ;;
15187
15188# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000015189linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015190 version_type=linux
15191 need_lib_prefix=no
15192 need_version=no
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 soname_spec='${libname}${release}${shared_ext}$major'
15195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15196 shlibpath_var=LD_LIBRARY_PATH
15197 shlibpath_overrides_runpath=no
15198 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000015199 save_LDFLAGS=$LDFLAGS
15200 save_libdir=$libdir
15201 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15202 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015204/* end confdefs.h. */
15205
15206int
15207main ()
15208{
15209
15210 ;
15211 return 0;
15212}
15213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015214if ac_fn_c_try_link "$LINENO"; then :
15215 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000015216 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000015217fi
cristy3ed852e2009-09-05 21:47:34 +000015218fi
cristy8b350f62009-11-15 23:12:43 +000015219rm -f core conftest.err conftest.$ac_objext \
15220 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000015221 LDFLAGS=$save_LDFLAGS
15222 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000015223
15224 # This implies no fast_install, which is unacceptable.
15225 # Some rework will be needed to allow for fast_install
15226 # before this can be enabled.
15227 hardcode_into_libs=yes
15228
cristy679ed8e2009-12-05 02:37:41 +000015229 # Add ABI-specific directories to the system library path.
15230 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15231
cristy3ed852e2009-09-05 21:47:34 +000015232 # Append ld.so.conf contents to the search path
15233 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000015234 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 +000015235 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000015236 fi
15237
15238 # We used to test for /lib/ld.so.1 and disable shared libraries on
15239 # powerpc, because MkLinux only supported shared libraries with the
15240 # GNU dynamic linker. Since this was broken with cross compilers,
15241 # most powerpc-linux boxes support dynamic linking these days and
15242 # people can always --disable-shared, the test was removed, and we
15243 # assume the GNU/Linux dynamic linker is in use.
15244 dynamic_linker='GNU/Linux ld.so'
15245 ;;
15246
15247netbsd*)
15248 version_type=sunos
15249 need_lib_prefix=no
15250 need_version=no
15251 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15254 dynamic_linker='NetBSD (a.out) ld.so'
15255 else
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15257 soname_spec='${libname}${release}${shared_ext}$major'
15258 dynamic_linker='NetBSD ld.elf_so'
15259 fi
15260 shlibpath_var=LD_LIBRARY_PATH
15261 shlibpath_overrides_runpath=yes
15262 hardcode_into_libs=yes
15263 ;;
15264
15265newsos6)
15266 version_type=linux
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 shlibpath_overrides_runpath=yes
15270 ;;
15271
15272*nto* | *qnx*)
15273 version_type=qnx
15274 need_lib_prefix=no
15275 need_version=no
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15277 soname_spec='${libname}${release}${shared_ext}$major'
15278 shlibpath_var=LD_LIBRARY_PATH
15279 shlibpath_overrides_runpath=no
15280 hardcode_into_libs=yes
15281 dynamic_linker='ldqnx.so'
15282 ;;
15283
15284openbsd*)
15285 version_type=sunos
15286 sys_lib_dlsearch_path_spec="/usr/lib"
15287 need_lib_prefix=no
15288 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15289 case $host_os in
15290 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15291 *) need_version=no ;;
15292 esac
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15295 shlibpath_var=LD_LIBRARY_PATH
15296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15297 case $host_os in
15298 openbsd2.[89] | openbsd2.[89].*)
15299 shlibpath_overrides_runpath=no
15300 ;;
15301 *)
15302 shlibpath_overrides_runpath=yes
15303 ;;
15304 esac
15305 else
15306 shlibpath_overrides_runpath=yes
15307 fi
15308 ;;
15309
15310os2*)
15311 libname_spec='$name'
15312 shrext_cmds=".dll"
15313 need_lib_prefix=no
15314 library_names_spec='$libname${shared_ext} $libname.a'
15315 dynamic_linker='OS/2 ld.exe'
15316 shlibpath_var=LIBPATH
15317 ;;
15318
15319osf3* | osf4* | osf5*)
15320 version_type=osf
15321 need_lib_prefix=no
15322 need_version=no
15323 soname_spec='${libname}${release}${shared_ext}$major'
15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15325 shlibpath_var=LD_LIBRARY_PATH
15326 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15327 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15328 ;;
15329
15330rdos*)
15331 dynamic_linker=no
15332 ;;
15333
15334solaris*)
15335 version_type=linux
15336 need_lib_prefix=no
15337 need_version=no
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 shlibpath_overrides_runpath=yes
15342 hardcode_into_libs=yes
15343 # ldd complains unless libraries are executable
15344 postinstall_cmds='chmod +x $lib'
15345 ;;
15346
15347sunos4*)
15348 version_type=sunos
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15350 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15351 shlibpath_var=LD_LIBRARY_PATH
15352 shlibpath_overrides_runpath=yes
15353 if test "$with_gnu_ld" = yes; then
15354 need_lib_prefix=no
15355 fi
15356 need_version=yes
15357 ;;
15358
15359sysv4 | sysv4.3*)
15360 version_type=linux
15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15362 soname_spec='${libname}${release}${shared_ext}$major'
15363 shlibpath_var=LD_LIBRARY_PATH
15364 case $host_vendor in
15365 sni)
15366 shlibpath_overrides_runpath=no
15367 need_lib_prefix=no
15368 runpath_var=LD_RUN_PATH
15369 ;;
15370 siemens)
15371 need_lib_prefix=no
15372 ;;
15373 motorola)
15374 need_lib_prefix=no
15375 need_version=no
15376 shlibpath_overrides_runpath=no
15377 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15378 ;;
15379 esac
15380 ;;
15381
15382sysv4*MP*)
15383 if test -d /usr/nec ;then
15384 version_type=linux
15385 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15386 soname_spec='$libname${shared_ext}.$major'
15387 shlibpath_var=LD_LIBRARY_PATH
15388 fi
15389 ;;
15390
15391sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15392 version_type=freebsd-elf
15393 need_lib_prefix=no
15394 need_version=no
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 shlibpath_var=LD_LIBRARY_PATH
15398 shlibpath_overrides_runpath=yes
15399 hardcode_into_libs=yes
15400 if test "$with_gnu_ld" = yes; then
15401 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15402 else
15403 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15404 case $host_os in
15405 sco3.2v5*)
15406 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15407 ;;
15408 esac
15409 fi
15410 sys_lib_dlsearch_path_spec='/usr/lib'
15411 ;;
15412
15413tpf*)
15414 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15415 version_type=linux
15416 need_lib_prefix=no
15417 need_version=no
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419 shlibpath_var=LD_LIBRARY_PATH
15420 shlibpath_overrides_runpath=no
15421 hardcode_into_libs=yes
15422 ;;
15423
15424uts4*)
15425 version_type=linux
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15427 soname_spec='${libname}${release}${shared_ext}$major'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 ;;
15430
15431*)
15432 dynamic_linker=no
15433 ;;
15434esac
cristy8b350f62009-11-15 23:12:43 +000015435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015436$as_echo "$dynamic_linker" >&6; }
15437test "$dynamic_linker" = no && can_build_shared=no
15438
15439variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15440if test "$GCC" = yes; then
15441 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15442fi
15443
15444if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15445 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15446fi
15447if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15448 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15449fi
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
cristy8b350f62009-11-15 23:12:43 +000015537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015538$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15539hardcode_action=
15540if test -n "$hardcode_libdir_flag_spec" ||
15541 test -n "$runpath_var" ||
15542 test "X$hardcode_automatic" = "Xyes" ; then
15543
15544 # We can hardcode non-existent directories.
15545 if test "$hardcode_direct" != no &&
15546 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15547 # have to relink, otherwise we might link with an installed library
15548 # when we should be linking with a yet-to-be-installed one
15549 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15550 test "$hardcode_minus_L" != no; then
15551 # Linking always hardcodes the temporary library directory.
15552 hardcode_action=relink
15553 else
15554 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15555 hardcode_action=immediate
15556 fi
15557else
15558 # We cannot hardcode anything, or else we can only hardcode existing
15559 # directories.
15560 hardcode_action=unsupported
15561fi
cristy8b350f62009-11-15 23:12:43 +000015562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015563$as_echo "$hardcode_action" >&6; }
15564
15565if test "$hardcode_action" = relink ||
15566 test "$inherit_rpath" = yes; then
15567 # Fast installation is not supported
15568 enable_fast_install=no
15569elif test "$shlibpath_overrides_runpath" = yes ||
15570 test "$enable_shared" = no; then
15571 # Fast installation is not necessary
15572 enable_fast_install=needless
15573fi
15574
15575
15576
15577
15578
15579
15580 if test "x$enable_dlopen" != xyes; then
15581 enable_dlopen=unknown
15582 enable_dlopen_self=unknown
15583 enable_dlopen_self_static=unknown
15584else
15585 lt_cv_dlopen=no
15586 lt_cv_dlopen_libs=
15587
15588 case $host_os in
15589 beos*)
15590 lt_cv_dlopen="load_add_on"
15591 lt_cv_dlopen_libs=
15592 lt_cv_dlopen_self=yes
15593 ;;
15594
15595 mingw* | pw32* | cegcc*)
15596 lt_cv_dlopen="LoadLibrary"
15597 lt_cv_dlopen_libs=
15598 ;;
15599
15600 cygwin*)
15601 lt_cv_dlopen="dlopen"
15602 lt_cv_dlopen_libs=
15603 ;;
15604
15605 darwin*)
15606 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015608$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015609if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015610 $as_echo_n "(cached) " >&6
15611else
15612 ac_check_lib_save_LIBS=$LIBS
15613LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015615/* end confdefs.h. */
15616
15617/* Override any GCC internal prototype to avoid an error.
15618 Use char because int might match the return type of a GCC
15619 builtin and then its argument prototype would still apply. */
15620#ifdef __cplusplus
15621extern "C"
15622#endif
15623char dlopen ();
15624int
15625main ()
15626{
15627return dlopen ();
15628 ;
15629 return 0;
15630}
15631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015632if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015633 ac_cv_lib_dl_dlopen=yes
15634else
cristy8b350f62009-11-15 23:12:43 +000015635 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015636fi
cristy8b350f62009-11-15 23:12:43 +000015637rm -f core conftest.err conftest.$ac_objext \
15638 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015639LIBS=$ac_check_lib_save_LIBS
15640fi
cristy8b350f62009-11-15 23:12:43 +000015641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015642$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015643if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015644 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15645else
15646
15647 lt_cv_dlopen="dyld"
15648 lt_cv_dlopen_libs=
15649 lt_cv_dlopen_self=yes
15650
15651fi
15652
15653 ;;
15654
15655 *)
cristy8b350f62009-11-15 23:12:43 +000015656 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15657if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015658 lt_cv_dlopen="shl_load"
15659else
cristy8b350f62009-11-15 23:12:43 +000015660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015661$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015662if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015663 $as_echo_n "(cached) " >&6
15664else
15665 ac_check_lib_save_LIBS=$LIBS
15666LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015668/* end confdefs.h. */
15669
15670/* Override any GCC internal prototype to avoid an error.
15671 Use char because int might match the return type of a GCC
15672 builtin and then its argument prototype would still apply. */
15673#ifdef __cplusplus
15674extern "C"
15675#endif
15676char shl_load ();
15677int
15678main ()
15679{
15680return shl_load ();
15681 ;
15682 return 0;
15683}
15684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015685if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015686 ac_cv_lib_dld_shl_load=yes
15687else
cristy8b350f62009-11-15 23:12:43 +000015688 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015689fi
cristy8b350f62009-11-15 23:12:43 +000015690rm -f core conftest.err conftest.$ac_objext \
15691 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015692LIBS=$ac_check_lib_save_LIBS
15693fi
cristy8b350f62009-11-15 23:12:43 +000015694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015695$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015696if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015697 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15698else
cristy8b350f62009-11-15 23:12:43 +000015699 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15700if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015701 lt_cv_dlopen="dlopen"
15702else
cristy8b350f62009-11-15 23:12:43 +000015703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015704$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015705if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015706 $as_echo_n "(cached) " >&6
15707else
15708 ac_check_lib_save_LIBS=$LIBS
15709LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015711/* end confdefs.h. */
15712
15713/* Override any GCC internal prototype to avoid an error.
15714 Use char because int might match the return type of a GCC
15715 builtin and then its argument prototype would still apply. */
15716#ifdef __cplusplus
15717extern "C"
15718#endif
15719char dlopen ();
15720int
15721main ()
15722{
15723return dlopen ();
15724 ;
15725 return 0;
15726}
15727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015728if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015729 ac_cv_lib_dl_dlopen=yes
15730else
cristy8b350f62009-11-15 23:12:43 +000015731 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015732fi
cristy8b350f62009-11-15 23:12:43 +000015733rm -f core conftest.err conftest.$ac_objext \
15734 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015735LIBS=$ac_check_lib_save_LIBS
15736fi
cristy8b350f62009-11-15 23:12:43 +000015737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015738$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015739if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15741else
cristy8b350f62009-11-15 23:12:43 +000015742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015743$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015744if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015745 $as_echo_n "(cached) " >&6
15746else
15747 ac_check_lib_save_LIBS=$LIBS
15748LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015750/* end confdefs.h. */
15751
15752/* Override any GCC internal prototype to avoid an error.
15753 Use char because int might match the return type of a GCC
15754 builtin and then its argument prototype would still apply. */
15755#ifdef __cplusplus
15756extern "C"
15757#endif
15758char dlopen ();
15759int
15760main ()
15761{
15762return dlopen ();
15763 ;
15764 return 0;
15765}
15766_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015767if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015768 ac_cv_lib_svld_dlopen=yes
15769else
cristy8b350f62009-11-15 23:12:43 +000015770 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015771fi
cristy8b350f62009-11-15 23:12:43 +000015772rm -f core conftest.err conftest.$ac_objext \
15773 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015774LIBS=$ac_check_lib_save_LIBS
15775fi
cristy8b350f62009-11-15 23:12:43 +000015776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015777$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015778if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15780else
cristy8b350f62009-11-15 23:12:43 +000015781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015782$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015783if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015784 $as_echo_n "(cached) " >&6
15785else
15786 ac_check_lib_save_LIBS=$LIBS
15787LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015789/* end confdefs.h. */
15790
15791/* Override any GCC internal prototype to avoid an error.
15792 Use char because int might match the return type of a GCC
15793 builtin and then its argument prototype would still apply. */
15794#ifdef __cplusplus
15795extern "C"
15796#endif
15797char dld_link ();
15798int
15799main ()
15800{
15801return dld_link ();
15802 ;
15803 return 0;
15804}
15805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015806if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015807 ac_cv_lib_dld_dld_link=yes
15808else
cristy8b350f62009-11-15 23:12:43 +000015809 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015810fi
cristy8b350f62009-11-15 23:12:43 +000015811rm -f core conftest.err conftest.$ac_objext \
15812 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015813LIBS=$ac_check_lib_save_LIBS
15814fi
cristy8b350f62009-11-15 23:12:43 +000015815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015816$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015817if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015818 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15819fi
15820
15821
15822fi
15823
15824
15825fi
15826
15827
15828fi
15829
15830
15831fi
15832
15833
15834fi
15835
15836 ;;
15837 esac
15838
15839 if test "x$lt_cv_dlopen" != xno; then
15840 enable_dlopen=yes
15841 else
15842 enable_dlopen=no
15843 fi
15844
15845 case $lt_cv_dlopen in
15846 dlopen)
15847 save_CPPFLAGS="$CPPFLAGS"
15848 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15849
15850 save_LDFLAGS="$LDFLAGS"
15851 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15852
15853 save_LIBS="$LIBS"
15854 LIBS="$lt_cv_dlopen_libs $LIBS"
15855
cristy8b350f62009-11-15 23:12:43 +000015856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015857$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015858if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015859 $as_echo_n "(cached) " >&6
15860else
15861 if test "$cross_compiling" = yes; then :
15862 lt_cv_dlopen_self=cross
15863else
15864 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15865 lt_status=$lt_dlunknown
15866 cat > conftest.$ac_ext <<_LT_EOF
cristy935c86e2010-06-05 23:50:07 +000015867#line 15867 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015868#include "confdefs.h"
15869
15870#if HAVE_DLFCN_H
15871#include <dlfcn.h>
15872#endif
15873
15874#include <stdio.h>
15875
15876#ifdef RTLD_GLOBAL
15877# define LT_DLGLOBAL RTLD_GLOBAL
15878#else
15879# ifdef DL_GLOBAL
15880# define LT_DLGLOBAL DL_GLOBAL
15881# else
15882# define LT_DLGLOBAL 0
15883# endif
15884#endif
15885
15886/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15887 find out it does not work in some platform. */
15888#ifndef LT_DLLAZY_OR_NOW
15889# ifdef RTLD_LAZY
15890# define LT_DLLAZY_OR_NOW RTLD_LAZY
15891# else
15892# ifdef DL_LAZY
15893# define LT_DLLAZY_OR_NOW DL_LAZY
15894# else
15895# ifdef RTLD_NOW
15896# define LT_DLLAZY_OR_NOW RTLD_NOW
15897# else
15898# ifdef DL_NOW
15899# define LT_DLLAZY_OR_NOW DL_NOW
15900# else
15901# define LT_DLLAZY_OR_NOW 0
15902# endif
15903# endif
15904# endif
15905# endif
15906#endif
15907
cristy18304f92009-11-22 15:48:26 +000015908void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015909int main ()
15910{
15911 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15912 int status = $lt_dlunknown;
15913
15914 if (self)
15915 {
15916 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015917 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015918 /* dlclose (self); */
15919 }
15920 else
15921 puts (dlerror ());
15922
15923 return status;
15924}
15925_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015927 (eval $ac_link) 2>&5
15928 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15930 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015931 (./conftest; exit; ) >&5 2>/dev/null
15932 lt_status=$?
15933 case x$lt_status in
15934 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15935 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15936 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15937 esac
15938 else :
15939 # compilation failed
15940 lt_cv_dlopen_self=no
15941 fi
15942fi
15943rm -fr conftest*
15944
15945
15946fi
cristy8b350f62009-11-15 23:12:43 +000015947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015948$as_echo "$lt_cv_dlopen_self" >&6; }
15949
15950 if test "x$lt_cv_dlopen_self" = xyes; then
15951 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015953$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015954if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015955 $as_echo_n "(cached) " >&6
15956else
15957 if test "$cross_compiling" = yes; then :
15958 lt_cv_dlopen_self_static=cross
15959else
15960 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15961 lt_status=$lt_dlunknown
15962 cat > conftest.$ac_ext <<_LT_EOF
cristy935c86e2010-06-05 23:50:07 +000015963#line 15963 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015964#include "confdefs.h"
15965
15966#if HAVE_DLFCN_H
15967#include <dlfcn.h>
15968#endif
15969
15970#include <stdio.h>
15971
15972#ifdef RTLD_GLOBAL
15973# define LT_DLGLOBAL RTLD_GLOBAL
15974#else
15975# ifdef DL_GLOBAL
15976# define LT_DLGLOBAL DL_GLOBAL
15977# else
15978# define LT_DLGLOBAL 0
15979# endif
15980#endif
15981
15982/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15983 find out it does not work in some platform. */
15984#ifndef LT_DLLAZY_OR_NOW
15985# ifdef RTLD_LAZY
15986# define LT_DLLAZY_OR_NOW RTLD_LAZY
15987# else
15988# ifdef DL_LAZY
15989# define LT_DLLAZY_OR_NOW DL_LAZY
15990# else
15991# ifdef RTLD_NOW
15992# define LT_DLLAZY_OR_NOW RTLD_NOW
15993# else
15994# ifdef DL_NOW
15995# define LT_DLLAZY_OR_NOW DL_NOW
15996# else
15997# define LT_DLLAZY_OR_NOW 0
15998# endif
15999# endif
16000# endif
16001# endif
16002#endif
16003
cristy18304f92009-11-22 15:48:26 +000016004void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000016005int main ()
16006{
16007 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16008 int status = $lt_dlunknown;
16009
16010 if (self)
16011 {
16012 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000016013 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000016014 /* dlclose (self); */
16015 }
16016 else
16017 puts (dlerror ());
16018
16019 return status;
16020}
16021_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000016022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016023 (eval $ac_link) 2>&5
16024 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16026 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000016027 (./conftest; exit; ) >&5 2>/dev/null
16028 lt_status=$?
16029 case x$lt_status in
16030 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16031 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16032 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16033 esac
16034 else :
16035 # compilation failed
16036 lt_cv_dlopen_self_static=no
16037 fi
16038fi
16039rm -fr conftest*
16040
16041
16042fi
cristy8b350f62009-11-15 23:12:43 +000016043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016044$as_echo "$lt_cv_dlopen_self_static" >&6; }
16045 fi
16046
16047 CPPFLAGS="$save_CPPFLAGS"
16048 LDFLAGS="$save_LDFLAGS"
16049 LIBS="$save_LIBS"
16050 ;;
16051 esac
16052
16053 case $lt_cv_dlopen_self in
16054 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16055 *) enable_dlopen_self=unknown ;;
16056 esac
16057
16058 case $lt_cv_dlopen_self_static in
16059 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16060 *) enable_dlopen_self_static=unknown ;;
16061 esac
16062fi
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080striplib=
16081old_striplib=
cristy8b350f62009-11-15 23:12:43 +000016082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000016083$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16084if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16085 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16086 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000016087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016088$as_echo "yes" >&6; }
16089else
16090# FIXME - insert some real tests, host_os isn't really good enough
16091 case $host_os in
16092 darwin*)
16093 if test -n "$STRIP" ; then
16094 striplib="$STRIP -x"
16095 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000016096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016097$as_echo "yes" >&6; }
16098 else
cristy8b350f62009-11-15 23:12:43 +000016099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016100$as_echo "no" >&6; }
16101 fi
16102 ;;
16103 *)
cristy8b350f62009-11-15 23:12:43 +000016104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016105$as_echo "no" >&6; }
16106 ;;
16107 esac
16108fi
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000016122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016123$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016125$as_echo "$can_build_shared" >&6; }
16126
cristy8b350f62009-11-15 23:12:43 +000016127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016128$as_echo_n "checking whether to build shared libraries... " >&6; }
16129 test "$can_build_shared" = "no" && enable_shared=no
16130
16131 # On AIX, shared libraries and static libraries use the same namespace, and
16132 # are all built from PIC.
16133 case $host_os in
16134 aix3*)
16135 test "$enable_shared" = yes && enable_static=no
16136 if test -n "$RANLIB"; then
16137 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16138 postinstall_cmds='$RANLIB $lib'
16139 fi
16140 ;;
16141
16142 aix[4-9]*)
16143 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16144 test "$enable_shared" = yes && enable_static=no
16145 fi
16146 ;;
16147 esac
cristy8b350f62009-11-15 23:12:43 +000016148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016149$as_echo "$enable_shared" >&6; }
16150
cristy8b350f62009-11-15 23:12:43 +000016151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016152$as_echo_n "checking whether to build static libraries... " >&6; }
16153 # Make sure either enable_shared or enable_static is yes.
16154 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000016155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016156$as_echo "$enable_static" >&6; }
16157
16158
16159
16160
16161fi
16162ac_ext=c
16163ac_cpp='$CPP $CPPFLAGS'
16164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16166ac_compiler_gnu=$ac_cv_c_compiler_gnu
16167
16168CC="$lt_save_CC"
16169
16170
16171ac_ext=cpp
16172ac_cpp='$CXXCPP $CPPFLAGS'
16173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16176
16177archive_cmds_need_lc_CXX=no
16178allow_undefined_flag_CXX=
16179always_export_symbols_CXX=no
16180archive_expsym_cmds_CXX=
16181compiler_needs_object_CXX=no
16182export_dynamic_flag_spec_CXX=
16183hardcode_direct_CXX=no
16184hardcode_direct_absolute_CXX=no
16185hardcode_libdir_flag_spec_CXX=
16186hardcode_libdir_flag_spec_ld_CXX=
16187hardcode_libdir_separator_CXX=
16188hardcode_minus_L_CXX=no
16189hardcode_shlibpath_var_CXX=unsupported
16190hardcode_automatic_CXX=no
16191inherit_rpath_CXX=no
16192module_cmds_CXX=
16193module_expsym_cmds_CXX=
16194link_all_deplibs_CXX=unknown
16195old_archive_cmds_CXX=$old_archive_cmds
16196no_undefined_flag_CXX=
16197whole_archive_flag_spec_CXX=
16198enable_shared_with_static_runtimes_CXX=no
16199
16200# Source file extension for C++ test sources.
16201ac_ext=cpp
16202
16203# Object file extension for compiled C++ test sources.
16204objext=o
16205objext_CXX=$objext
16206
16207# No sense in running all these tests if we already determined that
16208# the CXX compiler isn't working. Some variables (like enable_shared)
16209# are currently assumed to apply to all compilers on this platform,
16210# and will be corrupted by setting them based on a non-working compiler.
16211if test "$_lt_caught_CXX_error" != yes; then
16212 # Code to be used in simple compile tests
16213 lt_simple_compile_test_code="int some_variable = 0;"
16214
16215 # Code to be used in simple link tests
16216 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16217
16218 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16219
16220
16221
16222
16223
16224
16225# If no C compiler was specified, use CC.
16226LTCC=${LTCC-"$CC"}
16227
16228# If no C compiler flags were specified, use CFLAGS.
16229LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16230
16231# Allow CC to be a program name with arguments.
16232compiler=$CC
16233
16234
16235 # save warnings/boilerplate of simple test code
16236 ac_outfile=conftest.$ac_objext
16237echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16238eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16239_lt_compiler_boilerplate=`cat conftest.err`
16240$RM conftest*
16241
16242 ac_outfile=conftest.$ac_objext
16243echo "$lt_simple_link_test_code" >conftest.$ac_ext
16244eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16245_lt_linker_boilerplate=`cat conftest.err`
16246$RM -r conftest*
16247
16248
16249 # Allow CC to be a program name with arguments.
16250 lt_save_CC=$CC
16251 lt_save_LD=$LD
16252 lt_save_GCC=$GCC
16253 GCC=$GXX
16254 lt_save_with_gnu_ld=$with_gnu_ld
16255 lt_save_path_LD=$lt_cv_path_LD
16256 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16257 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16258 else
16259 $as_unset lt_cv_prog_gnu_ld
16260 fi
16261 if test -n "${lt_cv_path_LDCXX+set}"; then
16262 lt_cv_path_LD=$lt_cv_path_LDCXX
16263 else
16264 $as_unset lt_cv_path_LD
16265 fi
16266 test -z "${LDCXX+set}" || LD=$LDCXX
16267 CC=${CXX-"c++"}
16268 compiler=$CC
16269 compiler_CXX=$CC
16270 for cc_temp in $compiler""; do
16271 case $cc_temp in
16272 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16273 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16274 \-*) ;;
16275 *) break;;
16276 esac
16277done
cristy18304f92009-11-22 15:48:26 +000016278cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016279
16280
16281 if test -n "$compiler"; then
16282 # We don't want -fno-exception when compiling C++ code, so set the
16283 # no_builtin_flag separately
16284 if test "$GXX" = yes; then
16285 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16286 else
16287 lt_prog_compiler_no_builtin_flag_CXX=
16288 fi
16289
16290 if test "$GXX" = yes; then
16291 # Set up default GNU C++ configuration
16292
16293
16294
16295# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016296if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016297 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16298else
16299 with_gnu_ld=no
16300fi
16301
16302ac_prog=ld
16303if test "$GCC" = yes; then
16304 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016306$as_echo_n "checking for ld used by $CC... " >&6; }
16307 case $host in
16308 *-*-mingw*)
16309 # gcc leaves a trailing carriage return which upsets mingw
16310 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16311 *)
16312 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16313 esac
16314 case $ac_prog in
16315 # Accept absolute paths.
16316 [\\/]* | ?:[\\/]*)
16317 re_direlt='/[^/][^/]*/\.\./'
16318 # Canonicalize the pathname of ld
16319 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16320 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16321 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16322 done
16323 test -z "$LD" && LD="$ac_prog"
16324 ;;
16325 "")
16326 # If it fails, then pretend we aren't using GCC.
16327 ac_prog=ld
16328 ;;
16329 *)
16330 # If it is relative, then search for the first ld in PATH.
16331 with_gnu_ld=unknown
16332 ;;
16333 esac
16334elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016336$as_echo_n "checking for GNU ld... " >&6; }
16337else
cristy8b350f62009-11-15 23:12:43 +000016338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016339$as_echo_n "checking for non-GNU ld... " >&6; }
16340fi
cristy8b350f62009-11-15 23:12:43 +000016341if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016342 $as_echo_n "(cached) " >&6
16343else
16344 if test -z "$LD"; then
16345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16346 for ac_dir in $PATH; do
16347 IFS="$lt_save_ifs"
16348 test -z "$ac_dir" && ac_dir=.
16349 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16350 lt_cv_path_LD="$ac_dir/$ac_prog"
16351 # Check to see if the program is GNU ld. I'd rather use --version,
16352 # but apparently some variants of GNU ld only accept -v.
16353 # Break only if it was the GNU/non-GNU ld that we prefer.
16354 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16355 *GNU* | *'with BFD'*)
16356 test "$with_gnu_ld" != no && break
16357 ;;
16358 *)
16359 test "$with_gnu_ld" != yes && break
16360 ;;
16361 esac
16362 fi
16363 done
16364 IFS="$lt_save_ifs"
16365else
16366 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16367fi
16368fi
16369
16370LD="$lt_cv_path_LD"
16371if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016373$as_echo "$LD" >&6; }
16374else
cristy8b350f62009-11-15 23:12:43 +000016375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016376$as_echo "no" >&6; }
16377fi
cristy8b350f62009-11-15 23:12:43 +000016378test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016380$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016381if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016382 $as_echo_n "(cached) " >&6
16383else
16384 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16385case `$LD -v 2>&1 </dev/null` in
16386*GNU* | *'with BFD'*)
16387 lt_cv_prog_gnu_ld=yes
16388 ;;
16389*)
16390 lt_cv_prog_gnu_ld=no
16391 ;;
16392esac
16393fi
cristy8b350f62009-11-15 23:12:43 +000016394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016395$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16396with_gnu_ld=$lt_cv_prog_gnu_ld
16397
16398
16399
16400
16401
16402
16403
16404 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16405 # archiving commands below assume that GNU ld is being used.
16406 if test "$with_gnu_ld" = yes; then
16407 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16408 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'
16409
16410 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16411 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16412
16413 # If archive_cmds runs LD, not CC, wlarc should be empty
16414 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16415 # investigate it a little bit more. (MM)
16416 wlarc='${wl}'
16417
16418 # ancient GNU ld didn't support --whole-archive et. al.
16419 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16420 $GREP 'no-whole-archive' > /dev/null; then
16421 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16422 else
16423 whole_archive_flag_spec_CXX=
16424 fi
16425 else
16426 with_gnu_ld=no
16427 wlarc=
16428
16429 # A generic and very simple default shared library creation
16430 # command for GNU C++ for the case where it uses the native
16431 # linker, instead of GNU ld. If possible, this setting should
16432 # overridden to take advantage of the native linker features on
16433 # the platform it is being used on.
16434 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16435 fi
16436
16437 # Commands to make compiler produce verbose output that lists
16438 # what "hidden" libraries, object files and flags are used when
16439 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016440 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016441
16442 else
16443 GXX=no
16444 with_gnu_ld=no
16445 wlarc=
16446 fi
16447
16448 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016450$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16451 ld_shlibs_CXX=yes
16452 case $host_os in
16453 aix3*)
16454 # FIXME: insert proper C++ library support
16455 ld_shlibs_CXX=no
16456 ;;
16457 aix[4-9]*)
16458 if test "$host_cpu" = ia64; then
16459 # On IA64, the linker does run time linking by default, so we don't
16460 # have to do anything special.
16461 aix_use_runtimelinking=no
16462 exp_sym_flag='-Bexport'
16463 no_entry_flag=""
16464 else
16465 aix_use_runtimelinking=no
16466
16467 # Test if we are trying to use run time linking or normal
16468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16469 # need to do runtime linking.
16470 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16471 for ld_flag in $LDFLAGS; do
16472 case $ld_flag in
16473 *-brtl*)
16474 aix_use_runtimelinking=yes
16475 break
16476 ;;
16477 esac
16478 done
16479 ;;
16480 esac
16481
16482 exp_sym_flag='-bexport'
16483 no_entry_flag='-bnoentry'
16484 fi
16485
16486 # When large executables or shared objects are built, AIX ld can
16487 # have problems creating the table of contents. If linking a library
16488 # or program results in "error TOC overflow" add -mminimal-toc to
16489 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16490 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16491
16492 archive_cmds_CXX=''
16493 hardcode_direct_CXX=yes
16494 hardcode_direct_absolute_CXX=yes
16495 hardcode_libdir_separator_CXX=':'
16496 link_all_deplibs_CXX=yes
16497 file_list_spec_CXX='${wl}-f,'
16498
16499 if test "$GXX" = yes; then
16500 case $host_os in aix4.[012]|aix4.[012].*)
16501 # We only want to do this on AIX 4.2 and lower, the check
16502 # below for broken collect2 doesn't work under 4.3+
16503 collect2name=`${CC} -print-prog-name=collect2`
16504 if test -f "$collect2name" &&
16505 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16506 then
16507 # We have reworked collect2
16508 :
16509 else
16510 # We have old collect2
16511 hardcode_direct_CXX=unsupported
16512 # It fails to find uninstalled libraries when the uninstalled
16513 # path is not listed in the libpath. Setting hardcode_minus_L
16514 # to unsupported forces relinking
16515 hardcode_minus_L_CXX=yes
16516 hardcode_libdir_flag_spec_CXX='-L$libdir'
16517 hardcode_libdir_separator_CXX=
16518 fi
16519 esac
16520 shared_flag='-shared'
16521 if test "$aix_use_runtimelinking" = yes; then
16522 shared_flag="$shared_flag "'${wl}-G'
16523 fi
16524 else
16525 # not using gcc
16526 if test "$host_cpu" = ia64; then
16527 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16528 # chokes on -Wl,-G. The following line is correct:
16529 shared_flag='-G'
16530 else
16531 if test "$aix_use_runtimelinking" = yes; then
16532 shared_flag='${wl}-G'
16533 else
16534 shared_flag='${wl}-bM:SRE'
16535 fi
16536 fi
16537 fi
16538
16539 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16540 # It seems that -bexpall does not export symbols beginning with
16541 # underscore (_), so it is better to generate a list of symbols to
16542 # export.
16543 always_export_symbols_CXX=yes
16544 if test "$aix_use_runtimelinking" = yes; then
16545 # Warning - without using the other runtime loading flags (-brtl),
16546 # -berok will link without error, but may produce a broken library.
16547 allow_undefined_flag_CXX='-berok'
16548 # Determine the default libpath from the value encoded in an empty
16549 # executable.
cristy8b350f62009-11-15 23:12:43 +000016550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016551/* end confdefs.h. */
16552
16553int
16554main ()
16555{
16556
16557 ;
16558 return 0;
16559}
16560_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016561if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016562
16563lt_aix_libpath_sed='
16564 /Import File Strings/,/^$/ {
16565 /^0/ {
16566 s/^0 *\(.*\)$/\1/
16567 p
16568 }
16569 }'
16570aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16571# Check for a 64-bit object if we didn't find anything.
16572if test -z "$aix_libpath"; then
16573 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16574fi
cristy3ed852e2009-09-05 21:47:34 +000016575fi
cristy8b350f62009-11-15 23:12:43 +000016576rm -f core conftest.err conftest.$ac_objext \
16577 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016578if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16579
16580 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16581
cristy18304f92009-11-22 15:48:26 +000016582 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 +000016583 else
16584 if test "$host_cpu" = ia64; then
16585 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16586 allow_undefined_flag_CXX="-z nodefs"
16587 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"
16588 else
16589 # Determine the default libpath from the value encoded in an
16590 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016592/* end confdefs.h. */
16593
16594int
16595main ()
16596{
16597
16598 ;
16599 return 0;
16600}
16601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016602if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016603
16604lt_aix_libpath_sed='
16605 /Import File Strings/,/^$/ {
16606 /^0/ {
16607 s/^0 *\(.*\)$/\1/
16608 p
16609 }
16610 }'
16611aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16612# Check for a 64-bit object if we didn't find anything.
16613if test -z "$aix_libpath"; then
16614 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16615fi
cristy3ed852e2009-09-05 21:47:34 +000016616fi
cristy8b350f62009-11-15 23:12:43 +000016617rm -f core conftest.err conftest.$ac_objext \
16618 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016619if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16620
16621 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16622 # Warning - without using the other run time loading flags,
16623 # -berok will link without error, but may produce a broken library.
16624 no_undefined_flag_CXX=' ${wl}-bernotok'
16625 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000016626 # Exported symbols can be pulled into shared objects from archives
16627 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000016628 archive_cmds_need_lc_CXX=yes
16629 # This is similar to how AIX traditionally builds its shared
16630 # libraries.
16631 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'
16632 fi
16633 fi
16634 ;;
16635
16636 beos*)
16637 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16638 allow_undefined_flag_CXX=unsupported
16639 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16640 # support --undefined. This deserves some investigation. FIXME
16641 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16642 else
16643 ld_shlibs_CXX=no
16644 fi
16645 ;;
16646
16647 chorus*)
16648 case $cc_basename in
16649 *)
16650 # FIXME: insert proper C++ library support
16651 ld_shlibs_CXX=no
16652 ;;
16653 esac
16654 ;;
16655
16656 cygwin* | mingw* | pw32* | cegcc*)
16657 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16658 # as there is no search path for DLLs.
16659 hardcode_libdir_flag_spec_CXX='-L$libdir'
16660 allow_undefined_flag_CXX=unsupported
16661 always_export_symbols_CXX=no
16662 enable_shared_with_static_runtimes_CXX=yes
16663
16664 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16665 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'
16666 # If the export-symbols file already is a .def file (1st line
16667 # is EXPORTS), use it as is; otherwise, prepend...
16668 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16669 cp $export_symbols $output_objdir/$soname.def;
16670 else
16671 echo EXPORTS > $output_objdir/$soname.def;
16672 cat $export_symbols >> $output_objdir/$soname.def;
16673 fi~
16674 $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'
16675 else
16676 ld_shlibs_CXX=no
16677 fi
16678 ;;
16679 darwin* | rhapsody*)
16680
16681
16682 archive_cmds_need_lc_CXX=no
16683 hardcode_direct_CXX=no
16684 hardcode_automatic_CXX=yes
16685 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000016686 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000016687 link_all_deplibs_CXX=yes
16688 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16689 case $cc_basename in
16690 ifort*) _lt_dar_can_shared=yes ;;
16691 *) _lt_dar_can_shared=$GCC ;;
16692 esac
16693 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000016694 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016695 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}"
16696 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16697 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}"
16698 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}"
16699 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16700 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}"
16701 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}"
16702 fi
16703
16704 else
16705 ld_shlibs_CXX=no
16706 fi
16707
16708 ;;
16709
16710 dgux*)
16711 case $cc_basename in
16712 ec++*)
16713 # FIXME: insert proper C++ library support
16714 ld_shlibs_CXX=no
16715 ;;
16716 ghcx*)
16717 # Green Hills C++ Compiler
16718 # FIXME: insert proper C++ library support
16719 ld_shlibs_CXX=no
16720 ;;
16721 *)
16722 # FIXME: insert proper C++ library support
16723 ld_shlibs_CXX=no
16724 ;;
16725 esac
16726 ;;
16727
16728 freebsd[12]*)
16729 # C++ shared libraries reported to be fairly broken before
16730 # switch to ELF
16731 ld_shlibs_CXX=no
16732 ;;
16733
16734 freebsd-elf*)
16735 archive_cmds_need_lc_CXX=no
16736 ;;
16737
16738 freebsd* | dragonfly*)
16739 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16740 # conventions
16741 ld_shlibs_CXX=yes
16742 ;;
16743
16744 gnu*)
16745 ;;
16746
16747 hpux9*)
16748 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16749 hardcode_libdir_separator_CXX=:
16750 export_dynamic_flag_spec_CXX='${wl}-E'
16751 hardcode_direct_CXX=yes
16752 hardcode_minus_L_CXX=yes # Not in the search PATH,
16753 # but as the default
16754 # location of the library.
16755
16756 case $cc_basename in
16757 CC*)
16758 # FIXME: insert proper C++ library support
16759 ld_shlibs_CXX=no
16760 ;;
16761 aCC*)
16762 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'
16763 # Commands to make compiler produce verbose output that lists
16764 # what "hidden" libraries, object files and flags are used when
16765 # linking a shared library.
16766 #
16767 # There doesn't appear to be a way to prevent this compiler from
16768 # explicitly linking system object files so we need to strip them
16769 # from the output so that they don't get included in the library
16770 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016771 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 +000016772 ;;
16773 *)
16774 if test "$GXX" = yes; then
16775 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'
16776 else
16777 # FIXME: insert proper C++ library support
16778 ld_shlibs_CXX=no
16779 fi
16780 ;;
16781 esac
16782 ;;
16783
16784 hpux10*|hpux11*)
16785 if test $with_gnu_ld = no; then
16786 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16787 hardcode_libdir_separator_CXX=:
16788
16789 case $host_cpu in
16790 hppa*64*|ia64*)
16791 ;;
16792 *)
16793 export_dynamic_flag_spec_CXX='${wl}-E'
16794 ;;
16795 esac
16796 fi
16797 case $host_cpu in
16798 hppa*64*|ia64*)
16799 hardcode_direct_CXX=no
16800 hardcode_shlibpath_var_CXX=no
16801 ;;
16802 *)
16803 hardcode_direct_CXX=yes
16804 hardcode_direct_absolute_CXX=yes
16805 hardcode_minus_L_CXX=yes # Not in the search PATH,
16806 # but as the default
16807 # location of the library.
16808 ;;
16809 esac
16810
16811 case $cc_basename in
16812 CC*)
16813 # FIXME: insert proper C++ library support
16814 ld_shlibs_CXX=no
16815 ;;
16816 aCC*)
16817 case $host_cpu in
16818 hppa*64*)
16819 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16820 ;;
16821 ia64*)
16822 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16823 ;;
16824 *)
16825 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16826 ;;
16827 esac
16828 # Commands to make compiler produce verbose output that lists
16829 # what "hidden" libraries, object files and flags are used when
16830 # linking a shared library.
16831 #
16832 # There doesn't appear to be a way to prevent this compiler from
16833 # explicitly linking system object files so we need to strip them
16834 # from the output so that they don't get included in the library
16835 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016836 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 +000016837 ;;
16838 *)
16839 if test "$GXX" = yes; then
16840 if test $with_gnu_ld = no; then
16841 case $host_cpu in
16842 hppa*64*)
16843 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16844 ;;
16845 ia64*)
16846 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16847 ;;
16848 *)
16849 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'
16850 ;;
16851 esac
16852 fi
16853 else
16854 # FIXME: insert proper C++ library support
16855 ld_shlibs_CXX=no
16856 fi
16857 ;;
16858 esac
16859 ;;
16860
16861 interix[3-9]*)
16862 hardcode_direct_CXX=no
16863 hardcode_shlibpath_var_CXX=no
16864 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16865 export_dynamic_flag_spec_CXX='${wl}-E'
16866 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16867 # Instead, shared libraries are loaded at an image base (0x10000000 by
16868 # default) and relocated if they conflict, which is a slow very memory
16869 # consuming and fragmenting process. To avoid this, we pick a random,
16870 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16871 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16872 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'
16873 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'
16874 ;;
16875 irix5* | irix6*)
16876 case $cc_basename in
16877 CC*)
16878 # SGI C++
cristy18304f92009-11-22 15:48:26 +000016879 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 +000016880
16881 # Archives containing C++ object files must be created using
16882 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16883 # necessary to make sure instantiated templates are included
16884 # in the archive.
16885 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16886 ;;
16887 *)
16888 if test "$GXX" = yes; then
16889 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000016890 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 +000016891 else
cristy18304f92009-11-22 15:48:26 +000016892 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 +000016893 fi
16894 fi
16895 link_all_deplibs_CXX=yes
16896 ;;
16897 esac
16898 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16899 hardcode_libdir_separator_CXX=:
16900 inherit_rpath_CXX=yes
16901 ;;
16902
cristy18304f92009-11-22 15:48:26 +000016903 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016904 case $cc_basename in
16905 KCC*)
16906 # Kuck and Associates, Inc. (KAI) C++ Compiler
16907
16908 # KCC will only create a shared library if the output file
16909 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16910 # to its proper name (with version) after linking.
16911 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'
16912 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'
16913 # Commands to make compiler produce verbose output that lists
16914 # what "hidden" libraries, object files and flags are used when
16915 # linking a shared library.
16916 #
16917 # There doesn't appear to be a way to prevent this compiler from
16918 # explicitly linking system object files so we need to strip them
16919 # from the output so that they don't get included in the library
16920 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016921 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 +000016922
16923 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16924 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16925
16926 # Archives containing C++ object files must be created using
16927 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16928 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16929 ;;
16930 icpc* | ecpc* )
16931 # Intel C++
16932 with_gnu_ld=yes
16933 # version 8.0 and above of icpc choke on multiply defined symbols
16934 # if we add $predep_objects and $postdep_objects, however 7.1 and
16935 # earlier do not add the objects themselves.
16936 case `$CC -V 2>&1` in
16937 *"Version 7."*)
16938 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16939 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'
16940 ;;
16941 *) # Version 8.0 or newer
16942 tmp_idyn=
16943 case $host_cpu in
16944 ia64*) tmp_idyn=' -i_dynamic';;
16945 esac
16946 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16947 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'
16948 ;;
16949 esac
16950 archive_cmds_need_lc_CXX=no
16951 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16952 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16953 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16954 ;;
16955 pgCC* | pgcpp*)
16956 # Portland Group C++ compiler
16957 case `$CC -V` in
16958 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16959 prelink_cmds_CXX='tpldir=Template.dir~
16960 rm -rf $tpldir~
16961 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16962 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16963 old_archive_cmds_CXX='tpldir=Template.dir~
16964 rm -rf $tpldir~
16965 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16966 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16967 $RANLIB $oldlib'
16968 archive_cmds_CXX='tpldir=Template.dir~
16969 rm -rf $tpldir~
16970 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16971 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16972 archive_expsym_cmds_CXX='tpldir=Template.dir~
16973 rm -rf $tpldir~
16974 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16975 $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'
16976 ;;
16977 *) # Version 6 will use weak symbols
16978 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16979 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'
16980 ;;
16981 esac
16982
16983 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16984 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000016985 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 +000016986 ;;
16987 cxx*)
16988 # Compaq C++
16989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16990 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'
16991
16992 runpath_var=LD_RUN_PATH
16993 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16994 hardcode_libdir_separator_CXX=:
16995
16996 # Commands to make compiler produce verbose output that lists
16997 # what "hidden" libraries, object files and flags are used when
16998 # linking a shared library.
16999 #
17000 # There doesn't appear to be a way to prevent this compiler from
17001 # explicitly linking system object files so we need to strip them
17002 # from the output so that they don't get included in the library
17003 # dependencies.
cristy18304f92009-11-22 15:48:26 +000017004 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 +000017005 ;;
cristy18304f92009-11-22 15:48:26 +000017006 xl*)
cristy3ed852e2009-09-05 21:47:34 +000017007 # IBM XL 8.0 on PPC, with GNU ld
17008 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17010 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17011 if test "x$supports_anon_versioning" = xyes; then
17012 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17013 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17014 echo "local: *; };" >> $output_objdir/$libname.ver~
17015 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17016 fi
17017 ;;
17018 *)
17019 case `$CC -V 2>&1 | sed 5q` in
17020 *Sun\ C*)
17021 # Sun C++ 5.9
17022 no_undefined_flag_CXX=' -zdefs'
17023 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17024 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'
17025 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000017026 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 +000017027 compiler_needs_object_CXX=yes
17028
17029 # Not sure whether something based on
17030 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17031 # would be better.
cristy18304f92009-11-22 15:48:26 +000017032 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017033
17034 # Archives containing C++ object files must be created using
17035 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17036 # necessary to make sure instantiated templates are included
17037 # in the archive.
17038 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17039 ;;
17040 esac
17041 ;;
17042 esac
17043 ;;
17044
17045 lynxos*)
17046 # FIXME: insert proper C++ library support
17047 ld_shlibs_CXX=no
17048 ;;
17049
17050 m88k*)
17051 # FIXME: insert proper C++ library support
17052 ld_shlibs_CXX=no
17053 ;;
17054
17055 mvs*)
17056 case $cc_basename in
17057 cxx*)
17058 # FIXME: insert proper C++ library support
17059 ld_shlibs_CXX=no
17060 ;;
17061 *)
17062 # FIXME: insert proper C++ library support
17063 ld_shlibs_CXX=no
17064 ;;
17065 esac
17066 ;;
17067
17068 netbsd*)
17069 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17070 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17071 wlarc=
17072 hardcode_libdir_flag_spec_CXX='-R$libdir'
17073 hardcode_direct_CXX=yes
17074 hardcode_shlibpath_var_CXX=no
17075 fi
17076 # Workaround some broken pre-1.5 toolchains
17077 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17078 ;;
17079
17080 *nto* | *qnx*)
17081 ld_shlibs_CXX=yes
17082 ;;
17083
17084 openbsd2*)
17085 # C++ shared libraries are fairly broken
17086 ld_shlibs_CXX=no
17087 ;;
17088
17089 openbsd*)
17090 if test -f /usr/libexec/ld.so; then
17091 hardcode_direct_CXX=yes
17092 hardcode_shlibpath_var_CXX=no
17093 hardcode_direct_absolute_CXX=yes
17094 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17095 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17097 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17098 export_dynamic_flag_spec_CXX='${wl}-E'
17099 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17100 fi
cristy18304f92009-11-22 15:48:26 +000017101 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000017102 else
17103 ld_shlibs_CXX=no
17104 fi
17105 ;;
17106
17107 osf3* | osf4* | osf5*)
17108 case $cc_basename in
17109 KCC*)
17110 # Kuck and Associates, Inc. (KAI) C++ Compiler
17111
17112 # KCC will only create a shared library if the output file
17113 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17114 # to its proper name (with version) after linking.
17115 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'
17116
17117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17118 hardcode_libdir_separator_CXX=:
17119
17120 # Archives containing C++ object files must be created using
17121 # the KAI C++ compiler.
17122 case $host in
17123 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17124 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17125 esac
17126 ;;
17127 RCC*)
17128 # Rational C++ 2.4.1
17129 # FIXME: insert proper C++ library support
17130 ld_shlibs_CXX=no
17131 ;;
17132 cxx*)
17133 case $host in
17134 osf3*)
17135 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000017136 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 +000017137 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17138 ;;
17139 *)
17140 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000017141 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 +000017142 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17143 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000017144 $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 +000017145 $RM $lib.exp'
17146 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17147 ;;
17148 esac
17149
17150 hardcode_libdir_separator_CXX=:
17151
17152 # Commands to make compiler produce verbose output that lists
17153 # what "hidden" libraries, object files and flags are used when
17154 # linking a shared library.
17155 #
17156 # There doesn't appear to be a way to prevent this compiler from
17157 # explicitly linking system object files so we need to strip them
17158 # from the output so that they don't get included in the library
17159 # dependencies.
cristy18304f92009-11-22 15:48:26 +000017160 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 +000017161 ;;
17162 *)
17163 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17164 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17165 case $host in
17166 osf3*)
cristy18304f92009-11-22 15:48:26 +000017167 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 +000017168 ;;
17169 *)
cristy18304f92009-11-22 15:48:26 +000017170 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 +000017171 ;;
17172 esac
17173
17174 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17175 hardcode_libdir_separator_CXX=:
17176
17177 # Commands to make compiler produce verbose output that lists
17178 # what "hidden" libraries, object files and flags are used when
17179 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017180 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017181
17182 else
17183 # FIXME: insert proper C++ library support
17184 ld_shlibs_CXX=no
17185 fi
17186 ;;
17187 esac
17188 ;;
17189
17190 psos*)
17191 # FIXME: insert proper C++ library support
17192 ld_shlibs_CXX=no
17193 ;;
17194
17195 sunos4*)
17196 case $cc_basename in
17197 CC*)
17198 # Sun C++ 4.x
17199 # FIXME: insert proper C++ library support
17200 ld_shlibs_CXX=no
17201 ;;
17202 lcc*)
17203 # Lucid
17204 # FIXME: insert proper C++ library support
17205 ld_shlibs_CXX=no
17206 ;;
17207 *)
17208 # FIXME: insert proper C++ library support
17209 ld_shlibs_CXX=no
17210 ;;
17211 esac
17212 ;;
17213
17214 solaris*)
17215 case $cc_basename in
17216 CC*)
17217 # Sun C++ 4.2, 5.x and Centerline C++
17218 archive_cmds_need_lc_CXX=yes
17219 no_undefined_flag_CXX=' -zdefs'
17220 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17221 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17222 $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'
17223
17224 hardcode_libdir_flag_spec_CXX='-R$libdir'
17225 hardcode_shlibpath_var_CXX=no
17226 case $host_os in
17227 solaris2.[0-5] | solaris2.[0-5].*) ;;
17228 *)
17229 # The compiler driver will combine and reorder linker options,
17230 # but understands `-z linker_flag'.
17231 # Supported since Solaris 2.6 (maybe 2.5.1?)
17232 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17233 ;;
17234 esac
17235 link_all_deplibs_CXX=yes
17236
cristy18304f92009-11-22 15:48:26 +000017237 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017238
17239 # Archives containing C++ object files must be created using
17240 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17241 # necessary to make sure instantiated templates are included
17242 # in the archive.
17243 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17244 ;;
17245 gcx*)
17246 # Green Hills C++ Compiler
17247 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17248
17249 # The C++ compiler must be used to create the archive.
17250 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17251 ;;
17252 *)
17253 # GNU C++ compiler with Solaris linker
17254 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17255 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17256 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17257 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17258 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17259 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17260
17261 # Commands to make compiler produce verbose output that lists
17262 # what "hidden" libraries, object files and flags are used when
17263 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017264 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017265 else
17266 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17267 # platform.
17268 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17269 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17270 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17271
17272 # Commands to make compiler produce verbose output that lists
17273 # what "hidden" libraries, object files and flags are used when
17274 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017275 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017276 fi
17277
17278 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17279 case $host_os in
17280 solaris2.[0-5] | solaris2.[0-5].*) ;;
17281 *)
17282 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17283 ;;
17284 esac
17285 fi
17286 ;;
17287 esac
17288 ;;
17289
17290 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17291 no_undefined_flag_CXX='${wl}-z,text'
17292 archive_cmds_need_lc_CXX=no
17293 hardcode_shlibpath_var_CXX=no
17294 runpath_var='LD_RUN_PATH'
17295
17296 case $cc_basename in
17297 CC*)
17298 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17299 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17300 ;;
17301 *)
17302 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17303 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17304 ;;
17305 esac
17306 ;;
17307
17308 sysv5* | sco3.2v5* | sco5v6*)
17309 # Note: We can NOT use -z defs as we might desire, because we do not
17310 # link with -lc, and that would cause any symbols used from libc to
17311 # always be unresolved, which means just about no library would
17312 # ever link correctly. If we're not using GNU ld we use -z text
17313 # though, which does catch some bad symbols but isn't as heavy-handed
17314 # as -z defs.
17315 no_undefined_flag_CXX='${wl}-z,text'
17316 allow_undefined_flag_CXX='${wl}-z,nodefs'
17317 archive_cmds_need_lc_CXX=no
17318 hardcode_shlibpath_var_CXX=no
17319 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17320 hardcode_libdir_separator_CXX=':'
17321 link_all_deplibs_CXX=yes
17322 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17323 runpath_var='LD_RUN_PATH'
17324
17325 case $cc_basename in
17326 CC*)
17327 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17328 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17329 ;;
17330 *)
17331 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17332 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17333 ;;
17334 esac
17335 ;;
17336
17337 tandem*)
17338 case $cc_basename in
17339 NCC*)
17340 # NonStop-UX NCC 3.20
17341 # FIXME: insert proper C++ library support
17342 ld_shlibs_CXX=no
17343 ;;
17344 *)
17345 # FIXME: insert proper C++ library support
17346 ld_shlibs_CXX=no
17347 ;;
17348 esac
17349 ;;
17350
17351 vxworks*)
17352 # FIXME: insert proper C++ library support
17353 ld_shlibs_CXX=no
17354 ;;
17355
17356 *)
17357 # FIXME: insert proper C++ library support
17358 ld_shlibs_CXX=no
17359 ;;
17360 esac
17361
cristy8b350f62009-11-15 23:12:43 +000017362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017363$as_echo "$ld_shlibs_CXX" >&6; }
17364 test "$ld_shlibs_CXX" = no && can_build_shared=no
17365
17366 GCC_CXX="$GXX"
17367 LD_CXX="$LD"
17368
17369 ## CAVEAT EMPTOR:
17370 ## There is no encapsulation within the following macros, do not change
17371 ## the running order or otherwise move them around unless you know exactly
17372 ## what you are doing...
17373 # Dependencies to place before and after the object being linked:
17374predep_objects_CXX=
17375postdep_objects_CXX=
17376predeps_CXX=
17377postdeps_CXX=
17378compiler_lib_search_path_CXX=
17379
17380cat > conftest.$ac_ext <<_LT_EOF
17381class Foo
17382{
17383public:
17384 Foo (void) { a = 0; }
17385private:
17386 int a;
17387};
17388_LT_EOF
17389
cristy8b350f62009-11-15 23:12:43 +000017390if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017391 (eval $ac_compile) 2>&5
17392 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17394 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017395 # Parse the compiler output and extract the necessary
17396 # objects, libraries and library flags.
17397
17398 # Sentinel used to keep track of whether or not we are before
17399 # the conftest object file.
17400 pre_test_object_deps_done=no
17401
17402 for p in `eval "$output_verbose_link_cmd"`; do
17403 case $p in
17404
17405 -L* | -R* | -l*)
17406 # Some compilers place space between "-{L,R}" and the path.
17407 # Remove the space.
17408 if test $p = "-L" ||
17409 test $p = "-R"; then
17410 prev=$p
17411 continue
17412 else
17413 prev=
17414 fi
17415
17416 if test "$pre_test_object_deps_done" = no; then
17417 case $p in
17418 -L* | -R*)
17419 # Internal compiler library paths should come after those
17420 # provided the user. The postdeps already come after the
17421 # user supplied libs so there is no need to process them.
17422 if test -z "$compiler_lib_search_path_CXX"; then
17423 compiler_lib_search_path_CXX="${prev}${p}"
17424 else
17425 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17426 fi
17427 ;;
17428 # The "-l" case would never come before the object being
17429 # linked, so don't bother handling this case.
17430 esac
17431 else
17432 if test -z "$postdeps_CXX"; then
17433 postdeps_CXX="${prev}${p}"
17434 else
17435 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17436 fi
17437 fi
17438 ;;
17439
17440 *.$objext)
17441 # This assumes that the test object file only shows up
17442 # once in the compiler output.
17443 if test "$p" = "conftest.$objext"; then
17444 pre_test_object_deps_done=yes
17445 continue
17446 fi
17447
17448 if test "$pre_test_object_deps_done" = no; then
17449 if test -z "$predep_objects_CXX"; then
17450 predep_objects_CXX="$p"
17451 else
17452 predep_objects_CXX="$predep_objects_CXX $p"
17453 fi
17454 else
17455 if test -z "$postdep_objects_CXX"; then
17456 postdep_objects_CXX="$p"
17457 else
17458 postdep_objects_CXX="$postdep_objects_CXX $p"
17459 fi
17460 fi
17461 ;;
17462
17463 *) ;; # Ignore the rest.
17464
17465 esac
17466 done
17467
17468 # Clean up.
17469 rm -f a.out a.exe
17470else
17471 echo "libtool.m4: error: problem compiling CXX test program"
17472fi
17473
17474$RM -f confest.$objext
17475
17476# PORTME: override above test on systems where it is broken
17477case $host_os in
17478interix[3-9]*)
17479 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17480 # hack all around it, let's just trust "g++" to DTRT.
17481 predep_objects_CXX=
17482 postdep_objects_CXX=
17483 postdeps_CXX=
17484 ;;
17485
17486linux*)
17487 case `$CC -V 2>&1 | sed 5q` in
17488 *Sun\ C*)
17489 # Sun C++ 5.9
17490
17491 # The more standards-conforming stlport4 library is
17492 # incompatible with the Cstd library. Avoid specifying
17493 # it if it's in CXXFLAGS. Ignore libCrun as
17494 # -library=stlport4 depends on it.
17495 case " $CXX $CXXFLAGS " in
17496 *" -library=stlport4 "*)
17497 solaris_use_stlport4=yes
17498 ;;
17499 esac
17500
17501 if test "$solaris_use_stlport4" != yes; then
17502 postdeps_CXX='-library=Cstd -library=Crun'
17503 fi
17504 ;;
17505 esac
17506 ;;
17507
17508solaris*)
17509 case $cc_basename in
17510 CC*)
17511 # The more standards-conforming stlport4 library is
17512 # incompatible with the Cstd library. Avoid specifying
17513 # it if it's in CXXFLAGS. Ignore libCrun as
17514 # -library=stlport4 depends on it.
17515 case " $CXX $CXXFLAGS " in
17516 *" -library=stlport4 "*)
17517 solaris_use_stlport4=yes
17518 ;;
17519 esac
17520
17521 # Adding this requires a known-good setup of shared libraries for
17522 # Sun compiler versions before 5.6, else PIC objects from an old
17523 # archive will be linked into the output, leading to subtle bugs.
17524 if test "$solaris_use_stlport4" != yes; then
17525 postdeps_CXX='-library=Cstd -library=Crun'
17526 fi
17527 ;;
17528 esac
17529 ;;
17530esac
17531
17532
17533case " $postdeps_CXX " in
17534*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17535esac
17536 compiler_lib_search_dirs_CXX=
17537if test -n "${compiler_lib_search_path_CXX}"; then
17538 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17539fi
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571 lt_prog_compiler_wl_CXX=
17572lt_prog_compiler_pic_CXX=
17573lt_prog_compiler_static_CXX=
17574
cristy8b350f62009-11-15 23:12:43 +000017575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017576$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17577
17578 # C++ specific cases for pic, static, wl, etc.
17579 if test "$GXX" = yes; then
17580 lt_prog_compiler_wl_CXX='-Wl,'
17581 lt_prog_compiler_static_CXX='-static'
17582
17583 case $host_os in
17584 aix*)
17585 # All AIX code is PIC.
17586 if test "$host_cpu" = ia64; then
17587 # AIX 5 now supports IA64 processor
17588 lt_prog_compiler_static_CXX='-Bstatic'
17589 fi
17590 ;;
17591
17592 amigaos*)
17593 case $host_cpu in
17594 powerpc)
17595 # see comment about AmigaOS4 .so support
17596 lt_prog_compiler_pic_CXX='-fPIC'
17597 ;;
17598 m68k)
17599 # FIXME: we need at least 68020 code to build shared libraries, but
17600 # adding the `-m68020' flag to GCC prevents building anything better,
17601 # like `-m68040'.
17602 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17603 ;;
17604 esac
17605 ;;
17606
17607 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17608 # PIC is the default for these OSes.
17609 ;;
17610 mingw* | cygwin* | os2* | pw32* | cegcc*)
17611 # This hack is so that the source file can tell whether it is being
17612 # built for inclusion in a dll (and should export symbols for example).
17613 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17614 # (--disable-auto-import) libraries
17615 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17616 ;;
17617 darwin* | rhapsody*)
17618 # PIC is the default on this platform
17619 # Common symbols not allowed in MH_DYLIB files
17620 lt_prog_compiler_pic_CXX='-fno-common'
17621 ;;
17622 *djgpp*)
17623 # DJGPP does not support shared libraries at all
17624 lt_prog_compiler_pic_CXX=
17625 ;;
17626 interix[3-9]*)
17627 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17628 # Instead, we relocate shared libraries at runtime.
17629 ;;
17630 sysv4*MP*)
17631 if test -d /usr/nec; then
17632 lt_prog_compiler_pic_CXX=-Kconform_pic
17633 fi
17634 ;;
17635 hpux*)
17636 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17637 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17638 # sets the default TLS model and affects inlining.
17639 case $host_cpu in
17640 hppa*64*)
17641 ;;
17642 *)
17643 lt_prog_compiler_pic_CXX='-fPIC'
17644 ;;
17645 esac
17646 ;;
17647 *qnx* | *nto*)
17648 # QNX uses GNU C++, but need to define -shared option too, otherwise
17649 # it will coredump.
17650 lt_prog_compiler_pic_CXX='-fPIC -shared'
17651 ;;
17652 *)
17653 lt_prog_compiler_pic_CXX='-fPIC'
17654 ;;
17655 esac
17656 else
17657 case $host_os in
17658 aix[4-9]*)
17659 # All AIX code is PIC.
17660 if test "$host_cpu" = ia64; then
17661 # AIX 5 now supports IA64 processor
17662 lt_prog_compiler_static_CXX='-Bstatic'
17663 else
17664 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17665 fi
17666 ;;
17667 chorus*)
17668 case $cc_basename in
17669 cxch68*)
17670 # Green Hills C++ Compiler
17671 # _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"
17672 ;;
17673 esac
17674 ;;
17675 dgux*)
17676 case $cc_basename in
17677 ec++*)
17678 lt_prog_compiler_pic_CXX='-KPIC'
17679 ;;
17680 ghcx*)
17681 # Green Hills C++ Compiler
17682 lt_prog_compiler_pic_CXX='-pic'
17683 ;;
17684 *)
17685 ;;
17686 esac
17687 ;;
17688 freebsd* | dragonfly*)
17689 # FreeBSD uses GNU C++
17690 ;;
17691 hpux9* | hpux10* | hpux11*)
17692 case $cc_basename in
17693 CC*)
17694 lt_prog_compiler_wl_CXX='-Wl,'
17695 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17696 if test "$host_cpu" != ia64; then
17697 lt_prog_compiler_pic_CXX='+Z'
17698 fi
17699 ;;
17700 aCC*)
17701 lt_prog_compiler_wl_CXX='-Wl,'
17702 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17703 case $host_cpu in
17704 hppa*64*|ia64*)
17705 # +Z the default
17706 ;;
17707 *)
17708 lt_prog_compiler_pic_CXX='+Z'
17709 ;;
17710 esac
17711 ;;
17712 *)
17713 ;;
17714 esac
17715 ;;
17716 interix*)
17717 # This is c89, which is MS Visual C++ (no shared libs)
17718 # Anyone wants to do a port?
17719 ;;
17720 irix5* | irix6* | nonstopux*)
17721 case $cc_basename in
17722 CC*)
17723 lt_prog_compiler_wl_CXX='-Wl,'
17724 lt_prog_compiler_static_CXX='-non_shared'
17725 # CC pic flag -KPIC is the default.
17726 ;;
17727 *)
17728 ;;
17729 esac
17730 ;;
cristy18304f92009-11-22 15:48:26 +000017731 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017732 case $cc_basename in
17733 KCC*)
17734 # KAI C++ Compiler
17735 lt_prog_compiler_wl_CXX='--backend -Wl,'
17736 lt_prog_compiler_pic_CXX='-fPIC'
17737 ;;
17738 ecpc* )
17739 # old Intel C++ for x86_64 which still supported -KPIC.
17740 lt_prog_compiler_wl_CXX='-Wl,'
17741 lt_prog_compiler_pic_CXX='-KPIC'
17742 lt_prog_compiler_static_CXX='-static'
17743 ;;
17744 icpc* )
17745 # Intel C++, used to be incompatible with GCC.
17746 # ICC 10 doesn't accept -KPIC any more.
17747 lt_prog_compiler_wl_CXX='-Wl,'
17748 lt_prog_compiler_pic_CXX='-fPIC'
17749 lt_prog_compiler_static_CXX='-static'
17750 ;;
17751 pgCC* | pgcpp*)
17752 # Portland Group C++ compiler
17753 lt_prog_compiler_wl_CXX='-Wl,'
17754 lt_prog_compiler_pic_CXX='-fpic'
17755 lt_prog_compiler_static_CXX='-Bstatic'
17756 ;;
17757 cxx*)
17758 # Compaq C++
17759 # Make sure the PIC flag is empty. It appears that all Alpha
17760 # Linux and Compaq Tru64 Unix objects are PIC.
17761 lt_prog_compiler_pic_CXX=
17762 lt_prog_compiler_static_CXX='-non_shared'
17763 ;;
cristy18304f92009-11-22 15:48:26 +000017764 xlc* | xlC*)
17765 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000017766 lt_prog_compiler_wl_CXX='-Wl,'
17767 lt_prog_compiler_pic_CXX='-qpic'
17768 lt_prog_compiler_static_CXX='-qstaticlink'
17769 ;;
17770 *)
17771 case `$CC -V 2>&1 | sed 5q` in
17772 *Sun\ C*)
17773 # Sun C++ 5.9
17774 lt_prog_compiler_pic_CXX='-KPIC'
17775 lt_prog_compiler_static_CXX='-Bstatic'
17776 lt_prog_compiler_wl_CXX='-Qoption ld '
17777 ;;
17778 esac
17779 ;;
17780 esac
17781 ;;
17782 lynxos*)
17783 ;;
17784 m88k*)
17785 ;;
17786 mvs*)
17787 case $cc_basename in
17788 cxx*)
17789 lt_prog_compiler_pic_CXX='-W c,exportall'
17790 ;;
17791 *)
17792 ;;
17793 esac
17794 ;;
17795 netbsd*)
17796 ;;
17797 *qnx* | *nto*)
17798 # QNX uses GNU C++, but need to define -shared option too, otherwise
17799 # it will coredump.
17800 lt_prog_compiler_pic_CXX='-fPIC -shared'
17801 ;;
17802 osf3* | osf4* | osf5*)
17803 case $cc_basename in
17804 KCC*)
17805 lt_prog_compiler_wl_CXX='--backend -Wl,'
17806 ;;
17807 RCC*)
17808 # Rational C++ 2.4.1
17809 lt_prog_compiler_pic_CXX='-pic'
17810 ;;
17811 cxx*)
17812 # Digital/Compaq C++
17813 lt_prog_compiler_wl_CXX='-Wl,'
17814 # Make sure the PIC flag is empty. It appears that all Alpha
17815 # Linux and Compaq Tru64 Unix objects are PIC.
17816 lt_prog_compiler_pic_CXX=
17817 lt_prog_compiler_static_CXX='-non_shared'
17818 ;;
17819 *)
17820 ;;
17821 esac
17822 ;;
17823 psos*)
17824 ;;
17825 solaris*)
17826 case $cc_basename in
17827 CC*)
17828 # Sun C++ 4.2, 5.x and Centerline C++
17829 lt_prog_compiler_pic_CXX='-KPIC'
17830 lt_prog_compiler_static_CXX='-Bstatic'
17831 lt_prog_compiler_wl_CXX='-Qoption ld '
17832 ;;
17833 gcx*)
17834 # Green Hills C++ Compiler
17835 lt_prog_compiler_pic_CXX='-PIC'
17836 ;;
17837 *)
17838 ;;
17839 esac
17840 ;;
17841 sunos4*)
17842 case $cc_basename in
17843 CC*)
17844 # Sun C++ 4.x
17845 lt_prog_compiler_pic_CXX='-pic'
17846 lt_prog_compiler_static_CXX='-Bstatic'
17847 ;;
17848 lcc*)
17849 # Lucid
17850 lt_prog_compiler_pic_CXX='-pic'
17851 ;;
17852 *)
17853 ;;
17854 esac
17855 ;;
17856 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17857 case $cc_basename in
17858 CC*)
17859 lt_prog_compiler_wl_CXX='-Wl,'
17860 lt_prog_compiler_pic_CXX='-KPIC'
17861 lt_prog_compiler_static_CXX='-Bstatic'
17862 ;;
17863 esac
17864 ;;
17865 tandem*)
17866 case $cc_basename in
17867 NCC*)
17868 # NonStop-UX NCC 3.20
17869 lt_prog_compiler_pic_CXX='-KPIC'
17870 ;;
17871 *)
17872 ;;
17873 esac
17874 ;;
17875 vxworks*)
17876 ;;
17877 *)
17878 lt_prog_compiler_can_build_shared_CXX=no
17879 ;;
17880 esac
17881 fi
17882
17883case $host_os in
17884 # For platforms which do not support PIC, -DPIC is meaningless:
17885 *djgpp*)
17886 lt_prog_compiler_pic_CXX=
17887 ;;
17888 *)
17889 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17890 ;;
17891esac
cristy8b350f62009-11-15 23:12:43 +000017892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017893$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17894
17895
17896
17897#
17898# Check to make sure the PIC flag actually works.
17899#
17900if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017901 { $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 +000017902$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017903if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017904 $as_echo_n "(cached) " >&6
17905else
17906 lt_cv_prog_compiler_pic_works_CXX=no
17907 ac_outfile=conftest.$ac_objext
17908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17909 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17910 # Insert the option either (1) after the last *FLAGS variable, or
17911 # (2) before a word containing "conftest.", or (3) at the end.
17912 # Note that $ac_compile itself does not contain backslashes and begins
17913 # with a dollar sign (not a hyphen), so the echo should work correctly.
17914 # The option is referenced via a variable to avoid confusing sed.
17915 lt_compile=`echo "$ac_compile" | $SED \
17916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17918 -e 's:$: $lt_compiler_flag:'`
cristy935c86e2010-06-05 23:50:07 +000017919 (eval echo "\"\$as_me:17919: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017920 (eval "$lt_compile" 2>conftest.err)
17921 ac_status=$?
17922 cat conftest.err >&5
cristy935c86e2010-06-05 23:50:07 +000017923 echo "$as_me:17923: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017924 if (exit $ac_status) && test -s "$ac_outfile"; then
17925 # The compiler can only warn and ignore the option if not recognized
17926 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000017927 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17930 lt_cv_prog_compiler_pic_works_CXX=yes
17931 fi
17932 fi
17933 $RM conftest*
17934
17935fi
cristy8b350f62009-11-15 23:12:43 +000017936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017937$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17938
17939if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17940 case $lt_prog_compiler_pic_CXX in
17941 "" | " "*) ;;
17942 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17943 esac
17944else
17945 lt_prog_compiler_pic_CXX=
17946 lt_prog_compiler_can_build_shared_CXX=no
17947fi
17948
17949fi
17950
17951
17952
17953#
17954# Check to make sure the static flag actually works.
17955#
17956wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017958$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017959if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017960 $as_echo_n "(cached) " >&6
17961else
17962 lt_cv_prog_compiler_static_works_CXX=no
17963 save_LDFLAGS="$LDFLAGS"
17964 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17965 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17966 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17967 # The linker can only warn and ignore the option if not recognized
17968 # So say no if there are warnings
17969 if test -s conftest.err; then
17970 # Append any errors to the config.log.
17971 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000017972 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17974 if diff conftest.exp conftest.er2 >/dev/null; then
17975 lt_cv_prog_compiler_static_works_CXX=yes
17976 fi
17977 else
17978 lt_cv_prog_compiler_static_works_CXX=yes
17979 fi
17980 fi
17981 $RM -r conftest*
17982 LDFLAGS="$save_LDFLAGS"
17983
17984fi
cristy8b350f62009-11-15 23:12:43 +000017985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017986$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17987
17988if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17989 :
17990else
17991 lt_prog_compiler_static_CXX=
17992fi
17993
17994
17995
17996
cristy8b350f62009-11-15 23:12:43 +000017997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017998$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017999if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018000 $as_echo_n "(cached) " >&6
18001else
18002 lt_cv_prog_compiler_c_o_CXX=no
18003 $RM -r conftest 2>/dev/null
18004 mkdir conftest
18005 cd conftest
18006 mkdir out
18007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18008
18009 lt_compiler_flag="-o out/conftest2.$ac_objext"
18010 # Insert the option either (1) after the last *FLAGS variable, or
18011 # (2) before a word containing "conftest.", or (3) at the end.
18012 # Note that $ac_compile itself does not contain backslashes and begins
18013 # with a dollar sign (not a hyphen), so the echo should work correctly.
18014 lt_compile=`echo "$ac_compile" | $SED \
18015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18017 -e 's:$: $lt_compiler_flag:'`
cristy935c86e2010-06-05 23:50:07 +000018018 (eval echo "\"\$as_me:18018: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018019 (eval "$lt_compile" 2>out/conftest.err)
18020 ac_status=$?
18021 cat out/conftest.err >&5
cristy935c86e2010-06-05 23:50:07 +000018022 echo "$as_me:18022: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018023 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18024 then
18025 # The compiler can only warn and ignore the option if not recognized
18026 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000018027 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000018028 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18029 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18030 lt_cv_prog_compiler_c_o_CXX=yes
18031 fi
18032 fi
18033 chmod u+w . 2>&5
18034 $RM conftest*
18035 # SGI C++ compiler will create directory out/ii_files/ for
18036 # template instantiation
18037 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18038 $RM out/* && rmdir out
18039 cd ..
18040 $RM -r conftest
18041 $RM conftest*
18042
18043fi
cristy8b350f62009-11-15 23:12:43 +000018044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018045$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18046
18047
18048
cristy8b350f62009-11-15 23:12:43 +000018049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018050$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018051if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018052 $as_echo_n "(cached) " >&6
18053else
18054 lt_cv_prog_compiler_c_o_CXX=no
18055 $RM -r conftest 2>/dev/null
18056 mkdir conftest
18057 cd conftest
18058 mkdir out
18059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18060
18061 lt_compiler_flag="-o out/conftest2.$ac_objext"
18062 # Insert the option either (1) after the last *FLAGS variable, or
18063 # (2) before a word containing "conftest.", or (3) at the end.
18064 # Note that $ac_compile itself does not contain backslashes and begins
18065 # with a dollar sign (not a hyphen), so the echo should work correctly.
18066 lt_compile=`echo "$ac_compile" | $SED \
18067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18069 -e 's:$: $lt_compiler_flag:'`
cristy935c86e2010-06-05 23:50:07 +000018070 (eval echo "\"\$as_me:18070: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018071 (eval "$lt_compile" 2>out/conftest.err)
18072 ac_status=$?
18073 cat out/conftest.err >&5
cristy935c86e2010-06-05 23:50:07 +000018074 echo "$as_me:18074: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018075 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18076 then
18077 # The compiler can only warn and ignore the option if not recognized
18078 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000018079 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000018080 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18081 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18082 lt_cv_prog_compiler_c_o_CXX=yes
18083 fi
18084 fi
18085 chmod u+w . 2>&5
18086 $RM conftest*
18087 # SGI C++ compiler will create directory out/ii_files/ for
18088 # template instantiation
18089 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18090 $RM out/* && rmdir out
18091 cd ..
18092 $RM -r conftest
18093 $RM conftest*
18094
18095fi
cristy8b350f62009-11-15 23:12:43 +000018096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018097$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18098
18099
18100
18101
18102hard_links="nottested"
18103if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18104 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000018105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018106$as_echo_n "checking if we can lock with hard links... " >&6; }
18107 hard_links=yes
18108 $RM conftest*
18109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18110 touch conftest.a
18111 ln conftest.a conftest.b 2>&5 || hard_links=no
18112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000018113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018114$as_echo "$hard_links" >&6; }
18115 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000018116 { $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 +000018117$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18118 need_locks=warn
18119 fi
18120else
18121 need_locks=no
18122fi
18123
18124
18125
cristy8b350f62009-11-15 23:12:43 +000018126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000018127$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18128
18129 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18130 case $host_os in
18131 aix[4-9]*)
18132 # If we're using GNU nm, then we don't want the "-C" option.
18133 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18134 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000018135 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 +000018136 else
18137 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'
18138 fi
18139 ;;
18140 pw32*)
18141 export_symbols_cmds_CXX="$ltdll_cmds"
18142 ;;
18143 cygwin* | mingw* | cegcc*)
18144 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'
18145 ;;
18146 *)
18147 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18148 ;;
18149 esac
18150 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18151
cristy8b350f62009-11-15 23:12:43 +000018152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018153$as_echo "$ld_shlibs_CXX" >&6; }
18154test "$ld_shlibs_CXX" = no && can_build_shared=no
18155
18156with_gnu_ld_CXX=$with_gnu_ld
18157
18158
18159
18160
18161
18162
18163#
18164# Do we need to explicitly link libc?
18165#
18166case "x$archive_cmds_need_lc_CXX" in
18167x|xyes)
18168 # Assume -lc should be added
18169 archive_cmds_need_lc_CXX=yes
18170
18171 if test "$enable_shared" = yes && test "$GCC" = yes; then
18172 case $archive_cmds_CXX in
18173 *'~'*)
18174 # FIXME: we may have to deal with multi-command sequences.
18175 ;;
18176 '$CC '*)
18177 # Test whether the compiler implicitly links with -lc since on some
18178 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18179 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000018180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000018181$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000018182 $RM conftest*
18183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018184
cristy18304f92009-11-22 15:48:26 +000018185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018186 (eval $ac_compile) 2>&5
18187 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18189 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000018190 soname=conftest
18191 lib=conftest
18192 libobjs=conftest.$ac_objext
18193 deplibs=
18194 wl=$lt_prog_compiler_wl_CXX
18195 pic_flag=$lt_prog_compiler_pic_CXX
18196 compiler_flags=-v
18197 linker_flags=-v
18198 verstring=
18199 output_objdir=.
18200 libname=conftest
18201 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18202 allow_undefined_flag_CXX=
18203 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 +000018204 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18205 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18207 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000018208 then
18209 archive_cmds_need_lc_CXX=no
18210 else
18211 archive_cmds_need_lc_CXX=yes
18212 fi
18213 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18214 else
18215 cat conftest.err 1>&5
18216 fi
18217 $RM conftest*
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18219$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000018220 ;;
18221 esac
18222 fi
18223 ;;
18224esac
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
cristy8b350f62009-11-15 23:12:43 +000018289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018290$as_echo_n "checking dynamic linker characteristics... " >&6; }
18291
18292library_names_spec=
18293libname_spec='lib$name'
18294soname_spec=
18295shrext_cmds=".so"
18296postinstall_cmds=
18297postuninstall_cmds=
18298finish_cmds=
18299finish_eval=
18300shlibpath_var=
18301shlibpath_overrides_runpath=unknown
18302version_type=none
18303dynamic_linker="$host_os ld.so"
18304sys_lib_dlsearch_path_spec="/lib /usr/lib"
18305need_lib_prefix=unknown
18306hardcode_into_libs=no
18307
18308# when you set need_version to no, make sure it does not cause -set_version
18309# flags to be left without arguments
18310need_version=unknown
18311
18312case $host_os in
18313aix3*)
18314 version_type=linux
18315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18316 shlibpath_var=LIBPATH
18317
18318 # AIX 3 has no versioning support, so we append a major version to the name.
18319 soname_spec='${libname}${release}${shared_ext}$major'
18320 ;;
18321
18322aix[4-9]*)
18323 version_type=linux
18324 need_lib_prefix=no
18325 need_version=no
18326 hardcode_into_libs=yes
18327 if test "$host_cpu" = ia64; then
18328 # AIX 5 supports IA64
18329 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18330 shlibpath_var=LD_LIBRARY_PATH
18331 else
18332 # With GCC up to 2.95.x, collect2 would create an import file
18333 # for dependence libraries. The import file would start with
18334 # the line `#! .'. This would cause the generated library to
18335 # depend on `.', always an invalid library. This was fixed in
18336 # development snapshots of GCC prior to 3.0.
18337 case $host_os in
18338 aix4 | aix4.[01] | aix4.[01].*)
18339 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18340 echo ' yes '
18341 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18342 :
18343 else
18344 can_build_shared=no
18345 fi
18346 ;;
18347 esac
18348 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18349 # soname into executable. Probably we can add versioning support to
18350 # collect2, so additional links can be useful in future.
18351 if test "$aix_use_runtimelinking" = yes; then
18352 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18353 # instead of lib<name>.a to let people know that these are not
18354 # typical AIX shared libraries.
18355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18356 else
18357 # We preserve .a as extension for shared libraries through AIX4.2
18358 # and later when we are not doing run time linking.
18359 library_names_spec='${libname}${release}.a $libname.a'
18360 soname_spec='${libname}${release}${shared_ext}$major'
18361 fi
18362 shlibpath_var=LIBPATH
18363 fi
18364 ;;
18365
18366amigaos*)
18367 case $host_cpu in
18368 powerpc)
18369 # Since July 2007 AmigaOS4 officially supports .so libraries.
18370 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18372 ;;
18373 m68k)
18374 library_names_spec='$libname.ixlibrary $libname.a'
18375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000018376 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 +000018377 ;;
18378 esac
18379 ;;
18380
18381beos*)
18382 library_names_spec='${libname}${shared_ext}'
18383 dynamic_linker="$host_os ld.so"
18384 shlibpath_var=LIBRARY_PATH
18385 ;;
18386
18387bsdi[45]*)
18388 version_type=linux
18389 need_version=no
18390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18391 soname_spec='${libname}${release}${shared_ext}$major'
18392 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18393 shlibpath_var=LD_LIBRARY_PATH
18394 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18395 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18396 # the default ld.so.conf also contains /usr/contrib/lib and
18397 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18398 # libtool to hard-code these into programs
18399 ;;
18400
18401cygwin* | mingw* | pw32* | cegcc*)
18402 version_type=windows
18403 shrext_cmds=".dll"
18404 need_version=no
18405 need_lib_prefix=no
18406
18407 case $GCC,$host_os in
18408 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18409 library_names_spec='$libname.dll.a'
18410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18411 postinstall_cmds='base_file=`basename \${file}`~
18412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18413 dldir=$destdir/`dirname \$dlpath`~
18414 test -d \$dldir || mkdir -p \$dldir~
18415 $install_prog $dir/$dlname \$dldir/$dlname~
18416 chmod a+x \$dldir/$dlname~
18417 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18418 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18419 fi'
18420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18421 dlpath=$dir/\$dldll~
18422 $RM \$dlpath'
18423 shlibpath_overrides_runpath=yes
18424
18425 case $host_os in
18426 cygwin*)
18427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000018429 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000018430 ;;
18431 mingw* | cegcc*)
18432 # MinGW DLLs use traditional 'lib' prefix
18433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000018434 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18435 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18436 # It is most probably a Windows format PATH printed by
18437 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18438 # path with ; separators, and with drive letters. We can handle the
18439 # drive letters (cygwin fileutils understands them), so leave them,
18440 # especially as we might pass files found there to a mingw objdump,
18441 # which wouldn't understand a cygwinified path. Ahh.
18442 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18443 else
18444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18445 fi
cristy3ed852e2009-09-05 21:47:34 +000018446 ;;
18447 pw32*)
18448 # pw32 DLLs use 'pw' prefix rather than 'lib'
18449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18450 ;;
18451 esac
18452 ;;
18453
18454 *)
18455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18456 ;;
18457 esac
18458 dynamic_linker='Win32 ld.exe'
18459 # FIXME: first we should search . and the directory the executable is in
18460 shlibpath_var=PATH
18461 ;;
18462
18463darwin* | rhapsody*)
18464 dynamic_linker="$host_os dyld"
18465 version_type=darwin
18466 need_lib_prefix=no
18467 need_version=no
18468 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18469 soname_spec='${libname}${release}${major}$shared_ext'
18470 shlibpath_overrides_runpath=yes
18471 shlibpath_var=DYLD_LIBRARY_PATH
18472 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18473
18474 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18475 ;;
18476
18477dgux*)
18478 version_type=linux
18479 need_lib_prefix=no
18480 need_version=no
18481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18482 soname_spec='${libname}${release}${shared_ext}$major'
18483 shlibpath_var=LD_LIBRARY_PATH
18484 ;;
18485
18486freebsd1*)
18487 dynamic_linker=no
18488 ;;
18489
18490freebsd* | dragonfly*)
18491 # DragonFly does not have aout. When/if they implement a new
18492 # versioning mechanism, adjust this.
18493 if test -x /usr/bin/objformat; then
18494 objformat=`/usr/bin/objformat`
18495 else
18496 case $host_os in
18497 freebsd[123]*) objformat=aout ;;
18498 *) objformat=elf ;;
18499 esac
18500 fi
18501 version_type=freebsd-$objformat
18502 case $version_type in
18503 freebsd-elf*)
18504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18505 need_version=no
18506 need_lib_prefix=no
18507 ;;
18508 freebsd-*)
18509 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18510 need_version=yes
18511 ;;
18512 esac
18513 shlibpath_var=LD_LIBRARY_PATH
18514 case $host_os in
18515 freebsd2*)
18516 shlibpath_overrides_runpath=yes
18517 ;;
18518 freebsd3.[01]* | freebsdelf3.[01]*)
18519 shlibpath_overrides_runpath=yes
18520 hardcode_into_libs=yes
18521 ;;
18522 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18523 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18524 shlibpath_overrides_runpath=no
18525 hardcode_into_libs=yes
18526 ;;
18527 *) # from 4.6 on, and DragonFly
18528 shlibpath_overrides_runpath=yes
18529 hardcode_into_libs=yes
18530 ;;
18531 esac
18532 ;;
18533
18534gnu*)
18535 version_type=linux
18536 need_lib_prefix=no
18537 need_version=no
18538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18539 soname_spec='${libname}${release}${shared_ext}$major'
18540 shlibpath_var=LD_LIBRARY_PATH
18541 hardcode_into_libs=yes
18542 ;;
18543
18544hpux9* | hpux10* | hpux11*)
18545 # Give a soname corresponding to the major version so that dld.sl refuses to
18546 # link against other versions.
18547 version_type=sunos
18548 need_lib_prefix=no
18549 need_version=no
18550 case $host_cpu in
18551 ia64*)
18552 shrext_cmds='.so'
18553 hardcode_into_libs=yes
18554 dynamic_linker="$host_os dld.so"
18555 shlibpath_var=LD_LIBRARY_PATH
18556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18558 soname_spec='${libname}${release}${shared_ext}$major'
18559 if test "X$HPUX_IA64_MODE" = X32; then
18560 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18561 else
18562 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18563 fi
18564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18565 ;;
18566 hppa*64*)
18567 shrext_cmds='.sl'
18568 hardcode_into_libs=yes
18569 dynamic_linker="$host_os dld.sl"
18570 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573 soname_spec='${libname}${release}${shared_ext}$major'
18574 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18576 ;;
18577 *)
18578 shrext_cmds='.sl'
18579 dynamic_linker="$host_os dld.sl"
18580 shlibpath_var=SHLIB_PATH
18581 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18583 soname_spec='${libname}${release}${shared_ext}$major'
18584 ;;
18585 esac
cristy18304f92009-11-22 15:48:26 +000018586 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000018587 postinstall_cmds='chmod 555 $lib'
18588 ;;
18589
18590interix[3-9]*)
18591 version_type=linux
18592 need_lib_prefix=no
18593 need_version=no
18594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18595 soname_spec='${libname}${release}${shared_ext}$major'
18596 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18597 shlibpath_var=LD_LIBRARY_PATH
18598 shlibpath_overrides_runpath=no
18599 hardcode_into_libs=yes
18600 ;;
18601
18602irix5* | irix6* | nonstopux*)
18603 case $host_os in
18604 nonstopux*) version_type=nonstopux ;;
18605 *)
18606 if test "$lt_cv_prog_gnu_ld" = yes; then
18607 version_type=linux
18608 else
18609 version_type=irix
18610 fi ;;
18611 esac
18612 need_lib_prefix=no
18613 need_version=no
18614 soname_spec='${libname}${release}${shared_ext}$major'
18615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18616 case $host_os in
18617 irix5* | nonstopux*)
18618 libsuff= shlibsuff=
18619 ;;
18620 *)
18621 case $LD in # libtool.m4 will add one of these switches to LD
18622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18623 libsuff= shlibsuff= libmagic=32-bit;;
18624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18625 libsuff=32 shlibsuff=N32 libmagic=N32;;
18626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18627 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18628 *) libsuff= shlibsuff= libmagic=never-match;;
18629 esac
18630 ;;
18631 esac
18632 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18633 shlibpath_overrides_runpath=no
18634 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18635 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18636 hardcode_into_libs=yes
18637 ;;
18638
18639# No shared lib support for Linux oldld, aout, or coff.
18640linux*oldld* | linux*aout* | linux*coff*)
18641 dynamic_linker=no
18642 ;;
18643
18644# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000018645linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018646 version_type=linux
18647 need_lib_prefix=no
18648 need_version=no
18649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18650 soname_spec='${libname}${release}${shared_ext}$major'
18651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18652 shlibpath_var=LD_LIBRARY_PATH
18653 shlibpath_overrides_runpath=no
18654 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000018655 save_LDFLAGS=$LDFLAGS
18656 save_libdir=$libdir
18657 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18658 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018660/* end confdefs.h. */
18661
18662int
18663main ()
18664{
18665
18666 ;
18667 return 0;
18668}
18669_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018670if ac_fn_cxx_try_link "$LINENO"; then :
18671 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000018672 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018673fi
cristy3ed852e2009-09-05 21:47:34 +000018674fi
cristy8b350f62009-11-15 23:12:43 +000018675rm -f core conftest.err conftest.$ac_objext \
18676 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000018677 LDFLAGS=$save_LDFLAGS
18678 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000018679
18680 # This implies no fast_install, which is unacceptable.
18681 # Some rework will be needed to allow for fast_install
18682 # before this can be enabled.
18683 hardcode_into_libs=yes
18684
cristy679ed8e2009-12-05 02:37:41 +000018685 # Add ABI-specific directories to the system library path.
18686 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18687
cristy3ed852e2009-09-05 21:47:34 +000018688 # Append ld.so.conf contents to the search path
18689 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000018690 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 +000018691 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000018692 fi
18693
18694 # We used to test for /lib/ld.so.1 and disable shared libraries on
18695 # powerpc, because MkLinux only supported shared libraries with the
18696 # GNU dynamic linker. Since this was broken with cross compilers,
18697 # most powerpc-linux boxes support dynamic linking these days and
18698 # people can always --disable-shared, the test was removed, and we
18699 # assume the GNU/Linux dynamic linker is in use.
18700 dynamic_linker='GNU/Linux ld.so'
18701 ;;
18702
18703netbsd*)
18704 version_type=sunos
18705 need_lib_prefix=no
18706 need_version=no
18707 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18710 dynamic_linker='NetBSD (a.out) ld.so'
18711 else
18712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18713 soname_spec='${libname}${release}${shared_ext}$major'
18714 dynamic_linker='NetBSD ld.elf_so'
18715 fi
18716 shlibpath_var=LD_LIBRARY_PATH
18717 shlibpath_overrides_runpath=yes
18718 hardcode_into_libs=yes
18719 ;;
18720
18721newsos6)
18722 version_type=linux
18723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18724 shlibpath_var=LD_LIBRARY_PATH
18725 shlibpath_overrides_runpath=yes
18726 ;;
18727
18728*nto* | *qnx*)
18729 version_type=qnx
18730 need_lib_prefix=no
18731 need_version=no
18732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18733 soname_spec='${libname}${release}${shared_ext}$major'
18734 shlibpath_var=LD_LIBRARY_PATH
18735 shlibpath_overrides_runpath=no
18736 hardcode_into_libs=yes
18737 dynamic_linker='ldqnx.so'
18738 ;;
18739
18740openbsd*)
18741 version_type=sunos
18742 sys_lib_dlsearch_path_spec="/usr/lib"
18743 need_lib_prefix=no
18744 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18745 case $host_os in
18746 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18747 *) need_version=no ;;
18748 esac
18749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18751 shlibpath_var=LD_LIBRARY_PATH
18752 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18753 case $host_os in
18754 openbsd2.[89] | openbsd2.[89].*)
18755 shlibpath_overrides_runpath=no
18756 ;;
18757 *)
18758 shlibpath_overrides_runpath=yes
18759 ;;
18760 esac
18761 else
18762 shlibpath_overrides_runpath=yes
18763 fi
18764 ;;
18765
18766os2*)
18767 libname_spec='$name'
18768 shrext_cmds=".dll"
18769 need_lib_prefix=no
18770 library_names_spec='$libname${shared_ext} $libname.a'
18771 dynamic_linker='OS/2 ld.exe'
18772 shlibpath_var=LIBPATH
18773 ;;
18774
18775osf3* | osf4* | osf5*)
18776 version_type=osf
18777 need_lib_prefix=no
18778 need_version=no
18779 soname_spec='${libname}${release}${shared_ext}$major'
18780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18781 shlibpath_var=LD_LIBRARY_PATH
18782 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18783 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18784 ;;
18785
18786rdos*)
18787 dynamic_linker=no
18788 ;;
18789
18790solaris*)
18791 version_type=linux
18792 need_lib_prefix=no
18793 need_version=no
18794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18795 soname_spec='${libname}${release}${shared_ext}$major'
18796 shlibpath_var=LD_LIBRARY_PATH
18797 shlibpath_overrides_runpath=yes
18798 hardcode_into_libs=yes
18799 # ldd complains unless libraries are executable
18800 postinstall_cmds='chmod +x $lib'
18801 ;;
18802
18803sunos4*)
18804 version_type=sunos
18805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18806 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18807 shlibpath_var=LD_LIBRARY_PATH
18808 shlibpath_overrides_runpath=yes
18809 if test "$with_gnu_ld" = yes; then
18810 need_lib_prefix=no
18811 fi
18812 need_version=yes
18813 ;;
18814
18815sysv4 | sysv4.3*)
18816 version_type=linux
18817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18818 soname_spec='${libname}${release}${shared_ext}$major'
18819 shlibpath_var=LD_LIBRARY_PATH
18820 case $host_vendor in
18821 sni)
18822 shlibpath_overrides_runpath=no
18823 need_lib_prefix=no
18824 runpath_var=LD_RUN_PATH
18825 ;;
18826 siemens)
18827 need_lib_prefix=no
18828 ;;
18829 motorola)
18830 need_lib_prefix=no
18831 need_version=no
18832 shlibpath_overrides_runpath=no
18833 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18834 ;;
18835 esac
18836 ;;
18837
18838sysv4*MP*)
18839 if test -d /usr/nec ;then
18840 version_type=linux
18841 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18842 soname_spec='$libname${shared_ext}.$major'
18843 shlibpath_var=LD_LIBRARY_PATH
18844 fi
18845 ;;
18846
18847sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18848 version_type=freebsd-elf
18849 need_lib_prefix=no
18850 need_version=no
18851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18852 soname_spec='${libname}${release}${shared_ext}$major'
18853 shlibpath_var=LD_LIBRARY_PATH
18854 shlibpath_overrides_runpath=yes
18855 hardcode_into_libs=yes
18856 if test "$with_gnu_ld" = yes; then
18857 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18858 else
18859 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18860 case $host_os in
18861 sco3.2v5*)
18862 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18863 ;;
18864 esac
18865 fi
18866 sys_lib_dlsearch_path_spec='/usr/lib'
18867 ;;
18868
18869tpf*)
18870 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18871 version_type=linux
18872 need_lib_prefix=no
18873 need_version=no
18874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18875 shlibpath_var=LD_LIBRARY_PATH
18876 shlibpath_overrides_runpath=no
18877 hardcode_into_libs=yes
18878 ;;
18879
18880uts4*)
18881 version_type=linux
18882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18883 soname_spec='${libname}${release}${shared_ext}$major'
18884 shlibpath_var=LD_LIBRARY_PATH
18885 ;;
18886
18887*)
18888 dynamic_linker=no
18889 ;;
18890esac
cristy8b350f62009-11-15 23:12:43 +000018891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018892$as_echo "$dynamic_linker" >&6; }
18893test "$dynamic_linker" = no && can_build_shared=no
18894
18895variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18896if test "$GCC" = yes; then
18897 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18898fi
18899
18900if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18901 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18902fi
18903if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18904 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18905fi
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
cristy8b350f62009-11-15 23:12:43 +000018942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018943$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18944hardcode_action_CXX=
18945if test -n "$hardcode_libdir_flag_spec_CXX" ||
18946 test -n "$runpath_var_CXX" ||
18947 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18948
18949 # We can hardcode non-existent directories.
18950 if test "$hardcode_direct_CXX" != no &&
18951 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18952 # have to relink, otherwise we might link with an installed library
18953 # when we should be linking with a yet-to-be-installed one
18954 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18955 test "$hardcode_minus_L_CXX" != no; then
18956 # Linking always hardcodes the temporary library directory.
18957 hardcode_action_CXX=relink
18958 else
18959 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18960 hardcode_action_CXX=immediate
18961 fi
18962else
18963 # We cannot hardcode anything, or else we can only hardcode existing
18964 # directories.
18965 hardcode_action_CXX=unsupported
18966fi
cristy8b350f62009-11-15 23:12:43 +000018967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018968$as_echo "$hardcode_action_CXX" >&6; }
18969
18970if test "$hardcode_action_CXX" = relink ||
18971 test "$inherit_rpath_CXX" = yes; then
18972 # Fast installation is not supported
18973 enable_fast_install=no
18974elif test "$shlibpath_overrides_runpath" = yes ||
18975 test "$enable_shared" = no; then
18976 # Fast installation is not necessary
18977 enable_fast_install=needless
18978fi
18979
18980
18981
18982
18983
18984
18985
18986 fi # test -n "$compiler"
18987
18988 CC=$lt_save_CC
18989 LDCXX=$LD
18990 LD=$lt_save_LD
18991 GCC=$lt_save_GCC
18992 with_gnu_ld=$lt_save_with_gnu_ld
18993 lt_cv_path_LDCXX=$lt_cv_path_LD
18994 lt_cv_path_LD=$lt_save_path_LD
18995 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18996 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18997fi # test "$_lt_caught_CXX_error" != yes
18998
18999ac_ext=c
19000ac_cpp='$CPP $CPPFLAGS'
19001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19003ac_compiler_gnu=$ac_cv_c_compiler_gnu
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017 ac_config_commands="$ac_config_commands libtool"
19018
19019
19020
19021
19022# Only expand once:
19023
19024
19025
19026
19027
19028# Configure libltdl
19029
19030
19031
19032
19033
19034
19035
cristy18304f92009-11-22 15:48:26 +000019036
cristy8b350f62009-11-15 23:12:43 +000019037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000019038$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019039if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019040 $as_echo_n "(cached) " >&6
19041else
19042
19043module=yes
19044eval libltdl_cv_shlibext=$shrext_cmds
19045
19046fi
cristy8b350f62009-11-15 23:12:43 +000019047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000019048$as_echo "$libltdl_cv_shlibext" >&6; }
19049if test -n "$libltdl_cv_shlibext"; then
19050
19051cat >>confdefs.h <<_ACEOF
19052#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19053_ACEOF
19054
19055fi
19056
cristy8b350f62009-11-15 23:12:43 +000019057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019058$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019059if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019060 $as_echo_n "(cached) " >&6
19061else
19062 lt_cv_module_path_var="$shlibpath_var"
19063fi
cristy8b350f62009-11-15 23:12:43 +000019064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000019065$as_echo "$lt_cv_module_path_var" >&6; }
19066if test -n "$lt_cv_module_path_var"; then
19067
19068cat >>confdefs.h <<_ACEOF
19069#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19070_ACEOF
19071
19072fi
19073
cristy8b350f62009-11-15 23:12:43 +000019074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019075$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019076if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019077 $as_echo_n "(cached) " >&6
19078else
19079 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19080fi
cristy8b350f62009-11-15 23:12:43 +000019081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019082$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19083if test -n "$lt_cv_sys_dlsearch_path"; then
19084 sys_dlsearch_path=
19085 for dir in $lt_cv_sys_dlsearch_path; do
19086 if test -z "$sys_dlsearch_path"; then
19087 sys_dlsearch_path="$dir"
19088 else
19089 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19090 fi
19091 done
19092
19093cat >>confdefs.h <<_ACEOF
19094#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19095_ACEOF
19096
19097fi
19098
19099
19100LT_DLLOADERS=
19101
19102
19103ac_ext=c
19104ac_cpp='$CPP $CPPFLAGS'
19105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19107ac_compiler_gnu=$ac_cv_c_compiler_gnu
19108
19109
19110LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000019111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019112$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019113if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019114 $as_echo_n "(cached) " >&6
19115else
19116 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019118/* end confdefs.h. */
19119
19120/* Override any GCC internal prototype to avoid an error.
19121 Use char because int might match the return type of a GCC
19122 builtin and then its argument prototype would still apply. */
19123#ifdef __cplusplus
19124extern "C"
19125#endif
19126char dlopen ();
19127int
19128main ()
19129{
19130return dlopen ();
19131 ;
19132 return 0;
19133}
19134_ACEOF
19135for ac_lib in '' dl; do
19136 if test -z "$ac_lib"; then
19137 ac_res="none required"
19138 else
19139 ac_res=-l$ac_lib
19140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19141 fi
cristy8b350f62009-11-15 23:12:43 +000019142 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019143 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019144fi
cristy8b350f62009-11-15 23:12:43 +000019145rm -f core conftest.err conftest.$ac_objext \
19146 conftest$ac_exeext
19147 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019148 break
19149fi
19150done
cristy8b350f62009-11-15 23:12:43 +000019151if test "${ac_cv_search_dlopen+set}" = set; then :
19152
cristy3ed852e2009-09-05 21:47:34 +000019153else
19154 ac_cv_search_dlopen=no
19155fi
19156rm conftest.$ac_ext
19157LIBS=$ac_func_search_save_LIBS
19158fi
cristy8b350f62009-11-15 23:12:43 +000019159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019160$as_echo "$ac_cv_search_dlopen" >&6; }
19161ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000019162if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19164
cristy8b350f62009-11-15 23:12:43 +000019165$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019166
19167 if test "$ac_cv_search_dlopen" != "none required" ; then
19168 LIBADD_DLOPEN="-ldl"
19169 fi
19170 libltdl_cv_lib_dl_dlopen="yes"
19171 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19172else
cristy8b350f62009-11-15 23:12:43 +000019173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019174/* end confdefs.h. */
19175#if HAVE_DLFCN_H
19176# include <dlfcn.h>
19177#endif
19178
19179int
19180main ()
19181{
19182dlopen(0, 0);
19183 ;
19184 return 0;
19185}
19186_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019187if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019188
cristy8b350f62009-11-15 23:12:43 +000019189$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019190
19191 libltdl_cv_func_dlopen="yes"
19192 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19193else
cristy8b350f62009-11-15 23:12:43 +000019194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019195$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019196if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019197 $as_echo_n "(cached) " >&6
19198else
19199 ac_check_lib_save_LIBS=$LIBS
19200LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019202/* end confdefs.h. */
19203
19204/* Override any GCC internal prototype to avoid an error.
19205 Use char because int might match the return type of a GCC
19206 builtin and then its argument prototype would still apply. */
19207#ifdef __cplusplus
19208extern "C"
19209#endif
19210char dlopen ();
19211int
19212main ()
19213{
19214return dlopen ();
19215 ;
19216 return 0;
19217}
19218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019219if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019220 ac_cv_lib_svld_dlopen=yes
19221else
cristy8b350f62009-11-15 23:12:43 +000019222 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019223fi
cristy8b350f62009-11-15 23:12:43 +000019224rm -f core conftest.err conftest.$ac_objext \
19225 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019226LIBS=$ac_check_lib_save_LIBS
19227fi
cristy8b350f62009-11-15 23:12:43 +000019228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019229$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019230if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019231
cristy8b350f62009-11-15 23:12:43 +000019232$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019233
19234 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19235 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19236fi
19237
19238fi
cristy8b350f62009-11-15 23:12:43 +000019239rm -f core conftest.err conftest.$ac_objext \
19240 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019241fi
19242
19243if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19244then
19245 lt_save_LIBS="$LIBS"
19246 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019247 for ac_func in dlerror
19248do :
19249 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19250if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019251 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019252#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019253_ACEOF
19254
19255fi
19256done
19257
19258 LIBS="$lt_save_LIBS"
19259fi
19260
19261
19262LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019263ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19264if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019265
cristy8b350f62009-11-15 23:12:43 +000019266$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019267
19268 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19269else
cristy8b350f62009-11-15 23:12:43 +000019270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019271$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019272if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019273 $as_echo_n "(cached) " >&6
19274else
19275 ac_check_lib_save_LIBS=$LIBS
19276LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019278/* end confdefs.h. */
19279
19280/* Override any GCC internal prototype to avoid an error.
19281 Use char because int might match the return type of a GCC
19282 builtin and then its argument prototype would still apply. */
19283#ifdef __cplusplus
19284extern "C"
19285#endif
19286char shl_load ();
19287int
19288main ()
19289{
19290return shl_load ();
19291 ;
19292 return 0;
19293}
19294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019295if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019296 ac_cv_lib_dld_shl_load=yes
19297else
cristy8b350f62009-11-15 23:12:43 +000019298 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019299fi
cristy8b350f62009-11-15 23:12:43 +000019300rm -f core conftest.err conftest.$ac_objext \
19301 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019302LIBS=$ac_check_lib_save_LIBS
19303fi
cristy8b350f62009-11-15 23:12:43 +000019304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019305$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019306if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019307
cristy8b350f62009-11-15 23:12:43 +000019308$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019309
19310 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19311 LIBADD_SHL_LOAD="-ldld"
19312fi
19313
19314fi
19315
19316
19317
19318case $host_os in
19319darwin[1567].*)
19320# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019321 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19322if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019323
cristy8b350f62009-11-15 23:12:43 +000019324$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019325
19326 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19327fi
19328
19329 ;;
19330beos*)
19331 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19332 ;;
19333cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019334 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19335"
19336if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19337 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019338else
cristy8b350f62009-11-15 23:12:43 +000019339 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019340fi
19341
cristy3ed852e2009-09-05 21:47:34 +000019342cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019343#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019344_ACEOF
19345
cristy3ed852e2009-09-05 21:47:34 +000019346 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19347 ;;
19348esac
19349
cristy8b350f62009-11-15 23:12:43 +000019350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019351$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019352if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019353 $as_echo_n "(cached) " >&6
19354else
19355 ac_check_lib_save_LIBS=$LIBS
19356LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019358/* end confdefs.h. */
19359
19360/* Override any GCC internal prototype to avoid an error.
19361 Use char because int might match the return type of a GCC
19362 builtin and then its argument prototype would still apply. */
19363#ifdef __cplusplus
19364extern "C"
19365#endif
19366char dld_link ();
19367int
19368main ()
19369{
19370return dld_link ();
19371 ;
19372 return 0;
19373}
19374_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019375if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019376 ac_cv_lib_dld_dld_link=yes
19377else
cristy8b350f62009-11-15 23:12:43 +000019378 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019379fi
cristy8b350f62009-11-15 23:12:43 +000019380rm -f core conftest.err conftest.$ac_objext \
19381 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019382LIBS=$ac_check_lib_save_LIBS
19383fi
cristy8b350f62009-11-15 23:12:43 +000019384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019385$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019386if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019387
cristy8b350f62009-11-15 23:12:43 +000019388$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019389
19390 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19391fi
19392
19393
19394
19395
19396LT_DLPREOPEN=
19397if test -n "$LT_DLLOADERS"
19398then
19399 for lt_loader in $LT_DLLOADERS; do
19400 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19401 done
19402
cristy8b350f62009-11-15 23:12:43 +000019403$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019404
19405fi
19406
19407
19408LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19409
19410
19411ac_ext=c
19412ac_cpp='$CPP $CPPFLAGS'
19413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19415ac_compiler_gnu=$ac_cv_c_compiler_gnu
19416
19417
cristy8b350f62009-11-15 23:12:43 +000019418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019419$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019420if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019421 $as_echo_n "(cached) " >&6
19422else
19423 lt_cv_sys_symbol_underscore=no
19424 cat > conftest.$ac_ext <<_LT_EOF
19425void nm_test_func(){}
19426int main(){nm_test_func;return 0;}
19427_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019429 (eval $ac_compile) 2>&5
19430 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19432 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019433 # Now try to grab the symbols.
19434 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019435 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 +000019436 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19437 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19439 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019440 # See whether the symbols have a leading underscore.
19441 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19442 lt_cv_sys_symbol_underscore=yes
19443 else
19444 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19445 :
19446 else
19447 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19448 fi
19449 fi
19450 else
19451 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19452 fi
19453 else
19454 echo "configure: failed program was:" >&5
19455 cat conftest.c >&5
19456 fi
19457 rm -rf conftest*
19458
19459fi
cristy8b350f62009-11-15 23:12:43 +000019460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019461$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19462 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19463
19464
19465if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19466 if test x"$libltdl_cv_func_dlopen" = xyes ||
19467 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019469$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019470if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019471 $as_echo_n "(cached) " >&6
19472else
19473 libltdl_cv_need_uscore=unknown
19474 save_LIBS="$LIBS"
19475 LIBS="$LIBS $LIBADD_DLOPEN"
19476 if test "$cross_compiling" = yes; then :
19477 libltdl_cv_need_uscore=cross
19478else
19479 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19480 lt_status=$lt_dlunknown
19481 cat > conftest.$ac_ext <<_LT_EOF
cristy935c86e2010-06-05 23:50:07 +000019482#line 19482 "configure"
cristy3ed852e2009-09-05 21:47:34 +000019483#include "confdefs.h"
19484
19485#if HAVE_DLFCN_H
19486#include <dlfcn.h>
19487#endif
19488
19489#include <stdio.h>
19490
19491#ifdef RTLD_GLOBAL
19492# define LT_DLGLOBAL RTLD_GLOBAL
19493#else
19494# ifdef DL_GLOBAL
19495# define LT_DLGLOBAL DL_GLOBAL
19496# else
19497# define LT_DLGLOBAL 0
19498# endif
19499#endif
19500
19501/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19502 find out it does not work in some platform. */
19503#ifndef LT_DLLAZY_OR_NOW
19504# ifdef RTLD_LAZY
19505# define LT_DLLAZY_OR_NOW RTLD_LAZY
19506# else
19507# ifdef DL_LAZY
19508# define LT_DLLAZY_OR_NOW DL_LAZY
19509# else
19510# ifdef RTLD_NOW
19511# define LT_DLLAZY_OR_NOW RTLD_NOW
19512# else
19513# ifdef DL_NOW
19514# define LT_DLLAZY_OR_NOW DL_NOW
19515# else
19516# define LT_DLLAZY_OR_NOW 0
19517# endif
19518# endif
19519# endif
19520# endif
19521#endif
19522
cristy18304f92009-11-22 15:48:26 +000019523void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000019524int main ()
19525{
19526 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19527 int status = $lt_dlunknown;
19528
19529 if (self)
19530 {
19531 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000019532 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000019533 /* dlclose (self); */
19534 }
19535 else
19536 puts (dlerror ());
19537
19538 return status;
19539}
19540_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019542 (eval $ac_link) 2>&5
19543 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19545 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019546 (./conftest; exit; ) >&5 2>/dev/null
19547 lt_status=$?
19548 case x$lt_status in
19549 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19550 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19551 x$lt_dlunknown|x*) ;;
19552 esac
19553 else :
19554 # compilation failed
19555
19556 fi
19557fi
19558rm -fr conftest*
19559
19560 LIBS="$save_LIBS"
19561
19562fi
cristy8b350f62009-11-15 23:12:43 +000019563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019564$as_echo "$libltdl_cv_need_uscore" >&6; }
19565 fi
19566fi
19567
19568if test x"$libltdl_cv_need_uscore" = xyes; then
19569
cristy8b350f62009-11-15 23:12:43 +000019570$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019571
19572fi
19573
cristy8b350f62009-11-15 23:12:43 +000019574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019575$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019576if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019577 $as_echo_n "(cached) " >&6
19578else
19579 # PORTME does your system automatically load deplibs for dlopen?
19580 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19581 # For now, we just catch OSes we know something about -- in the
19582 # future, we'll try test this programmatically.
19583 lt_cv_sys_dlopen_deplibs=unknown
19584 case $host_os in
19585 aix3*|aix4.1.*|aix4.2.*)
19586 # Unknown whether this is true for these versions of AIX, but
19587 # we want this `case' here to explicitly catch those versions.
19588 lt_cv_sys_dlopen_deplibs=unknown
19589 ;;
19590 aix[4-9]*)
19591 lt_cv_sys_dlopen_deplibs=yes
19592 ;;
19593 amigaos*)
19594 case $host_cpu in
19595 powerpc)
19596 lt_cv_sys_dlopen_deplibs=no
19597 ;;
19598 esac
19599 ;;
19600 darwin*)
19601 # Assuming the user has installed a libdl from somewhere, this is true
19602 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19603 lt_cv_sys_dlopen_deplibs=yes
19604 ;;
19605 freebsd* | dragonfly*)
19606 lt_cv_sys_dlopen_deplibs=yes
19607 ;;
cristy18304f92009-11-22 15:48:26 +000019608 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019609 # GNU and its variants, using gnu ld.so (Glibc)
19610 lt_cv_sys_dlopen_deplibs=yes
19611 ;;
19612 hpux10*|hpux11*)
19613 lt_cv_sys_dlopen_deplibs=yes
19614 ;;
19615 interix*)
19616 lt_cv_sys_dlopen_deplibs=yes
19617 ;;
19618 irix[12345]*|irix6.[01]*)
19619 # Catch all versions of IRIX before 6.2, and indicate that we don't
19620 # know how it worked for any of those versions.
19621 lt_cv_sys_dlopen_deplibs=unknown
19622 ;;
19623 irix*)
19624 # The case above catches anything before 6.2, and it's known that
19625 # at 6.2 and later dlopen does load deplibs.
19626 lt_cv_sys_dlopen_deplibs=yes
19627 ;;
19628 netbsd*)
19629 lt_cv_sys_dlopen_deplibs=yes
19630 ;;
19631 openbsd*)
19632 lt_cv_sys_dlopen_deplibs=yes
19633 ;;
19634 osf[1234]*)
19635 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19636 # it did *not* use an RPATH in a shared library to find objects the
19637 # library depends on, so we explicitly say `no'.
19638 lt_cv_sys_dlopen_deplibs=no
19639 ;;
19640 osf5.0|osf5.0a|osf5.1)
19641 # dlopen *does* load deplibs and with the right loader patch applied
19642 # it even uses RPATH in a shared library to search for shared objects
19643 # that the library depends on, but there's no easy way to know if that
19644 # patch is installed. Since this is the case, all we can really
19645 # say is unknown -- it depends on the patch being installed. If
19646 # it is, this changes to `yes'. Without it, it would be `no'.
19647 lt_cv_sys_dlopen_deplibs=unknown
19648 ;;
19649 osf*)
19650 # the two cases above should catch all versions of osf <= 5.1. Read
19651 # the comments above for what we know about them.
19652 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19653 # is used to find them so we can finally say `yes'.
19654 lt_cv_sys_dlopen_deplibs=yes
19655 ;;
19656 qnx*)
19657 lt_cv_sys_dlopen_deplibs=yes
19658 ;;
19659 solaris*)
19660 lt_cv_sys_dlopen_deplibs=yes
19661 ;;
19662 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19663 libltdl_cv_sys_dlopen_deplibs=yes
19664 ;;
19665 esac
19666
19667fi
cristy8b350f62009-11-15 23:12:43 +000019668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019669$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19670if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19671
cristy8b350f62009-11-15 23:12:43 +000019672$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019673
19674fi
19675
19676:
19677
cristy3ed852e2009-09-05 21:47:34 +000019678for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019679do :
19680 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19681"
19682if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019683 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019684#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019685_ACEOF
19686
19687fi
19688
19689done
19690
19691
cristy8b350f62009-11-15 23:12:43 +000019692ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019693# include <argz.h>
19694#endif
cristy8b350f62009-11-15 23:12:43 +000019695"
19696if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019697
19698cat >>confdefs.h <<_ACEOF
19699#define HAVE_ERROR_T 1
19700_ACEOF
19701
19702
19703else
19704
cristy8b350f62009-11-15 23:12:43 +000019705$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019706
19707
cristy8b350f62009-11-15 23:12:43 +000019708$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019709
19710fi
19711
19712
19713ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019714for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19715 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019716do :
19717 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19718ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19719eval as_val=\$$as_ac_var
19720 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019721 cat >>confdefs.h <<_ACEOF
19722#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19723_ACEOF
19724
19725else
19726 ARGZ_H=argz.h;
19727
19728 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19729
19730fi
19731done
19732
19733
cristy8b350f62009-11-15 23:12:43 +000019734if test -z "$ARGZ_H"; then :
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019736$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019737if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019738 $as_echo_n "(cached) " >&6
19739else
19740 case $host_os in #(
19741 *cygwin*)
19742 lt_cv_sys_argz_works=no
19743 if test "$cross_compiling" != no; then
19744 lt_cv_sys_argz_works="guessing no"
19745 else
19746 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19747 save_IFS=$IFS
19748 IFS=-.
19749 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19750 IFS=$save_IFS
19751 lt_os_major=${2-0}
19752 lt_os_minor=${3-0}
19753 lt_os_micro=${4-0}
19754 if test "$lt_os_major" -gt 1 \
19755 || { test "$lt_os_major" -eq 1 \
19756 && { test "$lt_os_minor" -gt 5 \
19757 || { test "$lt_os_minor" -eq 5 \
19758 && test "$lt_os_micro" -gt 24; }; }; }; then
19759 lt_cv_sys_argz_works=yes
19760 fi
19761 fi
19762 ;; #(
19763 *) lt_cv_sys_argz_works=yes ;;
19764 esac
19765fi
cristy8b350f62009-11-15 23:12:43 +000019766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019767$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019768 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019769
cristy8b350f62009-11-15 23:12:43 +000019770$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019771
19772else
19773 ARGZ_H=argz.h
19774
19775
19776 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19777
19778fi
cristy3ed852e2009-09-05 21:47:34 +000019779fi
19780
19781
19782
cristy8b350f62009-11-15 23:12:43 +000019783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019784$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019785if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019786 $as_echo_n "(cached) " >&6
19787else
19788 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19789 libltdl_cv_preloaded_symbols=yes
19790 else
19791 libltdl_cv_preloaded_symbols=no
19792 fi
19793
19794fi
cristy8b350f62009-11-15 23:12:43 +000019795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019796$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19797if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19798
cristy8b350f62009-11-15 23:12:43 +000019799$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019800
19801fi
19802
19803# Set options
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019816if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019817 withval=$with_included_ltdl;
19818fi
19819
19820
19821if test "x$with_included_ltdl" != xyes; then
19822 # We are not being forced to use the included libltdl sources, so
19823 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019824 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019825
cristy8b350f62009-11-15 23:12:43 +000019826"
19827if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19828 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 +000019829 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019830"
19831if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019833$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019834if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019835 $as_echo_n "(cached) " >&6
19836else
19837 ac_check_lib_save_LIBS=$LIBS
19838LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019840/* end confdefs.h. */
19841
19842/* Override any GCC internal prototype to avoid an error.
19843 Use char because int might match the return type of a GCC
19844 builtin and then its argument prototype would still apply. */
19845#ifdef __cplusplus
19846extern "C"
19847#endif
19848char lt_dladvise_preload ();
19849int
19850main ()
19851{
19852return lt_dladvise_preload ();
19853 ;
19854 return 0;
19855}
19856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019857if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019858 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19859else
cristy8b350f62009-11-15 23:12:43 +000019860 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019861fi
cristy8b350f62009-11-15 23:12:43 +000019862rm -f core conftest.err conftest.$ac_objext \
19863 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019864LIBS=$ac_check_lib_save_LIBS
19865fi
cristy8b350f62009-11-15 23:12:43 +000019866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019867$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019868if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019869 with_included_ltdl=no
19870else
19871 with_included_ltdl=yes
19872fi
19873
19874else
19875 with_included_ltdl=yes
19876fi
19877
19878else
19879 with_included_ltdl=yes
19880fi
19881
19882
19883fi
19884
19885
19886
19887
19888# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019889if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019890 withval=$with_ltdl_include;
19891fi
19892
19893
19894if test -n "$with_ltdl_include"; then
19895 if test -f "$with_ltdl_include/ltdl.h"; then :
19896 else
cristy8b350f62009-11-15 23:12:43 +000019897 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019898 fi
19899else
19900 with_ltdl_include=no
19901fi
19902
19903
19904# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019905if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019906 withval=$with_ltdl_lib;
19907fi
19908
19909
19910if test -n "$with_ltdl_lib"; then
19911 if test -f "$with_ltdl_lib/libltdl.la"; then :
19912 else
cristy8b350f62009-11-15 23:12:43 +000019913 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019914 fi
19915else
19916 with_ltdl_lib=no
19917fi
19918
19919case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19920 ,yes,no,no,)
19921 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000019922 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019923 "") enable_ltdl_convenience=yes
19924 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19925esac
19926LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19927LTDLDEPS=$LIBLTDL
19928LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19929
19930
19931
19932
19933
19934# For backwards non-gettext consistent compatibility...
19935INCLTDL="$LTDLINCL"
19936
19937
19938 ;;
19939 ,no,no,no,)
19940 # If the included ltdl is not to be used, then use the
19941 # preinstalled libltdl we found.
19942
cristy8b350f62009-11-15 23:12:43 +000019943$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019944
19945 LIBLTDL=-lltdl
19946 LTDLDEPS=
19947 LTDLINCL=
19948 ;;
19949 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000019950 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019951 ;;
19952 *) with_included_ltdl=no
19953 LIBLTDL="-L$with_ltdl_lib -lltdl"
19954 LTDLDEPS=
19955 LTDLINCL="-I$with_ltdl_include"
19956 ;;
19957esac
19958INCLTDL="$LTDLINCL"
19959
19960# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019962$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019964$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019966$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019968$as_echo "$LIBLTDL" >&6; }
19969
19970
19971
19972# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019973if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019974 enableval=$enable_ltdl_install;
19975fi
19976
19977
19978case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19979 *yes*) ;;
19980 *) enable_ltdl_convenience=yes ;;
19981esac
19982
19983 if test x"${enable_ltdl_install-no}" != xno; then
19984 INSTALL_LTDL_TRUE=
19985 INSTALL_LTDL_FALSE='#'
19986else
19987 INSTALL_LTDL_TRUE='#'
19988 INSTALL_LTDL_FALSE=
19989fi
19990
19991 if test x"${enable_ltdl_convenience-no}" != xno; then
19992 CONVENIENCE_LTDL_TRUE=
19993 CONVENIENCE_LTDL_FALSE='#'
19994else
19995 CONVENIENCE_LTDL_TRUE='#'
19996 CONVENIENCE_LTDL_FALSE=
19997fi
19998
19999
20000
20001
20002
20003
cristy18304f92009-11-22 15:48:26 +000020004
cristy3ed852e2009-09-05 21:47:34 +000020005# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20006# the user used. This is so that ltdl.h can pick up the parent projects
20007# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20008# definitions required by ltdl.c.
20009# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20010
20011
20012
cristy3ed852e2009-09-05 21:47:34 +000020013for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000020014do :
20015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20016ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20017"
20018eval as_val=\$$as_ac_Header
20019 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020020 cat >>confdefs.h <<_ACEOF
20021#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20022_ACEOF
20023
20024fi
20025
20026done
20027
20028
cristy3ed852e2009-09-05 21:47:34 +000020029for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000020030do :
20031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20032ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20033eval as_val=\$$as_ac_var
20034 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020035 cat >>confdefs.h <<_ACEOF
20036#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20037_ACEOF
20038
20039else
20040
20041
20042 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20043
20044fi
20045done
20046
cristy3ed852e2009-09-05 21:47:34 +000020047for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000020048do :
20049 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20050ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20051eval as_val=\$$as_ac_var
20052 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020053 cat >>confdefs.h <<_ACEOF
20054#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20055_ACEOF
20056
20057else
20058
20059
20060 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20061
20062fi
20063done
20064
20065
20066
20067cat >>confdefs.h <<_ACEOF
20068#define LT_LIBEXT "$libext"
20069_ACEOF
20070
20071
20072name=ltdl
20073LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20074
20075
20076
20077
20078
20079
20080
20081
20082# Only expand once:
20083
20084
20085
20086# Check to see if building shared libraries
20087libtool_build_shared_libs='no'
20088if test "$enable_shared" = 'yes'; then
20089 libtool_build_shared_libs='yes'
20090fi
20091
20092# Check to see if building static libraries
20093libtool_build_static_libs='no'
20094if test "$enable_static" = 'yes'; then
20095 libtool_build_static_libs='yes'
20096fi
20097
cristyfa112112010-01-04 17:48:07 +000020098 if test "${libtool_build_shared_libs}" = 'yes'; then
20099 WITH_SHARED_LIBS_TRUE=
20100 WITH_SHARED_LIBS_FALSE='#'
20101else
20102 WITH_SHARED_LIBS_TRUE='#'
20103 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000020104fi
20105
20106#
20107# Enable support for building loadable modules
20108#
20109
20110# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020111if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020112 withval=$with_modules; with_modules=$withval
20113else
cristy5a1cefd2010-01-06 20:42:35 +000020114 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020115fi
20116
20117
20118# Only allow building loadable modules if we are building shared libraries
20119if test "$with_modules" != 'no' ; then
20120 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020121 { $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 +000020122$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20123 with_modules='no'
20124 fi
20125fi
20126if test "$with_modules" != 'no'; then
20127
cristy8b350f62009-11-15 23:12:43 +000020128$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020129
20130fi
20131 if test "$with_modules" != 'no'; then
20132 WITH_MODULES_TRUE=
20133 WITH_MODULES_FALSE='#'
20134else
20135 WITH_MODULES_TRUE='#'
20136 WITH_MODULES_FALSE=
20137fi
20138
20139
20140# Enable building/use of libltdl if we are building shared libraries regardless
20141# of whether modules are built or not.
20142with_ltdl='no'
20143if test "$libtool_build_shared_libs" != 'no'; then
20144 with_ltdl='yes'
20145fi
20146
20147 if test "$with_ltdl" != 'no'; then
20148 WITH_LTDL_TRUE=
20149 WITH_LTDL_FALSE='#'
20150else
20151 WITH_LTDL_TRUE='#'
20152 WITH_LTDL_FALSE=
20153fi
20154
20155if test "$with_ltdl" != 'no'; then
20156
cristy8b350f62009-11-15 23:12:43 +000020157$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020158
20159
20160 # Set DLLDFLAGS
20161 if test X"$enable_shared" = Xyes; then
20162 DLLDFLAGS=-export-dynamic
20163
20164 fi
20165fi
20166
20167# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000020168# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020169# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020170if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020171 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20172else
20173 enable_delegate_build='no'
20174fi
20175
20176
20177# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020178if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020179 enableval=$enable_deprecated; enable_deprecated=$enableval
20180else
20181 enable_deprecated='no'
20182fi
20183
20184
20185if test "$enable_deprecated" = 'yes'; then
20186
cristy8b350f62009-11-15 23:12:43 +000020187$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020188
20189else
20190 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20191fi
20192
20193# Build a version of ImageMagick which operates uninstalled.
20194# Used to build distributions located via MAGICK_HOME / executable path
20195# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020196if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020197 enableval=$enable_installed; enable_installed=$enableval
20198else
20199 enable_installed='yes'
20200fi
20201
20202
20203if test "$enable_installed" = 'yes'; then
20204
cristy8b350f62009-11-15 23:12:43 +000020205$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020206
20207else
20208 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20209fi
20210
20211# Permit enciphering and deciphering image pixels.
20212# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020213if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020214 enableval=$enable_cipher; enable_cipher=$enableval
20215else
20216 enable_cipher='yes'
20217fi
20218
20219
20220if test "$enable_cipher" = 'yes'; then
20221
cristy8b350f62009-11-15 23:12:43 +000020222$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020223
20224fi
20225
20226# Build an embeddable version of ImageMagick.
20227# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020228if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020229 enableval=$enable_embeddable; enable_embeddable=$enableval
20230else
20231 enable_embeddable='no'
20232fi
20233
20234
20235if test "$enable_embeddable" = 'yes'; then
20236
cristy8b350f62009-11-15 23:12:43 +000020237$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020238
20239fi
20240
20241# Build a high dynamic range version of ImageMagick.
20242# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020243if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020244 enableval=$enable_hdri; enable_hdri=$enableval
20245else
20246 enable_hdri='no'
20247fi
20248
20249
20250MAGICK_HDRI=""
20251if test "$enable_hdri" = 'yes'; then
20252 MAGICK_HDRI="HDRI"
20253
cristy8b350f62009-11-15 23:12:43 +000020254$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020255
20256fi
20257
cristy3ed852e2009-09-05 21:47:34 +000020258# Build a version of ImageMagick with assert statements.
20259# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020260if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020261 enableval=$enable_assert; enable_assert=$enableval
20262else
20263 enable_assert='yes'
20264fi
20265
20266
20267if test "$enable_assert" = 'no'; then
20268
cristy8b350f62009-11-15 23:12:43 +000020269$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020270
20271fi
20272
20273# Add configure option --enable-maintainer-mode which enables dependency
20274# checking and generation useful to package maintainers. This is made an
20275# option to avoid confusing end users.
20276
cristy8b350f62009-11-15 23:12:43 +000020277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020278$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20279 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020280if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020281 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20282else
20283 USE_MAINTAINER_MODE=no
20284fi
20285
cristy8b350f62009-11-15 23:12:43 +000020286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020287$as_echo "$USE_MAINTAINER_MODE" >&6; }
20288 if test $USE_MAINTAINER_MODE = yes; then
20289 MAINTAINER_MODE_TRUE=
20290 MAINTAINER_MODE_FALSE='#'
20291else
20292 MAINTAINER_MODE_TRUE='#'
20293 MAINTAINER_MODE_FALSE=
20294fi
20295
20296 MAINT=$MAINTAINER_MODE_TRUE
20297
20298
20299
20300
20301# Enable ccmalloc memory debugging support
20302# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020303if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020304 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20305else
20306 enable_ccmalloc='no'
20307fi
20308
20309
20310# Enable Electric Fence memory debugging support
20311# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020312if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020313 enableval=$enable_efence; enable_efence=$enableval
20314else
20315 enable_efence='no'
20316fi
20317
20318
20319# Enable prof-based profiling support
20320# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020321if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020322 enableval=$enable_prof; enable_prof=$enableval
20323else
20324 enable_prof='no'
20325fi
20326
20327
20328# Enable gprof-based profiling support
20329# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020330if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020331 enableval=$enable_gprof; enable_gprof=$enableval
20332else
20333 enable_gprof='no'
20334fi
20335
20336
20337# Enable gcov-based profiling support
20338# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020339if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020340 enableval=$enable_gcov; enable_gcov=$enableval
20341else
20342 enable_gcov='no'
20343fi
20344
20345
20346enable_profiling='no'
20347if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20348 enable_profiling='yes'
20349 if test "$libtool_build_shared_libs" = 'yes'; then
20350 echo "Warning: Can not profile code using shared libraries"
20351 fi
20352fi
20353
20354# Magick API method prefix
20355
20356# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020357if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020358 withval=$with_method_prefix; with_method_prefix=$enableval
20359else
20360 with_method_prefix=''
20361fi
20362
20363
20364if test "$with_method_prefix" != ''; then
20365
20366cat >>confdefs.h <<_ACEOF
20367#define NAMESPACE_PREFIX $with_method_prefix
20368_ACEOF
20369
20370fi
20371
20372# Number of bits in a Quantum
20373
20374# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020375if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020376 withval=$with_quantum_depth; with_quantum_depth=$withval
20377else
20378 with_quantum_depth=16
20379fi
20380
20381
20382if test "$with_quantum_depth" != '8'; then
20383 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20384fi
20385
20386case "${with_quantum_depth}" in
20387 8 ) ;;
20388 16 ) ;;
20389 32 ) ;;
20390 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000020391 * ) { as_fn_set_status 16
20392as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000020393esac
20394QUANTUM_DEPTH="$with_quantum_depth"
20395
20396cat >>confdefs.h <<_ACEOF
20397#define QUANTUM_DEPTH $QUANTUM_DEPTH
20398_ACEOF
20399
20400
20401# Set pixel cache threshold
20402
20403# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020404if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020405 withval=$with_cache; with_cache=$withval
20406else
20407 with_cache=''
20408fi
20409
20410
20411if test "$with_cache" != ''; then
20412
20413cat >>confdefs.h <<_ACEOF
20414#define PixelCacheThreshold $with_cache
20415_ACEOF
20416
20417 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20418fi
20419
20420# Disable/Enable support for full delegate paths
20421
20422# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020423if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020424 withval=$with_frozenpaths; with_frozenpaths=$withval
20425else
20426 with_frozenpaths='no'
20427fi
20428
20429
20430# Enable build/install of Magick++
20431
20432# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020433if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020434 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20435else
20436 with_magick_plus_plus='yes'
20437fi
20438
20439
20440# Disable build/install of PerlMagick.
20441
20442# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020443if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020444 withval=$with_perl; with_perl=$withval
20445else
cristyb5f4e2f2010-04-25 00:49:11 +000020446 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020447fi
20448
20449
20450# Options to pass when configuring PerlMagick
20451
20452# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020453if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020454 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020455fi
20456
20457
cristy3ed852e2009-09-05 21:47:34 +000020458
20459# Enable umem, object-caching memory allocation library.
20460
20461# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020462if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020463 withval=$with_umem; with_umem=$withval
20464else
20465 with_umem='no'
20466fi
20467
20468if test "$with_umem" != 'yes' ; then
20469 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20470fi
20471
20472#
20473# Specify path to shared libstdc++ if not in normal location
20474#
20475
20476# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020477if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020478 withval=$with_libstdc; with_libstdc=$withval
20479else
20480 with_libstdc=''
20481fi
20482
20483
20484if test "$with_libstdc" != ''; then
20485 if test -d "$with_libstdc"; then
20486 LIBSTDCLDFLAGS="-L$with_libstdc"
20487 fi
20488fi
20489
20490
20491# Does gcc required -traditional?
20492if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020494$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020495if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020496 $as_echo_n "(cached) " >&6
20497else
20498 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020500/* end confdefs.h. */
20501#include <sgtty.h>
20502Autoconf TIOCGETP
20503_ACEOF
20504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020505 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020506 ac_cv_prog_gcc_traditional=yes
20507else
20508 ac_cv_prog_gcc_traditional=no
20509fi
20510rm -f conftest*
20511
20512
20513 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020515/* end confdefs.h. */
20516#include <termio.h>
20517Autoconf TCGETA
20518_ACEOF
20519if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020520 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020521 ac_cv_prog_gcc_traditional=yes
20522fi
20523rm -f conftest*
20524
20525 fi
20526fi
cristy8b350f62009-11-15 23:12:43 +000020527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020528$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20529 if test $ac_cv_prog_gcc_traditional = yes; then
20530 CC="$CC -traditional"
20531 fi
20532fi
20533
20534
20535########
20536#
20537# Set defines required to build DLLs and modules using MinGW
20538#
20539########
20540# These options are set for multi-thread DLL module build
20541# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20542# module: _DLL
20543# executable/Magick++: _DLL _MAGICKMOD_
20544MODULE_EXTRA_CPPFLAGS=''
20545LIBRARY_EXTRA_CPPFLAGS=''
20546if test "${native_win32_build}" = 'yes'; then
20547 if test "${libtool_build_shared_libs}" = 'yes'; then
20548 CPPFLAGS="$CPPFLAGS -D_DLL"
20549 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20550 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20551 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20552 if test "$with_modules" = 'yes'; then
20553 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20554 else
20555 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20556 fi
20557 else
20558 CPPFLAGS="$CPPFLAGS -D_LIB"
20559 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20560 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20561 fi
20562 if test "$with_threads" = 'yes'; then
20563 CPPFLAGS="$CPPFLAGS -D_MT"
20564 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20565 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20566 fi
20567fi
20568
20569
20570
20571# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020573$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020574if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020575 $as_echo_n "(cached) " >&6
20576else
cristy8b350f62009-11-15 23:12:43 +000020577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020578/* end confdefs.h. */
20579#include <stdlib.h>
20580#include <stdarg.h>
20581#include <string.h>
20582#include <float.h>
20583
20584int
20585main ()
20586{
20587
20588 ;
20589 return 0;
20590}
20591_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020592if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020593 ac_cv_header_stdc=yes
20594else
cristy8b350f62009-11-15 23:12:43 +000020595 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020596fi
cristy3ed852e2009-09-05 21:47:34 +000020597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20598
20599if test $ac_cv_header_stdc = yes; then
20600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020602/* end confdefs.h. */
20603#include <string.h>
20604
20605_ACEOF
20606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020607 $EGREP "memchr" >/dev/null 2>&1; then :
20608
cristy3ed852e2009-09-05 21:47:34 +000020609else
20610 ac_cv_header_stdc=no
20611fi
20612rm -f conftest*
20613
20614fi
20615
20616if test $ac_cv_header_stdc = yes; then
20617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020619/* end confdefs.h. */
20620#include <stdlib.h>
20621
20622_ACEOF
20623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020624 $EGREP "free" >/dev/null 2>&1; then :
20625
cristy3ed852e2009-09-05 21:47:34 +000020626else
20627 ac_cv_header_stdc=no
20628fi
20629rm -f conftest*
20630
20631fi
20632
20633if test $ac_cv_header_stdc = yes; then
20634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020635 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020636 :
20637else
cristy8b350f62009-11-15 23:12:43 +000020638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020639/* end confdefs.h. */
20640#include <ctype.h>
20641#include <stdlib.h>
20642#if ((' ' & 0x0FF) == 0x020)
20643# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20644# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20645#else
20646# define ISLOWER(c) \
20647 (('a' <= (c) && (c) <= 'i') \
20648 || ('j' <= (c) && (c) <= 'r') \
20649 || ('s' <= (c) && (c) <= 'z'))
20650# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20651#endif
20652
20653#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20654int
20655main ()
20656{
20657 int i;
20658 for (i = 0; i < 256; i++)
20659 if (XOR (islower (i), ISLOWER (i))
20660 || toupper (i) != TOUPPER (i))
20661 return 2;
20662 return 0;
20663}
20664_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020665if ac_fn_c_try_run "$LINENO"; then :
20666
cristy3ed852e2009-09-05 21:47:34 +000020667else
cristy8b350f62009-11-15 23:12:43 +000020668 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020669fi
cristy8b350f62009-11-15 23:12:43 +000020670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20671 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020672fi
20673
cristy3ed852e2009-09-05 21:47:34 +000020674fi
20675fi
cristy8b350f62009-11-15 23:12:43 +000020676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020677$as_echo "$ac_cv_header_stdc" >&6; }
20678if test $ac_cv_header_stdc = yes; then
20679
cristy8b350f62009-11-15 23:12:43 +000020680$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020681
20682fi
20683
20684if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020685 { $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 +000020686 header files. Compilation cannot proceed. Please install the ANSI C
20687 headers and rerun this script." >&5
20688$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20689 header files. Compilation cannot proceed. Please install the ANSI C
20690 headers and rerun this script." >&2;};
20691fi
cristya0b81c32010-01-22 02:54:33 +000020692
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20694$as_echo_n "checking whether to enable assertions... " >&6; }
20695 # Check whether --enable-assert was given.
20696if test "${enable_assert+set}" = set; then :
20697 enableval=$enable_assert; ac_enable_assert=$enableval
20698 if test "x$enableval" = xno; then :
20699
20700$as_echo "#define NDEBUG 1" >>confdefs.h
20701
20702elif test "x$enableval" != xyes; then :
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20704$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20705 ac_enable_assert=yes
20706fi
20707else
20708 ac_enable_assert=yes
20709fi
20710
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20712$as_echo "$ac_enable_assert" >&6; }
20713
cristy3ed852e2009-09-05 21:47:34 +000020714ac_header_dirent=no
20715for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20716 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020718$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020719if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020720 $as_echo_n "(cached) " >&6
20721else
cristy8b350f62009-11-15 23:12:43 +000020722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020723/* end confdefs.h. */
20724#include <sys/types.h>
20725#include <$ac_hdr>
20726
20727int
20728main ()
20729{
20730if ((DIR *) 0)
20731return 0;
20732 ;
20733 return 0;
20734}
20735_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020736if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020737 eval "$as_ac_Header=yes"
20738else
cristy8b350f62009-11-15 23:12:43 +000020739 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020740fi
cristy3ed852e2009-09-05 21:47:34 +000020741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20742fi
cristy8b350f62009-11-15 23:12:43 +000020743eval ac_res=\$$as_ac_Header
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020745$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020746eval as_val=\$$as_ac_Header
20747 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020748 cat >>confdefs.h <<_ACEOF
20749#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20750_ACEOF
20751
20752ac_header_dirent=$ac_hdr; break
20753fi
20754
20755done
20756# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20757if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020759$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020760if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020761 $as_echo_n "(cached) " >&6
20762else
20763 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020765/* end confdefs.h. */
20766
20767/* Override any GCC internal prototype to avoid an error.
20768 Use char because int might match the return type of a GCC
20769 builtin and then its argument prototype would still apply. */
20770#ifdef __cplusplus
20771extern "C"
20772#endif
20773char opendir ();
20774int
20775main ()
20776{
20777return opendir ();
20778 ;
20779 return 0;
20780}
20781_ACEOF
20782for ac_lib in '' dir; do
20783 if test -z "$ac_lib"; then
20784 ac_res="none required"
20785 else
20786 ac_res=-l$ac_lib
20787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20788 fi
cristy8b350f62009-11-15 23:12:43 +000020789 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020790 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020791fi
cristy8b350f62009-11-15 23:12:43 +000020792rm -f core conftest.err conftest.$ac_objext \
20793 conftest$ac_exeext
20794 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020795 break
20796fi
20797done
cristy8b350f62009-11-15 23:12:43 +000020798if test "${ac_cv_search_opendir+set}" = set; then :
20799
cristy3ed852e2009-09-05 21:47:34 +000020800else
20801 ac_cv_search_opendir=no
20802fi
20803rm conftest.$ac_ext
20804LIBS=$ac_func_search_save_LIBS
20805fi
cristy8b350f62009-11-15 23:12:43 +000020806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020807$as_echo "$ac_cv_search_opendir" >&6; }
20808ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020809if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20811
20812fi
20813
20814else
cristy8b350f62009-11-15 23:12:43 +000020815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020816$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020817if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020818 $as_echo_n "(cached) " >&6
20819else
20820 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020822/* end confdefs.h. */
20823
20824/* Override any GCC internal prototype to avoid an error.
20825 Use char because int might match the return type of a GCC
20826 builtin and then its argument prototype would still apply. */
20827#ifdef __cplusplus
20828extern "C"
20829#endif
20830char opendir ();
20831int
20832main ()
20833{
20834return opendir ();
20835 ;
20836 return 0;
20837}
20838_ACEOF
20839for ac_lib in '' x; do
20840 if test -z "$ac_lib"; then
20841 ac_res="none required"
20842 else
20843 ac_res=-l$ac_lib
20844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20845 fi
cristy8b350f62009-11-15 23:12:43 +000020846 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020847 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020848fi
cristy8b350f62009-11-15 23:12:43 +000020849rm -f core conftest.err conftest.$ac_objext \
20850 conftest$ac_exeext
20851 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020852 break
20853fi
20854done
cristy8b350f62009-11-15 23:12:43 +000020855if test "${ac_cv_search_opendir+set}" = set; then :
20856
cristy3ed852e2009-09-05 21:47:34 +000020857else
20858 ac_cv_search_opendir=no
20859fi
20860rm conftest.$ac_ext
20861LIBS=$ac_func_search_save_LIBS
20862fi
cristy8b350f62009-11-15 23:12:43 +000020863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020864$as_echo "$ac_cv_search_opendir" >&6; }
20865ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020866if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20868
20869fi
20870
20871fi
20872
20873
20874# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020875for 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 +000020876do :
20877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20878ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20879eval as_val=\$$as_ac_Header
20880 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020881 cat >>confdefs.h <<_ACEOF
20882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20883_ACEOF
20884
20885fi
20886
20887done
20888
20889
20890########
20891#
20892# Checks for typedefs, structures, and compiler characteristics.
20893#
20894########
20895
cristy8b350f62009-11-15 23:12:43 +000020896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020897$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020898if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020899 $as_echo_n "(cached) " >&6
20900else
cristy8b350f62009-11-15 23:12:43 +000020901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020902/* end confdefs.h. */
20903
20904#include <stdbool.h>
20905#ifndef bool
20906 "error: bool is not defined"
20907#endif
20908#ifndef false
20909 "error: false is not defined"
20910#endif
20911#if false
20912 "error: false is not 0"
20913#endif
20914#ifndef true
20915 "error: true is not defined"
20916#endif
20917#if true != 1
20918 "error: true is not 1"
20919#endif
20920#ifndef __bool_true_false_are_defined
20921 "error: __bool_true_false_are_defined is not defined"
20922#endif
20923
20924 struct s { _Bool s: 1; _Bool t; } s;
20925
20926 char a[true == 1 ? 1 : -1];
20927 char b[false == 0 ? 1 : -1];
20928 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20929 char d[(bool) 0.5 == true ? 1 : -1];
20930 bool e = &s;
20931 char f[(_Bool) 0.0 == false ? 1 : -1];
20932 char g[true];
20933 char h[sizeof (_Bool)];
20934 char i[sizeof s.t];
20935 enum { j = false, k = true, l = false * true, m = true * 256 };
20936 /* The following fails for
20937 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20938 _Bool n[m];
20939 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20940 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20941# if defined __xlc__ || defined __GNUC__
20942 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20943 reported by James Lemley on 2005-10-05; see
20944 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20945 This test is not quite right, since xlc is allowed to
20946 reject this program, as the initializer for xlcbug is
20947 not one of the forms that C requires support for.
20948 However, doing the test right would require a runtime
20949 test, and that would make cross-compilation harder.
20950 Let us hope that IBM fixes the xlc bug, and also adds
20951 support for this kind of constant expression. In the
20952 meantime, this test will reject xlc, which is OK, since
20953 our stdbool.h substitute should suffice. We also test
20954 this with GCC, where it should work, to detect more
20955 quickly whether someone messes up the test in the
20956 future. */
20957 char digs[] = "0123456789";
20958 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20959# endif
20960 /* Catch a bug in an HP-UX C compiler. See
20961 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20962 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20963 */
20964 _Bool q = true;
20965 _Bool *pq = &q;
20966
20967int
20968main ()
20969{
20970
20971 *pq |= q;
20972 *pq |= ! q;
20973 /* Refer to every declared value, to avoid compiler optimizations. */
20974 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20975 + !m + !n + !o + !p + !q + !pq);
20976
20977 ;
20978 return 0;
20979}
20980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020981if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020982 ac_cv_header_stdbool_h=yes
20983else
cristy8b350f62009-11-15 23:12:43 +000020984 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020985fi
cristy3ed852e2009-09-05 21:47:34 +000020986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20987fi
cristy8b350f62009-11-15 23:12:43 +000020988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020989$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020990ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20991if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020992
20993cat >>confdefs.h <<_ACEOF
20994#define HAVE__BOOL 1
20995_ACEOF
20996
20997
20998fi
20999
21000if test $ac_cv_header_stdbool_h = yes; then
21001
cristy8b350f62009-11-15 23:12:43 +000021002$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021003
21004fi
21005
cristy8b350f62009-11-15 23:12:43 +000021006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021007$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021008if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021009 $as_echo_n "(cached) " >&6
21010else
cristy8b350f62009-11-15 23:12:43 +000021011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021012/* end confdefs.h. */
21013
21014int
21015main ()
21016{
21017
21018volatile int x;
21019int * volatile y = (int *) 0;
21020return !x && !y;
21021 ;
21022 return 0;
21023}
21024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021025if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021026 ac_cv_c_volatile=yes
21027else
cristy8b350f62009-11-15 23:12:43 +000021028 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021029fi
cristy3ed852e2009-09-05 21:47:34 +000021030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031fi
cristy8b350f62009-11-15 23:12:43 +000021032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021033$as_echo "$ac_cv_c_volatile" >&6; }
21034if test $ac_cv_c_volatile = no; then
21035
cristy8b350f62009-11-15 23:12:43 +000021036$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021037
21038fi
21039
cristy8b350f62009-11-15 23:12:43 +000021040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021041$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021042if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021043 $as_echo_n "(cached) " >&6
21044else
cristy8b350f62009-11-15 23:12:43 +000021045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021046/* end confdefs.h. */
21047#define x(y) #y
21048
21049char *s = x(teststring);
21050_ACEOF
21051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021052 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021053 ac_cv_c_stringize=no
21054else
21055 ac_cv_c_stringize=yes
21056fi
21057rm -f conftest*
21058
21059fi
cristy8b350f62009-11-15 23:12:43 +000021060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021061$as_echo "$ac_cv_c_stringize" >&6; }
21062if test $ac_cv_c_stringize = yes; then
21063
cristy8b350f62009-11-15 23:12:43 +000021064$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021065
21066fi
21067
cristy8b350f62009-11-15 23:12:43 +000021068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021069$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021070if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021071 $as_echo_n "(cached) " >&6
21072else
cristy8b350f62009-11-15 23:12:43 +000021073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021074/* end confdefs.h. */
21075#include <sys/types.h>
21076#include <sys/stat.h>
21077
21078#if defined S_ISBLK && defined S_IFDIR
21079extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21080#endif
21081
21082#if defined S_ISBLK && defined S_IFCHR
21083extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21084#endif
21085
21086#if defined S_ISLNK && defined S_IFREG
21087extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21088#endif
21089
21090#if defined S_ISSOCK && defined S_IFREG
21091extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21092#endif
21093
21094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021095if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021096 ac_cv_header_stat_broken=no
21097else
cristy8b350f62009-11-15 23:12:43 +000021098 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021099fi
cristy3ed852e2009-09-05 21:47:34 +000021100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21101fi
cristy8b350f62009-11-15 23:12:43 +000021102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021103$as_echo "$ac_cv_header_stat_broken" >&6; }
21104if test $ac_cv_header_stat_broken = yes; then
21105
cristy8b350f62009-11-15 23:12:43 +000021106$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021107
21108fi
21109
cristy8b350f62009-11-15 23:12:43 +000021110{ $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 +000021111$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021112if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021113 $as_echo_n "(cached) " >&6
21114else
cristy8b350f62009-11-15 23:12:43 +000021115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021116/* end confdefs.h. */
21117#include <sys/types.h>
21118#include <sys/time.h>
21119#include <time.h>
21120
21121int
21122main ()
21123{
21124if ((struct tm *) 0)
21125return 0;
21126 ;
21127 return 0;
21128}
21129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021130if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021131 ac_cv_header_time=yes
21132else
cristy8b350f62009-11-15 23:12:43 +000021133 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021134fi
cristy3ed852e2009-09-05 21:47:34 +000021135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21136fi
cristy8b350f62009-11-15 23:12:43 +000021137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021138$as_echo "$ac_cv_header_time" >&6; }
21139if test $ac_cv_header_time = yes; then
21140
cristy8b350f62009-11-15 23:12:43 +000021141$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021142
21143fi
21144
cristy8b350f62009-11-15 23:12:43 +000021145{ $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 +000021146$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021147if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021148 $as_echo_n "(cached) " >&6
21149else
cristy8b350f62009-11-15 23:12:43 +000021150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021151/* end confdefs.h. */
21152#include <sys/types.h>
21153#include <time.h>
21154
21155int
21156main ()
21157{
21158struct tm tm;
21159 int *p = &tm.tm_sec;
21160 return !p;
21161 ;
21162 return 0;
21163}
21164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021165if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021166 ac_cv_struct_tm=time.h
21167else
cristy8b350f62009-11-15 23:12:43 +000021168 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021169fi
cristy3ed852e2009-09-05 21:47:34 +000021170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21171fi
cristy8b350f62009-11-15 23:12:43 +000021172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021173$as_echo "$ac_cv_struct_tm" >&6; }
21174if test $ac_cv_struct_tm = sys/time.h; then
21175
cristy8b350f62009-11-15 23:12:43 +000021176$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021177
21178fi
21179
cristy92703d82010-04-26 00:18:18 +000021180ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21181#include <$ac_cv_struct_tm>
21182
21183"
21184if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21185
21186cat >>confdefs.h <<_ACEOF
21187#define HAVE_STRUCT_TM_TM_ZONE 1
21188_ACEOF
21189
21190
21191fi
21192
21193if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21194
21195$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21196
21197else
21198 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21199"
21200if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21201 ac_have_decl=1
21202else
21203 ac_have_decl=0
21204fi
21205
21206cat >>confdefs.h <<_ACEOF
21207#define HAVE_DECL_TZNAME $ac_have_decl
21208_ACEOF
21209
21210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21211$as_echo_n "checking for tzname... " >&6; }
21212if test "${ac_cv_var_tzname+set}" = set; then :
21213 $as_echo_n "(cached) " >&6
21214else
21215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21216/* end confdefs.h. */
21217#include <time.h>
21218#if !HAVE_DECL_TZNAME
21219extern char *tzname[];
21220#endif
21221
21222int
21223main ()
21224{
21225return tzname[0][0];
21226 ;
21227 return 0;
21228}
21229_ACEOF
21230if ac_fn_c_try_link "$LINENO"; then :
21231 ac_cv_var_tzname=yes
21232else
21233 ac_cv_var_tzname=no
21234fi
21235rm -f core conftest.err conftest.$ac_objext \
21236 conftest$ac_exeext conftest.$ac_ext
21237fi
21238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21239$as_echo "$ac_cv_var_tzname" >&6; }
21240 if test $ac_cv_var_tzname = yes; then
21241
21242$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21243
21244 fi
21245fi
21246
cristy8b350f62009-11-15 23:12:43 +000021247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021248$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021249if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021250 $as_echo_n "(cached) " >&6
21251else
21252 echo '#! /bin/cat
21253exit 69
21254' >conftest
21255chmod u+x conftest
21256(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21257if test $? -ne 69; then
21258 ac_cv_sys_interpreter=yes
21259else
21260 ac_cv_sys_interpreter=no
21261fi
21262rm -f conftest
21263fi
cristy8b350f62009-11-15 23:12:43 +000021264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021265$as_echo "$ac_cv_sys_interpreter" >&6; }
21266interpval=$ac_cv_sys_interpreter
21267
21268
cristy3ed852e2009-09-05 21:47:34 +000021269# If the C compiler supports the keyword inline, do nothing. Otherwise
21270# define inline to __inline__ or __inline if it accepts one of those,
21271# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021273$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021274if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021275 $as_echo_n "(cached) " >&6
21276else
21277 ac_cv_c_inline=no
21278for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021280/* end confdefs.h. */
21281#ifndef __cplusplus
21282typedef int foo_t;
21283static $ac_kw foo_t static_foo () {return 0; }
21284$ac_kw foo_t foo () {return 0; }
21285#endif
21286
21287_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021288if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021289 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021290fi
cristy3ed852e2009-09-05 21:47:34 +000021291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21292 test "$ac_cv_c_inline" != no && break
21293done
21294
21295fi
cristy8b350f62009-11-15 23:12:43 +000021296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021297$as_echo "$ac_cv_c_inline" >&6; }
21298
cristy3ed852e2009-09-05 21:47:34 +000021299case $ac_cv_c_inline in
21300 inline | yes) ;;
21301 *)
21302 case $ac_cv_c_inline in
21303 no) ac_val=;;
21304 *) ac_val=$ac_cv_c_inline;;
21305 esac
21306 cat >>confdefs.h <<_ACEOF
21307#ifndef __cplusplus
21308#define inline $ac_val
21309#endif
21310_ACEOF
21311 ;;
21312esac
21313
21314
21315# If the C compiler supports the keyword restrict, do nothing. Otherwise
21316# define restrict to __restrict__ or __restrict if it accepts one of those,
21317# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021319$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021320if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021321 $as_echo_n "(cached) " >&6
21322else
21323 ac_cv_c_restrict=no
21324 # The order here caters to the fact that C++ does not require restrict.
21325 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021327/* end confdefs.h. */
21328typedef int * int_ptr;
21329 int foo (int_ptr $ac_kw ip) {
21330 return ip[0];
21331 }
21332int
21333main ()
21334{
21335int s[1];
21336 int * $ac_kw t = s;
21337 t[0] = 0;
21338 return foo(t)
21339 ;
21340 return 0;
21341}
21342_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021343if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021344 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021345fi
cristy3ed852e2009-09-05 21:47:34 +000021346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21347 test "$ac_cv_c_restrict" != no && break
21348 done
21349
21350fi
cristy8b350f62009-11-15 23:12:43 +000021351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021352$as_echo "$ac_cv_c_restrict" >&6; }
21353
cristy3ed852e2009-09-05 21:47:34 +000021354 case $ac_cv_c_restrict in
21355 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021356 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021357 ;;
21358 *) cat >>confdefs.h <<_ACEOF
21359#define restrict $ac_cv_c_restrict
21360_ACEOF
21361 ;;
21362 esac
21363
21364
21365# If words are stored with the most significant byte first (like
21366# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021368$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021369if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021370 $as_echo_n "(cached) " >&6
21371else
21372 ac_cv_c_bigendian=unknown
21373 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021375/* end confdefs.h. */
21376#ifndef __APPLE_CC__
21377 not a universal capable compiler
21378 #endif
21379 typedef int dummy;
21380
21381_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021382if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021383
21384 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021385 # there are at least two -arch flags with different values.
21386 ac_arch=
21387 ac_prev=
21388 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21389 if test -n "$ac_prev"; then
21390 case $ac_word in
21391 i?86 | x86_64 | ppc | ppc64)
21392 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21393 ac_arch=$ac_word
21394 else
21395 ac_cv_c_bigendian=universal
21396 break
21397 fi
21398 ;;
21399 esac
21400 ac_prev=
21401 elif test "x$ac_word" = "x-arch"; then
21402 ac_prev=arch
21403 fi
21404 done
cristy3ed852e2009-09-05 21:47:34 +000021405fi
cristy3ed852e2009-09-05 21:47:34 +000021406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21407 if test $ac_cv_c_bigendian = unknown; then
21408 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021410/* end confdefs.h. */
21411#include <sys/types.h>
21412 #include <sys/param.h>
21413
21414int
21415main ()
21416{
21417#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21418 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21419 && LITTLE_ENDIAN)
21420 bogus endian macros
21421 #endif
21422
21423 ;
21424 return 0;
21425}
21426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021427if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021428 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021430/* end confdefs.h. */
21431#include <sys/types.h>
21432 #include <sys/param.h>
21433
21434int
21435main ()
21436{
21437#if BYTE_ORDER != BIG_ENDIAN
21438 not big endian
21439 #endif
21440
21441 ;
21442 return 0;
21443}
21444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021445if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021446 ac_cv_c_bigendian=yes
21447else
cristy8b350f62009-11-15 23:12:43 +000021448 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021449fi
cristy3ed852e2009-09-05 21:47:34 +000021450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021451fi
cristy3ed852e2009-09-05 21:47:34 +000021452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21453 fi
21454 if test $ac_cv_c_bigendian = unknown; then
21455 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021457/* end confdefs.h. */
21458#include <limits.h>
21459
21460int
21461main ()
21462{
21463#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21464 bogus endian macros
21465 #endif
21466
21467 ;
21468 return 0;
21469}
21470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021471if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021472 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021474/* end confdefs.h. */
21475#include <limits.h>
21476
21477int
21478main ()
21479{
21480#ifndef _BIG_ENDIAN
21481 not big endian
21482 #endif
21483
21484 ;
21485 return 0;
21486}
21487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021488if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021489 ac_cv_c_bigendian=yes
21490else
cristy8b350f62009-11-15 23:12:43 +000021491 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021492fi
cristy3ed852e2009-09-05 21:47:34 +000021493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021494fi
cristy3ed852e2009-09-05 21:47:34 +000021495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21496 fi
21497 if test $ac_cv_c_bigendian = unknown; then
21498 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021499 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021500 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021502/* end confdefs.h. */
21503short int ascii_mm[] =
21504 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21505 short int ascii_ii[] =
21506 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21507 int use_ascii (int i) {
21508 return ascii_mm[i] + ascii_ii[i];
21509 }
21510 short int ebcdic_ii[] =
21511 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21512 short int ebcdic_mm[] =
21513 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21514 int use_ebcdic (int i) {
21515 return ebcdic_mm[i] + ebcdic_ii[i];
21516 }
21517 extern int foo;
21518
21519int
21520main ()
21521{
21522return use_ascii (foo) == use_ebcdic (foo);
21523 ;
21524 return 0;
21525}
21526_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021527if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021528 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21529 ac_cv_c_bigendian=yes
21530 fi
21531 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21532 if test "$ac_cv_c_bigendian" = unknown; then
21533 ac_cv_c_bigendian=no
21534 else
21535 # finding both strings is unlikely to happen, but who knows?
21536 ac_cv_c_bigendian=unknown
21537 fi
21538 fi
cristy3ed852e2009-09-05 21:47:34 +000021539fi
cristy3ed852e2009-09-05 21:47:34 +000021540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21541else
cristy8b350f62009-11-15 23:12:43 +000021542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021543/* end confdefs.h. */
21544$ac_includes_default
21545int
21546main ()
21547{
21548
21549 /* Are we little or big endian? From Harbison&Steele. */
21550 union
21551 {
21552 long int l;
21553 char c[sizeof (long int)];
21554 } u;
21555 u.l = 1;
21556 return u.c[sizeof (long int) - 1] == 1;
21557
21558 ;
21559 return 0;
21560}
21561_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021562if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021563 ac_cv_c_bigendian=no
21564else
cristy8b350f62009-11-15 23:12:43 +000021565 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021566fi
cristy8b350f62009-11-15 23:12:43 +000021567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21568 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021569fi
21570
cristy3ed852e2009-09-05 21:47:34 +000021571 fi
21572fi
cristy8b350f62009-11-15 23:12:43 +000021573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021574$as_echo "$ac_cv_c_bigendian" >&6; }
21575 case $ac_cv_c_bigendian in #(
21576 yes)
cristy8b350f62009-11-15 23:12:43 +000021577 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021578;; #(
21579 no)
21580 ;; #(
21581 universal)
21582
cristy8b350f62009-11-15 23:12:43 +000021583$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021584
21585 ;; #(
21586 *)
cristy8b350f62009-11-15 23:12:43 +000021587 as_fn_error "unknown endianness
21588 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021589 esac
21590
21591
21592# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021593ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21594if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021595
cristy3ed852e2009-09-05 21:47:34 +000021596else
21597
21598cat >>confdefs.h <<_ACEOF
21599#define mode_t int
21600_ACEOF
21601
21602fi
21603
21604
21605# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021606ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21607if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021608
cristy3ed852e2009-09-05 21:47:34 +000021609else
21610
21611cat >>confdefs.h <<_ACEOF
21612#define off_t long int
21613_ACEOF
21614
21615fi
21616
21617
21618# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021619ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21620if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021621
cristy3ed852e2009-09-05 21:47:34 +000021622else
21623
21624cat >>confdefs.h <<_ACEOF
21625#define pid_t int
21626_ACEOF
21627
21628fi
21629
21630
21631# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021632ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21633if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021634
cristy3ed852e2009-09-05 21:47:34 +000021635else
21636
21637cat >>confdefs.h <<_ACEOF
21638#define size_t unsigned int
21639_ACEOF
21640
21641fi
21642
21643
21644# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021645ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21646if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021647
cristy3ed852e2009-09-05 21:47:34 +000021648else
21649
21650cat >>confdefs.h <<_ACEOF
21651#define ssize_t int
21652_ACEOF
21653
21654fi
21655
21656
21657# If the C compiler supports a working long double type with more range
21658# or precision than the double type, define HAVE_LONG_DOUBLE.
21659
cristy8b350f62009-11-15 23:12:43 +000021660 { $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 +000021661$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021662if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021663 $as_echo_n "(cached) " >&6
21664else
cristy8b350f62009-11-15 23:12:43 +000021665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021666/* end confdefs.h. */
21667#include <float.h>
21668 long double const a[] =
21669 {
21670 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21671 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21672 };
21673 long double
21674 f (long double x)
21675 {
21676 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21677 + (x ? f (x) : 'c'));
21678 }
21679
21680int
21681main ()
21682{
21683static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21684 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21685 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21686 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21687 && (int) LDBL_EPSILON == 0
21688 )];
21689test_array [0] = 0
21690
21691 ;
21692 return 0;
21693}
21694_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021695if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021696 ac_cv_type_long_double_wider=yes
21697else
cristy8b350f62009-11-15 23:12:43 +000021698 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021699fi
cristy3ed852e2009-09-05 21:47:34 +000021700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21701fi
cristy8b350f62009-11-15 23:12:43 +000021702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021703$as_echo "$ac_cv_type_long_double_wider" >&6; }
21704 if test $ac_cv_type_long_double_wider = yes; then
21705
cristy8b350f62009-11-15 23:12:43 +000021706$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021707
21708 fi
21709
21710
21711# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21712# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021714$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021715if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021716 $as_echo_n "(cached) " >&6
21717else
cristy8b350f62009-11-15 23:12:43 +000021718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021719/* end confdefs.h. */
21720$ac_includes_default
21721int
21722main ()
21723{
21724static int test_array [1 - 2 * !(((char) -1) < 0)];
21725test_array [0] = 0
21726
21727 ;
21728 return 0;
21729}
21730_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021731if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021732 ac_cv_c_char_unsigned=no
21733else
cristy8b350f62009-11-15 23:12:43 +000021734 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021735fi
cristy3ed852e2009-09-05 21:47:34 +000021736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21737fi
cristy8b350f62009-11-15 23:12:43 +000021738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021739$as_echo "$ac_cv_c_char_unsigned" >&6; }
21740if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021741 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021742
21743fi
21744
21745
21746# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21747# The cast to long int works around a bug in the HP C Compiler
21748# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21749# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21750# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021752$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021753if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021754 $as_echo_n "(cached) " >&6
21755else
cristy8b350f62009-11-15 23:12:43 +000021756 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 +000021757
cristy3ed852e2009-09-05 21:47:34 +000021758else
cristy8b350f62009-11-15 23:12:43 +000021759 if test "$ac_cv_type_signed_short" = yes; then
21760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021762{ as_fn_set_status 77
21763as_fn_error "cannot compute sizeof (signed short)
21764See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021765 else
21766 ac_cv_sizeof_signed_short=0
21767 fi
21768fi
cristy8b350f62009-11-15 23:12:43 +000021769
cristy3ed852e2009-09-05 21:47:34 +000021770fi
cristy8b350f62009-11-15 23:12:43 +000021771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021772$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21773
21774
21775
21776cat >>confdefs.h <<_ACEOF
21777#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21778_ACEOF
21779
21780
21781
21782# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21783# The cast to long int works around a bug in the HP C Compiler
21784# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21785# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21786# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021788$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021789if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021790 $as_echo_n "(cached) " >&6
21791else
cristy8b350f62009-11-15 23:12:43 +000021792 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 +000021793
cristy3ed852e2009-09-05 21:47:34 +000021794else
cristy8b350f62009-11-15 23:12:43 +000021795 if test "$ac_cv_type_unsigned_short" = yes; then
21796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021798{ as_fn_set_status 77
21799as_fn_error "cannot compute sizeof (unsigned short)
21800See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021801 else
21802 ac_cv_sizeof_unsigned_short=0
21803 fi
21804fi
cristy8b350f62009-11-15 23:12:43 +000021805
cristy3ed852e2009-09-05 21:47:34 +000021806fi
cristy8b350f62009-11-15 23:12:43 +000021807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021808$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21809
21810
21811
21812cat >>confdefs.h <<_ACEOF
21813#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21814_ACEOF
21815
21816
21817
21818# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21819# The cast to long int works around a bug in the HP C Compiler
21820# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21821# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21822# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021824$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021825if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021826 $as_echo_n "(cached) " >&6
21827else
cristy8b350f62009-11-15 23:12:43 +000021828 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 +000021829
cristy3ed852e2009-09-05 21:47:34 +000021830else
cristy8b350f62009-11-15 23:12:43 +000021831 if test "$ac_cv_type_signed_int" = yes; then
21832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021834{ as_fn_set_status 77
21835as_fn_error "cannot compute sizeof (signed int)
21836See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021837 else
21838 ac_cv_sizeof_signed_int=0
21839 fi
21840fi
cristy8b350f62009-11-15 23:12:43 +000021841
cristy3ed852e2009-09-05 21:47:34 +000021842fi
cristy8b350f62009-11-15 23:12:43 +000021843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021844$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21845
21846
21847
21848cat >>confdefs.h <<_ACEOF
21849#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21850_ACEOF
21851
21852
21853
21854# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21855# The cast to long int works around a bug in the HP C Compiler
21856# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21857# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21858# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021860$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021861if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021862 $as_echo_n "(cached) " >&6
21863else
cristy8b350f62009-11-15 23:12:43 +000021864 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 +000021865
cristy3ed852e2009-09-05 21:47:34 +000021866else
cristy8b350f62009-11-15 23:12:43 +000021867 if test "$ac_cv_type_unsigned_int" = yes; then
21868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021870{ as_fn_set_status 77
21871as_fn_error "cannot compute sizeof (unsigned int)
21872See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021873 else
21874 ac_cv_sizeof_unsigned_int=0
21875 fi
21876fi
cristy8b350f62009-11-15 23:12:43 +000021877
cristy3ed852e2009-09-05 21:47:34 +000021878fi
cristy8b350f62009-11-15 23:12:43 +000021879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021880$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21881
21882
21883
21884cat >>confdefs.h <<_ACEOF
21885#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21886_ACEOF
21887
21888
21889
21890# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21891# The cast to long int works around a bug in the HP C Compiler
21892# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21893# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21894# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021896$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021897if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021898 $as_echo_n "(cached) " >&6
21899else
cristy8b350f62009-11-15 23:12:43 +000021900 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 +000021901
cristy3ed852e2009-09-05 21:47:34 +000021902else
cristy8b350f62009-11-15 23:12:43 +000021903 if test "$ac_cv_type_signed_long" = yes; then
21904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021906{ as_fn_set_status 77
21907as_fn_error "cannot compute sizeof (signed long)
21908See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021909 else
21910 ac_cv_sizeof_signed_long=0
21911 fi
21912fi
cristy8b350f62009-11-15 23:12:43 +000021913
cristy3ed852e2009-09-05 21:47:34 +000021914fi
cristy8b350f62009-11-15 23:12:43 +000021915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021916$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21917
21918
21919
21920cat >>confdefs.h <<_ACEOF
21921#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21922_ACEOF
21923
21924
21925
21926# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21927# The cast to long int works around a bug in the HP C Compiler
21928# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21929# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21930# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021932$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021933if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021934 $as_echo_n "(cached) " >&6
21935else
cristy8b350f62009-11-15 23:12:43 +000021936 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 +000021937
cristy3ed852e2009-09-05 21:47:34 +000021938else
cristy8b350f62009-11-15 23:12:43 +000021939 if test "$ac_cv_type_unsigned_long" = yes; then
21940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021942{ as_fn_set_status 77
21943as_fn_error "cannot compute sizeof (unsigned long)
21944See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021945 else
21946 ac_cv_sizeof_unsigned_long=0
21947 fi
21948fi
cristy8b350f62009-11-15 23:12:43 +000021949
cristy3ed852e2009-09-05 21:47:34 +000021950fi
cristy8b350f62009-11-15 23:12:43 +000021951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021952$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21953
21954
21955
21956cat >>confdefs.h <<_ACEOF
21957#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21958_ACEOF
21959
21960
21961
21962# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21963# 'signed long long' is not supported then the value defined is zero.
21964# The cast to long int works around a bug in the HP C Compiler
21965# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21966# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21967# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021969$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021970if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021971 $as_echo_n "(cached) " >&6
21972else
cristy8b350f62009-11-15 23:12:43 +000021973 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 +000021974
cristy3ed852e2009-09-05 21:47:34 +000021975else
cristy8b350f62009-11-15 23:12:43 +000021976 if test "$ac_cv_type_signed_long_long" = yes; then
21977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021979{ as_fn_set_status 77
21980as_fn_error "cannot compute sizeof (signed long long)
21981See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021982 else
21983 ac_cv_sizeof_signed_long_long=0
21984 fi
21985fi
cristy8b350f62009-11-15 23:12:43 +000021986
cristy3ed852e2009-09-05 21:47:34 +000021987fi
cristy8b350f62009-11-15 23:12:43 +000021988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021989$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21990
21991
21992
21993cat >>confdefs.h <<_ACEOF
21994#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21995_ACEOF
21996
21997
21998
21999# Obtain size of a 'unsigned long long' and define as
22000# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22001# supported then the value defined is zero.
22002# The cast to long int works around a bug in the HP C Compiler
22003# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22004# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22005# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022007$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022008if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022009 $as_echo_n "(cached) " >&6
22010else
cristy8b350f62009-11-15 23:12:43 +000022011 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 +000022012
cristy3ed852e2009-09-05 21:47:34 +000022013else
cristy8b350f62009-11-15 23:12:43 +000022014 if test "$ac_cv_type_unsigned_long_long" = yes; then
22015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022017{ as_fn_set_status 77
22018as_fn_error "cannot compute sizeof (unsigned long long)
22019See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022020 else
22021 ac_cv_sizeof_unsigned_long_long=0
22022 fi
22023fi
cristy8b350f62009-11-15 23:12:43 +000022024
cristy3ed852e2009-09-05 21:47:34 +000022025fi
cristy8b350f62009-11-15 23:12:43 +000022026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022027$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22028
22029
22030
22031cat >>confdefs.h <<_ACEOF
22032#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22033_ACEOF
22034
22035
22036
22037# Obtain size of off_t and define as SIZEOF_OFF_T
22038# The cast to long int works around a bug in the HP C Compiler
22039# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22040# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22041# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022043$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022044if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022045 $as_echo_n "(cached) " >&6
22046else
cristy8b350f62009-11-15 23:12:43 +000022047 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 +000022048
cristy3ed852e2009-09-05 21:47:34 +000022049else
cristy8b350f62009-11-15 23:12:43 +000022050 if test "$ac_cv_type_off_t" = yes; then
22051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022053{ as_fn_set_status 77
22054as_fn_error "cannot compute sizeof (off_t)
22055See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022056 else
22057 ac_cv_sizeof_off_t=0
22058 fi
22059fi
cristy8b350f62009-11-15 23:12:43 +000022060
cristy3ed852e2009-09-05 21:47:34 +000022061fi
cristy8b350f62009-11-15 23:12:43 +000022062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022063$as_echo "$ac_cv_sizeof_off_t" >&6; }
22064
22065
22066
22067cat >>confdefs.h <<_ACEOF
22068#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22069_ACEOF
22070
22071
22072
22073# Obtain size of size_t and define as SIZEOF_SIZE_T
22074# The cast to long int works around a bug in the HP C Compiler
22075# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22076# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22077# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022079$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022080if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022081 $as_echo_n "(cached) " >&6
22082else
cristy8b350f62009-11-15 23:12:43 +000022083 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 +000022084
cristy3ed852e2009-09-05 21:47:34 +000022085else
cristy8b350f62009-11-15 23:12:43 +000022086 if test "$ac_cv_type_size_t" = yes; then
22087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022089{ as_fn_set_status 77
22090as_fn_error "cannot compute sizeof (size_t)
22091See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022092 else
22093 ac_cv_sizeof_size_t=0
22094 fi
22095fi
cristy8b350f62009-11-15 23:12:43 +000022096
cristy3ed852e2009-09-05 21:47:34 +000022097fi
cristy8b350f62009-11-15 23:12:43 +000022098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022099$as_echo "$ac_cv_sizeof_size_t" >&6; }
22100
22101
22102
22103cat >>confdefs.h <<_ACEOF
22104#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22105_ACEOF
22106
22107
22108
cristy330e9352010-06-01 18:42:49 +000022109# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22110# The cast to long int works around a bug in the HP C Compiler
22111# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22112# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22113# This bug is HP SR number 8606223364.
22114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22115$as_echo_n "checking size of ssize_t... " >&6; }
22116if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
22117 $as_echo_n "(cached) " >&6
22118else
22119 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22120
22121else
22122 if test "$ac_cv_type_ssize_t" = yes; then
22123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22125{ as_fn_set_status 77
22126as_fn_error "cannot compute sizeof (ssize_t)
22127See \`config.log' for more details." "$LINENO" 5; }; }
22128 else
22129 ac_cv_sizeof_ssize_t=0
22130 fi
22131fi
22132
22133fi
22134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22135$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22136
22137
22138
22139cat >>confdefs.h <<_ACEOF
22140#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22141_ACEOF
22142
22143
22144
cristy3ed852e2009-09-05 21:47:34 +000022145# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22146# The cast to long int works around a bug in the HP C Compiler
22147# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22148# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22149# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022151$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022152if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022153 $as_echo_n "(cached) " >&6
22154else
cristy8b350f62009-11-15 23:12:43 +000022155 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 +000022156
cristy3ed852e2009-09-05 21:47:34 +000022157else
cristy8b350f62009-11-15 23:12:43 +000022158 if test "$ac_cv_type_unsigned_intp" = yes; then
22159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022161{ as_fn_set_status 77
22162as_fn_error "cannot compute sizeof (unsigned int*)
22163See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022164 else
22165 ac_cv_sizeof_unsigned_intp=0
22166 fi
22167fi
cristy8b350f62009-11-15 23:12:43 +000022168
cristy3ed852e2009-09-05 21:47:34 +000022169fi
cristy8b350f62009-11-15 23:12:43 +000022170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022171$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22172
22173
22174
22175cat >>confdefs.h <<_ACEOF
22176#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22177_ACEOF
22178
22179
22180
22181#
22182# Compute sized types for current CPU and compiler options.
22183#
22184
cristy8b350f62009-11-15 23:12:43 +000022185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022186$as_echo_n "checking for signed 8-bit type... " >&6; }
22187INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022189$as_echo "$INT8_T" >&6; }
22190
22191
cristy8b350f62009-11-15 23:12:43 +000022192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022193$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22194UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022196$as_echo "$UINT8_T" >&6; }
22197
22198
cristy8b350f62009-11-15 23:12:43 +000022199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022200$as_echo_n "checking for signed 16-bit type... " >&6; }
22201INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022203$as_echo "$INT16_T" >&6; }
22204
22205
cristy8b350f62009-11-15 23:12:43 +000022206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022207$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22208UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022210$as_echo "$UINT16_T" >&6; }
22211
22212
cristy8b350f62009-11-15 23:12:43 +000022213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022214$as_echo_n "checking for signed 32-bit type... " >&6; }
22215INT32_T='none'
22216if test $ac_cv_sizeof_signed_int -eq 4; then
22217 INT32_T='signed int'
22218elif test $ac_cv_sizeof_signed_long -eq 4; then
22219 INT32_T='signed long'
22220fi
cristy8b350f62009-11-15 23:12:43 +000022221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022222$as_echo "$INT32_T" >&6; }
22223
22224
cristy8b350f62009-11-15 23:12:43 +000022225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022226$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22227UINT32_T='none'
22228if test $ac_cv_sizeof_unsigned_int -eq 4; then
22229 UINT32_T='unsigned int'
22230elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22231 UINT32_T='unsigned long'
22232fi
cristy8b350f62009-11-15 23:12:43 +000022233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022234$as_echo "$UINT32_T" >&6; }
22235
22236
cristy8b350f62009-11-15 23:12:43 +000022237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022238$as_echo_n "checking for signed 64-bit type... " >&6; }
22239INT64_T='none'
22240if test $ac_cv_sizeof_signed_long -eq 8; then
22241 INT64_T='signed long'
22242elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22243 INT64_T='signed long long'
22244fi
cristy8b350f62009-11-15 23:12:43 +000022245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022246$as_echo "$INT64_T" >&6; }
22247
22248
cristy8b350f62009-11-15 23:12:43 +000022249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022250$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22251UINT64_T='none'
22252if test $ac_cv_sizeof_unsigned_long -eq 8; then
22253 UINT64_T='unsigned long'
22254elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22255 UINT64_T='unsigned long long'
22256fi
cristy8b350f62009-11-15 23:12:43 +000022257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022258$as_echo "$UINT64_T" >&6; }
22259
22260
cristy8b350f62009-11-15 23:12:43 +000022261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022262$as_echo_n "checking for unsigned maximum type... " >&6; }
22263UINTMAX_T='none'
22264if test "$UINT64_T" != 'none'; then
22265 UINTMAX_T=$UINT64_T
22266elif test "$UINT32_T" != 'none'; then
22267 UINTMAX_T=$UINT32_T
22268fi
cristy8b350f62009-11-15 23:12:43 +000022269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022270$as_echo "$UINTMAX_T" >&6; }
22271
22272
cristy8b350f62009-11-15 23:12:43 +000022273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022274$as_echo_n "checking for pointer difference type... " >&6; }
22275UINTPTR_T='none'
22276if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22277 UINTPTR_T='unsigned long'
22278elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22279 UINTPTR_T='unsigned long long'
22280fi
cristy8b350f62009-11-15 23:12:43 +000022281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022282$as_echo "$UINTPTR_T" >&6; }
22283
22284
cristy8b350f62009-11-15 23:12:43 +000022285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022286$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022288/* end confdefs.h. */
22289
22290int
22291main ()
22292{
22293{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22294 ;
22295 return 0;
22296}
22297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022298if ac_fn_c_try_compile "$LINENO"; then :
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022300$as_echo "yes" >&6; }
22301else
cristy8b350f62009-11-15 23:12:43 +000022302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022303$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022305$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022307/* end confdefs.h. */
22308
22309int
22310main ()
22311{
22312{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22313 ;
22314 return 0;
22315}
22316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022317if ac_fn_c_try_compile "$LINENO"; then :
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022319$as_echo "yes" >&6; }
22320
cristy8b350f62009-11-15 23:12:43 +000022321$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022322
22323else
cristy8b350f62009-11-15 23:12:43 +000022324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022325$as_echo "no" >&6; }
22326
cristy8b350f62009-11-15 23:12:43 +000022327$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022328
22329fi
cristy3ed852e2009-09-05 21:47:34 +000022330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22331fi
cristy3ed852e2009-09-05 21:47:34 +000022332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22333
22334########
22335#
22336# Check for functions
22337#
22338########
cristy3ed852e2009-09-05 21:47:34 +000022339for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022340do :
22341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22342ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22343eval as_val=\$$as_ac_Header
22344 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022345 cat >>confdefs.h <<_ACEOF
22346#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22347_ACEOF
22348
22349fi
22350
22351done
22352
cristy3ed852e2009-09-05 21:47:34 +000022353for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022354do :
22355 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22356if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022357 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022358#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022359_ACEOF
22360
22361fi
22362done
22363
cristy8b350f62009-11-15 23:12:43 +000022364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022365$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022366if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022367 $as_echo_n "(cached) " >&6
22368else
cristy8b350f62009-11-15 23:12:43 +000022369 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022370 magick_cv_func_mmap_fileio=no
22371else
cristy8b350f62009-11-15 23:12:43 +000022372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022373/* end confdefs.h. */
22374$ac_includes_default
22375/* malloc might have been renamed as rpl_malloc. */
22376#undef malloc
22377
22378/*
22379 This test is derived from GNU Autoconf's similar macro.
22380 The purpose of this test is to verify that files may be memory
22381 mapped, and that memory mapping and file I/O are coherent.
22382
22383 The test creates a test file, memory maps the file, updates
22384 the file using the memory map, and then reads the file using
22385 file I/O to verify that the file contains the updates.
22386*/
22387
22388#include <fcntl.h>
22389#include <sys/mman.h>
22390
22391#if !STDC_HEADERS && !HAVE_STDLIB_H
22392char *malloc ();
22393#endif
22394
22395/* This mess was copied from the GNU getpagesize.h. */
22396#if !HAVE_GETPAGESIZE
22397/* Assume that all systems that can run configure have sys/param.h. */
22398# if !HAVE_SYS_PARAM_H
22399# define HAVE_SYS_PARAM_H 1
22400# endif
22401
22402# ifdef _SC_PAGESIZE
22403# define getpagesize() sysconf(_SC_PAGESIZE)
22404# else /* no _SC_PAGESIZE */
22405# if HAVE_SYS_PARAM_H
22406# include <sys/param.h>
22407# ifdef EXEC_PAGESIZE
22408# define getpagesize() EXEC_PAGESIZE
22409# else /* no EXEC_PAGESIZE */
22410# ifdef NBPG
22411# define getpagesize() NBPG * CLSIZE
22412# ifndef CLSIZE
22413# define CLSIZE 1
22414# endif /* no CLSIZE */
22415# else /* no NBPG */
22416# ifdef NBPC
22417# define getpagesize() NBPC
22418# else /* no NBPC */
22419# ifdef PAGESIZE
22420# define getpagesize() PAGESIZE
22421# endif /* PAGESIZE */
22422# endif /* no NBPC */
22423# endif /* no NBPG */
22424# endif /* no EXEC_PAGESIZE */
22425# else /* no HAVE_SYS_PARAM_H */
22426# define getpagesize() 8192 /* punt totally */
22427# endif /* no HAVE_SYS_PARAM_H */
22428# endif /* no _SC_PAGESIZE */
22429
22430#endif /* no HAVE_GETPAGESIZE */
22431
22432int
22433main ()
22434{
22435 char *data, *data2, *data3;
22436 int i, pagesize;
22437 int fd;
22438
22439 pagesize = getpagesize ();
22440
22441 /* First, make a file with some known garbage in it. */
22442 data = (char *) malloc (pagesize);
22443 if (!data)
22444 exit (1);
22445 for (i = 0; i < pagesize; ++i)
22446 *(data + i) = rand ();
22447 umask (0);
22448 fd = creat ("conftest.mmap", 0600);
22449 if (fd < 0)
22450 exit (1);
22451 if (write (fd, data, pagesize) != pagesize)
22452 exit (1);
22453 close (fd);
22454
22455 /* Mmap the file as read/write/shared and verify that we see the
22456 same garbage. */
22457 fd = open ("conftest.mmap", O_RDWR);
22458 if (fd < 0)
22459 exit (1);
22460 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22461 if (data2 == 0)
22462 exit (1);
22463 for (i = 0; i < pagesize; ++i)
22464 if (*(data + i) != *(data2 + i))
22465 exit (1);
22466
22467 /* Finally, make sure that changes to the mapped area
22468 percolate back to the file as seen by read(). */
22469 for (i = 0; i < pagesize; ++i)
22470 *(data2 + i) = *(data2 + i) + 1;
22471 data3 = (char *) malloc (pagesize);
22472 if (!data3)
22473 exit (1);
22474 if (read (fd, data3, pagesize) != pagesize)
22475 exit (1);
22476 for (i = 0; i < pagesize; ++i)
22477 if (*(data2 + i) != *(data3 + i))
22478 exit (1);
22479 close (fd);
22480 exit (0);
22481}
22482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022483if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022484 magick_cv_func_mmap_fileio=yes
22485else
cristy8b350f62009-11-15 23:12:43 +000022486 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022487fi
cristy8b350f62009-11-15 23:12:43 +000022488rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22489 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022490fi
22491
cristy3ed852e2009-09-05 21:47:34 +000022492fi
cristy8b350f62009-11-15 23:12:43 +000022493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022494$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22495if test $magick_cv_func_mmap_fileio = yes; then
22496
cristy8b350f62009-11-15 23:12:43 +000022497$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022498
22499fi
22500rm -f conftest.mmap
22501
cristy8b350f62009-11-15 23:12:43 +000022502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022503$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022504if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022505 $as_echo_n "(cached) " >&6
22506else
cristy8b350f62009-11-15 23:12:43 +000022507 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022508 ac_cv_func_closedir_void=yes
22509else
cristy8b350f62009-11-15 23:12:43 +000022510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022511/* end confdefs.h. */
22512$ac_includes_default
22513#include <$ac_header_dirent>
22514#ifndef __cplusplus
22515int closedir ();
22516#endif
22517
22518int
22519main ()
22520{
22521return closedir (opendir (".")) != 0;
22522 ;
22523 return 0;
22524}
22525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022526if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022527 ac_cv_func_closedir_void=no
22528else
cristy8b350f62009-11-15 23:12:43 +000022529 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022530fi
cristy8b350f62009-11-15 23:12:43 +000022531rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22532 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022533fi
22534
cristy3ed852e2009-09-05 21:47:34 +000022535fi
cristy8b350f62009-11-15 23:12:43 +000022536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022537$as_echo "$ac_cv_func_closedir_void" >&6; }
22538if test $ac_cv_func_closedir_void = yes; then
22539
cristy8b350f62009-11-15 23:12:43 +000022540$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022541
22542fi
22543
cristycd4c5312009-11-22 01:19:08 +000022544
22545
22546
22547 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022548do :
22549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022550ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22551"
cristy8b350f62009-11-15 23:12:43 +000022552eval as_val=\$$as_ac_Header
22553 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022554 cat >>confdefs.h <<_ACEOF
22555#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22556_ACEOF
22557
22558fi
22559
22560done
22561
cristycd4c5312009-11-22 01:19:08 +000022562
22563
22564
22565
22566
22567
22568
cristy3ed852e2009-09-05 21:47:34 +000022569for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022570do :
22571 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22572if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022573 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022574#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022575_ACEOF
22576
22577fi
22578done
22579
cristy8b350f62009-11-15 23:12:43 +000022580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022581$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022582if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022583 $as_echo_n "(cached) " >&6
22584else
cristy8b350f62009-11-15 23:12:43 +000022585 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022586 ac_cv_func_mmap_fixed_mapped=no
22587else
cristy8b350f62009-11-15 23:12:43 +000022588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022589/* end confdefs.h. */
22590$ac_includes_default
22591/* malloc might have been renamed as rpl_malloc. */
22592#undef malloc
22593
22594/* Thanks to Mike Haertel and Jim Avera for this test.
22595 Here is a matrix of mmap possibilities:
22596 mmap private not fixed
22597 mmap private fixed at somewhere currently unmapped
22598 mmap private fixed at somewhere already mapped
22599 mmap shared not fixed
22600 mmap shared fixed at somewhere currently unmapped
22601 mmap shared fixed at somewhere already mapped
22602 For private mappings, we should verify that changes cannot be read()
22603 back from the file, nor mmap's back from the file at a different
22604 address. (There have been systems where private was not correctly
22605 implemented like the infamous i386 svr4.0, and systems where the
22606 VM page cache was not coherent with the file system buffer cache
22607 like early versions of FreeBSD and possibly contemporary NetBSD.)
22608 For shared mappings, we should conversely verify that changes get
22609 propagated back to all the places they're supposed to be.
22610
22611 Grep wants private fixed already mapped.
22612 The main things grep needs to know about mmap are:
22613 * does it exist and is it safe to write into the mmap'd area
22614 * how to use it (BSD variants) */
22615
22616#include <fcntl.h>
22617#include <sys/mman.h>
22618
22619#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22620char *malloc ();
22621#endif
22622
22623/* This mess was copied from the GNU getpagesize.h. */
22624#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022625# ifdef _SC_PAGESIZE
22626# define getpagesize() sysconf(_SC_PAGESIZE)
22627# else /* no _SC_PAGESIZE */
22628# ifdef HAVE_SYS_PARAM_H
22629# include <sys/param.h>
22630# ifdef EXEC_PAGESIZE
22631# define getpagesize() EXEC_PAGESIZE
22632# else /* no EXEC_PAGESIZE */
22633# ifdef NBPG
22634# define getpagesize() NBPG * CLSIZE
22635# ifndef CLSIZE
22636# define CLSIZE 1
22637# endif /* no CLSIZE */
22638# else /* no NBPG */
22639# ifdef NBPC
22640# define getpagesize() NBPC
22641# else /* no NBPC */
22642# ifdef PAGESIZE
22643# define getpagesize() PAGESIZE
22644# endif /* PAGESIZE */
22645# endif /* no NBPC */
22646# endif /* no NBPG */
22647# endif /* no EXEC_PAGESIZE */
22648# else /* no HAVE_SYS_PARAM_H */
22649# define getpagesize() 8192 /* punt totally */
22650# endif /* no HAVE_SYS_PARAM_H */
22651# endif /* no _SC_PAGESIZE */
22652
22653#endif /* no HAVE_GETPAGESIZE */
22654
22655int
22656main ()
22657{
22658 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022659 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022660 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022661 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022662
22663 pagesize = getpagesize ();
22664
22665 /* First, make a file with some known garbage in it. */
22666 data = (char *) malloc (pagesize);
22667 if (!data)
22668 return 1;
22669 for (i = 0; i < pagesize; ++i)
22670 *(data + i) = rand ();
22671 umask (0);
22672 fd = creat ("conftest.mmap", 0600);
22673 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022674 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022675 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022676 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022677 close (fd);
22678
cristycd4c5312009-11-22 01:19:08 +000022679 /* Next, check that the tail of a page is zero-filled. File must have
22680 non-zero length, otherwise we risk SIGBUS for entire page. */
22681 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22682 if (fd2 < 0)
22683 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022684 cdata2 = "";
22685 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022686 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022687 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022688 if (data2 == MAP_FAILED)
22689 return 6;
22690 for (i = 0; i < pagesize; ++i)
22691 if (*(data2 + i))
22692 return 7;
22693 close (fd2);
22694 if (munmap (data2, pagesize))
22695 return 8;
22696
cristy3ed852e2009-09-05 21:47:34 +000022697 /* Next, try to mmap the file at a fixed address which already has
22698 something else allocated at it. If we can, also make sure that
22699 we see the same garbage. */
22700 fd = open ("conftest.mmap", O_RDWR);
22701 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022702 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022703 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22704 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022705 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022706 for (i = 0; i < pagesize; ++i)
22707 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022708 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022709
22710 /* Finally, make sure that changes to the mapped area do not
22711 percolate back to the file as seen by read(). (This is a bug on
22712 some variants of i386 svr4.0.) */
22713 for (i = 0; i < pagesize; ++i)
22714 *(data2 + i) = *(data2 + i) + 1;
22715 data3 = (char *) malloc (pagesize);
22716 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022717 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022718 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022719 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022720 for (i = 0; i < pagesize; ++i)
22721 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022722 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022723 close (fd);
22724 return 0;
22725}
22726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022727if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022728 ac_cv_func_mmap_fixed_mapped=yes
22729else
cristy8b350f62009-11-15 23:12:43 +000022730 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022731fi
cristy8b350f62009-11-15 23:12:43 +000022732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22733 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022734fi
22735
cristy3ed852e2009-09-05 21:47:34 +000022736fi
cristy8b350f62009-11-15 23:12:43 +000022737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022738$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22739if test $ac_cv_func_mmap_fixed_mapped = yes; then
22740
cristy8b350f62009-11-15 23:12:43 +000022741$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022742
22743fi
cristycd4c5312009-11-22 01:19:08 +000022744rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022745
cristy3ed852e2009-09-05 21:47:34 +000022746for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022747do :
22748 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22749if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022750 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022751#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022752_ACEOF
22753
22754fi
22755
22756done
22757
cristy3ed852e2009-09-05 21:47:34 +000022758for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022759do :
22760 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22761ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22762eval as_val=\$$as_ac_var
22763 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022764 cat >>confdefs.h <<_ACEOF
22765#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22766_ACEOF
22767
22768fi
22769done
22770
22771if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022773$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022774if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022775 $as_echo_n "(cached) " >&6
22776else
cristy8b350f62009-11-15 23:12:43 +000022777 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022778 ac_cv_func_fork_works=cross
22779else
cristy8b350f62009-11-15 23:12:43 +000022780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022781/* end confdefs.h. */
22782$ac_includes_default
22783int
22784main ()
22785{
22786
22787 /* By Ruediger Kuhlmann. */
22788 return fork () < 0;
22789
22790 ;
22791 return 0;
22792}
22793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022794if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022795 ac_cv_func_fork_works=yes
22796else
cristy8b350f62009-11-15 23:12:43 +000022797 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022798fi
cristy8b350f62009-11-15 23:12:43 +000022799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22800 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022801fi
22802
cristy3ed852e2009-09-05 21:47:34 +000022803fi
cristy8b350f62009-11-15 23:12:43 +000022804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022805$as_echo "$ac_cv_func_fork_works" >&6; }
22806
22807else
22808 ac_cv_func_fork_works=$ac_cv_func_fork
22809fi
22810if test "x$ac_cv_func_fork_works" = xcross; then
22811 case $host in
22812 *-*-amigaos* | *-*-msdosdjgpp*)
22813 # Override, as these systems have only a dummy fork() stub
22814 ac_cv_func_fork_works=no
22815 ;;
22816 *)
22817 ac_cv_func_fork_works=yes
22818 ;;
22819 esac
cristy8b350f62009-11-15 23:12:43 +000022820 { $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 +000022821$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22822fi
22823ac_cv_func_vfork_works=$ac_cv_func_vfork
22824if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022826$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022827if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022828 $as_echo_n "(cached) " >&6
22829else
cristy8b350f62009-11-15 23:12:43 +000022830 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022831 ac_cv_func_vfork_works=cross
22832else
cristy8b350f62009-11-15 23:12:43 +000022833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022834/* end confdefs.h. */
22835/* Thanks to Paul Eggert for this test. */
22836$ac_includes_default
22837#include <sys/wait.h>
22838#ifdef HAVE_VFORK_H
22839# include <vfork.h>
22840#endif
22841/* On some sparc systems, changes by the child to local and incoming
22842 argument registers are propagated back to the parent. The compiler
22843 is told about this with #include <vfork.h>, but some compilers
22844 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22845 static variable whose address is put into a register that is
22846 clobbered by the vfork. */
22847static void
22848#ifdef __cplusplus
22849sparc_address_test (int arg)
22850# else
22851sparc_address_test (arg) int arg;
22852#endif
22853{
22854 static pid_t child;
22855 if (!child) {
22856 child = vfork ();
22857 if (child < 0) {
22858 perror ("vfork");
22859 _exit(2);
22860 }
22861 if (!child) {
22862 arg = getpid();
22863 write(-1, "", 0);
22864 _exit (arg);
22865 }
22866 }
22867}
22868
22869int
22870main ()
22871{
22872 pid_t parent = getpid ();
22873 pid_t child;
22874
22875 sparc_address_test (0);
22876
22877 child = vfork ();
22878
22879 if (child == 0) {
22880 /* Here is another test for sparc vfork register problems. This
22881 test uses lots of local variables, at least as many local
22882 variables as main has allocated so far including compiler
22883 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22884 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22885 reuse the register of parent for one of the local variables,
22886 since it will think that parent can't possibly be used any more
22887 in this routine. Assigning to the local variable will thus
22888 munge parent in the parent process. */
22889 pid_t
22890 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22891 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22892 /* Convince the compiler that p..p7 are live; otherwise, it might
22893 use the same hardware register for all 8 local variables. */
22894 if (p != p1 || p != p2 || p != p3 || p != p4
22895 || p != p5 || p != p6 || p != p7)
22896 _exit(1);
22897
22898 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22899 from child file descriptors. If the child closes a descriptor
22900 before it execs or exits, this munges the parent's descriptor
22901 as well. Test for this by closing stdout in the child. */
22902 _exit(close(fileno(stdout)) != 0);
22903 } else {
22904 int status;
22905 struct stat st;
22906
22907 while (wait(&status) != child)
22908 ;
22909 return (
22910 /* Was there some problem with vforking? */
22911 child < 0
22912
22913 /* Did the child fail? (This shouldn't happen.) */
22914 || status
22915
22916 /* Did the vfork/compiler bug occur? */
22917 || parent != getpid()
22918
22919 /* Did the file descriptor bug occur? */
22920 || fstat(fileno(stdout), &st) != 0
22921 );
22922 }
22923}
22924_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022925if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022926 ac_cv_func_vfork_works=yes
22927else
cristy8b350f62009-11-15 23:12:43 +000022928 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022929fi
cristy8b350f62009-11-15 23:12:43 +000022930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22931 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022932fi
22933
cristy3ed852e2009-09-05 21:47:34 +000022934fi
cristy8b350f62009-11-15 23:12:43 +000022935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022936$as_echo "$ac_cv_func_vfork_works" >&6; }
22937
22938fi;
22939if test "x$ac_cv_func_fork_works" = xcross; then
22940 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022941 { $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 +000022942$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22943fi
22944
22945if test "x$ac_cv_func_vfork_works" = xyes; then
22946
cristy8b350f62009-11-15 23:12:43 +000022947$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022948
22949else
22950
cristy8b350f62009-11-15 23:12:43 +000022951$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022952
22953fi
22954if test "x$ac_cv_func_fork_works" = xyes; then
22955
cristy8b350f62009-11-15 23:12:43 +000022956$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022957
22958fi
22959
cristy8b350f62009-11-15 23:12:43 +000022960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022961$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022962if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022963 $as_echo_n "(cached) " >&6
22964else
cristy8b350f62009-11-15 23:12:43 +000022965 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022966 ac_cv_func_memcmp_working=no
22967else
cristy8b350f62009-11-15 23:12:43 +000022968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022969/* end confdefs.h. */
22970$ac_includes_default
22971int
22972main ()
22973{
22974
22975 /* Some versions of memcmp are not 8-bit clean. */
22976 char c0 = '\100', c1 = '\200', c2 = '\201';
22977 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22978 return 1;
22979
22980 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22981 or more and with at least one buffer not starting on a 4-byte boundary.
22982 William Lewis provided this test program. */
22983 {
22984 char foo[21];
22985 char bar[21];
22986 int i;
22987 for (i = 0; i < 4; i++)
22988 {
22989 char *a = foo + i;
22990 char *b = bar + i;
22991 strcpy (a, "--------01111111");
22992 strcpy (b, "--------10000000");
22993 if (memcmp (a, b, 16) >= 0)
22994 return 1;
22995 }
22996 return 0;
22997 }
22998
22999 ;
23000 return 0;
23001}
23002_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023003if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023004 ac_cv_func_memcmp_working=yes
23005else
cristy8b350f62009-11-15 23:12:43 +000023006 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023007fi
cristy8b350f62009-11-15 23:12:43 +000023008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23009 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023010fi
23011
cristy3ed852e2009-09-05 21:47:34 +000023012fi
cristy8b350f62009-11-15 23:12:43 +000023013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023014$as_echo "$ac_cv_func_memcmp_working" >&6; }
23015test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23016 *" memcmp.$ac_objext "* ) ;;
23017 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23018 ;;
23019esac
23020
23021
cristy3ed852e2009-09-05 21:47:34 +000023022for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023023do :
23024 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23025ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23026eval as_val=\$$as_ac_Header
23027 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023028 cat >>confdefs.h <<_ACEOF
23029#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23030_ACEOF
23031
23032fi
23033
23034done
23035
cristy8b350f62009-11-15 23:12:43 +000023036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023037$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023038if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023039 $as_echo_n "(cached) " >&6
23040else
23041 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23042 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23043 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023045/* end confdefs.h. */
23046$ac_includes_default
23047#ifdef HAVE_SYS_SELECT_H
23048# include <sys/select.h>
23049#endif
23050#ifdef HAVE_SYS_SOCKET_H
23051# include <sys/socket.h>
23052#endif
23053
23054int
23055main ()
23056{
23057extern int select ($ac_arg1,
23058 $ac_arg234, $ac_arg234, $ac_arg234,
23059 $ac_arg5);
23060 ;
23061 return 0;
23062}
23063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023064if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023065 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023066fi
cristy3ed852e2009-09-05 21:47:34 +000023067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23068 done
23069 done
23070done
23071# Provide a safe default value.
23072: ${ac_cv_func_select_args='int,int *,struct timeval *'}
23073
23074fi
cristy8b350f62009-11-15 23:12:43 +000023075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023076$as_echo "$ac_cv_func_select_args" >&6; }
23077ac_save_IFS=$IFS; IFS=','
23078set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23079IFS=$ac_save_IFS
23080shift
23081
23082cat >>confdefs.h <<_ACEOF
23083#define SELECT_TYPE_ARG1 $1
23084_ACEOF
23085
23086
23087cat >>confdefs.h <<_ACEOF
23088#define SELECT_TYPE_ARG234 ($2)
23089_ACEOF
23090
23091
23092cat >>confdefs.h <<_ACEOF
23093#define SELECT_TYPE_ARG5 ($3)
23094_ACEOF
23095
23096rm -f conftest*
23097
cristy8b350f62009-11-15 23:12:43 +000023098if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023099 $as_echo_n "(cached) " >&6
23100else
23101 ac_cv_func_setvbuf_reversed=no
23102fi
23103
23104
cristy8b350f62009-11-15 23:12:43 +000023105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023106$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023107if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023108 $as_echo_n "(cached) " >&6
23109else
cristy8b350f62009-11-15 23:12:43 +000023110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023111/* end confdefs.h. */
23112#include <sys/types.h>
23113#include <signal.h>
23114
23115int
23116main ()
23117{
23118return *(signal (0, 0)) (0) == 1;
23119 ;
23120 return 0;
23121}
23122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023123if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023124 ac_cv_type_signal=int
23125else
cristy8b350f62009-11-15 23:12:43 +000023126 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023127fi
cristy3ed852e2009-09-05 21:47:34 +000023128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23129fi
cristy8b350f62009-11-15 23:12:43 +000023130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023131$as_echo "$ac_cv_type_signal" >&6; }
23132
23133cat >>confdefs.h <<_ACEOF
23134#define RETSIGTYPE $ac_cv_type_signal
23135_ACEOF
23136
23137
cristy8b350f62009-11-15 23:12:43 +000023138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023139$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023140if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023141 $as_echo_n "(cached) " >&6
23142else
cristy8b350f62009-11-15 23:12:43 +000023143 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023144 ac_cv_func_strtod=no
23145else
cristy8b350f62009-11-15 23:12:43 +000023146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023147/* end confdefs.h. */
23148
23149$ac_includes_default
23150#ifndef strtod
23151double strtod ();
23152#endif
23153int
23154main()
23155{
23156 {
23157 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23158 char *string = " +69";
23159 char *term;
23160 double value;
23161 value = strtod (string, &term);
23162 if (value != 69 || term != (string + 4))
23163 return 1;
23164 }
23165
23166 {
23167 /* Under Solaris 2.4, strtod returns the wrong value for the
23168 terminating character under some conditions. */
23169 char *string = "NaN";
23170 char *term;
23171 strtod (string, &term);
23172 if (term != string && *(term - 1) == 0)
23173 return 1;
23174 }
23175 return 0;
23176}
23177
23178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023179if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023180 ac_cv_func_strtod=yes
23181else
cristy8b350f62009-11-15 23:12:43 +000023182 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023183fi
cristy8b350f62009-11-15 23:12:43 +000023184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23185 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023186fi
23187
cristy3ed852e2009-09-05 21:47:34 +000023188fi
cristy8b350f62009-11-15 23:12:43 +000023189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023190$as_echo "$ac_cv_func_strtod" >&6; }
23191if test $ac_cv_func_strtod = no; then
23192 case " $LIBOBJS " in
23193 *" strtod.$ac_objext "* ) ;;
23194 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23195 ;;
23196esac
23197
cristy8b350f62009-11-15 23:12:43 +000023198ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23199if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023200
cristy3ed852e2009-09-05 21:47:34 +000023201fi
23202
cristy3ed852e2009-09-05 21:47:34 +000023203if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023205$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023206if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023207 $as_echo_n "(cached) " >&6
23208else
23209 ac_check_lib_save_LIBS=$LIBS
23210LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023212/* end confdefs.h. */
23213
23214/* Override any GCC internal prototype to avoid an error.
23215 Use char because int might match the return type of a GCC
23216 builtin and then its argument prototype would still apply. */
23217#ifdef __cplusplus
23218extern "C"
23219#endif
23220char pow ();
23221int
23222main ()
23223{
23224return pow ();
23225 ;
23226 return 0;
23227}
23228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023229if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023230 ac_cv_lib_m_pow=yes
23231else
cristy8b350f62009-11-15 23:12:43 +000023232 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023233fi
cristy8b350f62009-11-15 23:12:43 +000023234rm -f core conftest.err conftest.$ac_objext \
23235 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023236LIBS=$ac_check_lib_save_LIBS
23237fi
cristy8b350f62009-11-15 23:12:43 +000023238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023239$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023240if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023241 POW_LIB=-lm
23242else
cristy8b350f62009-11-15 23:12:43 +000023243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023244$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23245fi
23246
23247fi
23248
23249fi
23250
cristy3ed852e2009-09-05 21:47:34 +000023251for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023252do :
23253 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23254if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023255 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023256#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023257_ACEOF
23258
cristy8b350f62009-11-15 23:12:43 +000023259ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23260if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023261
cristy8b350f62009-11-15 23:12:43 +000023262$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023263
23264fi
23265
23266fi
23267done
23268
23269
23270
cristy161b9262010-03-20 19:34:32 +000023271#
23272# Find math library
23273#
23274MATH_LIBS=''
23275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23276$as_echo_n "checking for sqrt in -lm... " >&6; }
23277if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23278 $as_echo_n "(cached) " >&6
23279else
23280 ac_check_lib_save_LIBS=$LIBS
23281LIBS="-lm $LIBS"
23282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23283/* end confdefs.h. */
23284
23285/* Override any GCC internal prototype to avoid an error.
23286 Use char because int might match the return type of a GCC
23287 builtin and then its argument prototype would still apply. */
23288#ifdef __cplusplus
23289extern "C"
23290#endif
23291char sqrt ();
23292int
23293main ()
23294{
23295return sqrt ();
23296 ;
23297 return 0;
23298}
23299_ACEOF
23300if ac_fn_c_try_link "$LINENO"; then :
23301 ac_cv_lib_m_sqrt=yes
23302else
23303 ac_cv_lib_m_sqrt=no
23304fi
23305rm -f core conftest.err conftest.$ac_objext \
23306 conftest$ac_exeext conftest.$ac_ext
23307LIBS=$ac_check_lib_save_LIBS
23308fi
23309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23310$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23311if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23312 MATH_LIBS="-lm"
23313fi
23314
23315LIBS="$MATH_LIBS $LIBS"
23316
23317
cristy56ed31c2010-03-22 00:46:21 +000023318for 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 +000023319do :
23320 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23321ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23322eval as_val=\$$as_ac_var
23323 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023324 cat >>confdefs.h <<_ACEOF
23325#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23326_ACEOF
23327
23328fi
23329done
23330
23331
cristye43a45e2009-09-28 14:49:00 +000023332#
23333# Check for clock_gettime().
23334#
cristy8b350f62009-11-15 23:12:43 +000023335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023336$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023337if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023338 $as_echo_n "(cached) " >&6
23339else
23340 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023342/* end confdefs.h. */
23343
23344/* Override any GCC internal prototype to avoid an error.
23345 Use char because int might match the return type of a GCC
23346 builtin and then its argument prototype would still apply. */
23347#ifdef __cplusplus
23348extern "C"
23349#endif
23350char clock_gettime ();
23351int
23352main ()
23353{
23354return clock_gettime ();
23355 ;
23356 return 0;
23357}
23358_ACEOF
23359for ac_lib in '' rt; do
23360 if test -z "$ac_lib"; then
23361 ac_res="none required"
23362 else
23363 ac_res=-l$ac_lib
23364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23365 fi
cristy8b350f62009-11-15 23:12:43 +000023366 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023367 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023368fi
cristy8b350f62009-11-15 23:12:43 +000023369rm -f core conftest.err conftest.$ac_objext \
23370 conftest$ac_exeext
23371 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023372 break
23373fi
23374done
cristy8b350f62009-11-15 23:12:43 +000023375if test "${ac_cv_search_clock_gettime+set}" = set; then :
23376
cristye43a45e2009-09-28 14:49:00 +000023377else
23378 ac_cv_search_clock_gettime=no
23379fi
23380rm conftest.$ac_ext
23381LIBS=$ac_func_search_save_LIBS
23382fi
cristy8b350f62009-11-15 23:12:43 +000023383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023384$as_echo "$ac_cv_search_clock_gettime" >&6; }
23385ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023386if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23388
23389
cristy8b350f62009-11-15 23:12:43 +000023390$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023391
cristy8b350f62009-11-15 23:12:43 +000023392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023393$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023395/* end confdefs.h. */
23396#include <time.h>
23397int
23398main ()
23399{
23400clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023401 ;
23402 return 0;
23403}
23404_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023405if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023406
cristy8b350f62009-11-15 23:12:43 +000023407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023408$as_echo "yes" >&6; }
23409
cristy8b350f62009-11-15 23:12:43 +000023410$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023411
23412
23413else
cristy8b350f62009-11-15 23:12:43 +000023414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023415$as_echo "no" >&6; }
23416
23417fi
cristye43a45e2009-09-28 14:49:00 +000023418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419
23420else
23421
cristy8b350f62009-11-15 23:12:43 +000023422 for ac_func in gettimeofday ftime
23423do :
23424 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23425ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23426eval as_val=\$$as_ac_var
23427 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000023428 cat >>confdefs.h <<_ACEOF
23429#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23430_ACEOF
23431 break
23432fi
23433done
23434
23435
23436
23437fi
23438
23439
cristy3ed852e2009-09-05 21:47:34 +000023440########
23441#
23442# Check for function prototypes
23443#
23444########
23445
cristy8b350f62009-11-15 23:12:43 +000023446ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023447#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023448"
23449if test "x$ac_cv_have_decl_pread" = x""yes; then :
23450 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023451else
cristy8b350f62009-11-15 23:12:43 +000023452 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023453fi
23454
cristy3ed852e2009-09-05 21:47:34 +000023455cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023456#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023458ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023459#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023460"
23461if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23462 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023463else
cristy8b350f62009-11-15 23:12:43 +000023464 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023465fi
23466
cristy3ed852e2009-09-05 21:47:34 +000023467cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023468#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023469_ACEOF
23470
23471
cristy8b350f62009-11-15 23:12:43 +000023472ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023473#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023474"
23475if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23476 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023477else
cristy8b350f62009-11-15 23:12:43 +000023478 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023479fi
23480
cristy3ed852e2009-09-05 21:47:34 +000023481cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023482#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023483_ACEOF
23484
23485
cristy8b350f62009-11-15 23:12:43 +000023486ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023487#include <stdio.h>
23488#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023489"
23490if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23491 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023492else
cristy8b350f62009-11-15 23:12:43 +000023493 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023494fi
23495
cristy3ed852e2009-09-05 21:47:34 +000023496cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023497#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023498_ACEOF
23499
23500
cristy3ed852e2009-09-05 21:47:34 +000023501########
23502#
23503# C++ Support Tests (For Magick++)
23504#
23505########
23506have_magick_plus_plus='no'
23507if test "$with_magick_plus_plus" = 'yes'; then
23508 OLIBS="$LIBS"
23509 LIBS=''
23510 ac_ext=cpp
23511ac_cpp='$CXXCPP $CPPFLAGS'
23512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23515
23516
23517 # Full set of headers used...
23518 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23519 # functional iomanip iosfwd iostream iterator list string strstream utility
23520 ac_ext=cpp
23521ac_cpp='$CXXCPP $CPPFLAGS'
23522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23525
23526 ac_ext=cpp
23527ac_cpp='$CXXCPP $CPPFLAGS'
23528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23531if test -z "$CXX"; then
23532 if test -n "$CCC"; then
23533 CXX=$CCC
23534 else
23535 if test -n "$ac_tool_prefix"; then
23536 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23537 do
23538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23539set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023541$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023542if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023543 $as_echo_n "(cached) " >&6
23544else
23545 if test -n "$CXX"; then
23546 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23547else
23548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23549for as_dir in $PATH
23550do
23551 IFS=$as_save_IFS
23552 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023553 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23555 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023557 break 2
23558 fi
23559done
cristy8b350f62009-11-15 23:12:43 +000023560 done
cristy3ed852e2009-09-05 21:47:34 +000023561IFS=$as_save_IFS
23562
23563fi
23564fi
23565CXX=$ac_cv_prog_CXX
23566if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023568$as_echo "$CXX" >&6; }
23569else
cristy8b350f62009-11-15 23:12:43 +000023570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023571$as_echo "no" >&6; }
23572fi
23573
23574
23575 test -n "$CXX" && break
23576 done
23577fi
23578if test -z "$CXX"; then
23579 ac_ct_CXX=$CXX
23580 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23581do
23582 # Extract the first word of "$ac_prog", so it can be a program name with args.
23583set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023585$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023586if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023587 $as_echo_n "(cached) " >&6
23588else
23589 if test -n "$ac_ct_CXX"; then
23590 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23591else
23592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23593for as_dir in $PATH
23594do
23595 IFS=$as_save_IFS
23596 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023597 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23599 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023601 break 2
23602 fi
23603done
cristy8b350f62009-11-15 23:12:43 +000023604 done
cristy3ed852e2009-09-05 21:47:34 +000023605IFS=$as_save_IFS
23606
23607fi
23608fi
23609ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23610if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023612$as_echo "$ac_ct_CXX" >&6; }
23613else
cristy8b350f62009-11-15 23:12:43 +000023614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023615$as_echo "no" >&6; }
23616fi
23617
23618
23619 test -n "$ac_ct_CXX" && break
23620done
23621
23622 if test "x$ac_ct_CXX" = x; then
23623 CXX="g++"
23624 else
23625 case $cross_compiling:$ac_tool_warned in
23626yes:)
cristy8b350f62009-11-15 23:12:43 +000023627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23629ac_tool_warned=yes ;;
23630esac
23631 CXX=$ac_ct_CXX
23632 fi
23633fi
23634
23635 fi
23636fi
23637# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023638$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023639set X $ac_compile
23640ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023641for ac_option in --version -v -V -qversion; do
23642 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023643case "(($ac_try" in
23644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23645 *) ac_try_echo=$ac_try;;
23646esac
cristy8b350f62009-11-15 23:12:43 +000023647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23648$as_echo "$ac_try_echo"; } >&5
23649 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023650 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023651 if test -s conftest.err; then
23652 sed '10a\
23653... rest of stderr output deleted ...
23654 10q' conftest.err >conftest.er1
23655 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023656 fi
cristycd4c5312009-11-22 01:19:08 +000023657 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23659 test $ac_status = 0; }
23660done
cristy3ed852e2009-09-05 21:47:34 +000023661
cristy8b350f62009-11-15 23:12:43 +000023662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023663$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023664if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023665 $as_echo_n "(cached) " >&6
23666else
cristy8b350f62009-11-15 23:12:43 +000023667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023668/* end confdefs.h. */
23669
23670int
23671main ()
23672{
23673#ifndef __GNUC__
23674 choke me
23675#endif
23676
23677 ;
23678 return 0;
23679}
23680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023681if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023682 ac_compiler_gnu=yes
23683else
cristy8b350f62009-11-15 23:12:43 +000023684 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023685fi
cristy3ed852e2009-09-05 21:47:34 +000023686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23687ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23688
23689fi
cristy8b350f62009-11-15 23:12:43 +000023690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023691$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23692if test $ac_compiler_gnu = yes; then
23693 GXX=yes
23694else
23695 GXX=
23696fi
23697ac_test_CXXFLAGS=${CXXFLAGS+set}
23698ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023700$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023701if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023702 $as_echo_n "(cached) " >&6
23703else
23704 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23705 ac_cxx_werror_flag=yes
23706 ac_cv_prog_cxx_g=no
23707 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023709/* end confdefs.h. */
23710
23711int
23712main ()
23713{
23714
23715 ;
23716 return 0;
23717}
23718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023719if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023720 ac_cv_prog_cxx_g=yes
23721else
cristy8b350f62009-11-15 23:12:43 +000023722 CXXFLAGS=""
23723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023724/* end confdefs.h. */
23725
23726int
23727main ()
23728{
23729
23730 ;
23731 return 0;
23732}
23733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023734if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023735
cristy8b350f62009-11-15 23:12:43 +000023736else
23737 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023738 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023740/* end confdefs.h. */
23741
23742int
23743main ()
23744{
23745
23746 ;
23747 return 0;
23748}
23749_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023750if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023751 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023752fi
cristy3ed852e2009-09-05 21:47:34 +000023753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23754fi
cristy3ed852e2009-09-05 21:47:34 +000023755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23756fi
cristy3ed852e2009-09-05 21:47:34 +000023757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23758 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23759fi
cristy8b350f62009-11-15 23:12:43 +000023760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023761$as_echo "$ac_cv_prog_cxx_g" >&6; }
23762if test "$ac_test_CXXFLAGS" = set; then
23763 CXXFLAGS=$ac_save_CXXFLAGS
23764elif test $ac_cv_prog_cxx_g = yes; then
23765 if test "$GXX" = yes; then
23766 CXXFLAGS="-g -O2"
23767 else
23768 CXXFLAGS="-g"
23769 fi
23770else
23771 if test "$GXX" = yes; then
23772 CXXFLAGS="-O2"
23773 else
23774 CXXFLAGS=
23775 fi
23776fi
23777ac_ext=cpp
23778ac_cpp='$CXXCPP $CPPFLAGS'
23779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23782
23783depcc="$CXX" am_compiler_list=
23784
cristy8b350f62009-11-15 23:12:43 +000023785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023786$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023787if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023788 $as_echo_n "(cached) " >&6
23789else
23790 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23791 # We make a subdir and do the tests there. Otherwise we can end up
23792 # making bogus files that we don't know about and never remove. For
23793 # instance it was reported that on HP-UX the gcc test will end up
23794 # making a dummy file named `D' -- because `-MD' means `put the output
23795 # in D'.
23796 mkdir conftest.dir
23797 # Copy depcomp to subdir because otherwise we won't find it if we're
23798 # using a relative directory.
23799 cp "$am_depcomp" conftest.dir
23800 cd conftest.dir
23801 # We will build objects and dependencies in a subdirectory because
23802 # it helps to detect inapplicable dependency modes. For instance
23803 # both Tru64's cc and ICC support -MD to output dependencies as a
23804 # side effect of compilation, but ICC will put the dependencies in
23805 # the current directory while Tru64 will put them in the object
23806 # directory.
23807 mkdir sub
23808
23809 am_cv_CXX_dependencies_compiler_type=none
23810 if test "$am_compiler_list" = ""; then
23811 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23812 fi
23813 am__universal=false
23814 case " $depcc " in #(
23815 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23816 esac
23817
23818 for depmode in $am_compiler_list; do
23819 # Setup a source with many dependencies, because some compilers
23820 # like to wrap large dependency lists on column 80 (with \), and
23821 # we should not choose a depcomp mode which is confused by this.
23822 #
23823 # We need to recreate these files for each test, as the compiler may
23824 # overwrite some of them when testing with obscure command lines.
23825 # This happens at least with the AIX C compiler.
23826 : > sub/conftest.c
23827 for i in 1 2 3 4 5 6; do
23828 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23829 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23830 # Solaris 8's {/usr,}/bin/sh.
23831 touch sub/conftst$i.h
23832 done
23833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23834
23835 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23836 # mode. It turns out that the SunPro C++ compiler does not properly
23837 # handle `-M -o', and we need to detect this. Also, some Intel
23838 # versions had trouble with output in subdirs
23839 am__obj=sub/conftest.${OBJEXT-o}
23840 am__minus_obj="-o $am__obj"
23841 case $depmode in
23842 gcc)
23843 # This depmode causes a compiler race in universal mode.
23844 test "$am__universal" = false || continue
23845 ;;
23846 nosideeffect)
23847 # after this tag, mechanisms are not by side-effect, so they'll
23848 # only be used when explicitly requested
23849 if test "x$enable_dependency_tracking" = xyes; then
23850 continue
23851 else
23852 break
23853 fi
23854 ;;
23855 msvisualcpp | msvcmsys)
23856 # This compiler won't grok `-c -o', but also, the minuso test has
23857 # not run yet. These depmodes are late enough in the game, and
23858 # so weak that their functioning should not be impacted.
23859 am__obj=conftest.${OBJEXT-o}
23860 am__minus_obj=
23861 ;;
23862 none) break ;;
23863 esac
23864 if depmode=$depmode \
23865 source=sub/conftest.c object=$am__obj \
23866 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23867 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23868 >/dev/null 2>conftest.err &&
23869 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23870 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23871 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23872 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23873 # icc doesn't choke on unknown options, it will just issue warnings
23874 # or remarks (even with -Werror). So we grep stderr for any message
23875 # that says an option was ignored or not supported.
23876 # When given -MP, icc 7.0 and 7.1 complain thusly:
23877 # icc: Command line warning: ignoring option '-M'; no argument required
23878 # The diagnosis changed in icc 8.0:
23879 # icc: Command line remark: option '-MP' not supported
23880 if (grep 'ignoring option' conftest.err ||
23881 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23882 am_cv_CXX_dependencies_compiler_type=$depmode
23883 break
23884 fi
23885 fi
23886 done
23887
23888 cd ..
23889 rm -rf conftest.dir
23890else
23891 am_cv_CXX_dependencies_compiler_type=none
23892fi
23893
23894fi
cristy8b350f62009-11-15 23:12:43 +000023895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023896$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23897CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23898
23899 if
23900 test "x$enable_dependency_tracking" != xno \
23901 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23902 am__fastdepCXX_TRUE=
23903 am__fastdepCXX_FALSE='#'
23904else
23905 am__fastdepCXX_TRUE='#'
23906 am__fastdepCXX_FALSE=
23907fi
23908
23909
cristy8b350f62009-11-15 23:12:43 +000023910 { $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 +000023911$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023912if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023913 $as_echo_n "(cached) " >&6
23914else
23915
23916 ac_ext=cpp
23917ac_cpp='$CXXCPP $CPPFLAGS'
23918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23921
cristy8b350f62009-11-15 23:12:43 +000023922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023923/* end confdefs.h. */
23924
23925int f(int x){return 1;}
23926int f(char x){return 1;}
23927int f(bool x){return 1;}
23928
23929int
23930main ()
23931{
23932bool b = true; return f(b);
23933 ;
23934 return 0;
23935}
23936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023937if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023938 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023939else
cristy964cb7f2010-04-25 23:18:00 +000023940 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023941fi
cristy3ed852e2009-09-05 21:47:34 +000023942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23943 ac_ext=cpp
23944ac_cpp='$CXXCPP $CPPFLAGS'
23945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23948
23949
23950fi
cristy964cb7f2010-04-25 23:18:00 +000023951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23952$as_echo "$ax_cv_cxx_bool" >&6; }
23953if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023954
cristy8b350f62009-11-15 23:12:43 +000023955$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023956
23957fi
23958
cristy8b350f62009-11-15 23:12:43 +000023959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023960$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023961if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023962 $as_echo_n "(cached) " >&6
23963else
23964
23965 ac_ext=cpp
23966ac_cpp='$CXXCPP $CPPFLAGS'
23967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23970
cristy8b350f62009-11-15 23:12:43 +000023971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023972/* end confdefs.h. */
23973namespace Outer { namespace Inner { int i = 0; }}
23974int
23975main ()
23976{
23977using namespace Outer::Inner; return i;
23978 ;
23979 return 0;
23980}
23981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023982if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023983 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023984else
cristy964cb7f2010-04-25 23:18:00 +000023985 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023986fi
cristy3ed852e2009-09-05 21:47:34 +000023987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23988 ac_ext=cpp
23989ac_cpp='$CXXCPP $CPPFLAGS'
23990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23993
23994
23995fi
cristy964cb7f2010-04-25 23:18:00 +000023996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23997$as_echo "$ax_cv_cxx_namespaces" >&6; }
23998if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023999
cristy8b350f62009-11-15 23:12:43 +000024000$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024001
24002fi
24003
cristy964cb7f2010-04-25 23:18:00 +000024004
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24006$as_echo_n "checking if g++ supports namespace std... " >&6; }
24007if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024008 $as_echo_n "(cached) " >&6
24009else
24010
cristy964cb7f2010-04-25 23:18:00 +000024011 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000024012ac_cpp='$CXXCPP $CPPFLAGS'
24013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24016
cristy964cb7f2010-04-25 23:18:00 +000024017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024018/* end confdefs.h. */
24019#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000024020 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000024021int
24022main ()
24023{
cristy964cb7f2010-04-25 23:18:00 +000024024
cristy3ed852e2009-09-05 21:47:34 +000024025 ;
24026 return 0;
24027}
24028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024029if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000024030 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000024031else
cristy964cb7f2010-04-25 23:18:00 +000024032 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000024033fi
cristy3ed852e2009-09-05 21:47:34 +000024034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000024035 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000024036ac_cpp='$CXXCPP $CPPFLAGS'
24037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24040
24041
24042fi
cristy964cb7f2010-04-25 23:18:00 +000024043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24044$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24045 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000024046
cristy964cb7f2010-04-25 23:18:00 +000024047$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024048
cristy964cb7f2010-04-25 23:18:00 +000024049 fi
cristy3ed852e2009-09-05 21:47:34 +000024050
cristy8b350f62009-11-15 23:12:43 +000024051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000024052$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024053if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024054 $as_echo_n "(cached) " >&6
24055else
24056
24057
24058 ac_ext=cpp
24059ac_cpp='$CXXCPP $CPPFLAGS'
24060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24063
cristy8b350f62009-11-15 23:12:43 +000024064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024065/* end confdefs.h. */
24066#include <iostream>
24067#include <map>
24068#include <iomanip>
24069#include <cmath>
24070#ifdef HAVE_NAMESPACES
24071using namespace std;
24072#endif
24073int
24074main ()
24075{
24076return 0;
24077 ;
24078 return 0;
24079}
24080_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024081if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024082 ac_cv_cxx_have_std_libs=yes
24083else
cristy8b350f62009-11-15 23:12:43 +000024084 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000024085fi
cristy3ed852e2009-09-05 21:47:34 +000024086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24087 ac_ext=cpp
24088ac_cpp='$CXXCPP $CPPFLAGS'
24089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24092
24093
24094fi
cristy8b350f62009-11-15 23:12:43 +000024095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000024096$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24097if test "$ac_cv_cxx_have_std_libs" = yes; then
24098
cristy8b350f62009-11-15 23:12:43 +000024099$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024100
24101fi
24102
cristy8b350f62009-11-15 23:12:43 +000024103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000024104$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024105if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024106 $as_echo_n "(cached) " >&6
24107else
24108
24109 ac_ext=cpp
24110ac_cpp='$CXXCPP $CPPFLAGS'
24111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24114
cristy8b350f62009-11-15 23:12:43 +000024115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024116/* end confdefs.h. */
24117const wchar_t* s=L"wide string";
24118_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024119if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024120 ac_cv_cxx_have_lstring=yes
24121else
cristy8b350f62009-11-15 23:12:43 +000024122 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000024123fi
cristy3ed852e2009-09-05 21:47:34 +000024124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24125 ac_ext=cpp
24126ac_cpp='$CXXCPP $CPPFLAGS'
24127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24130
24131
24132fi
cristy8b350f62009-11-15 23:12:43 +000024133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000024134$as_echo "$ac_cv_cxx_have_lstring" >&6; }
24135if test "$ac_cv_cxx_have_lstring" = yes; then
24136
cristy8b350f62009-11-15 23:12:43 +000024137$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024138
24139fi
24140
24141
24142 OPENMP_CXXFLAGS=
24143 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024144if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024145 enableval=$enable_openmp;
24146fi
24147
24148 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24150$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024151if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024152 $as_echo_n "(cached) " >&6
24153else
cristy8b350f62009-11-15 23:12:43 +000024154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24155/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024156
24157#ifndef _OPENMP
24158 choke me
24159#endif
24160#include <omp.h>
24161int main () { return omp_get_num_threads (); }
24162
24163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024164if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024165 ac_cv_prog_cxx_openmp='none needed'
24166else
cristy8b350f62009-11-15 23:12:43 +000024167 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024168 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24169 ac_save_CXXFLAGS=$CXXFLAGS
24170 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24172/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024173
24174#ifndef _OPENMP
24175 choke me
24176#endif
24177#include <omp.h>
24178int main () { return omp_get_num_threads (); }
24179
24180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024181if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024182 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024183fi
cristy8b350f62009-11-15 23:12:43 +000024184rm -f core conftest.err conftest.$ac_objext \
24185 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024186 CXXFLAGS=$ac_save_CXXFLAGS
24187 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24188 break
24189 fi
24190 done
24191fi
cristy8b350f62009-11-15 23:12:43 +000024192rm -f core conftest.err conftest.$ac_objext \
24193 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024194fi
cristy8b350f62009-11-15 23:12:43 +000024195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024196$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24197 case $ac_cv_prog_cxx_openmp in #(
24198 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024199 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024200 *)
cristy8b350f62009-11-15 23:12:43 +000024201 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024202 esac
24203 fi
24204
24205
24206 ac_ext=c
24207ac_cpp='$CPP $CPPFLAGS'
24208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24210ac_compiler_gnu=$ac_cv_c_compiler_gnu
24211
24212
cristy8b350f62009-11-15 23:12:43 +000024213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024214$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24215 if \
cristy964cb7f2010-04-25 23:18:00 +000024216 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024217 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024218 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024219 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024220 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024221 have_magick_plus_plus='yes'
24222 else
24223 have_magick_plus_plus='no (failed tests)'
24224 fi
cristy8b350f62009-11-15 23:12:43 +000024225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024226$as_echo "$have_magick_plus_plus" >&6; }
24227 LIBS="$OLIBS"
24228fi
24229 if test "$have_magick_plus_plus" = 'yes'; then
24230 WITH_MAGICK_PLUS_PLUS_TRUE=
24231 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24232else
24233 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24234 WITH_MAGICK_PLUS_PLUS_FALSE=
24235fi
24236
24237
24238# Only check for delegate libraries in subdirectories if requested.
24239if test "$enable_delegate_build" != 'no'; then
24240 # Check for delegate sub-directories and add -I & -L options as required.
24241 # This presumes that delegates are installed as detailed in the ImageMagick
24242 # README. If delegates are installed in a standard location where the
24243 # compiler will automatically find them then these options should not be
24244 # required.
24245
24246 #
24247 # Most delegates have includes in the same directory as the library, but not all...
24248 #
24249 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024250 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 +000024251 if test -d "$builddir/$dir"; then
24252 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24253 else
24254 if test -d "$srcdirfull/$dir"; then
24255 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24256 fi
24257 fi
24258 done
24259
24260 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024261 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 +000024262 if test -d "$builddir/$dir/.libs"; then
24263 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24264 else
24265 if test -d "$srcdirfull/$dir/.libs"; then
24266 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24267 fi
24268 fi
24269 if test -d "$builddir/$dir"; then
24270 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24271 else
24272 if test -d "$srcdirfull/$dir"; then
24273 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24274 fi
24275 fi
24276 done
24277fi
24278
24279# Assume that delegate headers reside under same directory as ImageMagick
24280# installation prefix.
24281MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24282
24283#
24284# Find the X11 RGB database
24285#
cristy8b350f62009-11-15 23:12:43 +000024286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024287$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024288if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024289 $as_echo_n "(cached) " >&6
24290else
24291 # Look for the header file in a standard set of common directories.
24292# Check X11 before X11Rn because it is often a symlink to the current release.
24293 for ac_dir in \
24294 /lib/usr/lib/X11 \
24295 /usr/X11/lib \
24296 /usr/X11R4/lib \
24297 /usr/X11R5/lib \
24298 /usr/X11R6/lib \
24299 /usr/X11R7/lib \
24300 /usr/X386/lib \
24301 /usr/XFree86/lib/X11 \
24302 /usr/athena/lib \
24303 /usr/lib \
24304 /usr/lib/X11 \
24305 /usr/lib/X11R4 \
24306 /usr/lib/X11R5 \
24307 /usr/lib/X11R6 \
24308 /usr/lib/X11R7 \
24309 /usr/local/X11/lib \
24310 /usr/local/X11R4/lib \
24311 /usr/local/X11R5/lib \
24312 /usr/local/X11R6/lib \
24313 /usr/local/lib \
24314 /usr/local/lib/X11 \
24315 /usr/local/lib/X11R4 \
24316 /usr/local/lib/X11R5 \
24317 /usr/local/lib/X11R6 \
24318 /usr/local/lib/X11R7 \
24319 /usr/local/x11r5/lib \
24320 /usr/lpp/Xamples/lib \
24321 /usr/openwin/lib \
24322 /usr/openwin/share/lib \
24323 /usr/unsupported/lib \
24324 /usr/x386/lib \
24325 ; do
24326 if test -f "$ac_dir/X11/rgb.txt"; then
24327 im_cv_x_configure="$ac_dir/X11/"
24328 break
24329 elif test -f "$ac_dir/rgb.txt"; then
24330 im_cv_x_configure="$ac_dir/"
24331 break
24332 fi
24333
24334 done
24335fi
cristy8b350f62009-11-15 23:12:43 +000024336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024337$as_echo "$im_cv_x_configure" >&6; }
24338X11_CONFIGURE_PATH="$im_cv_x_configure"
24339case "${build_os}" in
24340 mingw* )
24341 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24342 ;;
24343esac
24344
24345cat >>confdefs.h <<_ACEOF
24346#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24347_ACEOF
24348
24349
24350#
24351# Find OpenMP library
24352#
24353GOMP_LIBS=''
24354if test "$enable_openmp" != 'no'; then
24355 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024357$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024358if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024359 $as_echo_n "(cached) " >&6
24360else
24361 ac_check_lib_save_LIBS=$LIBS
24362LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024364/* end confdefs.h. */
24365
24366/* Override any GCC internal prototype to avoid an error.
24367 Use char because int might match the return type of a GCC
24368 builtin and then its argument prototype would still apply. */
24369#ifdef __cplusplus
24370extern "C"
24371#endif
24372char GOMP_parallel_start ();
24373int
24374main ()
24375{
24376return GOMP_parallel_start ();
24377 ;
24378 return 0;
24379}
24380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024381if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024382 ac_cv_lib_gomp_GOMP_parallel_start=yes
24383else
cristy8b350f62009-11-15 23:12:43 +000024384 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024385fi
cristy8b350f62009-11-15 23:12:43 +000024386rm -f core conftest.err conftest.$ac_objext \
24387 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024388LIBS=$ac_check_lib_save_LIBS
24389fi
cristy8b350f62009-11-15 23:12:43 +000024390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024391$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024392if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024393 GOMP_LIBS="-lgomp"
24394fi
24395 # gcc
24396 else
cristy8b350f62009-11-15 23:12:43 +000024397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024398$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024399if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024400 $as_echo_n "(cached) " >&6
24401else
24402 ac_check_lib_save_LIBS=$LIBS
24403LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024405/* end confdefs.h. */
24406
24407/* Override any GCC internal prototype to avoid an error.
24408 Use char because int might match the return type of a GCC
24409 builtin and then its argument prototype would still apply. */
24410#ifdef __cplusplus
24411extern "C"
24412#endif
24413char sunw_mp_register_warn ();
24414int
24415main ()
24416{
24417return sunw_mp_register_warn ();
24418 ;
24419 return 0;
24420}
24421_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024422if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024423 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24424else
cristy8b350f62009-11-15 23:12:43 +000024425 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024426fi
cristy8b350f62009-11-15 23:12:43 +000024427rm -f core conftest.err conftest.$ac_objext \
24428 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024429LIBS=$ac_check_lib_save_LIBS
24430fi
cristy8b350f62009-11-15 23:12:43 +000024431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024432$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024433if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024434 GOMP_LIBS="-lmtsk"
24435fi
24436 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024438$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024439if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024440 $as_echo_n "(cached) " >&6
24441else
24442 ac_check_lib_save_LIBS=$LIBS
24443LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024445/* end confdefs.h. */
24446
24447/* Override any GCC internal prototype to avoid an error.
24448 Use char because int might match the return type of a GCC
24449 builtin and then its argument prototype would still apply. */
24450#ifdef __cplusplus
24451extern "C"
24452#endif
24453char _xlsmpFlush ();
24454int
24455main ()
24456{
24457return _xlsmpFlush ();
24458 ;
24459 return 0;
24460}
24461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024462if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024463 ac_cv_lib_xlsmp__xlsmpFlush=yes
24464else
cristy8b350f62009-11-15 23:12:43 +000024465 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024466fi
cristy8b350f62009-11-15 23:12:43 +000024467rm -f core conftest.err conftest.$ac_objext \
24468 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024469LIBS=$ac_check_lib_save_LIBS
24470fi
cristy8b350f62009-11-15 23:12:43 +000024471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024472$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024473if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024474 GOMP_LIBS="-lxlsmp"
24475fi
24476 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024478$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024479if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024480 $as_echo_n "(cached) " >&6
24481else
24482 ac_check_lib_save_LIBS=$LIBS
24483LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024485/* end confdefs.h. */
24486
24487/* Override any GCC internal prototype to avoid an error.
24488 Use char because int might match the return type of a GCC
24489 builtin and then its argument prototype would still apply. */
24490#ifdef __cplusplus
24491extern "C"
24492#endif
24493char mp_destroy ();
24494int
24495main ()
24496{
24497return mp_destroy ();
24498 ;
24499 return 0;
24500}
24501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024502if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024503 ac_cv_lib_mp_mp_destroy=yes
24504else
cristy8b350f62009-11-15 23:12:43 +000024505 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024506fi
cristy8b350f62009-11-15 23:12:43 +000024507rm -f core conftest.err conftest.$ac_objext \
24508 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024509LIBS=$ac_check_lib_save_LIBS
24510fi
cristy8b350f62009-11-15 23:12:43 +000024511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024512$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024513if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024514 GOMP_LIBS="-lmp"
24515fi
24516 # SGI IRIX 6.5 MIPSpro C/C++
24517 fi
24518 LIBS="$GOMP_LIBS $LIBS"
24519fi
24520
24521
24522#
24523# Find Posix threads library
24524#
24525THREAD_LIBS=''
24526if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24527
24528 if test "x$PTHREAD_LIBS" = "x"; then
24529 case "${host_cpu}-${host_os}" in
24530 *-freebsd*)
24531
24532
24533
24534ac_ext=c
24535ac_cpp='$CPP $CPPFLAGS'
24536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24538ac_compiler_gnu=$ac_cv_c_compiler_gnu
24539
24540magick_pthread_lib_ok=no
24541
24542LIB=-lc_r
24543save_LIBS="$LIBS"
24544LIBS="$LIBS $LIB"
24545
cristy8b350f62009-11-15 23:12:43 +000024546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024547$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024549/* end confdefs.h. */
24550#include <pthread.h>
24551int
24552main ()
24553{
24554 pthread_t th;
24555 pthread_join(th, 0);
24556 pthread_attr_init(0);
24557 pthread_cleanup_push(0, 0);
24558 pthread_create(0,0,0,0);
24559 pthread_cleanup_pop(0);
24560 ;
24561 return 0;
24562}
24563_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024564if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024565 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024566fi
cristy8b350f62009-11-15 23:12:43 +000024567rm -f core conftest.err conftest.$ac_objext \
24568 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024569
cristy8b350f62009-11-15 23:12:43 +000024570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024571$as_echo "${magick_pthread_lib_ok}" >&6; }
24572if test "$magick_pthread_lib_ok" = yes
24573then
24574 PTHREAD_LIBS=-lc_r
24575 :
24576else
24577
24578 :
24579fi
24580
24581LIBS="$save_LIBS"
24582
24583ac_ext=c
24584ac_cpp='$CPP $CPPFLAGS'
24585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24587ac_compiler_gnu=$ac_cv_c_compiler_gnu
24588
24589 ;;
24590 esac
24591 fi
24592
24593 for lib in pthread pthreads; do
24594 if test "x$PTHREAD_LIBS" = "x"; then
24595
24596
24597
24598ac_ext=c
24599ac_cpp='$CPP $CPPFLAGS'
24600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24602ac_compiler_gnu=$ac_cv_c_compiler_gnu
24603
24604magick_pthread_lib_ok=no
24605
24606LIB=-l$lib
24607save_LIBS="$LIBS"
24608LIBS="$LIBS $LIB"
24609
cristy8b350f62009-11-15 23:12:43 +000024610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024611$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024613/* end confdefs.h. */
24614#include <pthread.h>
24615int
24616main ()
24617{
24618 pthread_t th;
24619 pthread_join(th, 0);
24620 pthread_attr_init(0);
24621 pthread_cleanup_push(0, 0);
24622 pthread_create(0,0,0,0);
24623 pthread_cleanup_pop(0);
24624 ;
24625 return 0;
24626}
24627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024628if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024629 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024630fi
cristy8b350f62009-11-15 23:12:43 +000024631rm -f core conftest.err conftest.$ac_objext \
24632 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024633
cristy8b350f62009-11-15 23:12:43 +000024634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024635$as_echo "${magick_pthread_lib_ok}" >&6; }
24636if test "$magick_pthread_lib_ok" = yes
24637then
24638 PTHREAD_LIBS=-l$lib
24639 :
24640else
24641
24642 :
24643fi
24644
24645LIBS="$save_LIBS"
24646
24647ac_ext=c
24648ac_cpp='$CPP $CPPFLAGS'
24649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24651ac_compiler_gnu=$ac_cv_c_compiler_gnu
24652
24653
24654 fi
24655 done
24656
24657 THREAD_LIBS="$PTHREAD_LIBS"
24658 LIBS="$LIBS $THREAD_LIBS"
24659fi
24660
24661
24662#
24663# Check for umem.
24664#
24665have_umem='no'
24666UMEM_LIBS=''
24667if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024669$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024671$as_echo "" >&6; }
24672 failed=0
24673 passed=0
cristy8b350f62009-11-15 23:12:43 +000024674 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24675if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024676 passed=`expr $passed + 1`
24677else
24678 failed=`expr $failed + 1`
24679fi
24680
24681
cristy8b350f62009-11-15 23:12:43 +000024682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024683$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024684if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024685 $as_echo_n "(cached) " >&6
24686else
24687 ac_check_lib_save_LIBS=$LIBS
24688LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024690/* end confdefs.h. */
24691
24692/* Override any GCC internal prototype to avoid an error.
24693 Use char because int might match the return type of a GCC
24694 builtin and then its argument prototype would still apply. */
24695#ifdef __cplusplus
24696extern "C"
24697#endif
24698char umem_alloc ();
24699int
24700main ()
24701{
24702return umem_alloc ();
24703 ;
24704 return 0;
24705}
24706_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024707if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024708 ac_cv_lib_umem_umem_alloc=yes
24709else
cristy8b350f62009-11-15 23:12:43 +000024710 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024711fi
cristy8b350f62009-11-15 23:12:43 +000024712rm -f core conftest.err conftest.$ac_objext \
24713 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024714LIBS=$ac_check_lib_save_LIBS
24715fi
cristy8b350f62009-11-15 23:12:43 +000024716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024717$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024718if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024719 passed=`expr $passed + 1`
24720else
24721 failed=`expr $failed + 1`
24722fi
24723
cristy8b350f62009-11-15 23:12:43 +000024724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024725$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024726if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024727 $as_echo_n "(cached) " >&6
24728else
24729 ac_check_lib_save_LIBS=$LIBS
24730LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024732/* end confdefs.h. */
24733
24734/* Override any GCC internal prototype to avoid an error.
24735 Use char because int might match the return type of a GCC
24736 builtin and then its argument prototype would still apply. */
24737#ifdef __cplusplus
24738extern "C"
24739#endif
24740char umem_free ();
24741int
24742main ()
24743{
24744return umem_free ();
24745 ;
24746 return 0;
24747}
24748_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024749if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024750 ac_cv_lib_umem_umem_free=yes
24751else
cristy8b350f62009-11-15 23:12:43 +000024752 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024753fi
cristy8b350f62009-11-15 23:12:43 +000024754rm -f core conftest.err conftest.$ac_objext \
24755 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024756LIBS=$ac_check_lib_save_LIBS
24757fi
cristy8b350f62009-11-15 23:12:43 +000024758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024759$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024760if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024761 passed=`expr $passed + 1`
24762else
24763 failed=`expr $failed + 1`
24764fi
24765
cristy8b350f62009-11-15 23:12:43 +000024766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024767$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24768 if test $passed -gt 0; then
24769 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024771$as_echo "no -- some components failed test" >&6; }
24772 have_umem='no (failed tests)'
24773 else
24774 UMEM_LIBS='-lumem'
24775 LIBS="$UMEM_LIBS $LIBS"
24776
cristy8b350f62009-11-15 23:12:43 +000024777$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024778
cristy8b350f62009-11-15 23:12:43 +000024779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024780$as_echo "yes" >&6; }
24781 have_umem='yes'
24782 fi
24783 else
cristy8b350f62009-11-15 23:12:43 +000024784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024785$as_echo "no" >&6; }
24786 fi
24787fi
24788 if test "$have_umem" = 'yes'; then
24789 HasUMEM_TRUE=
24790 HasUMEM_FALSE='#'
24791else
24792 HasUMEM_TRUE='#'
24793 HasUMEM_FALSE=
24794fi
24795
24796
24797
24798#
24799# Add support for ccmalloc memory debugging library if requested
24800#
24801have_ccmalloc='no'
24802CCMALLOC_LIBS=''
24803if test "$enable_ccmalloc" = 'yes'; then
24804 # Extract the first word of "ccmalloc", so it can be a program name with args.
24805set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024807$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024808if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024809 $as_echo_n "(cached) " >&6
24810else
24811 case $CCMALLOCDelegate in
24812 [\\/]* | ?:[\\/]*)
24813 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24814 ;;
24815 *)
24816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24817for as_dir in $PATH
24818do
24819 IFS=$as_save_IFS
24820 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24823 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024825 break 2
24826 fi
24827done
cristy8b350f62009-11-15 23:12:43 +000024828 done
cristy3ed852e2009-09-05 21:47:34 +000024829IFS=$as_save_IFS
24830
24831 ;;
24832esac
24833fi
24834CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24835if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024837$as_echo "$CCMALLOCDelegate" >&6; }
24838else
cristy8b350f62009-11-15 23:12:43 +000024839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024840$as_echo "no" >&6; }
24841fi
24842
24843
24844 if test -n "$CCMALLOCDelegate"; then
24845 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24846 OLIBS="$LIBS"
24847 # Assume that gcc is used with ccmalloc.
24848 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024850$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024851if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024852 $as_echo_n "(cached) " >&6
24853else
24854 ac_check_lib_save_LIBS=$LIBS
24855LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024857/* end confdefs.h. */
24858
24859/* Override any GCC internal prototype to avoid an error.
24860 Use char because int might match the return type of a GCC
24861 builtin and then its argument prototype would still apply. */
24862#ifdef __cplusplus
24863extern "C"
24864#endif
24865char ccmalloc_malloc ();
24866int
24867main ()
24868{
24869return ccmalloc_malloc ();
24870 ;
24871 return 0;
24872}
24873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024874if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024875 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24876else
cristy8b350f62009-11-15 23:12:43 +000024877 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024878fi
cristy8b350f62009-11-15 23:12:43 +000024879rm -f core conftest.err conftest.$ac_objext \
24880 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024881LIBS=$ac_check_lib_save_LIBS
24882fi
cristy8b350f62009-11-15 23:12:43 +000024883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024884$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024885if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024886 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24887fi
24888
24889 if test -n "$CCMALLOC_LIBS"; then
24890 LIBS="$OLIBS"
24891 LIBS="$LIBS $CCMALLOC_LIBS"
24892 have_ccmalloc='yes'
24893 else
24894 LIBS="$OLIBS"
24895 fi
24896 fi
24897fi
24898
24899#
24900# Add support for efence memory debugging library if requested
24901#
24902if test "$enable_efence" = 'yes'; then
24903 EFENCE_LIBS='-lefence'
24904 LIBS="$EFENCE_LIBS $LIBS"
24905fi
24906
cristy3ed852e2009-09-05 21:47:34 +000024907
24908#
24909# Check for BZLIB
24910#
24911
24912
24913# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024914if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024915 withval=$with_bzlib; with_bzlib=$withval
24916else
24917 with_bzlib='yes'
24918fi
24919
24920
24921if test "$with_bzlib" != 'yes'; then
24922 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24923fi
24924
24925have_bzlib='no'
24926if test "$with_bzlib" != 'no'; then
24927 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024929$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024931$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024933$as_echo "" >&6; }
24934 failed=0
24935 passed=0
24936 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024937 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24938if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024939 passed=`expr $passed + 1`
24940else
24941 failed=`expr $failed + 1`
24942fi
24943
24944
cristy8b350f62009-11-15 23:12:43 +000024945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024946$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024947if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024948 $as_echo_n "(cached) " >&6
24949else
24950 ac_check_lib_save_LIBS=$LIBS
24951LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024953/* end confdefs.h. */
24954
24955/* Override any GCC internal prototype to avoid an error.
24956 Use char because int might match the return type of a GCC
24957 builtin and then its argument prototype would still apply. */
24958#ifdef __cplusplus
24959extern "C"
24960#endif
24961char BZ2_bzDecompress ();
24962int
24963main ()
24964{
24965return BZ2_bzDecompress ();
24966 ;
24967 return 0;
24968}
24969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024970if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024971 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24972else
cristy8b350f62009-11-15 23:12:43 +000024973 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024974fi
cristy8b350f62009-11-15 23:12:43 +000024975rm -f core conftest.err conftest.$ac_objext \
24976 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024977LIBS=$ac_check_lib_save_LIBS
24978fi
cristy8b350f62009-11-15 23:12:43 +000024979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024980$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024981if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024982 found_libbz=`expr $found_libbz + 1`
24983fi
24984
24985 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024987$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024988if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024989 $as_echo_n "(cached) " >&6
24990else
24991 ac_check_lib_save_LIBS=$LIBS
24992LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024994/* end confdefs.h. */
24995
24996/* Override any GCC internal prototype to avoid an error.
24997 Use char because int might match the return type of a GCC
24998 builtin and then its argument prototype would still apply. */
24999#ifdef __cplusplus
25000extern "C"
25001#endif
25002char _imp__BZ2_decompress ();
25003int
25004main ()
25005{
25006return _imp__BZ2_decompress ();
25007 ;
25008 return 0;
25009}
25010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025011if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025012 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25013else
cristy8b350f62009-11-15 23:12:43 +000025014 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025015fi
cristy8b350f62009-11-15 23:12:43 +000025016rm -f core conftest.err conftest.$ac_objext \
25017 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025018LIBS=$ac_check_lib_save_LIBS
25019fi
cristy8b350f62009-11-15 23:12:43 +000025020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025021$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025022if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025023 found_libbz=`expr $found_libbz + 1`
25024fi
25025
25026 fi
25027 if test $found_libbz -gt 0; then
25028 passed=`expr $passed + 1`
25029 else
25030 failed=`expr $failed + 1`
25031 fi
cristy8b350f62009-11-15 23:12:43 +000025032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025033$as_echo_n "checking if BZLIB package is complete... " >&6; }
25034 if test $passed -gt 0; then
25035 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025037$as_echo "no -- some components failed test" >&6; }
25038 have_bzlib='no (failed tests)'
25039 else
25040 BZLIB_LIBS='-lbz2'
25041 LIBS="$BZLIB_LIBS $LIBS"
25042
cristy8b350f62009-11-15 23:12:43 +000025043$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025044
cristy8b350f62009-11-15 23:12:43 +000025045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025046$as_echo "yes" >&6; }
25047 have_bzlib='yes'
25048 fi
25049 else
cristy8b350f62009-11-15 23:12:43 +000025050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025051$as_echo "no" >&6; }
25052 fi
25053fi
25054 if test "$have_bzlib" = 'yes'; then
25055 BZLIB_DELEGATE_TRUE=
25056 BZLIB_DELEGATE_FALSE='#'
25057else
25058 BZLIB_DELEGATE_TRUE='#'
25059 BZLIB_DELEGATE_FALSE=
25060fi
25061
25062
25063
25064#
25065# Find the X11 include and library directories.
25066#
25067IPC_LIBS=''
25068X11_LIBS=''
25069XEXT_LIBS=''
25070XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025072$as_echo_n "checking for X... " >&6; }
25073
25074
25075# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025076if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025077 withval=$with_x;
25078fi
25079
25080# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25081if test "x$with_x" = xno; then
25082 # The user explicitly disabled X.
25083 have_x=disabled
25084else
25085 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000025086 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
25087 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025088 $as_echo_n "(cached) " >&6
25089else
25090 # One or both of the vars are not set, and there is no cached value.
25091ac_x_includes=no ac_x_libraries=no
25092rm -f -r conftest.dir
25093if mkdir conftest.dir; then
25094 cd conftest.dir
25095 cat >Imakefile <<'_ACEOF'
25096incroot:
25097 @echo incroot='${INCROOT}'
25098usrlibdir:
25099 @echo usrlibdir='${USRLIBDIR}'
25100libdir:
25101 @echo libdir='${LIBDIR}'
25102_ACEOF
25103 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25104 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25105 for ac_var in incroot usrlibdir libdir; do
25106 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25107 done
25108 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25109 for ac_extension in a so sl dylib la dll; do
25110 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25111 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25112 ac_im_usrlibdir=$ac_im_libdir; break
25113 fi
25114 done
25115 # Screen out bogus values from the imake configuration. They are
25116 # bogus both because they are the default anyway, and because
25117 # using them would break gcc on systems where it needs fixed includes.
25118 case $ac_im_incroot in
25119 /usr/include) ac_x_includes= ;;
25120 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25121 esac
25122 case $ac_im_usrlibdir in
25123 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25124 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25125 esac
25126 fi
25127 cd ..
25128 rm -f -r conftest.dir
25129fi
25130
25131# Standard set of common directories for X headers.
25132# Check X11 before X11Rn because it is often a symlink to the current release.
25133ac_x_header_dirs='
25134/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025135/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025136/usr/X11R6/include
25137/usr/X11R5/include
25138/usr/X11R4/include
25139
25140/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025141/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025142/usr/include/X11R6
25143/usr/include/X11R5
25144/usr/include/X11R4
25145
25146/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025147/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025148/usr/local/X11R6/include
25149/usr/local/X11R5/include
25150/usr/local/X11R4/include
25151
25152/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025153/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025154/usr/local/include/X11R6
25155/usr/local/include/X11R5
25156/usr/local/include/X11R4
25157
25158/usr/X386/include
25159/usr/x386/include
25160/usr/XFree86/include/X11
25161
25162/usr/include
25163/usr/local/include
25164/usr/unsupported/include
25165/usr/athena/include
25166/usr/local/x11r5/include
25167/usr/lpp/Xamples/include
25168
25169/usr/openwin/include
25170/usr/openwin/share/include'
25171
25172if test "$ac_x_includes" = no; then
25173 # Guess where to find include files, by looking for Xlib.h.
25174 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025176/* end confdefs.h. */
25177#include <X11/Xlib.h>
25178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025179if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025180 # We can compile using X headers with no special include directory.
25181ac_x_includes=
25182else
cristyc7083c12009-10-14 03:16:55 +000025183 for ac_dir in $ac_x_header_dirs; do
25184 if test -r "$ac_dir/X11/Xlib.h"; then
25185 ac_x_includes=$ac_dir
25186 break
25187 fi
25188done
25189fi
cristyc7083c12009-10-14 03:16:55 +000025190rm -f conftest.err conftest.$ac_ext
25191fi # $ac_x_includes = no
25192
25193if test "$ac_x_libraries" = no; then
25194 # Check for the libraries.
25195 # See if we find them without any special options.
25196 # Don't add to $LIBS permanently.
25197 ac_save_LIBS=$LIBS
25198 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025200/* end confdefs.h. */
25201#include <X11/Xlib.h>
25202int
25203main ()
25204{
25205XrmInitialize ()
25206 ;
25207 return 0;
25208}
25209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025210if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025211 LIBS=$ac_save_LIBS
25212# We can link X programs with no special library path.
25213ac_x_libraries=
25214else
cristy8b350f62009-11-15 23:12:43 +000025215 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025216for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25217do
25218 # Don't even attempt the hair of trying to link an X program!
25219 for ac_extension in a so sl dylib la dll; do
25220 if test -r "$ac_dir/libX11.$ac_extension"; then
25221 ac_x_libraries=$ac_dir
25222 break 2
25223 fi
25224 done
25225done
25226fi
cristy8b350f62009-11-15 23:12:43 +000025227rm -f core conftest.err conftest.$ac_objext \
25228 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025229fi # $ac_x_libraries = no
25230
25231case $ac_x_includes,$ac_x_libraries in #(
25232 no,* | *,no | *\'*)
25233 # Didn't find X, or a directory has "'" in its name.
25234 ac_cv_have_x="have_x=no";; #(
25235 *)
25236 # Record where we found X for the cache.
25237 ac_cv_have_x="have_x=yes\
25238 ac_x_includes='$ac_x_includes'\
25239 ac_x_libraries='$ac_x_libraries'"
25240esac
25241fi
25242;; #(
25243 *) have_x=yes;;
25244 esac
25245 eval "$ac_cv_have_x"
25246fi # $with_x != no
25247
25248if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025250$as_echo "$have_x" >&6; }
25251 no_x=yes
25252else
25253 # If each of the values was on the command line, it overrides each guess.
25254 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25255 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25256 # Update the cache value to reflect the command line values.
25257 ac_cv_have_x="have_x=yes\
25258 ac_x_includes='$x_includes'\
25259 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025261$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25262fi
25263
cristy3ed852e2009-09-05 21:47:34 +000025264if test "$no_x" = yes; then
25265 # Not all programs may use this symbol, but it does not hurt to define it.
25266
cristy8b350f62009-11-15 23:12:43 +000025267$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025268
25269 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25270else
25271 if test -n "$x_includes"; then
25272 X_CFLAGS="$X_CFLAGS -I$x_includes"
25273 fi
25274
25275 # It would also be nice to do this for all -L options, not just this one.
25276 if test -n "$x_libraries"; then
25277 X_LIBS="$X_LIBS -L$x_libraries"
25278 # For Solaris; some versions of Sun CC require a space after -R and
25279 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025281$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25282 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25283 ac_xsave_c_werror_flag=$ac_c_werror_flag
25284 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025286/* end confdefs.h. */
25287
25288int
25289main ()
25290{
25291
25292 ;
25293 return 0;
25294}
25295_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025296if ac_fn_c_try_link "$LINENO"; then :
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025298$as_echo "no" >&6; }
25299 X_LIBS="$X_LIBS -R$x_libraries"
25300else
cristy8b350f62009-11-15 23:12:43 +000025301 LIBS="$ac_xsave_LIBS -R $x_libraries"
25302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025303/* end confdefs.h. */
25304
25305int
25306main ()
25307{
25308
25309 ;
25310 return 0;
25311}
25312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025313if ac_fn_c_try_link "$LINENO"; then :
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025315$as_echo "yes" >&6; }
25316 X_LIBS="$X_LIBS -R $x_libraries"
25317else
cristy8b350f62009-11-15 23:12:43 +000025318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025319$as_echo "neither works" >&6; }
25320fi
cristy8b350f62009-11-15 23:12:43 +000025321rm -f core conftest.err conftest.$ac_objext \
25322 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025323fi
cristy8b350f62009-11-15 23:12:43 +000025324rm -f core conftest.err conftest.$ac_objext \
25325 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025326 ac_c_werror_flag=$ac_xsave_c_werror_flag
25327 LIBS=$ac_xsave_LIBS
25328 fi
25329
25330 # Check for system-dependent libraries X programs must link with.
25331 # Do this before checking for the system-independent R6 libraries
25332 # (-lICE), since we may need -lsocket or whatever for X linking.
25333
25334 if test "$ISC" = yes; then
25335 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25336 else
25337 # Martyn Johnson says this is needed for Ultrix, if the X
25338 # libraries were built with DECnet support. And Karl Berry says
25339 # the Alpha needs dnet_stub (dnet does not exist).
25340 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025342/* end confdefs.h. */
25343
25344/* Override any GCC internal prototype to avoid an error.
25345 Use char because int might match the return type of a GCC
25346 builtin and then its argument prototype would still apply. */
25347#ifdef __cplusplus
25348extern "C"
25349#endif
25350char XOpenDisplay ();
25351int
25352main ()
25353{
25354return XOpenDisplay ();
25355 ;
25356 return 0;
25357}
25358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025359if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025360
cristy8b350f62009-11-15 23:12:43 +000025361else
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025363$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025364if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025365 $as_echo_n "(cached) " >&6
25366else
25367 ac_check_lib_save_LIBS=$LIBS
25368LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025370/* end confdefs.h. */
25371
25372/* Override any GCC internal prototype to avoid an error.
25373 Use char because int might match the return type of a GCC
25374 builtin and then its argument prototype would still apply. */
25375#ifdef __cplusplus
25376extern "C"
25377#endif
25378char dnet_ntoa ();
25379int
25380main ()
25381{
25382return dnet_ntoa ();
25383 ;
25384 return 0;
25385}
25386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025387if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025388 ac_cv_lib_dnet_dnet_ntoa=yes
25389else
cristy8b350f62009-11-15 23:12:43 +000025390 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025391fi
cristy8b350f62009-11-15 23:12:43 +000025392rm -f core conftest.err conftest.$ac_objext \
25393 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025394LIBS=$ac_check_lib_save_LIBS
25395fi
cristy8b350f62009-11-15 23:12:43 +000025396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025397$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025398if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025399 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25400fi
25401
25402 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025404$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025405if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025406 $as_echo_n "(cached) " >&6
25407else
25408 ac_check_lib_save_LIBS=$LIBS
25409LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025411/* end confdefs.h. */
25412
25413/* Override any GCC internal prototype to avoid an error.
25414 Use char because int might match the return type of a GCC
25415 builtin and then its argument prototype would still apply. */
25416#ifdef __cplusplus
25417extern "C"
25418#endif
25419char dnet_ntoa ();
25420int
25421main ()
25422{
25423return dnet_ntoa ();
25424 ;
25425 return 0;
25426}
25427_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025428if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025429 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25430else
cristy8b350f62009-11-15 23:12:43 +000025431 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025432fi
cristy8b350f62009-11-15 23:12:43 +000025433rm -f core conftest.err conftest.$ac_objext \
25434 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025435LIBS=$ac_check_lib_save_LIBS
25436fi
cristy8b350f62009-11-15 23:12:43 +000025437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025438$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025439if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025440 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25441fi
25442
25443 fi
25444fi
cristy8b350f62009-11-15 23:12:43 +000025445rm -f core conftest.err conftest.$ac_objext \
25446 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025447 LIBS="$ac_xsave_LIBS"
25448
25449 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25450 # to get the SysV transport functions.
25451 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25452 # needs -lnsl.
25453 # The nsl library prevents programs from opening the X display
25454 # on Irix 5.2, according to T.E. Dickey.
25455 # The functions gethostbyname, getservbyname, and inet_addr are
25456 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025457 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25458if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025459
cristy3ed852e2009-09-05 21:47:34 +000025460fi
25461
cristy3ed852e2009-09-05 21:47:34 +000025462 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025464$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025465if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025466 $as_echo_n "(cached) " >&6
25467else
25468 ac_check_lib_save_LIBS=$LIBS
25469LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025471/* end confdefs.h. */
25472
25473/* Override any GCC internal prototype to avoid an error.
25474 Use char because int might match the return type of a GCC
25475 builtin and then its argument prototype would still apply. */
25476#ifdef __cplusplus
25477extern "C"
25478#endif
25479char gethostbyname ();
25480int
25481main ()
25482{
25483return gethostbyname ();
25484 ;
25485 return 0;
25486}
25487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025488if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025489 ac_cv_lib_nsl_gethostbyname=yes
25490else
cristy8b350f62009-11-15 23:12:43 +000025491 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025492fi
cristy8b350f62009-11-15 23:12:43 +000025493rm -f core conftest.err conftest.$ac_objext \
25494 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025495LIBS=$ac_check_lib_save_LIBS
25496fi
cristy8b350f62009-11-15 23:12:43 +000025497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025498$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025499if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025500 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25501fi
25502
25503 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025505$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025506if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025507 $as_echo_n "(cached) " >&6
25508else
25509 ac_check_lib_save_LIBS=$LIBS
25510LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025512/* end confdefs.h. */
25513
25514/* Override any GCC internal prototype to avoid an error.
25515 Use char because int might match the return type of a GCC
25516 builtin and then its argument prototype would still apply. */
25517#ifdef __cplusplus
25518extern "C"
25519#endif
25520char gethostbyname ();
25521int
25522main ()
25523{
25524return gethostbyname ();
25525 ;
25526 return 0;
25527}
25528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025529if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025530 ac_cv_lib_bsd_gethostbyname=yes
25531else
cristy8b350f62009-11-15 23:12:43 +000025532 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025533fi
cristy8b350f62009-11-15 23:12:43 +000025534rm -f core conftest.err conftest.$ac_objext \
25535 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025536LIBS=$ac_check_lib_save_LIBS
25537fi
cristy8b350f62009-11-15 23:12:43 +000025538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025539$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025540if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025541 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25542fi
25543
25544 fi
25545 fi
25546
25547 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25548 # socket/setsockopt and other routines are undefined under SCO ODT
25549 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25550 # on later versions), says Simon Leinen: it contains gethostby*
25551 # variants that don't use the name server (or something). -lsocket
25552 # must be given before -lnsl if both are needed. We assume that
25553 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025554 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25555if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025556
cristy3ed852e2009-09-05 21:47:34 +000025557fi
25558
cristy3ed852e2009-09-05 21:47:34 +000025559 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025561$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025562if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025563 $as_echo_n "(cached) " >&6
25564else
25565 ac_check_lib_save_LIBS=$LIBS
25566LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025568/* end confdefs.h. */
25569
25570/* Override any GCC internal prototype to avoid an error.
25571 Use char because int might match the return type of a GCC
25572 builtin and then its argument prototype would still apply. */
25573#ifdef __cplusplus
25574extern "C"
25575#endif
25576char connect ();
25577int
25578main ()
25579{
25580return connect ();
25581 ;
25582 return 0;
25583}
25584_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025585if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025586 ac_cv_lib_socket_connect=yes
25587else
cristy8b350f62009-11-15 23:12:43 +000025588 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025589fi
cristy8b350f62009-11-15 23:12:43 +000025590rm -f core conftest.err conftest.$ac_objext \
25591 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025592LIBS=$ac_check_lib_save_LIBS
25593fi
cristy8b350f62009-11-15 23:12:43 +000025594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025595$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025596if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025597 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25598fi
25599
25600 fi
25601
25602 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025603 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25604if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025605
cristy3ed852e2009-09-05 21:47:34 +000025606fi
25607
cristy3ed852e2009-09-05 21:47:34 +000025608 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025610$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025611if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025612 $as_echo_n "(cached) " >&6
25613else
25614 ac_check_lib_save_LIBS=$LIBS
25615LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025617/* end confdefs.h. */
25618
25619/* Override any GCC internal prototype to avoid an error.
25620 Use char because int might match the return type of a GCC
25621 builtin and then its argument prototype would still apply. */
25622#ifdef __cplusplus
25623extern "C"
25624#endif
25625char remove ();
25626int
25627main ()
25628{
25629return remove ();
25630 ;
25631 return 0;
25632}
25633_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025634if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025635 ac_cv_lib_posix_remove=yes
25636else
cristy8b350f62009-11-15 23:12:43 +000025637 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025638fi
cristy8b350f62009-11-15 23:12:43 +000025639rm -f core conftest.err conftest.$ac_objext \
25640 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025641LIBS=$ac_check_lib_save_LIBS
25642fi
cristy8b350f62009-11-15 23:12:43 +000025643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025644$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025645if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025646 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25647fi
25648
25649 fi
25650
25651 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025652 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25653if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025654
cristy3ed852e2009-09-05 21:47:34 +000025655fi
25656
cristy3ed852e2009-09-05 21:47:34 +000025657 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025659$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025660if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025661 $as_echo_n "(cached) " >&6
25662else
25663 ac_check_lib_save_LIBS=$LIBS
25664LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025666/* end confdefs.h. */
25667
25668/* Override any GCC internal prototype to avoid an error.
25669 Use char because int might match the return type of a GCC
25670 builtin and then its argument prototype would still apply. */
25671#ifdef __cplusplus
25672extern "C"
25673#endif
25674char shmat ();
25675int
25676main ()
25677{
25678return shmat ();
25679 ;
25680 return 0;
25681}
25682_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025683if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025684 ac_cv_lib_ipc_shmat=yes
25685else
cristy8b350f62009-11-15 23:12:43 +000025686 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025687fi
cristy8b350f62009-11-15 23:12:43 +000025688rm -f core conftest.err conftest.$ac_objext \
25689 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025690LIBS=$ac_check_lib_save_LIBS
25691fi
cristy8b350f62009-11-15 23:12:43 +000025692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025693$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025694if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025695 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25696fi
25697
25698 fi
25699 fi
25700
25701 # Check for libraries that X11R6 Xt/Xaw programs need.
25702 ac_save_LDFLAGS=$LDFLAGS
25703 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25704 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25705 # check for ICE first), but we must link in the order -lSM -lICE or
25706 # we get undefined symbols. So assume we have SM if we have ICE.
25707 # These have to be linked with before -lX11, unlike the other
25708 # libraries we check for below, so use a different variable.
25709 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025711$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025712if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025713 $as_echo_n "(cached) " >&6
25714else
25715 ac_check_lib_save_LIBS=$LIBS
25716LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025718/* end confdefs.h. */
25719
25720/* Override any GCC internal prototype to avoid an error.
25721 Use char because int might match the return type of a GCC
25722 builtin and then its argument prototype would still apply. */
25723#ifdef __cplusplus
25724extern "C"
25725#endif
25726char IceConnectionNumber ();
25727int
25728main ()
25729{
25730return IceConnectionNumber ();
25731 ;
25732 return 0;
25733}
25734_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025735if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025736 ac_cv_lib_ICE_IceConnectionNumber=yes
25737else
cristy8b350f62009-11-15 23:12:43 +000025738 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025739fi
cristy8b350f62009-11-15 23:12:43 +000025740rm -f core conftest.err conftest.$ac_objext \
25741 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025742LIBS=$ac_check_lib_save_LIBS
25743fi
cristy8b350f62009-11-15 23:12:43 +000025744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025745$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025746if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025747 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25748fi
25749
25750 LDFLAGS=$ac_save_LDFLAGS
25751
25752fi
25753
25754if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025756$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025758$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025760$as_echo "" >&6; }
25761 LDFLAGS="$LDFLAGS $X_LIBS"
25762 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25763 LIBS="$X11_LIBS $LIBS"
25764 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25765
25766
cristy8b350f62009-11-15 23:12:43 +000025767$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025768
25769 #
25770 # Check for X11 shared memory extension
25771 #
25772 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025773 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25774if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025775 have_shmctl='yes'
25776fi
25777
25778 if test "$have_shmctl" != 'yes'; then
25779 PERSIST_LIBS=$LIBS
25780 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025782/* end confdefs.h. */
25783
25784/* Override any GCC internal prototype to avoid an error.
25785 Use char because int might match the return type of a GCC
25786 builtin and then its argument prototype would still apply. */
25787#ifdef __cplusplus
25788extern "C"
25789#endif
25790char shmctl ();
25791int
25792main ()
25793{
25794return shmctl ();
25795 ;
25796 return 0;
25797}
25798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025799if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025800 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025801fi
cristy8b350f62009-11-15 23:12:43 +000025802rm -f core conftest.err conftest.$ac_objext \
25803 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025804 LIBS=$PERSIST_LIBS
25805 fi
25806
25807 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025809$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025810if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025811 $as_echo_n "(cached) " >&6
25812else
25813 ac_check_lib_save_LIBS=$LIBS
25814LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025816/* end confdefs.h. */
25817
25818/* Override any GCC internal prototype to avoid an error.
25819 Use char because int might match the return type of a GCC
25820 builtin and then its argument prototype would still apply. */
25821#ifdef __cplusplus
25822extern "C"
25823#endif
25824char XShmAttach ();
25825int
25826main ()
25827{
25828return XShmAttach ();
25829 ;
25830 return 0;
25831}
25832_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025833if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025834 ac_cv_lib_Xext_XShmAttach=yes
25835else
cristy8b350f62009-11-15 23:12:43 +000025836 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025837fi
cristy8b350f62009-11-15 23:12:43 +000025838rm -f core conftest.err conftest.$ac_objext \
25839 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025840LIBS=$ac_check_lib_save_LIBS
25841fi
cristy8b350f62009-11-15 23:12:43 +000025842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025843$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025844if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025845 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025846$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025847
25848fi
25849
25850 fi
25851
25852 #
25853 # Check for X11 shape extension
25854 #
cristy8b350f62009-11-15 23:12:43 +000025855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025856$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025857if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025858 $as_echo_n "(cached) " >&6
25859else
25860 ac_check_lib_save_LIBS=$LIBS
25861LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025863/* end confdefs.h. */
25864
25865/* Override any GCC internal prototype to avoid an error.
25866 Use char because int might match the return type of a GCC
25867 builtin and then its argument prototype would still apply. */
25868#ifdef __cplusplus
25869extern "C"
25870#endif
25871char XShapeCombineMask ();
25872int
25873main ()
25874{
25875return XShapeCombineMask ();
25876 ;
25877 return 0;
25878}
25879_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025880if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025881 ac_cv_lib_Xext_XShapeCombineMask=yes
25882else
cristy8b350f62009-11-15 23:12:43 +000025883 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025884fi
cristy8b350f62009-11-15 23:12:43 +000025885rm -f core conftest.err conftest.$ac_objext \
25886 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025887LIBS=$ac_check_lib_save_LIBS
25888fi
cristy8b350f62009-11-15 23:12:43 +000025889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025890$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025891if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025892 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025893$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025894
25895fi
25896
cristy8b350f62009-11-15 23:12:43 +000025897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025898$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025899if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025900 $as_echo_n "(cached) " >&6
25901else
25902 ac_check_lib_save_LIBS=$LIBS
25903LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025905/* end confdefs.h. */
25906
25907/* Override any GCC internal prototype to avoid an error.
25908 Use char because int might match the return type of a GCC
25909 builtin and then its argument prototype would still apply. */
25910#ifdef __cplusplus
25911extern "C"
25912#endif
25913char XtSetEventDispatcher ();
25914int
25915main ()
25916{
25917return XtSetEventDispatcher ();
25918 ;
25919 return 0;
25920}
25921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025922if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025923 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25924else
cristy8b350f62009-11-15 23:12:43 +000025925 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025926fi
cristy8b350f62009-11-15 23:12:43 +000025927rm -f core conftest.err conftest.$ac_objext \
25928 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025929LIBS=$ac_check_lib_save_LIBS
25930fi
cristy8b350f62009-11-15 23:12:43 +000025931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025932$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025933if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025934 XT_LIBS='-lXt'
25935fi
25936
25937 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25938fi
25939if test "$no_x" != 'yes'; then
25940 have_x='yes'
25941else
25942 have_x='no'
25943fi
25944 if test "$have_x" = 'yes'; then
25945 X11_DELEGATE_TRUE=
25946 X11_DELEGATE_FALSE='#'
25947else
25948 X11_DELEGATE_TRUE='#'
25949 X11_DELEGATE_FALSE=
25950fi
25951
25952
25953
25954
25955
25956#
25957# Check for ZLIB
25958#
25959
25960# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025961if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025962 withval=$with_zlib; with_zlib=$withval
25963else
25964 with_zlib='yes'
25965fi
25966
25967
25968if test "$with_zlib" != 'yes'; then
25969 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25970fi
25971
25972have_zlib='no'
25973ZLIB_LIBS=''
25974if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025976$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025978$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025980$as_echo "" >&6; }
25981 ZLIB_LIBS=''
25982 failed=0
25983 passed=0
cristy8b350f62009-11-15 23:12:43 +000025984 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25985if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025986 passed=`expr $passed + 1`
25987else
25988 failed=`expr $failed + 1`
25989fi
25990
25991
cristy8b350f62009-11-15 23:12:43 +000025992 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25993if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025994 passed=`expr $passed + 1`
25995else
25996 failed=`expr $failed + 1`
25997fi
25998
25999
cristy8b350f62009-11-15 23:12:43 +000026000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026001$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026002if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026003 $as_echo_n "(cached) " >&6
26004else
26005 ac_check_lib_save_LIBS=$LIBS
26006LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026008/* end confdefs.h. */
26009
26010/* Override any GCC internal prototype to avoid an error.
26011 Use char because int might match the return type of a GCC
26012 builtin and then its argument prototype would still apply. */
26013#ifdef __cplusplus
26014extern "C"
26015#endif
26016char compress ();
26017int
26018main ()
26019{
26020return compress ();
26021 ;
26022 return 0;
26023}
26024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026025if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026026 ac_cv_lib_z_compress=yes
26027else
cristy8b350f62009-11-15 23:12:43 +000026028 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000026029fi
cristy8b350f62009-11-15 23:12:43 +000026030rm -f core conftest.err conftest.$ac_objext \
26031 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026032LIBS=$ac_check_lib_save_LIBS
26033fi
cristy8b350f62009-11-15 23:12:43 +000026034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026035$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026036if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026037 passed=`expr $passed + 1`
26038else
26039 failed=`expr $failed + 1`
26040fi
26041
cristy8b350f62009-11-15 23:12:43 +000026042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026043$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026044if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026045 $as_echo_n "(cached) " >&6
26046else
26047 ac_check_lib_save_LIBS=$LIBS
26048LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026050/* end confdefs.h. */
26051
26052/* Override any GCC internal prototype to avoid an error.
26053 Use char because int might match the return type of a GCC
26054 builtin and then its argument prototype would still apply. */
26055#ifdef __cplusplus
26056extern "C"
26057#endif
26058char uncompress ();
26059int
26060main ()
26061{
26062return uncompress ();
26063 ;
26064 return 0;
26065}
26066_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026067if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026068 ac_cv_lib_z_uncompress=yes
26069else
cristy8b350f62009-11-15 23:12:43 +000026070 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026071fi
cristy8b350f62009-11-15 23:12:43 +000026072rm -f core conftest.err conftest.$ac_objext \
26073 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026074LIBS=$ac_check_lib_save_LIBS
26075fi
cristy8b350f62009-11-15 23:12:43 +000026076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026077$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026078if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026079 passed=`expr $passed + 1`
26080else
26081 failed=`expr $failed + 1`
26082fi
26083
cristy8b350f62009-11-15 23:12:43 +000026084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026085$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026086if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026087 $as_echo_n "(cached) " >&6
26088else
26089 ac_check_lib_save_LIBS=$LIBS
26090LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026092/* end confdefs.h. */
26093
26094/* Override any GCC internal prototype to avoid an error.
26095 Use char because int might match the return type of a GCC
26096 builtin and then its argument prototype would still apply. */
26097#ifdef __cplusplus
26098extern "C"
26099#endif
26100char deflate ();
26101int
26102main ()
26103{
26104return deflate ();
26105 ;
26106 return 0;
26107}
26108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026109if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026110 ac_cv_lib_z_deflate=yes
26111else
cristy8b350f62009-11-15 23:12:43 +000026112 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026113fi
cristy8b350f62009-11-15 23:12:43 +000026114rm -f core conftest.err conftest.$ac_objext \
26115 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026116LIBS=$ac_check_lib_save_LIBS
26117fi
cristy8b350f62009-11-15 23:12:43 +000026118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026119$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026120if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026121 passed=`expr $passed + 1`
26122else
26123 failed=`expr $failed + 1`
26124fi
26125
cristy8b350f62009-11-15 23:12:43 +000026126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026127$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026128if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026129 $as_echo_n "(cached) " >&6
26130else
26131 ac_check_lib_save_LIBS=$LIBS
26132LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026134/* end confdefs.h. */
26135
26136/* Override any GCC internal prototype to avoid an error.
26137 Use char because int might match the return type of a GCC
26138 builtin and then its argument prototype would still apply. */
26139#ifdef __cplusplus
26140extern "C"
26141#endif
26142char inflate ();
26143int
26144main ()
26145{
26146return inflate ();
26147 ;
26148 return 0;
26149}
26150_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026151if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026152 ac_cv_lib_z_inflate=yes
26153else
cristy8b350f62009-11-15 23:12:43 +000026154 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026155fi
cristy8b350f62009-11-15 23:12:43 +000026156rm -f core conftest.err conftest.$ac_objext \
26157 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026158LIBS=$ac_check_lib_save_LIBS
26159fi
cristy8b350f62009-11-15 23:12:43 +000026160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026161$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026162if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026163 passed=`expr $passed + 1`
26164else
26165 failed=`expr $failed + 1`
26166fi
26167
cristy8b350f62009-11-15 23:12:43 +000026168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026169$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026170if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026171 $as_echo_n "(cached) " >&6
26172else
26173 ac_check_lib_save_LIBS=$LIBS
26174LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026176/* end confdefs.h. */
26177
26178/* Override any GCC internal prototype to avoid an error.
26179 Use char because int might match the return type of a GCC
26180 builtin and then its argument prototype would still apply. */
26181#ifdef __cplusplus
26182extern "C"
26183#endif
26184char gzseek ();
26185int
26186main ()
26187{
26188return gzseek ();
26189 ;
26190 return 0;
26191}
26192_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026193if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026194 ac_cv_lib_z_gzseek=yes
26195else
cristy8b350f62009-11-15 23:12:43 +000026196 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026197fi
cristy8b350f62009-11-15 23:12:43 +000026198rm -f core conftest.err conftest.$ac_objext \
26199 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026200LIBS=$ac_check_lib_save_LIBS
26201fi
cristy8b350f62009-11-15 23:12:43 +000026202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026203$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026204if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026205 passed=`expr $passed + 1`
26206else
26207 failed=`expr $failed + 1`
26208fi
26209
cristy8b350f62009-11-15 23:12:43 +000026210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026211$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026212if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026213 $as_echo_n "(cached) " >&6
26214else
26215 ac_check_lib_save_LIBS=$LIBS
26216LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026218/* end confdefs.h. */
26219
26220/* Override any GCC internal prototype to avoid an error.
26221 Use char because int might match the return type of a GCC
26222 builtin and then its argument prototype would still apply. */
26223#ifdef __cplusplus
26224extern "C"
26225#endif
26226char gztell ();
26227int
26228main ()
26229{
26230return gztell ();
26231 ;
26232 return 0;
26233}
26234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026235if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026236 ac_cv_lib_z_gztell=yes
26237else
cristy8b350f62009-11-15 23:12:43 +000026238 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026239fi
cristy8b350f62009-11-15 23:12:43 +000026240rm -f core conftest.err conftest.$ac_objext \
26241 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026242LIBS=$ac_check_lib_save_LIBS
26243fi
cristy8b350f62009-11-15 23:12:43 +000026244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026245$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026246if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026247 passed=`expr $passed + 1`
26248else
26249 failed=`expr $failed + 1`
26250fi
26251
cristy8b350f62009-11-15 23:12:43 +000026252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026253$as_echo_n "checking if ZLIB package is complete... " >&6; }
26254 if test $passed -gt 0; then
26255 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026257$as_echo "no -- some components failed test" >&6; }
26258 have_zlib='no (failed tests)'
26259 else
26260 ZLIB_LIBS='-lz'
26261 LIBS="$ZLIB_LIBS $LIBS"
26262
cristy8b350f62009-11-15 23:12:43 +000026263$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026264
cristy8b350f62009-11-15 23:12:43 +000026265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026266$as_echo "yes" >&6; }
26267 have_zlib='yes'
26268 fi
26269 else
cristy8b350f62009-11-15 23:12:43 +000026270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026271$as_echo "no" >&6; }
26272 fi
26273fi
26274 if test "$have_zlib" = 'yes'; then
26275 ZLIB_DELEGATE_TRUE=
26276 ZLIB_DELEGATE_FALSE='#'
26277else
26278 ZLIB_DELEGATE_TRUE='#'
26279 ZLIB_DELEGATE_FALSE=
26280fi
26281
26282
26283
26284#
26285# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26286#
26287LIB_DL=''
26288if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026290$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026291if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026292 $as_echo_n "(cached) " >&6
26293else
26294 ac_check_lib_save_LIBS=$LIBS
26295LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026297/* end confdefs.h. */
26298
26299/* Override any GCC internal prototype to avoid an error.
26300 Use char because int might match the return type of a GCC
26301 builtin and then its argument prototype would still apply. */
26302#ifdef __cplusplus
26303extern "C"
26304#endif
26305char dlopen ();
26306int
26307main ()
26308{
26309return dlopen ();
26310 ;
26311 return 0;
26312}
26313_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026314if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026315 ac_cv_lib_dl_dlopen=yes
26316else
cristy8b350f62009-11-15 23:12:43 +000026317 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026318fi
cristy8b350f62009-11-15 23:12:43 +000026319rm -f core conftest.err conftest.$ac_objext \
26320 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026321LIBS=$ac_check_lib_save_LIBS
26322fi
cristy8b350f62009-11-15 23:12:43 +000026323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026324$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026325if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026326 LIB_DL='-ldl'
26327fi
26328
26329 LIBS="$LIB_DL $LIBS"
26330fi
26331
26332
26333
26334#
26335# Check for Autotrace delegate library.
26336#
26337
26338# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026339if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026340 withval=$with_autotrace; with_autotrace=$withval
26341else
26342 with_autotrace='no'
26343fi
26344
26345
26346if test "$with_autotrace" != 'yes'; then
26347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26348fi
26349
26350have_autotrace='no'
26351AUTOTRACE_CFLAGS=""
26352AUTOTRACE_LIBS=""
26353AUTOTRACE_PKG=""
26354if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026356$as_echo "-------------------------------------------------------------" >&6; }
26357
26358pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026360$as_echo_n "checking for AUTOTRACE... " >&6; }
26361
26362if test -n "$AUTOTRACE_CFLAGS"; then
26363 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26364 elif test -n "$PKG_CONFIG"; then
26365 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026367 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26368 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26370 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026371 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26372else
26373 pkg_failed=yes
26374fi
26375 else
26376 pkg_failed=untried
26377fi
26378if test -n "$AUTOTRACE_LIBS"; then
26379 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26380 elif test -n "$PKG_CONFIG"; then
26381 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026383 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26384 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26386 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026387 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26388else
26389 pkg_failed=yes
26390fi
26391 else
26392 pkg_failed=untried
26393fi
26394
26395
26396
26397if test $pkg_failed = yes; then
26398
26399if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26400 _pkg_short_errors_supported=yes
26401else
26402 _pkg_short_errors_supported=no
26403fi
26404 if test $_pkg_short_errors_supported = yes; then
26405 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26406 else
26407 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26408 fi
26409 # Put the nasty error message in config.log where it belongs
26410 echo "$AUTOTRACE_PKG_ERRORS" >&5
26411
cristy8b350f62009-11-15 23:12:43 +000026412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026413$as_echo "no" >&6; }
26414 have_autotrace=no
26415elif test $pkg_failed = untried; then
26416 have_autotrace=no
26417else
26418 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26419 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026421$as_echo "yes" >&6; }
26422 have_autotrace=yes
26423fi
cristy8b350f62009-11-15 23:12:43 +000026424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026425$as_echo "" >&6; }
26426fi
26427
26428if test "$have_autotrace" = 'yes'; then
26429 failed=0
26430
cristy8b350f62009-11-15 23:12:43 +000026431$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026432
26433 if test "$with_modules" = 'no'; then
26434 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26435 fi
26436fi
26437
26438 if test "$have_autotrace" = 'yes'; then
26439 AUTOTRACE_DELEGATE_TRUE=
26440 AUTOTRACE_DELEGATE_FALSE='#'
26441else
26442 AUTOTRACE_DELEGATE_TRUE='#'
26443 AUTOTRACE_DELEGATE_FALSE=
26444fi
26445
26446
26447
26448
26449
26450#
26451# Check for Display Postscript delegate library.
26452#
26453
26454# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026455if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026456 withval=$with_dps; with_dps=$withval
26457else
26458 with_dps='yes'
26459fi
26460
26461
26462if test "$with_dps" != 'yes'; then
26463 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26464fi
26465
26466have_dps='no'
26467DPS_LIBS=''
26468if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026470$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026472$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026474$as_echo "" >&6; }
26475 failed=0
26476 passed=0
26477 PERSIST_CPPFLAGS="$CPPFLAGS"
26478 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026479 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26480if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026481 passed=`expr $passed + 1`
26482else
26483 failed=`expr $failed + 1`
26484fi
26485
26486
26487 # DPS issues:
26488 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26489 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26490 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26491 # ImageMagick itself doesn't use -lXt.
26492 have_libdps='no'
26493 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026495$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026496if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026497 $as_echo_n "(cached) " >&6
26498else
26499 ac_check_lib_save_LIBS=$LIBS
26500LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026502/* end confdefs.h. */
26503
26504/* Override any GCC internal prototype to avoid an error.
26505 Use char because int might match the return type of a GCC
26506 builtin and then its argument prototype would still apply. */
26507#ifdef __cplusplus
26508extern "C"
26509#endif
26510char DPSInitialize ();
26511int
26512main ()
26513{
26514return DPSInitialize ();
26515 ;
26516 return 0;
26517}
26518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026519if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026520 ac_cv_lib_dps_DPSInitialize=yes
26521else
cristy8b350f62009-11-15 23:12:43 +000026522 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026523fi
cristy8b350f62009-11-15 23:12:43 +000026524rm -f core conftest.err conftest.$ac_objext \
26525 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026526LIBS=$ac_check_lib_save_LIBS
26527fi
cristy8b350f62009-11-15 23:12:43 +000026528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026529$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026530if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026531 have_libdps='yes'
26532else
26533 have_libdps='no'
26534fi
26535
26536 if test "$have_libdps" != 'yes'; then
26537 # Unset cache variable so we can try again.
26538 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026540$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026541if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026542 $as_echo_n "(cached) " >&6
26543else
26544 ac_check_lib_save_LIBS=$LIBS
26545LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026547/* end confdefs.h. */
26548
26549/* Override any GCC internal prototype to avoid an error.
26550 Use char because int might match the return type of a GCC
26551 builtin and then its argument prototype would still apply. */
26552#ifdef __cplusplus
26553extern "C"
26554#endif
26555char DPSInitialize ();
26556int
26557main ()
26558{
26559return DPSInitialize ();
26560 ;
26561 return 0;
26562}
26563_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026564if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026565 ac_cv_lib_dps_DPSInitialize=yes
26566else
cristy8b350f62009-11-15 23:12:43 +000026567 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026568fi
cristy8b350f62009-11-15 23:12:43 +000026569rm -f core conftest.err conftest.$ac_objext \
26570 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026571LIBS=$ac_check_lib_save_LIBS
26572fi
cristy8b350f62009-11-15 23:12:43 +000026573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026574$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026575if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026576 have_libdps='yes'
26577else
26578 have_libdps='no'
26579fi
26580
26581 if test "$have_libdps" = 'yes'; then
26582 LIBDPS_XT='-lXt'
26583 fi
26584 fi
26585 if test "$have_libdps" = 'yes'; then
26586 passed=`expr $passed + 1`
26587 else
26588 failed=`expr $failed + 1`
26589 fi
cristy8b350f62009-11-15 23:12:43 +000026590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026591$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026592if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026593 $as_echo_n "(cached) " >&6
26594else
26595 ac_check_lib_save_LIBS=$LIBS
26596LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026598/* end confdefs.h. */
26599
26600/* Override any GCC internal prototype to avoid an error.
26601 Use char because int might match the return type of a GCC
26602 builtin and then its argument prototype would still apply. */
26603#ifdef __cplusplus
26604extern "C"
26605#endif
26606char XDPSPixelsPerPoint ();
26607int
26608main ()
26609{
26610return XDPSPixelsPerPoint ();
26611 ;
26612 return 0;
26613}
26614_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026615if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026616 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26617else
cristy8b350f62009-11-15 23:12:43 +000026618 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026619fi
cristy8b350f62009-11-15 23:12:43 +000026620rm -f core conftest.err conftest.$ac_objext \
26621 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026622LIBS=$ac_check_lib_save_LIBS
26623fi
cristy8b350f62009-11-15 23:12:43 +000026624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026625$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026626if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026627 passed=`expr $passed + 1`
26628else
26629 failed=`expr $failed + 1`
26630fi
26631
cristy8b350f62009-11-15 23:12:43 +000026632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026633$as_echo_n "checking if DPS package is complete... " >&6; }
26634 if test $passed -gt 0; then
26635 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026637$as_echo "no -- some components failed test" >&6; }
26638 have_dps='no (failed tests)'
26639 CPPFLAGS="$PERSIST_CPPFLAGS"
26640 else
26641 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26642 LIBS="$DPS_LIBS $LIBS"
26643
cristy8b350f62009-11-15 23:12:43 +000026644$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026645
cristy8b350f62009-11-15 23:12:43 +000026646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026647$as_echo "yes" >&6; }
26648 have_dps='yes'
26649 fi
26650 else
cristy8b350f62009-11-15 23:12:43 +000026651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026652$as_echo "no" >&6; }
26653 CPPFLAGS=$PERSIST_CPPFLAGS
26654 fi
26655fi
26656 if test "$have_dps" = 'yes'; then
26657 DPS_DELEGATE_TRUE=
26658 DPS_DELEGATE_FALSE='#'
26659else
26660 DPS_DELEGATE_TRUE='#'
26661 DPS_DELEGATE_FALSE=
26662fi
26663
26664
26665
26666
26667#
26668# Check for DJVU delegate library.
26669#
26670
26671# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026672if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026673 withval=$with_djvu; with_djvu=$withval
26674else
26675 with_djvu='yes'
26676fi
26677
26678
26679if test "$with_djvu" != 'yes'; then
26680 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26681fi
26682
26683have_djvu='no'
26684DJVU_LIBS=''
26685if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026687$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026689$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026691$as_echo "" >&6; }
26692 failed=0
26693 passed=0
cristy8b350f62009-11-15 23:12:43 +000026694 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26695if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026696 passed=`expr $passed + 1`
26697else
26698 failed=`expr $failed + 1`
26699fi
26700
26701
cristy8b350f62009-11-15 23:12:43 +000026702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026703$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026704if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026705 $as_echo_n "(cached) " >&6
26706else
26707 ac_check_lib_save_LIBS=$LIBS
26708LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026710/* end confdefs.h. */
26711
26712/* Override any GCC internal prototype to avoid an error.
26713 Use char because int might match the return type of a GCC
26714 builtin and then its argument prototype would still apply. */
26715#ifdef __cplusplus
26716extern "C"
26717#endif
26718char ddjvu_context_create ();
26719int
26720main ()
26721{
26722return ddjvu_context_create ();
26723 ;
26724 return 0;
26725}
26726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026727if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026728 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26729else
cristy8b350f62009-11-15 23:12:43 +000026730 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026731fi
cristy8b350f62009-11-15 23:12:43 +000026732rm -f core conftest.err conftest.$ac_objext \
26733 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026734LIBS=$ac_check_lib_save_LIBS
26735fi
cristy8b350f62009-11-15 23:12:43 +000026736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026737$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026738if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026739 passed=`expr $passed + 1`
26740else
26741 failed=`expr $failed + 1`
26742fi
26743
cristy8b350f62009-11-15 23:12:43 +000026744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026745$as_echo_n "checking if DJVU package is complete... " >&6; }
26746 if test $passed -gt 0; then
26747 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026749$as_echo "no -- some components failed test" >&6; }
26750 have_djvu='no (failed tests)'
26751 else
26752 DJVU_LIBS='-ldjvulibre'
26753 LIBS="$DJVU_LIBS $LIBS"
26754
cristy8b350f62009-11-15 23:12:43 +000026755$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026756
cristy8b350f62009-11-15 23:12:43 +000026757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026758$as_echo "yes" >&6; }
26759 have_djvu='yes'
26760 fi
26761 else
cristy8b350f62009-11-15 23:12:43 +000026762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026763$as_echo "no" >&6; }
26764 fi
26765fi
26766 if test "$have_djvu" = 'yes'; then
26767 DJVU_DELEGATE_TRUE=
26768 DJVU_DELEGATE_FALSE='#'
26769else
26770 DJVU_DELEGATE_TRUE='#'
26771 DJVU_DELEGATE_FALSE=
26772fi
26773
26774
26775
26776
26777#
cristy430a7312010-01-21 20:44:04 +000026778# Set DejaVu font directory.
26779#
26780
26781# Check whether --with-dejavu-font-dir was given.
26782if test "${with_dejavu_font_dir+set}" = set; then :
26783 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26784else
26785 with_dejavu_font_dir='default'
26786fi
26787
26788
26789if test "$with_dejavu_font_dir" != 'default'; then
26790 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26791fi
26792
26793
26794#
cristy3ed852e2009-09-05 21:47:34 +000026795# Check for FFTW delegate library.
26796#
26797
26798# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026799if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026800 withval=$with_fftw; with_fftw=$withval
26801else
26802 with_fftw='yes'
26803fi
26804
26805
26806if test "$with_fftw" != 'yes'; then
26807 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26808fi
26809
26810have_fftw='no'
26811FFTW_LIBS=''
26812if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026814$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026816$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026818$as_echo "" >&6; }
26819 failed=0
26820 passed=0
cristy8b350f62009-11-15 23:12:43 +000026821 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26822if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026823 passed=`expr $passed + 1`
26824else
26825 failed=`expr $failed + 1`
26826fi
26827
26828
cristy8b350f62009-11-15 23:12:43 +000026829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026830$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026831if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026832 $as_echo_n "(cached) " >&6
26833else
26834 ac_check_lib_save_LIBS=$LIBS
26835LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026837/* end confdefs.h. */
26838
26839/* Override any GCC internal prototype to avoid an error.
26840 Use char because int might match the return type of a GCC
26841 builtin and then its argument prototype would still apply. */
26842#ifdef __cplusplus
26843extern "C"
26844#endif
26845char fftw_execute ();
26846int
26847main ()
26848{
26849return fftw_execute ();
26850 ;
26851 return 0;
26852}
26853_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026854if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026855 ac_cv_lib_fftw3_fftw_execute=yes
26856else
cristy8b350f62009-11-15 23:12:43 +000026857 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026858fi
cristy8b350f62009-11-15 23:12:43 +000026859rm -f core conftest.err conftest.$ac_objext \
26860 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026861LIBS=$ac_check_lib_save_LIBS
26862fi
cristy8b350f62009-11-15 23:12:43 +000026863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026864$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026865if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026866 passed=`expr $passed + 1`
26867else
26868 failed=`expr $failed + 1`
26869fi
26870
cristy8b350f62009-11-15 23:12:43 +000026871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026872$as_echo_n "checking if FFTW package is complete... " >&6; }
26873 if test $passed -gt 0; then
26874 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026876$as_echo "no -- some components failed test" >&6; }
26877 have_fftw='no (failed tests)'
26878 else
26879 FFTW_LIBS='-lfftw3'
26880 LIBS="$FFTW_LIBS $LIBS"
26881
cristy8b350f62009-11-15 23:12:43 +000026882$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026883
cristy8b350f62009-11-15 23:12:43 +000026884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026885$as_echo "yes" >&6; }
26886 have_fftw='yes'
26887 fi
26888 else
cristy8b350f62009-11-15 23:12:43 +000026889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026890$as_echo "no" >&6; }
26891 fi
26892fi
26893 if test "$have_fftw" = 'yes'; then
26894 FFTW_DELEGATE_TRUE=
26895 FFTW_DELEGATE_FALSE='#'
26896else
26897 FFTW_DELEGATE_TRUE='#'
26898 FFTW_DELEGATE_FALSE=
26899fi
26900
26901
26902
26903
26904#
26905# Check for FlashPIX delegate library.
26906#
26907
26908# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026909if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026910 withval=$with_fpx; with_fpx=$withval
26911else
26912 with_fpx='yes'
26913fi
26914
26915
26916if test "$with_fpx" != 'yes'; then
26917 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26918fi
26919
26920have_fpx='no'
26921FPX_LIBS=''
26922if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026924$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026926$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026928$as_echo "" >&6; }
26929 failed=0
26930 passed=0
26931 ac_ext=cpp
26932ac_cpp='$CXXCPP $CPPFLAGS'
26933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26936
26937
cristy8b350f62009-11-15 23:12:43 +000026938ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26939if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026940 passed=`expr $passed + 1`
26941else
26942 failed=`expr $failed + 1`
26943fi
26944
26945
cristy8b350f62009-11-15 23:12:43 +000026946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026947$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026948if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026949 $as_echo_n "(cached) " >&6
26950else
26951 ac_check_lib_save_LIBS=$LIBS
26952LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026954/* end confdefs.h. */
26955
26956/* Override any GCC internal prototype to avoid an error.
26957 Use char because int might match the return type of a GCC
26958 builtin and then its argument prototype would still apply. */
26959#ifdef __cplusplus
26960extern "C"
26961#endif
26962char FPX_OpenImageByFilename ();
26963int
26964main ()
26965{
26966return FPX_OpenImageByFilename ();
26967 ;
26968 return 0;
26969}
26970_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026971if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026972 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26973else
cristy8b350f62009-11-15 23:12:43 +000026974 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026975fi
cristy8b350f62009-11-15 23:12:43 +000026976rm -f core conftest.err conftest.$ac_objext \
26977 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026978LIBS=$ac_check_lib_save_LIBS
26979fi
cristy8b350f62009-11-15 23:12:43 +000026980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026981$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026982if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026983 passed=`expr $passed + 1`
26984else
26985 failed=`expr $failed + 1`
26986fi
26987
26988 ac_ext=c
26989ac_cpp='$CPP $CPPFLAGS'
26990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26992ac_compiler_gnu=$ac_cv_c_compiler_gnu
26993
cristy8b350f62009-11-15 23:12:43 +000026994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026995$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26996 if test $passed -gt 0; then
26997 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026999$as_echo "no -- some components failed test" >&6; }
27000 have_fpx='no (failed tests)'
27001 else
27002 FPX_LIBS='-lfpx'
27003
cristy8b350f62009-11-15 23:12:43 +000027004$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027005
cristy8b350f62009-11-15 23:12:43 +000027006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027007$as_echo "yes" >&6; }
27008 have_fpx='yes'
27009 PERLMAINCC="$CXX"
27010 fi
27011 else
cristy8b350f62009-11-15 23:12:43 +000027012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027013$as_echo "no" >&6; }
27014 fi
27015fi
27016 if test "$have_fpx" = 'yes'; then
27017 FPX_DELEGATE_TRUE=
27018 FPX_DELEGATE_FALSE='#'
27019else
27020 FPX_DELEGATE_TRUE='#'
27021 FPX_DELEGATE_FALSE=
27022fi
27023
27024
27025
27026
27027#
27028# Check for fontconfig delegate library.
27029#
27030
27031# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027032if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027033 withval=$with_fontconfig; with_fontconfig=$withval
27034else
27035 with_fontconfig=$have_x
27036fi
27037
27038
27039if test "$with_fontconfig" != 'yes'; then
27040 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27041fi
27042
27043have_fontconfig='no'
27044FONTCONFIG_CFLAGS=""
27045FONTCONFIG_LIBS=""
27046FONTCONFIG_PKG=""
27047if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027049$as_echo "-------------------------------------------------------------" >&6; }
27050
27051pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027053$as_echo_n "checking for FONTCONFIG... " >&6; }
27054
27055if test -n "$FONTCONFIG_CFLAGS"; then
27056 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27057 elif test -n "$PKG_CONFIG"; then
27058 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027059 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027060 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27061 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27063 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027064 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27065else
27066 pkg_failed=yes
27067fi
27068 else
27069 pkg_failed=untried
27070fi
27071if test -n "$FONTCONFIG_LIBS"; then
27072 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27073 elif test -n "$PKG_CONFIG"; then
27074 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027075 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027076 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27077 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27079 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027080 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27081else
27082 pkg_failed=yes
27083fi
27084 else
27085 pkg_failed=untried
27086fi
27087
27088
27089
27090if test $pkg_failed = yes; then
27091
27092if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27093 _pkg_short_errors_supported=yes
27094else
27095 _pkg_short_errors_supported=no
27096fi
27097 if test $_pkg_short_errors_supported = yes; then
27098 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27099 else
27100 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27101 fi
27102 # Put the nasty error message in config.log where it belongs
27103 echo "$FONTCONFIG_PKG_ERRORS" >&5
27104
cristy8b350f62009-11-15 23:12:43 +000027105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027106$as_echo "no" >&6; }
27107 have_fontconfig=no
27108elif test $pkg_failed = untried; then
27109 have_fontconfig=no
27110else
27111 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27112 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027114$as_echo "yes" >&6; }
27115 have_fontconfig=yes
27116fi
cristy8b350f62009-11-15 23:12:43 +000027117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027118$as_echo "" >&6; }
27119fi
27120
27121if test "$have_fontconfig" = 'yes'; then
27122
cristy8b350f62009-11-15 23:12:43 +000027123$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027124
cristyd09bcf92010-03-25 03:04:45 +000027125 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027126 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027127 fi
cristy3ed852e2009-09-05 21:47:34 +000027128fi
27129
27130 if test "$have_fontconfig" = 'yes'; then
27131 FONTCONFIG_DELEGATE_TRUE=
27132 FONTCONFIG_DELEGATE_FALSE='#'
27133else
27134 FONTCONFIG_DELEGATE_TRUE='#'
27135 FONTCONFIG_DELEGATE_FALSE=
27136fi
27137
27138
27139
27140
27141
27142#
27143# Check for freetype delegate library.
27144#
27145
27146# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027147if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027148 withval=$with_freetype; with_freetype=$withval
27149else
27150 with_freetype='yes'
27151fi
27152
27153
27154
27155if test "$with_freetype" != 'yes'; then
27156 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27157fi
27158
27159have_freetype='no'
27160FREETYPE_LIBS=''
27161if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027163$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027165$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027167$as_echo "" >&6; }
27168 failed=0
27169 passed=0
cristy66291112009-10-03 22:44:36 +000027170 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027171 PERSIST_CPPFLAGS="$CPPFLAGS"
27172 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27173 :
27174 else
27175 freetype_config=''
27176 for ac_prog in freetype-config
27177do
27178 # Extract the first word of "$ac_prog", so it can be a program name with args.
27179set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027181$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027182if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027183 $as_echo_n "(cached) " >&6
27184else
27185 if test -n "$freetype_config"; then
27186 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27187else
27188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27189for as_dir in $PATH
27190do
27191 IFS=$as_save_IFS
27192 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027193 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27195 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027197 break 2
27198 fi
27199done
cristy8b350f62009-11-15 23:12:43 +000027200 done
cristy3ed852e2009-09-05 21:47:34 +000027201IFS=$as_save_IFS
27202
27203fi
27204fi
27205freetype_config=$ac_cv_prog_freetype_config
27206if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027208$as_echo "$freetype_config" >&6; }
27209else
cristy8b350f62009-11-15 23:12:43 +000027210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027211$as_echo "no" >&6; }
27212fi
27213
27214
27215 test -n "$freetype_config" && break
27216done
27217 if test -n "$freetype_config"; then
27218 freetype_cflags=`$freetype_config --cflags`
27219 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027220 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027221 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27222 fi
27223 fi
27224
27225 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027227$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027228if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027229 $as_echo_n "(cached) " >&6
27230else
27231 ac_check_lib_save_LIBS=$LIBS
27232LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027234/* end confdefs.h. */
27235
27236/* Override any GCC internal prototype to avoid an error.
27237 Use char because int might match the return type of a GCC
27238 builtin and then its argument prototype would still apply. */
27239#ifdef __cplusplus
27240extern "C"
27241#endif
27242char FT_Init_FreeType ();
27243int
27244main ()
27245{
27246return FT_Init_FreeType ();
27247 ;
27248 return 0;
27249}
27250_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027251if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027252 ac_cv_lib_freetype_FT_Init_FreeType=yes
27253else
cristy8b350f62009-11-15 23:12:43 +000027254 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027255fi
cristy8b350f62009-11-15 23:12:43 +000027256rm -f core conftest.err conftest.$ac_objext \
27257 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027258LIBS=$ac_check_lib_save_LIBS
27259fi
cristy8b350f62009-11-15 23:12:43 +000027260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027261$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027262if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027263 FREETYPE_LIBS='-lfreetype'
27264fi
27265
27266 if test "$FREETYPE_LIBS" != ''; then
27267 passed=`expr $passed + 1`
27268 else
27269 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027270 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027271 fi
27272 fi
27273
cristy8b350f62009-11-15 23:12:43 +000027274 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27275if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027276 FT2BUILD_H='#include <ft2build.h>'
27277else
27278 ft2build=''
27279fi
27280
27281
cristy8b350f62009-11-15 23:12:43 +000027282 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27283"
27284if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027285 have_freetype_h='yes'
27286else
27287 have_freetype_h='no'
27288fi
27289
27290
27291 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27292 passed=`expr $passed + 1`
27293 else
27294 failed=`expr $failed + 1`
27295 CPPFLAGS="$PERSIST_CPPFLAGS"
27296 fi
27297
cristy8b350f62009-11-15 23:12:43 +000027298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027299$as_echo_n "checking if FreeType package is complete... " >&6; }
27300 if test $passed -gt 0; then
27301 if test $failed -gt 0; then
27302 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027304$as_echo "no -- some components failed test" >&6; }
27305 have_freetype='no (failed tests)'
27306 else
27307 LIBS="$FREETYPE_LIBS $LIBS"
27308
cristy8b350f62009-11-15 23:12:43 +000027309$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027310
27311 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27312
cristy8b350f62009-11-15 23:12:43 +000027313$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027314
27315 fi
cristy8b350f62009-11-15 23:12:43 +000027316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027317$as_echo "yes" >&6; }
27318 have_freetype='yes'
27319 fi
27320 else
cristy8b350f62009-11-15 23:12:43 +000027321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027322$as_echo "no" >&6; }
27323 fi
27324fi
27325 if test "$have_freetype" = 'yes'; then
27326 FREETYPE_DELEGATE_TRUE=
27327 FREETYPE_DELEGATE_FALSE='#'
27328else
27329 FREETYPE_DELEGATE_TRUE='#'
27330 FREETYPE_DELEGATE_FALSE=
27331fi
27332
27333
27334
27335
27336
27337#
27338# Check for Ghostscript library or framework.
27339#
27340# Test for iapi.h & test for gsapi_new_instance in -lgs
27341# or -framework Ghostscript
27342
27343
27344# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027345if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027346 withval=$with_gslib; with_gslib=$withval
27347else
27348 with_gslib='no'
27349fi
27350
27351
cristyb7931f12009-09-25 10:22:21 +000027352gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027353if test "$with_gslib" != 'yes'; then
27354 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27355fi
27356
27357have_gslib='no'
27358GS_LIBS=''
27359if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027361$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027363$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027365$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027366 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027367 failed=0
27368 passed=0
cristy8b350f62009-11-15 23:12:43 +000027369 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27370if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027371 passed=`expr $passed + 1`
27372else
27373 failed=`expr $failed + 1`
27374fi
27375
27376
cristy8b350f62009-11-15 23:12:43 +000027377 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27378if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027379 passed=`expr $passed + 1`
27380else
27381 failed=`expr $failed + 1`
27382fi
27383
27384
cristy8b350f62009-11-15 23:12:43 +000027385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027386$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027387if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027388 $as_echo_n "(cached) " >&6
27389else
27390 ac_check_framework_save_LIBS=$LIBS
27391LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027393/* end confdefs.h. */
27394
27395/* Override any GCC internal prototype to avoid an error.
27396 Use char because int might match the return type of a GCC
27397 builtin and then its argument prototype would still apply. */
27398#ifdef __cplusplus
27399extern "C"
27400#endif
27401char gsapi_new_instance ();
27402int
27403main ()
27404{
27405return gsapi_new_instance ();
27406 ;
27407 return 0;
27408}
27409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027410if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027411 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27412else
cristy8b350f62009-11-15 23:12:43 +000027413 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027414fi
cristy8b350f62009-11-15 23:12:43 +000027415rm -f core conftest.err conftest.$ac_objext \
27416 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027417LIBS=$ac_check_framework_save_LIBS
27418fi
cristy8b350f62009-11-15 23:12:43 +000027419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027420$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027421if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027422 framework=`expr $framework + 1`
27423else
cristy8b350f62009-11-15 23:12:43 +000027424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027425$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027426if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027427 $as_echo_n "(cached) " >&6
27428else
27429 ac_check_lib_save_LIBS=$LIBS
27430LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027432/* end confdefs.h. */
27433
27434/* Override any GCC internal prototype to avoid an error.
27435 Use char because int might match the return type of a GCC
27436 builtin and then its argument prototype would still apply. */
27437#ifdef __cplusplus
27438extern "C"
27439#endif
27440char gsapi_new_instance ();
27441int
27442main ()
27443{
27444return gsapi_new_instance ();
27445 ;
27446 return 0;
27447}
27448_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027449if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027450 ac_cv_lib_gs_gsapi_new_instance=yes
27451else
cristy8b350f62009-11-15 23:12:43 +000027452 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027453fi
cristy8b350f62009-11-15 23:12:43 +000027454rm -f core conftest.err conftest.$ac_objext \
27455 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027456LIBS=$ac_check_lib_save_LIBS
27457fi
cristy8b350f62009-11-15 23:12:43 +000027458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027459$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027460if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027461 passed=`expr $passed + 1`
27462else
27463 failed=`expr $failed + 1`
27464fi
27465
27466fi
cristy8b350f62009-11-15 23:12:43 +000027467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027468$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27469 if test $passed -gt 0; then
27470 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027472$as_echo "no -- some components failed test" >&6; }
27473 have_gslib='no (failed tests)'
27474 else
27475 if test $framework -gt 0; then
27476 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027477 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027479$as_echo "yes, using framework." >&6; }
27480 else
cristy8b350f62009-11-15 23:12:43 +000027481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027482$as_echo "yes, using library." >&6; }
27483 GS_LIBS='-lgs'
27484 fi
27485 LIBS="$GS_LIBS $LIBS"
27486
cristy8b350f62009-11-15 23:12:43 +000027487$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027488
27489 have_gslib='yes'
27490 fi
27491 else
cristy8b350f62009-11-15 23:12:43 +000027492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027493$as_echo "no" >&6; }
27494 fi
27495fi
27496 if test "$have_gslib" = 'yes'; then
27497 GS_DELEGATE_TRUE=
27498 GS_DELEGATE_FALSE='#'
27499else
27500 GS_DELEGATE_TRUE='#'
27501 GS_DELEGATE_FALSE=
27502fi
27503
27504
27505
27506# Set default font search path
27507
27508# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027509if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027510 withval=$with_fontpath; with_fontpath=$withval
27511else
27512 with_fontpath=''
27513fi
27514
27515
27516if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27517 with_fontpath=''
27518else
27519
27520cat >>confdefs.h <<_ACEOF
27521#define MAGICK_FONT_PATH "$with_fontpath"
27522_ACEOF
27523
27524fi
27525if test "$with_fontpath=" != ''; then
27526 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27527fi
27528
27529# Set Ghostscript font directory
27530
27531# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027532if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027533 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27534else
27535 with_gs_font_dir='default'
27536fi
27537
27538
27539if test "$with_gs_font_dir" != 'default'; then
27540 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27541fi
27542
27543
27544#
27545# Check for GVC delegate library.
27546#
27547
27548# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027549if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027550 withval=$with_gvc; with_gvc=$withval
27551else
27552 with_gvc='yes'
27553fi
27554
27555
27556if test "$with_gvc" != 'yes'; then
27557 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27558fi
27559
27560GVC_PKG=""
27561if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027563$as_echo "-------------------------------------------------------------" >&6; }
27564
27565pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027567$as_echo_n "checking for GVC... " >&6; }
27568
27569if test -n "$GVC_CFLAGS"; then
27570 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27571 elif test -n "$PKG_CONFIG"; then
27572 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027574 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27575 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27577 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027578 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27579else
27580 pkg_failed=yes
27581fi
27582 else
27583 pkg_failed=untried
27584fi
27585if test -n "$GVC_LIBS"; then
27586 pkg_cv_GVC_LIBS="$GVC_LIBS"
27587 elif test -n "$PKG_CONFIG"; then
27588 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027589 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027590 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27591 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27593 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027594 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27595else
27596 pkg_failed=yes
27597fi
27598 else
27599 pkg_failed=untried
27600fi
27601
27602
27603
27604if test $pkg_failed = yes; then
27605
27606if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27607 _pkg_short_errors_supported=yes
27608else
27609 _pkg_short_errors_supported=no
27610fi
27611 if test $_pkg_short_errors_supported = yes; then
27612 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27613 else
27614 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27615 fi
27616 # Put the nasty error message in config.log where it belongs
27617 echo "$GVC_PKG_ERRORS" >&5
27618
cristy8b350f62009-11-15 23:12:43 +000027619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027620$as_echo "no" >&6; }
27621 have_gvc=no
27622elif test $pkg_failed = untried; then
27623 have_gvc=no
27624else
27625 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27626 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027628$as_echo "yes" >&6; }
27629 have_gvc=yes
27630fi
cristy8b350f62009-11-15 23:12:43 +000027631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027632$as_echo "" >&6; }
27633fi
27634
27635if test "$have_gvc" = 'yes'; then
27636
cristy8b350f62009-11-15 23:12:43 +000027637$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027638
27639 if test "$with_modules" = 'no'; then
27640 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27641 fi
27642fi
27643
27644 if test "$have_gvc" = 'yes'; then
27645 GVC_DELEGATE_TRUE=
27646 GVC_DELEGATE_FALSE='#'
27647else
27648 GVC_DELEGATE_TRUE='#'
27649 GVC_DELEGATE_FALSE=
27650fi
27651
27652
27653
27654
27655
27656#
27657# Check for JBIG delegate library.
27658#
27659
27660
27661# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027662if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027663 withval=$with_jbig; with_jbig=$withval
27664else
27665 with_jbig='yes'
27666fi
27667
27668
27669have_jbig='no'
27670JBIG_LIBS=''
27671if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027673$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027675$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027677$as_echo "" >&6; }
27678 failed=0
27679 passed=0
cristy8b350f62009-11-15 23:12:43 +000027680 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27681if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027682 passed=`expr $passed + 1`
27683else
27684 failed=`expr $failed + 1`
27685fi
27686
27687
cristy8b350f62009-11-15 23:12:43 +000027688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027689$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027690if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027691 $as_echo_n "(cached) " >&6
27692else
27693 ac_check_lib_save_LIBS=$LIBS
27694LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027696/* end confdefs.h. */
27697
27698/* Override any GCC internal prototype to avoid an error.
27699 Use char because int might match the return type of a GCC
27700 builtin and then its argument prototype would still apply. */
27701#ifdef __cplusplus
27702extern "C"
27703#endif
27704char jbg_dec_init ();
27705int
27706main ()
27707{
27708return jbg_dec_init ();
27709 ;
27710 return 0;
27711}
27712_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027713if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027714 ac_cv_lib_jbig_jbg_dec_init=yes
27715else
cristy8b350f62009-11-15 23:12:43 +000027716 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027717fi
cristy8b350f62009-11-15 23:12:43 +000027718rm -f core conftest.err conftest.$ac_objext \
27719 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027720LIBS=$ac_check_lib_save_LIBS
27721fi
cristy8b350f62009-11-15 23:12:43 +000027722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027723$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027724if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027725 passed=`expr $passed + 1`
27726else
27727 failed=`expr $failed + 1`
27728fi
27729
cristy8b350f62009-11-15 23:12:43 +000027730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027731$as_echo_n "checking if JBIG package is complete... " >&6; }
27732 if test $passed -gt 0; then
27733 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027735$as_echo "no -- some components failed test" >&6; }
27736 have_jbig='no (failed tests)'
27737 else
27738 JBIG_LIBS='-ljbig'
27739 LIBS="$JBIG_LIBS $LIBS"
27740
cristy8b350f62009-11-15 23:12:43 +000027741$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027742
cristy8b350f62009-11-15 23:12:43 +000027743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027744$as_echo "yes" >&6; }
27745 have_jbig='yes'
27746 fi
27747 else
cristy8b350f62009-11-15 23:12:43 +000027748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027749$as_echo "no" >&6; }
27750 fi
27751fi
27752 if test "$have_jbig" = 'yes'; then
27753 JBIG_DELEGATE_TRUE=
27754 JBIG_DELEGATE_FALSE='#'
27755else
27756 JBIG_DELEGATE_TRUE='#'
27757 JBIG_DELEGATE_FALSE=
27758fi
27759
27760
27761
27762
27763#
27764# Check for JPEG delegate library.
27765#
27766
27767# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027768if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027769 withval=$with_jpeg; with_jpeg=$withval
27770else
27771 with_jpeg='yes'
27772fi
27773
27774
27775if test "$with_jpeg" != 'yes'; then
27776 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27777fi
27778
27779have_jpeg='no'
27780JPEG_LIBS=''
27781if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027783$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027785$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027787$as_echo "" >&6; }
27788 failed=0
27789 passed=0
cristy8b350f62009-11-15 23:12:43 +000027790 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27791if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027792 passed=`expr $passed + 1`
27793else
27794 failed=`expr $failed + 1`
27795fi
27796
27797
cristy8b350f62009-11-15 23:12:43 +000027798 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27799if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027800 passed=`expr $passed + 1`
27801else
27802 failed=`expr $failed + 1`
27803fi
27804
27805
cristy8b350f62009-11-15 23:12:43 +000027806 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27807if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027808 passed=`expr $passed + 1`
27809else
27810 failed=`expr $failed + 1`
27811fi
27812
27813
cristy8b350f62009-11-15 23:12:43 +000027814 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27815if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027816 passed=`expr $passed + 1`
27817else
27818 failed=`expr $failed + 1`
27819fi
27820
27821
cristy8b350f62009-11-15 23:12:43 +000027822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027823$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027824if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027825 $as_echo_n "(cached) " >&6
27826else
27827 ac_check_lib_save_LIBS=$LIBS
27828LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027830/* end confdefs.h. */
27831
27832/* Override any GCC internal prototype to avoid an error.
27833 Use char because int might match the return type of a GCC
27834 builtin and then its argument prototype would still apply. */
27835#ifdef __cplusplus
27836extern "C"
27837#endif
27838char jpeg_read_header ();
27839int
27840main ()
27841{
27842return jpeg_read_header ();
27843 ;
27844 return 0;
27845}
27846_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027847if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027848 ac_cv_lib_jpeg_jpeg_read_header=yes
27849else
cristy8b350f62009-11-15 23:12:43 +000027850 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027851fi
cristy8b350f62009-11-15 23:12:43 +000027852rm -f core conftest.err conftest.$ac_objext \
27853 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027854LIBS=$ac_check_lib_save_LIBS
27855fi
cristy8b350f62009-11-15 23:12:43 +000027856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027857$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027858if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027859 passed=`expr $passed + 1`
27860else
27861 failed=`expr $failed + 1`
27862fi
27863
27864
27865# Test for compatible JPEG library
27866if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027868$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027869if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027870 $as_echo_n "(cached) " >&6
27871else
cristy8b350f62009-11-15 23:12:43 +000027872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027873/* end confdefs.h. */
27874#include <stdio.h>
27875#include <stdlib.h>
27876#include <jpeglib.h>
27877
27878int
27879main ()
27880{
27881
27882#if JPEG_LIB_VERSION < 62
27883#error IJG JPEG library must be version 6b or newer!
27884#endif
27885return 0;
27886
27887 ;
27888 return 0;
27889}
27890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027891if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027892 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27893else
cristy8b350f62009-11-15 23:12:43 +000027894 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027895fi
cristy3ed852e2009-09-05 21:47:34 +000027896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27897fi
cristy8b350f62009-11-15 23:12:43 +000027898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027899$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27900fi
cristy8b350f62009-11-15 23:12:43 +000027901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027902$as_echo_n "checking if JPEG package is complete... " >&6; }
27903 if test $passed -gt 0; then
27904 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027906$as_echo "no -- some components failed test" >&6; }
27907 have_jpeg='no (failed tests)'
27908 else
27909 JPEG_LIBS='-ljpeg'
27910 LIBS="$JPEG_LIBS $LIBS"
27911
cristy8b350f62009-11-15 23:12:43 +000027912$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027913
cristy8b350f62009-11-15 23:12:43 +000027914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027915$as_echo "yes" >&6; }
27916 have_jpeg='yes'
27917 fi
27918 else
cristy8b350f62009-11-15 23:12:43 +000027919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027920$as_echo "no" >&6; }
27921 fi
27922fi
27923 if test "$have_jpeg" = 'yes'; then
27924 JPEG_DELEGATE_TRUE=
27925 JPEG_DELEGATE_FALSE='#'
27926else
27927 JPEG_DELEGATE_TRUE='#'
27928 JPEG_DELEGATE_FALSE=
27929fi
27930
27931
27932
27933
27934#
27935# Check for JPEG Version 2 delegate library.
27936#
27937
27938# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027939if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027940 withval=$with_jp2; with_jp2=$withval
27941else
27942 with_jp2='yes'
27943fi
27944
27945
27946if test "$with_jp2" != 'yes'; then
27947 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27948fi
27949
27950have_jp2='no'
27951JP2_LIBS=''
27952if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027954$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027956$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027958$as_echo "" >&6; }
27959 failed=0
27960 passed=0
cristy8b350f62009-11-15 23:12:43 +000027961 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27962if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027963 passed=`expr $passed + 1`
27964else
27965 failed=`expr $failed + 1`
27966fi
27967
27968
cristy8b350f62009-11-15 23:12:43 +000027969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027970$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027971if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027972 $as_echo_n "(cached) " >&6
27973else
27974 ac_check_lib_save_LIBS=$LIBS
27975LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027977/* end confdefs.h. */
27978
27979/* Override any GCC internal prototype to avoid an error.
27980 Use char because int might match the return type of a GCC
27981 builtin and then its argument prototype would still apply. */
27982#ifdef __cplusplus
27983extern "C"
27984#endif
27985char jas_stream_fopen ();
27986int
27987main ()
27988{
27989return jas_stream_fopen ();
27990 ;
27991 return 0;
27992}
27993_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027994if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027995 ac_cv_lib_jasper_jas_stream_fopen=yes
27996else
cristy8b350f62009-11-15 23:12:43 +000027997 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027998fi
cristy8b350f62009-11-15 23:12:43 +000027999rm -f core conftest.err conftest.$ac_objext \
28000 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028001LIBS=$ac_check_lib_save_LIBS
28002fi
cristy8b350f62009-11-15 23:12:43 +000028003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028004$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028005if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028006 passed=`expr $passed + 1`
28007else
28008 failed=`expr $failed + 1`
28009fi
28010
cristy8b350f62009-11-15 23:12:43 +000028011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028012$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28013 if test $passed -gt 0; then
28014 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028016$as_echo "no -- some components failed test" >&6; }
28017 have_jp2='no (failed tests)'
28018 else
28019 JP2_LIBS='-ljasper'
28020 LIBS="$JP2_LIBS $LIBS"
28021
cristy8b350f62009-11-15 23:12:43 +000028022$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028023
cristy8b350f62009-11-15 23:12:43 +000028024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028025$as_echo "yes" >&6; }
28026 have_jp2='yes'
28027 fi
28028 else
cristy8b350f62009-11-15 23:12:43 +000028029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028030$as_echo "no" >&6; }
28031 fi
28032fi
28033 if test "$have_jp2" = 'yes'; then
28034 JP2_DELEGATE_TRUE=
28035 JP2_DELEGATE_FALSE='#'
28036else
28037 JP2_DELEGATE_TRUE='#'
28038 JP2_DELEGATE_FALSE=
28039fi
28040
28041
28042
28043
28044#
28045# Check for LCMS delegate library.
28046#
28047
28048# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028049if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028050 withval=$with_lcms; with_lcms=$withval
28051else
28052 with_lcms='yes'
28053fi
28054
28055
28056if test "$with_lcms" != 'yes'; then
28057 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28058fi
28059
28060have_lcms='no'
28061LCMS_LIBS=''
28062if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028064$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028066$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028068$as_echo "" >&6; }
28069 failed=0
28070 passed=0
28071 have_lcms_header='no'
cristyd09bcf92010-03-25 03:04:45 +000028072 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28073if test "x$ac_cv_header_lcms2_h" = x""yes; then :
28074 have_lcms_header='yes'
28075fi
28076
28077
28078 if test "$have_lcms_header" = 'yes'; then
28079 passed=`expr $passed + 1`
28080
28081$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28082
28083 else
28084 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms2.h" "ac_cv_header_lcms_lcms2_h" "$ac_includes_default"
28085if test "x$ac_cv_header_lcms_lcms2_h" = x""yes; then :
28086 have_lcms_header='yes'
28087fi
28088
28089
28090 if test "$have_lcms_header" = 'yes'; then
28091 passed=`expr $passed + 1`
28092
28093$as_echo "#define HAVE_LCMS_LCMS2_H 1" >>confdefs.h
28094
28095 else
28096 failed=`expr $failed + 1`
28097 fi
28098 fi
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms2" >&5
28100$as_echo_n "checking for cmsOpenProfileFromMem in -llcms2... " >&6; }
28101if test "${ac_cv_lib_lcms2_cmsOpenProfileFromMem+set}" = set; then :
28102 $as_echo_n "(cached) " >&6
28103else
28104 ac_check_lib_save_LIBS=$LIBS
28105LIBS="-llcms2 $LIBS"
28106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28107/* end confdefs.h. */
28108
28109/* Override any GCC internal prototype to avoid an error.
28110 Use char because int might match the return type of a GCC
28111 builtin and then its argument prototype would still apply. */
28112#ifdef __cplusplus
28113extern "C"
28114#endif
28115char cmsOpenProfileFromMem ();
28116int
28117main ()
28118{
28119return cmsOpenProfileFromMem ();
28120 ;
28121 return 0;
28122}
28123_ACEOF
28124if ac_fn_c_try_link "$LINENO"; then :
28125 ac_cv_lib_lcms2_cmsOpenProfileFromMem=yes
28126else
28127 ac_cv_lib_lcms2_cmsOpenProfileFromMem=no
28128fi
28129rm -f core conftest.err conftest.$ac_objext \
28130 conftest$ac_exeext conftest.$ac_ext
28131LIBS=$ac_check_lib_save_LIBS
28132fi
28133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&5
28134$as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&6; }
28135if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromMem" = x""yes; then :
28136 passed=`expr $passed + 1`
28137else
28138 failed=`expr $failed + 1`
28139fi
28140
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS2 package is complete" >&5
28142$as_echo_n "checking if LCMS2 package is complete... " >&6; }
28143 if test $passed -gt 0; then
28144 if test $failed -gt 0; then
28145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28146$as_echo "no -- some components failed test" >&6; }
28147 have_lcms='no (failed tests)'
28148 else
28149 LCMS_LIBS='-llcms2'
28150 LIBS="$LCMS_LIBS $LIBS"
28151
28152$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28153
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28155$as_echo "yes" >&6; }
28156 have_lcms='yes'
28157 fi
28158 else
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28160$as_echo "no" >&6; }
28161 fi
28162fi
28163
28164if test "$with_lcms" != 'no'; then
28165if test "$have_lcms" == 'no'; then
28166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28167$as_echo "-------------------------------------------------------------" >&6; }
28168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
28169$as_echo_n "checking for LCMS... " >&6; }
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28171$as_echo "" >&6; }
28172 failed=0
28173 passed=0
28174 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000028175 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
28176if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028177 have_lcms_header='yes'
28178fi
28179
28180
28181 if test "$have_lcms_header" = 'yes'; then
28182 passed=`expr $passed + 1`
28183
cristy8b350f62009-11-15 23:12:43 +000028184$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028185
28186 else
cristy8b350f62009-11-15 23:12:43 +000028187 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28188if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028189 have_lcms_header='yes'
28190fi
28191
28192
28193 if test "$have_lcms_header" = 'yes'; then
28194 passed=`expr $passed + 1`
28195
cristy8b350f62009-11-15 23:12:43 +000028196$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028197
28198 else
28199 failed=`expr $failed + 1`
28200 fi
28201 fi
cristy8b350f62009-11-15 23:12:43 +000028202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000028203$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028204if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028205 $as_echo_n "(cached) " >&6
28206else
28207 ac_check_lib_save_LIBS=$LIBS
28208LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028210/* end confdefs.h. */
28211
28212/* Override any GCC internal prototype to avoid an error.
28213 Use char because int might match the return type of a GCC
28214 builtin and then its argument prototype would still apply. */
28215#ifdef __cplusplus
28216extern "C"
28217#endif
28218char cmsOpenProfileFromMem ();
28219int
28220main ()
28221{
28222return cmsOpenProfileFromMem ();
28223 ;
28224 return 0;
28225}
28226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028227if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028228 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
28229else
cristy8b350f62009-11-15 23:12:43 +000028230 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000028231fi
cristy8b350f62009-11-15 23:12:43 +000028232rm -f core conftest.err conftest.$ac_objext \
28233 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028234LIBS=$ac_check_lib_save_LIBS
28235fi
cristy8b350f62009-11-15 23:12:43 +000028236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000028237$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028238if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028239 passed=`expr $passed + 1`
28240else
28241 failed=`expr $failed + 1`
28242fi
28243
cristy8b350f62009-11-15 23:12:43 +000028244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028245$as_echo_n "checking if LCMS package is complete... " >&6; }
28246 if test $passed -gt 0; then
28247 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028249$as_echo "no -- some components failed test" >&6; }
28250 have_lcms='no (failed tests)'
28251 else
28252 LCMS_LIBS='-llcms'
28253 LIBS="$LCMS_LIBS $LIBS"
28254
cristy8b350f62009-11-15 23:12:43 +000028255$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028256
cristy8b350f62009-11-15 23:12:43 +000028257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028258$as_echo "yes" >&6; }
28259 have_lcms='yes'
28260 fi
28261 else
cristy8b350f62009-11-15 23:12:43 +000028262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028263$as_echo "no" >&6; }
28264 fi
28265fi
cristyd09bcf92010-03-25 03:04:45 +000028266fi
cristy3ed852e2009-09-05 21:47:34 +000028267 if test "$have_lcms" = 'yes'; then
28268 LCMS_DELEGATE_TRUE=
28269 LCMS_DELEGATE_FALSE='#'
28270else
28271 LCMS_DELEGATE_TRUE='#'
28272 LCMS_DELEGATE_FALSE=
28273fi
28274
28275
28276
28277
28278#
28279# Check for the LQR (Liquid Rescale) delegate library.
28280#
28281
28282# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028283if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028284 withval=$with_lqr; with_lqr=$withval
28285else
28286 with_lqr='yes'
28287fi
28288
28289
28290if test "$with_lqr" != 'yes'; then
28291 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28292fi
28293
28294have_lqr='no'
28295LQR_CFLAGS=""
28296LQR_LIBS=""
28297LQR_PKG=""
28298if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028300$as_echo "-------------------------------------------------------------" >&6; }
28301
28302pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028304$as_echo_n "checking for LQR... " >&6; }
28305
28306if test -n "$LQR_CFLAGS"; then
28307 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28308 elif test -n "$PKG_CONFIG"; then
28309 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028311 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28312 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28314 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028315 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28316else
28317 pkg_failed=yes
28318fi
28319 else
28320 pkg_failed=untried
28321fi
28322if test -n "$LQR_LIBS"; then
28323 pkg_cv_LQR_LIBS="$LQR_LIBS"
28324 elif test -n "$PKG_CONFIG"; then
28325 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028326 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028327 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28328 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28330 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028331 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28332else
28333 pkg_failed=yes
28334fi
28335 else
28336 pkg_failed=untried
28337fi
28338
28339
28340
28341if test $pkg_failed = yes; then
28342
28343if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28344 _pkg_short_errors_supported=yes
28345else
28346 _pkg_short_errors_supported=no
28347fi
28348 if test $_pkg_short_errors_supported = yes; then
28349 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28350 else
28351 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28352 fi
28353 # Put the nasty error message in config.log where it belongs
28354 echo "$LQR_PKG_ERRORS" >&5
28355
cristy8b350f62009-11-15 23:12:43 +000028356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028357$as_echo "no" >&6; }
28358 have_lqr=no
28359elif test $pkg_failed = untried; then
28360 have_lqr=no
28361else
28362 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28363 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028365$as_echo "yes" >&6; }
28366 have_lqr=yes
28367fi
cristy8b350f62009-11-15 23:12:43 +000028368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028369$as_echo "" >&6; }
28370fi
28371
28372if test "$have_lqr" = 'yes'; then
28373
cristy8b350f62009-11-15 23:12:43 +000028374$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028375
28376 CFLAGS="$LQR_CFLAGS $CFLAGS"
28377fi
28378
28379 if test "$have_lqr" = 'yes'; then
28380 LQR_DELEGATE_TRUE=
28381 LQR_DELEGATE_FALSE='#'
28382else
28383 LQR_DELEGATE_TRUE='#'
28384 LQR_DELEGATE_FALSE=
28385fi
28386
28387
28388
28389
28390
28391#
28392# Check for the OpenEXR delegate library.
28393#
28394
28395# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028396if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028397 withval=$with_openexr; with_openexr=$withval
28398else
28399 with_openexr='yes'
28400fi
28401
28402
28403if test "$with_openexr" != 'yes'; then
28404 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28405fi
28406
28407have_openexr='no'
28408OPENEXR_CFLAGS=""
28409OPENEXR_LIBS=""
28410OPENEXR_PKG=""
28411if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028413$as_echo "-------------------------------------------------------------" >&6; }
28414
28415pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028417$as_echo_n "checking for OPENEXR... " >&6; }
28418
28419if test -n "$OPENEXR_CFLAGS"; then
28420 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28421 elif test -n "$PKG_CONFIG"; then
28422 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028424 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28425 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28427 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028428 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28429else
28430 pkg_failed=yes
28431fi
28432 else
28433 pkg_failed=untried
28434fi
28435if test -n "$OPENEXR_LIBS"; then
28436 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28437 elif test -n "$PKG_CONFIG"; then
28438 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028439 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028440 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28441 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28443 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028444 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28445else
28446 pkg_failed=yes
28447fi
28448 else
28449 pkg_failed=untried
28450fi
28451
28452
28453
28454if test $pkg_failed = yes; then
28455
28456if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28457 _pkg_short_errors_supported=yes
28458else
28459 _pkg_short_errors_supported=no
28460fi
28461 if test $_pkg_short_errors_supported = yes; then
28462 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28463 else
28464 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28465 fi
28466 # Put the nasty error message in config.log where it belongs
28467 echo "$OPENEXR_PKG_ERRORS" >&5
28468
cristy8b350f62009-11-15 23:12:43 +000028469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028470$as_echo "no" >&6; }
28471 have_openexr=no
28472elif test $pkg_failed = untried; then
28473 have_openexr=no
28474else
28475 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28476 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028478$as_echo "yes" >&6; }
28479 have_openexr=yes
28480fi
cristy8b350f62009-11-15 23:12:43 +000028481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028482$as_echo "" >&6; }
28483fi
28484
28485if test "$have_openexr" = 'yes'; then
28486
cristy8b350f62009-11-15 23:12:43 +000028487$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028488
28489 if test "$with_modules" = 'no'; then
28490 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28491 fi
28492fi
28493
28494 if test "$have_openexr" = 'yes'; then
28495 OPENEXR_DELEGATE_TRUE=
28496 OPENEXR_DELEGATE_FALSE='#'
28497else
28498 OPENEXR_DELEGATE_TRUE='#'
28499 OPENEXR_DELEGATE_FALSE=
28500fi
28501
28502
28503
28504
28505
28506#
28507# Check for PNG delegate library.
28508#
28509
28510# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028511if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028512 withval=$with_png; with_png=$withval
28513else
28514 with_png='yes'
28515fi
28516
28517
28518if test "$with_png" != 'yes'; then
28519 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28520fi
28521
28522have_png='no'
28523PNG_LIBS=''
28524if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028526$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028528$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028530$as_echo "" >&6; }
28531 failed=0
28532 passed=0
cristy8b350f62009-11-15 23:12:43 +000028533 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28534if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028535 passed=`expr $passed + 1`
28536else
28537 failed=`expr $failed + 1`
28538fi
28539
28540
cristy8b350f62009-11-15 23:12:43 +000028541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028542$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028543if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028544 $as_echo_n "(cached) " >&6
28545else
28546 ac_check_lib_save_LIBS=$LIBS
28547LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028549/* end confdefs.h. */
28550
28551/* Override any GCC internal prototype to avoid an error.
28552 Use char because int might match the return type of a GCC
28553 builtin and then its argument prototype would still apply. */
28554#ifdef __cplusplus
28555extern "C"
28556#endif
28557char png_get_io_ptr ();
28558int
28559main ()
28560{
28561return png_get_io_ptr ();
28562 ;
28563 return 0;
28564}
28565_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028566if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028567 ac_cv_lib_png_png_get_io_ptr=yes
28568else
cristy8b350f62009-11-15 23:12:43 +000028569 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028570fi
cristy8b350f62009-11-15 23:12:43 +000028571rm -f core conftest.err conftest.$ac_objext \
28572 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028573LIBS=$ac_check_lib_save_LIBS
28574fi
cristy8b350f62009-11-15 23:12:43 +000028575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028576$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028577if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028578 passed=`expr $passed + 1`
28579else
28580 failed=`expr $failed + 1`
28581fi
28582
cristy8b350f62009-11-15 23:12:43 +000028583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028584$as_echo_n "checking if PNG package is complete... " >&6; }
28585 if test $passed -gt 0; then
28586 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028588$as_echo "no -- some components failed test" >&6; }
28589 have_png='no (failed tests)'
28590 else
28591 PNG_LIBS='-lpng'
28592 LIBS="$PNG_LIBS $LIBS"
28593
cristy8b350f62009-11-15 23:12:43 +000028594$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028595
cristy8b350f62009-11-15 23:12:43 +000028596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028597$as_echo "yes" >&6; }
28598 have_png='yes'
28599 fi
28600 else
cristy8b350f62009-11-15 23:12:43 +000028601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028602$as_echo "no" >&6; }
28603 fi
28604fi
28605 if test "$have_png" = 'yes'; then
28606 PNG_DELEGATE_TRUE=
28607 PNG_DELEGATE_FALSE='#'
28608else
28609 PNG_DELEGATE_TRUE='#'
28610 PNG_DELEGATE_FALSE=
28611fi
28612
28613
28614
28615
28616#
28617# Check for RSVG delegate library.
28618#
28619
28620# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028621if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028622 withval=$with_rsvg; with_rsvg=$withval
28623else
28624 with_rsvg=$have_x
28625fi
28626
28627
28628if test "$with_rsvg" != 'yes'; then
28629 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28630fi
28631
28632have_rsvg='no'
28633have_cairo='no'
28634RSVG_CFLAGS=""
28635RSVG_LIBS=""
28636RSVG_PKG=""
28637if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028639$as_echo "-------------------------------------------------------------" >&6; }
28640
28641pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028643$as_echo_n "checking for RSVG... " >&6; }
28644
28645if test -n "$RSVG_CFLAGS"; then
28646 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28647 elif test -n "$PKG_CONFIG"; then
28648 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028649 { { $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 +000028650 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28651 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28653 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028654 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28655else
28656 pkg_failed=yes
28657fi
28658 else
28659 pkg_failed=untried
28660fi
28661if test -n "$RSVG_LIBS"; then
28662 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28663 elif test -n "$PKG_CONFIG"; then
28664 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028665 { { $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 +000028666 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28667 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28669 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028670 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28671else
28672 pkg_failed=yes
28673fi
28674 else
28675 pkg_failed=untried
28676fi
28677
28678
28679
28680if test $pkg_failed = yes; then
28681
28682if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28683 _pkg_short_errors_supported=yes
28684else
28685 _pkg_short_errors_supported=no
28686fi
28687 if test $_pkg_short_errors_supported = yes; then
28688 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28689 else
28690 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28691 fi
28692 # Put the nasty error message in config.log where it belongs
28693 echo "$RSVG_PKG_ERRORS" >&5
28694
cristy8b350f62009-11-15 23:12:43 +000028695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028696$as_echo "no" >&6; }
28697 have_rsvg=no
28698elif test $pkg_failed = untried; then
28699 have_rsvg=no
28700else
28701 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28702 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028704$as_echo "yes" >&6; }
28705 have_rsvg=yes
28706fi
cristy8b350f62009-11-15 23:12:43 +000028707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028708$as_echo "" >&6; }
28709
28710pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028712$as_echo_n "checking for CAIRO_SVG... " >&6; }
28713
28714if test -n "$CAIRO_SVG_CFLAGS"; then
28715 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28716 elif test -n "$PKG_CONFIG"; then
28717 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028719 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28720 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28722 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028723 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28724else
28725 pkg_failed=yes
28726fi
28727 else
28728 pkg_failed=untried
28729fi
28730if test -n "$CAIRO_SVG_LIBS"; then
28731 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28732 elif test -n "$PKG_CONFIG"; then
28733 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028735 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28736 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28738 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028739 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28740else
28741 pkg_failed=yes
28742fi
28743 else
28744 pkg_failed=untried
28745fi
28746
28747
28748
28749if test $pkg_failed = yes; then
28750
28751if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28752 _pkg_short_errors_supported=yes
28753else
28754 _pkg_short_errors_supported=no
28755fi
28756 if test $_pkg_short_errors_supported = yes; then
28757 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28758 else
28759 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28760 fi
28761 # Put the nasty error message in config.log where it belongs
28762 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28763
cristy8b350f62009-11-15 23:12:43 +000028764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028765$as_echo "no" >&6; }
28766 have_cairo=no
28767elif test $pkg_failed = untried; then
28768 have_cairo=no
28769else
28770 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28771 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028773$as_echo "yes" >&6; }
28774 have_cairo=yes
28775fi
cristy8b350f62009-11-15 23:12:43 +000028776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028777$as_echo "" >&6; }
28778fi
28779
28780if test "$have_rsvg" = 'yes'; then
28781
cristy8b350f62009-11-15 23:12:43 +000028782$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028783
28784 if test "$with_modules" = 'no'; then
28785 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28786 fi
28787fi
28788
28789if test "$have_cairo" = 'yes'; then
28790
cristy8b350f62009-11-15 23:12:43 +000028791$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028792
28793 if test "$with_modules" = 'no'; then
28794 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28795 fi
28796fi
28797
28798 if test "$have_rsvg" = 'yes'; then
28799 RSVG_DELEGATE_TRUE=
28800 RSVG_DELEGATE_FALSE='#'
28801else
28802 RSVG_DELEGATE_TRUE='#'
28803 RSVG_DELEGATE_FALSE=
28804fi
28805
28806 if test "$have_cairo" = 'yes'; then
28807 CAIRO_DELEGATE_TRUE=
28808 CAIRO_DELEGATE_FALSE='#'
28809else
28810 CAIRO_DELEGATE_TRUE='#'
28811 CAIRO_DELEGATE_FALSE=
28812fi
28813
28814
28815
28816
28817
28818#
28819# Check for TIFF delegate library.
28820#
28821
28822# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028823if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028824 withval=$with_tiff; with_tiff=$withval
28825else
28826 with_tiff='yes'
28827fi
28828
28829
28830if test "$with_tiff" != 'yes'; then
28831 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28832fi
28833
28834have_tiff='no'
28835TIFF_LIBS=''
28836if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028838$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028840$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028842$as_echo "" >&6; }
28843 failed=0
28844 passed=0
cristy8b350f62009-11-15 23:12:43 +000028845 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28846if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028847 passed=`expr $passed + 1`
28848else
28849 failed=`expr $failed + 1`
28850fi
28851
28852
cristy8b350f62009-11-15 23:12:43 +000028853 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28854if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028855 passed=`expr $passed + 1`
28856else
28857 failed=`expr $failed + 1`
28858fi
28859
28860
cristy8b350f62009-11-15 23:12:43 +000028861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028862$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028863if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028864 $as_echo_n "(cached) " >&6
28865else
28866 ac_check_lib_save_LIBS=$LIBS
28867LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028869/* end confdefs.h. */
28870
28871/* Override any GCC internal prototype to avoid an error.
28872 Use char because int might match the return type of a GCC
28873 builtin and then its argument prototype would still apply. */
28874#ifdef __cplusplus
28875extern "C"
28876#endif
28877char TIFFOpen ();
28878int
28879main ()
28880{
28881return TIFFOpen ();
28882 ;
28883 return 0;
28884}
28885_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028886if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028887 ac_cv_lib_tiff_TIFFOpen=yes
28888else
cristy8b350f62009-11-15 23:12:43 +000028889 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028890fi
cristy8b350f62009-11-15 23:12:43 +000028891rm -f core conftest.err conftest.$ac_objext \
28892 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028893LIBS=$ac_check_lib_save_LIBS
28894fi
cristy8b350f62009-11-15 23:12:43 +000028895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028896$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028897if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028898 passed=`expr $passed + 1`
28899else
28900 failed=`expr $failed + 1`
28901fi
28902
cristy8b350f62009-11-15 23:12:43 +000028903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028904$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028905if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028906 $as_echo_n "(cached) " >&6
28907else
28908 ac_check_lib_save_LIBS=$LIBS
28909LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028911/* end confdefs.h. */
28912
28913/* Override any GCC internal prototype to avoid an error.
28914 Use char because int might match the return type of a GCC
28915 builtin and then its argument prototype would still apply. */
28916#ifdef __cplusplus
28917extern "C"
28918#endif
28919char TIFFClientOpen ();
28920int
28921main ()
28922{
28923return TIFFClientOpen ();
28924 ;
28925 return 0;
28926}
28927_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028928if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028929 ac_cv_lib_tiff_TIFFClientOpen=yes
28930else
cristy8b350f62009-11-15 23:12:43 +000028931 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028932fi
cristy8b350f62009-11-15 23:12:43 +000028933rm -f core conftest.err conftest.$ac_objext \
28934 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028935LIBS=$ac_check_lib_save_LIBS
28936fi
cristy8b350f62009-11-15 23:12:43 +000028937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028938$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028939if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028940 passed=`expr $passed + 1`
28941else
28942 failed=`expr $failed + 1`
28943fi
28944
cristy8b350f62009-11-15 23:12:43 +000028945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028946$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028947if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028948 $as_echo_n "(cached) " >&6
28949else
28950 ac_check_lib_save_LIBS=$LIBS
28951LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028953/* end confdefs.h. */
28954
28955/* Override any GCC internal prototype to avoid an error.
28956 Use char because int might match the return type of a GCC
28957 builtin and then its argument prototype would still apply. */
28958#ifdef __cplusplus
28959extern "C"
28960#endif
28961char TIFFIsByteSwapped ();
28962int
28963main ()
28964{
28965return TIFFIsByteSwapped ();
28966 ;
28967 return 0;
28968}
28969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028970if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028971 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28972else
cristy8b350f62009-11-15 23:12:43 +000028973 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028974fi
cristy8b350f62009-11-15 23:12:43 +000028975rm -f core conftest.err conftest.$ac_objext \
28976 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028977LIBS=$ac_check_lib_save_LIBS
28978fi
cristy8b350f62009-11-15 23:12:43 +000028979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028980$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028981if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028982 passed=`expr $passed + 1`
28983else
28984 failed=`expr $failed + 1`
28985fi
28986
cristy8b350f62009-11-15 23:12:43 +000028987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028988$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028989if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028990 $as_echo_n "(cached) " >&6
28991else
28992 ac_check_lib_save_LIBS=$LIBS
28993LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028995/* end confdefs.h. */
28996
28997/* Override any GCC internal prototype to avoid an error.
28998 Use char because int might match the return type of a GCC
28999 builtin and then its argument prototype would still apply. */
29000#ifdef __cplusplus
29001extern "C"
29002#endif
29003char TIFFReadRGBATile ();
29004int
29005main ()
29006{
29007return TIFFReadRGBATile ();
29008 ;
29009 return 0;
29010}
29011_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029012if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029013 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29014else
cristy8b350f62009-11-15 23:12:43 +000029015 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029016fi
cristy8b350f62009-11-15 23:12:43 +000029017rm -f core conftest.err conftest.$ac_objext \
29018 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029019LIBS=$ac_check_lib_save_LIBS
29020fi
cristy8b350f62009-11-15 23:12:43 +000029021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029022$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029023if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029024 passed=`expr $passed + 1`
29025else
29026 failed=`expr $failed + 1`
29027fi
29028
cristy8b350f62009-11-15 23:12:43 +000029029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029030$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029031if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029032 $as_echo_n "(cached) " >&6
29033else
29034 ac_check_lib_save_LIBS=$LIBS
29035LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029037/* end confdefs.h. */
29038
29039/* Override any GCC internal prototype to avoid an error.
29040 Use char because int might match the return type of a GCC
29041 builtin and then its argument prototype would still apply. */
29042#ifdef __cplusplus
29043extern "C"
29044#endif
29045char TIFFReadRGBAStrip ();
29046int
29047main ()
29048{
29049return TIFFReadRGBAStrip ();
29050 ;
29051 return 0;
29052}
29053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029054if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029055 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29056else
cristy8b350f62009-11-15 23:12:43 +000029057 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029058fi
cristy8b350f62009-11-15 23:12:43 +000029059rm -f core conftest.err conftest.$ac_objext \
29060 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029061LIBS=$ac_check_lib_save_LIBS
29062fi
cristy8b350f62009-11-15 23:12:43 +000029063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029064$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029065if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029066 passed=`expr $passed + 1`
29067else
29068 failed=`expr $failed + 1`
29069fi
29070
cristy8b350f62009-11-15 23:12:43 +000029071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029072$as_echo_n "checking if TIFF package is complete... " >&6; }
29073 if test $passed -gt 0; then
29074 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029076$as_echo "no -- some components failed test" >&6; }
29077 have_tiff='no (failed tests)'
29078 else
29079 TIFF_LIBS='-ltiff'
29080 LIBS="$TIFF_LIBS $LIBS"
29081
cristy8b350f62009-11-15 23:12:43 +000029082$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029083
cristy8b350f62009-11-15 23:12:43 +000029084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029085$as_echo "yes" >&6; }
29086 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029087 for ac_header in tiffconf.h
29088do :
29089 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29090if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029091 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029092#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029093_ACEOF
29094
29095fi
29096
29097done
29098
cristy8b350f62009-11-15 23:12:43 +000029099 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029100 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29101 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029102do :
29103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29104ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29105eval as_val=\$$as_ac_var
29106 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029107 cat >>confdefs.h <<_ACEOF
29108#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29109_ACEOF
29110
29111fi
29112done
29113
29114 fi
29115 else
cristy8b350f62009-11-15 23:12:43 +000029116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029117$as_echo "no" >&6; }
29118 fi
29119fi
29120 if test "$have_tiff" = 'yes'; then
29121 TIFF_DELEGATE_TRUE=
29122 TIFF_DELEGATE_FALSE='#'
29123else
29124 TIFF_DELEGATE_TRUE='#'
29125 TIFF_DELEGATE_FALSE=
29126fi
29127
29128
29129
29130
29131#
29132# Set Windows font directory.
29133#
29134
29135# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029136if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029137 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29138else
29139 with_windows_font_dir=''
29140fi
29141
29142if test "$with_windows_font_dir" != '' ; then
29143 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29144fi
29145
29146
29147#
29148# Check for WMF delegate library.
29149#
29150
29151# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029152if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029153 withval=$with_wmf; with_wmf=$withval
29154else
cristy8d63d1d2010-01-06 20:38:37 +000029155 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029156fi
29157
29158
29159if test "$with_wmf" != 'yes'; then
29160 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29161fi
29162
29163have_wmf='no'
29164WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029165if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029167$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029169$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029171$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029172 failed=0
29173 passed=0
29174 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29175if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29176 passed=`expr $passed + 1`
29177else
29178 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029179fi
29180
29181
cristy735e8942010-04-02 20:32:57 +000029182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29183$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29184if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029185 $as_echo_n "(cached) " >&6
29186else
29187 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029188LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029190/* end confdefs.h. */
29191
29192/* Override any GCC internal prototype to avoid an error.
29193 Use char because int might match the return type of a GCC
29194 builtin and then its argument prototype would still apply. */
29195#ifdef __cplusplus
29196extern "C"
29197#endif
cristy735e8942010-04-02 20:32:57 +000029198char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029199int
29200main ()
29201{
cristy735e8942010-04-02 20:32:57 +000029202return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029203 ;
29204 return 0;
29205}
29206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029207if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029208 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029209else
cristy735e8942010-04-02 20:32:57 +000029210 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029211fi
cristy8b350f62009-11-15 23:12:43 +000029212rm -f core conftest.err conftest.$ac_objext \
29213 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029214LIBS=$ac_check_lib_save_LIBS
29215fi
cristy735e8942010-04-02 20:32:57 +000029216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29217$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29218if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29219 passed=`expr $passed + 1`
29220else
29221 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029222fi
29223
cristy735e8942010-04-02 20:32:57 +000029224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29225$as_echo_n "checking if WMF package is complete... " >&6; }
29226 if test $passed -gt 0; then
29227 if test $failed -gt 0; then
29228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29229$as_echo "no -- some components failed test" >&6; }
29230 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029231 else
cristy735e8942010-04-02 20:32:57 +000029232 WMF_LIBS='-lwmf -lwmflite'
29233 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029234
cristy8b350f62009-11-15 23:12:43 +000029235$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029236
cristy735e8942010-04-02 20:32:57 +000029237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029238$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029239 have_wmf='yes'
29240 fi
cristy3ed852e2009-09-05 21:47:34 +000029241 else
cristy8b350f62009-11-15 23:12:43 +000029242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029243$as_echo "no" >&6; }
29244 fi
29245fi
29246 if test "$have_wmf" = 'yes'; then
29247 WMF_DELEGATE_TRUE=
29248 WMF_DELEGATE_FALSE='#'
29249else
29250 WMF_DELEGATE_TRUE='#'
29251 WMF_DELEGATE_FALSE=
29252fi
29253
29254
29255
29256
29257
cristy735e8942010-04-02 20:32:57 +000029258
cristy3ed852e2009-09-05 21:47:34 +000029259#
29260# Check for XML delegate library.
29261#
29262
29263# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029264if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029265 withval=$with_xml; with_xml=$withval
29266else
29267 with_xml=$have_x
29268fi
29269
29270
29271if test "$with_xml" != 'yes' ; then
29272 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29273fi
29274
29275have_xml='no'
29276XML_LIBS=''
29277if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029279$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029281$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029283$as_echo "" >&6; }
29284 PERSIST_LDFLAGS=$LDFLAGS
29285 PERSIST_CPPFLAGS=$CPPFLAGS
29286 xml2_config=''
29287 for ac_prog in xml2-config
29288do
29289 # Extract the first word of "$ac_prog", so it can be a program name with args.
29290set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029292$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029293if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029294 $as_echo_n "(cached) " >&6
29295else
29296 if test -n "$xml2_config"; then
29297 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29298else
29299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29300for as_dir in $PATH
29301do
29302 IFS=$as_save_IFS
29303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29306 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029308 break 2
29309 fi
29310done
cristy8b350f62009-11-15 23:12:43 +000029311 done
cristy3ed852e2009-09-05 21:47:34 +000029312IFS=$as_save_IFS
29313
29314fi
29315fi
29316xml2_config=$ac_cv_prog_xml2_config
29317if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029319$as_echo "$xml2_config" >&6; }
29320else
cristy8b350f62009-11-15 23:12:43 +000029321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029322$as_echo "no" >&6; }
29323fi
29324
29325
29326 test -n "$xml2_config" && break
29327done
29328 if test -n "$xml2_config"; then
29329 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29330 # the shared library installed under /usr/lib, whereas the package
29331 # installs itself under $prefix/libxml and $prefix/lib.
29332 xml2_prefix=`xml2-config --prefix`
29333 if test -d "${xml2_prefix}/include/libxml2"; then
29334 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29335 fi
29336 if test "${xml2_prefix}" != '/usr'; then
29337 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29338 fi
29339 fi
29340 failed=0
29341 passed=0
cristy8b350f62009-11-15 23:12:43 +000029342 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29343if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029344 passed=`expr $passed + 1`
29345else
29346 failed=`expr $failed + 1`
29347fi
29348
29349
cristy8b350f62009-11-15 23:12:43 +000029350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029351$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029352if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029353 $as_echo_n "(cached) " >&6
29354else
29355 ac_check_lib_save_LIBS=$LIBS
29356LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029358/* end confdefs.h. */
29359
29360/* Override any GCC internal prototype to avoid an error.
29361 Use char because int might match the return type of a GCC
29362 builtin and then its argument prototype would still apply. */
29363#ifdef __cplusplus
29364extern "C"
29365#endif
29366char xmlParseExternalEntity ();
29367int
29368main ()
29369{
29370return xmlParseExternalEntity ();
29371 ;
29372 return 0;
29373}
29374_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029375if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029376 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29377else
cristy8b350f62009-11-15 23:12:43 +000029378 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029379fi
cristy8b350f62009-11-15 23:12:43 +000029380rm -f core conftest.err conftest.$ac_objext \
29381 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029382LIBS=$ac_check_lib_save_LIBS
29383fi
cristy8b350f62009-11-15 23:12:43 +000029384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029385$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029386if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029387 passed=`expr $passed + 1`
29388else
29389 failed=`expr $failed + 1`
29390fi
29391
cristy8b350f62009-11-15 23:12:43 +000029392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029393$as_echo_n "checking if XML package is complete... " >&6; }
29394 if test $passed -gt 0; then
29395 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029397$as_echo "no -- some components failed test" >&6; }
29398 have_xml='no (failed tests)'
29399 LDFLAGS="$PERSIST_LDFLAGS"
29400 CPPFLAGS="$PERSIST_CPPFLAGS"
29401 else
29402 XML_LIBS='-lxml2'
29403 LIBS="$XML_LIBS $LIBS"
29404
cristy8b350f62009-11-15 23:12:43 +000029405$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029406
cristy8b350f62009-11-15 23:12:43 +000029407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029408$as_echo "yes" >&6; }
29409 have_xml='yes'
29410 fi
29411 else
cristy8b350f62009-11-15 23:12:43 +000029412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029413$as_echo "no" >&6; }
29414 fi
29415fi
29416 if test "$have_xml" = 'yes'; then
29417 XML_DELEGATE_TRUE=
29418 XML_DELEGATE_FALSE='#'
29419else
29420 XML_DELEGATE_TRUE='#'
29421 XML_DELEGATE_FALSE=
29422fi
29423
29424
29425
29426
29427# Substitute compiler name to build/link PerlMagick
29428#
29429
29430
29431#
29432# Configure install Paths
29433#
29434
29435# Subdirectory under lib to place ImageMagick lib files
29436LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29437
29438cat >>confdefs.h <<_ACEOF
29439#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29440_ACEOF
29441
29442
29443# Path to ImageMagick bin directory
29444EXECUTABLE_PATH="${BIN_DIR}"
29445DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29446case "${build_os}" in
29447 mingw* )
29448 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29449 ;;
29450esac
29451
29452cat >>confdefs.h <<_ACEOF
29453#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29454_ACEOF
29455
29456
29457
29458# Path to ImageMagick lib
29459LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29460DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29461case "${build_os}" in
29462 mingw* )
29463 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29464 ;;
29465esac
29466
29467cat >>confdefs.h <<_ACEOF
29468#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29469_ACEOF
29470
29471
29472
29473# Subdirectory under lib to place ImageMagick configuration files
29474CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29475
29476cat >>confdefs.h <<_ACEOF
29477#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29478_ACEOF
29479
29480CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29481DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29482case "${build_os}" in
29483 mingw* )
29484 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29485 ;;
29486esac
29487
29488cat >>confdefs.h <<_ACEOF
29489#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29490_ACEOF
29491
29492
29493
29494#
29495# Subdirectory under lib to place ImageMagick coder module files
29496CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29497
29498cat >>confdefs.h <<_ACEOF
29499#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29500_ACEOF
29501
29502CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29503DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29504case "${build_os}" in
29505 mingw* )
29506 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29507 ;;
29508esac
29509
29510cat >>confdefs.h <<_ACEOF
29511#define CODER_PATH "$DEFINE_CODER_PATH"
29512_ACEOF
29513
29514
29515
29516#
29517# Subdirectory under lib to place ImageMagick filter module files
29518FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29519
29520cat >>confdefs.h <<_ACEOF
29521#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29522_ACEOF
29523
29524FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29525DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29526case "${build_os}" in
29527 mingw* )
29528 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29529 ;;
29530esac
29531
29532cat >>confdefs.h <<_ACEOF
29533#define FILTER_PATH "$DEFINE_FILTER_PATH"
29534_ACEOF
29535
29536
29537
29538#
29539# Path to ImageMagick documentation files
29540DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29541DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29542DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29543case "${build_os}" in
29544 mingw* )
29545 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29546 ;;
29547esac
29548
29549cat >>confdefs.h <<_ACEOF
29550#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29551_ACEOF
29552
29553
29554
29555#
29556# Path to ImageMagick share files
29557SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29558SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29559DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29560case "${build_os}" in
29561 mingw* )
29562 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29563 ;;
29564esac
29565
29566cat >>confdefs.h <<_ACEOF
29567#define SHARE_PATH "$DEFINE_SHARE_PATH"
29568_ACEOF
29569
29570
29571
29572# Subdirectory under share to place ImageMagick configuration files
29573SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29574
29575cat >>confdefs.h <<_ACEOF
29576#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29577_ACEOF
29578
29579SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29580DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29581case "${build_os}" in
29582 mingw* )
29583 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29584 ;;
29585esac
29586
29587cat >>confdefs.h <<_ACEOF
29588#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29589_ACEOF
29590
29591
29592
29593#
29594# program_transform_name is formed for use in a Makefile, so create a
29595# modified version for use in a shell script.
29596configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29597
29598# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029600$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029602$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029604$as_echo "" >&6; }
29605AutotraceDecodeDelegateDefault='autotrace'
29606AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029607BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029608BZIPDelegateDefault='bzip2'
29609BrowseDelegateDefault='xdg-open'
29610CGMDecodeDelegateDefault='ralcgm'
29611CatDelegateDefault='cat'
29612DNGDecodeDelegateDefault='ufraw-batch'
29613GVCDecodeDelegateDefault='dot'
29614DVIDecodeDelegateDefault='dvips'
29615EchoDelegateDefault='echo'
29616EditorDelegateDefault='xterm'
29617FIGDecodeDelegateDefault='fig2dev'
29618ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29619DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29620MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29621GnuplotDecodeDelegateDefault='gnuplot'
29622HDRDecodeDelegateDefault='ra_pfm'
29623HPGLDecodeDelegateDefault='hp2xx'
29624HTMLDecodeDelegateDefault='html2ps'
29625ILBMDecodeDelegateDefault='ilbmtoppm'
29626ILBMEncodeDelegateDefault='ppmtoilbm'
29627LPDelegateDefault='lp'
29628LPRDelegateDefault='lpr'
29629LZWDecodeDelegateDefault='uncompress'
29630LZWEncodeDelegateDefault='compress'
29631LaunchDelegateDefault='gimp'
29632MANDelegateDefault='groff'
29633MPEGDecodeDelegateDefault='ffmpeg'
29634MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029635MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029636MVDelegateDefault='mv'
29637PCLDelegateDefault='pcl6'
29638PGPDecodeDelegateDefault='pgpv'
29639POVDelegateDefault='povray'
29640if test "$native_win32_build" = 'yes'; then
29641 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029642elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029643 PSDelegateDefault='gsc'
29644else
29645 PSDelegateDefault='gs'
29646fi
29647RLEEncodeDelegateDefault='rawtorle'
29648RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029649RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029650SCANDecodeDelegateDefault='scanimage'
29651TXTDelegateDefault='enscript'
29652WMFDecodeDelegateDefault='wmf2eps'
29653WWWDecodeDelegateDefault='curl'
29654XPSDelegateDefault='gxps'
29655ZipDelegateDefault='gzip'
29656
29657# Search for delegates
29658# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29659set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029661$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029662if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029663 $as_echo_n "(cached) " >&6
29664else
29665 case $AutotraceDecodeDelegate in
29666 [\\/]* | ?:[\\/]*)
29667 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29668 ;;
29669 *)
29670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29671for as_dir in $PATH
29672do
29673 IFS=$as_save_IFS
29674 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029675 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29677 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029679 break 2
29680 fi
29681done
cristy8b350f62009-11-15 23:12:43 +000029682 done
cristy3ed852e2009-09-05 21:47:34 +000029683IFS=$as_save_IFS
29684
29685 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29686 ;;
29687esac
29688fi
29689AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29690if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029692$as_echo "$AutotraceDecodeDelegate" >&6; }
29693else
cristy8b350f62009-11-15 23:12:43 +000029694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029695$as_echo "no" >&6; }
29696fi
29697
29698
29699# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29700set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029702$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029703if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029704 $as_echo_n "(cached) " >&6
29705else
29706 case $AVIDecodeDelegate in
29707 [\\/]* | ?:[\\/]*)
29708 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29709 ;;
29710 *)
29711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29712for as_dir in $PATH
29713do
29714 IFS=$as_save_IFS
29715 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029716 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29718 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029720 break 2
29721 fi
29722done
cristy8b350f62009-11-15 23:12:43 +000029723 done
cristy3ed852e2009-09-05 21:47:34 +000029724IFS=$as_save_IFS
29725
29726 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29727 ;;
29728esac
29729fi
29730AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29731if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029733$as_echo "$AVIDecodeDelegate" >&6; }
29734else
cristy8b350f62009-11-15 23:12:43 +000029735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029736$as_echo "no" >&6; }
29737fi
29738
29739
29740# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29741set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029743$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029744if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029745 $as_echo_n "(cached) " >&6
29746else
29747 case $BlenderDecodeDelegate in
29748 [\\/]* | ?:[\\/]*)
29749 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29750 ;;
29751 *)
29752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29753for as_dir in $PATH
29754do
29755 IFS=$as_save_IFS
29756 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29759 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029761 break 2
29762 fi
29763done
cristy8b350f62009-11-15 23:12:43 +000029764 done
cristy3ed852e2009-09-05 21:47:34 +000029765IFS=$as_save_IFS
29766
29767 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29768 ;;
29769esac
29770fi
29771BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29772if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029774$as_echo "$BlenderDecodeDelegate" >&6; }
29775else
cristy8b350f62009-11-15 23:12:43 +000029776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029777$as_echo "no" >&6; }
29778fi
29779
29780
29781# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29782set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029784$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029785if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029786 $as_echo_n "(cached) " >&6
29787else
29788 case $BZIPDelegate in
29789 [\\/]* | ?:[\\/]*)
29790 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29791 ;;
29792 *)
29793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29794for as_dir in $PATH
29795do
29796 IFS=$as_save_IFS
29797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29800 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029802 break 2
29803 fi
29804done
cristy8b350f62009-11-15 23:12:43 +000029805 done
cristy3ed852e2009-09-05 21:47:34 +000029806IFS=$as_save_IFS
29807
29808 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29809 ;;
29810esac
29811fi
29812BZIPDelegate=$ac_cv_path_BZIPDelegate
29813if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029815$as_echo "$BZIPDelegate" >&6; }
29816else
cristy8b350f62009-11-15 23:12:43 +000029817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029818$as_echo "no" >&6; }
29819fi
29820
29821
29822# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29823set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029825$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029826if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029827 $as_echo_n "(cached) " >&6
29828else
29829 case $BrowseDelegate in
29830 [\\/]* | ?:[\\/]*)
29831 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29832 ;;
29833 *)
29834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29835for as_dir in $PATH
29836do
29837 IFS=$as_save_IFS
29838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29841 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029843 break 2
29844 fi
29845done
cristy8b350f62009-11-15 23:12:43 +000029846 done
cristy3ed852e2009-09-05 21:47:34 +000029847IFS=$as_save_IFS
29848
29849 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29850 ;;
29851esac
29852fi
29853BrowseDelegate=$ac_cv_path_BrowseDelegate
29854if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029856$as_echo "$BrowseDelegate" >&6; }
29857else
cristy8b350f62009-11-15 23:12:43 +000029858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029859$as_echo "no" >&6; }
29860fi
29861
29862
29863# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29864set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029866$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029867if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029868 $as_echo_n "(cached) " >&6
29869else
29870 case $CGMDecodeDelegate in
29871 [\\/]* | ?:[\\/]*)
29872 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29873 ;;
29874 *)
29875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29876for as_dir in $PATH
29877do
29878 IFS=$as_save_IFS
29879 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29882 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029884 break 2
29885 fi
29886done
cristy8b350f62009-11-15 23:12:43 +000029887 done
cristy3ed852e2009-09-05 21:47:34 +000029888IFS=$as_save_IFS
29889
29890 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29891 ;;
29892esac
29893fi
29894CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29895if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029897$as_echo "$CGMDecodeDelegate" >&6; }
29898else
cristy8b350f62009-11-15 23:12:43 +000029899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029900$as_echo "no" >&6; }
29901fi
29902
29903
29904# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29905set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029907$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029908if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029909 $as_echo_n "(cached) " >&6
29910else
29911 case $CatDelegate in
29912 [\\/]* | ?:[\\/]*)
29913 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29914 ;;
29915 *)
29916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29917for as_dir in $PATH
29918do
29919 IFS=$as_save_IFS
29920 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29923 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029925 break 2
29926 fi
29927done
cristy8b350f62009-11-15 23:12:43 +000029928 done
cristy3ed852e2009-09-05 21:47:34 +000029929IFS=$as_save_IFS
29930
29931 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29932 ;;
29933esac
29934fi
29935CatDelegate=$ac_cv_path_CatDelegate
29936if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029938$as_echo "$CatDelegate" >&6; }
29939else
cristy8b350f62009-11-15 23:12:43 +000029940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029941$as_echo "no" >&6; }
29942fi
29943
29944
29945# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29946set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029948$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029949if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029950 $as_echo_n "(cached) " >&6
29951else
29952 case $DNGDecodeDelegate in
29953 [\\/]* | ?:[\\/]*)
29954 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29955 ;;
29956 *)
29957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29958for as_dir in $PATH
29959do
29960 IFS=$as_save_IFS
29961 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29964 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029966 break 2
29967 fi
29968done
cristy8b350f62009-11-15 23:12:43 +000029969 done
cristy3ed852e2009-09-05 21:47:34 +000029970IFS=$as_save_IFS
29971
29972 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29973 ;;
29974esac
29975fi
29976DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29977if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029979$as_echo "$DNGDecodeDelegate" >&6; }
29980else
cristy8b350f62009-11-15 23:12:43 +000029981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029982$as_echo "no" >&6; }
29983fi
29984
29985
29986# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29987set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029989$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029990if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029991 $as_echo_n "(cached) " >&6
29992else
29993 case $GVCDecodeDelegate in
29994 [\\/]* | ?:[\\/]*)
29995 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29996 ;;
29997 *)
29998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29999for as_dir in $PATH
30000do
30001 IFS=$as_save_IFS
30002 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030003 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30005 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030007 break 2
30008 fi
30009done
cristy8b350f62009-11-15 23:12:43 +000030010 done
cristy3ed852e2009-09-05 21:47:34 +000030011IFS=$as_save_IFS
30012
30013 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30014 ;;
30015esac
30016fi
30017GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30018if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030020$as_echo "$GVCDecodeDelegate" >&6; }
30021else
cristy8b350f62009-11-15 23:12:43 +000030022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030023$as_echo "no" >&6; }
30024fi
30025
30026
30027# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30028set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030030$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030031if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030032 $as_echo_n "(cached) " >&6
30033else
30034 case $DVIDecodeDelegate in
30035 [\\/]* | ?:[\\/]*)
30036 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30037 ;;
30038 *)
30039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30040for as_dir in $PATH
30041do
30042 IFS=$as_save_IFS
30043 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030044 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30046 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030048 break 2
30049 fi
30050done
cristy8b350f62009-11-15 23:12:43 +000030051 done
cristy3ed852e2009-09-05 21:47:34 +000030052IFS=$as_save_IFS
30053
30054 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30055 ;;
30056esac
30057fi
30058DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30059if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030061$as_echo "$DVIDecodeDelegate" >&6; }
30062else
cristy8b350f62009-11-15 23:12:43 +000030063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030064$as_echo "no" >&6; }
30065fi
30066
30067
30068# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30069set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030071$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030072if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030073 $as_echo_n "(cached) " >&6
30074else
30075 case $EchoDelegate in
30076 [\\/]* | ?:[\\/]*)
30077 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30078 ;;
30079 *)
30080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30081for as_dir in $PATH
30082do
30083 IFS=$as_save_IFS
30084 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030085 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30087 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030089 break 2
30090 fi
30091done
cristy8b350f62009-11-15 23:12:43 +000030092 done
cristy3ed852e2009-09-05 21:47:34 +000030093IFS=$as_save_IFS
30094
30095 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30096 ;;
30097esac
30098fi
30099EchoDelegate=$ac_cv_path_EchoDelegate
30100if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030102$as_echo "$EchoDelegate" >&6; }
30103else
cristy8b350f62009-11-15 23:12:43 +000030104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030105$as_echo "no" >&6; }
30106fi
30107
30108
30109# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30110set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030112$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030113if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030114 $as_echo_n "(cached) " >&6
30115else
30116 case $EditorDelegate in
30117 [\\/]* | ?:[\\/]*)
30118 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30119 ;;
30120 *)
30121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30122for as_dir in $PATH
30123do
30124 IFS=$as_save_IFS
30125 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030126 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30128 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030130 break 2
30131 fi
30132done
cristy8b350f62009-11-15 23:12:43 +000030133 done
cristy3ed852e2009-09-05 21:47:34 +000030134IFS=$as_save_IFS
30135
30136 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30137 ;;
30138esac
30139fi
30140EditorDelegate=$ac_cv_path_EditorDelegate
30141if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030143$as_echo "$EditorDelegate" >&6; }
30144else
cristy8b350f62009-11-15 23:12:43 +000030145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030146$as_echo "no" >&6; }
30147fi
30148
30149
30150# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30151set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030153$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030154if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030155 $as_echo_n "(cached) " >&6
30156else
30157 case $FIGDecodeDelegate in
30158 [\\/]* | ?:[\\/]*)
30159 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30160 ;;
30161 *)
30162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30163for as_dir in $PATH
30164do
30165 IFS=$as_save_IFS
30166 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030167 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30169 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030171 break 2
30172 fi
30173done
cristy8b350f62009-11-15 23:12:43 +000030174 done
cristy3ed852e2009-09-05 21:47:34 +000030175IFS=$as_save_IFS
30176
30177 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30178 ;;
30179esac
30180fi
30181FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30182if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030184$as_echo "$FIGDecodeDelegate" >&6; }
30185else
cristy8b350f62009-11-15 23:12:43 +000030186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030187$as_echo "no" >&6; }
30188fi
30189
30190
30191# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30192set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030194$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030195if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030196 $as_echo_n "(cached) " >&6
30197else
30198 case $ConvertDelegate in
30199 [\\/]* | ?:[\\/]*)
30200 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30201 ;;
30202 *)
30203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30204for as_dir in $PATH
30205do
30206 IFS=$as_save_IFS
30207 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30210 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030212 break 2
30213 fi
30214done
cristy8b350f62009-11-15 23:12:43 +000030215 done
cristy3ed852e2009-09-05 21:47:34 +000030216IFS=$as_save_IFS
30217
30218 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30219 ;;
30220esac
30221fi
30222ConvertDelegate=$ac_cv_path_ConvertDelegate
30223if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030225$as_echo "$ConvertDelegate" >&6; }
30226else
cristy8b350f62009-11-15 23:12:43 +000030227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030228$as_echo "no" >&6; }
30229fi
30230
30231
30232# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30233set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030235$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030236if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030237 $as_echo_n "(cached) " >&6
30238else
30239 case $DisplayDelegate in
30240 [\\/]* | ?:[\\/]*)
30241 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30242 ;;
30243 *)
30244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30245for as_dir in $PATH
30246do
30247 IFS=$as_save_IFS
30248 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30251 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030253 break 2
30254 fi
30255done
cristy8b350f62009-11-15 23:12:43 +000030256 done
cristy3ed852e2009-09-05 21:47:34 +000030257IFS=$as_save_IFS
30258
30259 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30260 ;;
30261esac
30262fi
30263DisplayDelegate=$ac_cv_path_DisplayDelegate
30264if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030266$as_echo "$DisplayDelegate" >&6; }
30267else
cristy8b350f62009-11-15 23:12:43 +000030268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030269$as_echo "no" >&6; }
30270fi
30271
30272
30273# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30274set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030276$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030277if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030278 $as_echo_n "(cached) " >&6
30279else
30280 case $MogrifyDelegate in
30281 [\\/]* | ?:[\\/]*)
30282 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30283 ;;
30284 *)
30285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30286for as_dir in $PATH
30287do
30288 IFS=$as_save_IFS
30289 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030290 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30292 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030294 break 2
30295 fi
30296done
cristy8b350f62009-11-15 23:12:43 +000030297 done
cristy3ed852e2009-09-05 21:47:34 +000030298IFS=$as_save_IFS
30299
30300 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30301 ;;
30302esac
30303fi
30304MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30305if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030307$as_echo "$MogrifyDelegate" >&6; }
30308else
cristy8b350f62009-11-15 23:12:43 +000030309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030310$as_echo "no" >&6; }
30311fi
30312
30313
30314# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30315set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030317$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030318if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030319 $as_echo_n "(cached) " >&6
30320else
30321 case $GnuplotDecodeDelegate in
30322 [\\/]* | ?:[\\/]*)
30323 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30324 ;;
30325 *)
30326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30327for as_dir in $PATH
30328do
30329 IFS=$as_save_IFS
30330 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30333 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030335 break 2
30336 fi
30337done
cristy8b350f62009-11-15 23:12:43 +000030338 done
cristy3ed852e2009-09-05 21:47:34 +000030339IFS=$as_save_IFS
30340
30341 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30342 ;;
30343esac
30344fi
30345GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30346if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030348$as_echo "$GnuplotDecodeDelegate" >&6; }
30349else
cristy8b350f62009-11-15 23:12:43 +000030350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030351$as_echo "no" >&6; }
30352fi
30353
30354
30355# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30356set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030358$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030359if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030360 $as_echo_n "(cached) " >&6
30361else
30362 case $HDRDecodeDelegate in
30363 [\\/]* | ?:[\\/]*)
30364 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30365 ;;
30366 *)
30367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30368for as_dir in $PATH
30369do
30370 IFS=$as_save_IFS
30371 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030372 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30374 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030376 break 2
30377 fi
30378done
cristy8b350f62009-11-15 23:12:43 +000030379 done
cristy3ed852e2009-09-05 21:47:34 +000030380IFS=$as_save_IFS
30381
30382 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30383 ;;
30384esac
30385fi
30386HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30387if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030389$as_echo "$HDRDecodeDelegate" >&6; }
30390else
cristy8b350f62009-11-15 23:12:43 +000030391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030392$as_echo "no" >&6; }
30393fi
30394
30395
30396# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30397set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030399$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030400if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030401 $as_echo_n "(cached) " >&6
30402else
30403 case $HPGLDecodeDelegate in
30404 [\\/]* | ?:[\\/]*)
30405 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30406 ;;
30407 *)
30408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30409for as_dir in $PATH
30410do
30411 IFS=$as_save_IFS
30412 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030413 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30415 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030417 break 2
30418 fi
30419done
cristy8b350f62009-11-15 23:12:43 +000030420 done
cristy3ed852e2009-09-05 21:47:34 +000030421IFS=$as_save_IFS
30422
30423 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30424 ;;
30425esac
30426fi
30427HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30428if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030430$as_echo "$HPGLDecodeDelegate" >&6; }
30431else
cristy8b350f62009-11-15 23:12:43 +000030432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030433$as_echo "no" >&6; }
30434fi
30435
30436
30437# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30438set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030440$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030441if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030442 $as_echo_n "(cached) " >&6
30443else
30444 case $HTMLDecodeDelegate in
30445 [\\/]* | ?:[\\/]*)
30446 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30447 ;;
30448 *)
30449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30450for as_dir in $PATH
30451do
30452 IFS=$as_save_IFS
30453 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030454 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30456 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030458 break 2
30459 fi
30460done
cristy8b350f62009-11-15 23:12:43 +000030461 done
cristy3ed852e2009-09-05 21:47:34 +000030462IFS=$as_save_IFS
30463
30464 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30465 ;;
30466esac
30467fi
30468HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30469if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030471$as_echo "$HTMLDecodeDelegate" >&6; }
30472else
cristy8b350f62009-11-15 23:12:43 +000030473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030474$as_echo "no" >&6; }
30475fi
30476
30477
30478# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30479set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030481$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030482if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030483 $as_echo_n "(cached) " >&6
30484else
30485 case $ILBMDecodeDelegate in
30486 [\\/]* | ?:[\\/]*)
30487 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30488 ;;
30489 *)
30490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30491for as_dir in $PATH
30492do
30493 IFS=$as_save_IFS
30494 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30497 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030499 break 2
30500 fi
30501done
cristy8b350f62009-11-15 23:12:43 +000030502 done
cristy3ed852e2009-09-05 21:47:34 +000030503IFS=$as_save_IFS
30504
30505 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30506 ;;
30507esac
30508fi
30509ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30510if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030512$as_echo "$ILBMDecodeDelegate" >&6; }
30513else
cristy8b350f62009-11-15 23:12:43 +000030514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030515$as_echo "no" >&6; }
30516fi
30517
30518
30519# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30520set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030522$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030523if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030524 $as_echo_n "(cached) " >&6
30525else
30526 case $ILBMEncodeDelegate in
30527 [\\/]* | ?:[\\/]*)
30528 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30529 ;;
30530 *)
30531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30532for as_dir in $PATH
30533do
30534 IFS=$as_save_IFS
30535 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030536 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30538 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030540 break 2
30541 fi
30542done
cristy8b350f62009-11-15 23:12:43 +000030543 done
cristy3ed852e2009-09-05 21:47:34 +000030544IFS=$as_save_IFS
30545
30546 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30547 ;;
30548esac
30549fi
30550ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30551if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030553$as_echo "$ILBMEncodeDelegate" >&6; }
30554else
cristy8b350f62009-11-15 23:12:43 +000030555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030556$as_echo "no" >&6; }
30557fi
30558
30559
30560# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30561set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030563$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030564if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030565 $as_echo_n "(cached) " >&6
30566else
30567 case $LPDelegate in
30568 [\\/]* | ?:[\\/]*)
30569 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30570 ;;
30571 *)
30572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30573for as_dir in $PATH
30574do
30575 IFS=$as_save_IFS
30576 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030577 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30579 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030581 break 2
30582 fi
30583done
cristy8b350f62009-11-15 23:12:43 +000030584 done
cristy3ed852e2009-09-05 21:47:34 +000030585IFS=$as_save_IFS
30586
30587 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30588 ;;
30589esac
30590fi
30591LPDelegate=$ac_cv_path_LPDelegate
30592if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030594$as_echo "$LPDelegate" >&6; }
30595else
cristy8b350f62009-11-15 23:12:43 +000030596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030597$as_echo "no" >&6; }
30598fi
30599
30600
30601# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30602set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030604$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030605if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030606 $as_echo_n "(cached) " >&6
30607else
30608 case $LPRDelegate in
30609 [\\/]* | ?:[\\/]*)
30610 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30611 ;;
30612 *)
30613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30614for as_dir in $PATH
30615do
30616 IFS=$as_save_IFS
30617 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030618 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30620 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030622 break 2
30623 fi
30624done
cristy8b350f62009-11-15 23:12:43 +000030625 done
cristy3ed852e2009-09-05 21:47:34 +000030626IFS=$as_save_IFS
30627
30628 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30629 ;;
30630esac
30631fi
30632LPRDelegate=$ac_cv_path_LPRDelegate
30633if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030635$as_echo "$LPRDelegate" >&6; }
30636else
cristy8b350f62009-11-15 23:12:43 +000030637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030638$as_echo "no" >&6; }
30639fi
30640
30641
30642# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30643set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030645$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030646if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030647 $as_echo_n "(cached) " >&6
30648else
30649 case $LZWDecodeDelegate in
30650 [\\/]* | ?:[\\/]*)
30651 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30652 ;;
30653 *)
30654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30655for as_dir in $PATH
30656do
30657 IFS=$as_save_IFS
30658 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30661 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030663 break 2
30664 fi
30665done
cristy8b350f62009-11-15 23:12:43 +000030666 done
cristy3ed852e2009-09-05 21:47:34 +000030667IFS=$as_save_IFS
30668
30669 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30670 ;;
30671esac
30672fi
30673LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30674if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030676$as_echo "$LZWDecodeDelegate" >&6; }
30677else
cristy8b350f62009-11-15 23:12:43 +000030678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030679$as_echo "no" >&6; }
30680fi
30681
30682
30683# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30684set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030686$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030687if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030688 $as_echo_n "(cached) " >&6
30689else
30690 case $LZWEncodeDelegate in
30691 [\\/]* | ?:[\\/]*)
30692 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30693 ;;
30694 *)
30695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30696for as_dir in $PATH
30697do
30698 IFS=$as_save_IFS
30699 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30702 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030704 break 2
30705 fi
30706done
cristy8b350f62009-11-15 23:12:43 +000030707 done
cristy3ed852e2009-09-05 21:47:34 +000030708IFS=$as_save_IFS
30709
30710 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30711 ;;
30712esac
30713fi
30714LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30715if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030717$as_echo "$LZWEncodeDelegate" >&6; }
30718else
cristy8b350f62009-11-15 23:12:43 +000030719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030720$as_echo "no" >&6; }
30721fi
30722
30723
30724# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30725set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030727$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030728if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030729 $as_echo_n "(cached) " >&6
30730else
30731 case $LaunchDelegate in
30732 [\\/]* | ?:[\\/]*)
30733 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30734 ;;
30735 *)
30736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30737for as_dir in $PATH
30738do
30739 IFS=$as_save_IFS
30740 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030741 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30743 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030745 break 2
30746 fi
30747done
cristy8b350f62009-11-15 23:12:43 +000030748 done
cristy3ed852e2009-09-05 21:47:34 +000030749IFS=$as_save_IFS
30750
30751 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30752 ;;
30753esac
30754fi
30755LaunchDelegate=$ac_cv_path_LaunchDelegate
30756if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030758$as_echo "$LaunchDelegate" >&6; }
30759else
cristy8b350f62009-11-15 23:12:43 +000030760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030761$as_echo "no" >&6; }
30762fi
30763
30764
30765# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30766set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030768$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030769if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030770 $as_echo_n "(cached) " >&6
30771else
30772 case $MANDelegate in
30773 [\\/]* | ?:[\\/]*)
30774 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30775 ;;
30776 *)
30777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30778for as_dir in $PATH
30779do
30780 IFS=$as_save_IFS
30781 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30784 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030786 break 2
30787 fi
30788done
cristy8b350f62009-11-15 23:12:43 +000030789 done
cristy3ed852e2009-09-05 21:47:34 +000030790IFS=$as_save_IFS
30791
30792 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30793 ;;
30794esac
30795fi
30796MANDelegate=$ac_cv_path_MANDelegate
30797if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030799$as_echo "$MANDelegate" >&6; }
30800else
cristy8b350f62009-11-15 23:12:43 +000030801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030802$as_echo "no" >&6; }
30803fi
30804
30805
30806# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30807set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030809$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030810if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030811 $as_echo_n "(cached) " >&6
30812else
30813 case $MPEGDecodeDelegate in
30814 [\\/]* | ?:[\\/]*)
30815 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30816 ;;
30817 *)
30818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30819for as_dir in $PATH
30820do
30821 IFS=$as_save_IFS
30822 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30825 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030827 break 2
30828 fi
30829done
cristy8b350f62009-11-15 23:12:43 +000030830 done
cristy3ed852e2009-09-05 21:47:34 +000030831IFS=$as_save_IFS
30832
30833 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30834 ;;
30835esac
30836fi
30837MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30838if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030840$as_echo "$MPEGDecodeDelegate" >&6; }
30841else
cristy8b350f62009-11-15 23:12:43 +000030842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030843$as_echo "no" >&6; }
30844fi
30845
30846
30847# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30848set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030850$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030851if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030852 $as_echo_n "(cached) " >&6
30853else
30854 case $MPEGEncodeDelegate in
30855 [\\/]* | ?:[\\/]*)
30856 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30857 ;;
30858 *)
30859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30860for as_dir in $PATH
30861do
30862 IFS=$as_save_IFS
30863 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030864 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30866 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030868 break 2
30869 fi
30870done
cristy8b350f62009-11-15 23:12:43 +000030871 done
cristy3ed852e2009-09-05 21:47:34 +000030872IFS=$as_save_IFS
30873
30874 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30875 ;;
30876esac
30877fi
30878MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30879if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030881$as_echo "$MPEGEncodeDelegate" >&6; }
30882else
cristy8b350f62009-11-15 23:12:43 +000030883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030884$as_echo "no" >&6; }
30885fi
30886
30887
cristy935c86e2010-06-05 23:50:07 +000030888# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30889set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30891$as_echo_n "checking for $ac_word... " >&6; }
30892if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30893 $as_echo_n "(cached) " >&6
30894else
30895 case $MrSIDDecodeDelegate in
30896 [\\/]* | ?:[\\/]*)
30897 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30898 ;;
30899 *)
30900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30901for as_dir in $PATH
30902do
30903 IFS=$as_save_IFS
30904 test -z "$as_dir" && as_dir=.
30905 for ac_exec_ext in '' $ac_executable_extensions; do
30906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30907 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30909 break 2
30910 fi
30911done
30912 done
30913IFS=$as_save_IFS
30914
30915 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30916 ;;
30917esac
30918fi
30919MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30920if test -n "$MrSIDDecodeDelegate"; then
30921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30922$as_echo "$MrSIDDecodeDelegate" >&6; }
30923else
30924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30925$as_echo "no" >&6; }
30926fi
30927
30928
cristy3ed852e2009-09-05 21:47:34 +000030929# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30930set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030932$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030933if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030934 $as_echo_n "(cached) " >&6
30935else
30936 case $MVDelegate in
30937 [\\/]* | ?:[\\/]*)
30938 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30939 ;;
30940 *)
30941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30942for as_dir in $PATH
30943do
30944 IFS=$as_save_IFS
30945 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30948 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030950 break 2
30951 fi
30952done
cristy8b350f62009-11-15 23:12:43 +000030953 done
cristy3ed852e2009-09-05 21:47:34 +000030954IFS=$as_save_IFS
30955
30956 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30957 ;;
30958esac
30959fi
30960MVDelegate=$ac_cv_path_MVDelegate
30961if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030963$as_echo "$MVDelegate" >&6; }
30964else
cristy8b350f62009-11-15 23:12:43 +000030965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030966$as_echo "no" >&6; }
30967fi
30968
30969
30970# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30971set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030973$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030974if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030975 $as_echo_n "(cached) " >&6
30976else
30977 case $PCLDelegate in
30978 [\\/]* | ?:[\\/]*)
30979 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30980 ;;
30981 *)
30982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30983for as_dir in $PATH
30984do
30985 IFS=$as_save_IFS
30986 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030987 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30989 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030991 break 2
30992 fi
30993done
cristy8b350f62009-11-15 23:12:43 +000030994 done
cristy3ed852e2009-09-05 21:47:34 +000030995IFS=$as_save_IFS
30996
30997 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30998 ;;
30999esac
31000fi
31001PCLDelegate=$ac_cv_path_PCLDelegate
31002if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031004$as_echo "$PCLDelegate" >&6; }
31005else
cristy8b350f62009-11-15 23:12:43 +000031006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031007$as_echo "no" >&6; }
31008fi
31009
31010
31011# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31012set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031014$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031015if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031016 $as_echo_n "(cached) " >&6
31017else
31018 case $PGPDecodeDelegate in
31019 [\\/]* | ?:[\\/]*)
31020 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31021 ;;
31022 *)
31023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31024for as_dir in $PATH
31025do
31026 IFS=$as_save_IFS
31027 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031028 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31030 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031032 break 2
31033 fi
31034done
cristy8b350f62009-11-15 23:12:43 +000031035 done
cristy3ed852e2009-09-05 21:47:34 +000031036IFS=$as_save_IFS
31037
31038 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31039 ;;
31040esac
31041fi
31042PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31043if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031045$as_echo "$PGPDecodeDelegate" >&6; }
31046else
cristy8b350f62009-11-15 23:12:43 +000031047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031048$as_echo "no" >&6; }
31049fi
31050
31051
31052# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31053set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031055$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031056if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031057 $as_echo_n "(cached) " >&6
31058else
31059 case $POVDelegate in
31060 [\\/]* | ?:[\\/]*)
31061 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31062 ;;
31063 *)
31064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31065for as_dir in $PATH
31066do
31067 IFS=$as_save_IFS
31068 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031069 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31071 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031073 break 2
31074 fi
31075done
cristy8b350f62009-11-15 23:12:43 +000031076 done
cristy3ed852e2009-09-05 21:47:34 +000031077IFS=$as_save_IFS
31078
31079 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31080 ;;
31081esac
31082fi
31083POVDelegate=$ac_cv_path_POVDelegate
31084if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031086$as_echo "$POVDelegate" >&6; }
31087else
cristy8b350f62009-11-15 23:12:43 +000031088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031089$as_echo "no" >&6; }
31090fi
31091
31092
31093for ac_prog in gsx gsc "$PSDelegateDefault"
31094do
31095 # Extract the first word of "$ac_prog", so it can be a program name with args.
31096set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031098$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031099if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031100 $as_echo_n "(cached) " >&6
31101else
31102 case $PSDelegate in
31103 [\\/]* | ?:[\\/]*)
31104 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31105 ;;
31106 *)
31107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31108for as_dir in $PATH
31109do
31110 IFS=$as_save_IFS
31111 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31114 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031116 break 2
31117 fi
31118done
cristy8b350f62009-11-15 23:12:43 +000031119 done
cristy3ed852e2009-09-05 21:47:34 +000031120IFS=$as_save_IFS
31121
31122 ;;
31123esac
31124fi
31125PSDelegate=$ac_cv_path_PSDelegate
31126if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031128$as_echo "$PSDelegate" >&6; }
31129else
cristy8b350f62009-11-15 23:12:43 +000031130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031131$as_echo "no" >&6; }
31132fi
31133
31134
31135 test -n "$PSDelegate" && break
31136done
31137test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31138
31139# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31140set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031142$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031143if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031144 $as_echo_n "(cached) " >&6
31145else
31146 case $RLEEncodeDelegate in
31147 [\\/]* | ?:[\\/]*)
31148 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31149 ;;
31150 *)
31151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31152for as_dir in $PATH
31153do
31154 IFS=$as_save_IFS
31155 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031156 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31158 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031160 break 2
31161 fi
31162done
cristy8b350f62009-11-15 23:12:43 +000031163 done
cristy3ed852e2009-09-05 21:47:34 +000031164IFS=$as_save_IFS
31165
31166 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31167 ;;
31168esac
31169fi
31170RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31171if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031173$as_echo "$RLEEncodeDelegate" >&6; }
31174else
cristy8b350f62009-11-15 23:12:43 +000031175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031176$as_echo "no" >&6; }
31177fi
31178
31179
31180# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31181set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031183$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031184if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031185 $as_echo_n "(cached) " >&6
31186else
31187 case $RMDelegate in
31188 [\\/]* | ?:[\\/]*)
31189 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31190 ;;
31191 *)
31192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31193for as_dir in $PATH
31194do
31195 IFS=$as_save_IFS
31196 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31199 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031201 break 2
31202 fi
31203done
cristy8b350f62009-11-15 23:12:43 +000031204 done
cristy3ed852e2009-09-05 21:47:34 +000031205IFS=$as_save_IFS
31206
31207 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31208 ;;
31209esac
31210fi
31211RMDelegate=$ac_cv_path_RMDelegate
31212if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031214$as_echo "$RMDelegate" >&6; }
31215else
cristy8b350f62009-11-15 23:12:43 +000031216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031217$as_echo "no" >&6; }
31218fi
31219
31220
cristy4689cf02010-02-17 21:15:45 +000031221# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31222set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31224$as_echo_n "checking for $ac_word... " >&6; }
31225if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31226 $as_echo_n "(cached) " >&6
31227else
31228 case $RSVGDecodeDelegate in
31229 [\\/]* | ?:[\\/]*)
31230 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31231 ;;
31232 *)
31233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31234for as_dir in $PATH
31235do
31236 IFS=$as_save_IFS
31237 test -z "$as_dir" && as_dir=.
31238 for ac_exec_ext in '' $ac_executable_extensions; do
31239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31240 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31242 break 2
31243 fi
31244done
31245 done
31246IFS=$as_save_IFS
31247
31248 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31249 ;;
31250esac
31251fi
31252RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31253if test -n "$RSVGDecodeDelegate"; then
31254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31255$as_echo "$RSVGDecodeDelegate" >&6; }
31256else
31257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31258$as_echo "no" >&6; }
31259fi
31260
31261
cristy3ed852e2009-09-05 21:47:34 +000031262# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31263set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031265$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031266if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031267 $as_echo_n "(cached) " >&6
31268else
31269 case $SCANDecodeDelegate in
31270 [\\/]* | ?:[\\/]*)
31271 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31272 ;;
31273 *)
31274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31275for as_dir in $PATH
31276do
31277 IFS=$as_save_IFS
31278 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031279 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31281 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031283 break 2
31284 fi
31285done
cristy8b350f62009-11-15 23:12:43 +000031286 done
cristy3ed852e2009-09-05 21:47:34 +000031287IFS=$as_save_IFS
31288
31289 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31290 ;;
31291esac
31292fi
31293SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31294if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031296$as_echo "$SCANDecodeDelegate" >&6; }
31297else
cristy8b350f62009-11-15 23:12:43 +000031298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031299$as_echo "no" >&6; }
31300fi
31301
31302
31303# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31304set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031306$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031307if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031308 $as_echo_n "(cached) " >&6
31309else
31310 case $TXTDelegate in
31311 [\\/]* | ?:[\\/]*)
31312 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31313 ;;
31314 *)
31315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31316for as_dir in $PATH
31317do
31318 IFS=$as_save_IFS
31319 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031320 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31322 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031324 break 2
31325 fi
31326done
cristy8b350f62009-11-15 23:12:43 +000031327 done
cristy3ed852e2009-09-05 21:47:34 +000031328IFS=$as_save_IFS
31329
31330 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31331 ;;
31332esac
31333fi
31334TXTDelegate=$ac_cv_path_TXTDelegate
31335if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031337$as_echo "$TXTDelegate" >&6; }
31338else
cristy8b350f62009-11-15 23:12:43 +000031339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031340$as_echo "no" >&6; }
31341fi
31342
31343
31344# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31345set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031347$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031348if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031349 $as_echo_n "(cached) " >&6
31350else
31351 case $WMFDecodeDelegate in
31352 [\\/]* | ?:[\\/]*)
31353 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31354 ;;
31355 *)
31356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31357for as_dir in $PATH
31358do
31359 IFS=$as_save_IFS
31360 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031361 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31363 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031365 break 2
31366 fi
31367done
cristy8b350f62009-11-15 23:12:43 +000031368 done
cristy3ed852e2009-09-05 21:47:34 +000031369IFS=$as_save_IFS
31370
31371 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31372 ;;
31373esac
31374fi
31375WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31376if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031378$as_echo "$WMFDecodeDelegate" >&6; }
31379else
cristy8b350f62009-11-15 23:12:43 +000031380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031381$as_echo "no" >&6; }
31382fi
31383
31384
31385# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31386set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031388$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031389if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031390 $as_echo_n "(cached) " >&6
31391else
31392 case $WWWDecodeDelegate in
31393 [\\/]* | ?:[\\/]*)
31394 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31395 ;;
31396 *)
31397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31398for as_dir in $PATH
31399do
31400 IFS=$as_save_IFS
31401 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31404 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031406 break 2
31407 fi
31408done
cristy8b350f62009-11-15 23:12:43 +000031409 done
cristy3ed852e2009-09-05 21:47:34 +000031410IFS=$as_save_IFS
31411
31412 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31413 ;;
31414esac
31415fi
31416WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31417if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031419$as_echo "$WWWDecodeDelegate" >&6; }
31420else
cristy8b350f62009-11-15 23:12:43 +000031421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031422$as_echo "no" >&6; }
31423fi
31424
31425
31426# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31427set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031429$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031430if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031431 $as_echo_n "(cached) " >&6
31432else
31433 case $XPSDelegate in
31434 [\\/]* | ?:[\\/]*)
31435 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31436 ;;
31437 *)
31438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31439for as_dir in $PATH
31440do
31441 IFS=$as_save_IFS
31442 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31445 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031447 break 2
31448 fi
31449done
cristy8b350f62009-11-15 23:12:43 +000031450 done
cristy3ed852e2009-09-05 21:47:34 +000031451IFS=$as_save_IFS
31452
31453 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31454 ;;
31455esac
31456fi
31457XPSDelegate=$ac_cv_path_XPSDelegate
31458if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031460$as_echo "$XPSDelegate" >&6; }
31461else
cristy8b350f62009-11-15 23:12:43 +000031462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031463$as_echo "no" >&6; }
31464fi
31465
31466
31467# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31468set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031470$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031471if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031472 $as_echo_n "(cached) " >&6
31473else
31474 case $ZipDelegate in
31475 [\\/]* | ?:[\\/]*)
31476 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31477 ;;
31478 *)
31479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31480for as_dir in $PATH
31481do
31482 IFS=$as_save_IFS
31483 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031484 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31486 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031488 break 2
31489 fi
31490done
cristy8b350f62009-11-15 23:12:43 +000031491 done
cristy3ed852e2009-09-05 21:47:34 +000031492IFS=$as_save_IFS
31493
31494 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31495 ;;
31496esac
31497fi
31498ZipDelegate=$ac_cv_path_ZipDelegate
31499if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031501$as_echo "$ZipDelegate" >&6; }
31502else
cristy8b350f62009-11-15 23:12:43 +000031503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031504$as_echo "no" >&6; }
31505fi
31506
31507
31508
31509# Prefer lpr to lp; lp needs options tacked on.
31510if test "$LPRDelegate" != no; then
31511 PrintDelegate="$LPRDelegate"
31512else
31513 PrintDelegate="$LPDelegate -c -s"
31514fi
31515
31516
31517# Installed ImageMagick utiltity paths
31518ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31519DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31520MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31521
31522# Set delegate booleans
31523have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31524have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31525have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31526have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31527have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31528have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031529have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031530have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31531have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31532have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31533have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31534have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31535
31536#
31537# Test for font directories
31538#
31539type_include_files=''
31540
cristy430a7312010-01-21 20:44:04 +000031541# Dejavu fonts.
31542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31543$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31544dejavu_font_dir=''
31545if test "${with_dejavu_font_dir}" != 'default'; then
31546 dejavu_font_dir="${with_dejavu_font_dir}/"
31547else
31548 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31549 if test -f "${font_dir}DejaVuSerif.ttf"; then
31550 dejavu_font_dir="${font_dir}"
31551 break 1
31552 fi
31553 done
31554fi
31555if test "${dejavu_font_dir}x" != 'x'; then
31556 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31558$as_echo "$dejavu_font_dir" >&6; }
31559else
31560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31561$as_echo "not found!" >&6; };
31562fi
31563
31564
cristy3ed852e2009-09-05 21:47:34 +000031565# Windows
31566windows_font_dir=''
31567if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31568 windows_font_dir="${with_windows_font_dir}/"
31569fi
cristy430a7312010-01-21 20:44:04 +000031570if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031571 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31572 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31573 fi
31574 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31575 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31576 fi
31577 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31578 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31579 fi
31580fi
cristy430a7312010-01-21 20:44:04 +000031581if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031582 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31583fi
31584
31585
31586# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031588$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31589ghostscript_font_dir=''
31590if test "${with_gs_font_dir}" != 'default'; then
31591 ghostscript_font_dir="${with_gs_font_dir}/"
31592else
31593 if test "${native_win32_build}" = 'yes'; then
31594 # Native Windows Build
31595 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31596 if test -f "${font_dir}a010013l.pfb"; then
31597 ghostscript_font_dir="$font_dir"
31598 break 1
31599 fi
31600 done
31601 if test "${PSDelegate}" != 'gswin32c'; then
31602 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31603 fi
31604 else
31605 # Linux / Mac OS X / Unix Build
31606 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
31607 if test -f "${font_dir}a010013l.pfb"; then
31608 ghostscript_font_dir="${font_dir}"
31609 break 1
31610 fi
31611 done
31612 if test "${ghostscript_font_dir}x" = 'x'; then
31613 if test "$PSDelegate" != 'gs'; then
31614 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31615 fi
31616 fi
31617 fi
31618fi
31619if test "${ghostscript_font_dir}x" != 'x'; then
31620 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031622$as_echo "$ghostscript_font_dir" >&6; }
31623else
cristy8b350f62009-11-15 23:12:43 +000031624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031625$as_echo "not found!" >&6; };
31626fi
31627
31628case "${build_os}" in
31629 mingw* )
31630 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31631 ;;
31632esac
31633
31634
31635
31636#
31637# Handle case where user doesn't want frozen paths
31638#
31639if test "$with_frozenpaths" != 'yes'; then
31640 # Re-set delegate definitions to default (no paths)
31641 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31642 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31643 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31644 BZIPDelegate="$BZIPDelegateDefault"
31645 BrowseDelegate="$BrowseDelegateDefault"
31646 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31647 CatDelegate="$CatDelegateDefault"
31648 ConvertDelegate="$ConvertDelegateDefault"
31649 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31650 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31651 EchoDelegate="$EchoDelegateDefault"
31652 EditorDelegate="$EditorDelegateDefault"
31653 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31654 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31655 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31656 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31657 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31658 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31659 LPDelegate="$LPDelegateDefault"
31660 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31661 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31662 LaunchDelegate="$LaunchDelegateDefault"
31663 MANDelegate="$MANDelegateDefault"
31664 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31665 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031666 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031667 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31668 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031669 PCLDelegate="$PCLDelegateDefault"
31670 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31671 POVDelegate="$POVDelegateDefault"
31672 PSDelegate="$PSDelegateDefault"
31673 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31674 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31675 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031676 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031677 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31678 ShowImageDelegate="$ShowImageDelegateDefault"
31679 TXTDelegate="$TXTDelegateDefault"
31680 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31681 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31682 XPSDelegate="$XPSDelegateDefault"
31683 ZipDelegate="$ZipDelegateDefault"
31684fi
31685
31686# Delegate substitutions
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721
31722
31723
31724
31725
31726
31727
31728
cristy935c86e2010-06-05 23:50:07 +000031729
cristy3ed852e2009-09-05 21:47:34 +000031730#
31731# RPM support.
31732#
31733RPM=''
31734for ac_prog in gnutar gtar tar
31735do
31736 # Extract the first word of "$ac_prog", so it can be a program name with args.
31737set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031739$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031740if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031741 $as_echo_n "(cached) " >&6
31742else
31743 if test -n "$TAR"; then
31744 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31745else
31746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31747for as_dir in $PATH
31748do
31749 IFS=$as_save_IFS
31750 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31753 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031755 break 2
31756 fi
31757done
cristy8b350f62009-11-15 23:12:43 +000031758 done
cristy3ed852e2009-09-05 21:47:34 +000031759IFS=$as_save_IFS
31760
31761fi
31762fi
31763TAR=$ac_cv_prog_TAR
31764if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031766$as_echo "$TAR" >&6; }
31767else
cristy8b350f62009-11-15 23:12:43 +000031768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031769$as_echo "no" >&6; }
31770fi
31771
31772
31773 test -n "$TAR" && break
31774done
31775
31776for ac_prog in perl
31777do
31778 # Extract the first word of "$ac_prog", so it can be a program name with args.
31779set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031781$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031782if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031783 $as_echo_n "(cached) " >&6
31784else
31785 if test -n "$PERL"; then
31786 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31787else
31788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31789for as_dir in $PATH
31790do
31791 IFS=$as_save_IFS
31792 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31795 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031797 break 2
31798 fi
31799done
cristy8b350f62009-11-15 23:12:43 +000031800 done
cristy3ed852e2009-09-05 21:47:34 +000031801IFS=$as_save_IFS
31802
31803fi
31804fi
31805PERL=$ac_cv_prog_PERL
31806if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031808$as_echo "$PERL" >&6; }
31809else
cristy8b350f62009-11-15 23:12:43 +000031810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031811$as_echo "no" >&6; }
31812fi
31813
31814
31815 test -n "$PERL" && break
31816done
31817
31818for ac_prog in rpmbuild rpm
31819do
31820 # Extract the first word of "$ac_prog", so it can be a program name with args.
31821set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031823$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031824if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031825 $as_echo_n "(cached) " >&6
31826else
31827 if test -n "$RPM"; then
31828 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31829else
31830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31831for as_dir in $PATH
31832do
31833 IFS=$as_save_IFS
31834 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031835 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31837 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031839 break 2
31840 fi
31841done
cristy8b350f62009-11-15 23:12:43 +000031842 done
cristy3ed852e2009-09-05 21:47:34 +000031843IFS=$as_save_IFS
31844
31845fi
31846fi
31847RPM=$ac_cv_prog_RPM
31848if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031850$as_echo "$RPM" >&6; }
31851else
cristy8b350f62009-11-15 23:12:43 +000031852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031853$as_echo "no" >&6; }
31854fi
31855
31856
31857 test -n "$RPM" && break
31858done
31859
31860
31861ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31862
31863
31864AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31865
31866
31867AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31868
31869
31870AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31871
31872
31873 if test "x$RPM" != "x" ; then
31874 RPM_DELEGATE_TRUE=
31875 RPM_DELEGATE_FALSE='#'
31876else
31877 RPM_DELEGATE_TRUE='#'
31878 RPM_DELEGATE_FALSE=
31879fi
31880
31881
31882#
31883# 7ZIP support (http://p7zip.sourceforge.net/)
31884#
31885P7ZIP=''
31886for ac_prog in 7za
31887do
31888 # Extract the first word of "$ac_prog", so it can be a program name with args.
31889set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031891$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031892if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031893 $as_echo_n "(cached) " >&6
31894else
31895 if test -n "$P7ZIP"; then
31896 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31897else
31898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31899for as_dir in $PATH
31900do
31901 IFS=$as_save_IFS
31902 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031903 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31905 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031907 break 2
31908 fi
31909done
cristy8b350f62009-11-15 23:12:43 +000031910 done
cristy3ed852e2009-09-05 21:47:34 +000031911IFS=$as_save_IFS
31912
31913fi
31914fi
31915P7ZIP=$ac_cv_prog_P7ZIP
31916if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031918$as_echo "$P7ZIP" >&6; }
31919else
cristy8b350f62009-11-15 23:12:43 +000031920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031921$as_echo "no" >&6; }
31922fi
31923
31924
31925 test -n "$P7ZIP" && break
31926done
31927
31928
31929 if test "x$P7ZIP" != "x" ; then
31930 P7ZIP_DELEGATE_TRUE=
31931 P7ZIP_DELEGATE_FALSE='#'
31932else
31933 P7ZIP_DELEGATE_TRUE='#'
31934 P7ZIP_DELEGATE_FALSE=
31935fi
31936
31937
31938#
31939# ZIP support (http://www.info-zip.org/Zip.html)
31940#
31941ZIP=''
31942for ac_prog in zip
31943do
31944 # Extract the first word of "$ac_prog", so it can be a program name with args.
31945set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031947$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031948if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031949 $as_echo_n "(cached) " >&6
31950else
31951 if test -n "$ZIP"; then
31952 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31953else
31954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31955for as_dir in $PATH
31956do
31957 IFS=$as_save_IFS
31958 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031959 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31961 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031963 break 2
31964 fi
31965done
cristy8b350f62009-11-15 23:12:43 +000031966 done
cristy3ed852e2009-09-05 21:47:34 +000031967IFS=$as_save_IFS
31968
31969fi
31970fi
31971ZIP=$ac_cv_prog_ZIP
31972if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031974$as_echo "$ZIP" >&6; }
31975else
cristy8b350f62009-11-15 23:12:43 +000031976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031977$as_echo "no" >&6; }
31978fi
31979
31980
31981 test -n "$ZIP" && break
31982done
31983
31984
31985 if test "x$ZIP" != "x" ; then
31986 ZIP_DELEGATE_TRUE=
31987 ZIP_DELEGATE_FALSE='#'
31988else
31989 ZIP_DELEGATE_TRUE='#'
31990 ZIP_DELEGATE_FALSE=
31991fi
31992
31993
31994#
31995# GhostPCL related configuration.
31996#
31997PCLColorDevice=ppmraw
31998PCLCMYKDevice=bmpsep8
31999PCLMonoDevice=pbmraw
32000if test -z "$PCLVersion"; then
32001 PCLVersion='unknown'
32002fi
32003if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032005$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032007$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032009$as_echo "" >&6; }
32010 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032012$as_echo_n "checking for pcl color device... " >&6; }
32013 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32014 :
32015 else
32016 PCLColorDevice=ppmraw
32017 fi
cristy8b350f62009-11-15 23:12:43 +000032018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032019$as_echo "$PCLColorDevice" >&6; }
32020
32021 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032023$as_echo_n "checking for pcl CMYK device... " >&6; }
32024 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32025 :
32026 else
32027 PCLCMYKDevice=$PCLColorDevice
32028 fi
cristy8b350f62009-11-15 23:12:43 +000032029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032030$as_echo "$PCLCMYKDevice" >&6; }
32031
32032 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032034$as_echo_n "checking for pcl mono device... " >&6; }
32035 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32036 :
32037 else
32038 PCLMonoDevice=$PCLColorDevice
32039 fi
cristy8b350f62009-11-15 23:12:43 +000032040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032041$as_echo "$PCLMonoDevice" >&6; }
32042fi
32043
32044
32045
32046
32047
32048
32049#
32050# GhostXPS related configuration.
32051#
32052XPSColorDevice=ppmraw
32053XPSCMYKDevice=bmpsep8
32054XPSMonoDevice=pbmraw
32055if test -z "$XPSVersion"; then
32056 XPSVersion='unknown'
32057fi
32058if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032060$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032062$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032064$as_echo "" >&6; }
32065 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032067$as_echo_n "checking for xps color device... " >&6; }
32068 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32069 :
32070 else
32071 XPSColorDevice=ppmraw
32072 fi
cristy8b350f62009-11-15 23:12:43 +000032073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032074$as_echo "$XPSColorDevice" >&6; }
32075
32076 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032078$as_echo_n "checking for xps CMYK device... " >&6; }
32079 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32080 :
32081 else
32082 XPSCMYKDevice=$XPSColorDevice
32083 fi
cristy8b350f62009-11-15 23:12:43 +000032084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032085$as_echo "$XPSCMYKDevice" >&6; }
32086
32087 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032089$as_echo_n "checking for xps mono device... " >&6; }
32090 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32091 :
32092 else
32093 XPSMonoDevice=$XPSColorDevice
32094 fi
cristy8b350f62009-11-15 23:12:43 +000032095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032096$as_echo "$XPSMonoDevice" >&6; }
32097fi
32098
32099
32100
32101
32102
32103
32104#
32105# Ghostscript related configuration.
32106#
32107if test "$have_png" = 'yes'; then
32108 GSAlphaDevice=pngalpha
32109else
32110 GSAlphaDevice=pnmraw
32111fi
32112GSColorDevice=pnmraw
32113GSCMYKDevice=pam
32114GSMonoDevice=pbmraw
32115GSPDFDevice=pdfwrite
32116GSPSDevice=pswrite
32117GSEPSDevice=epswrite
32118GSVersion='unknown'
32119if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032121$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032123$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032125$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032127$as_echo_n "checking for Ghostscript version... " >&6; }
32128 if GSVersion=`$PSDelegate --version`; then
32129 :
32130 else
32131 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32132 fi
cristy8b350f62009-11-15 23:12:43 +000032133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032134$as_echo "$GSVersion" >&6; }
32135
32136 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032138$as_echo_n "checking for gs alpha device... " >&6; }
32139 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32140 :
32141 else
32142 GSAlphaDevice=pnmraw
32143 fi
cristy8b350f62009-11-15 23:12:43 +000032144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032145$as_echo "$GSAlphaDevice" >&6; }
32146
32147 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032149$as_echo_n "checking for gs color device... " >&6; }
32150 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32151 :
32152 else
32153 GSColorDevice=pnmraw
32154 fi
cristy8b350f62009-11-15 23:12:43 +000032155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032156$as_echo "$GSColorDevice" >&6; }
32157
32158 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032160$as_echo_n "checking for gs CMYK device... " >&6; }
32161 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32162 :
32163 else
32164 GSCMYKDevice=bmpsep8
32165 fi
cristy8b350f62009-11-15 23:12:43 +000032166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032167$as_echo "$GSCMYKDevice" >&6; }
32168
32169 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032171$as_echo_n "checking for gs mono device... " >&6; }
32172 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32173 :
32174 else
32175 GSMonoDevice=$GSColorDevice
32176 fi
cristy8b350f62009-11-15 23:12:43 +000032177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032178$as_echo "$GSMonoDevice" >&6; }
32179
32180 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032182$as_echo_n "checking for gs PDF writing device... " >&6; }
32183 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32184 :
32185 else
32186 GSPDFDevice=nodevice
32187 fi
cristy8b350f62009-11-15 23:12:43 +000032188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032189$as_echo "$GSPDFDevice" >&6; }
32190
32191 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032193$as_echo_n "checking for gs PS writing device... " >&6; }
32194 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32195 :
32196 else
32197 GSPSDevice=nodevice
32198 fi
cristy8b350f62009-11-15 23:12:43 +000032199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032200$as_echo "$GSPSDevice" >&6; }
32201
32202 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032204$as_echo_n "checking for gs EPS writing device... " >&6; }
32205 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32206 :
32207 else
32208 GSEPSDevice=nodevice
32209 fi
cristy8b350f62009-11-15 23:12:43 +000032210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032211$as_echo "$GSEPSDevice" >&6; }
32212fi
32213
32214
32215
32216
32217
32218
32219
32220
32221
32222
32223#
32224# PerlMagick-related configuration
32225#
32226
32227# Look for PERL if PerlMagick requested
32228# If name/path of desired PERL interpreter is specified, look for that one first
32229have_perl='no'
32230if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032232$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032234$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032236$as_echo "" >&6; }
32237 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032239$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032240if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032241 $as_echo_n "(cached) " >&6
32242else
32243 ac_cv_path_PERL="$with_perl"
32244fi
cristy8b350f62009-11-15 23:12:43 +000032245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032246$as_echo "$ac_cv_path_PERL" >&6; };
32247 PERL=$ac_cv_path_PERL
32248 have_perl="$ac_cv_path_PERL"
32249 else
32250 for ac_prog in perl perl5
32251do
32252 # Extract the first word of "$ac_prog", so it can be a program name with args.
32253set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032255$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032256if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032257 $as_echo_n "(cached) " >&6
32258else
32259 case $PERL in
32260 [\\/]* | ?:[\\/]*)
32261 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32262 ;;
32263 *)
32264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32265for as_dir in $PATH
32266do
32267 IFS=$as_save_IFS
32268 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032269 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32271 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032273 break 2
32274 fi
32275done
cristy8b350f62009-11-15 23:12:43 +000032276 done
cristy3ed852e2009-09-05 21:47:34 +000032277IFS=$as_save_IFS
32278
32279 ;;
32280esac
32281fi
32282PERL=$ac_cv_path_PERL
32283if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032285$as_echo "$PERL" >&6; }
32286else
cristy8b350f62009-11-15 23:12:43 +000032287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032288$as_echo "no" >&6; }
32289fi
32290
32291
32292 test -n "$PERL" && break
32293done
32294 if test "$ac_cv_path_PERL"; then
32295 have_perl="$ac_cv_path_PERL"
32296 fi
32297 fi
32298fi
32299
cristy949301e2010-01-06 01:38:40 +000032300if test "$with_perl" != 'yes' ; then
32301 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32302fi
32303
32304PERL_SUPPORTS_DESTDIR='no'
32305
cristy3ed852e2009-09-05 21:47:34 +000032306with_perl_static='no'
32307with_perl_dynamic='no'
32308if test "$have_perl" != 'no'; then
32309 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32310 with_perl_static='yes'
32311 fi
32312 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32313 with_perl_dynamic='yes'
32314 fi
32315 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032316
32317
32318
32319
32320 if test -n "$PERL"; then :
32321
32322 ax_perl_version="5.8.1"
32323
32324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32325$as_echo_n "checking for perl version... " >&6; }
32326
32327 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32328
32329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32330$as_echo "$perl_version" >&6; }
32331
32332 PERL_VERSION=$perl_version
32333
32334
32335
32336
32337
32338 # Used to indicate true or false condition
32339 ax_compare_version=false
32340
32341 # Convert the two version strings to be compared into a format that
32342 # allows a simple string comparison. The end result is that a version
32343 # string of the form 1.12.5-r617 will be converted to the form
32344 # 0001001200050617. In other words, each number is zero padded to four
32345 # digits, and non digits are removed.
32346
32347 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32348 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32349 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32350 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32351 -e 's/[^0-9]//g'`
32352
32353
32354 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32355 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32356 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32357 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32358 -e 's/[^0-9]//g'`
32359
32360
32361 ax_compare_version=`echo "x$ax_compare_version_A
32362x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32363
32364
32365
32366 if test "$ax_compare_version" = "true" ; then
32367
32368 :
32369 PERL_SUPPORTS_DESTDIR='yes'
32370
32371 else
32372 :
32373 PERL_SUPPORTS_DESTDIR='no'
32374
cristy3ed852e2009-09-05 21:47:34 +000032375 fi
cristy3ed852e2009-09-05 21:47:34 +000032376
cristy964cb7f2010-04-25 23:18:00 +000032377
cristy3ed852e2009-09-05 21:47:34 +000032378else
cristy3ed852e2009-09-05 21:47:34 +000032379
cristy964cb7f2010-04-25 23:18:00 +000032380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32381$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32382 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032383
32384fi
32385
cristy3ed852e2009-09-05 21:47:34 +000032386fi
32387 if test "$have_perl" != 'no'; then
32388 WITH_PERL_TRUE=
32389 WITH_PERL_FALSE='#'
32390else
32391 WITH_PERL_TRUE='#'
32392 WITH_PERL_FALSE=
32393fi
32394
32395 if test $with_perl_static = 'yes'; then
32396 WITH_PERL_STATIC_TRUE=
32397 WITH_PERL_STATIC_FALSE='#'
32398else
32399 WITH_PERL_STATIC_TRUE='#'
32400 WITH_PERL_STATIC_FALSE=
32401fi
32402
32403 if test $with_perl_dynamic = 'yes'; then
32404 WITH_PERL_DYNAMIC_TRUE=
32405 WITH_PERL_DYNAMIC_FALSE='#'
32406else
32407 WITH_PERL_DYNAMIC_TRUE='#'
32408 WITH_PERL_DYNAMIC_FALSE=
32409fi
32410
32411
32412
32413# Determine path to pick up MagickCore library from for use with building PerlMagick
32414MAGICKCORE_PATH="${LIB_DIR}"
32415if test $with_perl_static = 'yes'; then
32416 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32417 libtool_objdir=$objdir
32418
32419 # Linker search path to library, followed by -lMagickCore
32420 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32421fi
32422
32423
32424# Create a simple string containing format names for all delegate libraries
32425DELEGATES=''
32426if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32427if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32428if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32429if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32430if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32431if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32432if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32433if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32434if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32435if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32436if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32437if test "$have_jpeg" = 'yes'; then
32438 DELEGATES="$DELEGATES jpeg";
32439 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32440fi
32441if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32442if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32443if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32444if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32445if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32446if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32447if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32448if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32449if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32450if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32451if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32452if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32453
32454
32455
32456#
32457# Handle special compiler flags
32458#
32459
32460# Add '-p' if prof source profiling support enabled
32461if test "$enable_prof" = 'yes'; then
32462 CFLAGS="-p $CFLAGS"
32463 CXXFLAGS="-p $CXXFLAGS"
32464 LDFLAGS="-p $LDFLAGS"
32465fi
32466
32467# Add '-pg' if gprof source profiling support enabled
32468if test "$enable_gprof" = 'yes'; then
32469 CFLAGS="-pg $CFLAGS"
32470 CXXFLAGS="-pg $CXXFLAGS"
32471 LDFLAGS="-pg $LDFLAGS"
32472fi
32473
32474# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32475# This is a gcc-specific feature
32476if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032478$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032479if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032480 $as_echo_n "(cached) " >&6
32481else
32482 ac_check_lib_save_LIBS=$LIBS
32483LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032485/* end confdefs.h. */
32486
32487/* Override any GCC internal prototype to avoid an error.
32488 Use char because int might match the return type of a GCC
32489 builtin and then its argument prototype would still apply. */
32490#ifdef __cplusplus
32491extern "C"
32492#endif
32493char _gcov_init ();
32494int
32495main ()
32496{
32497return _gcov_init ();
32498 ;
32499 return 0;
32500}
32501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032502if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032503 ac_cv_lib_gcov__gcov_init=yes
32504else
cristy8b350f62009-11-15 23:12:43 +000032505 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032506fi
cristy8b350f62009-11-15 23:12:43 +000032507rm -f core conftest.err conftest.$ac_objext \
32508 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032509LIBS=$ac_check_lib_save_LIBS
32510fi
cristy8b350f62009-11-15 23:12:43 +000032511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032512$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032513if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032514 cat >>confdefs.h <<_ACEOF
32515#define HAVE_LIBGCOV 1
32516_ACEOF
32517
32518 LIBS="-lgcov $LIBS"
32519
32520fi
32521
cristy8b350f62009-11-15 23:12:43 +000032522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032523$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032524if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032525 $as_echo_n "(cached) " >&6
32526else
32527 ac_check_lib_save_LIBS=$LIBS
32528LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032530/* end confdefs.h. */
32531
32532/* Override any GCC internal prototype to avoid an error.
32533 Use char because int might match the return type of a GCC
32534 builtin and then its argument prototype would still apply. */
32535#ifdef __cplusplus
32536extern "C"
32537#endif
32538char __gcov_init ();
32539int
32540main ()
32541{
32542return __gcov_init ();
32543 ;
32544 return 0;
32545}
32546_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032547if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032548 ac_cv_lib_gcov___gcov_init=yes
32549else
cristy8b350f62009-11-15 23:12:43 +000032550 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032551fi
cristy8b350f62009-11-15 23:12:43 +000032552rm -f core conftest.err conftest.$ac_objext \
32553 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032554LIBS=$ac_check_lib_save_LIBS
32555fi
cristy8b350f62009-11-15 23:12:43 +000032556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032557$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032558if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032559 cat >>confdefs.h <<_ACEOF
32560#define HAVE_LIBGCOV 1
32561_ACEOF
32562
32563 LIBS="-lgcov $LIBS"
32564
32565fi
32566
32567 case "$target_os" in
32568 darwin*)
32569 OSX_GCOV_LDFLAG="-Wl,-single_module"
32570 ;;
32571 *)
32572 OSX_GCOV_LDFLAG=""
32573 ;;
32574 esac
32575
32576 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32577 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32578 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32579fi
32580
32581#
32582# Build library dependency list for libMagickCore
32583#
32584
32585MAGICK_LIBLTDL='' # Libltdl for build
32586MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32587MAGICK_LTDLDEPS='' # extra libltdl dependencies
32588if test "$with_ltdl" != 'no'
32589then
32590 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32591 MAGICK_API_LIBLTDL='-lltdl'
32592 fi
32593 MAGICK_LIBLTDL=${LIBLTDL}
32594 MAGICK_LTDLDEPS=${LTDLDEPS}
32595fi
32596
32597
32598
32599if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032600 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 +000032601else
cristy2e8b51d2009-10-17 18:26:15 +000032602 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 +000032603fi
32604
32605
32606#
32607# Remove extraneous spaces from output variables (asthetic)
32608#
32609X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32610X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32611X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32612X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32613
32614CC=`echo $CC | sed -e 's/ */ /g'`
32615CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32616CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32617CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32618DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32619DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32620LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32621TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32622MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32623#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32624
32625# Pass only user-provided LIBS as "global" libraries
32626LIBS=$USER_LIBS
32627
32628#AC_SUBST(CPPFLAGS)
32629
32630#AC_SUBST(LDFLAGS)
32631#AC_SUBST(X_PRE_LIBS)
32632#AC_SUBST(X_LIBS)
32633#AC_SUBST(X_EXTRA_LIBS)
32634
32635MAGICK_CFLAGS=$CFLAGS
32636MAGICK_CXXFLAGS="$CXXFLAGS"
32637MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32638MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32639MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32640MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32641
32642
32643
32644
32645
32646
32647
32648
32649# Set configured scripts to executable.
32650ac_config_commands="$ac_config_commands default"
32651
32652ac_config_commands="$ac_config_commands MagickCore-config.in"
32653
32654ac_config_commands="$ac_config_commands Magick-config.in"
32655
32656ac_config_commands="$ac_config_commands MagickWand-config.in"
32657
32658ac_config_commands="$ac_config_commands Wand-config.in"
32659
32660ac_config_commands="$ac_config_commands Magick++-config.in"
32661
32662ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32663
32664
cristy8b350f62009-11-15 23:12:43 +000032665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032666$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032668$as_echo "Update ImageMagick configuration" >&6; }
32669cat >confcache <<\_ACEOF
32670# This file is a shell script that caches the results of configure
32671# tests run on this system so they can be shared between configure
32672# scripts and configure runs, see configure's option --config-cache.
32673# It is not useful on other systems. If it contains results you don't
32674# want to keep, you may remove or edit it.
32675#
32676# config.status only pays attention to the cache file if you give it
32677# the --recheck option to rerun configure.
32678#
32679# `ac_cv_env_foo' variables (set or unset) will be overridden when
32680# loading this file, other *unset* `ac_cv_foo' will be assigned the
32681# following values.
32682
32683_ACEOF
32684
32685# The following way of writing the cache mishandles newlines in values,
32686# but we know of no workaround that is simple, portable, and efficient.
32687# So, we kill variables containing newlines.
32688# Ultrix sh set writes to stderr and can't be redirected directly,
32689# and sets the high bit in the cache file unless we assign to the vars.
32690(
32691 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32692 eval ac_val=\$$ac_var
32693 case $ac_val in #(
32694 *${as_nl}*)
32695 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032696 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032697$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32698 esac
32699 case $ac_var in #(
32700 _ | IFS | as_nl) ;; #(
32701 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032702 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032703 esac ;;
32704 esac
32705 done
32706
32707 (set) 2>&1 |
32708 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32709 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032710 # `set' does not quote correctly, so add quotes: double-quote
32711 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032712 sed -n \
32713 "s/'/'\\\\''/g;
32714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32715 ;; #(
32716 *)
32717 # `set' quotes correctly as required by POSIX, so do not add quotes.
32718 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32719 ;;
32720 esac |
32721 sort
32722) |
32723 sed '
32724 /^ac_cv_env_/b end
32725 t clear
32726 :clear
32727 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32728 t end
32729 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32730 :end' >>confcache
32731if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32732 if test -w "$cache_file"; then
32733 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032734 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032735$as_echo "$as_me: updating cache $cache_file" >&6;}
32736 cat confcache >$cache_file
32737 else
cristy8b350f62009-11-15 23:12:43 +000032738 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032739$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32740 fi
32741fi
32742rm -f confcache
32743
32744test "x$prefix" = xNONE && prefix=$ac_default_prefix
32745# Let make expand exec_prefix.
32746test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32747
32748DEFS=-DHAVE_CONFIG_H
32749
32750ac_libobjs=
32751ac_ltlibobjs=
32752for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32753 # 1. Remove the extension, and $U if already installed.
32754 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32755 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32756 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32757 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032758 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32759 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032760done
32761LIBOBJS=$ac_libobjs
32762
32763LTLIBOBJS=$ac_ltlibobjs
32764
32765
32766 if test -n "$EXEEXT"; then
32767 am__EXEEXT_TRUE=
32768 am__EXEEXT_FALSE='#'
32769else
32770 am__EXEEXT_TRUE='#'
32771 am__EXEEXT_FALSE=
32772fi
32773
32774if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032775 as_fn_error "conditional \"AMDEP\" was never defined.
32776Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032777fi
32778if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032779 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32780Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032781fi
cristya0b81c32010-01-22 02:54:33 +000032782if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32783 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32784Usually this means the macro was only invoked conditionally." "$LINENO" 5
32785fi
cristy3ed852e2009-09-05 21:47:34 +000032786if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032787 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32788Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032789fi
32790if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032791 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32792Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032793fi
32794if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032795 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32796Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032797fi
32798if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032799 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32800Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032801fi
32802if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032803 as_fn_error "conditional \"USING_CL\" was never defined.
32804Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032805fi
cristy18304f92009-11-22 15:48:26 +000032806if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32807 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32808Usually this means the macro was only invoked conditionally." "$LINENO" 5
32809fi
cristy3ed852e2009-09-05 21:47:34 +000032810if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032811 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32812Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032813fi
32814if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032815 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
32816Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032817fi
32818LT_CONFIG_H=config/config.h
32819
32820 _ltdl_libobjs=
32821 _ltdl_ltlibobjs=
32822 if test -n "$_LT_LIBOBJS"; then
32823 # Remove the extension.
32824 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32825 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32826 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32827 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32828 done
32829 fi
32830 ltdl_LIBOBJS=$_ltdl_libobjs
32831
32832 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32833
32834
cristyfa112112010-01-04 17:48:07 +000032835if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32836 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
32837Usually this means the macro was only invoked conditionally." "$LINENO" 5
32838fi
cristy3ed852e2009-09-05 21:47:34 +000032839if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032840 as_fn_error "conditional \"WITH_MODULES\" was never defined.
32841Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032842fi
32843if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032844 as_fn_error "conditional \"WITH_LTDL\" was never defined.
32845Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032846fi
32847if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032848 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
32849Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032850fi
32851
32852if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032853 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32854Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032855fi
32856if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032857 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32858Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032859fi
32860if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032861 as_fn_error "conditional \"HasUMEM\" was never defined.
32862Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032863fi
32864if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032865 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
32866Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032867fi
32868if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032869 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
32870Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032871fi
32872if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032873 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
32874Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032875fi
32876if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032877 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32878Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032879fi
32880if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032881 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
32882Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032883fi
32884if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032885 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
32886Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032887fi
32888if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032889 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
32890Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032891fi
32892if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032893 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
32894Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032895fi
32896if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032897 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32898Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032899fi
32900if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032901 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32902Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032903fi
32904if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032905 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32906Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032907fi
32908if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032909 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32910Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032911fi
32912if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032913 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32914Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032915fi
32916if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032917 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32918Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032919fi
32920if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032921 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32922Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032923fi
32924if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032925 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32926Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032927fi
32928if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032929 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32930Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032931fi
32932if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032933 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32934Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032935fi
32936if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032937 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32938Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032939fi
32940if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032941 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32942Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032943fi
32944if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032945 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32946Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032947fi
32948if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032949 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32950Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032951fi
32952if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032953 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32954Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032955fi
32956if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032957 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32958Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032959fi
32960if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032961 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32962Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032963fi
32964if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032965 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
32966Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032967fi
32968if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032969 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
32970Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032971fi
32972if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032973 as_fn_error "conditional \"WITH_PERL\" was never defined.
32974Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032975fi
32976if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032977 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
32978Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032979fi
32980if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032981 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32982Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032983fi
32984
32985: ${CONFIG_STATUS=./config.status}
32986ac_write_fail=0
32987ac_clean_files_save=$ac_clean_files
32988ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032989{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032990$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032991as_write_fail=0
32992cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032993#! $SHELL
32994# Generated by $as_me.
32995# Run this file to recreate the current configuration.
32996# Compiler output produced by configure, useful for debugging
32997# configure, is in config.log if it exists.
32998
32999debug=false
33000ac_cs_recheck=false
33001ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033002
cristy8b350f62009-11-15 23:12:43 +000033003SHELL=\${CONFIG_SHELL-$SHELL}
33004export SHELL
33005_ASEOF
33006cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33007## -------------------- ##
33008## M4sh Initialization. ##
33009## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033010
33011# Be more Bourne compatible
33012DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033013if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033014 emulate sh
33015 NULLCMD=:
33016 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33017 # is contrary to our usage. Disable this feature.
33018 alias -g '${1+"$@"}'='"$@"'
33019 setopt NO_GLOB_SUBST
33020else
cristy8b350f62009-11-15 23:12:43 +000033021 case `(set -o) 2>/dev/null` in #(
33022 *posix*) :
33023 set -o posix ;; #(
33024 *) :
33025 ;;
cristy3ed852e2009-09-05 21:47:34 +000033026esac
cristy3ed852e2009-09-05 21:47:34 +000033027fi
33028
33029
cristy3ed852e2009-09-05 21:47:34 +000033030as_nl='
33031'
33032export as_nl
33033# Printing a long string crashes Solaris 7 /usr/bin/printf.
33034as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33035as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33036as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033037# Prefer a ksh shell builtin over an external printf program on Solaris,
33038# but without wasting forks for bash or zsh.
33039if test -z "$BASH_VERSION$ZSH_VERSION" \
33040 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33041 as_echo='print -r --'
33042 as_echo_n='print -rn --'
33043elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033044 as_echo='printf %s\n'
33045 as_echo_n='printf %s'
33046else
33047 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33048 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33049 as_echo_n='/usr/ucb/echo -n'
33050 else
33051 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33052 as_echo_n_body='eval
33053 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033054 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033055 *"$as_nl"*)
33056 expr "X$arg" : "X\\(.*\\)$as_nl";
33057 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33058 esac;
33059 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33060 '
33061 export as_echo_n_body
33062 as_echo_n='sh -c $as_echo_n_body as_echo'
33063 fi
33064 export as_echo_body
33065 as_echo='sh -c $as_echo_body as_echo'
33066fi
33067
33068# The user is always right.
33069if test "${PATH_SEPARATOR+set}" != set; then
33070 PATH_SEPARATOR=:
33071 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33072 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33073 PATH_SEPARATOR=';'
33074 }
33075fi
33076
cristy3ed852e2009-09-05 21:47:34 +000033077
33078# IFS
33079# We need space, tab and new line, in precisely that order. Quoting is
33080# there to prevent editors from complaining about space-tab.
33081# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33082# splitting by setting IFS to empty value.)
33083IFS=" "" $as_nl"
33084
33085# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033086case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033087 *[\\/]* ) as_myself=$0 ;;
33088 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33089for as_dir in $PATH
33090do
33091 IFS=$as_save_IFS
33092 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033093 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33094 done
cristy3ed852e2009-09-05 21:47:34 +000033095IFS=$as_save_IFS
33096
33097 ;;
33098esac
33099# We did not find ourselves, most probably we were run as `sh COMMAND'
33100# in which case we are not to be found in the path.
33101if test "x$as_myself" = x; then
33102 as_myself=$0
33103fi
33104if test ! -f "$as_myself"; then
33105 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033106 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033107fi
33108
cristy8b350f62009-11-15 23:12:43 +000033109# Unset variables that we do not need and which cause bugs (e.g. in
33110# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33111# suppresses any "Segmentation fault" message there. '((' could
33112# trigger a bug in pdksh 5.2.14.
33113for as_var in BASH_ENV ENV MAIL MAILPATH
33114do eval test x\${$as_var+set} = xset \
33115 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033116done
33117PS1='$ '
33118PS2='> '
33119PS4='+ '
33120
33121# NLS nuisances.
33122LC_ALL=C
33123export LC_ALL
33124LANGUAGE=C
33125export LANGUAGE
33126
cristy8b350f62009-11-15 23:12:43 +000033127# CDPATH.
33128(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33129
33130
33131# as_fn_error ERROR [LINENO LOG_FD]
33132# ---------------------------------
33133# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33134# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33135# script with status $?, using 1 if that was 0.
33136as_fn_error ()
33137{
33138 as_status=$?; test $as_status -eq 0 && as_status=1
33139 if test "$3"; then
33140 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33141 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
33142 fi
33143 $as_echo "$as_me: error: $1" >&2
33144 as_fn_exit $as_status
33145} # as_fn_error
33146
33147
33148# as_fn_set_status STATUS
33149# -----------------------
33150# Set $? to STATUS, without forking.
33151as_fn_set_status ()
33152{
33153 return $1
33154} # as_fn_set_status
33155
33156# as_fn_exit STATUS
33157# -----------------
33158# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33159as_fn_exit ()
33160{
33161 set +e
33162 as_fn_set_status $1
33163 exit $1
33164} # as_fn_exit
33165
33166# as_fn_unset VAR
33167# ---------------
33168# Portably unset VAR.
33169as_fn_unset ()
33170{
33171 { eval $1=; unset $1;}
33172}
33173as_unset=as_fn_unset
33174# as_fn_append VAR VALUE
33175# ----------------------
33176# Append the text in VALUE to the end of the definition contained in VAR. Take
33177# advantage of any shell optimizations that allow amortized linear growth over
33178# repeated appends, instead of the typical quadratic growth present in naive
33179# implementations.
33180if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33181 eval 'as_fn_append ()
33182 {
33183 eval $1+=\$2
33184 }'
33185else
33186 as_fn_append ()
33187 {
33188 eval $1=\$$1\$2
33189 }
33190fi # as_fn_append
33191
33192# as_fn_arith ARG...
33193# ------------------
33194# Perform arithmetic evaluation on the ARGs, and store the result in the
33195# global $as_val. Take advantage of shells that can avoid forks. The arguments
33196# must be portable across $(()) and expr.
33197if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33198 eval 'as_fn_arith ()
33199 {
33200 as_val=$(( $* ))
33201 }'
33202else
33203 as_fn_arith ()
33204 {
33205 as_val=`expr "$@" || test $? -eq 1`
33206 }
33207fi # as_fn_arith
33208
33209
cristy3ed852e2009-09-05 21:47:34 +000033210if expr a : '\(a\)' >/dev/null 2>&1 &&
33211 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33212 as_expr=expr
33213else
33214 as_expr=false
33215fi
33216
33217if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33218 as_basename=basename
33219else
33220 as_basename=false
33221fi
33222
cristy8b350f62009-11-15 23:12:43 +000033223if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33224 as_dirname=dirname
33225else
33226 as_dirname=false
33227fi
cristy3ed852e2009-09-05 21:47:34 +000033228
cristy3ed852e2009-09-05 21:47:34 +000033229as_me=`$as_basename -- "$0" ||
33230$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33231 X"$0" : 'X\(//\)$' \| \
33232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33233$as_echo X/"$0" |
33234 sed '/^.*\/\([^/][^/]*\)\/*$/{
33235 s//\1/
33236 q
33237 }
33238 /^X\/\(\/\/\)$/{
33239 s//\1/
33240 q
33241 }
33242 /^X\/\(\/\).*/{
33243 s//\1/
33244 q
33245 }
33246 s/.*/./; q'`
33247
cristy8b350f62009-11-15 23:12:43 +000033248# Avoid depending upon Character Ranges.
33249as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33250as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33251as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33252as_cr_digits='0123456789'
33253as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033254
33255ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033256case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033257-n*)
cristy8b350f62009-11-15 23:12:43 +000033258 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033259 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033260 xy) ECHO_C='\c';;
33261 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33262 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033263 esac;;
33264*)
33265 ECHO_N='-n';;
33266esac
cristy3ed852e2009-09-05 21:47:34 +000033267
33268rm -f conf$$ conf$$.exe conf$$.file
33269if test -d conf$$.dir; then
33270 rm -f conf$$.dir/conf$$.file
33271else
33272 rm -f conf$$.dir
33273 mkdir conf$$.dir 2>/dev/null
33274fi
33275if (echo >conf$$.file) 2>/dev/null; then
33276 if ln -s conf$$.file conf$$ 2>/dev/null; then
33277 as_ln_s='ln -s'
33278 # ... but there are two gotchas:
33279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33281 # In both cases, we have to default to `cp -p'.
33282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33283 as_ln_s='cp -p'
33284 elif ln conf$$.file conf$$ 2>/dev/null; then
33285 as_ln_s=ln
33286 else
33287 as_ln_s='cp -p'
33288 fi
33289else
33290 as_ln_s='cp -p'
33291fi
33292rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33293rmdir conf$$.dir 2>/dev/null
33294
cristy8b350f62009-11-15 23:12:43 +000033295
33296# as_fn_mkdir_p
33297# -------------
33298# Create "$as_dir" as a directory, including parents if necessary.
33299as_fn_mkdir_p ()
33300{
33301
33302 case $as_dir in #(
33303 -*) as_dir=./$as_dir;;
33304 esac
33305 test -d "$as_dir" || eval $as_mkdir_p || {
33306 as_dirs=
33307 while :; do
33308 case $as_dir in #(
33309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33310 *) as_qdir=$as_dir;;
33311 esac
33312 as_dirs="'$as_qdir' $as_dirs"
33313 as_dir=`$as_dirname -- "$as_dir" ||
33314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33315 X"$as_dir" : 'X\(//\)[^/]' \| \
33316 X"$as_dir" : 'X\(//\)$' \| \
33317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33318$as_echo X"$as_dir" |
33319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33320 s//\1/
33321 q
33322 }
33323 /^X\(\/\/\)[^/].*/{
33324 s//\1/
33325 q
33326 }
33327 /^X\(\/\/\)$/{
33328 s//\1/
33329 q
33330 }
33331 /^X\(\/\).*/{
33332 s//\1/
33333 q
33334 }
33335 s/.*/./; q'`
33336 test -d "$as_dir" && break
33337 done
33338 test -z "$as_dirs" || eval "mkdir $as_dirs"
33339 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
33340
33341
33342} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033343if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033344 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033345else
33346 test -d ./-p && rmdir ./-p
33347 as_mkdir_p=false
33348fi
33349
33350if test -x / >/dev/null 2>&1; then
33351 as_test_x='test -x'
33352else
33353 if ls -dL / >/dev/null 2>&1; then
33354 as_ls_L_option=L
33355 else
33356 as_ls_L_option=
33357 fi
33358 as_test_x='
33359 eval sh -c '\''
33360 if test -d "$1"; then
33361 test -d "$1/.";
33362 else
cristy8b350f62009-11-15 23:12:43 +000033363 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033364 -*)set "./$1";;
33365 esac;
cristy8b350f62009-11-15 23:12:43 +000033366 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033367 ???[sx]*):;;*)false;;esac;fi
33368 '\'' sh
33369 '
33370fi
33371as_executable_p=$as_test_x
33372
33373# Sed expression to map a string onto a valid CPP name.
33374as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33375
33376# Sed expression to map a string onto a valid variable name.
33377as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33378
33379
33380exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033381## ----------------------------------- ##
33382## Main body of $CONFIG_STATUS script. ##
33383## ----------------------------------- ##
33384_ASEOF
33385test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033386
cristy8b350f62009-11-15 23:12:43 +000033387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33388# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033389# report actual input values of CONFIG_FILES etc. instead of their
33390# values after options handling.
33391ac_log="
cristy664b8d72010-05-17 13:53:36 +000033392This file was extended by ImageMagick $as_me 6.6.2, which was
cristycd4c5312009-11-22 01:19:08 +000033393generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033394
33395 CONFIG_FILES = $CONFIG_FILES
33396 CONFIG_HEADERS = $CONFIG_HEADERS
33397 CONFIG_LINKS = $CONFIG_LINKS
33398 CONFIG_COMMANDS = $CONFIG_COMMANDS
33399 $ $0 $@
33400
33401on `(hostname || uname -n) 2>/dev/null | sed 1q`
33402"
33403
33404_ACEOF
33405
33406case $ac_config_files in *"
33407"*) set x $ac_config_files; shift; ac_config_files=$*;;
33408esac
33409
33410case $ac_config_headers in *"
33411"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33412esac
33413
33414
33415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33416# Files that config.status was made for.
33417config_files="$ac_config_files"
33418config_headers="$ac_config_headers"
33419config_commands="$ac_config_commands"
33420
33421_ACEOF
33422
33423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33424ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033425\`$as_me' instantiates files and other configuration actions
33426from templates according to the current configuration. Unless the files
33427and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033428
cristy8b350f62009-11-15 23:12:43 +000033429Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033430
33431 -h, --help print this help, then exit
33432 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033433 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033434 -q, --quiet, --silent
33435 do not print progress messages
33436 -d, --debug don't remove temporary files
33437 --recheck update $as_me by reconfiguring in the same conditions
33438 --file=FILE[:TEMPLATE]
33439 instantiate the configuration file FILE
33440 --header=FILE[:TEMPLATE]
33441 instantiate the configuration header FILE
33442
33443Configuration files:
33444$config_files
33445
33446Configuration headers:
33447$config_headers
33448
33449Configuration commands:
33450$config_commands
33451
cristy8b350f62009-11-15 23:12:43 +000033452Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033453
33454_ACEOF
33455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033456ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033457ac_cs_version="\\
cristy664b8d72010-05-17 13:53:36 +000033458ImageMagick config.status 6.6.2
cristycd4c5312009-11-22 01:19:08 +000033459configured by $0, generated by GNU Autoconf 2.65,
33460 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033461
cristy8b350f62009-11-15 23:12:43 +000033462Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033463This config.status script is free software; the Free Software Foundation
33464gives unlimited permission to copy, distribute and modify it."
33465
33466ac_pwd='$ac_pwd'
33467srcdir='$srcdir'
33468INSTALL='$INSTALL'
33469MKDIR_P='$MKDIR_P'
33470AWK='$AWK'
33471test -n "\$AWK" || AWK=awk
33472_ACEOF
33473
33474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33475# The default lists apply if the user does not specify any file.
33476ac_need_defaults=:
33477while test $# != 0
33478do
33479 case $1 in
33480 --*=*)
33481 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33482 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33483 ac_shift=:
33484 ;;
33485 *)
33486 ac_option=$1
33487 ac_optarg=$2
33488 ac_shift=shift
33489 ;;
33490 esac
33491
33492 case $ac_option in
33493 # Handling of the options.
33494 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33495 ac_cs_recheck=: ;;
33496 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33497 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033498 --config | --confi | --conf | --con | --co | --c )
33499 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033500 --debug | --debu | --deb | --de | --d | -d )
33501 debug=: ;;
33502 --file | --fil | --fi | --f )
33503 $ac_shift
33504 case $ac_optarg in
33505 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33506 esac
cristy8b350f62009-11-15 23:12:43 +000033507 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033508 ac_need_defaults=false;;
33509 --header | --heade | --head | --hea )
33510 $ac_shift
33511 case $ac_optarg in
33512 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33513 esac
cristy8b350f62009-11-15 23:12:43 +000033514 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033515 ac_need_defaults=false;;
33516 --he | --h)
33517 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000033518 as_fn_error "ambiguous option: \`$1'
33519Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033520 --help | --hel | -h )
33521 $as_echo "$ac_cs_usage"; exit ;;
33522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33523 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33524 ac_cs_silent=: ;;
33525
33526 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000033527 -*) as_fn_error "unrecognized option: \`$1'
33528Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033529
cristy8b350f62009-11-15 23:12:43 +000033530 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033531 ac_need_defaults=false ;;
33532
33533 esac
33534 shift
33535done
33536
33537ac_configure_extra_args=
33538
33539if $ac_cs_silent; then
33540 exec 6>/dev/null
33541 ac_configure_extra_args="$ac_configure_extra_args --silent"
33542fi
33543
33544_ACEOF
33545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33546if \$ac_cs_recheck; then
33547 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33548 shift
33549 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33550 CONFIG_SHELL='$SHELL'
33551 export CONFIG_SHELL
33552 exec "\$@"
33553fi
33554
33555_ACEOF
33556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33557exec 5>>config.log
33558{
33559 echo
33560 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33561## Running $as_me. ##
33562_ASBOX
33563 $as_echo "$ac_log"
33564} >&5
33565
33566_ACEOF
33567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33568#
33569# INIT-COMMANDS
33570#
33571PACKAGE="$PACKAGE"
33572AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33573
33574
33575# The HP-UX ksh and POSIX shell print the target directory to stdout
33576# if CDPATH is set.
33577(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33578
33579sed_quote_subst='$sed_quote_subst'
33580double_quote_subst='$double_quote_subst'
33581delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000033582SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33583Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33584GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33585EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33586FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33587LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33588macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33589macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33590AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33591DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33592OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33593enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33594enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33595pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33596enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33597host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33598host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33599host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33600build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33601build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33602build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33603NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33604LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33605max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33606ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33607exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33608lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33609lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33610lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33611reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33612reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33613deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33614file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33615AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33616AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33617STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33618RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33619old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33620old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33621old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33622CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33623CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33624compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33625GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33626lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33627lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33628lt_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"`'
33629lt_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"`'
33630objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33631SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33632ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33633MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33634lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33635lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33636lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33637lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33638lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33639need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33640DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33641NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33642LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33643OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33644OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33645libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33646shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33647extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33648archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33649enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33650export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33651whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33652compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33653old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33654old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33655archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33656archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33657module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33658module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33659with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33660allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33661no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33662hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33663hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33664hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33665hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33666hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33667hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33668hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33669hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33670inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33671link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33672fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33673always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33674export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33675exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33676include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33677prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33678file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33679variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33680need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33681need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33682version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33683runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33684shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33685shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33686libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33687library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33688soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33689postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33690postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33691finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33692finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33693hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33694sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33695sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33696hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33697enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33698enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33699enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33700old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33701striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33702compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33703predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33704postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33705predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33706postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33707compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33708LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33709old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33710compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33711GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33712lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33713lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33714lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33715lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33716lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33717archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33718enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33719export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33720whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33721compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33722old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33723old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33724archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33725archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33726module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33727module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33728with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33729allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33730no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33731hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33732hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33733hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33734hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33735hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33736hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33737hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33738hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33739inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33740link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33741fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33742always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33743export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33744exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33745include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33746prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33747file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33748hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33749compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33750predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33751postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33752predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33753postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33754compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033755
33756LTCC='$LTCC'
33757LTCFLAGS='$LTCFLAGS'
33758compiler='$compiler_DEFAULT'
33759
33760# Quote evaled strings.
33761for var in SED \
33762GREP \
33763EGREP \
33764FGREP \
33765LD \
33766NM \
33767LN_S \
33768lt_SP2NL \
33769lt_NL2SP \
33770reload_flag \
33771deplibs_check_method \
33772file_magic_cmd \
33773AR \
33774AR_FLAGS \
33775STRIP \
33776RANLIB \
33777CC \
33778CFLAGS \
33779compiler \
33780lt_cv_sys_global_symbol_pipe \
33781lt_cv_sys_global_symbol_to_cdecl \
33782lt_cv_sys_global_symbol_to_c_name_address \
33783lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000033784SHELL \
33785ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033786lt_prog_compiler_no_builtin_flag \
33787lt_prog_compiler_wl \
33788lt_prog_compiler_pic \
33789lt_prog_compiler_static \
33790lt_cv_prog_compiler_c_o \
33791need_locks \
33792DSYMUTIL \
33793NMEDIT \
33794LIPO \
33795OTOOL \
33796OTOOL64 \
33797shrext_cmds \
33798export_dynamic_flag_spec \
33799whole_archive_flag_spec \
33800compiler_needs_object \
33801with_gnu_ld \
33802allow_undefined_flag \
33803no_undefined_flag \
33804hardcode_libdir_flag_spec \
33805hardcode_libdir_flag_spec_ld \
33806hardcode_libdir_separator \
33807fix_srcfile_path \
33808exclude_expsyms \
33809include_expsyms \
33810file_list_spec \
33811variables_saved_for_relink \
33812libname_spec \
33813library_names_spec \
33814soname_spec \
33815finish_eval \
33816old_striplib \
33817striplib \
33818compiler_lib_search_dirs \
33819predep_objects \
33820postdep_objects \
33821predeps \
33822postdeps \
33823compiler_lib_search_path \
33824LD_CXX \
33825compiler_CXX \
33826lt_prog_compiler_no_builtin_flag_CXX \
33827lt_prog_compiler_wl_CXX \
33828lt_prog_compiler_pic_CXX \
33829lt_prog_compiler_static_CXX \
33830lt_cv_prog_compiler_c_o_CXX \
33831export_dynamic_flag_spec_CXX \
33832whole_archive_flag_spec_CXX \
33833compiler_needs_object_CXX \
33834with_gnu_ld_CXX \
33835allow_undefined_flag_CXX \
33836no_undefined_flag_CXX \
33837hardcode_libdir_flag_spec_CXX \
33838hardcode_libdir_flag_spec_ld_CXX \
33839hardcode_libdir_separator_CXX \
33840fix_srcfile_path_CXX \
33841exclude_expsyms_CXX \
33842include_expsyms_CXX \
33843file_list_spec_CXX \
33844compiler_lib_search_dirs_CXX \
33845predep_objects_CXX \
33846postdep_objects_CXX \
33847predeps_CXX \
33848postdeps_CXX \
33849compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000033850 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033851 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033852 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033853 ;;
33854 *)
33855 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33856 ;;
33857 esac
33858done
33859
33860# Double-quote double-evaled strings.
33861for var in reload_cmds \
33862old_postinstall_cmds \
33863old_postuninstall_cmds \
33864old_archive_cmds \
33865extract_expsyms_cmds \
33866old_archive_from_new_cmds \
33867old_archive_from_expsyms_cmds \
33868archive_cmds \
33869archive_expsym_cmds \
33870module_cmds \
33871module_expsym_cmds \
33872export_symbols_cmds \
33873prelink_cmds \
33874postinstall_cmds \
33875postuninstall_cmds \
33876finish_cmds \
33877sys_lib_search_path_spec \
33878sys_lib_dlsearch_path_spec \
33879old_archive_cmds_CXX \
33880old_archive_from_new_cmds_CXX \
33881old_archive_from_expsyms_cmds_CXX \
33882archive_cmds_CXX \
33883archive_expsym_cmds_CXX \
33884module_cmds_CXX \
33885module_expsym_cmds_CXX \
33886export_symbols_cmds_CXX \
33887prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000033888 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033889 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033890 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 +000033891 ;;
33892 *)
33893 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33894 ;;
33895 esac
33896done
33897
cristy18304f92009-11-22 15:48:26 +000033898# Fix-up fallback echo if it was mangled by the above quoting rules.
33899case \$lt_ECHO in
33900*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33901 ;;
33902esac
33903
cristy3ed852e2009-09-05 21:47:34 +000033904ac_aux_dir='$ac_aux_dir'
33905xsi_shell='$xsi_shell'
33906lt_shell_append='$lt_shell_append'
33907
33908# See if we are running on zsh, and set the options which allow our
33909# commands through without removal of \ escapes INIT.
33910if test -n "\${ZSH_VERSION+set}" ; then
33911 setopt NO_GLOB_SUBST
33912fi
33913
33914
33915 PACKAGE='$PACKAGE'
33916 VERSION='$VERSION'
33917 TIMESTAMP='$TIMESTAMP'
33918 RM='$RM'
33919 ofile='$ofile'
33920
33921
33922
33923
33924
33925
33926_ACEOF
33927
33928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33929
33930# Handling of arguments.
33931for ac_config_target in $ac_config_targets
33932do
33933 case $ac_config_target in
33934 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33935 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33936 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33937 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33938 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33939 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33940 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033941 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033942 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33943 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33944 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33945 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33946 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33947 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33948 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33949 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33950 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33951 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33952 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33953 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33954 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33955 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33956 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33957 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33958 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33959 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33960 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33961 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33962 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33963 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33964 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33965 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33966 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33967 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33968 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33969 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33970 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33971 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33972 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33973 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33974 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33975 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33976 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33977 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33978 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33979 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33980 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33981 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33982 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33983 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33984
cristy8b350f62009-11-15 23:12:43 +000033985 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033986 esac
33987done
33988
33989
33990# If the user did not use the arguments to specify the items to instantiate,
33991# then the envvar interface is used. Set only those that are not.
33992# We use the long form for the default assignment because of an extremely
33993# bizarre bug on SunOS 4.1.3.
33994if $ac_need_defaults; then
33995 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33996 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33997 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33998fi
33999
34000# Have a temporary directory for convenience. Make it in the build tree
34001# simply because there is no reason against having it here, and in addition,
34002# creating and moving files from /tmp can sometimes cause problems.
34003# Hook for its removal unless debugging.
34004# Note that there is a small window in which the directory will not be cleaned:
34005# after its creation but before its name has been assigned to `$tmp'.
34006$debug ||
34007{
34008 tmp=
34009 trap 'exit_status=$?
34010 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34011' 0
cristy8b350f62009-11-15 23:12:43 +000034012 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034013}
34014# Create a (secure) tmp directory for tmp files.
34015
34016{
34017 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34018 test -n "$tmp" && test -d "$tmp"
34019} ||
34020{
34021 tmp=./conf$$-$RANDOM
34022 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000034023} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034024
34025# Set up the scripts for CONFIG_FILES section.
34026# No need to generate them if there are no CONFIG_FILES.
34027# This happens for instance with `./config.status config.h'.
34028if test -n "$CONFIG_FILES"; then
34029
34030
cristy8b350f62009-11-15 23:12:43 +000034031ac_cr=`echo X | tr X '\015'`
34032# On cygwin, bash can eat \r inside `` if the user requested igncr.
34033# But we know of no other shell where ac_cr would be empty at this
34034# point, so we can use a bashism as a fallback.
34035if test "x$ac_cr" = x; then
34036 eval ac_cr=\$\'\\r\'
34037fi
cristy3ed852e2009-09-05 21:47:34 +000034038ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34039if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000034040 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000034041else
34042 ac_cs_awk_cr=$ac_cr
34043fi
34044
34045echo 'BEGIN {' >"$tmp/subs1.awk" &&
34046_ACEOF
34047
34048
34049{
34050 echo "cat >conf$$subs.awk <<_ACEOF" &&
34051 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34052 echo "_ACEOF"
34053} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000034054 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034055ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
34056ac_delim='%!_!# '
34057for ac_last_try in false false false false false :; do
34058 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000034059 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034060
34061 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34062 if test $ac_delim_n = $ac_delim_num; then
34063 break
34064 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000034065 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034066 else
34067 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34068 fi
34069done
34070rm -f conf$$subs.sh
34071
34072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34073cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34074_ACEOF
34075sed -n '
34076h
34077s/^/S["/; s/!.*/"]=/
34078p
34079g
34080s/^[^!]*!//
34081:repl
34082t repl
34083s/'"$ac_delim"'$//
34084t delim
34085:nl
34086h
cristycd4c5312009-11-22 01:19:08 +000034087s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034088t more1
34089s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34090p
34091n
34092b repl
34093:more1
34094s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34095p
34096g
34097s/.\{148\}//
34098t nl
34099:delim
34100h
cristycd4c5312009-11-22 01:19:08 +000034101s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034102t more2
34103s/["\\]/\\&/g; s/^/"/; s/$/"/
34104p
34105b
34106:more2
34107s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34108p
34109g
34110s/.\{148\}//
34111t delim
34112' <conf$$subs.awk | sed '
34113/^[^""]/{
34114 N
34115 s/\n//
34116}
34117' >>$CONFIG_STATUS || ac_write_fail=1
34118rm -f conf$$subs.awk
34119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34120_ACAWK
34121cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34122 for (key in S) S_is_set[key] = 1
34123 FS = ""
34124
34125}
34126{
34127 line = $ 0
34128 nfields = split(line, field, "@")
34129 substed = 0
34130 len = length(field[1])
34131 for (i = 2; i < nfields; i++) {
34132 key = field[i]
34133 keylen = length(key)
34134 if (S_is_set[key]) {
34135 value = S[key]
34136 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34137 len += length(value) + length(field[++i])
34138 substed = 1
34139 } else
34140 len += 1 + keylen
34141 }
34142
34143 print line
34144}
34145
34146_ACAWK
34147_ACEOF
34148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34149if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34150 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34151else
34152 cat
34153fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000034154 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034155_ACEOF
34156
34157# VPATH may cause trouble with some makes, so we remove $(srcdir),
34158# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34159# trailing colons and then remove the whole line if VPATH becomes empty
34160# (actually we leave an empty line to preserve line numbers).
34161if test "x$srcdir" = x.; then
34162 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34163s/:*\$(srcdir):*/:/
34164s/:*\${srcdir}:*/:/
34165s/:*@srcdir@:*/:/
34166s/^\([^=]*=[ ]*\):*/\1/
34167s/:*$//
34168s/^[^=]*=[ ]*$//
34169}'
34170fi
34171
34172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34173fi # test -n "$CONFIG_FILES"
34174
34175# Set up the scripts for CONFIG_HEADERS section.
34176# No need to generate them if there are no CONFIG_HEADERS.
34177# This happens for instance with `./config.status Makefile'.
34178if test -n "$CONFIG_HEADERS"; then
34179cat >"$tmp/defines.awk" <<\_ACAWK ||
34180BEGIN {
34181_ACEOF
34182
34183# Transform confdefs.h into an awk script `defines.awk', embedded as
34184# here-document in config.status, that substitutes the proper values into
34185# config.h.in to produce config.h.
34186
34187# Create a delimiter string that does not exist in confdefs.h, to ease
34188# handling of long lines.
34189ac_delim='%!_!# '
34190for ac_last_try in false false :; do
34191 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34192 if test -z "$ac_t"; then
34193 break
34194 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000034195 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034196 else
34197 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34198 fi
34199done
34200
34201# For the awk script, D is an array of macro values keyed by name,
34202# likewise P contains macro parameters if any. Preserve backslash
34203# newline sequences.
34204
34205ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34206sed -n '
34207s/.\{148\}/&'"$ac_delim"'/g
34208t rset
34209:rset
34210s/^[ ]*#[ ]*define[ ][ ]*/ /
34211t def
34212d
34213:def
34214s/\\$//
34215t bsnl
34216s/["\\]/\\&/g
34217s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34218D["\1"]=" \3"/p
34219s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34220d
34221:bsnl
34222s/["\\]/\\&/g
34223s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34224D["\1"]=" \3\\\\\\n"\\/p
34225t cont
34226s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34227t cont
34228d
34229:cont
34230n
34231s/.\{148\}/&'"$ac_delim"'/g
34232t clear
34233:clear
34234s/\\$//
34235t bsnlc
34236s/["\\]/\\&/g; s/^/"/; s/$/"/p
34237d
34238:bsnlc
34239s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34240b cont
34241' <confdefs.h | sed '
34242s/'"$ac_delim"'/"\\\
34243"/g' >>$CONFIG_STATUS || ac_write_fail=1
34244
34245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34246 for (key in D) D_is_set[key] = 1
34247 FS = ""
34248}
34249/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34250 line = \$ 0
34251 split(line, arg, " ")
34252 if (arg[1] == "#") {
34253 defundef = arg[2]
34254 mac1 = arg[3]
34255 } else {
34256 defundef = substr(arg[1], 2)
34257 mac1 = arg[2]
34258 }
34259 split(mac1, mac2, "(") #)
34260 macro = mac2[1]
34261 prefix = substr(line, 1, index(line, defundef) - 1)
34262 if (D_is_set[macro]) {
34263 # Preserve the white space surrounding the "#".
34264 print prefix "define", macro P[macro] D[macro]
34265 next
34266 } else {
34267 # Replace #undef with comments. This is necessary, for example,
34268 # in the case of _POSIX_SOURCE, which is predefined and required
34269 # on some systems where configure will not decide to define it.
34270 if (defundef == "undef") {
34271 print "/*", prefix defundef, macro, "*/"
34272 next
34273 }
34274 }
34275}
34276{ print }
34277_ACAWK
34278_ACEOF
34279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000034280 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034281fi # test -n "$CONFIG_HEADERS"
34282
34283
34284eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34285shift
34286for ac_tag
34287do
34288 case $ac_tag in
34289 :[FHLC]) ac_mode=$ac_tag; continue;;
34290 esac
34291 case $ac_mode$ac_tag in
34292 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000034293 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034294 :[FH]-) ac_tag=-:-;;
34295 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34296 esac
34297 ac_save_IFS=$IFS
34298 IFS=:
34299 set x $ac_tag
34300 IFS=$ac_save_IFS
34301 shift
34302 ac_file=$1
34303 shift
34304
34305 case $ac_mode in
34306 :L) ac_source=$1;;
34307 :[FH])
34308 ac_file_inputs=
34309 for ac_f
34310 do
34311 case $ac_f in
34312 -) ac_f="$tmp/stdin";;
34313 *) # Look for the file first in the build tree, then in the source tree
34314 # (if the path is not absolute). The absolute path cannot be DOS-style,
34315 # because $ac_f cannot contain `:'.
34316 test -f "$ac_f" ||
34317 case $ac_f in
34318 [\\/$]*) false;;
34319 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34320 esac ||
cristy8b350f62009-11-15 23:12:43 +000034321 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034322 esac
34323 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034324 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034325 done
34326
34327 # Let's still pretend it is `configure' which instantiates (i.e., don't
34328 # use $as_me), people would be surprised to read:
34329 # /* config.h. Generated by config.status. */
34330 configure_input='Generated from '`
34331 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34332 `' by configure.'
34333 if test x"$ac_file" != x-; then
34334 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034336$as_echo "$as_me: creating $ac_file" >&6;}
34337 fi
34338 # Neutralize special characters interpreted by sed in replacement strings.
34339 case $configure_input in #(
34340 *\&* | *\|* | *\\* )
34341 ac_sed_conf_input=`$as_echo "$configure_input" |
34342 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34343 *) ac_sed_conf_input=$configure_input;;
34344 esac
34345
34346 case $ac_tag in
34347 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000034348 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034349 esac
34350 ;;
34351 esac
34352
34353 ac_dir=`$as_dirname -- "$ac_file" ||
34354$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34355 X"$ac_file" : 'X\(//\)[^/]' \| \
34356 X"$ac_file" : 'X\(//\)$' \| \
34357 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34358$as_echo X"$ac_file" |
34359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34360 s//\1/
34361 q
34362 }
34363 /^X\(\/\/\)[^/].*/{
34364 s//\1/
34365 q
34366 }
34367 /^X\(\/\/\)$/{
34368 s//\1/
34369 q
34370 }
34371 /^X\(\/\).*/{
34372 s//\1/
34373 q
34374 }
34375 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034376 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034377 ac_builddir=.
34378
34379case "$ac_dir" in
34380.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34381*)
34382 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34383 # A ".." for each directory in $ac_dir_suffix.
34384 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34385 case $ac_top_builddir_sub in
34386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34388 esac ;;
34389esac
34390ac_abs_top_builddir=$ac_pwd
34391ac_abs_builddir=$ac_pwd$ac_dir_suffix
34392# for backward compatibility:
34393ac_top_builddir=$ac_top_build_prefix
34394
34395case $srcdir in
34396 .) # We are building in place.
34397 ac_srcdir=.
34398 ac_top_srcdir=$ac_top_builddir_sub
34399 ac_abs_top_srcdir=$ac_pwd ;;
34400 [\\/]* | ?:[\\/]* ) # Absolute name.
34401 ac_srcdir=$srcdir$ac_dir_suffix;
34402 ac_top_srcdir=$srcdir
34403 ac_abs_top_srcdir=$srcdir ;;
34404 *) # Relative name.
34405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34406 ac_top_srcdir=$ac_top_build_prefix$srcdir
34407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34408esac
34409ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34410
34411
34412 case $ac_mode in
34413 :F)
34414 #
34415 # CONFIG_FILE
34416 #
34417
34418 case $INSTALL in
34419 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34420 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34421 esac
34422 ac_MKDIR_P=$MKDIR_P
34423 case $MKDIR_P in
34424 [\\/$]* | ?:[\\/]* ) ;;
34425 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34426 esac
34427_ACEOF
34428
34429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34430# If the template does not know about datarootdir, expand it.
34431# FIXME: This hack should be removed a few years after 2.60.
34432ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034433ac_sed_dataroot='
34434/datarootdir/ {
34435 p
34436 q
34437}
34438/@datadir@/p
34439/@docdir@/p
34440/@infodir@/p
34441/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034442/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034443case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34444*datarootdir*) ac_datarootdir_seen=yes;;
34445*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034447$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34448_ACEOF
34449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34450 ac_datarootdir_hack='
34451 s&@datadir@&$datadir&g
34452 s&@docdir@&$docdir&g
34453 s&@infodir@&$infodir&g
34454 s&@localedir@&$localedir&g
34455 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034456 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034457esac
34458_ACEOF
34459
34460# Neutralize VPATH when `$srcdir' = `.'.
34461# Shell code in configure.ac might set extrasub.
34462# FIXME: do we really want to maintain this feature?
34463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34464ac_sed_extra="$ac_vpsub
34465$extrasub
34466_ACEOF
34467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34468:t
34469/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34470s|@configure_input@|$ac_sed_conf_input|;t t
34471s&@top_builddir@&$ac_top_builddir_sub&;t t
34472s&@top_build_prefix@&$ac_top_build_prefix&;t t
34473s&@srcdir@&$ac_srcdir&;t t
34474s&@abs_srcdir@&$ac_abs_srcdir&;t t
34475s&@top_srcdir@&$ac_top_srcdir&;t t
34476s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34477s&@builddir@&$ac_builddir&;t t
34478s&@abs_builddir@&$ac_abs_builddir&;t t
34479s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34480s&@INSTALL@&$ac_INSTALL&;t t
34481s&@MKDIR_P@&$ac_MKDIR_P&;t t
34482$ac_datarootdir_hack
34483"
34484eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000034485 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034486
34487test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34488 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34489 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000034491which seems to be undefined. Please make sure it is defined." >&5
34492$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34493which seems to be undefined. Please make sure it is defined." >&2;}
34494
34495 rm -f "$tmp/stdin"
34496 case $ac_file in
34497 -) cat "$tmp/out" && rm -f "$tmp/out";;
34498 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34499 esac \
cristy8b350f62009-11-15 23:12:43 +000034500 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034501 ;;
34502 :H)
34503 #
34504 # CONFIG_HEADER
34505 #
34506 if test x"$ac_file" != x-; then
34507 {
34508 $as_echo "/* $configure_input */" \
34509 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34510 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000034511 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034512 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034513 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034514$as_echo "$as_me: $ac_file is unchanged" >&6;}
34515 else
34516 rm -f "$ac_file"
34517 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000034518 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034519 fi
34520 else
34521 $as_echo "/* $configure_input */" \
34522 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000034523 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034524 fi
34525# Compute "$ac_file"'s index in $config_headers.
34526_am_arg="$ac_file"
34527_am_stamp_count=1
34528for _am_header in $config_headers :; do
34529 case $_am_header in
34530 $_am_arg | $_am_arg:* )
34531 break ;;
34532 * )
34533 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34534 esac
34535done
34536echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34537$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34538 X"$_am_arg" : 'X\(//\)[^/]' \| \
34539 X"$_am_arg" : 'X\(//\)$' \| \
34540 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34541$as_echo X"$_am_arg" |
34542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34543 s//\1/
34544 q
34545 }
34546 /^X\(\/\/\)[^/].*/{
34547 s//\1/
34548 q
34549 }
34550 /^X\(\/\/\)$/{
34551 s//\1/
34552 q
34553 }
34554 /^X\(\/\).*/{
34555 s//\1/
34556 q
34557 }
34558 s/.*/./; q'`/stamp-h$_am_stamp_count
34559 ;;
34560
cristy8b350f62009-11-15 23:12:43 +000034561 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034562$as_echo "$as_me: executing $ac_file commands" >&6;}
34563 ;;
34564 esac
34565
34566
34567 case $ac_file$ac_mode in
34568 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34569ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34570ac_prefix_conf_PKG=`echo MagickCore`
34571ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34572ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34573ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34574if test ".$ac_prefix_conf_INP" = "."; then
34575 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34576 case "$ac_file" in
34577 *.h) ac_prefix_conf_INP=$ac_file ;;
34578 *)
34579 esac
34580 test ".$ac_prefix_conf_INP" != "." && break
34581 done
34582fi
34583if test ".$ac_prefix_conf_INP" = "."; then
34584 case "$ac_prefix_conf_OUT" in
34585 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34586 ;;
34587 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34588 ;;
34589 *) ac_prefix_conf_INP=config.h
34590 ;;
34591 esac
34592fi
34593if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000034594 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034595else
34596 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34597 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34598 fi fi
cristy8b350f62009-11-15 23:12:43 +000034599 { $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 +000034600$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34601 if test -f $ac_prefix_conf_INP ; then
34602 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34603 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034604 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34605 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034606 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034607 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34608 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034609 echo "#endif/" >> conftest.prefix
34610 # now executing _script on _DEF input to create _OUT output file
34611 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34612 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34613 echo ' ' >>$tmp/pconfig.h
34614 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34615
34616 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34617 echo ' ' >>$tmp/pconfig.h
34618 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34619 echo "#endif" >>$tmp/pconfig.h
34620 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034621 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034622$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34623 else
34624 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34625$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34626 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34627 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34628 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34629$as_echo X"$ac_prefix_conf_OUT" |
34630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34631 s//\1/
34632 q
34633 }
34634 /^X\(\/\/\)[^/].*/{
34635 s//\1/
34636 q
34637 }
34638 /^X\(\/\/\)$/{
34639 s//\1/
34640 q
34641 }
34642 /^X\(\/\).*/{
34643 s//\1/
34644 q
34645 }
34646 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034647 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034648 rm -f "$ac_prefix_conf_OUT"
34649 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34650 fi
34651 cp conftest.prefix _configs.sed
34652 else
cristy8b350f62009-11-15 23:12:43 +000034653 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 +000034654 fi
34655 rm -f conftest.*
34656fi
34657 ;;
34658 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34659 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34660 # are listed without --file. Let's play safe and only enable the eval
34661 # if we detect the quoting.
34662 case $CONFIG_FILES in
34663 *\'*) eval set x "$CONFIG_FILES" ;;
34664 *) set x $CONFIG_FILES ;;
34665 esac
34666 shift
34667 for mf
34668 do
34669 # Strip MF so we end up with the name of the file.
34670 mf=`echo "$mf" | sed -e 's/:.*$//'`
34671 # Check whether this is an Automake generated Makefile or not.
34672 # We used to match only the files named `Makefile.in', but
34673 # some people rename them; so instead we look at the file content.
34674 # Grep'ing the first line is not enough: some people post-process
34675 # each Makefile.in and add a new line on top of each file to say so.
34676 # Grep'ing the whole file is not good either: AIX grep has a line
34677 # limit of 2048, but all sed's we know have understand at least 4000.
34678 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34679 dirpart=`$as_dirname -- "$mf" ||
34680$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34681 X"$mf" : 'X\(//\)[^/]' \| \
34682 X"$mf" : 'X\(//\)$' \| \
34683 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34684$as_echo X"$mf" |
34685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34686 s//\1/
34687 q
34688 }
34689 /^X\(\/\/\)[^/].*/{
34690 s//\1/
34691 q
34692 }
34693 /^X\(\/\/\)$/{
34694 s//\1/
34695 q
34696 }
34697 /^X\(\/\).*/{
34698 s//\1/
34699 q
34700 }
34701 s/.*/./; q'`
34702 else
34703 continue
34704 fi
34705 # Extract the definition of DEPDIR, am__include, and am__quote
34706 # from the Makefile without running `make'.
34707 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34708 test -z "$DEPDIR" && continue
34709 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34710 test -z "am__include" && continue
34711 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34712 # When using ansi2knr, U may be empty or an underscore; expand it
34713 U=`sed -n 's/^U = //p' < "$mf"`
34714 # Find all dependency output files, they are included files with
34715 # $(DEPDIR) in their names. We invoke sed twice because it is the
34716 # simplest approach to changing $(DEPDIR) to its actual value in the
34717 # expansion.
34718 for file in `sed -n "
34719 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34720 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34721 # Make sure the directory exists.
34722 test -f "$dirpart/$file" && continue
34723 fdir=`$as_dirname -- "$file" ||
34724$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34725 X"$file" : 'X\(//\)[^/]' \| \
34726 X"$file" : 'X\(//\)$' \| \
34727 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34728$as_echo X"$file" |
34729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34730 s//\1/
34731 q
34732 }
34733 /^X\(\/\/\)[^/].*/{
34734 s//\1/
34735 q
34736 }
34737 /^X\(\/\/\)$/{
34738 s//\1/
34739 q
34740 }
34741 /^X\(\/\).*/{
34742 s//\1/
34743 q
34744 }
34745 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034746 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034747 # echo "creating $dirpart/$file"
34748 echo '# dummy' > "$dirpart/$file"
34749 done
34750 done
34751}
34752 ;;
34753 "libtool":C)
34754
34755 # See if we are running on zsh, and set the options which allow our
34756 # commands through without removal of \ escapes.
34757 if test -n "${ZSH_VERSION+set}" ; then
34758 setopt NO_GLOB_SUBST
34759 fi
34760
34761 cfgfile="${ofile}T"
34762 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34763 $RM "$cfgfile"
34764
34765 cat <<_LT_EOF >> "$cfgfile"
34766#! $SHELL
34767
34768# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34769# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34770# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34771# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34772#
34773# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000034774# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034775# Written by Gordon Matzigkeit, 1996
34776#
34777# This file is part of GNU Libtool.
34778#
34779# GNU Libtool is free software; you can redistribute it and/or
34780# modify it under the terms of the GNU General Public License as
34781# published by the Free Software Foundation; either version 2 of
34782# the License, or (at your option) any later version.
34783#
34784# As a special exception to the GNU General Public License,
34785# if you distribute this file as part of a program or library that
34786# is built using GNU Libtool, you may include this file under the
34787# same distribution terms that you use for the rest of that program.
34788#
34789# GNU Libtool is distributed in the hope that it will be useful,
34790# but WITHOUT ANY WARRANTY; without even the implied warranty of
34791# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34792# GNU General Public License for more details.
34793#
34794# You should have received a copy of the GNU General Public License
34795# along with GNU Libtool; see the file COPYING. If not, a copy
34796# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34797# obtained by writing to the Free Software Foundation, Inc.,
34798# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34799
34800
34801# The names of the tagged configurations supported by this script.
34802available_tags="CXX "
34803
34804# ### BEGIN LIBTOOL CONFIG
34805
34806# A sed program that does not truncate output.
34807SED=$lt_SED
34808
34809# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34810Xsed="\$SED -e 1s/^X//"
34811
34812# A grep program that handles long lines.
34813GREP=$lt_GREP
34814
34815# An ERE matcher.
34816EGREP=$lt_EGREP
34817
34818# A literal string matcher.
34819FGREP=$lt_FGREP
34820
34821# Which release of libtool.m4 was used?
34822macro_version=$macro_version
34823macro_revision=$macro_revision
34824
34825# Assembler program.
cristy18304f92009-11-22 15:48:26 +000034826AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000034827
34828# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000034829DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034830
34831# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000034832OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034833
34834# Whether or not to build shared libraries.
34835build_libtool_libs=$enable_shared
34836
34837# Whether or not to build static libraries.
34838build_old_libs=$enable_static
34839
34840# What type of objects to build.
34841pic_mode=$pic_mode
34842
34843# Whether or not to optimize for fast installation.
34844fast_install=$enable_fast_install
34845
34846# The host system.
34847host_alias=$host_alias
34848host=$host
34849host_os=$host_os
34850
34851# The build system.
34852build_alias=$build_alias
34853build=$build
34854build_os=$build_os
34855
34856# A BSD- or MS-compatible name lister.
34857NM=$lt_NM
34858
34859# Whether we need soft or hard links.
34860LN_S=$lt_LN_S
34861
34862# What is the maximum length of a command?
34863max_cmd_len=$max_cmd_len
34864
34865# Object file suffix (normally "o").
34866objext=$ac_objext
34867
34868# Executable file suffix (normally "").
34869exeext=$exeext
34870
34871# whether the shell understands "unset".
34872lt_unset=$lt_unset
34873
34874# turn spaces into newlines.
34875SP2NL=$lt_lt_SP2NL
34876
34877# turn newlines into spaces.
34878NL2SP=$lt_lt_NL2SP
34879
cristy18304f92009-11-22 15:48:26 +000034880# How to create reloadable object files.
34881reload_flag=$lt_reload_flag
34882reload_cmds=$lt_reload_cmds
34883
cristy3ed852e2009-09-05 21:47:34 +000034884# Method to check whether dependent libraries are shared objects.
34885deplibs_check_method=$lt_deplibs_check_method
34886
34887# Command to use when deplibs_check_method == "file_magic".
34888file_magic_cmd=$lt_file_magic_cmd
34889
34890# The archiver.
34891AR=$lt_AR
34892AR_FLAGS=$lt_AR_FLAGS
34893
34894# A symbol stripping program.
34895STRIP=$lt_STRIP
34896
34897# Commands used to install an old-style archive.
34898RANLIB=$lt_RANLIB
34899old_postinstall_cmds=$lt_old_postinstall_cmds
34900old_postuninstall_cmds=$lt_old_postuninstall_cmds
34901
34902# A C compiler.
34903LTCC=$lt_CC
34904
34905# LTCC compiler flags.
34906LTCFLAGS=$lt_CFLAGS
34907
34908# Take the output of nm and produce a listing of raw symbols and C names.
34909global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34910
34911# Transform the output of nm in a proper C declaration.
34912global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34913
34914# Transform the output of nm in a C name address pair.
34915global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34916
34917# Transform the output of nm in a C name address pair when lib prefix is needed.
34918global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34919
34920# The name of the directory that contains temporary libtool files.
34921objdir=$objdir
34922
cristy18304f92009-11-22 15:48:26 +000034923# Shell to use when invoking shell scripts.
34924SHELL=$lt_SHELL
34925
34926# An echo program that does not interpret backslashes.
34927ECHO=$lt_ECHO
34928
cristy3ed852e2009-09-05 21:47:34 +000034929# Used to examine libraries when file_magic_cmd begins with "file".
34930MAGIC_CMD=$MAGIC_CMD
34931
34932# Must we lock files when doing compilation?
34933need_locks=$lt_need_locks
34934
34935# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34936DSYMUTIL=$lt_DSYMUTIL
34937
34938# Tool to change global to local symbols on Mac OS X.
34939NMEDIT=$lt_NMEDIT
34940
34941# Tool to manipulate fat objects and archives on Mac OS X.
34942LIPO=$lt_LIPO
34943
34944# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34945OTOOL=$lt_OTOOL
34946
34947# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34948OTOOL64=$lt_OTOOL64
34949
34950# Old archive suffix (normally "a").
34951libext=$libext
34952
34953# Shared library suffix (normally ".so").
34954shrext_cmds=$lt_shrext_cmds
34955
34956# The commands to extract the exported symbol list from a shared archive.
34957extract_expsyms_cmds=$lt_extract_expsyms_cmds
34958
34959# Variables whose values should be saved in libtool wrapper scripts and
34960# restored at link time.
34961variables_saved_for_relink=$lt_variables_saved_for_relink
34962
34963# Do we need the "lib" prefix for modules?
34964need_lib_prefix=$need_lib_prefix
34965
34966# Do we need a version for libraries?
34967need_version=$need_version
34968
34969# Library versioning type.
34970version_type=$version_type
34971
34972# Shared library runtime path variable.
34973runpath_var=$runpath_var
34974
34975# Shared library path variable.
34976shlibpath_var=$shlibpath_var
34977
34978# Is shlibpath searched before the hard-coded library search path?
34979shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34980
34981# Format of library name prefix.
34982libname_spec=$lt_libname_spec
34983
34984# List of archive names. First name is the real one, the rest are links.
34985# The last name is the one that the linker finds with -lNAME
34986library_names_spec=$lt_library_names_spec
34987
34988# The coded name of the library, if different from the real name.
34989soname_spec=$lt_soname_spec
34990
34991# Command to use after installation of a shared archive.
34992postinstall_cmds=$lt_postinstall_cmds
34993
34994# Command to use after uninstallation of a shared archive.
34995postuninstall_cmds=$lt_postuninstall_cmds
34996
34997# Commands used to finish a libtool library installation in a directory.
34998finish_cmds=$lt_finish_cmds
34999
35000# As "finish_cmds", except a single script fragment to be evaled but
35001# not shown.
35002finish_eval=$lt_finish_eval
35003
35004# Whether we should hardcode library paths into libraries.
35005hardcode_into_libs=$hardcode_into_libs
35006
35007# Compile-time system search path for libraries.
35008sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35009
35010# Run-time system search path for libraries.
35011sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35012
35013# Whether dlopen is supported.
35014dlopen_support=$enable_dlopen
35015
35016# Whether dlopen of programs is supported.
35017dlopen_self=$enable_dlopen_self
35018
35019# Whether dlopen of statically linked programs is supported.
35020dlopen_self_static=$enable_dlopen_self_static
35021
35022# Commands to strip libraries.
35023old_striplib=$lt_old_striplib
35024striplib=$lt_striplib
35025
35026
35027# The linker used to build libraries.
35028LD=$lt_LD
35029
35030# Commands used to build an old-style archive.
35031old_archive_cmds=$lt_old_archive_cmds
35032
35033# A language specific compiler.
35034CC=$lt_compiler
35035
35036# Is the compiler the GNU compiler?
35037with_gcc=$GCC
35038
35039# Compiler flag to turn off builtin functions.
35040no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35041
35042# How to pass a linker flag through the compiler.
35043wl=$lt_lt_prog_compiler_wl
35044
35045# Additional compiler flags for building library objects.
35046pic_flag=$lt_lt_prog_compiler_pic
35047
35048# Compiler flag to prevent dynamic linking.
35049link_static_flag=$lt_lt_prog_compiler_static
35050
35051# Does compiler simultaneously support -c and -o options?
35052compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35053
35054# Whether or not to add -lc for building shared libraries.
35055build_libtool_need_lc=$archive_cmds_need_lc
35056
35057# Whether or not to disallow shared libs when runtime libs are static.
35058allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35059
35060# Compiler flag to allow reflexive dlopens.
35061export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35062
35063# Compiler flag to generate shared objects directly from archives.
35064whole_archive_flag_spec=$lt_whole_archive_flag_spec
35065
35066# Whether the compiler copes with passing no objects directly.
35067compiler_needs_object=$lt_compiler_needs_object
35068
35069# Create an old-style archive from a shared archive.
35070old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35071
35072# Create a temporary old-style archive to link instead of a shared archive.
35073old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35074
35075# Commands used to build a shared archive.
35076archive_cmds=$lt_archive_cmds
35077archive_expsym_cmds=$lt_archive_expsym_cmds
35078
35079# Commands used to build a loadable module if different from building
35080# a shared archive.
35081module_cmds=$lt_module_cmds
35082module_expsym_cmds=$lt_module_expsym_cmds
35083
35084# Whether we are building with GNU ld or not.
35085with_gnu_ld=$lt_with_gnu_ld
35086
35087# Flag that allows shared libraries with undefined symbols to be built.
35088allow_undefined_flag=$lt_allow_undefined_flag
35089
35090# Flag that enforces no undefined symbols.
35091no_undefined_flag=$lt_no_undefined_flag
35092
35093# Flag to hardcode \$libdir into a binary during linking.
35094# This must work even if \$libdir does not exist
35095hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35096
35097# If ld is used when linking, flag to hardcode \$libdir into a binary
35098# during linking. This must work even if \$libdir does not exist.
35099hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35100
35101# Whether we need a single "-rpath" flag with a separated argument.
35102hardcode_libdir_separator=$lt_hardcode_libdir_separator
35103
35104# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35105# DIR into the resulting binary.
35106hardcode_direct=$hardcode_direct
35107
35108# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35109# DIR into the resulting binary and the resulting library dependency is
35110# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35111# library is relocated.
35112hardcode_direct_absolute=$hardcode_direct_absolute
35113
35114# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35115# into the resulting binary.
35116hardcode_minus_L=$hardcode_minus_L
35117
35118# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35119# into the resulting binary.
35120hardcode_shlibpath_var=$hardcode_shlibpath_var
35121
35122# Set to "yes" if building a shared library automatically hardcodes DIR
35123# into the library and all subsequent libraries and executables linked
35124# against it.
35125hardcode_automatic=$hardcode_automatic
35126
35127# Set to yes if linker adds runtime paths of dependent libraries
35128# to runtime path list.
35129inherit_rpath=$inherit_rpath
35130
35131# Whether libtool must link a program against all its dependency libraries.
35132link_all_deplibs=$link_all_deplibs
35133
35134# Fix the shell variable \$srcfile for the compiler.
35135fix_srcfile_path=$lt_fix_srcfile_path
35136
35137# Set to "yes" if exported symbols are required.
35138always_export_symbols=$always_export_symbols
35139
35140# The commands to list exported symbols.
35141export_symbols_cmds=$lt_export_symbols_cmds
35142
35143# Symbols that should not be listed in the preloaded symbols.
35144exclude_expsyms=$lt_exclude_expsyms
35145
35146# Symbols that must always be exported.
35147include_expsyms=$lt_include_expsyms
35148
35149# Commands necessary for linking programs (against libraries) with templates.
35150prelink_cmds=$lt_prelink_cmds
35151
35152# Specify filename containing input files.
35153file_list_spec=$lt_file_list_spec
35154
35155# How to hardcode a shared library path into an executable.
35156hardcode_action=$hardcode_action
35157
35158# The directories searched by this compiler when creating a shared library.
35159compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35160
35161# Dependencies to place before and after the objects being linked to
35162# create a shared library.
35163predep_objects=$lt_predep_objects
35164postdep_objects=$lt_postdep_objects
35165predeps=$lt_predeps
35166postdeps=$lt_postdeps
35167
35168# The library search path used internally by the compiler when linking
35169# a shared library.
35170compiler_lib_search_path=$lt_compiler_lib_search_path
35171
35172# ### END LIBTOOL CONFIG
35173
35174_LT_EOF
35175
35176 case $host_os in
35177 aix3*)
35178 cat <<\_LT_EOF >> "$cfgfile"
35179# AIX sometimes has problems with the GCC collect2 program. For some
35180# reason, if we set the COLLECT_NAMES environment variable, the problems
35181# vanish in a puff of smoke.
35182if test "X${COLLECT_NAMES+set}" != Xset; then
35183 COLLECT_NAMES=
35184 export COLLECT_NAMES
35185fi
35186_LT_EOF
35187 ;;
35188 esac
35189
35190
35191ltmain="$ac_aux_dir/ltmain.sh"
35192
35193
35194 # We use sed instead of cat because bash on DJGPP gets confused if
35195 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35196 # text mode, it properly converts lines to CR/LF. This bash problem
35197 # is reportedly fixed, but why not run on old versions too?
35198 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35199 || (rm -f "$cfgfile"; exit 1)
35200
35201 case $xsi_shell in
35202 yes)
35203 cat << \_LT_EOF >> "$cfgfile"
35204
35205# func_dirname file append nondir_replacement
35206# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35207# otherwise set result to NONDIR_REPLACEMENT.
35208func_dirname ()
35209{
35210 case ${1} in
35211 */*) func_dirname_result="${1%/*}${2}" ;;
35212 * ) func_dirname_result="${3}" ;;
35213 esac
35214}
35215
35216# func_basename file
35217func_basename ()
35218{
35219 func_basename_result="${1##*/}"
35220}
35221
35222# func_dirname_and_basename file append nondir_replacement
35223# perform func_basename and func_dirname in a single function
35224# call:
35225# dirname: Compute the dirname of FILE. If nonempty,
35226# add APPEND to the result, otherwise set result
35227# to NONDIR_REPLACEMENT.
35228# value returned in "$func_dirname_result"
35229# basename: Compute filename of FILE.
35230# value retuned in "$func_basename_result"
35231# Implementation must be kept synchronized with func_dirname
35232# and func_basename. For efficiency, we do not delegate to
35233# those functions but instead duplicate the functionality here.
35234func_dirname_and_basename ()
35235{
35236 case ${1} in
35237 */*) func_dirname_result="${1%/*}${2}" ;;
35238 * ) func_dirname_result="${3}" ;;
35239 esac
35240 func_basename_result="${1##*/}"
35241}
35242
35243# func_stripname prefix suffix name
35244# strip PREFIX and SUFFIX off of NAME.
35245# PREFIX and SUFFIX must not contain globbing or regex special
35246# characters, hashes, percent signs, but SUFFIX may contain a leading
35247# dot (in which case that matches only a dot).
35248func_stripname ()
35249{
35250 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35251 # positional parameters, so assign one to ordinary parameter first.
35252 func_stripname_result=${3}
35253 func_stripname_result=${func_stripname_result#"${1}"}
35254 func_stripname_result=${func_stripname_result%"${2}"}
35255}
35256
35257# func_opt_split
35258func_opt_split ()
35259{
35260 func_opt_split_opt=${1%%=*}
35261 func_opt_split_arg=${1#*=}
35262}
35263
35264# func_lo2o object
35265func_lo2o ()
35266{
35267 case ${1} in
35268 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35269 *) func_lo2o_result=${1} ;;
35270 esac
35271}
35272
35273# func_xform libobj-or-source
35274func_xform ()
35275{
35276 func_xform_result=${1%.*}.lo
35277}
35278
35279# func_arith arithmetic-term...
35280func_arith ()
35281{
35282 func_arith_result=$(( $* ))
35283}
35284
35285# func_len string
35286# STRING may not start with a hyphen.
35287func_len ()
35288{
35289 func_len_result=${#1}
35290}
35291
35292_LT_EOF
35293 ;;
35294 *) # Bourne compatible functions.
35295 cat << \_LT_EOF >> "$cfgfile"
35296
35297# func_dirname file append nondir_replacement
35298# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35299# otherwise set result to NONDIR_REPLACEMENT.
35300func_dirname ()
35301{
35302 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000035303 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035304 if test "X$func_dirname_result" = "X${1}"; then
35305 func_dirname_result="${3}"
35306 else
35307 func_dirname_result="$func_dirname_result${2}"
35308 fi
35309}
35310
35311# func_basename file
35312func_basename ()
35313{
cristy18304f92009-11-22 15:48:26 +000035314 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035315}
35316
35317
35318# func_stripname prefix suffix name
35319# strip PREFIX and SUFFIX off of NAME.
35320# PREFIX and SUFFIX must not contain globbing or regex special
35321# characters, hashes, percent signs, but SUFFIX may contain a leading
35322# dot (in which case that matches only a dot).
35323# func_strip_suffix prefix name
35324func_stripname ()
35325{
35326 case ${2} in
cristy18304f92009-11-22 15:48:26 +000035327 .*) func_stripname_result=`$ECHO "X${3}" \
35328 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35329 *) func_stripname_result=`$ECHO "X${3}" \
35330 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035331 esac
35332}
35333
35334# sed scripts:
35335my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35336my_sed_long_arg='1s/^-[^=]*=//'
35337
35338# func_opt_split
35339func_opt_split ()
35340{
cristy18304f92009-11-22 15:48:26 +000035341 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35342 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035343}
35344
35345# func_lo2o object
35346func_lo2o ()
35347{
cristy18304f92009-11-22 15:48:26 +000035348 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035349}
35350
35351# func_xform libobj-or-source
35352func_xform ()
35353{
cristy18304f92009-11-22 15:48:26 +000035354 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035355}
35356
35357# func_arith arithmetic-term...
35358func_arith ()
35359{
35360 func_arith_result=`expr "$@"`
35361}
35362
35363# func_len string
35364# STRING may not start with a hyphen.
35365func_len ()
35366{
35367 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35368}
35369
35370_LT_EOF
35371esac
35372
35373case $lt_shell_append in
35374 yes)
35375 cat << \_LT_EOF >> "$cfgfile"
35376
35377# func_append var value
35378# Append VALUE to the end of shell variable VAR.
35379func_append ()
35380{
35381 eval "$1+=\$2"
35382}
35383_LT_EOF
35384 ;;
35385 *)
35386 cat << \_LT_EOF >> "$cfgfile"
35387
35388# func_append var value
35389# Append VALUE to the end of shell variable VAR.
35390func_append ()
35391{
35392 eval "$1=\$$1\$2"
35393}
35394
35395_LT_EOF
35396 ;;
35397 esac
35398
35399
35400 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35401 || (rm -f "$cfgfile"; exit 1)
35402
35403 mv -f "$cfgfile" "$ofile" ||
35404 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35405 chmod +x "$ofile"
35406
35407
35408 cat <<_LT_EOF >> "$ofile"
35409
35410# ### BEGIN LIBTOOL TAG CONFIG: CXX
35411
35412# The linker used to build libraries.
35413LD=$lt_LD_CXX
35414
35415# Commands used to build an old-style archive.
35416old_archive_cmds=$lt_old_archive_cmds_CXX
35417
35418# A language specific compiler.
35419CC=$lt_compiler_CXX
35420
35421# Is the compiler the GNU compiler?
35422with_gcc=$GCC_CXX
35423
35424# Compiler flag to turn off builtin functions.
35425no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35426
35427# How to pass a linker flag through the compiler.
35428wl=$lt_lt_prog_compiler_wl_CXX
35429
35430# Additional compiler flags for building library objects.
35431pic_flag=$lt_lt_prog_compiler_pic_CXX
35432
35433# Compiler flag to prevent dynamic linking.
35434link_static_flag=$lt_lt_prog_compiler_static_CXX
35435
35436# Does compiler simultaneously support -c and -o options?
35437compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35438
35439# Whether or not to add -lc for building shared libraries.
35440build_libtool_need_lc=$archive_cmds_need_lc_CXX
35441
35442# Whether or not to disallow shared libs when runtime libs are static.
35443allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35444
35445# Compiler flag to allow reflexive dlopens.
35446export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35447
35448# Compiler flag to generate shared objects directly from archives.
35449whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35450
35451# Whether the compiler copes with passing no objects directly.
35452compiler_needs_object=$lt_compiler_needs_object_CXX
35453
35454# Create an old-style archive from a shared archive.
35455old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35456
35457# Create a temporary old-style archive to link instead of a shared archive.
35458old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35459
35460# Commands used to build a shared archive.
35461archive_cmds=$lt_archive_cmds_CXX
35462archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35463
35464# Commands used to build a loadable module if different from building
35465# a shared archive.
35466module_cmds=$lt_module_cmds_CXX
35467module_expsym_cmds=$lt_module_expsym_cmds_CXX
35468
35469# Whether we are building with GNU ld or not.
35470with_gnu_ld=$lt_with_gnu_ld_CXX
35471
35472# Flag that allows shared libraries with undefined symbols to be built.
35473allow_undefined_flag=$lt_allow_undefined_flag_CXX
35474
35475# Flag that enforces no undefined symbols.
35476no_undefined_flag=$lt_no_undefined_flag_CXX
35477
35478# Flag to hardcode \$libdir into a binary during linking.
35479# This must work even if \$libdir does not exist
35480hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35481
35482# If ld is used when linking, flag to hardcode \$libdir into a binary
35483# during linking. This must work even if \$libdir does not exist.
35484hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35485
35486# Whether we need a single "-rpath" flag with a separated argument.
35487hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35488
35489# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35490# DIR into the resulting binary.
35491hardcode_direct=$hardcode_direct_CXX
35492
35493# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35494# DIR into the resulting binary and the resulting library dependency is
35495# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35496# library is relocated.
35497hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35498
35499# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35500# into the resulting binary.
35501hardcode_minus_L=$hardcode_minus_L_CXX
35502
35503# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35504# into the resulting binary.
35505hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35506
35507# Set to "yes" if building a shared library automatically hardcodes DIR
35508# into the library and all subsequent libraries and executables linked
35509# against it.
35510hardcode_automatic=$hardcode_automatic_CXX
35511
35512# Set to yes if linker adds runtime paths of dependent libraries
35513# to runtime path list.
35514inherit_rpath=$inherit_rpath_CXX
35515
35516# Whether libtool must link a program against all its dependency libraries.
35517link_all_deplibs=$link_all_deplibs_CXX
35518
35519# Fix the shell variable \$srcfile for the compiler.
35520fix_srcfile_path=$lt_fix_srcfile_path_CXX
35521
35522# Set to "yes" if exported symbols are required.
35523always_export_symbols=$always_export_symbols_CXX
35524
35525# The commands to list exported symbols.
35526export_symbols_cmds=$lt_export_symbols_cmds_CXX
35527
35528# Symbols that should not be listed in the preloaded symbols.
35529exclude_expsyms=$lt_exclude_expsyms_CXX
35530
35531# Symbols that must always be exported.
35532include_expsyms=$lt_include_expsyms_CXX
35533
35534# Commands necessary for linking programs (against libraries) with templates.
35535prelink_cmds=$lt_prelink_cmds_CXX
35536
35537# Specify filename containing input files.
35538file_list_spec=$lt_file_list_spec_CXX
35539
35540# How to hardcode a shared library path into an executable.
35541hardcode_action=$hardcode_action_CXX
35542
35543# The directories searched by this compiler when creating a shared library.
35544compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35545
35546# Dependencies to place before and after the objects being linked to
35547# create a shared library.
35548predep_objects=$lt_predep_objects_CXX
35549postdep_objects=$lt_postdep_objects_CXX
35550predeps=$lt_predeps_CXX
35551postdeps=$lt_postdeps_CXX
35552
35553# The library search path used internally by the compiler when linking
35554# a shared library.
35555compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35556
35557# ### END LIBTOOL TAG CONFIG: CXX
35558_LT_EOF
35559
35560 ;;
35561 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35562 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35563 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35564 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35565 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35566 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35567
35568 esac
35569done # for ac_tag
35570
35571
cristy8b350f62009-11-15 23:12:43 +000035572as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035573_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035574ac_clean_files=$ac_clean_files_save
35575
35576test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000035577 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035578
35579
35580# configure is writing to config.log, and then calls config.status.
35581# config.status does its own redirection, appending to config.log.
35582# Unfortunately, on DOS this fails, as config.log is still kept open
35583# by configure, so config.status won't be able to write to it; its
35584# output is simply discarded. So we exec the FD to /dev/null,
35585# effectively closing config.log, so it can be properly (re)opened and
35586# appended to by config.status. When coming back to configure, we
35587# need to make the FD available again.
35588if test "$no_create" != yes; then
35589 ac_cs_success=:
35590 ac_config_status_args=
35591 test "$silent" = yes &&
35592 ac_config_status_args="$ac_config_status_args --quiet"
35593 exec 5>/dev/null
35594 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35595 exec 5>>config.log
35596 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35597 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000035598 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000035599fi
35600if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035602$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35603fi
35604
35605
35606rm -f magick-version
35607
cristy430a7312010-01-21 20:44:04 +000035608result_dejavu_font_dir='none'
35609if test "${dejavu_font_dir}x" != 'x'; then
35610 result_dejavu_font_dir=$dejavu_font_dir
35611fi
35612
cristy3ed852e2009-09-05 21:47:34 +000035613result_ghostscript_font_dir='none'
35614if test "${ghostscript_font_dir}x" != 'x'; then
35615 result_ghostscript_font_dir=$ghostscript_font_dir
35616fi
35617
35618result_windows_font_dir='none'
35619if test "${windows_font_dir}x" != 'x'; then
35620 result_windows_font_dir=${windows_font_dir}
35621fi
35622
cristy8b350f62009-11-15 23:12:43 +000035623{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035624ImageMagick is configured as follows. Please verify that this configuration
35625matches your expectations.
35626
35627Host system type: $host
35628Build system type: $build
35629
35630 Option Value
35631-------------------------------------------------------------------------------
35632Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35633Static libraries --enable-static=$enable_static $libtool_build_static_libs
35634Module support --with-modules=$with_modules $with_modules
35635GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35636Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35637High Dynamic Range Imagery
35638 --enable-hdri=$enable_hdri $enable_hdri
35639
35640Delegate Configuration:
35641BZLIB --with-bzlib=$with_bzlib $have_bzlib
35642Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035643Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035644DJVU --with-djvu=$with_djvu $have_djvu
35645DPS --with-dps=$with_dps $have_dps
35646FFTW --with-fftw=$with_fftw $have_fftw
35647FlashPIX --with-fpx=$with_fpx $have_fpx
35648FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35649FreeType --with-freetype=$with_freetype $have_freetype
35650GhostPCL None $PCLDelegate ($PCLVersion)
35651GhostXPS None $XPSDelegate ($XPSVersion)
35652Ghostscript None $PSDelegate ($GSVersion)
35653Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35654Ghostscript lib --with-gslib=$with_gslib $have_gslib
35655Graphviz --with-gvc=$with_gvc $have_gvc
35656JBIG --with-jbig=$with_jbig $have_jbig
35657JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35658JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35659LCMS --with-lcms=$with_lcms $have_lcms
35660LQR --with-lqr=$with_lqr $have_lqr
35661Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35662OpenEXR --with-openexr=$with_openexr $have_openexr
35663PERL --with-perl=$with_perl $have_perl
35664PNG --with-png=$with_png $have_png
35665RSVG --with-rsvg=$with_rsvg $have_rsvg
35666TIFF --with-tiff=$with_tiff $have_tiff
35667Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35668WMF --with-wmf=$with_wmf $have_wmf
35669X11 --with-x=$with_x $have_x
35670XML --with-xml=$with_xml $have_xml
35671ZLIB --with-zlib=$with_zlib $have_zlib
35672
35673X11 Configuration:
35674 X_CFLAGS = $X_CFLAGS
35675 X_PRE_LIBS = $X_PRE_LIBS
35676 X_LIBS = $X_LIBS
35677 X_EXTRA_LIBS = $X_EXTRA_LIBS
35678
35679Options used to compile and link:
35680 PREFIX = $PREFIX_DIR
35681 EXEC-PREFIX = $EXEC_PREFIX_DIR
35682 VERSION = $PACKAGE_VERSION
35683 CC = $CC
35684 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035685 CPPFLAGS = $MAGICK_CPPFLAGS
35686 PCFLAGS = $MAGICK_PCFLAGS
35687 DEFS = $DEFS
35688 LDFLAGS = $LDFLAGS
35689 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35690 LIBS = $MAGICK_LIBS
35691 CXX = $CXX
35692 CXXFLAGS = $CXXFLAGS
35693" >&5
35694$as_echo "
35695ImageMagick is configured as follows. Please verify that this configuration
35696matches your expectations.
35697
35698Host system type: $host
35699Build system type: $build
35700
35701 Option Value
35702-------------------------------------------------------------------------------
35703Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35704Static libraries --enable-static=$enable_static $libtool_build_static_libs
35705Module support --with-modules=$with_modules $with_modules
35706GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35707Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35708High Dynamic Range Imagery
35709 --enable-hdri=$enable_hdri $enable_hdri
35710
35711Delegate Configuration:
35712BZLIB --with-bzlib=$with_bzlib $have_bzlib
35713Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035714Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035715DJVU --with-djvu=$with_djvu $have_djvu
35716DPS --with-dps=$with_dps $have_dps
35717FFTW --with-fftw=$with_fftw $have_fftw
35718FlashPIX --with-fpx=$with_fpx $have_fpx
35719FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35720FreeType --with-freetype=$with_freetype $have_freetype
35721GhostPCL None $PCLDelegate ($PCLVersion)
35722GhostXPS None $XPSDelegate ($XPSVersion)
35723Ghostscript None $PSDelegate ($GSVersion)
35724Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35725Ghostscript lib --with-gslib=$with_gslib $have_gslib
35726Graphviz --with-gvc=$with_gvc $have_gvc
35727JBIG --with-jbig=$with_jbig $have_jbig
35728JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35729JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35730LCMS --with-lcms=$with_lcms $have_lcms
35731LQR --with-lqr=$with_lqr $have_lqr
35732Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35733OpenEXR --with-openexr=$with_openexr $have_openexr
35734PERL --with-perl=$with_perl $have_perl
35735PNG --with-png=$with_png $have_png
35736RSVG --with-rsvg=$with_rsvg $have_rsvg
35737TIFF --with-tiff=$with_tiff $have_tiff
35738Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35739WMF --with-wmf=$with_wmf $have_wmf
35740X11 --with-x=$with_x $have_x
35741XML --with-xml=$with_xml $have_xml
35742ZLIB --with-zlib=$with_zlib $have_zlib
35743
35744X11 Configuration:
35745 X_CFLAGS = $X_CFLAGS
35746 X_PRE_LIBS = $X_PRE_LIBS
35747 X_LIBS = $X_LIBS
35748 X_EXTRA_LIBS = $X_EXTRA_LIBS
35749
35750Options used to compile and link:
35751 PREFIX = $PREFIX_DIR
35752 EXEC-PREFIX = $EXEC_PREFIX_DIR
35753 VERSION = $PACKAGE_VERSION
35754 CC = $CC
35755 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035756 CPPFLAGS = $MAGICK_CPPFLAGS
35757 PCFLAGS = $MAGICK_PCFLAGS
35758 DEFS = $DEFS
35759 LDFLAGS = $LDFLAGS
35760 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35761 LIBS = $MAGICK_LIBS
35762 CXX = $CXX
35763 CXXFLAGS = $CXXFLAGS
35764" >&6; }